<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>assertTrue</title>
  <subtitle type="html">powered by Pattern Park</subtitle>
  <id>tag:www.asserttrue.com,2005:Typo</id>
  <generator version="4.0" uri="http://typo.leetsoft.com">Typo</generator>
  <link href="http://www.asserttrue.com/xml/atom10/feed.xml" rel="self" type="application/xml+atom"/>
  <link href="http://www.asserttrue.com/" rel="alternate" type="text/html"/>
  <updated>2008-05-11T23:43:48-07:00</updated>
  <entry>
    <author>
      <name>Luke Bayes</name>
    </author>
    <id>urn:uuid:8e237b05-3cf4-407d-99c3-abb0da1a1045</id>
    <published>2008-05-11T23:38:00-07:00</published>
    <updated>2008-05-11T23:43:48-07:00</updated>
    <title>Getting Started with ActionScript 2.0 and AsUnit</title>
    <link href="http://www.asserttrue.com/articles/2008/05/11/getting-started-with-actionscript-2-0-and-asunit" rel="alternate" type="text/html"/>
    <category term="asunit" scheme="http://www.asserttrue.com/articles/tag/asunit"/>
    <content type="html">&lt;p&gt;It seems a &amp;#8220;&lt;a href="http://blog.hoardinghopes.com/?page_id=2"&gt;London/Cambridge-based Actionscript developer&lt;/a&gt;&amp;#8221; posted an &lt;a href="http://blog.hoardinghopes.com/?p=14"&gt;excellent tutorial for ActionScript 2.0 and AsUnit&lt;/a&gt;.&lt;/p&gt;


	&lt;p&gt;Just wanted to make sure folks could find it!&lt;/p&gt;</content>
  </entry>
  <entry>
    <author>
      <name>Luke Bayes</name>
    </author>
    <id>urn:uuid:8ff32b8a-5210-4283-9b77-06d7632cc92a</id>
    <published>2008-05-04T14:36:00-07:00</published>
    <updated>2008-05-04T14:47:28-07:00</updated>
    <title>Is RubyGems running really, really slow on OSX? How about 60 second delays for HTTP requests?</title>
    <link href="http://www.asserttrue.com/articles/2008/05/04/is-rubygems-running-really-really-slow-on-osx-how-about-60-second-delays-for-http-requests" rel="alternate" type="text/html"/>
    <category term="ruby" scheme="http://www.asserttrue.com/articles/tag/ruby"/>
    <category term="rubygems" scheme="http://www.asserttrue.com/articles/tag/rubygems"/>
    <content type="html">&lt;p&gt;Ali and I ran into an interesting Ruby bug on &lt;span class="caps"&gt;OSX&lt;/span&gt; Leopard last week and I thought I&amp;#8217;d share the result of our finding&amp;#8230;.&lt;/p&gt;


	&lt;p&gt;Basically, we were requesting a 2k &lt;span class="caps"&gt;RSS&lt;/span&gt; feed from a url that had two sub-domains as in:&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;http://sub1.sub2.example.com&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;The request worked fine if we hit the server with only one sub-domain as in:&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;http://sub2.example.com&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;In the first example, the request would hang for exactly 60 seconds and then return the result. When we tried with a third sub-domain, we got a 120 second hang and then an error.&lt;/p&gt;


	&lt;p&gt;After digging through the Ruby sources, it looked like the problem was in the TCPSocket C implementation so I threw an &lt;a href="http://www.ruby-forum.com/topic/151729#new"&gt;email&lt;/a&gt; up on the Ruby list.&lt;/p&gt;


	&lt;p&gt;Turns out the fix is that if you&amp;#8217;re trying to use Ruby networking features that sit on top of &lt;span class="caps"&gt;TCP&lt;/span&gt; on &lt;span class="caps"&gt;OS X&lt;/span&gt; Leopard, you &lt;em&gt;may&lt;/em&gt; need to add the following to your code:&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;require 'resolv-replace'&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;Found the fix in this &lt;a href="http://www.ruby-forum.com/topic/138634"&gt;thread&lt;/a&gt;.&lt;/p&gt;


	&lt;p&gt;I also added this line to /usr/lib/ruby/1.8/rubygems.rb (around line 11) and RubyGems is suddenly much, much faster.&lt;/p&gt;</content>
  </entry>
  <entry>
    <author>
      <name>Luke Bayes</name>
    </author>
    <id>urn:uuid:280e14a9-f73e-4e28-a683-e8fb360295ac</id>
    <published>2008-04-18T09:44:00-07:00</published>
    <updated>2008-05-03T13:26:21-07:00</updated>
    <title>REST on IT Matters from Thoughtworks</title>
    <link href="http://www.asserttrue.com/articles/2008/04/18/rest-on-it-matters-from-thoughtworks" rel="alternate" type="text/html"/>
    <category term="rest" scheme="http://www.asserttrue.com/articles/tag/rest"/>
    <category term="swf" scheme="http://www.asserttrue.com/articles/tag/swf"/>
    <content type="html">&lt;p&gt;I recently discovered a great podcast that is put out by &lt;a href="http://www.thoughtworks.com"&gt;Thoughtworks&lt;/a&gt;. I can&amp;#8217;t remember at the moment who turned me on to this thing (probably Ali), but it really is fantastic.&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://www.thoughtworks.com/what-we-say/podcasts.html"&gt;http://www.thoughtworks.com/what-we-say/podcasts.html&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;Podcast #4 &amp;#8220;REST &amp;#8211; Representation State Transfer&amp;#8221; is well worth a listen. Especially for those of us that build SWFs and even more so for those of you that push for binary data protocols.&lt;/p&gt;


	&lt;p&gt;In a bit of a meta joke, there doesn&amp;#8217;t seem to be a link directly to the &lt;span class="caps"&gt;REST&lt;/span&gt; entry, so as this post gets older, the link above will become less meaningful!&lt;/p&gt;


	&lt;p&gt;I&amp;#8217;m sure much of this is old news to many of you, but some key points that I took away were:&lt;/p&gt;</content>
  </entry>
  <entry>
    <author>
      <name>Luke Bayes</name>
    </author>
    <id>urn:uuid:517d6dd0-d2ce-4de4-a4cd-bb280da54995</id>
    <published>2008-04-15T17:03:00-07:00</published>
    <updated>2008-05-03T13:24:25-07:00</updated>
    <title>Test-Driven Development with Sprouts in San Francsisco on Thursday</title>
    <link href="http://www.asserttrue.com/articles/2008/04/15/test-driven-development-with-sprouts-in-san-francsisco-on-thursday" rel="alternate" type="text/html"/>
    <category term="sprouts" scheme="http://www.asserttrue.com/articles/tag/sprouts"/>
    <content type="html">&lt;p&gt;Just getting a quick note out to everyone in the San Francisco Bay Area.&lt;/p&gt;


	&lt;p&gt;There&amp;#8217;s been a &lt;a href="http://tech.groups.yahoo.com/group/silvafug/message/568"&gt;last minute setup&lt;/a&gt; of the Silicon Valley Flash User Group (&lt;a href="http://www.silvafug.org"&gt;Silvafug&lt;/a&gt;) and I&amp;#8217;ve been asked to present &lt;a href="http://www.projectsprouts.org"&gt;Sprouts&lt;/a&gt;.&lt;/p&gt;


	&lt;p&gt;Of course I&amp;#8217;ll be giving the now-traditional 5 minute &amp;#8216;up-n-running&amp;#8217; demo that everyone is probably sick of seeing, but afterward I&amp;#8217;ll be getting into some nuts and bolts of how &lt;a href="http://www.projectsprouts.org"&gt;Sprouts&lt;/a&gt; works in my own Test-First development process.&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://probertson.com/articles/2008/04/15/air-windows-menus-presos/"&gt;Paul Robertson&lt;/a&gt; is speaking for the first half of the evening on “AIR: Windows, Menus, and the System Tray.” which I&amp;#8217;m really looking forward to!&lt;/p&gt;


	&lt;p&gt;At the time this post went to press, the Silvafug website hadn&amp;#8217;t yet been updated, but &lt;a href="http://tech.groups.yahoo.com/group/silvafug/message/568"&gt;according to this email&lt;/a&gt;, the event is scheduled to go from 5:30pm to 9:30ish at the San Francisco Adobe building (&lt;a href="http://maps.google.com/maps?ie=UTF8&amp;#38;oe=utf-8&amp;#38;client=firefox-a&amp;#38;dq=adobe+loc:+San+Francisco,+CA&amp;#38;daddr=601+Townsend+St,+San+Francisco,+CA+94103&amp;#38;geocode=3903935404756825174,37.771799,-122.401665&amp;#38;f=d&amp;#38;ll=37.771799,-122.401665&amp;#38;spn=0.004071,0.009087&amp;#38;z=17"&gt;601 Townsend Street&lt;/a&gt;).&lt;/p&gt;


	&lt;p&gt;For those of you that don&amp;#8217;t know, this means that we&amp;#8217;ll be at the &lt;a href="http://www.marsbarsf.com/"&gt;Mars bar&lt;/a&gt; from about 9:30-ish onward!&lt;/p&gt;


	&lt;p&gt;Hope to see you there.&lt;/p&gt;</content>
  </entry>
  <entry>
    <author>
      <name>Luke Bayes</name>
    </author>
    <id>urn:uuid:2045ba26-25a5-4157-af2d-8fba28cc2152</id>
    <published>2008-04-09T10:11:00-07:00</published>
    <updated>2008-05-12T16:29:56-07:00</updated>
    <title>Github - making great choices</title>
    <link href="http://www.asserttrue.com/articles/2008/04/09/github-making-great-choices" rel="alternate" type="text/html"/>
    <content type="html">&lt;p&gt;I&amp;#8217;ve been flirting with &lt;a href="http://git.or.cz/"&gt;Git&lt;/a&gt; for awhile now, but haven&amp;#8217;t gotten around to using it on a &amp;#8216;real&amp;#8217; project yet.&lt;/p&gt;


	&lt;p&gt;For me, it has been an amazingly useful tool for exploration and personal projects where I&amp;#8217;m the only developer and I&amp;#8217;d rather not go through the trouble and commitment of creating a real subversion repository on our servers.&lt;/p&gt;


	&lt;p&gt;As I&amp;#8217;ve been using it more for these kinds of projects and some of them are growing beyond the initial conception, I&amp;#8217;ve been looking into what it would take to host a git repository remotely.&lt;/p&gt;


	&lt;p&gt;As it turns out, some folks have put together an  clean solution over at &lt;a href="http://www.github.com"&gt;Github&lt;/a&gt;.&lt;/p&gt;</content>
  </entry>
  <entry>
    <author>
      <name>Luke Bayes</name>
    </author>
    <id>urn:uuid:e80873f1-2f67-4879-b3d7-28f2d2307f87</id>
    <published>2008-04-08T16:33:00-07:00</published>
    <updated>2008-04-08T17:03:39-07:00</updated>
    <title>Will he finally start wearing Shoes?</title>
    <link href="http://www.asserttrue.com/articles/2008/04/08/will-he-finally-start-wearing-shoes" rel="alternate" type="text/html"/>
    <category term="shoes" scheme="http://www.asserttrue.com/articles/tag/shoes"/>
    <category term="ruby" scheme="http://www.asserttrue.com/articles/tag/ruby"/>
    <category term="music" scheme="http://www.asserttrue.com/articles/tag/music"/>
    <content type="html">&lt;p&gt;Those of you that know me know &amp;#8211; I wear flip flops.&lt;/p&gt;


	&lt;p&gt;I wear flip flops all the time.&lt;/p&gt;


	&lt;p&gt;I wear flip flops to business meetings, interviews, first dates, fancy clubs, I mean everywhere.&lt;/p&gt;


	&lt;p&gt;I wear flip flops even when it&amp;#8217;s a rainy, windy, San Francisco, 40-degree, summer day!&lt;/p&gt;


	&lt;p&gt;I suppose you can take the boy out of Florida, but, well, youknowhowitgoes&amp;#8230;.&lt;/p&gt;


	&lt;p&gt;In addition to the cold toes, it now looks like there might be another good reason to wear Shoes.&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://whytheluckystiff.net/"&gt;Why the Lucky Stiff&lt;/a&gt; of Ruby fame has come out with a new (and not-quite-ready) &lt;a href="http://code.whytheluckystiff.net/shoes/"&gt;cross-platform, native component, open-source, &lt;span class="caps"&gt;GUI&lt;/span&gt; toolkit called Shoes&lt;/a&gt;.&lt;/p&gt;


	&lt;p&gt;I&amp;#8217;ve been spending an awful lot of time lately thinking about this problem. By lately, I mean something like the past 10 years. I&amp;#8217;m definitely excited to look more closely at this project as he&amp;#8217;s claiming support for all kinds of media, drawing apis and even native components.&lt;/p&gt;


	&lt;p&gt;I&amp;#8217;ll be looking into this Shoes-thing more in the coming weeks and I&amp;#8217;ll be sure to let you know what I find.&lt;/p&gt;


	&lt;p&gt;In unrelated non-technical, but still somehow nerdy news, I may have found a new favorite musician and music site today.&lt;/p&gt;


	&lt;p&gt;Check out &lt;a href="http://ninaxbruja.muxtape.com/"&gt;muxtape&lt;/a&gt; which is a fantastic exercise in clean, semantic, UI for media (I dare you to view source).&lt;/p&gt;


	&lt;p&gt;Be sure to listen to the &lt;a href="http://www.kimyadawson.com/"&gt;Kimya Dawson&lt;/a&gt; track at the bottom of the link above.&lt;/p&gt;


	&lt;p&gt;Nice.&lt;/p&gt;</content>
  </entry>
  <entry>
    <author>
      <name>Luke Bayes</name>
    </author>
    <id>urn:uuid:642769d5-5356-4f92-a1c5-34937340a97c</id>
    <published>2008-03-31T22:50:00-08:00</published>
    <updated>2008-04-05T09:15:35-08:00</updated>
    <title>What do I really want?</title>
    <link href="http://www.asserttrue.com/articles/2008/03/31/what-do-i-really-want" rel="alternate" type="text/html"/>
    <category term="programming" scheme="http://www.asserttrue.com/articles/tag/programming"/>
    <content type="html">&lt;p&gt;I&amp;#8217;ve spent an inordinate amount of time lately considering and pondering what it is that I really want from my tools.&lt;/p&gt;


	&lt;p&gt;In an unrelated, introductory message to a random netizen, I just found myself emitting the following statement:&lt;/p&gt;


	&lt;p&gt;&amp;#8220;I want to write clean, elegant, code that results in simple, expressive user experiences. Nothing available today truly satisfies this desire for me.&amp;#8221;&lt;/p&gt;</content>
  </entry>
  <entry>
    <author>
      <name>Luke Bayes</name>
    </author>
    <id>urn:uuid:573fa50d-a590-4e69-8547-79b934a09ff2</id>
    <published>2008-02-25T08:02:00-08:00</published>
    <updated>2008-05-13T01:13:45-07:00</updated>
    <title>Flex 3 SDK released in Sprouts!</title>
    <link href="http://www.asserttrue.com/articles/2008/02/25/flex-3-sdk-released-in-sprouts" rel="alternate" type="text/html"/>
    <category term="sprout" scheme="http://www.asserttrue.com/articles/tag/sprout"/>
    <content type="html">&lt;p&gt;The &lt;a href="http://www.adobe.com/products/flex/"&gt;Flex 3 &lt;span class="caps"&gt;SDK&lt;/span&gt;&lt;/a&gt; was released by Adobe yesterday and this morning, I&amp;#8217;m pleased to announce that &lt;a href="http://www.projectsprouts.org"&gt;Sprouts&lt;/a&gt; already supports it.&lt;/p&gt;


	&lt;p&gt;To take advantage of the new Flex 3 &lt;span class="caps"&gt;SDK&lt;/span&gt;, you&amp;#8217;ll need to remove your existing sprout gems, clear your sprout cache and make a minor modification to any newly created rakefiles.&lt;/p&gt;


	&lt;p&gt;Here are the steps you should take to upgrade your sprout gems:&lt;/p&gt;</content>
  </entry>
  <entry>
    <author>
      <name>Luke Bayes</name>
    </author>
    <id>urn:uuid:a174f67e-e130-4557-845f-3d5924201674</id>
    <published>2008-02-25T00:24:00-08:00</published>
    <updated>2008-05-13T01:10:30-07:00</updated>
    <title>AsDoc and COMPC now supported in Sprouts</title>
    <link href="http://www.asserttrue.com/articles/2008/02/25/asdoc-and-compc-now-supported-in-sprouts" rel="alternate" type="text/html"/>
    <category term="sprouts" scheme="http://www.asserttrue.com/articles/tag/sprouts"/>
    <content type="html">&lt;p&gt;I just got some enhancements into the &lt;a href="http://www.projectsprouts.org"&gt;Sprout&lt;/a&gt; packages that provide full support for &lt;a href="http://www.projectsprouts.org/rdoc/classes/Sprout/AsDocTask.html"&gt;asdoc&lt;/a&gt; and &lt;a href="http://www.projectsprouts.org/rdoc/classes/Sprout/COMPCTask.html"&gt;compc&lt;/a&gt;.&lt;/p&gt;


	&lt;p&gt;The AsDoc support is especially handy because it gives the full terminal interface, but also allows you to generate documentation against any already defined &lt;span class="caps"&gt;MXMLC&lt;/span&gt; task without duplicating all of your configuration!&lt;/p&gt;


	&lt;p&gt;A Rakefile might look something like this:&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;desc &amp;quot;Compile the main application&amp;quot;
