<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Moritz Haarmann&#039;s Blog &#187; rails</title>
	<atom:link href="http://momo.brauchtman.net/tag/rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://momo.brauchtman.net</link>
	<description>random thoughts.</description>
	<lastBuildDate>Fri, 27 Jan 2012 15:54:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Finally: WordPress Benchmark</title>
		<link>http://momo.brauchtman.net/2009/11/23/finally-wordpress-benchmark/</link>
		<comments>http://momo.brauchtman.net/2009/11/23/finally-wordpress-benchmark/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 01:57:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[antiusability]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://momo.brauchtman.net/?p=431</guid>
		<description><![CDATA[So, there are no real benchmarks of a WordPress running in the wild available ( couldn&#8217;t believe it either.. ). So I got my ab and gnuplot friends and created one. The reason why I&#8217;m doing this that while developing &#8230; <a href="http://momo.brauchtman.net/2009/11/23/finally-wordpress-benchmark/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So, there are no real benchmarks of a WordPress running in the wild available ( couldn&#8217;t believe it either.. ). So I got my ab and gnuplot friends and created one. The reason why I&#8217;m doing this that while developing ( or forking, to be honest, marc&#8217;s work ) i was curious what php can achieve. The answer is, as you will see, very sad.</p>
<p>I ran the benchmarks on two different machines. One of them is a xen-based virtual machine with 4gb of RAM and a dedicated CPU. The MySQL server runs on a seperate VM on the same physical device. The first graph shows the results at a concurrency level of 2, the second one a concurrency level of 5.</p>
<p><a href="http://momo.brauchtman.net/wp-content/uploads/2009/11/test1_s.png" rel="lightbox[431]" title="test1_s"><img class="aligncenter size-medium wp-image-432" title="test1_s" src="http://momo.brauchtman.net/wp-content/uploads/2009/11/test1_s-300x225.png" alt="test1_s" width="300" height="225" /></a><br />
<a href="http://momo.brauchtman.net/wp-content/uploads/2009/11/test2_s.png" rel="lightbox[431]" title="test2_s"><img class="aligncenter size-medium wp-image-433" title="test2_s" src="http://momo.brauchtman.net/wp-content/uploads/2009/11/test2_s-300x225.png" alt="test2_s" width="300" height="225" /></a>The second run was performed on the machine where this blog is hosted. All benchmarks are running against WordPress&#8217; index.php, to not allow caching to falsify the results. The machine is also a virtual machine, enough RAM, slow cpu though. Please keep in mind that most people are using that kind of machines for their blogging, because dedicated machines are not exactly.. cheap. Anyhow, concurrency level 2. I didn&#8217;t bother to check what level 5 would have changed, because the time taken for the first one was already 20 minutes.</p>
<p><a href="http://momo.brauchtman.net/wp-content/uploads/2009/11/test1_m.png" rel="lightbox[431]" title="test1_m"><img class="aligncenter size-medium wp-image-435" title="test1_m" src="http://momo.brauchtman.net/wp-content/uploads/2009/11/test1_m-300x225.png" alt="test1_m" width="300" height="225" /></a></p>
<p>For the sake of being mean to all PHP-lovers, I included a bench of an Rails-Application served from the very same VM as the first benchmarks. Of course, you can&#8217;t compare Rails to PHP. But still interesting, I think.</p>
<p><a href="http://momo.brauchtman.net/wp-content/uploads/2009/11/test1_k.png" rel="lightbox[431]" title="test1_k"><img class="aligncenter size-medium wp-image-434" title="test1_k" src="http://momo.brauchtman.net/wp-content/uploads/2009/11/test1_k-300x225.png" alt="test1_k" width="300" height="225" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://momo.brauchtman.net/2009/11/23/finally-wordpress-benchmark/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finally: ActiveResource with Service Discovery and Authentication</title>
		<link>http://momo.brauchtman.net/2009/07/09/finally-activeresource-with-service-discovery-and-authentication/</link>
		<comments>http://momo.brauchtman.net/2009/07/09/finally-activeresource-with-service-discovery-and-authentication/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 21:54:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[idea]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[useful]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://momo.brauchtman.net/?p=389</guid>
		<description><![CDATA[Yay. In case you&#8217;re looking for a release, there is none. Not yet, we are maybe going to release one, but it&#8217;s a question of time rather than a lack of good will. Why. In my current position, I am &#8230; <a href="http://momo.brauchtman.net/2009/07/09/finally-activeresource-with-service-discovery-and-authentication/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Yay. In case you&#8217;re looking for a release, there is none. Not yet, we are maybe going to release one, but it&#8217;s a question of time rather than a lack of good will.</p>
<p>Why. In my current position, I am building a set of applications ( most of them rails based ) communicating with each other in a RESTful manner. This is, well, just continue <a href="http://momo.brauchtman.net/2009/06/using-activeresource-in-the-wild/">reading my ActiveResource rant</a> here. It&#8217;s not really nice to use the official ActiveResource thing. It&#8217;s a lot of hardcoding ( e.g. you have to set the remote service&#8217; URL in the model, not in some kind of configuration file, which makes switching from development to testing and production a pain ) and other shortcomings. It&#8217;s a good idea, yet far from being perfect. And the two things that bothered me most were service discovery, meaning, the easy ability to resolve a service by its name than by its url, and authentication. Both of them are crucial for a system exceeding the hello world boundaries. That is, what I&#8217;m doing. So, utilizing all of Ruby&#8217;s beauty, a) a Rails plugin was developed and b) a standalone Server acting as a Central Authentication Service and Service Discovery instance. And from what I can tell, it&#8217;s beautiful ( not the codebase, at the moment, but the functionality ).</p>
<p>What is this thing able to do? Well, for the simple parts, it handles all your authentication needs. No more password juggling, just do it in one place, and nowhere else. OpenID compatibility is on the way, both as consumer and provider. It&#8217;s nice to have this kind of functionality by only installing a plugin and create a before_filter.</p>
<p>The next big thing is the service discovery. ActiveResource wasn&#8217;t used as an entry point for customizations, it was <a href="http://github.com/lukegalea/hyperactiveresource/tree/master">HyperactiveResource</a>. I extended it to provide the ability to connect to the above mentioned central instance ( the address of this instance is defined in a configuration file, by the way ) to retrieve a services&#8217; address. A simple thing, yet it makes life so much easier.</p>
<p>Is there a clue? Yes. Bundling the two features above, you are able to allow and disallow communication between two services at your will. Bidirectional, so assuming you do have an E-Mail-service and an AddressBook-service, you now can allow the E-Mail to access your AddressBook, without allowing the other direction. Authentication is handled completely transparent to the developer, and the rest of the usage is like HyperactiveResource. Just a charm.</p>
<p>And for me? Fun is back <img src='http://momo.brauchtman.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://momo.brauchtman.net/2009/07/09/finally-activeresource-with-service-discovery-and-authentication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>superdumper now at github</title>
		<link>http://momo.brauchtman.net/2009/05/02/superdumper-now-at-github/</link>
		<comments>http://momo.brauchtman.net/2009/05/02/superdumper-now-at-github/#comments</comments>
		<pubDate>Sat, 02 May 2009 16:50:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://momo.brauchtman.net/?p=357</guid>
		<description><![CDATA[My first and only rails plugin, superdumper, is now available at github, and can therefore be simply cloned by using script/plugin install git://github.com/moritzh/superdumper.git thanks for using!]]></description>
			<content:encoded><![CDATA[<p>My first and only rails plugin, superdumper, is now available at github, and can therefore be simply cloned by using</p>
<p>script/plugin install <a href="git://github.com/moritzh/superdumper.git">git://github.com/moritzh/superdumper.git</a></p>
<p>thanks for using!</p>
]]></content:encoded>
			<wfw:commentRss>http://momo.brauchtman.net/2009/05/02/superdumper-now-at-github/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails Plugin: Superdumper, helps you visualize your database schema</title>
		<link>http://momo.brauchtman.net/2009/02/18/rails-plugin-superdumper-helps-you-visualize-your-database-schema/</link>
		<comments>http://momo.brauchtman.net/2009/02/18/rails-plugin-superdumper-helps-you-visualize-your-database-schema/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 05:53:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[improvingtheworld]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[simpleyeteffective]]></category>

		<guid isPermaLink="false">http://momo.brauchtman.net/?p=294</guid>
		<description><![CDATA[You know the problem. You are agile like hell. You don&#8217;t bother doing complicated diagrams to show somebody what you&#8217;re doing. That&#8217;s okay. But sometimes, you need to show off what you&#8217;ve been struggling with, and if that day comes, &#8230; <a href="http://momo.brauchtman.net/2009/02/18/rails-plugin-superdumper-helps-you-visualize-your-database-schema/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>You know the problem. You are agile like hell. You don&#8217;t bother doing complicated diagrams to show somebody what you&#8217;re doing. That&#8217;s okay. But sometimes, you need to show off what you&#8217;ve been struggling with, and if that day comes, this little rakefile can save some time.</p>
<p>Simply , Unpack <a href="http://momo.brauchtman.net/wp-content/uploads/2009/02/superdumptar.tbz">this file ( tar bz btw )</a> in your rails app&#8217;s root folder and call rake db:superdumper. This will create a file called database.dot in your root folder, containing your database scheme, including associations, in the so-called &#8220;dot&#8221; format, used by the open-source <a href="http://www.graphviz.org/">GraphViz</a> package as input. If you don&#8217;t have that package, install it, via ports or apt or whatever applies to your platform. </p>
<p>In Detail what you have to do is here ( assuming you unpacked the file already.. )<br />
 </p>
<pre lang="SHELL">rake db:superdumper</pre>
<p>This task will automatically dump your scheme and call GraphViz, resulting in a pdf file in the root of your app with the name database.pdf. If it&#8217;s not your database schema smiling at you, let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://momo.brauchtman.net/2009/02/18/rails-plugin-superdumper-helps-you-visualize-your-database-schema/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Rails Development: Comparing platforms</title>
		<link>http://momo.brauchtman.net/2009/02/09/rails-development-comparing-platforms/</link>
		<comments>http://momo.brauchtman.net/2009/02/09/rails-development-comparing-platforms/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 16:31:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[RailsMerb]]></category>
		<category><![CDATA[usability]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://momo.brauchtman.net/?p=290</guid>
		<description><![CDATA[And I know what I&#8217;m talking about! I&#8217;ve been doing heavy rails development lately, on all three major platforms. Start with OS X. It seems every serious Screencast for Rails was recorded using the famous Textmate Editor on OS X. &#8230; <a href="http://momo.brauchtman.net/2009/02/09/rails-development-comparing-platforms/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>And I know what I&#8217;m talking about! I&#8217;ve been doing heavy rails development lately, on all three major platforms. Start with OS X.</p>
<p>It seems every serious Screencast for Rails was recorded using the famous Textmate Editor on OS X. At first sight, Textmate may seem to be a pretty ordinary Text Editor. Well, it isn&#8217;t. It&#8217;s very powerful and highly customisable. It&#8217;s one of the products I&#8217;d buy always again, simply because it&#8217;s worth it&#8217;s price. Development is rather flawless, not only because of Textmate, but also because OS X is based on a Unix System, giving one the ability to run all utilities natively, avoiding perfomance issues. It&#8217;s absolutely my favorite.</p>
<p>After my MacBook commited suicide, I was forced to use XP. I wasn&#8217;t happy. There are good code editors for sure ( I used vim nevertheless ) but the overall speed of testing tasks and so on is .. poor. Very poor. Those perfomance problems are well-known, though no one knows the exact reason ( at least I wasn&#8217;t able to figure it out ). I don&#8217;t want to flame here, but Windows is just not suitable for serious Rails development.</p>
<p>After deciding that the above mentioned system was a pain in the ass rather than a solid solution, I switched to Ubuntu. And I&#8217;m amazed, really. Gedit with a few plugins seems to be a good alternative compared to TextMate, and all the packages run like a charm. And it&#8217;s free and runs everywhere. It&#8217;s my recommendation for every Windows+Rails developer. Install VMWare or VirtualBox and develop there, it&#8217;s faster. Trust me.</p>
<p>Tomorrow ( assuming UPS isn&#8217;t lying ) my new iMac will arrive, and I&#8217;m so looking forward to it. What is your prefered platform for developing with rails?</p>
]]></content:encoded>
			<wfw:commentRss>http://momo.brauchtman.net/2009/02/09/rails-development-comparing-platforms/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Online Password Storage</title>
		<link>http://momo.brauchtman.net/2008/12/10/online-password-storage/</link>
		<comments>http://momo.brauchtman.net/2008/12/10/online-password-storage/#comments</comments>
		<pubDate>Wed, 10 Dec 2008 14:03:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[idea]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[simpleyeteffective]]></category>
		<category><![CDATA[usability]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://momo.brauchtman.net/?p=21</guid>
		<description><![CDATA[I wrote one. Based on Rails, working reliable. The encryption is designed in way that prohibits even the database administrator to access them. I showed it to a few people. The response was that it seems that no one is &#8230; <a href="http://momo.brauchtman.net/2008/12/10/online-password-storage/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-34" title="Thats how it looks" src="http://momo.brauchtman.net/wp-content/uploads/2008/12/bla.tiff" alt="The user home screen." />I wrote one. Based on Rails, working reliable. The encryption is designed in way that prohibits even the database administrator to access them. I showed it to a few people. The response was that it seems that no one is willing to give away passwords.<br />
But the project is cool. By installing a bookmarklet you can easily login to any page you registered at _my_ service by simply clicking on that bookmarklet.. works mostly. Maybe I&#8217;m going to put it online someday, but not until I fixed the encryption so that it happens only in the browser, to prevent any passwords being sent in plain.<br />
I would really appreciate some comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://momo.brauchtman.net/2008/12/10/online-password-storage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

