<?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>Kevin Chiu &#187; ruby</title>
	<atom:link href="http://kevinchiu.org/archives/tag/ruby/feed" rel="self" type="application/rss+xml" />
	<link>http://kevinchiu.org</link>
	<description>Things are only impossible until they&#039;re not.</description>
	<lastBuildDate>Fri, 27 Jan 2012 08:19:46 +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>Tipping Point?</title>
		<link>http://kevinchiu.org/archives/tipping-point</link>
		<comments>http://kevinchiu.org/archives/tipping-point#comments</comments>
		<pubDate>Wed, 19 Nov 2008 14:19:02 +0000</pubDate>
		<dc:creator>Kevin Chiu</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[erlang]]></category>
		<category><![CDATA[erlyweb]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[zend]]></category>

		<guid isPermaLink="false">http://kevinchiu.org/blog/?p=684</guid>
		<description><![CDATA[Down: Rails Up: Django and Zend Framework(?!) Odd: Erlang (Erlang is hot&#8230; but I guess not that well known yet?)]]></description>
			<content:encoded><![CDATA[<p><a href="http://kevinchiu.org/blog/wp-content/uploads/2008/11/picture-4.png"><img src="http://kevinchiu.org/blog/wp-content/uploads/2008/11/picture-4.png" alt="" title="picture-4" class="aligncenter" /></a></p>
<p>Down: Rails</p>
<p>Up: Django and Zend Framework(?!)</p>
<p>Odd: Erlang (Erlang is hot&#8230; but I guess not that well known yet?)</p>]]></content:encoded>
			<wfw:commentRss>http://kevinchiu.org/archives/tipping-point/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Agile Startup Tools</title>
		<link>http://kevinchiu.org/archives/agile-startup-tools</link>
		<comments>http://kevinchiu.org/archives/agile-startup-tools#comments</comments>
		<pubDate>Tue, 19 Aug 2008 04:52:40 +0000</pubDate>
		<dc:creator>Kevin Chiu</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[entrepreneurship]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[productivity]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[startup]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://kevinchiu.org/blog/?p=405</guid>
		<description><![CDATA[Jack Po, an experienced entrepreneur and local friend of mine, just posted some tools startups might find useful. While I agree with most of what he has to say, some healthy horizon-broadening is in order. I&#8217;m new to the startup scene, but I&#8217;ve always been a tech guy. Here are my tools: Website Registration: 1and1 [...]]]></description>
			<content:encoded><![CDATA[<p>Jack Po, an experienced entrepreneur and local friend of mine, just posted some <a href="http://www.jackpo.org/2008/08/17/tools-for-small-organizations">tools startups might find useful</a>. While I agree with most of what he has to say, some healthy horizon-broadening is in order.</p>
<p>I&#8217;m new to the startup scene, but I&#8217;ve always been a tech guy. Here are my tools:</p>
<p><strong>Website Registration</strong>: <a href="http://1and1.com">1and1</a> has free private registration that you can toggle on or off. $7 is the base fee for a .com.</p>
<p><strong>Website Hosting</strong>: <a href="http://engineyard.com">Engine Yard</a> (for rails), <a href="http://slicehost.com">SliceHost</a> (for custom stuff), <a href="http://mediatemple.com">Media Temple</a> (for shared hosting), <a href="http://appengine.google.com">Google App Engine</a> (easily scalable, but has had hiccups&#8230;)</p>
<p><strong>DNS Hosting</strong>: I stick with whoever hosts my site. I&#8217;ve never had any problems.</p>
<p><strong>Email, Calendar, Wiki, Internal Messaging</strong>: <a href="http://apps.google.com">Google Apps</a></p>
<p><strong>Actual Website</strong>: <a href="http://rubyonrails.com">Ruby</a>, <a href="http://java.sun.com">Java</a>, or Plain old HTML/CSS/<a href="http://jquery.com">jQuery</a></p>
<p><strong>Phone</strong>:  <a href="http://skype.com">Skype</a>, <a href="http://grandcentral.com">Grand Central</a> (but GC keeps deleting my old messages&#8230; boo!), iPhone</p>
<p><strong>Conference Calls</strong>: <a href="http://skype.com">Skype</a> &#8211; easy and free.</p>
<p><strong>Surveys, Spreadsheets and Documents</strong>: <a href="http://docs.google.com">Google Docs</a> &#8211; The coolest part of this suite is the real-time collaboration. Plus, there&#8217;s a form-filler mode for the spreadsheet app that you can use to conduct surveys.</p>
<p><strong>Newsletters</strong>: <a href="http://groups.google.com">Google Groups</a> (for continuous conversations) or <a href="http://gmail.com">Gmail</a> email aliases with BCC (for periodicals).</p>
<p><strong>Project Management</strong>: <a href="http://lighthouseapp.com">Lighthouse</a>, <a href="http://github.com">Github</a>, <a href="http://code.google.com">Google Code</a>, <a href="http://sf.net">Sourceforge</a>, or just plain old face-time. I&#8217;m actually itching to build a way more intuitive project management system. But for now, I can live with these. (I used to use <a href="http://www.basecamphq.com">Basecamp</a>, but it can be abused too easily&#8230;)</p>
<p><strong>Website statistics</strong>: <a href="http://analytics.google.com">Google Analytics</a></p>
<p><strong>Search Engine Optimization (SEO)</strong>: <a href="http://google.com/sitemaps">Google Sitemaps</a></p>
<p><strong>Code Tools</strong>: <a href="http://ubuntu.com">Linux</a> Shell, <a href="http://macromates.com">TextMate</a>, <a href="http://eclipse.org">Eclipse</a></p>
<p><strong>Computers</strong>: <a href="http://apple.com">Apple Macs</a>.</p>
<p><strong>Presentations</strong>: <a href="http://www.apple.com/iwork/keynote">Apple Keynote</a></p>
<p><strong>Graphics</strong>: <a href="http://www.adobe.com/products/photoshop/index.html">Adobe Photoshop CS3</a>, <a href="http://www.omnigroup.com/applications/OmniGraffle">Omnigraffle</a></p>]]></content:encoded>
			<wfw:commentRss>http://kevinchiu.org/archives/agile-startup-tools/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pivitol Blabs</title>
		<link>http://kevinchiu.org/archives/pivitol-blabs</link>
		<comments>http://kevinchiu.org/archives/pivitol-blabs#comments</comments>
		<pubDate>Tue, 01 Jul 2008 07:48:56 +0000</pubDate>
		<dc:creator>Kevin Chiu</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[agile]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://kevinchiu.org/blog/?p=347</guid>
		<description><![CDATA[I just read the entire Pivitol Blabs Blog. Interesting.]]></description>
			<content:encoded><![CDATA[<p>I just read the entire <a href="http://pivots.pivotallabs.com/blabs">Pivitol Blabs Blog</a>. Interesting.</p>]]></content:encoded>
			<wfw:commentRss>http://kevinchiu.org/archives/pivitol-blabs/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby on Rails 2.0 is OUT!</title>
		<link>http://kevinchiu.org/archives/ruby-on-rails-20-is-out</link>
		<comments>http://kevinchiu.org/archives/ruby-on-rails-20-is-out#comments</comments>
		<pubDate>Fri, 07 Dec 2007 06:58:48 +0000</pubDate>
		<dc:creator>Kevin Chiu</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://kevinchiu.org/blog/archives/ruby-on-rails-20-is-out</guid>
		<description><![CDATA[Get it now. gem install rails -y]]></description>
			<content:encoded><![CDATA[<p>Get it now.</p>
<pre>gem install rails -y</pre>]]></content:encoded>
			<wfw:commentRss>http://kevinchiu.org/archives/ruby-on-rails-20-is-out/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby Threads</title>
		<link>http://kevinchiu.org/archives/ruby-threads</link>
		<comments>http://kevinchiu.org/archives/ruby-threads#comments</comments>
		<pubDate>Thu, 08 Feb 2007 10:30:00 +0000</pubDate>
		<dc:creator>Kevin Chiu</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.kevinchiu.org/blog/?p=171</guid>
		<description><![CDATA[Today, I encountered my first Ruby gripe. Variables mapped from collection passed into Ruby threads are not independent of one another. If one thread changes the passed variable, all of other threads share the new variable. Let&#8217;s suppose I have an Array of items = ["item 1", "item 2", "item 3"] Here&#8217;s some code that [...]]]></description>
			<content:encoded><![CDATA[<p>Today, I encountered my first Ruby gripe.</p>
<p>Variables mapped from collection passed into Ruby threads are not independent of one another. If one thread changes the passed variable, all of other threads share the new variable.</p>
<p>Let&#8217;s suppose I have an Array of items = ["item 1", "item 2", "item 3"]</p>
<p>Here&#8217;s some code that takes each item in the array and does some processing on it, printing out &#8220;finished!&#8221; statements after each element is processed.
<pre>items.map{|item| Thread.new(item){  #process with variable execution time goes here  puts "#{item} finished!" }}</pre>
<p>Let&#8217;s suppose the map task associated with &#8220;item 3&#8243; starts last and ends first. Then the output could look like this:
<pre>item 3 finished!item 3 finished!item 3 finished!</pre>
<p>The explanation for this peculiar behavior is detailed in <a href="http://rubycentral.com/">Ruby Central</a>&#8216;s <a href="http://www.rubycentral.com/book/tut_threads.html">Pragmatic Programmer&#8217;s Guide</a>:<br />
<blockquote>&#8220;A thread shares all global, instance, and local variables that are in existence at the time the thread starts.&#8221;</p></blockquote>]]></content:encoded>
			<wfw:commentRss>http://kevinchiu.org/archives/ruby-threads/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Dusting Off My Ruby Skills</title>
		<link>http://kevinchiu.org/archives/dusting-off-my-ruby-skills</link>
		<comments>http://kevinchiu.org/archives/dusting-off-my-ruby-skills#comments</comments>
		<pubDate>Sun, 07 Jan 2007 11:49:00 +0000</pubDate>
		<dc:creator>Kevin Chiu</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.kevinchiu.org/blog/?p=158</guid>
		<description><![CDATA[I just finished writing my first non-trivial Ruby script. It searches a website (more than a page) for pictures that match given search criteria and downloads the pictures along with meta data. It&#8217;s only 61 lines long, and there are a bunch of comments and blank lines. It&#8217;s not complete yet, but the final version [...]]]></description>
			<content:encoded><![CDATA[<p>I just finished writing my first non-trivial Ruby script.</p>
<p>It searches a website (more than a page) for pictures that match given search criteria and downloads the pictures along with meta data.</p>
<p>It&#8217;s only 61 lines long, and there are a bunch of comments and blank lines. It&#8217;s not complete yet, but the final version should be less than 100 lines long.</p>
<p>Our <a href="http://sf.net/projects/railpad">Railpad</a> server was up for 288 days before I shut it down yesterday. I haven&#8217;t coded any significant Ruby code since I worked on Railpad, so this picture grabbing script was a much-needed refresher.</p>]]></content:encoded>
			<wfw:commentRss>http://kevinchiu.org/archives/dusting-off-my-ruby-skills/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Year&#8217;s Resolutions</title>
		<link>http://kevinchiu.org/archives/new-years-resolutions-2</link>
		<comments>http://kevinchiu.org/archives/new-years-resolutions-2#comments</comments>
		<pubDate>Mon, 01 Jan 2007 16:43:00 +0000</pubDate>
		<dc:creator>Kevin Chiu</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[random]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.kevinchiu.org/blog/?p=152</guid>
		<description><![CDATA[1. Maintain a sleep schedule2. Catch up with friends3. Learn Django4. Improve Ruby skills5. _______?]]></description>
			<content:encoded><![CDATA[<p>1. Maintain a sleep schedule<br />2. Catch up with friends<br />3. Learn Django<br />4. Improve Ruby skills<br />5. _______?</p>]]></content:encoded>
			<wfw:commentRss>http://kevinchiu.org/archives/new-years-resolutions-2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Ruby on Rails the Easy Way</title>
		<link>http://kevinchiu.org/archives/installing-ruby-on-rails-the-easy-way</link>
		<comments>http://kevinchiu.org/archives/installing-ruby-on-rails-the-easy-way#comments</comments>
		<pubDate>Thu, 14 Dec 2006 14:15:00 +0000</pubDate>
		<dc:creator>Kevin Chiu</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.kevinchiu.org/blog/?p=146</guid>
		<description><![CDATA[update: There&#8217;s an even easier way to get up and running with Ruby on Rails. Try Locomotive. I created this script to install Ruby on Rails on OS X 10.4. It should also work on Ubuntu or other types of Linux as long as you have Bash. First, have MySQL and gcc installed. Then, open [...]]]></description>
			<content:encoded><![CDATA[<p><strong>update:</strong> There&#8217;s an even easier way to get up and running with Ruby on Rails. Try <a href="http://locomotive.raaum.org/">Locomotive</a>.</p>
<p>I created this script to install Ruby on Rails on OS X 10.4. It should also work on Ubuntu or other types of Linux as long as you have Bash.</p>
<p>First, have <a href="http://dev.mysql.com/downloads/mysql/5.0.html">MySQL</a> and <a href="http://developer.apple.com/tools/xcode/">gcc</a> installed.</p>
<p>Then, open the Terminal and use this command:</p>
<pre>sudo curl <a href="http://kevinchiu.org/ror.sh" rel="nofollow">http://kevinchiu.org/ror.sh</a>|bash</pre>
<p>After a few minutes you should see something like this:</p>
<pre>Select which gem to install for your platform</pre>
<pre>1. mysql 2.7.1 (mswin32)</pre>
<pre>2. mysql 2.7 (ruby)</pre>
<pre>3. mysql 2.6 (ruby)</pre>
<pre>4. mysql 2.5.1 (ruby)</pre>
<pre>5. Cancel installation</pre>
<p>Select the option highest on the list that has (ruby) in the description. In this case it&#8217;s 2.</p>
<p>Here&#8217;s what the script installs:</p>
<pre>readline 5.2</pre>
<pre>ruby 1.8.5</pre>
<pre>rubygems 0.9.0</pre>
<pre>rails</pre>
<pre>fastcgi 2.4.0</pre>
<pre>ruby-fcgi 0.8.7</pre>
<pre>pcre 6.7</pre>
<pre>lighttpd 1.4.11</pre>
<pre>mysql native bindings</pre>
<p>If you have any problems, leave a comment and I&#8217;ll see what I can do.</p>
<p>If this helped you, please <a href="http://digg.com/programming/Installing_Ruby_on_Rails_the_Easy_Way">Digg</a> it. That way it&#8217;s more likely to help others as well.</p>
<p>The script is an updated version of the process found <a href="http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger">here</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://kevinchiu.org/archives/installing-ruby-on-rails-the-easy-way/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>True Names in the wild!</title>
		<link>http://kevinchiu.org/archives/true-names-in-the-wild</link>
		<comments>http://kevinchiu.org/archives/true-names-in-the-wild#comments</comments>
		<pubDate>Sun, 29 Oct 2006 14:35:00 +0000</pubDate>
		<dc:creator>Kevin Chiu</dc:creator>
				<category><![CDATA[games]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.kevinchiu.org/blog/?p=125</guid>
		<description><![CDATA[Yukihiro &#8220;Matz&#8221; Matsumoto, the guy behind Ruby of Ruby on Rails fame, referenced &#8220;True Names&#8221; in his talk about Ruby Design Principles. The Presentation MP3 When he mentions True Names, he&#8217;s on this slide.]]></description>
			<content:encoded><![CDATA[<p>Yukihiro &#8220;Matz&#8221; Matsumoto, the guy behind <a href="http://ruby-lang.org">Ruby</a> of <i><a href="http://rubyonrails.com">Ruby on Rails</a></i> fame, referenced &#8220;<a href="http://home.comcast.net/~kngjon/truename/truename.html">True Names</a>&#8221; in his talk about Ruby Design Principles.</p>
<p><a href="http://www.itconversations.com/audio/download/itconversations-1638.mp3">The Presentation MP3</a></p>
<p>When he mentions True Names, he&#8217;s on <a href="http://www.cs.byu.edu/colloquia/2006Fall/presentations/Matz_slides/mgp00055.html">this slide</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://kevinchiu.org/archives/true-names-in-the-wild/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

