tomfakes | Shared With: Everyone - Jan 22 2009 | blogsQuoted: I ran into a problem today where I had SQL queries taking a really long time to execute and I had pages timing out. After a lot of investigation, I found a strange behavior that I didn't expect that was killing my application. I'm using Rails 2.1.1 and I have a named scope that looks like this: @data = Foo.something.another_thing.limited(10) The
ShareViewed: 6 Times
tomfakes | Shared With: Everyone - May 16 2009 | blogs
Quoted: We've been building Offbeat Creations for over a year now, and we just managed to find enough time to actually put together a web site for the company! We're using the Radiant CMS to run this, to allow us to change the content quickly and easily. I'm still not very comfortable with the way Radiant works, but it does get the job done. Check us out
ShareViewed: 6 Times
tomfakes | Shared With: Everyone - May 14 2009 | blogs
tomfakes | Shared With: Everyone - May 11 2009 | blogs
Quoted: I've been using Rails for so long without caring about how Time Zone's are processed, that when I recently built a new application with Rails 2.3, I decided that I needed to care about the support for Time Zones since Rails 2.1 Technically, my new app doesn't really care about time zones, so I could have just left the whole thing alone, but I wanted
ShareViewed: 3 Times
tomfakes | Shared With: Everyone - May 08 2009 | blogs
Quoted: I was interested in using the new Rails Metal system for a project I've been building. What I want this code to do is take parameters out of the URL and write a record to my database to record these parameters. This is my first application built with Rails 2.3, and the first application in my company to use Rails Metal in a production environment.
ShareViewed: 8 Times
tomfakes | Shared With: Everyone - Mar 27 2009 | blogs
Quoted: If you're using the will_paginate Rails plugin to manage the amount of data that you show to the user on a single page, there is a gotcha that comes into play as your data gets bigger. The default display of the pagination buttons for shows links that can take you to the last page of the set. If you only have a few thousand records, you'll never notice
tomfakes | Shared With: Everyone - Dec 29 2008 | blogsQuoted: My current desktop computer just had a power supply failure due to having a too powerful graphics card in the machine. Due to it being a non-standard Dell, replacing the power supply doesn't solve my problem, and I can't put a bigger one in that machine. Time to build a new PC! Recently, Intel introduced their new i7 processor. Quad core, 2.66 -
ShareViewed: 1 Time
tomfakes | Shared With: Everyone - Dec 12 2008 | blogsQuoted: Why on earth would I want to run a Facebook application on my laptop? Surely these apps are meant to be used by lots of users and they shouldn't stop running when I turn my computer off! The only reason you'll need to do this is during development. I run my apps on my laptop, behind a firewall, either at home, or on the road - so my IP address isn't
ShareViewed: 1 Time
tomfakes | Shared With: Everyone - Dec 05 2008 | blogsQuoted: The typical way I'd write code that used fragment caching looked like this. Contollerdef foo unless read_fragment('key') do @data = Model.get_some_data endend View<% cache('key') do %> <%= do_something_with @data %><% end %> The fragment caching adds extra work to the controller code to avoid doing the work that didn't need
ShareViewed: 2 Times
tomfakes | Shared With: Everyone - Dec 02 2008 | blogs
Quoted: Food Fling was listed in the Inside Social Games Top Ten gifting apps on Facebook today! W00t!
ShareViewed: 7 Times


Send Tom a friend request or a personal message instead.