Aug05

Ruby vs. MySQL (or, the day I learned about Benchmark)

I was writing a small Rails app for work to allow faculty and students to sign up for various events. So I had a Signup model :has_many timeslots that :has_many people. I needed to retrieve the email addresses for people that had signed up for timeslots after a certain time (i.e. all the people that had registered for a timeslot after Saturday at 10:00). Since the timeslots may not be in chronological order, I couldn't find timeslots by a timeslot id.

Continue reading »

Aug01

jQuery tab navigation AJAX page loading tutorial

Very nice! I love how light jQuery is. Thanks for this tutorial, it made my life so much easier.

Jul24

The joy of programming

Gustavo Duarte has an excellent article on the joys of programming. He notes "Under the right conditions, writing software is so intensely pleasurable it should be illegal." and he's right.

Continue reading »

Jul14

Problems with FTP

While I believed SFTP to be more secure, I had no idea about the various shortcomings of FTP. Definitely switching all my Transmit bookmarks to use SFTP right now.

Jul14

RubyGem 1.2 and problems with SQLite

Luke, give me an email when you get a chance. I want to talk mac with you. Thanks, Colin

Jun16

FF3 and Safari 3 compared

Another reason to like the Mac community is this comparison of Safari and Firefox 3 rendering styles. The fact that there are people that care this much about title bar gradients shows why Mac community's emphasis on look and feel contribute to the overall user experience.

Continue reading »

Jun03

That little thing called "user experience"

From an article on iPhone inroads into the Enterprise

Continue reading »

May25

Useless content on the web

The big moose we need to put on the table is that people have learned to ignore information on the web that is irrelevant to their task at hand. Google Adwords work because people are actively searching, and the ad units sometimes add value. When updating our profiles on Facebook or watching videos on YouTube, we simply have no reason to give ads any attention. That's why at least one fellow blogger called Facebook "the worst traffic on the net."

Continue reading »

May21

The unexpected dangers of rescuing ActiveRecord find methods in a model

Overriding ActiveRecord's find method is always a mixed bag.

Out of curiousity, what does your slug format look like? If it begins with the ID of the record, you can still pass it into a standard Page.find() call, and the .to_i conversion will strip off everything after the record ID.

Apr29

dynamic find_by_* methods in Rails

In looking at my logs, it many people come to this site based on the find_by_name text in the header. If you are such a person, I assume you are new to Rails and are wanting to learn more about it. Here's a few tips:

Continue reading »
Archive