Archive for the ‘Programming’ Category

The long awaited new version of MyGoogleCal is here. It supports the new AJAX-enabled Javascript method Google switched to last month. As a bonus, the new version has native support for multiple calendars each with their own colors! Other changes to the code include officially switching from fopen to curl to retrieve the data. Furthermore, the code replaces much less HTML since it’s encapsulated in Javascript. Without further ado…

(more…)

My how-to for restyling Google Calendar is by far this blog’s most popular post so far. Right from the start, people had requested that I adjust the code to accommodate Google Calendar’s mini-mode. It certainly was possible using the technique I used, but it did break the agenda which was flaky to begin with given the fact the feature was experimental. Every once in a while, I’d check on the stability of mini-mode to determine if it was ripe for some hacking. Then one day the mode simply didn’t work anymore. It was weird, but after further research I found out why. Mini-mode was superseded by the Google Calendar Gadget. The configuration form does provide some customization of the style, but it is certainly limited. So just like before, I poked and prodded the code until I was able to find the means to restyle the gadget.

(more…)

Inspired by a couple of articles and even a screencast, I wrote a short batch file that creates a Rails application and automatically loads it into a subversion repository. It works by first creating a temp folder, generating the rails app there, renaming the app folder to trunk, creating the accompanying branches and tags folder, and then deleting/renaming a bunch of non-essential files. Once that’s done it imports the three folders into a specified subversion repository. Once the import is complete, the temp folder is deleted and then the trunk is checked out. Finally it cleans-up by copying the database.yml file and ignoring the tmp and log folders. That’s it.

(more…)

I decided to try my hand at hacking Firefox. I’m a big fan of the Wayback Machine and after checking out the list of Firefox search plugins, I noticed one for the WM was missing. Seeing how they give you instructions on how to create one of your own, I figured I’d give it a go.

(more…)