Implementing linux/unix’s “touch” command on windows.

Purpose of the touch command: create a new file or ‘touch’ some file to update its timestamp; naturally, touching a file that isn’t there will create a new file with a current time and date timestamp.

The binary file is included at the end of this post. However, if you want to “compile” this on your own, you’ll need:

  1. Ruby 1.9.3 (http://rubyinstaller.org/)
  2. Ruby 1.9.3 devkit (https://github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe) — follow the directions at rubyinstaller.org to add the devkit, just in case.
  3. The ocra rubygem (in command prompt [cmd.exe] — type “gem install ocra” without the quotes

Then, with the source code saved as something like touch.rb, do:

You’ll then have touch.exe, which you can place in your C:/windows/system32 folder or /path_to_ruby/bin/ folder, and can use it as so:

Touch.zipSource code and binary.

 

iLyrics…

Ugh… Spend all night and all morning trying to code this. Basically, if you have iTunes and Windows, it downloads HTML lyrics off of lyricsdomain.com and parses it, hopefully leaving you with something that resembles lyrics… Keyword: hopefully. lyricsdomain is kinda lacking… However, while they’re lacking in lyrics, they’re also lacking in ads, so that just made regex easier easier on me… Also, it will download the lyrics into a cache sorta thing, so lyrics won’t be downloaded again if you already have it on your computer. But it’s a little buggy like that.

http://fileshare.variousstuff.net/0000001840/

I doubt that anyone out there is as interested in lyrics as I am, but oh well… I’m going to constantly update this program.