Archive for January, 2008

An Easy Windows Backup Script.

I needed a way to backup all my important files to a server in case I had a hard disk failure. To do this I did not need any special software, just a spare machine (old machines are good for this) or a NAS (Network Attached Storage) or an external hard disk. # If Network [...]

Getting Text and Images From The Web with Ruby

Here I am going to talk about how to get images and text from the web with Ruby. I have found a lot of useful informaiton on the web but sometimes it’s too hard to get it without some help. To help me out I created two little snips… To get text: require ‘uri’ url [...]

Using Ruby to Close Outlook

First you will need to Install Ruby. Make sure the {ruby install path}/bin is in your path. Then run this script. require ‘win32ole’ outlook = WIN32OLE.new(‘outlook.application’) outlook.quit I used this in conjunction with my backup script by making sure to close Outlook before I started a backup, this way I was sure to get the [...]

Created My Twitter.

I just signed up for Twitter. So if you want to see what I am doing go here.

Update Eclipse Now!

I have been working with Eclipse for some time now. But now it seems with the projects finally maturing using this IDE for my PHP, Groovy and Ruby projects is a breeze. Goodbye EasyEclipse!

Really Impressed with Google Reader

If you are looking for a great RSS reader/organizer, I found an online version I love. www.google.com/reader Check it out, and make sure to subscribe to my Blog.

Ruby Tip of The Day – Variable Scope

I was writing a few scripts today and noticed that I kept getting "undefined local variable or method" as an error. Coming from PHP I am use to writing a variable globally in a page/script and then being able to access that variable inside a function on the same page. Though it's not proper coding [...]

Deciding on a Venture

In pitching my ideas to people I have often complained about pessimism and negativity. Now that I have been approached by a few people about possible ventures, I find myself doing the same thing. Why is that? I think a lot has to do with experience (mentioned above) but I think it more has to [...]

Format War: HD-DVD vs Blu-Ray

I figured, as soon as I saw the HD-DVD player for sale for $199 at Christmas and then I purchased it, it became obsolete. According to all the major tech blogs, Engadget, Gizmodo, TechCrunch, Etc., HD-DVD has lost and all companies will start selling titles in Blu-Ray. As soon as I purchase a Blu-Ray Player, [...]

Ruby Tip of The Day – Rubygems

I was having problems with Eclipse and some command line scipts seeing an installed gem. Basically I would require the gem, and it would come back saying “no such file to load“. To fix this I had to specify in my environment RUBYOPT=-rubygems. This has the effect of preloading all gems prior to execution. This [...]