The Wiert Corner – irregular stream of stuff

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

  • My badges

  • Twitter Updates

  • Pages

  • All categories

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

    Join 1,839 other subscribers

Mad With PowerShell

Posted by jpluimers on 2020/02/19

This is such a cool blog: Mad With PowerShell (Tim Curwick’s PowerShell blog, tips and tricks, tools and techniques, explanations and explorations).

I bumped into it by finding these two:

What I like most is that it gives great insight on how and why the internals of PowerShell work the way they do, and how to use that to your advantage.

–jeroen

Posted in CommandLine, Development, PowerShell, PowerShell, Scripting, Software Development | Leave a Comment »

Does anyone knows a existing implementation of bcrypt or scrypt for delphi?

Posted by jpluimers on 2020/02/19

For my link archive: [WayBack] Does anyone knows a existing implementation of bcrypt or scrypt for delphi? – Fabian S. Biehn – Google+:

–jeroen

Posted in Delphi, Development, Encryption, Power User, Security, Software Development | Leave a Comment »

linux – Bash: Command grouping (&&, ||, …) – Stack Overflow

Posted by jpluimers on 2020/02/18

Excellent answer at [WayBack] linux – Bash: Command grouping (&&, ||, …) – Stack Overflow by Charles Duffy:

Operator precedence for && and || is strictly left-to-right.

Thus:

pwd; (ls) || { cd .. && ls student/; }  && cd student || cd / && cd ;

…is equivalent to…

pwd; { { { (ls) || { cd .. && ls student/; }; } && cd student; } || cd /; } && cd ; }

…breaking that down graphically:

pwd; {                                      # 1
       {                                    # 2
         { (ls) ||                          # 3
                   { cd .. &&               # 4
                              ls student/;  # 5
                   };                       # 6
         } && cd student;                   # 7
       } || cd /;                           # 8
     } && cd ;                              # 9
  1. pwd happens unconditionally
  2. (Grouping only)
  3. ls happens (in a subshell) unconditionally.
  4. cd .. happens if (3) failed.
  5. ls student/ happens if (3) failed and (4) succeeded
  6. (Grouping only)
  7. cd student happens if either (3) succeeded or both (4) and (5) succeeded.
  8. cd / happens if either [both (3) and one of (4) or (5) failed], or [(7) failed].
  9. cd happens if (7) occurred and succeeded, or (7) occurred and succeeded.

Using explicit grouping operators is wise to avoid confusing yourself. Avoiding writing code as hard to read as this is even wiser.

–jeroen

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

Some interesting Delphi MVVM posts…

Posted by jpluimers on 2020/02/18

Via [WayBack] We kick off a week of MVVM with an introduction of the Model-View-ViewModel pattern and how data binding is used to realize it. – Erik van Bilsen – Google+:

I wrote (and gave a few conference talks) about DSharp before, so the above is very interesting.

–jeroen

References:

Posted in Delphi, Development, Software Development | 2 Comments »

Scott Hanselman on Twitter: Learn C# in your browser, no install! Practice your .NET skills on an ChromeBook if you like! Your choice!

Posted by jpluimers on 2020/02/18

This is indeed an interesting live way to learn about C# even if you think you know most of it:

[WayBackScott Hanselman on Twitter: Learn C# in your browser, no install! Practice your .NET skills on an ChromeBook if you like! Your choice!

Here you go:

–jeroen

Read the rest of this entry »

Posted in .NET, C#, Development, Software Development | Leave a Comment »

100 km – how much needs to go into a tank? well2wheels/well to wheels (kWh).png at master · htc1977/well2wheels · GitHub

Posted by jpluimers on 2020/02/17

Since physics does not tend to change, this is still very accurate: [WayBackwell2wheels/well to wheels (kWh).png at master · htc1977/well2wheels · GitHub graphical WELL-TO-WHEELS Report Version 4.1 European Commission, 2014 – htc1977/well2wheels

A big picture is below the fold.

Other graphical file formats at [WayBack] GitHub – htc1977/well2wheels: graphical WELL-TO-WHEELS Report Version 4.1 European Commission, 2014

via:

–jeroen

Read the rest of this entry »

Posted in LifeHacker, Power User, science | Leave a Comment »

Solved: Stuttering Audio Streaming To Apple TV Via AirPlay – The Spotify Community

Posted by jpluimers on 2020/02/17

[WayBack] Solved: Stuttering Audio Streaming To Apple TV Via AirPlay – The Spotify Community:

Try to disable Wifi multimedia (WMM) from your router’s WLAN settings

For my Tomato USB it was easy as described by [WayBack] Installing AirPlay on Tomato – 2017 Edition [StartupCTO]:

disabling WMM in Tomato. (Advanced Settings → Wireless).

–jeroen

Posted in ASUS RT-N66U, Internet, Network-and-equipment, Power User, routers, TomatoUSB, WiFi | Leave a Comment »

When monitoring Windows service memory consumption from Zabbix and you get zeros

Posted by jpluimers on 2020/02/17

This is a small reminder to myself that when monitoring Windows service memory consumption from Zabbix and you get zeros, it means you need to monitor the Windows process instead of the service. The process will give you actual memory usage.

–jeroen

Posted in *nix, Monitoring, Power User, Zabbix | Leave a Comment »

Sometimes your day is brightened by a tweet that is much too kind

Posted by jpluimers on 2020/02/15

Tuesday was a day that got brightened. Thanks Elisabeth!

[Archive.is] Elisabeth met bgh Wendy en Minthe pensionada on Twitter: “@jpluimers Hallo Jeroen, al lang like jij mijn tweets. Vandaag heb ik mij in jou verdiept. Wat ik lees vind ik schokkend, triest, liefdevol en mooi tegelijk. Je bent een geweldig mens, een super broer en je bent ernstig ziek. Je vrouw die met de gevolgen van kanker moet leven. Respect 🌸❤️”

Translated:

Hello Jeroen, you have long liked my tweets. Today I immersed myself in your tweets. What I read is shocking, sad, loving and beautiful at the same time. You are a wonderful person, a super brother and you are seriously ill. Your wife who has to live with the effects of cancer. Respect.

–jeroen

Read the rest of this entry »

Posted in About, Personal | Leave a Comment »

multi-headed

Posted by jpluimers on 2020/02/14

A long time ago, I named a tool Cerberus after the mythical multi-headed dog that guards the gates of the Underworld, as it was to inspect client systems configurations to prevent they would enter a bad state.

Since I need a multi-headed tool later on, below are some links on multi-headed (Polycephaly – Wikipedia) creatures to give me inspiration.

Some of them are centered around war, others around hell, are dragons or monsters, and a few are guardians. Later I will try to put a classification in a table or so.

The idea is to replace my current Apache TLS offloading (that uses letsencrypt/certbot for the certificates) with something else like an nginx one, and maybe even make the internal part TLS too (so it becomes TLS upstreaming) so these will come in useful too:

Instead of nginx, HAproxy might be a an option too, especially as it understands TCP traffic other than http much better than nginx:

This means I should first look into nginx vs haproxy – Google Search, for instance these posts:

–jeroen

Posted in Geeky, History, Infrastructure | 2 Comments »