<?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>#{茶男與藍牌}</title>
	<atom:link href="http://www.chentianwen.net/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chentianwen.net/wordpress</link>
	<description>Life has to be exciting.</description>
	<lastBuildDate>Fri, 11 May 2012 13:04:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Chef: WARN: HTTP Request Returned 401 Unauthorized: Failed to authenticate as mhasan. Synchronize the clock on your host.</title>
		<link>http://www.chentianwen.net/wordpress/2012/05/11/chef-warn-http-request-returned-401-unauthorized-failed-to-authenticate-as-mhasan-synchronize-the-clock-on-your-host/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=chef-warn-http-request-returned-401-unauthorized-failed-to-authenticate-as-mhasan-synchronize-the-clock-on-your-host</link>
		<comments>http://www.chentianwen.net/wordpress/2012/05/11/chef-warn-http-request-returned-401-unauthorized-failed-to-authenticate-as-mhasan-synchronize-the-clock-on-your-host/#comments</comments>
		<pubDate>Fri, 11 May 2012 13:04:51 +0000</pubDate>
		<dc:creator>茶男</dc:creator>
				<category><![CDATA[Application Server]]></category>

		<guid isPermaLink="false">http://www.chentianwen.net/wordpress/?p=634</guid>
		<description><![CDATA[ntpdate pool.ntp.org]]></description>
		<wfw:commentRss>http://www.chentianwen.net/wordpress/2012/05/11/chef-warn-http-request-returned-401-unauthorized-failed-to-authenticate-as-mhasan-synchronize-the-clock-on-your-host/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add script to startup</title>
		<link>http://www.chentianwen.net/wordpress/2012/05/09/add-script-to-startup/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=add-script-to-startup</link>
		<comments>http://www.chentianwen.net/wordpress/2012/05/09/add-script-to-startup/#comments</comments>
		<pubDate>Wed, 09 May 2012 02:59:18 +0000</pubDate>
		<dc:creator>茶男</dc:creator>
				<category><![CDATA[Application Server]]></category>

		<guid isPermaLink="false">http://www.chentianwen.net/wordpress/?p=629</guid>
		<description><![CDATA[update-rc.d SCRIPT_NAME defaults]]></description>
		<wfw:commentRss>http://www.chentianwen.net/wordpress/2012/05/09/add-script-to-startup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Understanding delete</title>
		<link>http://www.chentianwen.net/wordpress/2012/04/04/understanding-delete/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=understanding-delete</link>
		<comments>http://www.chentianwen.net/wordpress/2012/04/04/understanding-delete/#comments</comments>
		<pubDate>Tue, 03 Apr 2012 22:40:49 +0000</pubDate>
		<dc:creator>茶男</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.chentianwen.net/wordpress/?p=623</guid>
		<description><![CDATA[<p>from <a href="http://perfectionkills.com/understanding-delete/">http://perfectionkills.com/understanding-delete/</a></p> <p>A couple of weeks ago, I had a chance to glance through Stoyan Stefanov’s <a href="http://www.amazon.com/Object-Oriented-JavaScript-high-quality-applications-libraries/dp/1847194141">Object-Oriented Javascript</a>. The book had an exceptionally high rating on Amazon (12 reviews with 5 stars), so I was curious to see if it was something worth recommending. I started reading through chapter on functions, and really enjoyed the [...]]]></description>
		<wfw:commentRss>http://www.chentianwen.net/wordpress/2012/04/04/understanding-delete/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails 3: cache: [GET /] miss</title>
		<link>http://www.chentianwen.net/wordpress/2012/03/07/rails-3-cache-get-miss/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=rails-3-cache-get-miss</link>
		<comments>http://www.chentianwen.net/wordpress/2012/03/07/rails-3-cache-get-miss/#comments</comments>
		<pubDate>Wed, 07 Mar 2012 01:14:15 +0000</pubDate>
		<dc:creator>茶男</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://www.chentianwen.net/wordpress/?p=620</guid>
		<description><![CDATA[<p>If you get this from your error log, there might be two things you might look into:</p> <p>1. assets pipeline precompile</p> <p>2. cache_store is not properly set up for the environment (like staging and production)</p>]]></description>
		<wfw:commentRss>http://www.chentianwen.net/wordpress/2012/03/07/rails-3-cache-get-miss/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails 3.2 asset pipeline precompile needs a Javascript runtime.</title>
		<link>http://www.chentianwen.net/wordpress/2012/03/07/rails-3-2-asset-pipeline-precompile-needs-a-javascript-runtime/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=rails-3-2-asset-pipeline-precompile-needs-a-javascript-runtime</link>
		<comments>http://www.chentianwen.net/wordpress/2012/03/07/rails-3-2-asset-pipeline-precompile-needs-a-javascript-runtime/#comments</comments>
		<pubDate>Wed, 07 Mar 2012 00:33:02 +0000</pubDate>
		<dc:creator>茶男</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://www.chentianwen.net/wordpress/?p=618</guid>
		<description><![CDATA[<p>To precompile the asset pipeline, you need a Javascript runtime like node.js</p> <p>Or you will see the error message when you run</p> rake assets:precompile Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes.]]></description>
		<wfw:commentRss>http://www.chentianwen.net/wordpress/2012/03/07/rails-3-2-asset-pipeline-precompile-needs-a-javascript-runtime/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Global functions can go into the /lib in Rails</title>
		<link>http://www.chentianwen.net/wordpress/2012/03/01/global-functions-can-go-into-the-lib-in-rails/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=global-functions-can-go-into-the-lib-in-rails</link>
		<comments>http://www.chentianwen.net/wordpress/2012/03/01/global-functions-can-go-into-the-lib-in-rails/#comments</comments>
		<pubDate>Thu, 01 Mar 2012 06:02:01 +0000</pubDate>
		<dc:creator>茶男</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://www.chentianwen.net/wordpress/?p=616</guid>
		<description><![CDATA[<p>Write the code in /lib/global.rb</p> def hello; "world"; end <p>Autoload in /config/application.rb</p> config.autoload_paths += Dir["#{config.root}/lib/**.rb/"]]]></description>
		<wfw:commentRss>http://www.chentianwen.net/wordpress/2012/03/01/global-functions-can-go-into-the-lib-in-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why Web Browser DNS Caching Can Be A Bad Thing</title>
		<link>http://www.chentianwen.net/wordpress/2012/02/29/why-web-browser-dns-caching-can-be-a-bad-thing/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=why-web-browser-dns-caching-can-be-a-bad-thing</link>
		<comments>http://www.chentianwen.net/wordpress/2012/02/29/why-web-browser-dns-caching-can-be-a-bad-thing/#comments</comments>
		<pubDate>Tue, 28 Feb 2012 21:52:17 +0000</pubDate>
		<dc:creator>茶男</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[DNS]]></category>

		<guid isPermaLink="false">http://www.chentianwen.net/wordpress/?p=614</guid>
		<description><![CDATA[<p>from <a href="http://dyn.com/web-browser-dns-caching-bad-thing/">http://dyn.com/web-browser-dns-caching-bad-thing/</a></p> <p>The whole reason for caching DNS records is to reduce unnecessary DNS queries; many webservers don’t change their IP addresses all that often. Every DNS record that your operating system requests has what is called a “Time to Live” (TTL), which is a number (in seconds) that determines how long a particular <a href="http://dyn.com/dns/">DNS</a> record [...]]]></description>
		<wfw:commentRss>http://www.chentianwen.net/wordpress/2012/02/29/why-web-browser-dns-caching-can-be-a-bad-thing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Discover ActiveModel: Dirty Record</title>
		<link>http://www.chentianwen.net/wordpress/2012/02/23/discover-activemodel-dirty-record/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=discover-activemodel-dirty-record</link>
		<comments>http://www.chentianwen.net/wordpress/2012/02/23/discover-activemodel-dirty-record/#comments</comments>
		<pubDate>Thu, 23 Feb 2012 05:14:44 +0000</pubDate>
		<dc:creator>茶男</dc:creator>
				<category><![CDATA[ActiveRecord]]></category>

		<guid isPermaLink="false">http://www.chentianwen.net/wordpress/?p=609</guid>
		<description><![CDATA[<p>How to find out the old value for an attribute in active model? How to find out whether the value has changed?</p> <p>If you take a look at the module ActiveModel::Dirty, you will know.</p> <p>Take a look at the following examples:</p> <p>Reference: <a href="http://api.rubyonrails.org/classes/ActiveModel/Dirty.html">http://api.rubyonrails.org/classes/ActiveModel/Dirty.html</a></p>]]></description>
		<wfw:commentRss>http://www.chentianwen.net/wordpress/2012/02/23/discover-activemodel-dirty-record/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>1 error(s) on assignment of multiparameter attributes</title>
		<link>http://www.chentianwen.net/wordpress/2012/02/19/1-errors-on-assignment-of-multiparameter-attributes/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=1-errors-on-assignment-of-multiparameter-attributes</link>
		<comments>http://www.chentianwen.net/wordpress/2012/02/19/1-errors-on-assignment-of-multiparameter-attributes/#comments</comments>
		<pubDate>Sat, 18 Feb 2012 22:16:44 +0000</pubDate>
		<dc:creator>茶男</dc:creator>
				<category><![CDATA[ActiveRecord]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://www.chentianwen.net/wordpress/?p=606</guid>
		<description><![CDATA[<p>from <a href="http://gabeodess.heroku.com/posts/14">http://gabeodess.heroku.com/posts/14</a></p> <p>I found myself wanting to set an attr_accessor to handle passing a date to my model in a form_for tag with the f.datetime_select helper. So this is what I had:</p> <p>Model:</p> attr_accessor :my_time <p>View:</p> &#60;%= f.datetime_select :my_time %&#62; <p>Unfortunately when I submit my form I get this:</p> 1 error(s) on assignment of multiparameter [...]]]></description>
		<wfw:commentRss>http://www.chentianwen.net/wordpress/2012/02/19/1-errors-on-assignment-of-multiparameter-attributes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gem::Package::FormatError: no metadata found in ???</title>
		<link>http://www.chentianwen.net/wordpress/2012/02/16/gempackageformaterror-no-metadata-found-in/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=gempackageformaterror-no-metadata-found-in</link>
		<comments>http://www.chentianwen.net/wordpress/2012/02/16/gempackageformaterror-no-metadata-found-in/#comments</comments>
		<pubDate>Thu, 16 Feb 2012 03:22:46 +0000</pubDate>
		<dc:creator>茶男</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Bundler]]></category>

		<guid isPermaLink="false">http://www.chentianwen.net/wordpress/?p=602</guid>
		<description><![CDATA[<p>If you have ever run into this issue like:</p> Gem::Package::FormatError: no metadata found in /Users/username/.rvm/gems/ruby-1.8.7-p334@project/cache/cancan-1.5.1.gem An error occured while installing cancan (1.5.1), and Bundler cannot continue. Make sure that `gem install cancan -v '1.5.1'` succeeds before bundling. <p>Or</p> Gem::Package::FormatError: corrupt gem (Gem::Package::TarInvalidError: tar is corrupt, name contains null byte) in /Users/username/.rvm/gems/ruby-1.8.7-p334@project/cache/warden-1.0.5.gem An error occured while [...]]]></description>
		<wfw:commentRss>http://www.chentianwen.net/wordpress/2012/02/16/gempackageformaterror-no-metadata-found-in/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

