Feb 29, 2008

Get Scroll Mouse to Work on Ubuntu 7.10 and VMWare Fusion

I'm using Ubuntu 7.10 running under VMWare Fusion on my Mac for a project. I couldn't get the scroll mouse to work. A bit perplexing given that it is a very generic Logitec Optical mouse. Well I finally found a fix on this page: https://help.ubuntu.com/community/VMware/Tools. Just change the Protocol line for your mouse device in your /etc/X11/xorg.conf file to: Options "Protocol" "ExplorerPS/2" That seems to do the trick

Feb 25, 2008

Google AJAX Feeds API

This weekend I was planning to do some coding work on my home page. I wanted to add an RSS/Atom feed from my blog to the front page of blue sky workshop. To do this, you just need a simple proxy script to grab feeds from the web and cache them. Then write some AJAX code to request the feed and pull it down to your web page. Of course being lazy in the Larry Wall sense, I first tried find someone else's code to perform this task. I couldn't really find anything suitable and had pretty much settled on writing my own code.

However on Saturday by accident, I stumbled across the Google AJAX Feeds API:
http://code.google.com/apis/ajaxfeeds/.

Basically, Google has gone and written the whole thing for me already. Thank you Google! It took me about half an hour to modify their code and get it working on my home page. To see the code, just do a "view source" on the Blue Sky Workshop home page. The AJAX code is all in the head section of the page.

Since I'm using an Atom feed, the HTML markup I put in my posts is sent for each of my entries. So if I added the post description as a text node, the HTML is ignored and just shows up as text on my home page. But by setting description.innerHTML = entry.content, the HTML is incorporated just fine.

Very slick Google. For any future projects, I plan to check your site first to see if there is any other code I can steal... I mean use for my site. :)

Feb 20, 2008

Getting a Start with Rails 2.0

Arun Gupta has a nice short post on how you can download JRuby 1.1 and and get started using Rails 2.0. Very helpful.

Feb 19, 2008

Greece v Germany

Found this on YouTube and though I should share. One of my favorite Monty Python clips. Greece v Germany in Soccer Final

Feb 15, 2008

Sun Purchases Virtualbox

I have been in some excellent training this week and didn't have a chance to look into this announcement. But after reading a few reviews, I am pleasantly surprised. The company that developed the software, Innotek, was also a co-developer of Virtual PC. So they definitely have some experience in the field. Virtual Box is virtual machine software much like VMWare or Virtual PC. The difference is, the software can run as a host operating system on just about any operating system and the software is open source. My takeways from a little reading is this:
  • Performance is on par with VMWare. Pretty impressive given the VMWare product has been around a lot longer.
  • The UI is pretty good and the software is very stable. However there is still room for improvement here and there.
  • Innotek is working on a server version of their product that would be similar to VMWare ESX. This would allow you to run a number of virtual machines a single host for web hosting applications for example.

For more information, take a look at these links.
Blog Review by Liqudat - Includes performance numbers
Techworld Review - Very recent
Infoworld VM Product Comparison
Commentary by Infoweek

Feb 7, 2008

The Future of Languages

This link is a little old, but I came across it at a work presentation and thought I should blog it for future reference. This is a blog post from O'Reilly detailing the trend in book sales for 2007 for programming languages. Not surprisingly, only two languages are showing growth, Ruby and Javascript. Something to keep in mind when improving your skills.

Feb 1, 2008

HP Laserjet 1020 on OS X Leopard

Need to get your HP Laserjet 1020 working on OS X Leopard? Just go to this link: http://www.railsguru.com/articles/2006/8/26/hp-laserjet-1020-on-osx

You have to install an old Laserjet 1022 which he has link to. Follow the simple steps and you are all set. I love the Internet. :)