<?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>awkward silence &#187; Note to self</title>
	<atom:link href="http://tom.wilcoxen.org/category/note-to-self/feed/" rel="self" type="application/rss+xml" />
	<link>http://tom.wilcoxen.org</link>
	<description></description>
	<lastBuildDate>Fri, 19 Mar 2010 21:39:36 +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>Unfindable: Catalog of Unfindable Objects</title>
		<link>http://tom.wilcoxen.org/2010/03/19/catalog-of-unfindable-objects/</link>
		<comments>http://tom.wilcoxen.org/2010/03/19/catalog-of-unfindable-objects/#comments</comments>
		<pubDate>Fri, 19 Mar 2010 21:32:03 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Note to self]]></category>

		<guid isPermaLink="false">http://tom.wilcoxen.org/2010/03/19/catalog-of-unfindable-objects/</guid>
		<description><![CDATA[I find this amusing&#8230; Catalog of Unfindable Objects]]></description>
			<content:encoded><![CDATA[<p>I find this amusing&#8230;</p>
<p><a href="http://www.amazon.com/gp/product/089104311X/ref=olp_product_details?ie=UTF8&amp;me=&amp;seller=">Catalog of Unfindable Objects</a></p>
]]></content:encoded>
			<wfw:commentRss>http://tom.wilcoxen.org/2010/03/19/catalog-of-unfindable-objects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Build and Compile your SQLite Database with Xcode</title>
		<link>http://tom.wilcoxen.org/2008/11/28/build-and-compile-your-sqlite-database-with-xcode/</link>
		<comments>http://tom.wilcoxen.org/2008/11/28/build-and-compile-your-sqlite-database-with-xcode/#comments</comments>
		<pubDate>Fri, 28 Nov 2008 21:01:30 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Note to self]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[os x]]></category>

		<guid isPermaLink="false">http://tom.wilcoxen.org/?p=82</guid>
		<description><![CDATA[I&#8217;ve been working on setting up a database for an iPhone app. I haven&#8217;t worked with sqlite before so it&#8217;s yet another new thing to learn. I&#8217;ve been going through a few tutorials on the web and was partway through this one when I took the advice of his sidebar at the end of Step [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working on setting up a database for an iPhone app. I haven&#8217;t worked with sqlite before so it&#8217;s yet another new thing to learn. I&#8217;ve been going through a few tutorials on the web and was partway through <a href="http://leefalin.com/blog/2008/10/02/iphone-sqlite-database-basics/">this one</a> when I took the advice of his sidebar at the end of Step 3 to keep my database definition in sql and have it built when the app compiles. He linked to <a href="http://public.toxicsoftware.com/CompileSQL.png">this screenshot</a> by way of a how-to, which unfortunately didn&#8217;t work for me.</p>
<p>First off, to find the build rules for your project, right click on Targets in xcode and select Get Info:<br />
<img src="http://img.skitch.com/20081128-s74ejes16mgctfch4dfcmbs29.jpg" alt="main.m - GameDay"/></p>
<p>I also added a check to see if your db already exists to avoid build errors if it doesn&#8217;t. I decided to put it into an external file and execute that from the build rule. Here&#8217;s what my build rule looks like:</p>
<div class="thumbnail"><a href="http://skitch.com/tomwilcoxen/h9u2/target-gameday-info"><img src="http://img.skitch.com/20081128-n6r6d3169j4geg6c32krip5kjj.preview.jpg" alt="Target 201CGameDay201D Info" /></a><br /><span style="font-family: Lucida Grande, Trebuchet, sans-serif, Helvetica, Arial; font-size: 10px; color: #808080">Uploaded with <a href="http://plasq.com/">plasq</a>&#8216;s <a href="http://skitch.com">Skitch</a>!</span></div>
<p>Here&#8217;s the bash shell script:<br />
<code><br />
#!/bin/bash<br />
cd ${TARGET_BUILD_DIR}<br />
if [ -f ${INPUT_FILE_BASE}.db ];<br />
  then<br />
    rm ${INPUT_FILE_BASE}.db;<br />
fi<br />
cat ${INPUT_FILE_PATH} | sqlite3 ${INPUT_FILE_BASE}.db<br />
</code></p>
<p>Put it in a file (sqlbuildrule.sh, for example) and place it in your project directory and set it to executable:<br />
<code>chmod +x sqlbuildrule.sh</code></p>
<p>At the end of the rule, click the + below &#8220;with output files&#8221; and enter this:<br />
<code>$(TARGET_BUILD_DIR)/$(INPUT_FILE_BASE).db</code></p>
<p>The script will look for a .sql file in your project directory and build it with the output going to your target build directory. </p>
<p>If you need to edit the shell script or change the &#8220;with output files&#8221; setting of the build rule, note that the way you use the environment variables is different. The shell uses them as regular bash variables: ${MY_VAR}, where Xcode uses parens: $(MY_VAR). </p>
]]></content:encoded>
			<wfw:commentRss>http://tom.wilcoxen.org/2008/11/28/build-and-compile-your-sqlite-database-with-xcode/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>iPhoneUnitTesting &#8211; How to do iPhone unit testing</title>
		<link>http://tom.wilcoxen.org/2008/10/21/iphoneunittesting-how-to-do-iphone-unit-testing/</link>
		<comments>http://tom.wilcoxen.org/2008/10/21/iphoneunittesting-how-to-do-iphone-unit-testing/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 14:58:01 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Note to self]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://tom.wilcoxen.org/?p=77</guid>
		<description><![CDATA[I&#8217;ve started looking into development on iPhone and was a little surprised that unit testing was challenging. I found this project by Google that seems promising: iPhoneUnitTesting &#8211; google-toolbox-for-mac &#8211; Google Code &#8211; How to do iPhone unit testing. I&#8217;m going through Bill Dudney&#8217;s book from the Prags, which seems very good. You get up [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve started looking into development on iPhone and was a little surprised that unit testing was challenging. I found this project by Google that seems promising:<br />
<a href="http://code.google.com/p/google-toolbox-for-mac/wiki/iPhoneUnitTesting">iPhoneUnitTesting &#8211; google-toolbox-for-mac &#8211; Google Code &#8211; How to do iPhone unit testing</a>.</p>
<p>I&#8217;m going through <a href="http://pragprog.com/titles/amiphd/iphone-sdk-development">Bill Dudney&#8217;s book from the Prags</a>, which seems very good. You get up and running quickly, though it isn&#8217;t (and doesn&#8217;t claim to be) an in-depth resource on Objective C. I also got <a href="http://pragprog.com/titles/dscpq/cocoa-programming">Daniel Steinberg&#8217;s Cocoa Programming book</a>, which is a great quick start and good companion to the iPhone book.</p>
<p>Now I just need an iPhone&#8230; <img src='http://tom.wilcoxen.org/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://tom.wilcoxen.org/2008/10/21/iphoneunittesting-how-to-do-iphone-unit-testing/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Soccer Stencil on Graffletopia</title>
		<link>http://tom.wilcoxen.org/2008/10/16/soccer-stencil-on-graffletopia/</link>
		<comments>http://tom.wilcoxen.org/2008/10/16/soccer-stencil-on-graffletopia/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 19:08:44 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Note to self]]></category>
<category>Note to self</category><category>soccer</category>
		<guid isPermaLink="false">http://tom.wilcoxen.org/2008/10/16/soccer-stencil-on-graffletopia/</guid>
		<description><![CDATA[I coach my kids&#8217; soccer teams and needed a way to set up games as far as positions and so forth. I came up with a stencil for OmniGraffle and posted it here. Let me know if you try it and if you spot any issues or have other suggestions. Note to self, soccer]]></description>
			<content:encoded><![CDATA[<p>I coach my kids&#8217; soccer teams and needed a way to set up games as far as positions and so forth. I came up with a stencil for <a href="http://www.omnigroup.com/omnigraffle">OmniGraffle</a> and <a href="http://graffletopia.com/stencils/420">posted it here</a>. Let me know if you try it and if you spot any issues or have other suggestions.</p>
<a href="http://tom.wilcoxen.org/tags/note-to-self" rel="tag">Note to self</a>, <a href="http://tom.wilcoxen.org/tags/soccer" rel="tag">soccer</a>]]></content:encoded>
			<wfw:commentRss>http://tom.wilcoxen.org/2008/10/16/soccer-stencil-on-graffletopia/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Excellent Sample of Mate Document-Based Applications</title>
		<link>http://tom.wilcoxen.org/2008/10/10/excellent-sample-of-mate-document-based-applications/</link>
		<comments>http://tom.wilcoxen.org/2008/10/10/excellent-sample-of-mate-document-based-applications/#comments</comments>
		<pubDate>Fri, 10 Oct 2008 19:46:42 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Note to self]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flex]]></category>
<category>actionscript</category><category>flex</category><category>Mate</category><category>Note to self</category>
		<guid isPermaLink="false">http://tom.wilcoxen.org/2008/10/10/excellent-sample-of-mate-document-based-applications/</guid>
		<description><![CDATA[I found an example of a Document-based Mate application out on Google code, referenced here and here on the Mate web site. It&#8217;s pretty nice, with good examples of the LocalEventMap, etc. He&#8217;s built it using the Presentation Model design pattern which seems to be a natural fit to both Flex and Mate. Paul Williams [...]]]></description>
			<content:encoded><![CDATA[<p>I found an example of a Document-based Mate application out on <a href="http://code.google.com/p/mate-examples/">Google code</a>, referenced <a href="http://mate.asfusion.com/forums/topic.php?id=155">here </a>and <a href="http://mate.asfusion.com/news/new-mate-examples-and-extensions-project">here </a>on the Mate web site.</p>
<p>It&#8217;s pretty nice, with good examples of the LocalEventMap, etc. He&#8217;s built it using the <a href="http://code.google.com/p/mate-examples/wiki/PresentationModel">Presentation Model</a> design pattern which seems to be a natural fit to both Flex and Mate.</p>
<p>Paul Williams of Adobe has <a href="http://weblogs.macromedia.com/paulw/">a series of articles</a> on various design patterns including <a href="http://weblogs.macromedia.com/paulw/archives/2007/10/presentation_pa_3.html">Presentation Model</a>.</p>
<p>And of course Martin Fowler <a href="http://martinfowler.com/eaaDev/PresentationModel.html">has some thoughts</a> on the Presentation Model, aka Application Model pattern.</p>
<p>It could be a nice starting point for developing multiple document applications. And the Presentation Model pattern looks like it would provide some nice benefits, keeping the views nice and simple and making them a lot easier to test. </p>
<p>This project also has excellent documentation and about the only info I can find on LocalEventMaps. </p>
<a href="http://tom.wilcoxen.org/tags/actionscript" rel="tag">actionscript</a>, <a href="http://tom.wilcoxen.org/tags/flex" rel="tag">flex</a>, <a href="http://tom.wilcoxen.org/tags/mate" rel="tag">Mate</a>, <a href="http://tom.wilcoxen.org/tags/note-to-self" rel="tag">Note to self</a>]]></content:encoded>
			<wfw:commentRss>http://tom.wilcoxen.org/2008/10/10/excellent-sample-of-mate-document-based-applications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex Builder 3, .swc Libraries and Linked Source</title>
		<link>http://tom.wilcoxen.org/2008/09/11/flex-builder-3-swc-libraries-and-linked-source/</link>
		<comments>http://tom.wilcoxen.org/2008/09/11/flex-builder-3-swc-libraries-and-linked-source/#comments</comments>
		<pubDate>Thu, 11 Sep 2008 17:16:07 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Note to self]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[ria]]></category>
<category>flex</category><category>Note to self</category><category>ria</category>
		<guid isPermaLink="false">http://tom.wilcoxen.org/2008/09/11/flex-builder-3-swc-libraries-and-linked-source/</guid>
		<description><![CDATA[I&#8217;ve been using Mate for some time and liking it very much. I wanted to be able to use Flex Builder&#8217;s ability to navigate to and view the source of included types. With only having the downloaded .swc file in my /libs directory that wasn&#8217;t possible. It took me some time to sort it out, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using <a href="http://mate.asfusion.com/">Mate</a> for some time and liking it very much. I wanted to be able to use Flex Builder&#8217;s ability to navigate to and view the source of included types. With only having the downloaded .swc file in my /libs directory that wasn&#8217;t possible. It took me some time to sort it out, so here&#8217;s my recipe in case it helps anyone (and so I can remember next time). </p>
<p>This should also work for any project that you can download the source for, that just happened to be Mate for me. I&#8217;m using Flex Builder 3 &#8212; not sure what would be different if anything with FB2.</p>
<p>1. Download the source using the directions <a href="http://mate.asfusion.com/page/downloads">here</a></p>
<p>2. Create a <strong>Flex Library Project</strong> in Flex Builder, let&#8217;s call it &#8216;MateLib&#8217;</p>
<p>3. Import the source into the project, leaving out all the .svn directories, such that your folder structure looks like:</p>
<pre>
MateLib
   /bin
   /com
      /asfusion
         /mate
            /etc....
   manifest.xml
</pre>
<p>4. Right click the project in the FB Navigator view and select: Properties -> Flex Library Compiler. Set the <strong>Namespace URL:</strong> to &#8220;http://mate.asfusion.com/&#8221; and <strong>Mainifest file:</strong> to manifest.xml</p>
<p>5. Save and build the project.</p>
<p>6. In your project that uses the library, select Properties -> Flex Build Path and click Add SWC and navigate to the MateLib project -> /bin folder and select the MateLib.swc file there. </p>
<p>Now you can use the standard way to include Mate components in your mxml, with:<br />
<code><br />
   xmlns:mate="http://mate.asfusion.com/"<br />
</code></p>
<p>And you&#8217;ll be able to view the source code by command-clicking (control-click on Windows I think) a Mate component. You can also select the text, e.g. Dispatcher, and use the F3 key. And&#8230; the classes will also come up and be navigable with the Open Type, command-T, navigator.</p>
<a href="http://tom.wilcoxen.org/tags/flex" rel="tag">flex</a>, <a href="http://tom.wilcoxen.org/tags/note-to-self" rel="tag">Note to self</a>, <a href="http://tom.wilcoxen.org/tags/ria" rel="tag">ria</a>]]></content:encoded>
			<wfw:commentRss>http://tom.wilcoxen.org/2008/09/11/flex-builder-3-swc-libraries-and-linked-source/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flex Time</title>
		<link>http://tom.wilcoxen.org/2008/06/24/flex-time/</link>
		<comments>http://tom.wilcoxen.org/2008/06/24/flex-time/#comments</comments>
		<pubDate>Tue, 24 Jun 2008 21:07:48 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Note to self]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[ria]]></category>
