Me
About
Gallery
Company
Girl


Projects
Ruby on Rails
Basecamp
Highrise
Backpack
Campfire
Ta-da List
Writeboard


More
Feed
Archives

January 19, 23:46

Make your Ta-da list today

Todo lists have long been one of the favorite features in Basecamp, so we thought it would be a nice experiment to share that particular feature with the world at large. Free of charge. And Ta-da List was born!

A few user-oriented highlights of Ta-da:

  • Extensive use of XMLHttpRequest: Adding new items and checking them on and off are done with remote calls that change their state in the database while simultaneously updating the view using Javascript. This makes it really, really fast to add new items to a list — and you're not restricted by the 10 predefined fields that most apps like this does.
  • Loose sharing with unique URLs: Sharing a list with a single or group of buddies is easier than ever as there is no password to remember. Instead, everyone just gets a unique URL that they can bookmark right away. At 32 characters and as a MD5 hash, it's plenty of security for this type of application and much easier to use.
  • Collecting all the shares: By allowing you to share any list with any email address, we already got the viral thing going. The barrier of signing up has been postponed until you're hooked, and once you are, you automatically collect all the shares as you signup. This means that they're all available from your dashboard and you can reduce the bookmarked lists down to one URL.

And for the technically inclined:

  • Three levels of caching: I implemented page, action, and fragment caching for the Action Pack in Rails so I could be able to use it in Ta-da. And it's working exceedingly well. Lots of pages went from 50-70 req/sec to 400-1100 req/sec due to caching.
  • 579 lines of code: That's including models, controllers, and helpers. It's really lean and really readable too. It was great to see just how small you can make an application with a recent version of Rails (especially the 0.9.x series) on a fresh code base. In Basecamp, I'm often working on code that predates the release of Rails, so it's a nice change of scenery.
  • Finally FastCGI: Basecamp is still running mod_ruby for various reasons, but Ta-da is fresh out the gate on FastCGI. And what a difference it makes in memory consumption! We're currently running five FCGI processes (which is more than plenty) that come in at about 15MB a piece. On top of that, we got 50 Apache processes at just around 3.5MB a piece. That's just 250MB for the entire setup. Much unlike the situation on Basecamp where we have 40-60 Apache processes of 40MB a piece.

In addition, it seems we're off to a flying start as we blew through 1,000 people signed up in just a matter of hours! And it's getting blogged all over the place. Justin French has a really nice post about how he switched his workflow over. And Tobias Luetke already whipped up a script to integrate Ta-da into your site using Ruby.


Challenge by Chriztian Steinmeier on January 19, 23:54

I can see you're looking for a DHTML Calendar Widget - I've built one, mimicking the one in PalmOS, that you could check out - hvis det var noget...?

Challenge by Matt Albright on January 20, 0:34

I don't understand where the extra memory footprint comes from between fastcgi and mod_ruby. I would think the footprint of a mod_ruby process would be the sum of a dry apache process and the ruby process... do you have any idea why it is so much smaller?

Challenge by David Heinemeier Hansson on January 20, 0:46

The problem is that mod_ruby is married to the Apache process. And since its random which request hits what process, you end up with all the Apache processes holding the entire Ruby image with all of Rails loaded.

This is unfortunate as I think Basecamp could probably get by with 10-15 FCGI processes and then have stripped down Apache processes for serving images and other statics. That way we could have 10-15 FCGI processes at perhaps 35mb a piece. And then another 40-50 Apache processes at just 3.5MB a piece.

Much lower overall consumption.

Challenge by Matt Albright on January 20, 1:05

Oh, right... I was trying to compare apples to oranges... process size for Ta-da vs. process size for Basecamp.

I understand what you're saying now... you can get by with less "fat" processes by having "thin" image serving apache processes.

I thought (actually hoped) you were saying that there was some per-process memory savings to be gained by switching from mod_ruby to fastcgi. Now I realize you were just saying you gould get by with a smaller number of big processes using fastcgi.

Challenge by RonaldMatt on January 20, 14:45

Non-english todo list can't display correctly in browser.

Challenge by Julian "brainbomb" Suschlik on January 20, 17:11