mxmlc 'bin/SomeProject.swf' do |t|
  t.input = 'src/SomeProject.as'
  t.source_path = 'lib/yourlib'
  t.source_path = 'lib/asunit'
  t.source_path = 'test'
  t.source_path = 'src'
end

desc &amp;quot;Generate documentation&amp;quot;
asdoc :doc =&amp;gt; 'bin/SomeProject.swf'&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;That&amp;#8217;s it!&lt;/p&gt;


	&lt;p&gt;You just set an &lt;span class="caps"&gt;MXMLC&lt;/span&gt; task as a prerequisite for an asdoc task and the configuration options are inherited.&lt;/p&gt;


	&lt;p&gt;The latest &lt;code&gt;as3&lt;/code&gt; bundle gem automatically adds something similar to all of your new project rake files.&lt;/p&gt;


You can always get the latest Rubyforge gems with the following:
&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;sprout -R
sudo gem update sprout&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;Be sure to &lt;a href="http://groups.google.com/group/projectsprouts"&gt;let us know&lt;/a&gt; if anything doesn&amp;#8217;t work as expected!&lt;/p&gt;</content>
  </entry>
  <entry>
    <author>
      <name>Luke Bayes</name>
    </author>
    <id>urn:uuid:55bdb3ce-a652-4101-9fb9-834f9dd4d926</id>
    <published>2008-02-21T10:25:00-08:00</published>
    <updated>2008-04-02T15:25:22-08:00</updated>
    <title>Creating Custom Generators with Sprouts</title>
    <link href="http://www.asserttrue.com/articles/2008/02/21/creating-custom-generators-with-sprouts" rel="alternate" type="text/html"/>
    <category term="sprouts" scheme="http://www.asserttrue.com/articles/tag/sprouts"/>
    <content type="html">&lt;p&gt;As &lt;a href="http://www.projectsprouts.org"&gt;Sprouts&lt;/a&gt; starts to pick up momentum, we&amp;#8217;re starting to get questions about creating custom generators. So I thought I&amp;#8217;d throw a quick post up to share the info more broadly.&lt;/p&gt;


	&lt;p&gt;I&amp;#8217;m actively working on the &amp;#8216;developer&amp;#8217; gem so that you will eventually be able to stub new sprout gems for tools, libraries, bundles, tasks and generators. Unfortunately that gem isn&amp;#8217;t quite ready yet so for the time being, you&amp;#8217;ll have to build your generators manually.&lt;/p&gt;


	&lt;p&gt;If you&amp;#8217;re looking for code generators within the context of an existing project, here&amp;#8217;s how to do it:&lt;/p&gt;</content>
  </entry>
</feed>
