<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.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:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Mozketo</title>
	
	<link>http://mozketo.com</link>
	<description>Now a dev diary</description>
	<lastBuildDate>Wed, 24 Feb 2010 12:18:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</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" type="application/rss+xml" href="http://feeds.feedburner.com/Mozketo" /><feedburner:info uri="mozketo" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Barebones CAEmitterLayer aka Particle Effects</title>
		<link>http://feedproxy.google.com/~r/Mozketo/~3/3AaNv4YjkrI/</link>
		<comments>http://mozketo.com/barebones-caemitterlayer-aka-particle-effects/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 12:18:55 +0000</pubDate>
		<dc:creator>Mozketo</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[CAEmitterLayer]]></category>
		<category><![CDATA[Core Animation]]></category>

		<guid isPermaLink="false">http://mozketo.com/?p=360</guid>
		<description><![CDATA[CAEmitterLayer: use to create particle effects. Each particle is an instance of CAEmitterCell. (10.6) &#8211; cocoadevcentral
How could you not be intrigued? Particle Effects! Well I&#8217;ve always been interested in Particle Generators, and there&#8217;s one right here in Snow Leopard. How exciting. /claps.
I recently took a look at the Fire and Fireworks sample code that Apple [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>CAEmitterLayer: use to create particle effects. Each particle is an instance of CAEmitterCell. (10.6) &#8211; <a href="http://twitter.com/cocoadevcentral/status/3607680055">cocoadevcentral</a></p></blockquote>
<p>How could you not be intrigued? Particle Effects! Well I&#8217;ve always been interested in Particle Generators, and there&#8217;s one right here in Snow Leopard. How exciting. /claps.</p>
<p>I recently took a look at the Fire and Fireworks sample code that Apple and was duly impressed by what Core Animation provides for so little cost both code-wise and CPU resources. So I decided to write the simplest &#8211; barebones &#8211; <a href="http://developer.apple.com/mac/library/documentation/GraphicsImaging/Reference/CAEmitterLayer_class/Reference/Reference.html">CAEmitterLayer</a> code where I was only dependant on the NSView it draws on.</p>
<p>There&#8217;s no fancy-pants stuff going on here, just a raw, simple, single particle effect. But it gives you a great perspective on how it works and the minimal code required to have a great particle animation.</p>
<p><a href="http://mozketo.com/wp-content/uploads/2010/02/particle_01_01.png"><img src="http://mozketo.com/wp-content/uploads/2010/02/particle_01_01.png" alt="Screenshot of this project" title="particle_01_01" width="531" height="519" class="alignnone size-full wp-image-362" /></a></p>
<p>If you&#8217;re starting afresh you&#8217;re going to need to tell your project that we want to use Core Animation so:</p>
<ul>
<li>Right click the Frameworks > Linked Frameworks on the left,</li>
<li>Add > Existing Frameworks&#8230;</li>
<li>Scroll to QuartzCore.framework > Add,</li>
<li>And make sure your ParticleController header file contains <code>#import &lt;QuartzCore/QuartzCore.h&gt;</code>.</li>
</ul>
<p>Looking at CAEmitterLayer briefly (and ignoring setting up Interface Builder &#038; the Nib) in our header file we simply need a CAEmitterLayer:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p360code3'); return false;">View Code</a> OBJC</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p3603"><td class="code" id="p360code3"><pre class="objc" style="font-family:monospace;">IBOutlet <a href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSView_Class/"><span style="color: #400080;">NSView</span></a> <span style="color: #002200;">*</span>view;
CALayer <span style="color: #002200;">*</span>rootLayer;
CAEmitterLayer <span style="color: #002200;">*</span>emitter;</pre></td></tr></table></div>

<p>Where as the implementation file is going to need a whole lot of data for the Emitter plus we need to create a CAEmitterCell for the particle itself.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p360code4'); return false;">View Code</a> OBJC</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p3604"><td class="code" id="p360code4"><pre class="objc" style="font-family:monospace;"><span style="color: #11740a; font-style: italic;">//Create the emitter layer</span>
emitter <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span>CAEmitterLayer layer<span style="color: #002200;">&#93;</span>;
emitter.emitterPosition <span style="color: #002200;">=</span> CGPointMake<span style="color: #002200;">&#40;</span>CGRectGetMidX<span style="color: #002200;">&#40;</span>rootLayer.bounds<span style="color: #002200;">&#41;</span>, CGRectGetMidY<span style="color: #002200;">&#40;</span>rootLayer.bounds<span style="color: #002200;">&#41;</span><span style="color: #002200;">&#41;</span>;
emitter.emitterMode <span style="color: #002200;">=</span> kCAEmitterLayerOutline;
emitter.emitterShape <span style="color: #002200;">=</span> kCAEmitterLayerCircle;
emitter.renderMode <span style="color: #002200;">=</span> kCAEmitterLayerAdditive;
emitter.emitterSize <span style="color: #002200;">=</span> CGSizeMake<span style="color: #002200;">&#40;</span><span style="color: #2400d9;">50</span> <span style="color: #002200;">*</span> multiplier, <span style="color: #2400d9;">0</span><span style="color: #002200;">&#41;</span>;
&nbsp;
<span style="color: #11740a; font-style: italic;">//Create the emitter cell</span>
CAEmitterCell<span style="color: #002200;">*</span> particle <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span>CAEmitterCell emitterCell<span style="color: #002200;">&#93;</span>;
particle.emissionLongitude <span style="color: #002200;">=</span> M_PI;
particle.birthRate <span style="color: #002200;">=</span> multiplier <span style="color: #002200;">*</span> <span style="color: #2400d9;">1000.0</span>;
particle.lifetime <span style="color: #002200;">=</span> multiplier;
particle.lifetimeRange <span style="color: #002200;">=</span> multiplier <span style="color: #002200;">*</span> <span style="color: #2400d9;">0.35</span>;
particle.velocity <span style="color: #002200;">=</span> <span style="color: #2400d9;">180</span>;
particle.velocityRange <span style="color: #002200;">=</span> <span style="color: #2400d9;">130</span>;
particle.emissionRange <span style="color: #002200;">=</span> <span style="color: #2400d9;">1.1</span>;
particle.scaleSpeed <span style="color: #002200;">=</span> <span style="color: #2400d9;">0.3</span>;
CGColorRef color <span style="color: #002200;">=</span> CGColorCreateGenericRGB<span style="color: #002200;">&#40;</span><span style="color: #2400d9;">0.3</span>, <span style="color: #2400d9;">0.4</span>, <span style="color: #2400d9;">0.9</span>, <span style="color: #2400d9;">0.10</span><span style="color: #002200;">&#41;</span>;
particle.color <span style="color: #002200;">=</span> color;
CGColorRelease<span style="color: #002200;">&#40;</span>color<span style="color: #002200;">&#41;</span>;
particle.contents <span style="color: #002200;">=</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">id</span><span style="color: #002200;">&#41;</span> <span style="color: #002200;">&#91;</span>self CGImageNamed<span style="color: #002200;">:</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;spark.png&quot;</span><span style="color: #002200;">&#93;</span>;</pre></td></tr></table></div>

<p>For the complete implementation file or the complete project please <a href="http://bitbucket.org/Mozketo/barebones-ca-particles-01">feel free to grab the source code from the bitbucket project</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Mozketo?a=3AaNv4YjkrI:9JzoEnpJpmg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Mozketo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Mozketo?a=3AaNv4YjkrI:9JzoEnpJpmg:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Mozketo?i=3AaNv4YjkrI:9JzoEnpJpmg:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://mozketo.com/barebones-caemitterlayer-aka-particle-effects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://mozketo.com/barebones-caemitterlayer-aka-particle-effects/</feedburner:origLink></item>
		<item>
		<title>iPad User-Agent String</title>
		<link>http://feedproxy.google.com/~r/Mozketo/~3/eBl1e8P1PkU/</link>
		<comments>http://mozketo.com/ipad-user-agent-string/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 06:18:33 +0000</pubDate>
		<dc:creator>Mozketo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mozketo.com/?p=357</guid>
		<description><![CDATA[At least just for my own notes here&#8217;s some iPad/iPhone user-agent string:
iPad 3.2 beta 2 (7B320c)

?View Code TEXTmozilla/5.0 (ipad; u; cpu os 3_2 like mac os x; en-us) applewebkit/531.21.10 (khtml, like gecko) version/4.0.4 mobile/7b320c safari/531.21.10

iPhone 3.1.3 (7E13) &#8211; Simulator

?View Code TEXTmozilla/5.0 (iphone simulator; u; cpu iphone os 3_1_3 like mac os x; en-us) applewebkit/528.18 (khtml, [...]]]></description>
			<content:encoded><![CDATA[<p>At least just for my own notes here&#8217;s some iPad/iPhone user-agent string:</p>
<p><strong>iPad 3.2 beta 2 (7B320c)</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p357code7'); return false;">View Code</a> TEXT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p3577"><td class="code" id="p357code7"><pre class="text" style="font-family:monospace;">mozilla/5.0 (ipad; u; cpu os 3_2 like mac os x; en-us) applewebkit/531.21.10 (khtml, like gecko) version/4.0.4 mobile/7b320c safari/531.21.10</pre></td></tr></table></div>

<p><strong>iPhone 3.1.3 (7E13) &#8211; Simulator</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p357code8'); return false;">View Code</a> TEXT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p3578"><td class="code" id="p357code8"><pre class="text" style="font-family:monospace;">mozilla/5.0 (iphone simulator; u; cpu iphone os 3_1_3 like mac os x; en-us) applewebkit/528.18 (khtml, like gecko) version/4.0 mobile/7e18 safari/528.16</pre></td></tr></table></div>

<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Mozketo?a=eBl1e8P1PkU:c_DUC9rAQxA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Mozketo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Mozketo?a=eBl1e8P1PkU:c_DUC9rAQxA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Mozketo?i=eBl1e8P1PkU:c_DUC9rAQxA:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://mozketo.com/ipad-user-agent-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://mozketo.com/ipad-user-agent-string/</feedburner:origLink></item>
		<item>
		<title>Phusion Passenger on Ubuntu 9.10</title>
		<link>http://feedproxy.google.com/~r/Mozketo/~3/OcVWlmo8I0Q/</link>
		<comments>http://mozketo.com/phusion-passenger-on-ubuntu-9-10/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 03:58:52 +0000</pubDate>
		<dc:creator>Mozketo</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://mozketo.com/?p=334</guid>
		<description><![CDATA[At first I was thrown by the Phusion Passenger installation instructions when it talked about enabling the Passenger module in apache .conf file. In Ubuntu the enabling/disabling of modules does not sit in a .conf file but, in fact, split into individual .load/.conf files in the /etc/apache2/mods-available folder.
This means when you enable a module with [...]]]></description>
			<content:encoded><![CDATA[<p>At first I was thrown by the Phusion Passenger installation instructions when it talked about enabling the Passenger module in apache .conf file. In Ubuntu the enabling/disabling of modules does not sit in a .conf file but, in fact, split into individual .load/.conf files in the /etc/apache2/mods-available folder.</p>
<p>This means when you enable a module with <code>a2enmod</code> in Ubuntu it simply makes a symlink from mods-enabled -> mods-available and disabling a module (with <code>a2dismod</code> is just as easy. No more hunting in those .conf files.</p>
<p>So I wanted to keep things using the same idea of using the mods-enabled directory as opposed to using one large apache2.conf file.</p>
<h2>Phusion Passenger Installation</h2>
<p>Passenger is drop dead simple to install, here&#8217;s the steps.</p>
<p>Update the system</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p334code15'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p33415"><td class="code" id="p334code15"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> update
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> apache2-prefork-dev</pre></td></tr></table></div>

<p>Now Install Phusion Passenger</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p334code16'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p33416"><td class="code" id="p334code16"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> passenger
<span style="color: #c20cb9; font-weight: bold;">sudo</span> passenger-install-apache2-module</pre></td></tr></table></div>

<p>Passenger is now installed; let&#8217;s get it enabled.</p>
<h2>Create the .load/.conf in mod-available</h2>
<p>Create the .load file with <code>sudo nano /etc/apache2/mods-available/passenger.load</code> and paste in the following:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p334code17'); return false;">View Code</a> TEXT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p33417"><td class="code" id="p334code17"><pre class="text" style="font-family:monospace;">LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.2.9/ext/apache2/mod_passenger.so</pre></td></tr></table></div>

<p>Note: The version numbers I&#8217;ve used might not be what you have installed; Passenger will give you the correct version numbers on screen once installation is complete.</p>
<p>Create the .conf file with <code>sudo nano /etc/apache2/mods-available/passenger.conf</code> and paste in the following:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p334code18'); return false;">View Code</a> TEXT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p33418"><td class="code" id="p334code18"><pre class="text" style="font-family:monospace;">&lt;IfModule passenger_module&gt;
   PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.9
   PassengerRuby /usr/bin/ruby1.8
&lt;/IfModule&gt;</pre></td></tr></table></div>

<h2>Enable Passenger</h2>
<p>Enabling Passenger is as simple as:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p334code19'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p33419"><td class="code" id="p334code19"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> a2enmod passenger
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 restart</pre></td></tr></table></div>

<p>And you will need to change your <code>/etc/apache2/sites-available/default</code> to read:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p334code20'); return false;">View Code</a> TEXT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p33420"><td class="code" id="p334code20"><pre class="text" style="font-family:monospace;">&lt;VirtualHost *:80&gt;
    ServerName www.rackapp.com
    DocumentRoot /webapps/rackapp/public
&lt;/VirtualHost&gt;</pre></td></tr></table></div>

<p>And you&#8217;re done. You&#8217;re up and running with Phusion Passenger.</p>
<p>You can read more about configuring Passenger <a href="http://www.modrails.com/documentation/Users%20guide.html">here</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Mozketo?a=OcVWlmo8I0Q:N5v207KIC90:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Mozketo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Mozketo?a=OcVWlmo8I0Q:N5v207KIC90:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Mozketo?i=OcVWlmo8I0Q:N5v207KIC90:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://mozketo.com/phusion-passenger-on-ubuntu-9-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://mozketo.com/phusion-passenger-on-ubuntu-9-10/</feedburner:origLink></item>
		<item>
		<title>Capistrano without SCM</title>
		<link>http://feedproxy.google.com/~r/Mozketo/~3/14xPfYnmQjw/</link>
		<comments>http://mozketo.com/capistrano-without-scm/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 11:39:30 +0000</pubDate>
		<dc:creator>Mozketo</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://mozketo.com/?p=325</guid>
		<description><![CDATA[I am unable to get Capistrano to deploy from our Subversion repository as it&#8217;s on a local IP, with no VPN access or access from the outside world and I&#8217;m also not in a position to open up the SVN box to the outside world.
So how does Capistrano get access to the source code? 
Turns [...]]]></description>
			<content:encoded><![CDATA[<p>I am unable to get Capistrano to deploy from our Subversion repository as it&#8217;s on a local IP, with no VPN access or access from the outside world and I&#8217;m also not in a position to open up the SVN box to the outside world.</p>
<p>So how does Capistrano get access to the source code? </p>
<p>Turns out it&#8217;s not that hard, you just need to know the tricks. So open up your /config/deploy.rb file and add/modify the following lines:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p325code26'); return false;">View Code</a> TEXT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p32526"><td class="code" id="p325code26"><pre class="text" style="font-family:monospace;">set :scm, :none
set :respository, &quot;.&quot;
set :deploy_via, :copy</pre></td></tr></table></div>

<h2>Using Capistrano</h2>
<p>Here&#8217;s my notes for getting Capistrano up and running. You need only run these steps the first time:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p325code27'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p32527"><td class="code" id="p325code27"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> Capistrano
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>your<span style="color: #000000; font-weight: bold;">/</span>project<span style="color: #000000; font-weight: bold;">/</span>directory
capify .</pre></td></tr></table></div>

<p>copy deploy.rb (listed below) over project/config/deploy.rb</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p325code28'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p32528"><td class="code" id="p325code28"><pre class="bash" style="font-family:monospace;">cap deploy:setup
cap deploy:cold</pre></td></tr></table></div>

<p>Subsequent Capistrano usage needs only:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p325code29'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p32529"><td class="code" id="p325code29"><pre class="bash" style="font-family:monospace;">cap deploy</pre></td></tr></table></div>

<h2>deploy.rb</h2>
<p>Below is the deploy.rb I&#8217;ve used (many thanks to <a href="http://twitter.com/aussiegeek">aussiegeek on twitter</a>). You might not require the first line <code>default_run_options[:pty] = true</code> I had to add it for use on Ubuntu 9.10.</p>
<p>Also I&#8217;m using Phusion Passenger.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p325code30'); return false;">View Code</a> TEXT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p32530"><td class="code" id="p325code30"><pre class="text" style="font-family:monospace;">default_run_options[:pty] = true
&nbsp;
set :application, 'projectName'
set :deploy_to, '/server/path/'
set :user, 'username'
set :use_sudo, false
&nbsp;
role :web, &quot;server.com&quot;
role :db, &quot;server.com&quot;, :primary =&gt; true
role :app, &quot;server.com&quot;
&nbsp;
set :scm, :none
set :repository, &quot;.&quot;
set :deploy_via, :copy
&nbsp;
namespace :deploy do
  task :start, :roles =&gt; :app do
  end
&nbsp;
  task :stop, :roles =&gt; :app do
  end
&nbsp;
  task :restart, :roles =&gt; :app do
    run &quot;touch #{current_path}/tmp/restart.txt&quot;
  end
end</pre></td></tr></table></div>

<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Mozketo?a=14xPfYnmQjw:tJ_6-XRoWIY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Mozketo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Mozketo?a=14xPfYnmQjw:tJ_6-XRoWIY:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Mozketo?i=14xPfYnmQjw:tJ_6-XRoWIY:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://mozketo.com/capistrano-without-scm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://mozketo.com/capistrano-without-scm/</feedburner:origLink></item>
		<item>
		<title>BlackBerry and their Video Playback Capabilities</title>
		<link>http://feedproxy.google.com/~r/Mozketo/~3/S4mT9mGmHv4/</link>
		<comments>http://mozketo.com/blackberry-and-their-video-playback-capabilities/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 04:11:43 +0000</pubDate>
		<dc:creator>Mozketo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mozketo.com/?p=319</guid>
		<description><![CDATA[Here&#8217;s a list of BlackBerry Smartphones, their model, name, screen resolution and their video playback capabilities.
H.264 notes
It&#8217;s often difficult to determine the specific H.264 profiles that a BlackBerry can support, such as what&#8217;s the max bit-rate the device can handle? Looking at the specification pages for each model can assist; such as Bold 9700 specs
It&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a list of BlackBerry Smartphones, their model, name, screen resolution and their video playback capabilities.</p>
<h3>H.264 notes</h3>
<p>It&#8217;s often difficult to determine the specific H.264 profiles that a BlackBerry can support, such as what&#8217;s the max bit-rate the device can handle? Looking at the specification pages for each model can assist; such as <a href="http://worldwide.blackberry.com/blackberrybold9700/bold_specifications.jsp">Bold 9700 specs</a></p>
<p>It&#8217;s a pretty safe bet to encode for baseline profile for a video, otherwise you might see a blank screen when you try and play it back. Take a look <a href="http://mozketo.com/using-ffmpeg-for-blackberry-bold-playback/">here</a> for more on ffmpeg encoding for BlackBerry.</p>
<h3>BlackBerry Models and capabilities</h3>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="165" valign="top"><strong>Blackberry®  Model</strong></td>
<td width="111" valign="top"><strong>Resolution</strong></td>
<td width="132" valign="top"></td>
<td width="160" valign="top"></td>
</tr>
<tr>
<td width="165" valign="top">BlackBerry 8100</td>
<td width="111" valign="top">240&#215;260</td>
<td width="132" valign="top">MPEG4</td>
<td width="160" valign="top">Pearl</td>
</tr>
<tr>
<td width="165" valign="top">BlackBerry 8110</td>
<td width="111" valign="top"></td>
<td width="132" valign="top"></td>
<td width="160" valign="top"></td>
</tr>
<tr>
<td width="165" valign="top">BlackBerry 8120</td>
<td width="111" valign="top"></td>
<td width="132" valign="top"></td>
<td width="160" valign="top"></td>
</tr>
<tr>
<td width="165" valign="top">BlackBerry 8130</td>
<td width="111" valign="top"></td>
<td width="132" valign="top"></td>
<td width="160" valign="top"></td>
</tr>
<tr>
<td width="165" valign="top">BlackBerry 8220</td>
<td width="111" valign="top">240&#215;320</td>
<td width="132" valign="top">MPEG4</td>
<td width="160" valign="top">Pearl Flip</td>
</tr>
<tr>
<td width="165" valign="top">BlackBerry 8230</td>
<td width="111" valign="top"></td>
<td width="132" valign="top"></td>
<td width="160" valign="top"></td>
</tr>
<tr>
<td width="165" valign="top">BlackBerry 8300</td>
<td width="111" valign="top">320&#215;240</td>
<td width="132" valign="top">MPEG4</td>
<td width="160" valign="top">Curve</td>
</tr>
<tr>
<td width="165" valign="top">BlackBerry 8310</td>
<td width="111" valign="top"></td>
<td width="132" valign="top"></td>
<td width="160" valign="top"></td>
</tr>
<tr>
<td width="165" valign="top">BlackBerry 8320</td>
<td width="111" valign="top"></td>
<td width="132" valign="top"></td>
<td width="160" valign="top"></td>
</tr>
<tr>
<td width="165" valign="top">BlackBerry 8330</td>
<td width="111" valign="top"></td>
<td width="132" valign="top"></td>
<td width="160" valign="top"></td>
</tr>
<tr>
<td width="165" valign="top">BlackBerry 8350i</td>
<td width="111" valign="top"></td>
<td width="132" valign="top"></td>
<td width="160" valign="top"></td>
</tr>
<tr>
<td width="165" valign="top">BlackBerry 8520</td>
<td width="111" valign="top">320&#215;240</td>
<td width="132" valign="top">H.264</td>
<td width="160" valign="top">Curve</td>
</tr>
<tr>
<td width="165" valign="top">BlackBerry 8530</td>
<td width="111" valign="top"></td>
<td width="132" valign="top"></td>
<td width="160" valign="top"></td>
</tr>
<tr>
<td width="165" valign="top">BlackBerry 8800</td>
<td width="111" valign="top">320&#215;240</td>
<td width="132" valign="top">MPEG4</td>
<td width="160" valign="top"></td>
</tr>
<tr>
<td width="165" valign="top">BlackBerry 8820</td>
<td width="111" valign="top"></td>
<td width="132" valign="top"></td>
<td width="160" valign="top"></td>
</tr>
<tr>
<td width="165" valign="top">BlackBerry 8830</td>
<td width="111" valign="top">320&#215;240</td>
<td width="132" valign="top">H.264</td>
<td width="160" valign="top"></td>
</tr>
<tr>
<td width="165" valign="top">BlackBerry 9000</td>
<td width="111" valign="top">480&#215;320</td>
<td width="132" valign="top">H.264</td>
<td width="160" valign="top">Bold</td>
</tr>
<tr>
<td width="165" valign="top">BlackBerry 9500</td>
<td width="111" valign="top">360&#215;480</td>
<td width="132" valign="top">H.264</td>
<td width="160" valign="top">Storm</td>
</tr>
<tr>
<td width="165" valign="top">BlackBerry 9530</td>
<td width="111" valign="top"></td>
<td width="132" valign="top"></td>
<td width="160" valign="top"></td>
</tr>
<tr>
<td width="165" valign="top">BlackBerry 9550</td>
<td width="111" valign="top">360&#215;480</td>
<td width="132" valign="top">H.264</td>
<td width="160" valign="top">Storm 2. OS 5.0</td>
</tr>
<tr>
<td width="165" valign="top">BlackBerry 9520</td>
<td width="111" valign="top"></td>
<td width="132" valign="top"></td>
<td width="160" valign="top"></td>
</tr>
<tr>
<td width="165" valign="top">BlackBerry 9630</td>
<td width="111" valign="top">?</td>
<td width="132" valign="top">H.264</td>
<td width="160" valign="top">Tour</td>
</tr>
<tr>
<td width="165" valign="top">BlackBerry 9700</td>
<td width="111" valign="top">480&#215;360</td>
<td width="132" valign="top">H.264</td>
<td width="160" valign="top">Bold 2. OS 5.0</td>
</tr>
</tbody>
</table>
<p>Blank values mean they carry down from the model prior.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Mozketo?a=S4mT9mGmHv4:WxghM1CiKO0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Mozketo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Mozketo?a=S4mT9mGmHv4:WxghM1CiKO0:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Mozketo?i=S4mT9mGmHv4:WxghM1CiKO0:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://mozketo.com/blackberry-and-their-video-playback-capabilities/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://mozketo.com/blackberry-and-their-video-playback-capabilities/</feedburner:origLink></item>
		<item>
		<title>Using ffmpeg for BlackBerry Bold playback</title>
		<link>http://feedproxy.google.com/~r/Mozketo/~3/-Y4xRoAqxkE/</link>
		<comments>http://mozketo.com/using-ffmpeg-for-blackberry-bold-playback/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 03:59:30 +0000</pubDate>
		<dc:creator>Mozketo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mozketo.com/?p=307</guid>
		<description><![CDATA[Sometimes ffmpeg just doesn&#8217;t play like you&#8217;d hope it would. I was trying to re-encode video clips for a BlackBerry Bold (the Bold supports H.264 playback) but every encode would have a blank black screen for video, and the audio would be fine (more on audio later).
I&#8217;m currently using SVN release r19352 (and also tested [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes ffmpeg just doesn&#8217;t play like you&#8217;d hope it would. I was trying to re-encode video clips for a BlackBerry Bold (the Bold supports H.264 playback) but every encode would have a blank black screen for video, and the audio would be fine (more on audio later).</p>
<p>I&#8217;m currently using SVN release r19352 (and also tested with r21566 (2010-01-31)).</p>
<h3>ffmpeg arguments for BlackBerry H.264</h3>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p307code33'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p30733"><td class="code" id="p307code33"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ffmpeg</span> <span style="color: #660033;">-v</span> <span style="color: #000000;">0</span> <span style="color: #660033;">-y</span> <span style="color: #660033;">-i</span> input.mp4 <span style="color: #660033;">-f</span> mp4 <span style="color: #660033;">-aspect</span> <span style="color: #000000;">2.409</span> <span style="color: #660033;">-vcodec</span> libx264 <span style="color: #660033;">-vpre</span> default <span style="color: #660033;">-vpre</span> baseline <span style="color: #660033;">-s</span> 480x200 <span style="color: #660033;">-r</span> <span style="color: #000000;">24</span> <span style="color: #660033;">-b</span> 220k <span style="color: #660033;">-acodec</span> libmp3lame <span style="color: #660033;">-ab</span> 24kbit<span style="color: #000000; font-weight: bold;">/</span>s <span style="color: #660033;">-ac</span> <span style="color: #000000;">1</span> output.mp4</pre></td></tr></table></div>

<p>So lets break down these arguments:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p307code34'); return false;">View Code</a> TEXT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p30734"><td class="code" id="p307code34"><pre class="text" style="font-family:monospace;">-v 0 = Set verbosity level
-y = Overwrite existing file
-i input.mp4 = The file you want to convert
-f = Force the video type
-aspect = The magical number to get the resize right
-vcodec libx264 = We're going to use x264 for video codec
-vpre default
-vpre baseline = Magical presets. And ensure BlackBerry compatibility
-s = The final dimensions of the clip
-r = Video frame rate
-b = Bitrate per second (the larger number the better the video)
-acodec libmp3lame = See Audio heading below
-ab = Audio bitrate
-ac 1 = Number of Audio Channels
output.mp4 = The output file</pre></td></tr></table></div>

<h3>-vpre isn&#8217;t working for me (and I&#8217;m on Windows)</h3>
<p>ffmpeg isn&#8217;t a Windows only application and looks for its presets in <code>/usr/local/share/ffmpeg/</code> so if you create a folder structure on your Windows computer <code>c:\usr\local\share\ffmpeg\</code> and copy all the *.ffpreset files into said folder you won&#8217;t have problems with -vpre anymore</p>
<h3>Audio issues (AAC)</h3>
<p>In later releases of ffmpeg AAC (or libfaac) was disabled; I assume due to AAC being patent encumbered. There&#8217;s ways around turn libfaac back on, or you could just switch to using libmp3lame or the like.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Mozketo?a=-Y4xRoAqxkE:ftwWhrmn568:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Mozketo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Mozketo?a=-Y4xRoAqxkE:ftwWhrmn568:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Mozketo?i=-Y4xRoAqxkE:ftwWhrmn568:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://mozketo.com/using-ffmpeg-for-blackberry-bold-playback/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://mozketo.com/using-ffmpeg-for-blackberry-bold-playback/</feedburner:origLink></item>
		<item>
		<title>Installing Ruby on Rails on Ubuntu Karmic Koala</title>
		<link>http://feedproxy.google.com/~r/Mozketo/~3/vuIN6VF6LD8/</link>
		<comments>http://mozketo.com/installing-ruby-on-rails-on-ubuntu-karmic-koala/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 23:15:32 +0000</pubDate>
		<dc:creator>Mozketo</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://mozketo.com/?p=299</guid>
		<description><![CDATA[Here&#8217;s the steps I took to install Ruby on Rails on a fresh Ubuntu 9.10 Karmic Koala.
Update/upgrade system
sudo apt-get update
Install ruby, irb and rdoc
sudo apt-get install ruby irb rdoc
Install required Ubuntu packages
sudo apt-get install libopenssl-ruby build-essential ruby1.8-dev libpq-dev
Install rubygems
wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz
tar -xvzf rubygems-1.3.5.tgz
cd rubygems-1.3.5/
sudo ruby setup.rb
sudo gem update --system
Install Rails (with gem)
sudo gem install rails
If you [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s the steps I took to install Ruby on Rails on a fresh Ubuntu 9.10 Karmic Koala.</p>
<h3>Update/upgrade system</h3>
<p><code>sudo apt-get update</code></p>
<h3>Install ruby, irb and rdoc</h3>
<p><code>sudo apt-get install ruby irb rdoc</code></p>
<h3>Install required Ubuntu packages</h3>
<p><code>sudo apt-get install libopenssl-ruby build-essential ruby1.8-dev libpq-dev</code></p>
<h3>Install rubygems</h3>
<p><code>wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz<br />
tar -xvzf rubygems-1.3.5.tgz<br />
cd rubygems-1.3.5/<br />
sudo ruby setup.rb<br />
sudo gem update --system</code></p>
<h3>Install Rails (with gem)</h3>
<p><code>sudo gem install rails</code></p>
<h3>If you need to install postgresql</h3>
<p><code>sudo apt-get install postgresql</code></p>
<p>Create the postgres user<br />
<code>sudo su postgres<br />
createuser <username></code></p>
<p>Need to create a postgres database?<br />
<code>createdb <db_name></code></p>
<h3>Install the ruby to postgres driver</h3>
<p><code>sudo gem install postgres</code></p>
<h3>Finished</h3>
<p>That&#8217;s it, Ruby on Rails should be installed along with Postgresql if you need it.</p>
<p>Credit goes to <a href="http://vandenabeele.com/Rails-on-Ubuntu-Jaunty">Peter Vandenabeele</a> for the basis for these steps.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Mozketo?a=vuIN6VF6LD8:5PU4UHhVvcw:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Mozketo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Mozketo?a=vuIN6VF6LD8:5PU4UHhVvcw:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Mozketo?i=vuIN6VF6LD8:5PU4UHhVvcw:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://mozketo.com/installing-ruby-on-rails-on-ubuntu-karmic-koala/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://mozketo.com/installing-ruby-on-rails-on-ubuntu-karmic-koala/</feedburner:origLink></item>
		<item>
		<title>Font Smoothing in Snow Leopard with a 3rd Party LCD</title>
		<link>http://feedproxy.google.com/~r/Mozketo/~3/s2cF9l6wjrc/</link>
		<comments>http://mozketo.com/font-smoothing-in-snow-leopard/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 00:11:16 +0000</pubDate>
		<dc:creator>Mozketo</dc:creator>
				<category><![CDATA[Apple]]></category>

		<guid isPermaLink="false">http://mozketo.com/?p=282</guid>
		<description><![CDATA[Having connected a 3rd party (Polyview) 19&#8243; LCD into the work MacBook Pro I was struck by how poor any on screen text rendered. Trying to use Terminal.app was just aweful, all jaggy and hard to read.
It turns out that font smoothing (aka sub-pixel antialiasing) on the 3rd party screen wasn&#8217;t happening and OS X [...]]]></description>
			<content:encoded><![CDATA[<p>Having connected a 3rd party (Polyview) 19&#8243; LCD into the work MacBook Pro I was struck by how poor any on screen text rendered. Trying to use Terminal.app was just aweful, all jaggy and hard to read.</p>
<p>It turns out that font smoothing (aka sub-pixel antialiasing) on the 3rd party screen wasn&#8217;t happening and OS X was defaulting the font smoothing to CRT. Take a look at the screenshots below, bad eh?</p>
<div id="attachment_283" class="wp-caption alignnone" style="width: 648px"><a href="http://mozketo.com/wp-content/uploads/2010/01/Screen-shot-2010-01-14-at-9.41.38-AM.png"><img src="http://mozketo.com/wp-content/uploads/2010/01/Screen-shot-2010-01-14-at-9.41.38-AM.png" alt="" title="Screen shot 2010-01-14 at 9.41.38 AM" width="638" height="61" class="size-full wp-image-283" /></a><p class="wp-caption-text">Antialiasing for CRTs, ewwwww.</p></div>
<div id="attachment_284" class="wp-caption alignnone" style="width: 647px"><a href="http://mozketo.com/wp-content/uploads/2010/01/Screen-shot-2010-01-14-at-9.42.53-AM.png"><img src="http://mozketo.com/wp-content/uploads/2010/01/Screen-shot-2010-01-14-at-9.42.53-AM.png" alt="" title="Screen shot 2010-01-14 at 9.42.53 AM" width="637" height="56" class="size-full wp-image-284" /></a><p class="wp-caption-text">Antialiasing fixed!</p></div>
<h3>How to fix the problem?</h3>
<p>Open up terminal and paste in the following:</p>
<p><code>defaults -currentHost write -globalDomain AppleFontSmoothing -int 2</code></p>
<p>or if you find the text a little large/blurry you can try:</p>
<p><code>defaults -currentHost write -globalDomain AppleFontSmoothing -int 1</code></p>
<p>Now logout > login.</p>
<h3>So what&#8217;s up?</h3>
<p>The whole Snow Leopard font smoothing issue seems strange and why Apple changed the font smooth dialog is beyond me. But you can read more about it here<br />
<a href="http://blog.jjgod.org/2009/08/18/snow-leopard-vs-dell-lcd-displays/">jjgod / blog > Snow Leopard vs. 3rd Party LCD Displays</a> if you&#8217;d like to know a little more about the problem.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Mozketo?a=s2cF9l6wjrc:bx_-CA_nKN0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Mozketo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Mozketo?a=s2cF9l6wjrc:bx_-CA_nKN0:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Mozketo?i=s2cF9l6wjrc:bx_-CA_nKN0:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://mozketo.com/font-smoothing-in-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://mozketo.com/font-smoothing-in-snow-leopard/</feedburner:origLink></item>
		<item>
		<title>Mercurial .hgignore for xcode/cocoa</title>
		<link>http://feedproxy.google.com/~r/Mozketo/~3/ge551fua95M/</link>
		<comments>http://mozketo.com/mercurial-hgignore-for-xcodecocoa/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 22:25:36 +0000</pubDate>
		<dc:creator>Mozketo</dc:creator>
				<category><![CDATA[Source Control]]></category>
		<category><![CDATA[Mercurial]]></category>

		<guid isPermaLink="false">http://mozketo.com/?p=275</guid>
		<description><![CDATA[Here&#8217;s my Mercurial .hgignore template for xcode/cocoa projects.

?View Code BASHsyntax: glob
&#160;
.DS_Store
&#160;
# Backup files left behind by the Emacs editor.
*~
&#160;
# Lock files used by the Emacs editor.
.\#*
&#160;
# Temporary files used by the vim editor.
.*.swp
&#160;
# Temporary files used by TestMate
._*
&#160;
# build directories
**/build/*
build/*
&#160;
# XCode user data
**.pbxuser
**.mode?v?
**.perspectivev?
&#160;
# documentation
**.docset/*
&#160;
# for those crazies using svn and hg at the same time
*.svn*

]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s my <a href="http://mercurial.selenic.com/wiki/">Mercurial</a> .hgignore template for xcode/cocoa projects.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p275code36'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p27536"><td class="code" id="p275code36"><pre class="bash" style="font-family:monospace;">syntax: glob
&nbsp;
.DS_Store
&nbsp;
<span style="color: #666666; font-style: italic;"># Backup files left behind by the Emacs editor.</span>
<span style="color: #000000; font-weight: bold;">*</span>~
&nbsp;
<span style="color: #666666; font-style: italic;"># Lock files used by the Emacs editor.</span>
.\<span style="color: #666666; font-style: italic;">#*</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Temporary files used by the vim editor.</span>
.<span style="color: #000000; font-weight: bold;">*</span>.swp
&nbsp;
<span style="color: #666666; font-style: italic;"># Temporary files used by TestMate</span>
._<span style="color: #000000; font-weight: bold;">*</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># build directories</span>
<span style="color: #000000; font-weight: bold;">**/</span>build<span style="color: #000000; font-weight: bold;">/*</span>
build<span style="color: #000000; font-weight: bold;">/*</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># XCode user data</span>
<span style="color: #000000; font-weight: bold;">**</span>.pbxuser
<span style="color: #000000; font-weight: bold;">**</span>.mode?v?
<span style="color: #000000; font-weight: bold;">**</span>.perspectivev?
&nbsp;
<span style="color: #666666; font-style: italic;"># documentation</span>
<span style="color: #000000; font-weight: bold;">**</span>.docset<span style="color: #000000; font-weight: bold;">/*</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># for those crazies using svn and hg at the same time</span>
<span style="color: #000000; font-weight: bold;">*</span>.svn<span style="color: #000000; font-weight: bold;">*</span></pre></td></tr></table></div>

<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Mozketo?a=ge551fua95M:KGl66IY1pi0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Mozketo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Mozketo?a=ge551fua95M:KGl66IY1pi0:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Mozketo?i=ge551fua95M:KGl66IY1pi0:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://mozketo.com/mercurial-hgignore-for-xcodecocoa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://mozketo.com/mercurial-hgignore-for-xcodecocoa/</feedburner:origLink></item>
		<item>
		<title>Bandwidth: Rackspace Cloud Server vs Rackspace Files</title>
		<link>http://feedproxy.google.com/~r/Mozketo/~3/gww4_5rIeZs/</link>
		<comments>http://mozketo.com/rackspace-cloud-vs-rackspace-files-bandwidth/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 11:45:08 +0000</pubDate>
		<dc:creator>Mozketo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Rackspace]]></category>

		<guid isPermaLink="false">http://mozketo.com/?p=263</guid>
		<description><![CDATA[I&#8217;ve recently been looking at hosting a complex JBoss/Apache project at Rackspace Cloud as opposed to our own servers+pipe at work. 
I had changed the application to deliver the files from a CDN (in this case Rackspace Files) but thought &#8220;well Rackspace Cloud might be on the same pipe(s) as Files and could kill two [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently been looking at hosting a complex JBoss/Apache project at Rackspace Cloud as opposed to our own servers+pipe at work. </p>
<p>I had changed the application to deliver the files from a CDN (in this case Rackspace Files) but thought &#8220;well Rackspace Cloud might be on the same pipe(s) as Files and could kill two birds with one stone&#8221;.</p>
<p>Essentially I wanted to know the pipe difference between Rackspace <a href="http://www.rackspacecloud.com/cloud_hosting_products/servers">Cloud Servers</a> and Rackspace <a href="http://www.rackspacecloud.com/cloud_hosting_products/files">Files</a> and if Cloud was fast enough do away with Files.</p>
<p><strong>The Test</strong></p>
<p>Here&#8217;s some <em>very</em> rudimentary results where I download a 9.6 MB zip file.</p>
<p>Rackspace Cloud &#8211; Average download speed: 335 kb/s &#8211; Time: 27 seconds.<br />
Rackspace Files &#8211; Average download speed: 1154 kb/s &#8211; Time: 8 seconds.</p>
<p>I used <code>curl -O http://.../content.zip</code> for the download test.</p>
<p><strong>Conclusions</strong></p>
<p>Rackspace Cloud doesn&#8217;t use the same &#8220;pipes&#8221; as Rackspace Files (I&#8217;ve never read that Rackspace claim, &#8220;Cloud is as fast as Files&#8221; I wasn&#8217;t expecting the same results, just curious).</p>
<p>A dedicated CDN is the best way to go for delivery of large files quickly. (Rackspace Files uses the Limelight Network). I&#8217;ve heard rumours that Rackspace has Australian edge(s) and this seems to be the case.</p>
<p>I will still want to use Rackspace Files for large content delivery.</p>
<p><strong>Misc</strong></p>
<p>I use TPG ADSL2+ at home and never seen downloads faster than 1250-1300 kb/s. Using a 2.16GHz Macbook Pro.</p>
<p>At the time of writing: <a href="http://www.rackspacecloud.com/cloud_hosting_products/servers">Rackspace Cloud Server</a> is a cloud server hosting infrastructure. <a href="http://www.rackspacecloud.com/cloud_hosting_products/files">Rackspace Files</a> is a Content Delivery Network.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Mozketo?a=gww4_5rIeZs:WZE2uu7dyh0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Mozketo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Mozketo?a=gww4_5rIeZs:WZE2uu7dyh0:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Mozketo?i=gww4_5rIeZs:WZE2uu7dyh0:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://mozketo.com/rackspace-cloud-vs-rackspace-files-bandwidth/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://mozketo.com/rackspace-cloud-vs-rackspace-files-bandwidth/</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic page generated in 0.618 seconds. --><!-- Cached page generated by WP-Super-Cache on 2010-02-25 19:40:27 -->
