<?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>programming with passion &#187; Uncategorized</title>
	<atom:link href="http://www.jasonrowland.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jasonrowland.com</link>
	<description>Learning Mac, Ruby, iPhone, BlackBerry, Android, WinMobile</description>
	<lastBuildDate>Tue, 14 Jun 2011 19:11:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Native looking Mac apps using Python &amp; wxPython</title>
		<link>http://www.jasonrowland.com/2011/04/native-looking-mac-apps-using-python-wxpython/</link>
		<comments>http://www.jasonrowland.com/2011/04/native-looking-mac-apps-using-python-wxpython/#comments</comments>
		<pubDate>Sun, 24 Apr 2011 04:59:43 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.jasonrowland.com/?p=386</guid>
		<description><![CDATA[So, I went down the road of using wxRuby, but it seems that it is a dead or dying code base. Seems most Ruby-ists are interested in Rails, not in desktop applications. I also failed in my attempt at packaging up a ruby desktop app to make it appear native. I kept running into 64bit [...]]]></description>
			<content:encoded><![CDATA[<p>So, I went down the road of using wxRuby, but it seems that it is a dead or dying code base.  Seems most Ruby-ists are interested in Rails, not in desktop applications.  I also failed in my attempt at packaging up a ruby desktop app to make it appear native.  I kept running into 64bit vs 32bit issues.</p>
<p>Anyway, after quite a few months break from my project, I decided it made more sense to develop my blenderfarmers render farm client application using Python.  Blender itself uses Python to perform all it&#8217;s scripting tasks.  This would guarantee that Python is installed on every computer that is running Blender.</p>
<p>Turns out, it doesn&#8217;t even matter if python is on the target machine because built into Python is the ability to bake the python application into an executable.  Ruby has this ability too, but I just never could get it working.  In one hour, I was able to create a shell wxPython window and &#8220;freeze&#8221; it to a native Mac package that behaves just like a native app.  Beautiful!</p>
<p>I know this is Mac centric, I need to test on Windows too, but my experience is it is harder to get working on my Mac, than my Windows virtual machine.</p>
<p>Great page that helped:  <a title="Optimizing for Mac OS X" href="http://wiki.wxpython.org/Optimizing%20for%20Mac%20OS%20X">Optimizing for Mac OS X</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonrowland.com/2011/04/native-looking-mac-apps-using-python-wxpython/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convention over configuration</title>
		<link>http://www.jasonrowland.com/2011/02/convention-over-configuration/</link>
		<comments>http://www.jasonrowland.com/2011/02/convention-over-configuration/#comments</comments>
		<pubDate>Mon, 21 Feb 2011 20:55:56 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.jasonrowland.com/?p=376</guid>
		<description><![CDATA[I think convention over configuration is one positive idea that Ruby had brought to the java world.  One of the criticisms that is lobbed at java is that it has too many XML configuration files.  I don&#8217;t think this is a weakness in the java language as much as it is the desire to make an [...]]]></description>
			<content:encoded><![CDATA[<p>I think convention over configuration is one positive idea that Ruby had brought to the java world.  One of the criticisms that is lobbed at java is that it has too many XML configuration files.  I don&#8217;t think this is a weakness in the java language as much as it is the desire to make an extremely flexible system that doesn&#8217;t require a re-compile to change optional parameters.  It centralizes these choices into a configuration file instead of throughout several source code files.</p>
<p>This configuration file explosion isn&#8217;t exclusive to java.  I&#8217;ve seen it in rails applications too.  The only difference that I can tell is that Rails uses a more terse file format known as YML.  The production Rails app that I am working with has dozens of these configuration files.  Frankly, it looks no different to me than other production java projects I&#8217;ve been on.</p>
<p>YML may be easier for a developer due to the terseness of it, but I don&#8217;t think it is any better for the folks who are expected to maintain these configuration files (the production support teams).  In fact, I would think XML would have an advantage in this area because of the ability to validate an xml document based on a schema.  I am not aware of these sorts of tools for YML.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonrowland.com/2011/02/convention-over-configuration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Video Capture with C#</title>
		<link>http://www.jasonrowland.com/2011/02/video-capture-with-c/</link>
		<comments>http://www.jasonrowland.com/2011/02/video-capture-with-c/#comments</comments>
		<pubDate>Mon, 14 Feb 2011 03:43:36 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.jasonrowland.com/?p=373</guid>
		<description><![CDATA[I&#8217;m having lots of fun writing a video capture application in C#.  Windows Media Foundation is supposed to be the &#8220;cool new way&#8221; to do this.  Unfortunately, there just isn&#8217;t a lot of support yet in the drivers and as far as I can tell, Windows Media Foundation does not work with the DirectShow drivers [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m having lots of fun writing a video capture application in C#.  Windows Media Foundation is supposed to be the &#8220;cool new way&#8221; to do this.  Unfortunately, there just isn&#8217;t a lot of support yet in the drivers and as far as I can tell, Windows Media Foundation does not work with the DirectShow drivers that capture cards use.  So, I&#8217;ve gone down the rabbit hole of learning how to write a video capture application using C# and DirectShow.  There just isn&#8217;t much information out there because everyone seems to want to use C++.</p>
<p>After opening Microsoft&#8217;s sample C++ app to do video capture, I&#8217;ve come to the conclusion that Microsoft COM C++ just makes me feel stupid.  It&#8217;s always made me feel stupid.  I used to think it was me.  I know now, that it&#8217;s just an ugly API and you have to be able to think in strange ways to do COM.  I&#8217;ve learned so many languages and libraries now that I can say, it&#8217;s just one ugly mess.  I&#8217;m glad they&#8217;ve been going down the CLR route.</p>
<p>I&#8217;m using <a href="http://directshownet.sourceforge.net/">http://directshownet.sourceforge.net/ </a> to handle the interop layer.  I have it capturing video from my Intensity Pro capture card.  My super fast hard drive and SATA3 system is just barely able to keep up with the uncompressed AVI file that I&#8217;m capturing.  I could compress it, but I don&#8217;t want to lose ANY color information as we will be using this footage for green screen magic.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonrowland.com/2011/02/video-capture-with-c/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Per Project RVM Selection</title>
		<link>http://www.jasonrowland.com/2010/11/per-project-rvm-selection/</link>
		<comments>http://www.jasonrowland.com/2010/11/per-project-rvm-selection/#comments</comments>
		<pubDate>Fri, 19 Nov 2010 17:39:01 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.jasonrowland.com/?p=367</guid>
		<description><![CDATA[I work on Rails as a contractor as well as my own projects.  My main contract uses rails 2.x and ruby ree 1.8.7.  Naturally, I like to use the bleeding edge on my own projects.  This causes me problems going back and forth.  I found that you can create an .rvmrc file that will set [...]]]></description>
			<content:encoded><![CDATA[<p>I work on Rails as a contractor as well as my own projects.  My main contract uses rails 2.x and ruby ree 1.8.7.  Naturally, I like to use the bleeding edge on my own projects.  This causes me problems going back and forth.  I found that you can create an .rvmrc file that will set the environment for you when you run ruby in that directory.</p>
<p>You just put the same command you would normally type at the prompt to switch RVM environments in the .rvmrc file and it works!</p>
<pre><code>echo "rvm ree@global" &gt; .rvmrc</code></pre>
<p>This will enable you to simply change directories and not have to think about which version of ruby and gemset you are using.  cd into that directory, type ruby &#8211;version to verify it loading the right ruby version.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonrowland.com/2010/11/per-project-rvm-selection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Startups</title>
		<link>http://www.jasonrowland.com/2010/10/startups/</link>
		<comments>http://www.jasonrowland.com/2010/10/startups/#comments</comments>
		<pubDate>Mon, 01 Nov 2010 04:29:01 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.jasonrowland.com/?p=364</guid>
		<description><![CDATA[I&#8217;m currently working at a startup.  One of the things I love about startups is the commitment I see from a lot of developers.  I remember when I first moved to Colorado, working at 2am with other developers.  It&#8217;s sorta like a party.  I think it&#8217;s why I loved the Rails Rumble so much.  It [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m currently working at a startup.  One of the things I love about startups is the commitment I see from a lot of developers.  I remember when I first moved to Colorado, working at 2am with other developers.  It&#8217;s sorta like a party.  I think it&#8217;s why I loved the Rails Rumble so much.  It is 10:30pm, I just drank 6 shots of espresso.  Another developer and I are planning on working perhaps till people show up in the morning and beyond to get some functionality done.  This is so not a corporate thing to do.  I love it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonrowland.com/2010/10/startups/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Amazon vs Rackspace for Blender</title>
		<link>http://www.jasonrowland.com/2010/09/amazon-vs-rackspace-for-blender/</link>
		<comments>http://www.jasonrowland.com/2010/09/amazon-vs-rackspace-for-blender/#comments</comments>
		<pubDate>Fri, 10 Sep 2010 02:15:55 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.jasonrowland.com/?p=345</guid>
		<description><![CDATA[I am comparing Amazon and Rackspace to host some of my servers.  I&#8217;d like them to render my blender files as well as be a web server for blenderfarmers.com.  So, I have created the smallest possible server on both services.  They are roughly comparable in cost for their smallest instances.  Rackspace is $0.015/hour for their [...]]]></description>
			<content:encoded><![CDATA[<p>I am comparing Amazon and Rackspace to host some of my servers.  I&#8217;d like them to render my blender files as well as be a web server for blenderfarmers.com.  So, I have created the smallest possible server on both services.  They are roughly comparable in cost for their smallest instances.  Rackspace is $0.015/hour for their smallest server and Amazon costs $0.02/hour.</p>
<h2>Rackspace</h2>
<p>I first tried Rackspace because I already have an account there.  I setup Ubuntu 64bit and installed the 2.49b 64bit version of Blender.  I downloaded the test.blend file from http://www.eofw.org/bench/ and executed it with the following command:</p>
<p>/usr/local/blender/2.49b/blender -b test.blend -o //test. -F PNG -t 0 -f 1</p>
<p>It returned in 47 seconds.</p>
<p>I then ran the 2.5.3 beta version of blender with the same command and it returned in 18 seconds but exited with Segmentation fault.  I can reproduce that segmentation fault on my Mac with the same version of Blender.</p>
<h2>Amazon EC2</h2>
<p>I then created Amazon&#8217;s micro on-demand server.  I only had Fedora as a choice from the prepackaged ones.  There are over 5000 pre-built images from the public though I didn&#8217;t see Ubunto v 10.  Also, the micro version only allows 32 bit computers.  The nice thing about Fedora is that I installed a headless blender by simply typing:</p>
<p>yum blender</p>
<p>It installed 2.48.  It took 17 minutes and 10 seconds to render that same frame!  What in the world!  I&#8217;m not sure why it takes so long on the Amazon server compared to the Rackspace server, but Rackspace is cheaper AND faster for rendering frames in Blender.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonrowland.com/2010/09/amazon-vs-rackspace-for-blender/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSH and Amazon Cloud</title>
		<link>http://www.jasonrowland.com/2010/08/ssh-and-amazon-cloud/</link>
		<comments>http://www.jasonrowland.com/2010/08/ssh-and-amazon-cloud/#comments</comments>
		<pubDate>Mon, 30 Aug 2010 17:30:29 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.jasonrowland.com/?p=331</guid>
		<description><![CDATA[While trying to login to an Amazon cloud server from my Mac, with the following command: ssh -i register.pem username@myamazonserver.amazonaws.com I got this error message: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @         WARNING: UNPROTECTED PRIVATE KEY FILE!          @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0644 for 'tmn_register.pem' are too open. It is recommended that your private [...]]]></description>
			<content:encoded><![CDATA[<p>While trying to login to an Amazon cloud server from my Mac, with the following command:</p>
<pre>ssh -i register.pem username@myamazonserver.amazonaws.com</pre>
<p>I got this error message:</p>
<pre>@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for 'tmn_register.pem' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: tmn_register.pem
Permission denied (publickey).</pre>
<p>Apparently, the permissions on the filesystem for the key file that was given to me were too secure.  I changed the permissions to disallow all access except me and all was well.</p>
<pre>chmod 600 register.pem</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonrowland.com/2010/08/ssh-and-amazon-cloud/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JAVA_HOME on MacOSX</title>
		<link>http://www.jasonrowland.com/2010/08/java_home-on-macosx/</link>
		<comments>http://www.jasonrowland.com/2010/08/java_home-on-macosx/#comments</comments>
		<pubDate>Wed, 25 Aug 2010 19:10:20 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.jasonrowland.com/?p=322</guid>
		<description><![CDATA[edit your ~/.profile (or ~/.bash_profile if you are using that instead) and add the following export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home]]></description>
			<content:encoded><![CDATA[<p>edit your ~/.profile (or ~/.bash_profile if you are using that instead) and add the following</p>
<p>export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonrowland.com/2010/08/java_home-on-macosx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Homebrew</title>
		<link>http://www.jasonrowland.com/2010/07/homebrew/</link>
		<comments>http://www.jasonrowland.com/2010/07/homebrew/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 20:38:47 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.jasonrowland.com/?p=311</guid>
		<description><![CDATA[I am currently trying out a new package management system called Homebrew.  I am not really sure how it&#8217;s any better than MacPorts yet.  I think the only thing I know is that you aren&#8217;t forced to download multiple versions of a package if you don&#8217;t need to. http://mxcl.github.com/homebrew/]]></description>
			<content:encoded><![CDATA[<p>I am currently trying out a new package management system called Homebrew.  I am not really sure how it&#8217;s any better than MacPorts yet.  I think the only thing I know is that you aren&#8217;t forced to download multiple versions of a package if you don&#8217;t need to.</p>
<p>http://mxcl.github.com/homebrew/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonrowland.com/2010/07/homebrew/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RVM (Ruby Version Manager)</title>
		<link>http://www.jasonrowland.com/2010/02/rvm-ruby-version-manager/</link>
		<comments>http://www.jasonrowland.com/2010/02/rvm-ruby-version-manager/#comments</comments>
		<pubDate>Sat, 20 Feb 2010 07:09:52 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.jasonrowland.com/?p=282</guid>
		<description><![CDATA[Motivation The Rails 2.x has felt&#8230; hacky to me.  When I&#8217;ve looked at some of the code that has been generated, I&#8217;ve been turned off by the inline javascript I&#8217;ve seen.  I want the code that my framework creates to be extremely clean and standards oriented.  Inline javascript just doesn&#8217;t cut it for me.  Another [...]]]></description>
			<content:encoded><![CDATA[<h2>Motivation</h2>
<p>The Rails 2.x has felt&#8230; hacky to me.  When I&#8217;ve looked at some of the code that has been generated, I&#8217;ve been turned off by the inline javascript I&#8217;ve seen.  I want the code that my framework creates to be extremely clean and standards oriented.  Inline javascript just doesn&#8217;t cut it for me.  Another thing that has bugged me is the disregard for other points of view.  In &#8220;Agile Web Development with Rails&#8221; book I read, the authors decided to denigrate the importance of having a very clean ORM layer because Rails didn&#8217;t have it.  It has felt that the Rails core team didn&#8217;t really care about correctness, they seemed hacky.  The merb team seemed to care about correctness in implementation which is why they were creating a lightweight, flexible foundation.  Because of this, Rails 3.0 excites me.</p>
<p>I&#8217;ve decided to do all my Rails development using 3.0.  I have no plans on releasing my software any time soon, and I really want to use the new bundler and the new routing features.  In order to do this, I want to be able to run multiple versions of Ruby on my machine.  My good friend Andrew Kavanaugh pointed me to <a href="http://rvm.beginrescueend.com/">RVM (Ruby Version Manager)</a>.</p>
<h2>RVM Installation</h2>
<p>I had no trouble following the directions to install RVM.  It installed without errors.  I encountered an error when I went to install a different Ruby version.  Inside the configure.error.log file, I had this line: &#8220;configure: error: C compiler cannot create executables&#8221;  Inside the configure.log file, I had &#8220;checking whether the C compiler works&#8230; no.&#8221;   When I upgraded to Snow Leopard, I didn&#8217;t upgrade my dev tools.  Once I installed Xcode 3.2.1, I had no problems installing my ruby versions.</p>
<h2>RVM Usage</h2>
<p>Install a new version of Ruby:</p>
<pre>rvm install 1.9.2</pre>
<p>List installed versions of Ruby:</p>
<pre>rvm list</pre>
<p>Change version of Ruby</p>
<pre>rvm 1.9.2
rvm system</pre>
<p>Change default</p>
<pre>rvm 1.9.1 --default
rvm system --default</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonrowland.com/2010/02/rvm-ruby-version-manager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