Using lighttpd (http://www.lighttpd.net/) you can decrease your memory-footprint down to 350kB/instance with full FCGI-fuctionality.
http://www.lighttpd.net/ itself uses ruby and rubyonrails.

Challenge by Andrew on January 20, 17:47

Excellent work, as always, David.

I have a question about your use of XMLHttpRequest. It seems like you're using it simply as a mechanism to send data to the server without a page refresh and there's actually no XML involved. Is this correct? If so, why not just do a regular page request and have the server return a 204 (no response) code. I believe that this would accomplish the same thing without any worries about browser compatability (and with less lines of code). Or am I missing something?

Challenge by Dave on January 22, 7:06

Hi,

I found a simple highlight bug. On Mozilla Firefox 1.0, when you reorder the list and move an item, the fading-highlight effect works great, but if you click on 'My Lists' and go back to that same list, the item you just moved is fully highlighted again.

Great job,
Dave

Challenge by Chriztian Steinmeier on January 23, 23:20

Andrew: When creating new items the server returns the ID of the new item, thus a response is needed. Checking items on and off does not require return values though...

Challenge by Mhenry on February 01, 23:45

I have to second the lighttpd (www.lighttpd.net) comment above.

It has a MUCH smaller footprint than Apache does, and is a lot faster at serving static content. Funny thing is, it's also easier to configure.

It's a shame the documentation isn't perfect, but it is getting better.

Challenge by abba on March 22, 9:21

de Mikel-Angelo. Ni decidis uzi kontrau li rimedon, per kiu ni venkis jam multajn gvidistojn -- malsago kaj idiotaj demandoj. Ci tiuj kreitajoj nenion suspektas -- ili tute ne komprenas la sarkasmon. Neniam dum mia vivo mi estis tiel kontenta, tiel trankvila, tiel plena de bena paco, kiel hierau, kiam mi eksciis, ke Mikel-Angelo ne vivas plu. Ni eltiris ci tiun sciigon el nia gvidisto. Li kondukis nin tra mejloj da pentrajoj kaj skulptajoj en la vastaj koridoroj de Vatikano, tra mejloj da pentrajoj kaj skulptajoj en dudek aliaj palacoj; li montris al ni la grandan pentrajon de la Siksta Kapelo kaj freskojn, kiuj suficus por freskigi la tutan cielon, -- preskau cio estis farita de Mikel-Angelo. Ni decidis uzi kontrau li rimedon, per kiu ni venkis jam multajn gvidistojn -- malsago kaj idiotaj demandoj. Ci tiuj kreitajoj nenion suspektas -- ili tute ne komprenas la sarkasmon.

Challenge by play blackjack online on May 08, 10:31

You are invited to visit some helpful info dedicated to poker stars poker stars http://www.juris-net.com/poker-stars.html buy poker chips buy poker chips http://www.juris-net.com/buy-poker-chips.html wholesale poker supplies wholesale poker supplies http://www.juris-net.com/wholesale-poker-supplies.html afx slot cars afx slot cars http://www.juris-net.com/afx-slot-cars.html green valley ranch casino green valley ranch casino http://www.juris-net.com/green-valley-ranch-casino.html casino employment casino employment http://www.juris-net.com/casino-employment.html video keno video keno http://www.juris-net.com/video-keno.html buy slot machines buy slot machines http://www.juris-net.com/buy-slot-machines.html learn poker learn poker http://www.juris-net.com/learn-poker.html roulette strategy roulette strategy http://www.juris-net.com/roulette-strategy.html highest percentage casino bonuses highest percentage casino bonuses http://www.juris-net.com/highest-percentage-casino-bonuses.html ballys casino ballys casino http://www.juris-net.com/ballys-casino.html craps instructions craps instructions http://www.juris-net.com/craps-instructions.html gambling book gambling book http://www.juris-net.com/gambling-book.html download craps download craps http://www.juris-net.com/download-craps.html bet gambling sports bet gambling sports http://www.juris-net.com/bet-gambling-sports.html robert berman gambling robert berman gambling http://www.juris-net.com/robert-berman-gambling.html play free strip blackjack online play free strip blackjack online http://www.juris-net.com/play-free-strip-blackjack-online.html dr blackjack dr blackjack http://www.juris-net.com/dr-blackjack.html psionic gambling psionic gambling http://www.juris-net.com/psionic-gambling.html dc 7 craps dc 7 craps http://www.juris-net.com/dc-7-craps.html black jack definition black jack definition http://www.juris-net.com/black-jack-definition.html use case blackjack use case blackjack http://www.juris-net.com/use-case-blackjack.html blackjack johnson blackjack johnson http://www.juris-net.com/blackjack-johnson.html microsoft port blackjack microsoft port blackjack http://www.juris-net.com/microsoft-port-blackjack.html blackjack affiliate blackjack affiliate http://www.juris-net.com/blackjack-affiliate.html free games slots black jack free games slots black jack http://www.juris-net.com/free-games-slots-black-jack.html hotels in fargo north dakota with blackjack hotels in fargo north dakota with blackjack http://www.juris-net.com/hotels-in-fargo-north-dakota-with-blackjack.html how to win at black jack how to win at black jack http://www.juris-net.com/how-to-win-at-black-jack.html leon roulette leon roulette http://www.juris-net.com/leon-roulette.html roulette bet roulette bet http://www.juris-net.com/roulette-bet.html roulette wheel genetic algorithms code java roulette wheel genetic algorithms code java http://www.juris-net.com/roulette-wheel-genetic-algorithms-code-java.html super keno super keno http://www.juris-net.com/super-keno.html keno results for massachusetts keno results for massachusetts http://www.juris-net.com/keno-results-for-massachusetts.html keno winning keno winning http://www.juris-net.com/keno-winning.html ...

Challenge by play blackjack online on May 08, 10:32

You are invited to visit some helpful info dedicated to poker stars poker stars http://www.juris-net.com/poker-stars.html buy poker chips buy poker chips http://www.juris-net.com/buy-poker-chips.html wholesale poker supplies wholesale poker supplies http://www.juris-net.com/wholesale-poker-supplies.html afx slot cars afx slot cars http://www.juris-net.com/afx-slot-cars.html green valley ranch casino green valley ranch casino http://www.juris-net.com/green-valley-ranch-casino.html casino employment casino employment http://www.juris-net.com/casino-employment.html video keno video keno http://www.juris-net.com/video-keno.html buy slot machines buy slot machines http://www.juris-net.com/buy-slot-machines.html learn poker learn poker http://www.juris-net.com/learn-poker.html roulette strategy roulette strategy http://www.juris-net.com/roulette-strategy.html highest percentage casino bonuses highest percentage casino bonuses http://www.juris-net.com/highest-percentage-casino-bonuses.html ballys casino ballys casino http://www.juris-net.com/ballys-casino.html craps instructions craps instructions http://www.juris-net.com/craps-instructions.html gambling book gambling book http://www.juris-net.com/gambling-book.html download craps download craps http://www.juris-net.com/download-craps.html bet gambling sports bet gambling sports http://www.juris-net.com/bet-gambling-sports.html robert berman gambling robert berman gambling http://www.juris-net.com/robert-berman-gambling.html play free strip blackjack online play free strip blackjack online http://www.juris-net.com/play-free-strip-blackjack-online.html dr blackjack dr blackjack http://www.juris-net.com/dr-blackjack.html psionic gambling psionic gambling http://www.juris-net.com/psionic-gambling.html dc 7 craps dc 7 craps http://www.juris-net.com/dc-7-craps.html black jack definition black jack definition http://www.juris-net.com/black-jack-definition.html use case blackjack use case blackjack http://www.juris-net.com/use-case-blackjack.html blackjack johnson blackjack johnson http://www.juris-net.com/blackjack-johnson.html microsoft port blackjack microsoft port blackjack http://www.juris-net.com/microsoft-port-blackjack.html blackjack affiliate blackjack affiliate http://www.juris-net.com/blackjack-affiliate.html free games slots black jack free games slots black jack http://www.juris-net.com/free-games-slots-black-jack.html hotels in fargo north dakota with blackjack hotels in fargo north dakota with blackjack http://www.juris-net.com/hotels-in-fargo-north-dakota-with-blackjack.html how to win at black jack how to win at black jack http://www.juris-net.com/how-to-win-at-black-jack.html leon roulette leon roulette http://www.juris-net.com/leon-roulette.html roulette bet roulette bet http://www.juris-net.com/roulette-bet.html roulette wheel genetic algorithms code java roulette wheel genetic algorithms code java http://www.juris-net.com/roulette-wheel-genetic-algorithms-code-java.html super keno super keno http://www.juris-net.com/super-keno.html keno results for massachusetts keno results for massachusetts http://www.juris-net.com/keno-results-for-massachusetts.html keno winning keno winning http://www.juris-net.com/keno-winning.html ...

Challenge by play blackjack online on May 08, 10:32

You are invited to visit some helpful info dedicated to poker stars poker stars http://www.juris-net.com/poker-stars.html buy poker chips buy poker chips http://www.juris-net.com/buy-poker-chips.html wholesale poker supplies wholesale poker supplies http://www.juris-net.com/wholesale-poker-supplies.html afx slot cars afx slot cars http://www.juris-net.com/afx-slot-cars.html green valley ranch casino green valley ranch casino http://www.juris-net.com/green-valley-ranch-casino.html casino employment casino employment http://www.juris-net.com/casino-employment.html video keno video keno http://www.juris-net.com/video-keno.html buy slot machines buy slot machines http://www.juris-net.com/buy-slot-machines.html learn poker learn poker http://www.juris-net.com/learn-poker.html roulette strategy roulette strategy http://www.juris-net.com/roulette-strategy.html highest percentage casino bonuses highest percentage casino bonuses http://www.juris-net.com/highest-percentage-casino-bonuses.html ballys casino ballys casino http://www.juris-net.com/ballys-casino.html craps instructions craps instructions http://www.juris-net.com/craps-instructions.html gambling book gambling book http://www.juris-net.com/gambling-book.html download craps download craps http://www.juris-net.com/download-craps.html bet gambling sports bet gambling sports http://www.juris-net.com/bet-gambling-sports.html robert berman gambling robert berman gambling http://www.juris-net.com/robert-berman-gambling.html play free strip blackjack online play free strip blackjack online http://www.juris-net.com/play-free-strip-blackjack-online.html dr blackjack dr blackjack http://www.juris-net.com/dr-blackjack.html psionic gambling psionic gambling http://www.juris-net.com/psionic-gambling.html dc 7 craps dc 7 craps http://www.juris-net.com/dc-7-craps.html black jack definition black jack definition http://www.juris-net.com/black-jack-definition.html use case blackjack use case blackjack http://www.juris-net.com/use-case-blackjack.html blackjack johnson blackjack johnson http://www.juris-net.com/blackjack-johnson.html microsoft port blackjack microsoft port blackjack http://www.juris-net.com/microsoft-port-blackjack.html blackjack affiliate blackjack affiliate http://www.juris-net.com/blackjack-affiliate.html free games slots black jack free games slots black jack http://www.juris-net.com/free-games-slots-black-jack.html hotels in fargo north dakota with blackjack hotels in fargo north dakota with blackjack http://www.juris-net.com/hotels-in-fargo-north-dakota-with-blackjack.html how to win at black jack how to win at black jack http://www.juris-net.com/how-to-win-at-black-jack.html leon roulette leon roulette http://www.juris-net.com/leon-roulette.html roulette bet roulette bet http://www.juris-net.com/roulette-bet.html roulette wheel genetic algorithms code java roulette wheel genetic algorithms code java http://www.juris-net.com/roulette-wheel-genetic-algorithms-code-java.html super keno super keno http://www.juris-net.com/super-keno.html keno results for massachusetts keno results for massachusetts http://www.juris-net.com/keno-results-for-massachusetts.html keno winning keno winning http://www.juris-net.com/keno-winning.html ...

Challenge by free poker on June 21, 9:21

You can also check out some helpful info on free poker free poker http://www.poker-adventure.com/free-poker.html ... Thanks!!!

Challenge by weight loss pills on June 24, 7:13

In your free time, take a look at some information dedicated to online pharmacy online pharmacy http://www.thebest-pills/online-pharmacy.html pharmacy pharmacy http://www.thebest-pills/pharmacy.html weight loss pills weight loss pills http://www.thebest-pills/weight-loss-pills.html ... Thanks!!!