<?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>codename30</title>
	<atom:link href="http://codename30.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://codename30.com</link>
	<description>a weblog by Railsways.com</description>
	<lastBuildDate>Tue, 18 May 2010 07:03:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>The Smashing Book</title>
		<link>http://codename30.com/2010/05/18/the-smashing-book/</link>
		<comments>http://codename30.com/2010/05/18/the-smashing-book/#comments</comments>
		<pubDate>Tue, 18 May 2010 07:03:22 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://codename30.com/?p=104</guid>
		<description><![CDATA[My copy of The Smashing Book has finally arrived. It took more that 10 days to mail from Germany to Hong Kong.]]></description>
			<content:encoded><![CDATA[<p>My copy of The Smashing Book has finally arrived. It took more that 10 days to mail from Germany to Hong Kong.
<img src="http://farm5.static.flickr.com/4065/4617569539_14ef3e57a0.jpg" alt="The Smashing Book" /></p>
]]></content:encoded>
			<wfw:commentRss>http://codename30.com/2010/05/18/the-smashing-book/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>First look at the RHEL 6</title>
		<link>http://codename30.com/2010/04/28/first-look-at-the-rhel-6/</link>
		<comments>http://codename30.com/2010/04/28/first-look-at-the-rhel-6/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 13:15:05 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://codename30.com/?p=102</guid>
		<description><![CDATA[Red Hat have put out a public beta of the forth coming version of RHEL. The package list looks quite promising, with the improvement on virtualisation, storage and cluster suite improvements, you can easily tell that it&#8217;s target to the enterprise market and follows the trends. For every new version of RHEL coming out, new [...]]]></description>
			<content:encoded><![CDATA[<p>Red Hat have put out a public beta of the forth coming version of RHEL. The package list looks quite promising, with the improvement on virtualisation, storage and cluster suite improvements, you can easily tell that it&#8217;s target to the enterprise market and follows the trends.</p>

<p>For every new version of RHEL coming out, new software packages is added to the distribution, some old softwares get removed, and most of the software packages get updated version.</p>

<p>The most important changes are all system-config-* tools are gone now. The ext4 file system is the default, instead of ext3 in RHEL5. Python get updated from version 2.4 to 2.6 but Ruby is still in version 1.8.6, only a small minor update from version 1.8.5 in RHEL5. Since RHEL 6 only included in version 1.8.6, it will not even run Rails 3. Rails 3 required at least ruby 1.8.7, or ruby 1.9.2 to run, it&#8217;s a shame that Red Hat only include a old version of ruby in their RHEL6, but you can always install REE or compile from source by yourself.</p>

<p>Maybe you can give Ubuntu 10.04 LTS a try, Ubuntu 10.04 LTS also include some interesting feature including MySQL 5.1, python 2.6, Ubuntu Enterprise Cloud, and Ubuntu One File Syncing. Ubuntu 10.04 LTS is schedule to release on 29 April 2010.</p>
]]></content:encoded>
			<wfw:commentRss>http://codename30.com/2010/04/28/first-look-at-the-rhel-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Rails 3 beta 2 using rvm</title>
		<link>http://codename30.com/2010/04/08/installing-rails-3-beta-2-using-rvm/</link>
		<comments>http://codename30.com/2010/04/08/installing-rails-3-beta-2-using-rvm/#comments</comments>
		<pubDate>Thu, 08 Apr 2010 04:46:29 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[RoR]]></category>

		<guid isPermaLink="false">http://codename30.com/?p=90</guid>
		<description><![CDATA[Rails 3 beta 2 was released at April 1. From the blog post at Riding Rails, it seems that this beta 2 break lots of things. Note that Ruby 1.8.7 p248 and p249 has marshaling bugs that crash both Rails 2.3.x and Rails 3.0.0. Ruby 1.9.1 outright segfaults on Rails 3.0.0, so if you want [...]]]></description>
			<content:encoded><![CDATA[<p>Rails 3 beta 2 was released at April 1. From the blog post at Riding Rails, it seems that this beta 2 break lots of things.</p>

<blockquote>Note that Ruby 1.8.7 p248 and p249 has marshaling bugs that crash both 
Rails 2.3.x and Rails 3.0.0. Ruby 1.9.1 outright segfaults on Rails 3.0.0, so if 
you want to use Rails 3 with 1.9.x, jump on 1.9.2 trunk for smooth sailing.</blockquote>

<p>Both Ruby 1.8.7 p248 and p249 crashed and Ruby 1.9.1 have segfaults problem. So it&#8217;s time to move on to Ruby 1.9.2. Ruby 1.9.2 is still in the development phase but it will be ready in 4 months. The scheduled release date is 31 July 2010. Let&#8217;s install rvm with ruby 1.9.2 to try out the newly released Rails 3 beta 2.</p>

<p>Install rvm</p>


<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">$ mkdir -p ~/.rvm/src &amp;&amp; cd ~/.rvm/src &amp;&amp; rm -rf ./rvm/ &amp;&amp; git clone
git://github.com/wayneeseguin/rvm.git &amp;&amp; cd rvm &amp;&amp; ./install</pre></div></div>


<p>The installation will take a while, and after rvm is installed, you&#8217;ll need to edit your .bashrc and .bash_profile. Append the following at the end of your .bashrc/.bash_profile:</p>


<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">if[[ -s /Users/stevew/.rvm/scripts/rvm ]];
    then source /Users/stevew/.rvm/scripts/rvm;
fi</pre></div></div>


<p>Install Ruby 1.9.2 head, remember to install the head of ruby 1.9.2 branch, not the preview1 because ruby 1.9.2 preview1 doesn&#8217;t work with tzinfo gem, you will have problem like this</p>


<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">.rvm/gems/ruby-1.9.2-preview1/gems/tzinfo-0.3.18/lib/
tzinfo/timezone.rb:108:in `rescue in get’: protected method 
`setup’ called for #&lt;tzinfo::datatimezone:0x000000024b7cb8&gt; 
(TZInfo::InvalidTimezoneIdentifier)</pre></div></div>



<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">$ rvm install 1.9.2-head</pre></div></div>


<p>It will take a while to download and compile the ruby 1.9.2. once completed you can run the ruby command to verify the ruby version.</p>


<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">$ rvm 1.9.2-head
$ ruby -v
ruby 1.9.2dev (2010-04-07 trunk 27247) [x86_64-darwin10.3.0]</pre></div></div>


<p>Set the default ruby version to ruby 1.9.2-head</p>


<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">$ rvm 1.9.2-head --deafult</pre></div></div>


<p>Install Rails3 beta2, you don&#8217;t need to use sudo here to install gem beacuse all gems will install in your local home directory</p>


<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">$ gem install tzinfo builder memcache-client rack rack-test rack-mount erubis mail text-format thor bundler i18n
$ gem install rails --pre</pre></div></div>


<p>Install sqlite/mysql gems for rails</p>


<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">$ gem install sqlite3-ruby
$ gem install mysql -- --with-mysql-dir=/usr/local/mysql</pre></div></div>


<p>Just create a new project as usual and that&#8217;s it. you are now ready to try out Rails 3 beta 2.</p>
]]></content:encoded>
			<wfw:commentRss>http://codename30.com/2010/04/08/installing-rails-3-beta-2-using-rvm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Generating rails app in previous version after rails 3.0 beta</title>
		<link>http://codename30.com/2010/02/22/generating-rails-app-in-previous-version-after-rails-3-0-beta/</link>
		<comments>http://codename30.com/2010/02/22/generating-rails-app-in-previous-version-after-rails-3-0-beta/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 04:58:38 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://codename30.com/?p=72</guid>
		<description><![CDATA[Rails 3.0 beta was released 2 weeks ago, rails 3 has many improvement over previous version of rails. It&#8217;s also the first version that after rails and merb merged. Truth be told, rails 3 beta has changed a lot since version 2.3.5. Many gems has not supported in rails 3 beta yet, e.g. RSpec and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://weblog.rubyonrails.org/2010/2/5/rails-3-0-beta-release">Rails 3.0 beta</a> was released 2 weeks ago, rails 3 has many improvement over previous version of rails. It&#8217;s also the first version that after rails and merb merged. Truth be told, rails 3 beta has changed a lot since version 2.3.5. Many gems has not supported in rails 3 beta yet, e.g. RSpec and Cucumber. It&#8217;s hard to move your existing project to Rails 3 without the support of required gem.</p>

<p>As a Rails programmer, you should already grab a copy of Rails 3 beta to learn the future development of Rails. I have already installed Rails 3 beta on my Mac. Rails 3 run smoothly on new project, except RSpec and Cucumber not supported. I was able to work on existing project on Rails 2.3.5 after installed Rails 3 beta, nothing weird has happened except when I want to start a new Rails 2.3.5 project.</p>


<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">MyMac:work stevew$ rails _2.3.5_ rails2project
<span style="color:#006600; font-weight:bold;">/</span>usr<span style="color:#006600; font-weight:bold;">/</span>local<span style="color:#006600; font-weight:bold;">/</span>lib<span style="color:#006600; font-weight:bold;">/</span>ruby<span style="color:#006600; font-weight:bold;">/</span>site_ruby<span style="color:#006600; font-weight:bold;">/</span>1.9.1<span style="color:#006600; font-weight:bold;">/</span>rubygems.<span style="color:#9900CC;">rb</span>:<span style="color:#006666;">777</span>:<span style="color:#9966CC; font-weight:bold;">in</span> <span style="color:#996600;">`report_activate_error': 
RubyGem version error: railties(3.0.0.beta not = 2.3.5) (Gem::LoadError)
	from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:211:in `</span>activate<span style="color:#996600;">'
	from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:1056:in `gem'</span>
	from <span style="color:#006600; font-weight:bold;">/</span>usr<span style="color:#006600; font-weight:bold;">/</span>local<span style="color:#006600; font-weight:bold;">/</span>bin<span style="color:#006600; font-weight:bold;">/</span>rails3:<span style="color:#006666;">18</span>:<span style="color:#9966CC; font-weight:bold;">in</span> <span style="color:#996600;">`'</span></pre></div></div>


<p>What&#8217;s wrong with my rails 2.3.5? It turns out is the problem of railties gem installed by rails 3 beta, railties gem doesn&#8217;t exists before rails 3 beta, so it complain railties version 2.3.5 not found. I start google around, and I am not alone, there is a few people out there have the same problem, and I finally found the temporary solution in the web, but I forget the link. So here is the soltion:</p>

<p>edit your rails script, my rails is installed at /usr/local/bin/rails, change the last 2 line to</p>


<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#008000; font-style:italic;">#gem 'railties', version</span>
<span style="color:#008000; font-style:italic;">#load Gem.bin_path('railties', 'rails', version)</span>
&nbsp;
gemname = <span style="color:#996600;">'railties'</span>
gemname = <span style="color:#996600;">'rails'</span> <span style="color:#9966CC; font-weight:bold;">if</span> version.<span style="color:#CC0066; font-weight:bold;">split</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;.&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#9900CC;">first</span>.<span style="color:#9900CC;">to_i</span> == <span style="color:#006666;">2</span>
gem gemname, version
<span style="color:#CC0066; font-weight:bold;">load</span> Gem.<span style="color:#9900CC;">bin_path</span><span style="color:#006600; font-weight:bold;">&#40;</span>gemname, <span style="color:#996600;">'rails'</span>, version<span style="color:#006600; font-weight:bold;">&#41;</span></pre></div></div>


<p>Basically, we only replace the gem name of railties to rails if the version params start with 2.</p>
]]></content:encoded>
			<wfw:commentRss>http://codename30.com/2010/02/22/generating-rails-app-in-previous-version-after-rails-3-0-beta/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Happy Chinese New Year</title>
		<link>http://codename30.com/2010/02/14/happy-chinese-new-year/</link>
		<comments>http://codename30.com/2010/02/14/happy-chinese-new-year/#comments</comments>
		<pubDate>Sun, 14 Feb 2010 05:09:43 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[codename30]]></category>

		<guid isPermaLink="false">http://codename30.com/?p=87</guid>
		<description><![CDATA[Happy Chinese New Year and Happy Valentine&#8217;s Day. This year is the year of tiger. Good health for all of us.]]></description>
			<content:encoded><![CDATA[<p>Happy Chinese New Year and Happy Valentine&#8217;s Day. This year is the year of tiger. Good health for all of us.</p>
]]></content:encoded>
			<wfw:commentRss>http://codename30.com/2010/02/14/happy-chinese-new-year/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails 2.3.5 Released</title>
		<link>http://codename30.com/2009/11/30/rails-2-3-5-released/</link>
		<comments>http://codename30.com/2009/11/30/rails-2-3-5-released/#comments</comments>
		<pubDate>Mon, 30 Nov 2009 03:00:32 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://codename30.com/?p=68</guid>
		<description><![CDATA[A new version of Rails is released, Rails 2.3.5 fixed the incompatibility issues with Ruby 1.9 found in Rails 2.3.4, with Rails 2.3.5, you are not required to patch Rails if you develop your webapp using Ruby 1.9, and this release contains several bug fixes and 1 security fix. As usual, test your webapp before [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Riding Rails" href="http://weblog.rubyonrails.org/2009/11/30/ruby-on-rails-2-3-5-released">A new version of Rails is released</a>, <a title="Rails 2.3.5 Github" href="http://github.com/rails/rails/tree/v2.3.5">Rails 2.3.5</a> fixed the <a href="http://codename30.com/2009/09/10/rails-2-3-4-didnt-work-well-with-ruby-1-9/">incompatibility issues with Ruby 1.9 found in Rails 2.3.4</a>, with Rails 2.3.5, you are not required to patch Rails if you develop your webapp using Ruby 1.9, and this release contains several bug fixes and 1 <a title="Security Fixed" href="http://groups.google.com/group/rubyonrails-security/browse_thread/thread/4d4f71f2aef4c0ab?pli=1">security fix</a>. As usual, test your webapp before you upgrade and deploy your webapp in production.</p>
]]></content:encoded>
			<wfw:commentRss>http://codename30.com/2009/11/30/rails-2-3-5-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why people like to use MS Word and Excel to do Form?</title>
		<link>http://codename30.com/2009/10/15/why-people-like-to-use-ms-word-and-excel-to-do-form/</link>
		<comments>http://codename30.com/2009/10/15/why-people-like-to-use-ms-word-and-excel-to-do-form/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 03:48:35 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[FormCab]]></category>
		<category><![CDATA[WebApp]]></category>

		<guid isPermaLink="false">http://codename30.com/?p=52</guid>
		<description><![CDATA[Honestly, I hate to fill in paper form, and working on MS Word and Excel forms sucks. I also don&#8217;t know why people like to create forms in Word or Excel format. I hate to fill in paper form since primary school. At the beginning of each school year, you have to fill in numerous [...]]]></description>
			<content:encoded><![CDATA[<p>Honestly, I hate to fill in paper form, and working on MS Word and Excel forms sucks. I also don&#8217;t know why people like to create forms in Word or Excel format. I hate to fill in paper form since primary school. At the beginning of each school year, you have to fill in numerous forms, from application for the student cards to application for the student travel card. You have to read a lot of information before you can filled in the form. I still remember that so many times when I just filled in some information and then I found that I just put it in the wrong field! Sorry no delete button.</p>

<p><strong>Word and Excel Form are usually Poorly Design</strong></p>

<p>Truth be told, most forms in Enterprise are poorly designed or don&#8217;t have design at all. These forms are usually created by executives, these forms are created to fullfil those executives need  to collect whatever informations they like. Those forms are not design to at users standpoint. But the most important problem is that Word and Excel are not suitable to design form for user to input.</p>

<p><strong>What&#8217;s wrong with Word and Excel</strong></p>

<ol>
<li><p>People like to use underline character as the &#8220;grid line&#8221;, so when you try to type in something, those &#8220;grid line&#8221; move while you are typing.</p></li>
<li><p>Those cell in Excel are too short, the information you type in usually span into multiple cell making those &#8220;Form&#8221; unreadable.</p></li>
<li><p>Many people like to print out the form and fill in by hand and then submit. Your printer driver and setting will affect the print out, those wrong margin will make your 1 page form into 2 pages one.</p></li>
</ol>

<p>I just don&#8217;t think Word and Excel is a good tool for both design and fill in form. PDF is a good option, but people seldom use it right, PDF form allows us to design form in e.g. Word or Excel and export it to PDF,  and then use acrobat (not acrobat reader) to design the input field. The problem of the PDF solution is that, you have to design the form twice, once for design the layout, the other for design the input field. The main problem is many people don&#8217;t know they can use acrobat reader to input the form and submit it via email. They just print out the form and fill in by hand. Many tree was killed because the stupidity of those <a title="Pointy-Haired Boss" href="http://en.wikipedia.org/wiki/Pointy-Haired_Boss">PHB</a>.</p>

<p><strong>There Should be a Better Form Solution</strong></p>

<p>Stay tuned, we are developing a solution for that. If you want to keep updates, you can join our <a title="FormCab" href="http://formcab.com">mailing list here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://codename30.com/2009/10/15/why-people-like-to-use-ms-word-and-excel-to-do-form/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CocoaHeads Hong Kong October Meetup</title>
		<link>http://codename30.com/2009/10/07/cocoaheads-hong-kong-october-meetup/</link>
		<comments>http://codename30.com/2009/10/07/cocoaheads-hong-kong-october-meetup/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 03:35:20 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Apple]]></category>

		<guid isPermaLink="false">http://codename30.com/?p=49</guid>
		<description><![CDATA[CocoaHeads Hong Kong October Meetup so see you there. Details as follow: Topic: iPhone Mobile Advertising Best Practices / User Experience Date and Time: 23 Oct 2009, Friday 6:45 pm – 8:30 pm, talk begins at 7:15 pm sharp (iCal event) Venue: Ultimate PC &#38; Mac Gallery, Central Shop Two – G/F, 99 Des Voeux [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://cocoahk.com/2009/10/07/oct-meetup-iphone-mobile-advertising-best-practices-user-experience/">CocoaHeads Hong Kong October Meetup</a> so see you there.</p>

<p style="padding-top: 0px; padding-right: 0px; padding-bottom: 15px; padding-left: 0px; margin: 0px;"><strong>Details as follow:</strong></p>

<p style="padding-top: 0px; padding-right: 0px; padding-bottom: 15px; padding-left: 0px; margin: 0px;"><strong>Topic: </strong>iPhone Mobile Advertising Best Practices / User Experience</p>

<p style="padding-top: 0px; padding-right: 0px; padding-bottom: 15px; padding-left: 0px; margin: 0px;"><strong>Date and Time:</strong> 23 Oct 2009, Friday 6:45 pm – 8:30 pm, talk begins at 7:15 pm sharp (<a style="color: #0072bc; text-decoration: none;" href="http://cocoahk.com/wp-content/uploads/2009/10/e297560860607.ics">iCal event</a>)</p>

<p style="padding-top: 0px; padding-right: 0px; padding-bottom: 15px; padding-left: 0px; margin: 0px;"><strong>Venue:</strong> <a style="color: #0072bc; text-decoration: none;" href="http://www.upcmac.com.hk/index.php?target=pages&amp;page_id=contact">Ultimate PC &amp; Mac Gallery, Central Shop Two</a> – G/F, 99 Des Voeux Road, Central (<a style="color: #0072bc; text-decoration: none;" href="http://maps.google.com.hk/maps?f=q&amp;source=s_q&amp;hl=zh-TW&amp;geocode=&amp;q=No.99,+Des+Voeux+Road,Central&amp;sll=22.38131,114.168639&amp;sspn=1.119981,0.928345&amp;ie=UTF8&amp;hq=&amp;hnear=%E5%BE%B7%E8%BC%94%E9%81%93%E4%B8%AD99%E8%99%9F&amp;ll=22.284455,114.156452&amp;spn=0.003797,0.004887&amp;z=18">Google map</a>)</p>

<p style="padding-top: 0px; padding-right: 0px; padding-bottom: 15px; padding-left: 0px; margin: 0px;"><strong>Registration:</strong> <a style="color: #0072bc; text-decoration: none;" href="http://www.facebook.com/event.php?eid=297560860607">Facebook</a></p>

<p style="padding-top: 0px; padding-right: 0px; padding-bottom: 15px; padding-left: 0px; margin: 0px;"><strong>Event Contact:</strong> <a style="color: #0072bc; text-decoration: none;" href="http://twitter.com/billibala">@billibala</a></p>
]]></content:encoded>
			<wfw:commentRss>http://codename30.com/2009/10/07/cocoaheads-hong-kong-october-meetup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby Enterprise Edition 1.8.7</title>
		<link>http://codename30.com/2009/10/02/ruby-enterprise-edition-1-8-7/</link>
		<comments>http://codename30.com/2009/10/02/ruby-enterprise-edition-1-8-7/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 07:14:15 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://codename30.com/?p=45</guid>
		<description><![CDATA[The folks at Phusion had put out a new version of Ruby Enterprise Edition 1.8.7, 1.8.7 is more compatible to ruby 1.9 than 1.8.6, also the rubygems had upgraded to version 1.3.5.  This version has been beta tested by the Twitter guys, 37signals guys, and those people at Novell. Evan Weaver reported significant improvements in [...]]]></description>
			<content:encoded><![CDATA[<p>The folks at <a title="Phusion" href="http://www.phusion.nl/">Phusion</a> had put out a new version of <a href="http://www.rubyenterpriseedition.com/download.html">Ruby Enterprise Edition 1.8.7</a>, 1.8.7 is more compatible to ruby 1.9 than 1.8.6, also the rubygems had upgraded to version 1.3.5.  This version has been beta tested by the Twitter guys, 37signals guys, and those people at Novell. <a href="http://blog.evanweaver.com/articles/2009/09/24/ree/">Evan Weaver reported significant improvements in Twitter’s throughput</a> after having switched to this REE release.</p>

<p><img class="alignnone" title="Twitter REE 1.8.7 benchmark" src="http://farm3.static.flickr.com/2643/3974073858_a2033e22e1.jpg" alt="" width="500" height="407" /></p>

<p>This is the first REE target to compatible with ruby 1.8.7, the exact version is ruby 1.8.7-p174, all previous REE versions are target to compatible with ruby 1.8.6. As the development of Rails 3.0 is going well, we will need a new ruby version for the upcoming release. Rails 3.0 required at least ruby version 1.8.7, so this is a move to ruby 1.8.7. Mac OSX snow leopard comes with ruby 1.8.7 out of the box. Most version of Linux also shipped with ruby 1.8.7, but not quite true for RHEL.</p>

<p>RHEL5 comes with ruby 1.8.5, that&#8217;s ok for a 2 year old distribution, but for the upcoming RHEL6, which probably based on fedora 10/11, which shipped with ruby 1.8.6. This version of REE is time saver for those people on RHEL. Come on Redhat guys, give us a more updated version of Ruby please!</p>

<p>If you planned to install this version of REE on snow leopard, make sure you run the installer with <code>--no-tcmalloc </code>switch.</p>

<p>P.S. we will probably got an <a href="http://intertwingly.net/blog/2009/09/21/Ruby-1-9-and-Rails-3-0">update version of Agile Web Development with Rails</a> around Christmas, and all those examples in version 4 of the pickaxe book will be working on Ruby 1.9.2. If I have a new Rails project to start, I&#8217;ll probably pick version 1.9.</p>
]]></content:encoded>
			<wfw:commentRss>http://codename30.com/2009/10/02/ruby-enterprise-edition-1-8-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RoR 2.3.4 didn&#8217;t work well with Ruby 1.9</title>
		<link>http://codename30.com/2009/09/10/rails-2-3-4-didnt-work-well-with-ruby-1-9/</link>
		<comments>http://codename30.com/2009/09/10/rails-2-3-4-didnt-work-well-with-ruby-1-9/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 08:42:38 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[RoR]]></category>

		<guid isPermaLink="false">http://codename30.com/?p=26</guid>
		<description><![CDATA[After I upgraded my macbook to snow leopard, I think it&#8217;s a good time to try out Ruby 1.9 and Rails just release version 2.3.4. I follow the installation guide on hivelogic and try to get my dirty hand on it. I think everythings should work as usual. But No. Rails 2.3.4 didn&#8217;t work well [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://farm4.static.flickr.com/3527/3909384000_b16388d3e7.jpg" alt="Crack on Rails" />
After I upgraded my macbook to snow leopard, I think it&#8217;s a good time to try out Ruby 1.9 and Rails just release version 2.3.4. I follow the installation guide on <a title="Hivelogic" href="http://hivelogic.com">hivelogic</a> and try to get my dirty hand on it. I think everythings should work as usual. But No. Rails 2.3.4 didn&#8217;t work well with Ruby 1.9.</p>

<blockquote>No Method Error
undefined method `^&#8217; for &#8220;b&#8221;:String</blockquote>

<p>The error comes from file</p>

<blockquote>active_support-2.3.4/lib/active_support/message_verifier.rb</blockquote>

<p>So with a little google I found others had the same issue as well, and there already have a <a href="https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/3144-undefined-method-for-string-ror-234">lighthouse ticket #3144</a> and a patch on rails. The patch can be download from the lighthouse link.</p>

<p>to applied the patch</p>

<blockquote>$cd /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4
$sudo patch -p1 &lt; /tmp/0001-ruby-1.9-friendly-secure_compare.patch</blockquote>

<p>then type lib/active_support/message_verifier.rb  when it ask which file to patch, I hope the Rails team can release a quick fix to fixed this bug.</p>
]]></content:encoded>
			<wfw:commentRss>http://codename30.com/2009/09/10/rails-2-3-4-didnt-work-well-with-ruby-1-9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
