pastbedti.me
Handling a staging environment with capistrano / rails - It's past my bedtime
http://www.pastbedti.me/2009/01/handling-a-staging-environment-with-capistrano-rails
It's past my bedtime. Handling a staging environment with capistrano / rails. Just before christmas I worked with one of our customers new server cluster or cloud if you may. This cluster has production nodes and staging nodes and this post is about how to get capistrano to play nice with both production and the staging environment. Blog A post about a plugin called multistage. I do not how I could miss that 😉. But as my solution is so simple I will continue this post and show you anyway. 0;31m # # # # ...
pastbedti.me
stjernstrom - It's past my bedtime
http://www.pastbedti.me/author/admin
It's past my bedtime. Multipart mail order with devise and rails. Seems like the most trivial thing to do, but I could not find any information about changing the sort order when sending multipart emails from devise. First, create a custom mailer for devise https:/ github.com/plataformatec/devise/wiki/How-To:-Use-custom-mailer. Then add parts order to the default hash. Default from: 'user@domain.com'. Parts order: [. Thats it. And oh, this works for any other mailer to. Id, :like count. At May 19th, 2012...
pastbedti.me
Multipart mail order with devise and rails - It's past my bedtime
http://www.pastbedti.me/2013/03/multipart-mail-order-with-devise-and-rails
It's past my bedtime. Multipart mail order with devise and rails. Seems like the most trivial thing to do, but I could not find any information about changing the sort order when sending multipart emails from devise. First, create a custom mailer for devise https:/ github.com/plataformatec/devise/wiki/How-To:-Use-custom-mailer. Then add parts order to the default hash. Default from: 'user@domain.com'. Parts order: [. Thats it. And oh, this works for any other mailer to. Subscribe to my RSS Feed.
pastbedti.me
Projects - It's past my bedtime
http://www.pastbedti.me/projects
It's past my bedtime. Here i will try to collect some of my projects/experiments. Some might be useful and some just interesting or dumb 😉. My open source projects. PgMulticaster – PostgreSQL replication with multicast (more info soon). 8211; Make your capistrano output colorful. 8211; Simple vim plugin for executing a ruby buffer or a selected block of ruby code. Open source projects I have in some way contributed to. 8211; slim-rails provides Slim generators for Rails 3. 8211; RSpec TextMate Bundle.
pastbedti.me
mailer - It's past my bedtime
http://www.pastbedti.me/tag/mailer
It's past my bedtime. Multipart mail order with devise and rails. Seems like the most trivial thing to do, but I could not find any information about changing the sort order when sending multipart emails from devise. First, create a custom mailer for devise https:/ github.com/plataformatec/devise/wiki/How-To:-Use-custom-mailer. Then add parts order to the default hash. Default from: 'user@domain.com'. Parts order: [. Thats it. And oh, this works for any other mailer to. Subscribe to my RSS Feed.
pastbedti.me
performance - It's past my bedtime
http://www.pastbedti.me/tag/performance
It's past my bedtime. How I decreased my Rails startup time by 60%. Today I decreased my Ruby On Rails boot time by 60%, Yay! All credit goes to funny-falcon. For the patches and Burke. Who posted the Gist). I removed 26 gems from my Gemfile and I noticed a boost with a couple of seconds. From that I begun searching for large Gemfile problems and I stumbled on this gist https:/ gist.github.com/1688857. It a pretty long page, so I will just summarize how I got my 60%. Build package combined patch (. A try...
pastbedti.me
How I decreased my Rails startup time by 60% - It's past my bedtime
http://www.pastbedti.me/2012/02/how-i-decreased-my-rails-startup-time-by-60
It's past my bedtime. How I decreased my Rails startup time by 60%. Today I decreased my Ruby On Rails boot time by 60%, Yay! All credit goes to funny-falcon. For the patches and Burke. Who posted the Gist). I removed 26 gems from my Gemfile and I noticed a boost with a couple of seconds. From that I begun searching for large Gemfile problems and I stumbled on this gist https:/ gist.github.com/1688857. It a pretty long page, so I will just summarize how I got my 60%. Build package combined patch (. Funny...
pastbedti.me
optimize - It's past my bedtime
http://www.pastbedti.me/tag/optimize
It's past my bedtime. How I decreased my Rails startup time by 60%. Today I decreased my Ruby On Rails boot time by 60%, Yay! All credit goes to funny-falcon. For the patches and Burke. Who posted the Gist). I removed 26 gems from my Gemfile and I noticed a boost with a couple of seconds. From that I begun searching for large Gemfile problems and I stumbled on this gist https:/ gist.github.com/1688857. It a pretty long page, so I will just summarize how I got my 60%. Build package combined patch (. The d...
pastbedti.me
activerecord - It's past my bedtime
http://www.pastbedti.me/tag/activerecord
It's past my bedtime. Rails: How to increment a counter without touching updated at or serialized columns. When you have a table with serialized columns active record will always treat them as dirty. It can create unnecessary overhead when just incrementing a simple counter. Fortunately rails has a method that just update the counter and nothing else. If you have a Movie model with a counter named like count. And you would like to increment it by one you would use the following method. Id, :like count.