Thursday, 13 March 2008

Weather RSS Update

Well after using Weatherbug for about 1 week, I have had a change of heart. When you go to their Web page for a full forecast, they create pop under ads in your browser. Naughty, naughty. I simply don't use sites that do pop overs or pop unders. So Weatherbug is on my banned list.



I did find an alternative. Yahoo has a weather RSS feed service described at:
http://developer.yahoo.com/rss/
You just use the provided URL and a parameter for the Zip code and you are all set.

Tuesday, 11 March 2008

J2EE Startup Class

Been wondering if such a thing existed so I could use it in my current project. Turns out it does! According to this blog entry (thanks Vinny), you can add a:
<load-on-startup>1<load-on-startup>
element to your servlet element in web.xml. This loads your servlet and runs its init method. The number in the element represents the order the servlets are loaded in if you have more than 1 starting. Pretty cool. I guess I will get to see how well it works shortly.

Monday, 10 March 2008

Catch the latest Desktop gadgets



Have you ever wanted to keep track of the newest Google Desktop gadgets right from your sidebar? With our brand new XML feed, that's now as easy as adding it to your favorite RSS gadget.

If you don't already have the Google Web Clips gadget in your sidebar, here's how to add it:
  1. Click the "+" at the top right of your sidebar and search for [ web clips ].
  2. Click the green Add button below the Web Clips gadget.
  3. Click the down arrow in the gadget's top-right corner and select Options.
  4. In the Current Web Clips section, enter http://desktop.google.com/feeds/gadgets.xml?type=rss and click Add.
  5. If you'd only like to keep track of new gadgets, deselect the checkbox next to "Automatically add clips from frequently viewed sites." You can also highlight any unwanted feeds in the Current Web Clips section and click Remove to delete them.
  6. Click OK.

Now just click the title of any new gadget to see its description, or double-click to download the gadget from our gallery.

Enjoy :)

Friday, 7 March 2008

Weather RSS

As you know, cluttered web pages with microscopic fonts drive me crazy. Of any category, probably the worst offender is weather sites. Pick any of the big sites weather.com or weatherunderground.com, for example, to see what I mean. The pages are nearly as chaotic as the weather itself is.

Well I think I have found a solution. If you use an RSS reader like Google Reader or NetNewswire, you can get an RSS feed from Weatherbug.com. Just got to their Weatherbug RSS page, fill out a little information and voila! You have a weather feed with just the information you want, no clutter. Yay for Weatherbug!

Wednesday, 5 March 2008

To be(ta) or not to be



In October 2007 we released Google Desktop 5.5 (beta), which enabled you to use hundreds of useful desktop gadgets on your iGoogle homepage. I've been one of the happy gadget fans myself. Since I work in a team spread across a number of locations, I've found the World Daylight Alarm Clock gadget to be very handy. Whenever I open the browser to send mail or look at the calendar, I can see daybreak in other cities and plan my work accordingly. And when I'm researching a particular topic, I use the Wikipedia gadget in my iGoogle homepage to quickly type in the topics and preview them in the little details window in context without opening new browser tabs or windows.


Today, Google Desktop 5.5 is out of beta and available in 31 languages (including 2 new ones, Thai and Indonesian). This is great news for lots of people around the world, even me (I use the Hindi version of Google Desktop), as we can now use our favourite desktop gadgets in the language of our choice in the iGoogle homepage. For those of you who are new to Google Desktop, the installation is more streamlined and it's easier to start using desktop gadgets from the iGoogle homepage. So go ahead, choose your favourites from the desktop gallery and select the 'add to iGoogle' link to make them available in your iGoogle homepage � in your language.

Tuesday, 4 March 2008

uninitialized constant RedCloth (NameError)

OK, here is another bone headed mistake I made that I will post about in hopes of helping other poor souls who run across the problem. This morning I decided to play around a bit with the RedCloth library that comes with Ruby 1.8 on Mac OS X 10.5 Leopard. So I wrote a simple program in Ruby and tried to run it. Every time I did I got:

uninitialized constant RedCloth (NameError)



And here is my program if you are interested:




#!/usr/bin/ruby
require 'rubygems'
require 'RedCloth'
doc = RedCloth.new "h2. test header

just some text

another para"
puts doc.to_html



Pretty simple. (RedCloth, by the way, is a processor for Textile. Kind of a simple yet powerful way to mark up text like you would in a wiki.) Well I know the RedCloth Gem is in my path and is installed. I know my code should work, but it doesn't. What is the problem?



Turns out I unfortunately named my test file "redcloth.rb". Turns out the Gem file is named "RedCloth.rb" and is in the path and can be executed from the command line. If you don't know, OS X is case insensitive like Windows XP, so those names are equivalent. Thusly, Ruby faithfully tried to load my local script file, which doesn't define any of the needed objects. Therefore, the error. Naming the file "rctest.rb" fixes the problem.



So I hope this little note helps someone else out in the future. So if you get a: "uninitialized constant XXXXXX (NameError)", make sure your file name isn't the same as a the Gem file.

Saturday, 1 March 2008

NetBSD Toaster


So it may not be the most practical use of NetBSD or a TS-7200 SBC, but you can't fault the imagination of the engineers at Technologic Systems. Did I mention, it comes w/ an RJ45 connector an Apache Web server and it plays MP3s while making toast!

Sure beats the Micro$oft Flying Toasters!


More here.