Archive for November, 2010

19
Nov
10

deploy vc++ 2005 executable


If you want to deploy a VC++ 2005 executable on a computer that doesn’t have VisualStudio installed, or the Visual C++ Redistributable Package, copy from the following folder of your VisualStudio’s installation:Microsoft Visual Studio 8\VC\redist\x86\Microsoft.VC80.CRT\ everything, in the same directory as your executable.

Basically, put these files:

  1. Microsoft.VC80.CRT.manifest
  2. msvcm80.dll
  3. msvcp80.dll
  4. msvcr80.dll

03
Nov
10

ruby one-liner of the day


Get the contents of the PATH with entries matching command line arguments removed ( god damn this CSS style ):


puts ENV["PATH"].split(File::PATH_SEPARATOR).reject {|f| ARGV.any? {|a| f=~/#{a}/i}}.join(File::PATH_SEPARATOR)




Blog Stats

  • 216,787 hits