Erik A. Hanson's Weblog

Archive for October, 2007

My time zone solution: RelativeDate.js and ServerTime.js

Posted: Wednesday, October 31st, 2007    Tags: Javascript, My Software, Ruby on Rails, Web development, wshlst.com

For my wshlst.com project, I needed to show when each item or comment was created or edited. My initial implementation was to just show the time and date of the change, but people who aren’t in the same time zone as my server didn’t like the fact that it showed a different time zone.
I contemplated [...]

wshlst.com: A Webapp With A Pure-Javascript UI

Posted: Thursday, October 25th, 2007    Tags: Javascript, My Software, Web development, wshlst.com

I created a little wish list website called wshlst.com for my family to use. (Read more about it here.) I worked on it a little bit before Christmas last year, and a little bit again this year.
It’s been a lot of fun to write, and one reason is that the entire UI is written in [...]

Introducing wshlst.com

Posted: Wednesday, October 24th, 2007    Tags: My Software, wshlst.com

wshlst.com is a wish list website I created for my family to use.
It differs from other wish list sites in a few ways: it’s group-oriented, it allows people to add items to other peoples’ wish lists (secretly, if desired), and it allows people to discuss wish list items (again, secretly, if desired). The result [...]

A Ruby Script to Concatenate and Compress Javascript Files

Posted: Tuesday, October 16th, 2007    Tags: Javascript, Web development

I’ve got an HTML page that includes a bunch of Javascript files, which makes development easy but which hurts performance in production.
The standard solution is to concatenate all the Javascript files into one big file and then compress it. I wanted it to be automated of course, and I wanted to do it at deploy-time, [...]