The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 2,089 other followers

Archive for June 10th, 2020

Squoosh: Compress and compare images with different codecs, right in your browser

Posted by jpluimers on 2020/06/10

Cool tool: [WayBack] Squoosh Compress and compare images with different codecs, right in your browser

Source at [WayBack] GitHub – GoogleChromeLabs/squoosh: Make images smaller using best-in-class codecs, right in the browser.

Via: [WayBack] Google releases an easy way to shrink and convert images for the internet — Mike Elgan


Posted in Development, Power User, Software Development, Web Browsers, Web Development | Leave a Comment »

When you are stuck, use “Oblique strategies – defeat creative block”

Posted by jpluimers on 2020/06/10

Sometimes you are stuck. Then this often helps, even outside the music industry:

[WayBack] Oblique strategies – defeat creative block: Draw random Oblique Strategy cards to break through creative block.

These are disruptive which is the whole point being stuck.

Obey the first and only rule: pick the first card and apply what it says.

  • Do NOT fall for the urge to draw multiple cards.
  • Do NOT make a list of all cards then choose from it.

Both above failures kill the randomness of the above strategy.

More on them at [WayBack] Oblique Strategies – Wikipedia



Read the rest of this entry »

Posted in Agile, Development, LifeHacker, Power User, Software Development | Leave a Comment »

One day I will dig in the various ways that bash can do evaluation, for now: there is eval, “ and $() and I’m not sure when to choose which.

Posted by jpluimers on 2020/06/10

A while ago, I had to execute a series of aliases of which the names were stored in an array. A simple for loop with en eval call did the job.

Then I found out there are at least two more ways of evaluation in bash, so here are just a few links giving me a head start if I ever dig this up again:

Note that looping over parameters is different than over an array: [WayBack] Loop through an array of strings in Bash? – Stack Overflow

ou can use it like this:

## declare an array variable
declare -a arr=("element1" "element2" "element3")

## now loop through the above array
for i in "${arr[@]}"
   echo "$i"
   # or do whatever with individual element of the array

# You can access them using echo "${arr[0]}", "${arr[1]}" also

Also works for multi-line array declaration

declare -a arr=("element1" 
                "element2" "element3"


Posted in *nix, *nix-tools, bash, bash, Development, Power User, Scripting, Software Development | Leave a Comment »

%d bloggers like this: