• vote
    6
    0 starstomfakes | Shared With: Everyone - Jan 22 2009 | blogs

    Quoted: 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

    You must be Tom's friend before you can comment on this Fave.
    Send Tom a friend request or a personal message instead.

Related Faves from tomfakes

  • vote
    6
    0 starstomfakes | Shared With: Everyone - May 16 2009 | blogs
    Offbeat Creations company web site now live!

    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

  • vote
    1
    0 starstomfakes | Shared With: Everyone - May 14 2009 | blogs
    Cool Birthday Gifts from my wife

    Quoted: Lisa got me a few cool t-shirts for my birthday. I think my favorite is the Rock-Paper-Scissors-Lizard-Spock shirt pictured left. This shirt can be got from ThinkGeek, so you too can have the best geek shirt in town!

  • vote
    3
    0 starstomfakes | Shared With: Everyone - May 11 2009 | blogs
    Rails Time Zones and Custom database queries

    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

  • vote
    8
    0 starstomfakes | Shared With: Everyone - May 08 2009 | blogs
    Accessing your database from Rails Metal

    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.

  • vote
    1
    0 starstomfakes | Shared With: Everyone - Mar 27 2009 | blogs
    Performance with MySQL and paginating large tables

    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

  • vote
    1
    0 starstomfakes | Shared With: Everyone - Dec 29 2008 | blogs

    Quoted: 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 -

  • vote
    1
    0 starstomfakes | Shared With: Everyone - Dec 12 2008 | blogs

    Quoted: 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

  • vote
    2
    0 starstomfakes | Shared With: Everyone - Dec 05 2008 | blogs

    Quoted: 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

  • vote
    8
    0 starstomfakes | Shared With: Everyone - Dec 02 2008 | blogs
    Food Fling makes the top 10 Facebook gifting apps

    Quoted: Food Fling was listed in the Inside Social Games Top Ten gifting apps on Facebook today! W00t!