over9000 blog
what is your power level?
Browse: Home / rails

rails

Coding a Facebook canvas app in rails – my struggles

By sarah on February 8, 2015

Back in October 2014 i had an interesting project. My task was to build a canvas facebook app for an existing web app called wishlist. My first thought was, how hard could it be? You just do what you do every day, coding a rails app. It could be very hard. I had some struggles […]

Posted in javascript, rails | Tagged canvas app, facebook, rails | Leave a response

How to upgrade a very old restful_authentication to devise

By sarah on April 23, 2013

Recently i had to upgrade a rails 2 app to rails 3.2. It wasn’t as difficult as i thought first, but i struggled with one task: authentication. The old app used a very old, not anymore supported version of restful_authentication. Restful_authentication was the then standard plugin for authentication, but is now out-dated. So i decided […]

Posted in rails | Tagged authentication, rails | 2 Responses

periodic cache regeneration with rails redis and a spider

By phm on February 22, 2012

today i want to continue my little series about how to use redis as rails cache. i will show you how to build a caching system that does not rely on cache invalidation and is able to constantly deliver up to date cached results.

Posted in caching with redis, databases, rails | Tagged caching, rails, redis, regneration, spider | Leave a response

revealing module pattern in coffeescript

By phm on February 21, 2012

if none of the two terms in the title tell you anything, you have some serious reading todo. first off learn and love coffeescript. second of all get to know some javascript design patterns. why? because it helps you to write a lot better clearer code in a very weird language. so my design pattern […]

Posted in javascript, rails | Tagged coffeescript, javascript, rails | Leave a response

rails caching with redis – invalidation done right

By phm on February 16, 2012

in my last article about using redis as rails cache i used the redis ‘keys’ function to invalidate cache. as my readers noted, and i experienced myself, this is not a good idea if you plan on storing a few million keys in your redis-db. so today we’ll look at how to do this invalidation […]

Posted in caching with redis, databases, rails, ruby | Tagged caching, invalidation, rails, redis | 6 Responses

some postgresql advice for rails programmers

By phm on January 14, 2012

postgresql has grown to the most beloved database in the rails community. so as more and more rails developers start using it the more common mistakes get made. today i want to give some general advice to follow when using postgresql in a rails app.

Posted in databases, rails | Tagged postgresql, rails | 3 Responses

using redis to track and uniquify impressions with rails

By phm on January 13, 2012

as redis has become the number one contender for memcaches throne of key-value storage engines. it deserves a closer look why so many rails developers are flocking to it. redis has a set of commands and functions that enable endless possibilities to those creative enough to use them in a new way. today i want […]

Posted in databases, rails, ruby | Tagged rails, redis | 1 Response

high performance rails caching with redis and nginx

By phm on January 13, 2012

here at rapidrabbit we deliver many 1,000 requests per second. doing this while only using a handful of servers and ruby on rails we employ very clever caching using redis and nginx. once the cache is written, it is directly accessed by nginx via a module, which makes it around 500-2,000 times faster than any […]

Posted in caching with redis, databases, linux, rails | Tagged caching, nginx, rails, redis | 9 Responses

Search

Categories

  • linux
  • javascript
  • caching with redis
  • databases
  • ruby
  • rails

Archives

  • February 2015
  • December 2014
  • September 2014
  • August 2014
  • September 2013
  • April 2013
  • February 2012
  • January 2012
  • October 2010
  • September 2010

Copyright © 2025 over9000 blog.