<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><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" version="2.0">

<channel>
	<title>EleventyTen</title>
	
	<link>http://blog.eleventyten.com</link>
	<description>It sounded good at the time..</description>
	<pubDate>Mon, 21 Jul 2008 00:10:14 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/eleventyten" type="application/rss+xml" /><item>
		<title>The Pradipta 416</title>
		<link>http://blog.eleventyten.com/2008/07/21/the-pradipta-416/</link>
		<comments>http://blog.eleventyten.com/2008/07/21/the-pradipta-416/#comments</comments>
		<pubDate>Mon, 21 Jul 2008 00:10:14 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
		
		<category><![CDATA[loves]]></category>

		<category><![CDATA[the internets]]></category>

		<category><![CDATA[416]]></category>

		<category><![CDATA[pradipta]]></category>

		<category><![CDATA[rolodex]]></category>

		<guid isPermaLink="false">http://blog.eleventyten.com/?p=69</guid>
		<description><![CDATA[So the funniest thing happened the other day (and as usual I&#8217;ve only just found the convenience to blog it).  I was sitting working, minding my own business when I received yet another formulated mass post from a recruitment agent.  Only this one was a little different..

I have a couple of Ruby on [...]]]></description>
			<content:encoded><![CDATA[<p>So the funniest thing happened the other day (and as usual I&#8217;ve only just found the convenience to blog it).  I was sitting working, minding my own business when I received yet another formulated mass post from a recruitment agent.  Only this one was a little different..</p>
<blockquote><p>
I have a couple of Ruby on Rails position, wanted to know if you are interested?</p>
<p>Max Archie<br />
Technical Recruiter<br />
Prodigus Source<br />
Cell: 219-669-9216<br />
Phone: 312-235-2365<br />
Max@prodigussource.com
</p></blockquote>
<p>Seems pretty normal on the face of it.  Just a typical impersonal email recruiters send out to hundreds of &#8220;potential candidates&#8221; (read: anonymous list of farmed email addresses).  However this agent forgot to use BCC instead of CC, and so 416 selected individuals all over the world were kindly supplied with each others email addresses.</p>
<p>So what did a group of complete strangers from all cultures and walks of life decide to do with this new found information?  Well, for a while we laughed.  And then we went a bit mad.  And now you&#8217;ll find the 
<a  href="http://www.google.com/search?q=Pradipta+Max+Archie&#038;btnG=Google+Search" onclick="javascript:pageTracker._trackPageview('/external/www.google.com/search');" >Pradipta 416</a> all over the &#8216;net.  Including, but not limited to, 
<a  href="http://twitter.com/Pradipta" onclick="javascript:pageTracker._trackPageview('/external/twitter.com/Pradipta');" >Twitter</a>, 
<a  href="http://www.facebook.com/group.php?gid=43333321264" onclick="javascript:pageTracker._trackPageview('/external/www.facebook.com/group.php');" >FaceBook</a> and a 
<a  href="http://groups.google.com/group/pradiptas-rolodex?hl=en" onclick="javascript:pageTracker._trackPageview('/external/groups.google.com/group/pradiptas-rolodex');" >Google discussion group</a>.</p>
<p>I love it.  A community was born.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.eleventyten.com/2008/07/21/the-pradipta-416/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Screen resolution bookmarklets</title>
		<link>http://blog.eleventyten.com/2008/07/17/screen-resolution-bookmarklets/</link>
		<comments>http://blog.eleventyten.com/2008/07/17/screen-resolution-bookmarklets/#comments</comments>
		<pubDate>Thu, 17 Jul 2008 03:35:43 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
		
		<category><![CDATA[interfaces]]></category>

		<category><![CDATA[mac]]></category>

		<category><![CDATA[safari]]></category>

		<category><![CDATA[bookmarklet]]></category>

		<category><![CDATA[resize]]></category>

		<category><![CDATA[window]]></category>

		<guid isPermaLink="false">http://blog.eleventyten.com/?p=54</guid>
		<description><![CDATA[I&#8217;ve been using various methods to test screen resolutions in Safari, but this is probably my favourite:

Just drag these links to your bookmarks bar (creating a folder to put them in if you so desire) and click them to resize Safari to the desired resolution.  Simple huh?


640&#215;480 (588&#215;290)

800&#215;600 (748&#215;410)

1024&#215;768 (972&#215;578)

1280&#215;800 (1228&#215;610)

These viewport sizes are [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using various methods to test screen resolutions in Safari, but this is probably my favourite:</p>
<p><img src="http://blog.eleventyten.com/wp-content/uploads/2008/07/safari_screen_resolutions.png" alt="Safari screen resolutions" title="Safari screen resolutions" width="222" height="205" class="size-full wp-image-59" /></p>
<p>Just drag these links to your bookmarks bar (creating a folder to put them in if you so desire) and click them to resize Safari to the desired resolution.  Simple huh?</p>
<ul>
<li>
<a  href="javascript:self.resizeTo(588+(window.outerWidth-window.innerWidth),290+(window.outerHeight-window.innerHeight));">640&#215;480</a> (588&#215;290)</li>
<li>
<a  href="javascript:self.resizeTo(748+(window.outerWidth-window.innerWidth),410+(window.outerHeight-window.innerHeight));">800&#215;600</a> (748&#215;410)</li>
<li>
<a  href="javascript:self.resizeTo(972+(window.outerWidth-window.innerWidth),578+(window.outerHeight-window.innerHeight));">1024&#215;768</a> (972&#215;578)</li>
<li>
<a  href="javascript:self.resizeTo(1128+(window.outerWidth-window.innerWidth),610+(window.outerHeight-window.innerHeight));">1280&#215;800</a> (1228&#215;610)</li>
</ul>
<p>These viewport sizes are &#8220;safe&#8221; resolutions (taking into account task bars, toolbars, status bars, menus and such) based on the most common set of browsers and operating systems, including Safari, Camino, Firefox, Omniweb, Opera, and Internet Explorer 5, 6 and 7.</p>
<p><strong>Update:</strong> classic example of eating one&#8217;s own words. My colleague 
<a  href="http://www.inter-sections.net" onclick="javascript:pageTracker._trackPageview('/external/www.inter-sections.net');" >Daniel</a> just sent me a mail to let me know that he&#8217;d installed my bookmarklets and discovered that my own site failed on a 1024&#215;768 screen.  D&#8217;oh!  In my defense, it&#8217;s not my template, and I hadn&#8217;t actually tested it. *sheepish grin* Thanks Daniel! :-P</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.eleventyten.com/2008/07/17/screen-resolution-bookmarklets/feed/</wfw:commentRss>
		</item>
		<item>
		<title>RA D IO HEA_D</title>
		<link>http://blog.eleventyten.com/2008/07/14/ra-d-io-hea_d/</link>
		<comments>http://blog.eleventyten.com/2008/07/14/ra-d-io-hea_d/#comments</comments>
		<pubDate>Mon, 14 Jul 2008 01:14:00 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
		
		<category><![CDATA[loves]]></category>

		<category><![CDATA[music]]></category>

		<category><![CDATA[gig]]></category>

		<category><![CDATA[live]]></category>

		<category><![CDATA[radiohead]]></category>

		<category><![CDATA[victoria park]]></category>

		<guid isPermaLink="false">http://blog.eleventyten.com/?p=49</guid>
		<description><![CDATA[I meant to post this waay before now..  Read it and weep..


It was freaking awesome by the way, sorry you couldn&#8217;t be there :-P
]]></description>
			<content:encoded><![CDATA[<p>I meant to post this waay before now..  Read it and weep..</p>
<p>
<a  href='http://blog.eleventyten.com/wp-content/uploads/2008/07/100_5073.jpg' rel="lightbox[49]" onclick="javascript:pageTracker._trackPageview('/downloads/wp-content/uploads/2008/07/100_5073.jpg');" ><img src="http://blog.eleventyten.com/wp-content/uploads/2008/07/100_5073-300x225.jpg" alt="RA D IO HEA_D" title="RA D IO HEA_D" width="300" height="225" class="alignnone size-medium wp-image-50" /></a></p>
<p>It was freaking awesome by the way, sorry you couldn&#8217;t be there :-P</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.eleventyten.com/2008/07/14/ra-d-io-hea_d/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Strict typing is good mkay</title>
		<link>http://blog.eleventyten.com/2008/02/05/strict-typing-is-good-mkay/</link>
		<comments>http://blog.eleventyten.com/2008/02/05/strict-typing-is-good-mkay/#comments</comments>
		<pubDate>Tue, 05 Feb 2008 14:03:07 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
		
		<category><![CDATA[flash]]></category>

		<category><![CDATA[flex]]></category>

		<category><![CDATA[actionscript]]></category>

		<category><![CDATA[as3]]></category>

		<category><![CDATA[strict typing]]></category>

		<guid isPermaLink="false">http://blog.eleventyten.com/2008/02/05/strict-typing-is-good-mkay/</guid>
		<description><![CDATA[I&#8217;m currently in the final stages of a refactor and I thought I&#8217;d just share this little tidbit on why strict typing is a good thing in AS3, especially when working in an agile environment where things can change quickly as requirements unfold and mutate.
Let&#8217;s say you&#8217;re working with data via AMF, and you have [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m currently in the final stages of a refactor and I thought I&#8217;d just share this little tidbit on why strict typing is a good thing in AS3, especially when working in an agile environment where things can change quickly as requirements unfold and mutate.</p>
<p>Let&#8217;s say you&#8217;re working with data via AMF, and you have a Project value object with the properties &#8216;id&#8217;, &#8216;name&#8217; and &#8217;status&#8217;.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Project <span style="color: #66cc66;">&#123;</span>
  <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> id:<span style="color: #0066CC;">Number</span>;
  <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">name</span>:<span style="color: #0066CC;">String</span>;
  <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">status</span>:<span style="color: #0066CC;">String</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>In no time at all the rest of your code will be littered with references to these properties, and obviously if any of these properties changes during refactoring will be instantly picked up by the compiler. No biggie refactoring those. But there are instances where changes can slip under the radar.</p>
<p>For example (examples are always good), take a look at this snippet:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> on_result<span style="color: #66cc66;">&#40;</span>event:ResultEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #0066CC;">this</span>.<span style="color: #0066CC;">status</span> = event.<span style="color: #006600;">result</span>.<span style="color: #0066CC;">status</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>See the subtlety? In this instance, <code>event.result</code> is an 
<a  href="http://livedocs.adobe.com/flex/201/langref/Object.html" onclick="javascript:pageTracker._trackPageview('/external/livedocs.adobe.com/flex/201/langref/Object.html');" ><code>Object</code></a>, which is dynamically typed. Therefore accessing erroneous properties will not be picked up by the compiler, and this ultimately leads to subtle, frustrating bugs and loss of hair.</p>
<p>To avoid this, ensure you type cast dynamic objects to their appropriate types before accessing properties thusly:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> on_result<span style="color: #66cc66;">&#40;</span>event:ResultEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #0066CC;">this</span>.<span style="color: #0066CC;">status</span> = <span style="color: #66cc66;">&#40;</span>event.<span style="color: #006600;">result</span> as Project<span style="color: #66cc66;">&#41;</span>.<span style="color: #0066CC;">status</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>Now if the status property is renamed during refactoring, the compiler will instantly pick it up and the world will seem a little brighter.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.eleventyten.com/2008/02/05/strict-typing-is-good-mkay/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Building the MySQL gem on Leopard with the macports MySQL</title>
		<link>http://blog.eleventyten.com/2008/02/03/building-the-mysql-gem-on-leopard-with-the-macports-mysql/</link>
		<comments>http://blog.eleventyten.com/2008/02/03/building-the-mysql-gem-on-leopard-with-the-macports-mysql/#comments</comments>
		<pubDate>Sun, 03 Feb 2008 21:15:41 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
		
		<category><![CDATA[leopard]]></category>

		<category><![CDATA[mac]]></category>

		<category><![CDATA[rails]]></category>

		<category><![CDATA[ruby]]></category>

		<category><![CDATA[gem]]></category>

		<category><![CDATA[macports]]></category>

		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://blog.eleventyten.com/2008/02/03/building-the-mysql-gem-on-leopard-with-the-macports-mysql/</guid>
		<description><![CDATA[I&#8217;ve been running with the Rails MySQL adapter for a while now after failing to build the native MySQL gem under Leopard.  The problem, I thought, was that I&#8217;m using the 
Macports MySQL, and it turns out I was right. If you attempt to build the MySQL gem and you get an error like [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been running with the Rails MySQL adapter for a while now after failing to build the native MySQL gem under Leopard.  The problem, I thought, was that I&#8217;m using the 
<a  href="http://macports.org/" onclick="javascript:pageTracker._trackPageview('/external/macports.org/');" >Macports</a> MySQL, and it turns out I was right. If you attempt to build the MySQL gem and you get an error like this:</p>

<div class="wp_syntax"><div class="code"><pre class="text">Building native extensions.  This could take a while...
ERROR:  While executing gem ...
(Gem::Installer::ExtensionBuildError)
    ERROR: Failed to build gem native extension.
&nbsp;
ruby extconf.rb install mysql
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... no
checking for mysql_query() in -lmysqlclient... no
&nbsp;
Gem files will remain installed in
/opt/local/lib/ruby/gems/1.8/gems/mysql-2.7 for inspection.
Results logged to
/opt/local/lib/ruby/gems/1.8/gems/mysql-2.7/gem_make.out</pre></div></div>

<p>Then you&#8217;ll need to add a couple of things to your Gem command line to get it building:</p>
<p>If you&#8217;re just installing or updating the gem, try this:</p>

<div class="wp_syntax"><div class="code"><pre class="text">sudo gem install mysql -- \
  --with-mysql=/opt/local/lib/mysql5 \
  --with-mysql-lib=/opt/local/lib/mysql5/mysql \
  --with-mysql-include=/opt/local/include/mysql5/mysql</pre></div></div>

<p>If you&#8217;re updating all your gems (this one caught me out), then try this:</p>

<div class="wp_syntax"><div class="code"><pre class="text">sudo gem update -- \
  --with-mysql=/opt/local/lib/mysql5 \
  --with-mysql-lib=/opt/local/lib/mysql5/mysql \
  --with-mysql-include=/opt/local/include/mysql5/mysql</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.eleventyten.com/2008/02/03/building-the-mysql-gem-on-leopard-with-the-macports-mysql/feed/</wfw:commentRss>
		</item>
	</channel>
</rss><!-- Dynamic Page Served (once) in 0.359 seconds -->
