LibraryElf: Library Overdue Book Reminder Service

I am constantly late at returning library books. While studying at the University of Waterloo I racked up huge fines, often just by being one day late (they would send me an overdue notice the day after they were due, thus incurring $1 per book, before I could renew). I eventually wrote a little python script that would log on to the University of Waterloo's library website and renew books for me (the script ran automatically every night). That worked great for the last year that I was at Waterloo.

When I came back to Vancouver I was also late at returning books to the Vancouver Public Library. I stumbled on a site a while ago called Library Elf that sends me reminders when my books I have taken out from the VPL are almost due. It supports many other libraries as well. It automatically logs into any libraries that you add to your account and you can receive notification up to one week in advance, or every week, by RRSS and/or email. It has worked great for me, except for one time when it didn't send me any reminder. Perhaps GMail thought it was spam, I'm not sure. I might add the RSS option, just in case.

Another neat feature is that in the reminder email, they will suggest a book that they you might be interested in, based on the books you have borrowed. It just recommended a great authentic Mexican cookbook to me that has a 5-star rating on Amazon on 13 reviews!

Tags:

My New Year's Resolutions

Here are my resolutions for 2007. Some of these are more like goals than resolutions. The theme this year is heating healthier and hopefully losing a few pounds.

  • No high-fat foods, deep-fried foods, or other obviously fatty foods and limit highly-refined carbs too (thanks CBC for showing Fast Food Nation on January 1st, one of the wonderful advantages of having a publically-funded health care system and a publically-funded TV station). I am not going to forbid myself from having all "fast food" because sometimes I need something "fast" and not all fast foods (like salads for example) are bad.
  • Eat more fruits and vegetables.
  • Ride my new stationary bike at least 3 times per week.
  • Limit TV to one hour per day.
  • Practice piano at least 1 hour 5 times per week.

Tags:

Drupal Modules I am Waiting to be Ported to Drupal 5.0

I am really looking forward to upgrading this site to Drupal 5.0. I really like the new default theme and I am thinking of using it along with a customized colour scheme. I am a big fan of using default themes by the way because it means I never have to monkey around with my theme if anything in the underlying API changes from version-to-version. For a simple site like mine, using a default theme makes the most sense. Especially for someone who is by no means an expert in HTML and CSS. I have made a few sites using only CSS (no tables) that were fully XHTML 1.0 compliant and worked on all browsers but only after much work and late nights.

I am going to keep a little list here of modules that I am waiting to be upgraded to Drupal 5.x before I upgrade to Drupal 5.0. I will scratch them off by crossing them out once each of them is ported. Any remaining ones I will port myself if possible.

Tags:

Destruction of Trees in Stanley Park - Due to Global Warming?

Here is some footage of the damage done to Stanley Park's trees during a recent wind storm.

The guy in the film likes to blame the destruction on global warming. Although I agree that world temperatures are rising, and I do agree that winds are partly caused by warm air rising or cold air falling which is all affected by air temperature, I would be interested in seeing some hard facts like number of days with winds over 50 km/h or something like that. Or average wind speed for every year since 1900. I am sure I have heard statistics like number of hurricanes per year and such. Last year was definitely a bad year for hurricanes in the Northern Hemisphere. We are all familiar with the "hockey stick" graph of global temperatures, it would be interesting to see a similar graph charting other weather observables.

Update (2007/01/08): this just hit the news today as John Baird, Canada new Minister of the Environment claimed that this freakish weather was due to global warming. Even if this wasn't due to global warming at least it will bring more attention to the issue.

SNL-Dick in a Box

Hilarious clip on SNL last weekend (from their "SNL Digital Short" series) staring Andy Samberg and Justin Timberlake.

Tags:

Java float vs. double and micro-optimization

Some people at work implemented a few classes all with floats and I am sick and tired of casting everything into float. There is absolutely no reason why floats should have ever been used. The original reason was because of memory and/or network and/or diskspace issues which is all now totally irrelevant because the project that these classes were mostly used for has now been scrapped. I recently ripped out a few classes from that project, however, because they are useful. I am finding them extremely annoying to use, however. Not only do they use floats but they are totally micro-optimized in other ways as well. I'm probably rewrite the class soon anyways so that it is readable. My opinion is that there is no reason to ever use anything other than ints, doubles, and bytes in Java. At leas in 2 years I have never come across any reason. Part of this is Java's fault for having two floating point types in the first place. I would have been much happier had this all been developed in Python.

Tags:

Rudolph the Red-nose Reindeer

I just watched part of the original Rudolph the Red-Nosed Reindeer on TV last night. Here's a funny overdub I found on YouTube:

Tags:

Complex GMail Filtering

A few days ago I ran in to a situation where I wanted Gmail to filter something based on the OR of a From: filter and a Subject: filter. In other words I get email from a website and I want to catch their From: email address as well as another criteria based on the Subject: line. In this case, I want to catch emails with From:bookmooch.com OR Subject:Bookmooch OR Subject:"Book received" OR ... (there are a few other cases. If you enter the From: and Subject: conditions in the google create-a-filter wizard they will be logically connected with AND by default; however, if you put the following:

from:bookmooch.com OR subject:bookmooch OR subject:"book received"

in the "Has the words" field. This works like a charm. I will probably be able to compress a few of my old filters into one with this tip.

Tags:

The Atheist Delusion

Just saw a neat flash presentation called the "Atheist Delusion". Follow the link or click "read more" to view. The funny/sad part about this is that some fanatics will watch this and it will only reinforce their views.

Tags:

My Cuba Photos at JPG Magazine

I submitted some of my Cuba photos to JPG Magazine. It is a neat print publication publishes photos based on online voting of user-submitted photos. Here's one I submitted to the "street" issue:

Actually, I've just noticed that you cannot just vote on any picture you want for some reason. It randomly selects certain photos you can vote on. I guess this is to prevent friends from voting for their friends' photos and in turn having their friends vote for theirs.

I just noticed one further gotcha. It looks like one can only submit one photo to each theme. These guys at JPG are really trying hard to prevent people from gaming the system and I admire that.

First Muslim Elected to Congress is Asked if he is Working with Enemies

First Muslim elected to Congress. First question out of Glenn Beck's mouth during his interview: "Prove to me that you are not, uh, oh, uh, working with our enemies":

Religious Solicitors Gone Wild

If the door-to-door preachers in this video did not get violent then this probably would not be something to laugh at. But they did, so it is hilarious

Boil This

After some torrential rain and other weather stuff that I was totally oblivious to, a boil water warning was issued for the entire Greater Vancouver Regional District (GVRD). I wish I had bought some bottled water earlier; now I am pretty dehydrated. I would drink the water in our fridge that we boiled earlier but it is just so cloudy and gross-looking. You don't appreciate something until you lose it, and I definitely appreciate our normally clean drinking now.

Planet Larry

I am excited to be a part of Planet Larry. I don't write about Gentoo too often, but once in a while I might have something interesting to say about it. For those that are interested, my past articles on Gentoo, and my past articles on Linux.

Tags:

Open Source Donations

The other day I was trying to think of how much I have donated to open source software projects in the past few years in total and so I decided to make a list:

October 22, 2008 - Wordpress Security Scan - $5
July 28, 2008 - Tomato Firmware - $25
March 27, 2007 - Scrapetorrent - $5
March 18, 2007 - Gentoo Linux Foundation - $30

Topic:

Pages

Subscribe to David Grant RSS