Sunday, January 17, 2010

cygpath quoting for directories with spaces in their name

Had to experiment with quoting with cygpath to patch up some scripts under cygwin.
I was trying to properly quote an environment variable defined on the Windows side: 
MSSDK=C:\Program Files\Microsoft SDKs\Windows\v7.0

  • Just using

    cygpath –u $MSSDK

    resulted in a multi-line return of:


  • cygpath –u “$MSSDK”

    returned a single line:

    /cygdrive/c/Progarm Files/Microsoft SDKs/Windows/v7.0

  • and finally

    echo \”`cygpath –u “$MSSDK”`"\” 

    returned the directory properly quoted:

    “/cygdrive/c/Program Files/Microsoft SDKs/Windows/v7.0”

Hurray. Back to script editing…

Saturday, January 16, 2010

Boost for Visual Studio 2008 and Qt

Needed Boost for a Windows project.   After struggling with the build and install for a bit I wimped out and used the BoostPro Binary Installer for Visual C++.  I wanted to use this with a Qt project so I added the lines below to the qtvars.bat file:

@if not "%BOOST_ROOT%" == "" (
    echo -- Adding boost from %BOOST_ROOT%
    set "PATH=%BOOST_ROOT%\lib;%PATH%"
    set "LIB=%BOOST_ROOT%\lib;%LIB%"

and defined BOOST_ROOT to be the directory where I installed boost.

Monday, January 4, 2010

Install HP OfficeJet Pro 8500 Network Access Software on Windows Vista x64

Bought an HP OfficeJet Pro 8500 to support wireless printing and scanning. This thing was an incredible pain in the butt to get installed.    The error dialog I got is shown below.

I had to manually install the Microsoft Visual C++ 2005 Redistributable Package (x64), install the Microsoft Visual C++ 2005 Redistributable Package (x86) and disable my anti-virus software during the install so the HP installer could complete.

Another gripe…Yahoo Toolbar as a default part of the installer?  HP that really does not set the tone as this being a professional office product when you are shilling for Yahoo.

Finally, had to manually install a Critical update to fix Thai fonts.

Sunday, January 3, 2010

Make VideoLAN – VLC media player the Default DVD Player in Windows Vista

I’ve been searching for a while  for a way to make VideoLAN – VLC media player the default DVD player in Windows Vista (32 and 64 bit).  After, several minutes of fruitless searching I finally came across a lifehacker reference to Autoplay Repair and a guide explaining usage. 

To use VLC I created an entry for DVDs with Autoplay Repair


See the VLC documentation for command line parameters.  I used dvd://%L for now.


Then ran the Vista AutoPlay tool to make sure that VLC is the default.


Inserted a DVD and was off to the movies.

Friday, January 1, 2010