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 1,765 other followers

Archive for March 29th, 2014

Some more Chromecast development notes and links

Posted by jpluimers on 2014/03/29

Some notes and links for Chromecast development:

Some nice apps:

–jeroen

Posted in Chromecast, Development, Google, JavaScript/ECMAScript, Power User, Scripting, Software Development | Tagged: | Leave a Comment »

Installing VMware vSphere Client 4.1-5.5 on Windows 8 or 8.1 (via: tech :: stuff)

Posted by jpluimers on 2014/03/29

Until recently, I had all my VMware vSphere Client installations inside a Windows XP VM because Windows XP: relatively light weight, but (as of writing almost) End-of-Life.

I am upgrading that install now, and actually making two installs:

  1. on Windows Server 2003 R2 (the main VM management VM)
  2. on Windows 8.1 (my main Windows work laptop)

Of course I needed the installers for vSphere Client 4.1, 5.0, 5.1 and 5.5. The easiest os to get them through the direct download links at VMware: Vsphere Client Direct Download Links | tech :: stuff  Read the rest of this entry »

Posted in ESXi4, ESXi5, ESXi5.1, ESXi5.5, Power User, VMware, VMware ESXi, Windows, Windows 8.1, Windows Server 2003 R2, Windows XP | Tagged: , , , | Leave a Comment »

*nux: “$@” is how to iterate over arguments in bash script (via: command line – Stack Overflow)

Posted by jpluimers on 2014/03/29

Thanks Robert Gamble, ephemient and Jonathan Leffler. Be sure to read the top two answers and comments for full details.

Until now, I always used $* to pass on arguments from *nux shells (bash, sh, ash, etc.). Works on ESXi as well. But that is not the correct way to do.

But “$@” is the correct way:

  • Use “$@” to represent all the arguments:

for var in "$@"
do
echo "$var"
done

  • As a shortcut, for var; do ...; done means for var in "$@"; do ...; done
  • Basic thesis: “$@” is correct, and $* (unquoted) is almost always wrong. This is because “$@” works fine when arguments contain spaces, and works the same as $* when they don’t. In some circumstances, “$*” is OK too, but “$@” usually (but not always) works in the same places. Unquoted, $@ and $* are equivalent (and almost always wrong).

This next to the following construct makes file processing in *nix a breeze:

for filename in *.7z; do if 7za t $filename 2>&1 > /dev/null; then echo $filename passed; else echo $filename failed; fi; done

–jeroen

via: command line – How to iterate over arguments in bash script – Stack Overflow.

Posted in *nix, bash, Cygwin, Development, ESXi4, ESXi5, ESXi5.1, ESXi5.5, Linux, Power User, Scripting, Software Development, SuSE Linux, VMware ESXi | Leave a Comment »

When FINDSTR drives you nuts (via: batch file – Stack Overflow)

Posted by jpluimers on 2014/03/29

The upside of findstr is that it is included with Windows since a long time (at least since Windows XP, later: indeed since Windows ME) and supports a form of regex.

But often it drives you crazy.

When it does, read What are the undocumented features and limitations of the Windows FINDSTR command? – Stack Overflow.

–jeroen

Posted in Power User, Windows, Windows 7, Windows 8, Windows 8.1, Windows ME, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Leave a Comment »

rsync: Time Machine for every Unix out there – IMHO

Posted by jpluimers on 2014/03/29

Interesting: Time Machine for every Unix out there – IMHO.

But be careful with the hardlinks, as making a backup of the backup might fail:

–jeroen

Posted in *nix, Power User, rsync | Tagged: , | Leave a Comment »

 
%d bloggers like this: