<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="0.92">
<channel>
	<title>It's past my bedtime</title>
	<link>http://www.pastbedti.me</link>
	<description>About ruby, rails, postgresql and stuff....</description>
	<lastBuildDate>Wed, 27 Mar 2013 08:42:27 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	<!-- generator="WordPress/3.2.1" -->

	<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/xml" href="http://feeds.feedburner.com/pastbedtime" /><feedburner:info uri="pastbedtime" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Multipart mail order with devise and rails</title>
		<description>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. 123class DeviseMailer &amp;#60; Devise::Mailer &amp;#160; default from: 'user@domain.com', parts_order: &amp;#91; &amp;#34;text/plain&amp;#34;, &amp;#34;text/html&amp;#34; &amp;#93; end [...]&lt;img src="http://feeds.feedburner.com/~r/pastbedtime/~4/uS8ZIWQL6T4" height="1" width="1"/&gt;</description>
		<link>http://feedproxy.google.com/~r/pastbedtime/~3/uS8ZIWQL6T4/</link>
			<feedburner:origLink>http://www.pastbedti.me/2013/03/multipart-mail-order-with-devise-and-rails/</feedburner:origLink></item>
	<item>
		<title>Rails: How to increment a counter without touching updated_at or serialized columns</title>
		<description>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. apidock: update_counters If you have a Movie model with a counter named like_count and you [...]&lt;img src="http://feeds.feedburner.com/~r/pastbedtime/~4/0Abv_BX17DA" height="1" width="1"/&gt;</description>
		<link>http://feedproxy.google.com/~r/pastbedtime/~3/0Abv_BX17DA/</link>
			<feedburner:origLink>http://www.pastbedti.me/2012/05/rails-how-to-increment-a-counter-without-touching-updated_at-or-serialized-columns/</feedburner:origLink></item>
	<item>
		<title>Learn capistrano to talk</title>
		<description>If you are on OSX you can learn Capistrano to talk. And when you do, he can tell you when your deploy is done. Just add the following task to your deploy.rb 123task :do_speak do &amp;#160; system&amp;#40;&amp;#34;/usr/bin/say -r 250 -v Zarvox 'Sir, your #{rails_env} deploy is done'&amp;#34;&amp;#41; end And hook it up to run after [...]&lt;img src="http://feeds.feedburner.com/~r/pastbedtime/~4/H-M63AdGZHo" height="1" width="1"/&gt;</description>
		<link>http://feedproxy.google.com/~r/pastbedtime/~3/H-M63AdGZHo/</link>
			<feedburner:origLink>http://www.pastbedti.me/2012/05/learn-capistrano-to-talk-for-osx-users/</feedburner:origLink></item>
	<item>
		<title>How I decreased my Rails startup time by 60%</title>
		<description>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 [...]&lt;img src="http://feeds.feedburner.com/~r/pastbedtime/~4/xT3zkJA5jhY" height="1" width="1"/&gt;</description>
		<link>http://feedproxy.google.com/~r/pastbedtime/~3/xT3zkJA5jhY/</link>
			<feedburner:origLink>http://www.pastbedti.me/2012/02/how-i-decreased-my-rails-startup-time-by-60/</feedburner:origLink></item>
	<item>
		<title>Change PATH environment with Rails and Capistrano</title>
		<description>Note to self. When deploying my RubyOnRails applications with Capistrano and I get errors like this one 12345servers: &amp;#91;&amp;#34;app.myserver.com&amp;#34;&amp;#93; &amp;#91;app.myserver.com&amp;#93; executing command ** &amp;#91;out :: app.myserver.com&amp;#93; sh: bundle: command not found command finished in 31ms servers: &amp;#91;&amp;#34;app.myserver.com&amp;#34;&amp;#93; &amp;#160; &amp;#160;&amp;#91;app.myserver.com&amp;#93; executing command ** &amp;#91;out :: app.myserver.com&amp;#93; sh: bundle: command not found &amp;#160; &amp;#160;command finished in 31ms [...]&lt;img src="http://feeds.feedburner.com/~r/pastbedtime/~4/DuD8H0-daQ8" height="1" width="1"/&gt;</description>
		<link>http://feedproxy.google.com/~r/pastbedtime/~3/DuD8H0-daQ8/</link>
			<feedburner:origLink>http://www.pastbedti.me/2011/06/change-path-environment-with-rails-and-capistrano/</feedburner:origLink></item>
	<item>
		<title>Batch rename files with spaces in linux/bash</title>
		<description>A reminder for myself how to batch rename files with spaces in bash. This is how i rename files with space to have underscores instead. DO NOT blame me if this commando erases all your files I found several examples how to do this when googling but they all failed. Some of them did nothing [...]&lt;img src="http://feeds.feedburner.com/~r/pastbedtime/~4/_aGz5qepyy4" height="1" width="1"/&gt;</description>
		<link>http://feedproxy.google.com/~r/pastbedtime/~3/_aGz5qepyy4/</link>
			<feedburner:origLink>http://www.pastbedti.me/2010/10/batch-rename-files-with-spaces-in-linuxbash/</feedburner:origLink></item>
	<item>
		<title>Nokogiri quote</title>
		<description>I just have to share this funny quote from the nokogiri website (for those of you that does not know 鋸 it&amp;#8217;s a reeeeeeeeaaally good and fast HTML, XML, SAX, and Reader parser). XML is like violence &amp;#8211; if it doesn’t solve your problems, you are not using enough of it. &amp;#8211; http://nokogiri.org/ Cheers!&lt;img src="http://feeds.feedburner.com/~r/pastbedtime/~4/NvxNXYKM79U" height="1" width="1"/&gt;</description>
		<link>http://feedproxy.google.com/~r/pastbedtime/~3/NvxNXYKM79U/</link>
			<feedburner:origLink>http://www.pastbedti.me/2010/04/nokogiri-quote/</feedburner:origLink></item>
	<item>
		<title>Deploying a Sinatra app with Apache and Phusion Passenger a.k.a. mod_rack</title>
		<description>My Sinatra + Apache + Passenger setup did not just run Deploying a simple Sinatra rack application under Apache and Phusion Passenger turned out not work out of the box for me. I already had a virtual host so I decided to deploy with passengers sub URI (sub URI documentation). To make this work you&amp;#8217;ll [...]&lt;img src="http://feeds.feedburner.com/~r/pastbedtime/~4/4s_5yQldT-E" height="1" width="1"/&gt;</description>
		<link>http://feedproxy.google.com/~r/pastbedtime/~3/4s_5yQldT-E/</link>
			<feedburner:origLink>http://www.pastbedti.me/2009/11/deploying-a-sinatra-app-with-apache-and-phusion-passenger-a-k-a-mod_rack/</feedburner:origLink></item>
	<item>
		<title>Grouping a timestamp field by date in Ruby On Rails / PostgreSQL</title>
		<description>Recently I&amp;#8217;ve been working a lot with dates and tonight I had a hard time finding information about how to group a model by date when the model only have a timestamp column. Lets pretend we have a user model with a created_at attribute which is stored as a timestamp. If we want to plot [...]&lt;img src="http://feeds.feedburner.com/~r/pastbedtime/~4/cWLhmc25vPM" height="1" width="1"/&gt;</description>
		<link>http://feedproxy.google.com/~r/pastbedtime/~3/cWLhmc25vPM/</link>
			<feedburner:origLink>http://www.pastbedti.me/2009/11/grouping-a-timestamp-field-by-date-in-ruby-on-rails-postgresql/</feedburner:origLink></item>
	<item>
		<title>5-10 second delay when launching Terminal.app in OSX</title>
		<description>A couple of days ago my Terminal.app (console) got a really annoying feature. When launching the console or when I created a new tab it got stuck for about 5-10 seconds before I got my prompt. If you are like me and are spending most of your time in Terminal.app you understand how annoying this [...]&lt;img src="http://feeds.feedburner.com/~r/pastbedtime/~4/N9tr8is-W8o" height="1" width="1"/&gt;</description>
		<link>http://feedproxy.google.com/~r/pastbedtime/~3/N9tr8is-W8o/</link>
			<feedburner:origLink>http://www.pastbedti.me/2009/09/5-10-second-delay-when-launching-terminal-in-osx/</feedburner:origLink></item>
</channel>
</rss>