<category>design</category><category>design patterns</category><category>flex</category><category>Note to self</category><category>ria</category><category>Uncategorized</category>
		<guid isPermaLink="false">http://tom.wilcoxen.org/2008/06/24/flex-time/</guid>
		<description><![CDATA[It looks like I&#8217;ll be doing Flex RIA development, which I&#8217;m really looking forward to. Right now I need to tuck away a few links for further study&#8230; Cairngen &#8211; for generating the basics for a Cairngorm Flex app: http://code.google.com/p/cairngen/wiki/GettingStarted Paul Williams &#8211; a series of blog posts on presentation tier design patterns with an [...]]]></description>
			<content:encoded><![CDATA[<p>It looks like I&#8217;ll be doing Flex RIA development, which I&#8217;m really looking forward to. Right now I need to tuck away a few links for further study&#8230;</p>
<p>Cairngen &#8211; for generating the basics for a Cairngorm Flex app:<br />
<a href="http://code.google.com/p/cairngen/wiki/GettingStarted">http://code.google.com/p/cairngen/wiki/GettingStarted</a></p>
<p>Paul Williams &#8211; a series of blog posts on presentation tier design patterns with an eye to Flex:<br />
<a href="http://weblogs.macromedia.com/paulw/">http://weblogs.macromedia.com/paulw/</a></p>
<p>dpUint &#8211; Flex unit testing framework with async testing support baked-in:<br />
<a href="http://code.google.com/p/dpuint/wiki/Introduction">http://code.google.com/p/dpuint/wiki/Introduction</a></p>
<p>Prana &#8211; an IoC for Flex&#8230; useful with Cairngorm:<br />
<a href="http://www.herrodius.com/blog/64">http://www.herrodius.com/blog/64</a></p>
<p>Steven Weber very good introduction to Cairngorm:<br />
<a href="http://www.adobe.com/devnet/flex/articles/cairngorm_pt1.html">http://www.adobe.com/devnet/flex/articles/cairngorm_pt1.html</a></p>
<p>Bruce Eckel articles on Artima:<br />
<a href="http://www.artima.com/weblogs/viewpost.jsp?thread=212818">http://www.artima.com/weblogs/viewpost.jsp?thread=212818</a><br />
<a href="http://www.artima.com/weblogs/viewpost.jsp?thread=230610">http://www.artima.com/weblogs/viewpost.jsp?thread=230610</a></p>
<p>And Getting Started with Flex at Adobe:<br />
<a href="http://learn.adobe.com/wiki/display/Flex/Getting+Started">http://learn.adobe.com/wiki/display/Flex/Getting+Started</a></p>
<a href="http://tom.wilcoxen.org/tags/design" rel="tag">design</a>, <a href="http://tom.wilcoxen.org/tags/design_patterns" rel="tag">design patterns</a>, <a href="http://tom.wilcoxen.org/tags/flex" rel="tag">flex</a>, <a href="http://tom.wilcoxen.org/tags/note-to-self" rel="tag">Note to self</a>, <a href="http://tom.wilcoxen.org/tags/ria" rel="tag">ria</a>, <a href="http://tom.wilcoxen.org/tags/uncategorized" rel="tag">Uncategorized</a>]]></content:encoded>
			<wfw:commentRss>http://tom.wilcoxen.org/2008/06/24/flex-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Capistrano subversion permissions issue</title>
		<link>http://tom.wilcoxen.org/2006/08/27/capistrano-subversion-permissions-issue/</link>
		<comments>http://tom.wilcoxen.org/2006/08/27/capistrano-subversion-permissions-issue/#comments</comments>
		<pubDate>Sun, 27 Aug 2006 06:48:00 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Note to self]]></category>

		<guid isPermaLink="false">http://tom.wilcoxen.org/2006/08/27/capistrano-subversion-permissions-issue/</guid>
		<description><![CDATA[I finally got Capistrano running. The last hurdle was a funky one having to do with subversion. Our deployment environment is 2 web/application servers and one db server. We have another machine that hosts our subversion repository. The issue was that each machine has to check out from the subversion server. When they went to [...]]]></description>
			<content:encoded><![CDATA[<p>I finally got Capistrano running. The last hurdle was a funky one having to do with subversion. Our deployment environment is 2 web/application servers and one db server. We have another machine that hosts our subversion repository. </p>
<p>The issue was that each machine has to check out from the subversion server. When they went to do that, there was a message to accept the server or not. This would hang Capistrano.</p>
<p>To solve it, ssh into each of your web/app/db machines. From each, check out from the subversion server interactively and choose to permanently accept the svn server. </p>
]]></content:encoded>
			<wfw:commentRss>http://tom.wilcoxen.org/2006/08/27/capistrano-subversion-permissions-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to set ENV for rake migrate</title>
		<link>http://tom.wilcoxen.org/2006/01/19/how-to-set-env-for-rake-migrate/</link>
		<comments>http://tom.wilcoxen.org/2006/01/19/how-to-set-env-for-rake-migrate/#comments</comments>
		<pubDate>Thu, 19 Jan 2006 20:34:00 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Note to self]]></category>

		<guid isPermaLink="false">http://tom.wilcoxen.org/2006/01/19/how-to-set-env-for-rake-migrate/</guid>
		<description><![CDATA[If you&#8217;re running a recent rails app and are on a host like DreamHost where the RAILS_ENV isn&#8217;t set, you&#8217;ll need to use this to run your migrations: rake environment RAILS_ENV=production migrate Otherwise you&#8217;ll get this: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' Or you&#8217;ll connect to your development database if you have [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re running a recent rails app and are on a host like DreamHost where the RAILS_ENV isn&#8217;t set, you&#8217;ll need to use this to run your migrations:</p>
<div class="typocode">
<pre><code class="typocode_ruby typocode"><span class="ident">rake</span> <span class="ident">environment</span> <span class="constant">RAILS_ENV</span><span class="punct">=</span><span class="ident">production</span> <span class="ident">migrate</span></code></pre>
</div>
<p>Otherwise you&#8217;ll get this:</p>
<div class="typocode">
<pre><code class="typocode_ruby typocode"><span class="constant">Can</span><span class="punct">'</span><span class="string">t connect to local MySQL server through socket </span><span class="punct">'/</span><span class="ident">var</span><span class="punct">/</span><span class="ident">run</span><span class="punct">/</span><span class="ident">mysqld</span><span class="punct">/</span><span class="ident">mysqld</span><span class="punct">.</span><span class="ident">sock</span><span class="punct">'</span><span class="string"></span></code></pre>
</div>
<p>Or you&#8217;ll connect to your development database if you have one configured.</p>
]]></content:encoded>
			<wfw:commentRss>http://tom.wilcoxen.org/2006/01/19/how-to-set-env-for-rake-migrate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.217 seconds -->
