<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="http://feedproxy.google.com/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feedproxy.google.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Guillaume Moigneu</title>
	
	<link>http://guillaume.moigneu.net</link>
	<description>has_many :problems =&gt; :solutions</description>
	<pubDate>Tue, 16 Dec 2008 08:03:44 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feedproxy.google.com/GuillaumeMoigneu" type="application/rss+xml" /><item>
		<title>Google DocType</title>
		<link>http://feedproxy.google.com/~r/GuillaumeMoigneu/~3/OwaN7tUVDuM/</link>
		<comments>http://guillaume.moigneu.net/2008/12/16/google-doctype/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 08:03:14 +0000</pubDate>
		<dc:creator>Guillaume Moigneu</dc:creator>
		
		<category><![CDATA[HowTo]]></category>

		<guid isPermaLink="false">http://guillaume.moigneu.net/?p=171</guid>
		<description><![CDATA[Google has just launched a new wiki aimed at all web developpers.
Google Doctype is an open encyclopedia and reference library. Written by web developers, for web developers. It includes articles on web security, JavaScript DOM manipulation, CSS tips and tricks, and more. The reference section includes a growing library of test cases for checking cross-browser [...]]]></description>
			<content:encoded><![CDATA[<p>Google has just launched a new wiki aimed at all web developpers.</p>
<p>Google <span class="doctype">Doctype</span> is an open encyclopedia and reference library. Written by web developers, for web developers. It includes articles on web security, JavaScript DOM manipulation, CSS tips and tricks, and more. The reference section includes a growing library of test cases for checking cross-browser and cross-platform compatibility.</p>
<p><a href="http://code.google.com/intl/en/doctype/"><img class="aligncenter size-full wp-image-172" title="gdt" src="http://guillaume.moigneu.net/wp-content/uploads/2008/12/gdt.png" alt="gdt" width="500" height="502" /></a></p>
<p>Point your browser to <a href="http://code.google.com/intl/en/doctype/" target="_blank">http://code.google.com/intl/en/doctype/</a> and have a nice reading.</p>
]]></content:encoded>
			<wfw:commentRss>http://guillaume.moigneu.net/2008/12/16/google-doctype/feed/</wfw:commentRss>
		<feedburner:origLink>http://guillaume.moigneu.net/2008/12/16/google-doctype/</feedburner:origLink></item>
		<item>
		<title>HowTo add and remove attributes from models in Rails 2.0</title>
		<link>http://feedproxy.google.com/~r/GuillaumeMoigneu/~3/WC0frKp51jg/</link>
		<comments>http://guillaume.moigneu.net/2008/11/19/howto-add-and-remove-attributes-from-models-in-rails-20/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 00:28:17 +0000</pubDate>
		<dc:creator>Guillaume Moigneu</dc:creator>
		
		<category><![CDATA[HowTo]]></category>

		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://guillaume.moigneu.net/?p=168</guid>
		<description><![CDATA[Rails 2.0 has introduced a new and easy way to alter the attributes of a model.
To add an attribute &#8220;author&#8221; to a model &#8220;post&#8221; :

script/generate migration AddAuthorToPost author:string

To delete this attribute :

script/generate migration RemoveAuthorFromPost author:string

Add and Remove specify the action to do and Post, separated by To or From, is the name of the model.
Don&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>Rails 2.0 has introduced a new and easy way to alter the attributes of a model.</p>
<p>To add an attribute &#8220;author&#8221; to a model &#8220;post&#8221; :</p>
<pre name="code" class="ruby">
script/generate migration AddAuthorToPost author:string
</pre>
<p>To delete this attribute :</p>
<pre name="code" class="ruby">
script/generate migration RemoveAuthorFromPost author:string
</pre>
<p><strong>Add</strong> and <strong>Remove</strong> specify the action to do and <strong>Post</strong>, separated by <strong>To</strong> or <strong>From</strong>, is the name of the model.</p>
<p>Don&#8217;t forget to run the migration by using :</p>
<pre name="code" class="ruby">
rake db:migrate
</pre>
]]></content:encoded>
			<wfw:commentRss>http://guillaume.moigneu.net/2008/11/19/howto-add-and-remove-attributes-from-models-in-rails-20/feed/</wfw:commentRss>
		<feedburner:origLink>http://guillaume.moigneu.net/2008/11/19/howto-add-and-remove-attributes-from-models-in-rails-20/</feedburner:origLink></item>
		<item>
		<title>Installing Git on Mac OS X Leopard</title>
		<link>http://feedproxy.google.com/~r/GuillaumeMoigneu/~3/WJWF7muU3JQ/</link>
		<comments>http://guillaume.moigneu.net/2008/11/19/installing-git-on-mac-os-x-leopard/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 22:58:25 +0000</pubDate>
		<dc:creator>Guillaume Moigneu</dc:creator>
		
		<category><![CDATA[Utilities]]></category>

		<category><![CDATA[git]]></category>

		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://guillaume.moigneu.net/?p=166</guid>
		<description><![CDATA[As I reinstalled my MacPro recently, I needed to setup Git again. The last time I installed it, I had to compile all the dependencies and Git myself but things have changed.
Thanks to Tim Charper, you&#8217;ll just have to download and install a nice .dmg package ! You can grab your copy here : http://code.google.com/p/git-osx-installer/
Have [...]]]></description>
			<content:encoded><![CDATA[<p>As I reinstalled my MacPro recently, I needed to setup <a href="http://fr.wikipedia.org/wiki/Git" target="_blank">Git</a> again. The last time I installed it, I had to compile all the dependencies and Git myself but things have changed.</p>
<p>Thanks to <a href="http://code.google.com/u/timcharper/">Tim Charper</a>, you&#8217;ll just have to download and install a nice .dmg package ! You can grab your copy here : <a href="http://code.google.com/p/git-osx-installer/" target="_blank">http://code.google.com/p/git-osx-installer/</a></p>
<p>Have fun with Git !</p>
<p>NB : For all subversion addicts, Versions is finally out of beta : <a href="http://versionsapp.com">http://versionsapp.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://guillaume.moigneu.net/2008/11/19/installing-git-on-mac-os-x-leopard/feed/</wfw:commentRss>
		<feedburner:origLink>http://guillaume.moigneu.net/2008/11/19/installing-git-on-mac-os-x-leopard/</feedburner:origLink></item>
		<item>
		<title>HowTo setup nginx as a reverse load-balancer</title>
		<link>http://feedproxy.google.com/~r/GuillaumeMoigneu/~3/wCtUKXGHu1c/</link>
		<comments>http://guillaume.moigneu.net/2008/11/14/howto-setup-nginx-as-a-reverse-load-balancer/#comments</comments>
		<pubDate>Fri, 14 Nov 2008 16:24:47 +0000</pubDate>
		<dc:creator>Guillaume Moigneu</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://guillaume.moigneu.net/?p=163</guid>
		<description><![CDATA[We were facing at work a high load on a TomCat application server that is currently configured with Apache acting as a proxy. We had to increase the number of server in order to correctly handle the load. But how do you load-balance multiple TomCat instances ?
We began to test it with Apache&#8217;s mod_proxy_balancer but [...]]]></description>
			<content:encoded><![CDATA[<p>We were facing at work a high load on a TomCat application server that is currently configured with Apache acting as a proxy. We had to increase the number of server in order to correctly handle the load. But how do you load-balance multiple TomCat instances ?</p>
<p>We began to test it with Apache&#8217;s mod_proxy_balancer but you can only set a theorical server weight (for example : server1 70% of requests, server2 30% of requests). So we began to search for another solution that would do the load-balancing without any new hardware other than simple linux dedicated servers.</p>
<p>After several minutes where we hesitated between nginx and Squid, we actually decided to put nginx on a staging server&#8230; and that was wonderfull (even flabbergasting) !</p>
<p>The new setup is as follow :</p>
<ul>
<li>Debian Core2Duo 2.66Ghz with 2Gb RAM configured with nginx as a reverse proxy (with load-balancing),</li>
<li>2 Debian Quadri-Xeon 3.00Ghz with 8Gb RAM to handle two TomCat instances.</li>
</ul>
<p>Here is my nginx config with the fair module which test the load on both servers before sending them the real request  :</p>
<pre name="code" class="ruby">

worker_processes  1;
error_log  logs/error.log  notice;
pid        logs/nginx.pid;
events {
worker_connections  1024;
}

http {
include       mime.types;
default_type  application/octet-stream;
log_format lb &#039;[$time_local] $remote_addr =&gt; $upstream_addr($upstream_status) in $upstream_response_time$
access_log  logs/lb.log lb;
sendfile        on;
tcp_nopush     on;
keepalive_timeout  0;
gzip  on;
upstream novacat {
server srv1.xxx.eu:8080;
server srv3.xxx.eu:8080;
fair;
}

server {
listen       80;
server_name  xxx.eu;
location / {
proxy_pass  http://xxx;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect false;
}
}
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://guillaume.moigneu.net/2008/11/14/howto-setup-nginx-as-a-reverse-load-balancer/feed/</wfw:commentRss>
		<feedburner:origLink>http://guillaume.moigneu.net/2008/11/14/howto-setup-nginx-as-a-reverse-load-balancer/</feedburner:origLink></item>
		<item>
		<title>How to switch from PHP to Rails</title>
		<link>http://feedproxy.google.com/~r/GuillaumeMoigneu/~3/4MhMFwOYKSc/</link>
		<comments>http://guillaume.moigneu.net/2008/11/05/how-to-switch-from-php-to-rails/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 20:13:34 +0000</pubDate>
		<dc:creator>Guillaume Moigneu</dc:creator>
		
		<category><![CDATA[HowTo]]></category>

		<category><![CDATA[Rails]]></category>

		<category><![CDATA[php]]></category>

		<category><![CDATA[ruby]]></category>

		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://guillaume.moigneu.net/?p=153</guid>
		<description><![CDATA[Many web developpers that used to code with PHP (including me) are now very interested in switching to a more robust language and discovering how you could more quickly create a webapp thanks to a framework.
Some fellow PHP developpers built up a blog to provide everyone many tips &#38; tricks on both language and how [...]]]></description>
			<content:encoded><![CDATA[<p>Many web developpers that used to code with PHP (including me) are now very interested in switching to a more robust language and discovering how you could more quickly create a webapp thanks to a framework.</p>
<p>Some fellow PHP developpers built up a blog to provide everyone many tips &amp; tricks on both language and how they differ : <a href="http://railsforphp.com/">Rails for PHP developpers</a>.</p>
<p>As the main author Mr Paul M. Jones is saying himself :</p>
<blockquote><p>“This is a thorough and approachable introduction to Ruby and Rails for PHP programmers from fellow developers who are well-versed in both Ruby and PHP.”</p></blockquote>
<p>All articles are pragmatic examples focusing on the behaviour of both languages. For example :</p>
<p><a href="http://guillaume.moigneu.net/wp-content/uploads/2008/11/phpruby.png"><img class="aligncenter size-full wp-image-154" title="phpruby" src="http://guillaume.moigneu.net/wp-content/uploads/2008/11/phpruby.png" alt="" width="500" height="176" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://guillaume.moigneu.net/2008/11/05/how-to-switch-from-php-to-rails/feed/</wfw:commentRss>
		<feedburner:origLink>http://guillaume.moigneu.net/2008/11/05/how-to-switch-from-php-to-rails/</feedburner:origLink></item>
		<item>
		<title>WareHouse App is now Open-Source and Free</title>
		<link>http://feedproxy.google.com/~r/GuillaumeMoigneu/~3/IzM1oHkFZIQ/</link>
		<comments>http://guillaume.moigneu.net/2008/11/02/warehouse-app-is-now-open-source-and-free/#comments</comments>
		<pubDate>Sat, 01 Nov 2008 23:43:01 +0000</pubDate>
		<dc:creator>Guillaume Moigneu</dc:creator>
		
		<category><![CDATA[Featured]]></category>

		<category><![CDATA[Rails]]></category>

		<category><![CDATA[opensource]]></category>

		<category><![CDATA[subversion]]></category>

		<category><![CDATA[warehouse]]></category>

		<category><![CDATA[webapp]]></category>

		<guid isPermaLink="false">http://guillaume.moigneu.net/?p=146</guid>
		<description><![CDATA[The web-based subversion browser that doesn&#8217;t suck is now opensource and free. The guys at ActiveReload decided to open their great webapp to everyone.

You can checkout the code and enter the community at warehouseapp@github or you can see a demo here.
Also take a look at the official site : http://warehouseapp.com/
]]></description>
			<content:encoded><![CDATA[<p>The web-based subversion browser that doesn&#8217;t suck is now opensource and free. The guys at ActiveReload decided to open their great webapp to everyone.</p>
<p><img class="aligncenter size-full wp-image-149" title="browser" src="http://guillaume.moigneu.net/wp-content/uploads/2008/11/browser.png" alt="" width="500" height="354" /></p>
<p>You can checkout the code and enter the community at <a href="http://github.com/entp/warehouse/tree/master">warehouseapp@github</a> or you can <a href="http://ar-code.wh.engineyard.com/">see a demo here</a>.</p>
<p>Also take a look at the official site : <a href="http://warehouseapp.com/">http://warehouseapp.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://guillaume.moigneu.net/2008/11/02/warehouse-app-is-now-open-source-and-free/feed/</wfw:commentRss>
		<feedburner:origLink>http://guillaume.moigneu.net/2008/11/02/warehouse-app-is-now-open-source-and-free/</feedburner:origLink></item>
		<item>
		<title>TextMate and Rails 2.x : Recognizing .erb files</title>
		<link>http://feedproxy.google.com/~r/GuillaumeMoigneu/~3/b7MIQWMdlkU/</link>
		<comments>http://guillaume.moigneu.net/2008/11/02/textmate-and-rails-2x-recognizing-erb-files/#comments</comments>
		<pubDate>Sat, 01 Nov 2008 23:30:16 +0000</pubDate>
		<dc:creator>Guillaume Moigneu</dc:creator>
		
		<category><![CDATA[Rails]]></category>

		<category><![CDATA[erb]]></category>

		<category><![CDATA[textmate]]></category>

		<guid isPermaLink="false">http://guillaume.moigneu.net/?p=141</guid>
		<description><![CDATA[As Rails 2.x is now available, you must have saw that the views templates are now .html.erb files instead of .rhtml ones. Those new extensions are not recognized for those who are coding with TextMate on Mac.
All you need to correct this issue is going to Textmate Menu: Bundles -&#62; Bundle Editor -&#62; Show Bundle [...]]]></description>
			<content:encoded><![CDATA[<p>As Rails 2.x is now available, you must have saw that the views templates are now .html.erb files instead of .rhtml ones. Those new extensions are not recognized for those who are coding with TextMate on Mac.</p>
<p>All you need to correct this issue is going to Textmate Menu: Bundles -&gt; Bundle Editor -&gt; Show Bundle Editor -&gt; Ruby on Rails -&gt; Rails (HTML) and find the line :</p>
<pre name="code" class="ruby">
fileTypes = ( &#039;rhtml&#039; );
</pre>
<p>Now replace it with :</p>
<pre name="code" class="ruby">
fileTypes = ( &#039;rhtml&#039;, &#039;erb&#039; );
</pre>
<p>And you&#8217;re done.</p>
]]></content:encoded>
			<wfw:commentRss>http://guillaume.moigneu.net/2008/11/02/textmate-and-rails-2x-recognizing-erb-files/feed/</wfw:commentRss>
		<feedburner:origLink>http://guillaume.moigneu.net/2008/11/02/textmate-and-rails-2x-recognizing-erb-files/</feedburner:origLink></item>
	</channel>
</rss>
