<?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>kill the radio &#187; deployments</title>
	<atom:link href="http://blog.killtheradio.net/tag/deployments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.killtheradio.net</link>
	<description>or die trying</description>
	<lastBuildDate>Fri, 18 Jun 2010 04:56:10 +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>Javascript minification with JSMin and gzip</title>
		<link>http://blog.killtheradio.net/technology/javascript-minification-with-jsmin-and-gzip/</link>
		<comments>http://blog.killtheradio.net/technology/javascript-minification-with-jsmin-and-gzip/#comments</comments>
		<pubDate>Tue, 04 May 2010 00:32:54 +0000</pubDate>
		<dc:creator>Andrew Lyon</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[deployments]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[minification]]></category>

		<guid isPermaLink="false">http://blog.killtheradio.net/?p=527</guid>
		<description><![CDATA[Here&#8217;s a good tip I just found. Note that this may not be for all cases. In fact, I may have stumbled on a freak coincidence. Here&#8217;s the story: I hate java. I hate having java on a server, but hate it even more if it&#8217;s only for running one small script. Forever, beeets.com has [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a good tip I just found. Note that this may not be for all cases. In fact, I may have stumbled on a freak coincidence. Here&#8217;s the story:</p>
<p>I hate java. I hate having java on a server, but hate it even more if it&#8217;s only for running one small script. Forever, <a href="http://beeets.com">beeets.com</a> has used the <a href="http://developer.yahoo.com/yui/compressor/">YUI compressor</a> to shrink its javascript before deployment. Well, YUI won&#8217;t run without java, so for the longest time, jre has been installed collecting dust, only to be brushed off and used once in a while during a deployment. This seems like a huge waste of space and resources.</p>
<p>Well, first I tried gcj. Compiling gcj was fairly straightforward, thankfully. After installing, I realized I needed to know a lot more about java in order to compile the YUI compressor with it. I needed knowledge I did not have the long-term need for, nor the will to learn in the first place. I, although revering myself as extremely tenacious, gave up.</p>
<p>I decided to try <a href="http://www.crockford.com/javascript/jsmin.html">JSMin</a>. This nifty program is simple, elegant, and it works well. It also has a much worse compression ratio then YUI. However, I trust any site that hosts C code and has no real layout whatsoever. Knowing the compression wasn&#8217;t as good, I still wanted to see what kind of difference gzipping the files would have.</p>
<p>I recorded the size of the GZipped JS files that used YUI. I then reconfigured the deployment script to use JSMin instead of YUI. I looked at the JS files with JSMin compression:</p>
<pre>YUI:
mootools.js     88.7K (29.6K gz)
beeets.js       61.5K (20.5K gz)

JSMin:
mootools.js    106.1K (29.5K gz)
beeets.js       71.0K (17.7K gz)</pre>
<p>Huh? GZip is actually more effective on the JS files using JSMin vs YUI! The end result is LESS download time for users.</p>
<p>I don&#8217;t know if this is a special case, but I was able to derive a somewhat complex formula:</p>
<pre>YUI &gt; JSMin
YUI + GZip &lt; JSMin + GZip</pre>
<p>Who would have thought. See you in hell, java.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.killtheradio.net/technology/javascript-minification-with-jsmin-and-gzip/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fix capistrano multi-server deployments (sort of)</title>
		<link>http://blog.killtheradio.net/tricks-hacks/fix-capistrano-multi-server-deployments-sort-of/</link>
		<comments>http://blog.killtheradio.net/tricks-hacks/fix-capistrano-multi-server-deployments-sort-of/#comments</comments>
		<pubDate>Mon, 30 Nov 2009 22:14:48 +0000</pubDate>
		<dc:creator>Andrew Lyon</dc:creator>
				<category><![CDATA[Tricks/Hacks]]></category>
		<category><![CDATA[deployments]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://blog.killtheradio.net/?p=352</guid>
		<description><![CDATA[Capistrano is a sexy bitch. At least it was until I spent hours trying to figure out how to deploy to multiple servers. Updated Cap, Ruby, compiled Ruby from source twice, etc etc. Capistrano just kept hanging with pushing code to two or more servers at once. Note that I am in Cygwin, if that [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="nofollow" href="http://www.capify.org/index.php/Capistrano" target="_blank">Capistrano</a> is a <em>sexy bitch</em>. At least it was until I spent hours trying to figure out how to deploy to multiple servers. Updated Cap, Ruby, compiled Ruby from source twice, etc etc. Capistrano just kept hanging with pushing code to two or more servers at once. Note that I am in Cygwin, if that makes a difference. Also, when deploying with no password on my ssh key, it works&#8230;hmm.</p>
<p>Well I added this:</p>
<pre>default_run_options[:max_hosts] = 1</pre>
<p>To my deploy.rb, and although it now has to deploy to one server at a time, it works. Note that for two servers this is fine. For 200 it&#8217;s not so fine. I&#8217;ll worry about that when it comes though.</p>
<p>UPDATE!!!! Something I never thought about until now is that you can use ssh-agent to save your keys in memory pre-deploy. Then you have a password-protected key that works with Capistrano WITHOUT doing the max_hosts hack. This is tested (on cygwin) and working for me.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.killtheradio.net/tricks-hacks/fix-capistrano-multi-server-deployments-sort-of/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
