<rss version="2.0"><channel><title>PaulAsmuth.de | blog</title><link>http://paulasmuth.de/</link><description> Paul Asmuth is a freelancing web developer based in Cologne (Germany). He applies his passions for user-interface design, Ruby and JavaScript to modern client/server technologies and content pipeline automation.</description><language>de-DE</language><item><title>Speed up Mongrel / RubyOnRails development</title><description>&lt;p&gt;This is great! With the Talentsuche.de RubyOnRails app growing the mongrel development server was getting slow and slower. Lately a request took up to 3000ms - that's unusable for front end development.&lt;/p&gt;
&lt;p&gt;But there is quick way to speed this up. Mongrels default behaviour is to listen on all interfaces/addresses (0.0.0.0). By setting a single ip you can make it &lt;b&gt;a lot&lt;/b&gt; faster.&lt;/p&gt;
&lt;pre class="brush: bash;"&gt;
 ./script/server -b 10.23.23.23 -p 3000
&lt;/pre&gt;</description><author>Paul Asmuth</author><pubDate>Mon, 01 Feb 2010 12:08:05 +0000</pubDate><link>http://paulasmuth.de/blog/show/speed_up_mongrel</link><guid>speed_up_mongrel</guid></item><item><title>Facebook: See friends of hidden profiles</title><description>&lt;p&gt;Apparently facebook's autocomplete-script for the friends search returns data it's not supposed to.&lt;/p&gt;
&lt;p&gt;Even hidden profiles's friends are revealed. All you need is the profiles uid, which is public.&lt;/p&gt;
&lt;pre class="brush: html;"&gt;
 &lt;a href="/ajax/poke_dialog.php?uid=*****"&gt;(...)&lt;/a&gt;
&lt;/pre&gt;
&lt;p&gt;The url of the php script is:&lt;/p&gt;
&lt;pre class="brush: plain;"&gt;
 http://www.facebook.com/ajax/typeahead_friends.php?u=*******&amp;__a=1
&lt;/pre&gt;</description><author>Paul Asmuth</author><pubDate>Sat, 30 Jan 2010 19:43:57 +0000</pubDate><link>http://paulasmuth.de/blog/show/facebook_see_friends_of_hidden_profiles</link><guid>facebook_see_friends_of_hidden_profiles</guid></item><item><title>Project Launch: Flightnuggets.com</title><description>&lt;p&gt;&lt;a target="_blank" href="http://flightnuggets.com/"&gt;FlightNuggets.com&lt;/a&gt; launched this weekend.&lt;/p&gt;
&lt;p&gt;FlightNuggets is a RubyOnRails-based flight price comparison engine. The airlines are
crawled in advance.&lt;/p&gt;</description><author>Paul Asmuth</author><pubDate>Sun, 01 Nov 2009 10:08:32 +0000</pubDate><link>http://paulasmuth.de/blog/show/flightnuggets</link><guid>flightnuggets</guid></item><item><title>Doorbell</title><description>&lt;p&gt;Yes, it's a doorbell!&lt;/p&gt;
&lt;img src="http://skrrl.org/~paul/doorbell.png" /&gt;
</description><author>Paul Asmuth</author><pubDate>Fri, 30 Oct 2009 19:03:41 +0000</pubDate><link>http://paulasmuth.de/blog/show/doorbell</link><guid>doorbell</guid></item><item><title>Custom mime types in Rails</title><description>To register a custom mime type in Rails, call the register method from your controller:
&lt;pre class="brush: ruby;"&gt;
Mime::Type.register "image/jpeg", :jpg
&lt;/pre&gt;

Your mime type can be used in the respond_to block now:
&lt;pre class="brush: ruby;"&gt;
format.jpg do 
  #do something
end
&lt;/pre&gt;


</description><author>Paul Asmuth</author><pubDate>Sat, 05 Sep 2009 14:50:01 +0000</pubDate><link>http://paulasmuth.de/blog/show/rails_custom_mime_types</link><guid>rails_custom_mime_types</guid></item></channel></rss>