Leo's Technical Blog
user

Leo's Technical Blog

Mostly about computer programming.


Featured

me, windows

Just paid ~$160 to Microsoft

Posted on .

Finally my Windows XP copy arrived. Why did I need a Windows XP copy? The last year I have been using Linux on a laptop that originally came with Windows. Since I never completely removed the Windows partition, I was able to test software on Windows and to occ…

Featured

tips, ruby, windows

Reading a Binary File on Ruby

Posted on .

No, it is not as simple as: contents = IO.read(path_to_binary_file) Because it does not work well on Windows platforms. In code meant to be compatible with Ruby 1.8 you should do: contents = open(path_to_binary_file, "rb") {|io| io.read } Obviously, th…

Featured

windows

procinfo: pgrep, pkill and pmap for Win32.

Posted on .

Procinfo is a tool made by Daniel Molina, a colleague of mine at Imagemaker. It lets you use regular expressions to find and kill processes, using the command line on Windows. Simple and useful.…