<?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>justinmaccarthy</title>
	<atom:link href="http://justinmaccarthy.org/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://justinmaccarthy.org</link>
	<description>Ruby, Python, and on-off  Cloud computing</description>
	<lastBuildDate>Tue, 01 Jun 2010 02:27:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Test from mac journal</title>
		<link>http://justinmaccarthy.org/?p=115</link>
		<comments>http://justinmaccarthy.org/?p=115#comments</comments>
		<pubDate>Mon, 31 May 2010 21:39:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://justinmaccarthy.org/?p=115</guid>
		<description><![CDATA[Just a test ignore, blog in full screenThe OS X Shell explained.
]]></description>
			<content:encoded><![CDATA[<p>Just a test ignore, blog in full screenThe OS X Shell explained.</p>
]]></content:encoded>
			<wfw:commentRss>http://justinmaccarthy.org/?feed=rss2&amp;p=115</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running Google Test on Snow Leopard, C++ TDD</title>
		<link>http://justinmaccarthy.org/?p=114</link>
		<comments>http://justinmaccarthy.org/?p=114#comments</comments>
		<pubDate>Thu, 25 Feb 2010 12:44:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://justinmaccarthy.org/?p=114</guid>
		<description><![CDATA[A quick post from a coffee shop in Laos,  I&#8217;m installing the Google Test framework on my OS X machine to do some TDD C++ work, 
I&#8217;m using Make, and when I got to the instructions in the README explaining the how to run the sample tests &#8230;
### Using GNU Make ###
I ran into [...]]]></description>
			<content:encoded><![CDATA[<p>A quick post from a coffee shop in Laos,  I&#8217;m installing the Google Test framework on my OS X machine to do some TDD C++ work, </p>
<p>I&#8217;m using Make, and when I got to the instructions in the README explaining the how to run the sample tests &#8230;<br />
### Using GNU Make ###<br />
I ran into a  problem ..</p>
<p><code><br />
myosxmachine:make joe$ make clean &amp;&amp; make<br />
rm -f sample1_unittest gtest.a gtest_main.a *.o<br />
g++ -I.. -I../include -g -Wall -Wextra -c ../samples/sample1.cc<br />
g++ -I.. -I../include -g -Wall -Wextra -c ../samples/sample1_unittest.cc<br />
g++ -I.. -I../include -g -Wall -Wextra -c ../src/gtest-all.cc<br />
g++ -I.. -I../include -g -Wall -Wextra -c ../src/gtest_main.cc<br />
ar rv gtest_main.a gtest-all.o gtest_main.o<br />
ar: creating archive gtest_main.a<br />
a - gtest-all.o<br />
a - gtest_main.o<br />
g++ -I.. -I../include -g -Wall -Wextra sample1.o sample1_unittest.o gtest_main.a -o sample1_unittest<br />
ld: in gtest_main.a, archive has no table of contents<br />
collect2: ld returned 1 exit status<br />
make: *** [sample1_unittest] Error 1<br />
</code></p>
<p>Turns out there is an issue with ld and ar on OSX 10.6 . </p>
<p>Adding the ARFLAGS =-q -s to the sample makefile fixes the issue </p>
]]></content:encoded>
			<wfw:commentRss>http://justinmaccarthy.org/?feed=rss2&amp;p=114</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Localising Rails</title>
		<link>http://justinmaccarthy.org/?p=112</link>
		<comments>http://justinmaccarthy.org/?p=112#comments</comments>
		<pubDate>Wed, 14 Oct 2009 19:38:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://justinmaccarthy.org/?p=112</guid>
		<description><![CDATA[I&#8217;m currently working on the  DIGITAL LIBRARY OF LAO MANUSCRIPTS which has been insteresting dealing with Fonts and various localisation issues. More later.
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m currently working on the  <a href="http://laomanuscripts.net">DIGITAL LIBRARY OF LAO MANUSCRIPTS</a> which has been insteresting dealing with Fonts and various localisation issues. More later.</p>
]]></content:encoded>
			<wfw:commentRss>http://justinmaccarthy.org/?feed=rss2&amp;p=112</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting started writting Flex based AIR applications from the command line</title>
		<link>http://justinmaccarthy.org/?p=111</link>
		<comments>http://justinmaccarthy.org/?p=111#comments</comments>
		<pubDate>Mon, 09 Mar 2009 22:35:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://justinmaccarthy.org/?p=111</guid>
		<description><![CDATA[There are couple or gotchas installing the latest  Open Source Flex and AIR SDKs.  Here are instructions to get started
Download the AIR and Flex SDKS
Get Flex from : http://opensource.adobe.com/wiki/display/flexsdk/Flex+SDK
Get Air from http://www.adobe.com/products/air/tools/sdk/
I installed them into /usr/local/flex_sdk and /usr/local/air_sdk
Add their bin directories to your path, in .profile or .bash_profile e.g.
export PATH=/usr/local/mysql/bin:$PATH:~/bin:/usr/local/flex_sdk/bin:/usr/local/air_sdk/bin
Make the compliers executable
sudo chmod +x [...]]]></description>
			<content:encoded><![CDATA[<p>There are couple or gotchas installing the latest  Open Source Flex and AIR SDKs.  Here are instructions to get started</p>
<p>Download the AIR and Flex SDKS</p>
<p>Get Flex from : http://opensource.adobe.com/wiki/display/flexsdk/Flex+SDK</p>
<p>Get Air from http://www.adobe.com/products/air/tools/sdk/</p>
<p>I installed them into /usr/local/flex_sdk and /usr/local/air_sdk</p>
<p>Add their bin directories to your path, in .profile or .bash_profile e.g.</p>
<p>export PATH=/usr/local/mysql/bin:$PATH:~/bin:/usr/local/flex_sdk/bin:/usr/local/air_sdk/bin</p>
<p>Make the compliers executable</p>
<p>sudo chmod +x mxmlc</p>
<p>sudo chmod +x amxmlc</p>
<p>It turns out the lastest version of the compiles scripts are dos terminated lines so you need to do</p>
<p>dos2unix mxmlc</p>
<p>dos2unix amxmlc</p>
<p>You can get dos2unix from macports , sudo port install dos2unix</p>
<p>(bug here :http://bugs.adobe.com/jira/browse/SDK-16699)</p>
<p>Next issue is the samples won&#8217;t compile, you will get an error &#8220;error while loading initial content&#8221;.</p>
<p>You need to update the namespace in your AIR project&#8217;s AppName-app.xml file to reflect the new AIR version 1.5:</p>
<p><code> &lt;application xmlns="http://ns.adobe.com/air/application/1.5"&gt; </code></p>
<p>(from http://blog.sunild.com/2008/12/error-while-loading-initial-content.html)</p>
]]></content:encoded>
			<wfw:commentRss>http://justinmaccarthy.org/?feed=rss2&amp;p=111</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making autotest and growl a snap</title>
		<link>http://justinmaccarthy.org/?p=110</link>
		<comments>http://justinmaccarthy.org/?p=110#comments</comments>
		<pubDate>Sun, 25 Jan 2009 21:57:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://justinmaccarthy.org/?p=110</guid>
		<description><![CDATA[
sudo gem install growl-glue

In .autotest 
require 'growl_glue'
GrowlGlue::Autotest.initialize
Easy
]]></description>
			<content:encoded><![CDATA[<p><code><br />
sudo gem install growl-glue<br />
</code></p>
<p>In .autotest </p>
<p><code>require 'growl_glue'<br />
GrowlGlue::Autotest.initialize</code></p>
<p>Easy</p>
]]></content:encoded>
			<wfw:commentRss>http://justinmaccarthy.org/?feed=rss2&amp;p=110</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JRuby 1.1.4  &amp; getPlatformMBeanServer error on linux</title>
		<link>http://justinmaccarthy.org/?p=109</link>
		<comments>http://justinmaccarthy.org/?p=109#comments</comments>
		<pubDate>Sat, 13 Sep 2008 14:47:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java/J2EE]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://justinmaccarthy.org/?p=109</guid>
		<description><![CDATA[I was getting an error on a new install of JRuby on a Linux
jruby 1.1.4 (ruby 1.8.6 patchlevel 114) (2008-08-28 rev 7570) [i386-java]
Created MBeanServer with ID: -vsnele:fl2bg1bd.0:mandlebrot:1
java.lang.management.ManagementFactory:-1:in `getPlatformMBeanServer&#8217;: java.lang.InternalError: One of the management beans is not compliant.
from org.jruby.management.BeanManager:59:in `register&#8217;
from org.jruby.management.BeanManager:29:in `register&#8217;
from org.jruby.compiler.JITCompiler:68:in `&#60;init&#62;&#8217;
from org.jruby.Ruby:207:in `&#60;init&#62;&#8217;
from org.jruby.Ruby:160:in `newInstance&#8217;
from org.jruby.Main:184:in `run&#8217;
from org.jruby.Main:100:in `run&#8217;
from org.jruby.Main:84:in `main&#8217;
It turned out [...]]]></description>
			<content:encoded><![CDATA[<p>I was getting an error on a new install of JRuby on a Linux</p>
<p>jruby 1.1.4 (ruby 1.8.6 patchlevel 114) (2008-08-28 rev 7570) [i386-java]<br />
Created MBeanServer with ID: -vsnele:fl2bg1bd.0:mandlebrot:1<br />
java.lang.management.ManagementFactory:-1:in `getPlatformMBeanServer&#8217;: java.lang.InternalError: One of the management beans is not compliant.<br />
from org.jruby.management.BeanManager:59:in `register&#8217;<br />
from org.jruby.management.BeanManager:29:in `register&#8217;<br />
from org.jruby.compiler.JITCompiler:68:in `&lt;init&gt;&#8217;<br />
from org.jruby.Ruby:207:in `&lt;init&gt;&#8217;<br />
from org.jruby.Ruby:160:in `newInstance&#8217;<br />
from org.jruby.Main:184:in `run&#8217;<br />
from org.jruby.Main:100:in `run&#8217;<br />
from org.jruby.Main:84:in `main&#8217;</p>
<p>It turned out that remove the following packages solved that problemRemoved the following packages:<br />
java-gcj-compat<br />
java-gcj-compat-headless</p>
]]></content:encoded>
			<wfw:commentRss>http://justinmaccarthy.org/?feed=rss2&amp;p=109</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Apple embraces a little ruby with MobileME</title>
		<link>http://justinmaccarthy.org/?p=108</link>
		<comments>http://justinmaccarthy.org/?p=108#comments</comments>
		<pubDate>Thu, 19 Jun 2008 06:52:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://justinmaccarthy.org/?p=108</guid>
		<description><![CDATA[I&#8217;m sure most of the Apple fan boys here have seen  Apples new improved .net offering, MobileMe.
It turns out that the MobileMe interface is built using an opensource  Ajax/Widget  toolkit called SproutCore.
Lets have a look on how you install SproutCore
sudo gem install sproutcore
Look familiar ?  View Helpers  are RHTML files e.g.
&#60;%= label_view :my_label, :tag =&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m sure most of the Apple fan boys here have seen  Apples new improved .net offering, MobileMe.<br />
It turns out that the MobileMe interface is built using an opensource  Ajax/Widget  toolkit called SproutCore.</p>
<p>Lets have a look on how you install SproutCore</p>
<p>sudo gem install sproutcore</p>
<p>Look familiar ?  View Helpers  are RHTML files e.g.</p>
<p>&lt;%= label_view :my_label, :tag =&gt; &#8216;h1&#8242;, :inner_html =&gt; &#8216;Hello World!&#8217; %&gt;</p>
<p>The ruby stuff is only used in production, in a similiar way that GWT uses Java to generates the HTML and JS runtime files&#8230;.</p>
<p>While SproutCore uses Ruby to generate static HTML and JavaScript files, you are not tied to Ruby or Rails in production.  SproutCore runs in the browser, your production system can use whatever backend you want, as long as it sends JSON to the browser.</p>
]]></content:encoded>
			<wfw:commentRss>http://justinmaccarthy.org/?feed=rss2&amp;p=108</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solution to Textmate slow &#8220;find in project&#8221;</title>
		<link>http://justinmaccarthy.org/?p=107</link>
		<comments>http://justinmaccarthy.org/?p=107#comments</comments>
		<pubDate>Fri, 04 Apr 2008 02:35:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[textmate]]></category>

		<guid isPermaLink="false">http://www.justinmaccarthy.org/?p=13</guid>
		<description><![CDATA[I finally had enough of Textmate&#8217;s slow find in project,  and had a look around. I wish I&#8217;d taken 2 minutes to that before because I found the awesome Grep in Project command for TextMate
by some guy who&#8217;s name I couldn&#8217;t find easily, I know how much he runs and he listens to a lot [...]]]></description>
			<content:encoded><![CDATA[<p>I finally had enough of Textmate&#8217;s slow find in project,  and had a look around. I wish I&#8217;d taken 2 minutes to that before because I found the awesome <a href="http://henrik.nyh.se/2007/06/grep-in-project-command-for-textmate">Grep in Project command for TextMate</a><br />
by some guy who&#8217;s name I couldn&#8217;t find easily, I know how much he runs and he listens to a lot of  Duran Duran, but I can&#8217;t see his name anywhere : -)  Anyway his grep script works great so  go get it .</p>
]]></content:encoded>
			<wfw:commentRss>http://justinmaccarthy.org/?feed=rss2&amp;p=107</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recipes: get (download) your log</title>
		<link>http://justinmaccarthy.org/?p=106</link>
		<comments>http://justinmaccarthy.org/?p=106#comments</comments>
		<pubDate>Mon, 24 Mar 2008 23:19:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[About]]></category>

		<guid isPermaLink="false">http://www.justinmaccarthy.org/?p=12</guid>
		<description><![CDATA[These are a few snippets for getting and viewing your log files
This task will download your production log and put a time stamped version in your local log directory
task :download_log do
TIMESTAMP  = '%Y%m%d%H%M%S'
 get "#{deploy_to}/current/log/production.log",
  "log/production._#{Time.now.strftime(TIMESTAMP)}.log"
end
]]></description>
			<content:encoded><![CDATA[<p>These are a few snippets for getting and viewing your log files</p>
<p>This task will download your production log and put a time stamped version in your local log directory</p>
<p><code>task :download_log do</code></p>
<p><code class="ruby">TIMESTAMP  = <span class="string">'%Y%m%d%H%M%S'</span></code></p>
<p><code> get "#{deploy_to}/current/log/production.log",</code></p>
<p><code>  "log/production.</code><code class="ruby"><span class="string">_#{Time.now.strftime(TIMESTAMP)}</span></code><code>.log"</code></p>
<p>end</p>
]]></content:encoded>
			<wfw:commentRss>http://justinmaccarthy.org/?feed=rss2&amp;p=106</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dealing with user uploaded files between deployments</title>
		<link>http://justinmaccarthy.org/?p=105</link>
		<comments>http://justinmaccarthy.org/?p=105#comments</comments>
		<pubDate>Mon, 24 Mar 2008 18:04:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Capistrano]]></category>

		<guid isPermaLink="false">http://www.justinmaccarthy.org/?p=11</guid>
		<description><![CDATA[If you are writing an application that allows your users to upload files,  you have to work around the fact that their files will be deleted every time you deploy your application.
Usually if you want your file to available they will be uploaded to the public folder.   The solution is to store [...]]]></description>
			<content:encoded><![CDATA[<p>If you are writing an application that allows your users to upload files,  you have to work around the fact that their files will be deleted every time you deploy your application.</p>
<p>Usually if you want your file to available they will be uploaded to the public folder.   The solution is to store those files in the &#8220;shared&#8221; directory.</p>
<p>Here is one example on how to set that up for a Rails app.</p>
<p>Create a directory  called &#8220;uploads&#8221; in your.</p>
<p>When using  attachment_fu or similar,  use a :prefix=&gt;&#8221;/public/uploads/#{tablename}</p>
<p>Add the following tasks to your deploy file</p>
<pre class="textmate-source">desc "link upload directory"</pre>
<pre class="textmate-source"><code><span class="source source_ruby source_ruby_rails">task <span class="constant constant_other constant_other_symbol constant_other_symbol_ruby"><span class="punctuation punctuation_definition punctuation_definition_constant punctuation_definition_constant_ruby">:</span>symlink_uploads</span>, <span class="constant constant_other constant_other_symbol constant_other_symbol_ruby"><span class="punctuation punctuation_definition punctuation_definition_constant punctuation_definition_constant_ruby">:</span>roles</span> =&gt; <span class="constant constant_other constant_other_symbol constant_other_symbol_ruby"><span class="punctuation punctuation_definition punctuation_definition_constant punctuation_definition_constant_ruby">:</span>app</span> <span class="keyword keyword_control keyword_control_ruby keyword_control_ruby_start-block">do
</span>  run <span class="string string_quoted string_quoted_double string_quoted_double_ruby">"ln -nfs /var/www/apps/<span class="source source_ruby source_ruby_embedded source_ruby_embedded_source"><span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">#{</span><span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">application}</span></span>/containers/rails/<span class="source source_ruby source_ruby_embedded source_ruby_embedded_source"><span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">#{</span>application<span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">}</span></span>/shared/system/uploads <span class="source source_ruby source_ruby_embedded source_ruby_embedded_source"><span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">#{</span>release_path<span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">}</span></span>/public/uploads<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_ruby">"</span></span>
<span class="keyword keyword_control keyword_control_ruby">end</span></span></code></pre>
<pre class="textmate-source">end</pre>
<pre class="textmate-source">desc "create upload directory"
<code><span class="source source_ruby source_ruby_rails">task <span class="constant constant_other constant_other_symbol constant_other_symbol_ruby"><span class="punctuation punctuation_definition punctuation_definition_constant punctuation_definition_constant_ruby">:</span></span></span></code><code><span class="source source_ruby source_ruby_rails"><span class="constant constant_other constant_other_symbol constant_other_symbol_ruby">create_uploads_directory</span></span></code><code><span class="source source_ruby source_ruby_rails"><span class="constant constant_other constant_other_symbol constant_other_symbol_ruby"></span>, <span class="constant constant_other constant_other_symbol constant_other_symbol_ruby"><span class="punctuation punctuation_definition punctuation_definition_constant punctuation_definition_constant_ruby">:</span>roles</span> =&gt; <span class="constant constant_other constant_other_symbol constant_other_symbol_ruby"><span class="punctuation punctuation_definition punctuation_definition_constant punctuation_definition_constant_ruby">:</span>app</span> <span class="keyword keyword_control keyword_control_ruby keyword_control_ruby_start-block">do</span></span></code></pre>
<pre class="textmate-source"><code><span class="source source_ruby source_ruby_rails"><span class="keyword keyword_control keyword_control_ruby keyword_control_ruby_start-block">	run "mkdir #{deploy_to}/shared/system/media"
end</span><span class="keyword keyword_control keyword_control_ruby"></span></span></code>
end</pre>
<pre class="textmate-source">Hook them into your deployment</pre>
<pre class="textmate-source">after "deploy","<code><span class="source source_ruby source_ruby_rails"><span class="constant constant_other constant_other_symbol constant_other_symbol_ruby">symlink_uploads</span></span></code>"</pre>
<pre class="textmate-source"></pre>
<pre class="textmate-source">after "deploy:setup","<code><span class="source source_ruby source_ruby_rails"><span class="constant constant_other constant_other_symbol constant_other_symbol_ruby">create_uploads_directory</span></span></code>"</pre>
<pre class="textmate-source"></pre>
<p>Any uploads will now be stored outside the  versioned directories.</p>
]]></content:encoded>
			<wfw:commentRss>http://justinmaccarthy.org/?feed=rss2&amp;p=105</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
