<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>R-squared</title>
	<atom:link href="http://amespinosa.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://amespinosa.wordpress.com</link>
	<description>Allan Espinosa</description>
	<lastBuildDate>Thu, 19 Jan 2012 02:06:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='amespinosa.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>R-squared</title>
		<link>http://amespinosa.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://amespinosa.wordpress.com/osd.xml" title="R-squared" />
	<atom:link rel='hub' href='http://amespinosa.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Building (hackishly) rubygems from CMake-based tarballs</title>
		<link>http://amespinosa.wordpress.com/2012/01/19/building-hackishly-rubygems-from-cmake-based-tarballs/</link>
		<comments>http://amespinosa.wordpress.com/2012/01/19/building-hackishly-rubygems-from-cmake-based-tarballs/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 02:06:12 +0000</pubDate>
		<dc:creator>allan</dc:creator>
				<category><![CDATA[Soft Hacks]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://amespinosa.wordpress.com/?p=276</guid>
		<description><![CDATA[Here is my attempt was making a user-space bundle install of the SimGrid&#8217;s Ruby bindings. I created a gemspec for the source tarball in a hackish way. Basically I just made a system &#8220;cmake .&#8221; call in the extconf.rb file when building the gem extensions. Here&#8217;s the result: $ cat Gemfile source :rubygems gem &#8220;simgrid-ruby&#8221; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amespinosa.wordpress.com&amp;blog=10678498&amp;post=276&amp;subd=amespinosa&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here is my attempt was making a user-space bundle install of the SimGrid&#8217;s Ruby bindings.  I created a gemspec for the source tarball in a hackish way.  Basically I just made a system &#8220;cmake .&#8221; call in the extconf.rb file when building the gem extensions.  Here&#8217;s the result:</p>
<p>$ cat Gemfile<br />
source :rubygems</p>
<p>gem &#8220;simgrid-ruby&#8221;<br />
$ SIMGRID_ROOT=/opt/simgrid-3.6.2 bundle install &#8211;path vendor<br />
&#8230;<br />
&#8230;<br />
make install<br />
[ 66%] Built target SG_ruby<br />
[100%] Built target SG_rubydag<br />
Install the project&#8230;<br />
&#8211; Install configuration: &#8220;&#8221;<br />
CMake Error at cmake_install.cmake:47 (FILE):<br />
 file cannot create directory: /usr/local/ruby/1.9.1/x86_64-linux.  Maybe<br />
 need administrative privileges.</p>
<p>make: *** [install] Error 1</p>
<p>-edit Gemfile<br />
$ cat Gemfile<br />
source :rubygems</p>
<p>gem &#8220;simgrid-ruby&#8221;, :path =&gt; &#8220;~/tmp/simgrid-ruby&#8221; # where I have<br />
simgrid-ruby.git cloned<br />
$ SIMGRID_ROOT=/opt/simgrid-3.6.2 bundle install<br />
/home/aespinosa/LocalDisk/opt/ruby/lib/ruby/1.9.1/yaml.rb:56:in `&#8217;:<br />
Using simgrid-ruby (0.0.4890e3f) from source at ~/tmp/simgrid-ruby<br />
Using bundler (1.0.21)<br />
Updating .gem files in vendor/cache<br />
 * simgrid-ruby at `~/tmp/simgrid-ruby` will not be cached.<br />
Your bundle is complete! It was installed into ./vendor<br />
$ cd vendor/ruby/1.9.1/gems/simgrid-ruby-0.0.4890e3f/examples/<br />
$ bundle exec ruby MasterSlave.rb<br />
Tremblay:Master:(1) 0.000000] [ruby/INFO] args[0]=20<br />
[Tremblay:Master:(1) 0.000000] [ruby/INFO] args[1]=50000000<br />
[Tremblay:Master:(1) 0.000000] [ruby/INFO] args[2]=1000000<br />
[Tremblay:Master:(1) 0.000000] [ruby/INFO] args[3]=4<br />
[Tremblay:Master:(1) 0.000000] [ruby/INFO] Master Sending Task_0 to<br />
slave 0 with Compute Size 50000000.0<br />
[Tremblay:Master:(1) 0.215872] [ruby/INFO] Master Sending Task_1 to<br />
slave 1 with Compute Size 50000000.0<br />
[Tremblay:Master:(1) 0.381834] [ruby/INFO] Master Sending Task_2 to<br />
slave 2 with Compute Size 50000000.0<br />
&#8230;<br />
&#8230;<br />
[Bourassa:Slave:(2) 6.234851] [ruby/INFO] Slave &#8216;slave 0&#8242; done<br />
executing task Task_16.<br />
[Fafard:Slave:(4) 6.243210] [ruby/INFO] Slave &#8216;slave 2&#8242; done executing<br />
task Task_18.<br />
[Ginette:Slave:(5) 6.759426] [ruby/INFO] Slave &#8216;slave 3&#8242; done<br />
executing task Task_19.<br />
[Tremblay:Master:(1) 6.772657] [ruby/INFO] Master : Everything&#8217;s Done<br />
Simulation time : 6.77266<br />
$</p>
<p>Sort of works!  Basically since rubygems installed the entire manifest (I placed<br />
everything in the tarball) on the gem directory, the lib/*.so and lib/*.rb files<br />
somehow fall in place.<br />
Problems arise in the build when the gem installer cannot replace the<br />
RUBYARCHDIR string in the Makefile to install it in isolation<br />
(https://github.com/rubygems/rubygems/blob/master/lib/rubygems/ext/builder.rb)</p>
<p>I made a fork of a repository with the gemspec package in<br />
https://github.com/aespinosa/simgrid-ruby .  For now this<br />
hackish-setup satisfies my needs of a user-space installation of<br />
simgrid-ruby bindings.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amespinosa.wordpress.com/276/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amespinosa.wordpress.com/276/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amespinosa.wordpress.com/276/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amespinosa.wordpress.com/276/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amespinosa.wordpress.com/276/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amespinosa.wordpress.com/276/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amespinosa.wordpress.com/276/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amespinosa.wordpress.com/276/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amespinosa.wordpress.com/276/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amespinosa.wordpress.com/276/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amespinosa.wordpress.com/276/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amespinosa.wordpress.com/276/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amespinosa.wordpress.com/276/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amespinosa.wordpress.com/276/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amespinosa.wordpress.com&amp;blog=10678498&amp;post=276&amp;subd=amespinosa&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amespinosa.wordpress.com/2012/01/19/building-hackishly-rubygems-from-cmake-based-tarballs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bfe73b02eb09d9ddd08ea5aed55134e8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Allan</media:title>
		</media:content>
	</item>
		<item>
		<title>ADEM on github</title>
		<link>http://amespinosa.wordpress.com/2010/05/03/adem-on-github/</link>
		<comments>http://amespinosa.wordpress.com/2010/05/03/adem-on-github/#comments</comments>
		<pubDate>Mon, 03 May 2010 20:18:18 +0000</pubDate>
		<dc:creator>allan</dc:creator>
				<category><![CDATA[Soft Hacks]]></category>
		<category><![CDATA[grid computing]]></category>

		<guid isPermaLink="false">http://amespinosa.wordpress.com/?p=273</guid>
		<description><![CDATA[For my first Ruby project, I reimplemented ADEM from scratch. ADEM is tool for automatically installing applications on the Open Science Grid via pacman. Here is a glimpse of the interface. ADEM is a tool for deploying and managing software on the Open Science Grid. Usage: adem command [options] Examples: adem config --display adem sites [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amespinosa.wordpress.com&amp;blog=10678498&amp;post=273&amp;subd=amespinosa&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For my first Ruby project, I reimplemented ADEM from scratch.  ADEM is tool for automatically installing applications on the Open Science Grid via pacman.  Here is a glimpse of the interface.</p>
<pre>
<code>
ADEM is a tool for deploying and managing software on the Open Science Grid.

  Usage:
    adem command [options]

  Examples:
    adem config --display
    adem sites --update
    adem app --avail

  Further help:
    adem config -h/--help        Configure ADEM
    adem sites -h/--help         Manipulate the site list
    adem app -h/--help           Application installation
    adem help                    This help message
</code>
</pre>
<p>The original subversion repository is found in <a href="https://svn.ci.uchicago.edu/svn/vdl2/SwiftApps/adem-osg">https://svn.ci.uchicago.edu/svn/vdl2/SwiftApps/adem-osg</a>.  A Github repository is also mirrored in <a href="http://github.com/aespinosa/adem">git://github.com/aespinosa/adem.git</a></p>
<p>Happy grid computing!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amespinosa.wordpress.com/273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amespinosa.wordpress.com/273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amespinosa.wordpress.com/273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amespinosa.wordpress.com/273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amespinosa.wordpress.com/273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amespinosa.wordpress.com/273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amespinosa.wordpress.com/273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amespinosa.wordpress.com/273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amespinosa.wordpress.com/273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amespinosa.wordpress.com/273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amespinosa.wordpress.com/273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amespinosa.wordpress.com/273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amespinosa.wordpress.com/273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amespinosa.wordpress.com/273/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amespinosa.wordpress.com&amp;blog=10678498&amp;post=273&amp;subd=amespinosa&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amespinosa.wordpress.com/2010/05/03/adem-on-github/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bfe73b02eb09d9ddd08ea5aed55134e8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Allan</media:title>
		</media:content>
	</item>
		<item>
		<title>Correspondence on presidentiable&#8217;s science agenda</title>
		<link>http://amespinosa.wordpress.com/2010/04/26/correspondence-on-presidentiables-science-agenda/</link>
		<comments>http://amespinosa.wordpress.com/2010/04/26/correspondence-on-presidentiables-science-agenda/#comments</comments>
		<pubDate>Mon, 26 Apr 2010 04:03:16 +0000</pubDate>
		<dc:creator>allan</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[elections]]></category>

		<guid isPermaLink="false">http://amespinosa.wordpress.com/?p=269</guid>
		<description><![CDATA[A few days ago, I sent facebook messages to all of the presidential candidates. It was hard to distinguish between fan-generated accounts and the real ones. Amazed by my own facebook stalking skills, I got replies from Dick Gordon and Eddie Villanueva. Here was my message to all of them: hi, I&#8217;m deciding on my [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amespinosa.wordpress.com&amp;blog=10678498&amp;post=269&amp;subd=amespinosa&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A few days ago, I sent facebook messages to all of the presidential candidates.  It was hard to distinguish between fan-generated accounts and the real ones.  Amazed by my own facebook stalking skills, I got replies from Dick Gordon and Eddie Villanueva.  Here was my message to all of them:</p>
<blockquote><p>
hi,</p>
<p>I&#8217;m deciding on my ballot as an absentee voter. as a scientist, please point me to pages/documents about your science &amp; innovation agenda. I sent this message to all the candidates&#8217; facebook pages.</p>
<p>also, please make a response aside from &#8220;increase the R &amp; D&#8221; budget. it&#8217;s like saying &#8216;world peace&#8217; in a beauty pageant.</p>
<p>thank you
</p></blockquote>
<p>Response from Richard Gordon.  Most of the initiatives he mentioned are highly googlable press articles.  This guy know his technology stuff:</p>
<blockquote><p>
Allan, kindly look up track record on the net. My Subic cybercity program as well as GIS and GPS mapping implemented in the 90&#8242;s. Check also Project 143 and the geo-hazard mapping initiatives with the Red Cross to address disasters and calamities. V-12 program for Filipinos abroad to help promote tourism with telcos using sms is another initiative. Also go to www. senate.gov.ph for transcript of debates re my position on agricultural modernization, and ST and IT development. Thanks.
</p></blockquote>
<p>Response from Eddie Villanueva.  I think the reply was referring to a section <a href="http://bangonpilipinasplatform.net/vi-educate-the-people.html">his platform page</a>.  Some of the party&#8217;s stand reitarated the current government&#8217;s policy such as mother tongue-based education.  Also, I&#8217;m still waiting for a reply on the email address he gave in the response:</p>
<blockquote><p>
hello! please email your concern to bagongpilipinas@gmail.com<br />
you may also want to visit http://broeddie.ph for the information that you might need.</p>
<p>Bangon Pilipinas!
</p></blockquote>
<p>I will update this page as soon as I get a response from the other candidates, provided that it is their real facebook account that I corresponded to.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amespinosa.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amespinosa.wordpress.com/269/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amespinosa.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amespinosa.wordpress.com/269/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amespinosa.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amespinosa.wordpress.com/269/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amespinosa.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amespinosa.wordpress.com/269/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amespinosa.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amespinosa.wordpress.com/269/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amespinosa.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amespinosa.wordpress.com/269/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amespinosa.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amespinosa.wordpress.com/269/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amespinosa.wordpress.com&amp;blog=10678498&amp;post=269&amp;subd=amespinosa&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amespinosa.wordpress.com/2010/04/26/correspondence-on-presidentiables-science-agenda/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bfe73b02eb09d9ddd08ea5aed55134e8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Allan</media:title>
		</media:content>
	</item>
		<item>
		<title>SwiftScript Vim syntax file</title>
		<link>http://amespinosa.wordpress.com/2010/04/16/swiftscript-vim-syntax-file/</link>
		<comments>http://amespinosa.wordpress.com/2010/04/16/swiftscript-vim-syntax-file/#comments</comments>
		<pubDate>Fri, 16 Apr 2010 01:05:48 +0000</pubDate>
		<dc:creator>allan</dc:creator>
				<category><![CDATA[Soft Hacks]]></category>
		<category><![CDATA[grid computing]]></category>
		<category><![CDATA[productivity]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://amespinosa.wordpress.com/?p=231</guid>
		<description><![CDATA[One weekend I was reading an article howto made a Vim syntax file. In application I decided to make one for the Swift workflow system. Most of the script contains simple word matches for some Swift keywords. Then I copied the matching rules for comments from the C syntax files in the standard Vim distribution. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amespinosa.wordpress.com&amp;blog=10678498&amp;post=231&amp;subd=amespinosa&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One weekend I was reading an article howto made a Vim syntax file.  In application I decided to make one for the <a href="http://www.ci.uchicago.edu/swift">Swift</a> workflow system.  Most of the script contains simple word matches for some Swift keywords.   Then I copied the matching rules for comments from the C syntax files in the standard Vim distribution.  For a preview, checkout the screenshot below which uses the <a href="http://www.vim.org/scripts/script.php?script_id=1243">desert256.vim</a> colorscheme in a gnome-terminal:</p>
<div class="wp-caption alignnone" style="width: 458px"><a href="http://www.flickr.com/photos/yecartes/4519619784/"><img title="a Swift workflow syntax highlighted" src="http://farm5.static.flickr.com/4010/4519619784_0a0ea87e46.jpg" alt="oops_swift by yecartes, on Flickr" width="448" height="500" /></a><p class="wp-caption-text">Fig. a Swift workflow syntax highlighted</p></div>
<p>The syntax file can be downloaded from my graduate student <a href="http://www.ci.uchicago.edu/~aespinosa/patches/swift.vim">code-shanty page</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amespinosa.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amespinosa.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amespinosa.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amespinosa.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amespinosa.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amespinosa.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amespinosa.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amespinosa.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amespinosa.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amespinosa.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amespinosa.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amespinosa.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amespinosa.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amespinosa.wordpress.com/231/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amespinosa.wordpress.com&amp;blog=10678498&amp;post=231&amp;subd=amespinosa&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amespinosa.wordpress.com/2010/04/16/swiftscript-vim-syntax-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bfe73b02eb09d9ddd08ea5aed55134e8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Allan</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4010/4519619784_0a0ea87e46.jpg" medium="image">
			<media:title type="html">a Swift workflow syntax highlighted</media:title>
		</media:content>
	</item>
		<item>
		<title>memcache-ing everything in an ActiveRecord model.</title>
		<link>http://amespinosa.wordpress.com/2010/04/14/memcache-ing-everything-in-an-activerecord-model/</link>
		<comments>http://amespinosa.wordpress.com/2010/04/14/memcache-ing-everything-in-an-activerecord-model/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 01:04:18 +0000</pubDate>
		<dc:creator>allan</dc:creator>
				<category><![CDATA[Soft Hacks]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://amespinosa.wordpress.com/?p=226</guid>
		<description><![CDATA[I was writing a script that was interactive with a database. The script was being invoked 400 times by a java program. It wasn&#8217;t too happy forking too many processes at a time. First I thought that mysql can only handle so many remote connections. Here is my attempt to reduce database load to almost [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amespinosa.wordpress.com&amp;blog=10678498&amp;post=226&amp;subd=amespinosa&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was writing a script that was interactive with a database.  The script was being invoked 400 times by a java program.  It wasn&#8217;t too happy forking too many processes at a time.  First I thought that mysql can only handle so many remote connections.  Here is my attempt to reduce database load to almost 0 percent.</p>
<p><a href="http://github.com/defunkt/cache_fu">cache_fu</a> was too dependent on being installed in Rails environment.  Commenting out the code which referred to Rails variables made the ruby interpreter not complain.  But according to the memcached server logs, nothing was being cached at all!  I ended up using the low-level access API <a href="http://blog.evanweaver.com/files/doc/fauna/memcached/files/README.html">fauna</a>.</p>
<p>Wrapping all the ActiveRecord::Base.find&#8230;() operations in the fauna-documented recipe, all of the SELECT * statements are now being cached.  But the problem that remains is that the models still make &#8216;SHOW FIELDS..&#8217; queries to the database whenever the object is first invoked.  And since the script is being invoked 400 times, only bandwidth and round trip times were saved by the caching effort.</p>
<p>I poked through the metaprogramming examples in the pick-axe book and resulted to overriding my models like this:</p>
<p><code><pre class="brush: ruby;">
require 'memcached'
require 'digest/md5'
require 'active_record'

class Variation &lt; ActiveRecord::Base
  def self.digest
    Digest::MD5.hexdigest(self.to_s).to_s
  end

  def self.columns=(cached_columns)
    @cached_columns= cached_columns
    def self.columns
      @cached_columns
    end
    @cached_columns
  end
end

cache = Memcached.new
begin
  Variation.columns = cache.get(Variation.digest)
rescue Memcached::NotFound
  Variation.columns
  cache.set(Variation.digest, Variation.columns)
end
cache = nil
</pre></code></p>
<p>Now everything is cached!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amespinosa.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amespinosa.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amespinosa.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amespinosa.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amespinosa.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amespinosa.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amespinosa.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amespinosa.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amespinosa.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amespinosa.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amespinosa.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amespinosa.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amespinosa.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amespinosa.wordpress.com/226/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amespinosa.wordpress.com&amp;blog=10678498&amp;post=226&amp;subd=amespinosa&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amespinosa.wordpress.com/2010/04/14/memcache-ing-everything-in-an-activerecord-model/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bfe73b02eb09d9ddd08ea5aed55134e8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Allan</media:title>
		</media:content>
	</item>
		<item>
		<title>Pasting Excel Charts in Word via Crossover Linux</title>
		<link>http://amespinosa.wordpress.com/2010/01/06/pasting-excel-charts-in-word-via-crossover-linux/</link>
		<comments>http://amespinosa.wordpress.com/2010/01/06/pasting-excel-charts-in-word-via-crossover-linux/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 01:42:44 +0000</pubDate>
		<dc:creator>allan</dc:creator>
				<category><![CDATA[Soft Hacks]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[productivity]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://amespinosa.wordpress.com/?p=224</guid>
		<description><![CDATA[Pasting a chart from MS Excel 2007 to Word 2007 will yield a To insert a chart, you must first close any open dialog boxes or cancel editing mode in Microsoft Office Excel error.  This bug is found in Crossover Linux Pro v8.0.0.  I assume that this will also occur in publicly available versions of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amespinosa.wordpress.com&amp;blog=10678498&amp;post=224&amp;subd=amespinosa&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Pasting a chart from MS Excel 2007 to Word 2007 will yield a <q>To insert a chart, you must first close any open dialog boxes or cancel editing mode in Microsoft Office Excel</q> error.  This bug is found in <a href="http://www.codeweavers.com/products/cxlinux/">Crossover Linux Pro v8.0.0</a>.  I assume that this will also occur in publicly available versions of <a href="http://www.winehq.org/">Wine</a>.</p>
<p>An alternative solution aside from booting to Windows is to use the <em>Paste Special</em> feature.  Paste it as a <em>Picture (Enhanced Metafile)</em>.  This will preserve the vector information of the chart so zooming in and out of the document object wont&#8217; be a problem.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amespinosa.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amespinosa.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amespinosa.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amespinosa.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amespinosa.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amespinosa.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amespinosa.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amespinosa.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amespinosa.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amespinosa.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amespinosa.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amespinosa.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amespinosa.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amespinosa.wordpress.com/224/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amespinosa.wordpress.com&amp;blog=10678498&amp;post=224&amp;subd=amespinosa&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amespinosa.wordpress.com/2010/01/06/pasting-excel-charts-in-word-via-crossover-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bfe73b02eb09d9ddd08ea5aed55134e8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Allan</media:title>
		</media:content>
	</item>
		<item>
		<title>FASTA splitting with BioRuby</title>
		<link>http://amespinosa.wordpress.com/2009/12/09/fasta-splitting-with-bioruby/</link>
		<comments>http://amespinosa.wordpress.com/2009/12/09/fasta-splitting-with-bioruby/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 22:33:58 +0000</pubDate>
		<dc:creator>allan</dc:creator>
				<category><![CDATA[Soft Hacks]]></category>
		<category><![CDATA[bioinformatics]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[science]]></category>

		<guid isPermaLink="false">http://amespinosa.wordpress.com/?p=220</guid>
		<description><![CDATA[In reference to my previous post, here&#8217;s the splitter using BioRuby.  Note that I also changed the outer loop to one file per iteration instead of some crazy rules of when to create the file.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amespinosa.wordpress.com&amp;blog=10678498&amp;post=220&amp;subd=amespinosa&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In reference to my <a href="http://amespinosa.wordpress.com/2009/10/08/splitting-bioinformatics-fasta-files/">previous post</a>, here&#8217;s the splitter using BioRuby.  Note that I also changed the outer loop to one file per iteration instead of some crazy rules of when to create the file.</p>
<p><code><pre class="brush: ruby;">
#!/usr/bin/env ruby
#
# Script: dumpseq.rb [file] [N] [prefix]
# Description: Splits a fasta file evenl across N files.  dumps files in the
#              [prefix]  directory
require 'bio'
require 'fileutils'

include Bio


seqs =  FlatFile.open(ARGV[0])
ncpus = ARGV[1].to_i
prefix = ARGV[2]

# Remove and hardwire n_seqs if you know beforehand the number of sequences in
# a file.  Saves readtime
n_seqs = 0
seqs.each do |seq|
 n_seqs += 1
end
seqs.rewind

overflow = n_seqs % ncpus
split_size = n_seqs / ncpus

ncpus.times do |i|
  filename = sprintf &quot;%s/D%07d/seq%07d.fasta&quot;, prefix, i, i
  FileUtils.mkdir_p File.dirname(filename)
  dump = File.new(filename, &quot;w&quot;)
  split_size.times do |j|
    dump &lt;&lt; seqs.next_entry.to_s
  end
  if i &lt; overflow 
    dump &lt;&lt; seqs.next_entry.to_s
  end
  dump.close
end
</pre></code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amespinosa.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amespinosa.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amespinosa.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amespinosa.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amespinosa.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amespinosa.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amespinosa.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amespinosa.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amespinosa.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amespinosa.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amespinosa.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amespinosa.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amespinosa.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amespinosa.wordpress.com/220/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amespinosa.wordpress.com&amp;blog=10678498&amp;post=220&amp;subd=amespinosa&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amespinosa.wordpress.com/2009/12/09/fasta-splitting-with-bioruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bfe73b02eb09d9ddd08ea5aed55134e8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Allan</media:title>
		</media:content>
	</item>
		<item>
		<title>Splitting bioinformatics FASTA files</title>
		<link>http://amespinosa.wordpress.com/2009/10/08/splitting-bioinformatics-fasta-files/</link>
		<comments>http://amespinosa.wordpress.com/2009/10/08/splitting-bioinformatics-fasta-files/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 00:44:49 +0000</pubDate>
		<dc:creator>allan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bioinformatics]]></category>
		<category><![CDATA[science]]></category>

		<guid isPermaLink="false">http://allan.88-mph.net/blog/?p=206</guid>
		<description><![CDATA[I keep forgetting where my scripts were in my home directories. Below is my ruby script to split a large FASTA [1] sequence into N sequences per file: Its pretty hackish-looking. But then I found out that BioRuby [2] wrappers for parsing FASTA files. [1] http://en.wikipedia.org/wiki/Fasta [2] http://www.bioruby.org<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amespinosa.wordpress.com&amp;blog=10678498&amp;post=206&amp;subd=amespinosa&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I keep forgetting where my scripts were in my home directories.  Below is my ruby script to split a large FASTA [1] sequence into N sequences per file:</p>
<p><pre class="brush: ruby;">
#!/usr/bin/env ruby
#
# Script: dumpseq.rb
# Description: Parses the a BLAST Fasta file and dumps each sequence to a 
#              file.
# Usage: dumpseq.rb [fasta_file]

require 'fileutils'


fasta_db  = File.new(ARGV[0])

sno = 0
d = 0

file = nil

while true
  x = fasta_db.readline(&quot;\n&gt;&quot;).sub(/&gt;$/, &quot;&quot;)
  x =~ /&gt;(.*)\n/
  if sno % 2 == 0 # 2 seqs per query
    file.close if file != nil
    dir = sprintf(&quot;D%04d000&quot;, d / 1000)
    FileUtils.mkdir_p dir
    # short filenames
    fname = sprintf &quot;SEQ%07d.fasta&quot;, d
    d += 1
    file = File.new(&quot;#{dir}/#{fname}&quot;,&quot;w&quot;)
  end
  file &lt;&lt; x
  sno += 1
  fasta_db.ungetc ?&gt;
end
</pre></p>
<p>Its pretty hackish-looking. But then I found out that BioRuby [2] wrappers for parsing FASTA files.</p>
<p>[1] <a href="http://en.wikipedia.org/wiki/Fasta">http://en.wikipedia.org/wiki/Fasta</a><br />
[2] <a href="http://www.bioruby.org">http://www.bioruby.org</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amespinosa.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amespinosa.wordpress.com/206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amespinosa.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amespinosa.wordpress.com/206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amespinosa.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amespinosa.wordpress.com/206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amespinosa.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amespinosa.wordpress.com/206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amespinosa.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amespinosa.wordpress.com/206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amespinosa.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amespinosa.wordpress.com/206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amespinosa.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amespinosa.wordpress.com/206/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amespinosa.wordpress.com&amp;blog=10678498&amp;post=206&amp;subd=amespinosa&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amespinosa.wordpress.com/2009/10/08/splitting-bioinformatics-fasta-files/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bfe73b02eb09d9ddd08ea5aed55134e8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Allan</media:title>
		</media:content>
	</item>
		<item>
		<title>Why do research in the Philippines?</title>
		<link>http://amespinosa.wordpress.com/2009/03/07/why-do-research-in-the-philippines/</link>
		<comments>http://amespinosa.wordpress.com/2009/03/07/why-do-research-in-the-philippines/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 02:01:30 +0000</pubDate>
		<dc:creator>allan</dc:creator>
				<category><![CDATA[Theoretical Hacks]]></category>
		<category><![CDATA[ateneo]]></category>
		<category><![CDATA[grid computing]]></category>

		<guid isPermaLink="false">http://allan.88-mph.net/blog/?p=199</guid>
		<description><![CDATA[Because installing grid computing middleware can get you to this: 7th PANDA Grid Workshop, Bohol, Philippines, May 4 &#8211; 8, 2009 organised by Ateneo de Manila University Sponsored also by EPSRC, IoP, PPARC and the Royal Society of Edinburgh The aim of the workshop is to bring together grid administrators and software developers in an [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amespinosa.wordpress.com&amp;blog=10678498&amp;post=199&amp;subd=amespinosa&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Because installing grid computing middleware can get you to this:</p>
<blockquote>
<table style="height:80px;" border="0" cellspacing="0" cellpadding="0" width="426">
<tbody>
<tr valign="top">
<td colspan="2" align="center"><strong> 7<sup>th</sup> PANDA Grid Workshop, Bohol, Philippines, May 4 &#8211; 8, 2009<br />
organised by<br />
Ateneo de Manila University<br />
Sponsored also by <a href="http://www.epsrc.ac.uk/">EPSRC</a>, <a href="http://www.iop.org">IoP</a>, <a href="http://www.pparc.ac.uk">PPARC</a> and <a href="http://www.ma.hw.ac.uk/RSE/">the Royal Society of Edinburgh</a></strong></td>
</tr>
<tr valign="top">
<td width="50%" align="left">The aim of the workshop is to bring together grid administrators and  software developers in an informal setting, involving open  discussions. The focus will include grid maintenance and monitoring and  data production with PandaRoot.</p>
<p><strong>Organising committee:</strong></p>
<ul> Rafael P. Saldana (Ateneo)<br />
Kilian Schwarz (GSI)<br />
Dan Protopopescu (Glasgow)</ul>
<p><img src="http://nuclear.gla.ac.uk/grid-workshop/images/panda-grid-logo2.gif" border="0" alt="" align="center" /></td>
<td><strong>Contact person:</strong></p>
<ul><a href="mailto:protopop@physics.gla.ac.uk">Dr. Dan Protopopescu</a>,<br />
University of Glasgow<br />
Glasgow G12 8QQ<br />
Scotland, UK<br />
Tel: +44-141-330-55321</ul>
<p><strong>Address:</strong></p>
<ul> Holy Name University,<br />
Lesage and Gallares Streets,<br />
6300 Tagbilaran City,<br />
Bohol, Philippines</ul>
</td>
</tr>
</tbody>
</table>
</blockquote>
<p>Let&#8217;s look at the itinerary:</p>
<p><strong>Tagbilaran City (May</strong> 3<strong>, 4, 5)</strong></p>
<p>Metro Centre Hotel and Convention Center<br />
Pres. Carlos P. Garcia Avenue<br />
Tagbilaran City, Bohol<br />
Philippines, 6300<br />
Website: <a href="http://www.metrocentrehotel.com/">www.metrocentrehotel.com</a></p>
<p><strong>Panglao Island (May 6, 7, 8</strong>, 9, 10<strong>)</strong></p>
<p>Bohol Beach Club<br />
Bo. Bolod, Panglao Island, Bohol 6340<br />
Website: <a href="http://www.boholbeachclub.com.ph/">www.boholbeachclub.com.ph</a></p>
<p>Shet, gusto kong umuwi!!!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amespinosa.wordpress.com/199/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amespinosa.wordpress.com/199/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amespinosa.wordpress.com/199/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amespinosa.wordpress.com/199/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amespinosa.wordpress.com/199/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amespinosa.wordpress.com/199/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amespinosa.wordpress.com/199/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amespinosa.wordpress.com/199/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amespinosa.wordpress.com/199/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amespinosa.wordpress.com/199/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amespinosa.wordpress.com/199/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amespinosa.wordpress.com/199/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amespinosa.wordpress.com/199/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amespinosa.wordpress.com/199/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amespinosa.wordpress.com&amp;blog=10678498&amp;post=199&amp;subd=amespinosa&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amespinosa.wordpress.com/2009/03/07/why-do-research-in-the-philippines/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bfe73b02eb09d9ddd08ea5aed55134e8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Allan</media:title>
		</media:content>

		<media:content url="http://nuclear.gla.ac.uk/grid-workshop/images/panda-grid-logo2.gif" medium="image" />
	</item>
		<item>
		<title>Adding git-svn support from source</title>
		<link>http://amespinosa.wordpress.com/2009/01/25/adding-git-svn-support-from-source/</link>
		<comments>http://amespinosa.wordpress.com/2009/01/25/adding-git-svn-support-from-source/#comments</comments>
		<pubDate>Sun, 25 Jan 2009 16:17:52 +0000</pubDate>
		<dc:creator>allan</dc:creator>
				<category><![CDATA[Theoretical Hacks]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://allan.88-mph.net/blog/?p=193</guid>
		<description><![CDATA[Having workstations where you don&#8217;t have root access either means contacting support for installation or building your own software from source to get the latest version. I started using git for code produced in my work. The build was successful with a simple &#8220;./configure; make ; make install&#8221; series of steps except for supporting access [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amespinosa.wordpress.com&amp;blog=10678498&amp;post=193&amp;subd=amespinosa&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Having workstations where you don&#8217;t have root access either means contacting support for installation or building your own software from source to get the latest version.</p>
<p>I started using <a href="http://git-scm.org">git</a> for code produced in my work. The build was successful with a simple &#8220;./configure; make ; make install&#8221; series of steps except for supporting access to subversion repositories. It was looking for the perl module <em>SVN::Core</em> to be able to function successfully. Googling about it will land you to the <a href="http://search.cpan.org/~mschwern/Alien-SVN-1.4.6.0/lib/Alien/SVN.pm"><em>Alien::SVN</em> CPAN module page</a>. Its dependencies can be installed with the standard &#8220;install Module::Name&#8221; invocation in the CPAN shell. But the main package does not properly install in this environment. It is probably because of the tarball not containing the standard <em>Makefile.PL</em>. It has <em>Build.PL</em> instead. This script generates the Build that compiles the subversion library and its bindings. Then it generates a <em>Makefile</em> from <em>Makefile.PL</em> in the <em>src/subversion/subversion/bindings/swig/perl/native </em>directory. Below is the output of the script:</p>
<p><pre class="brush: plain; light: true;">
[Alien-SVN-1.4.6.0]$ ./Build
Running make
Running make swig-pl-lib
make: Nothing to be done for `swig-pl-lib'.
Running /usr/bin/perl Makefile.PL INSTALLDIRS=site
Writing Makefile for SVN::_Core
Writing Makefile.client for SVN::_Client
Writing Makefile.delta for SVN::_Delta
Writing Makefile.fs for SVN::_Fs
Writing Makefile.ra for SVN::_Ra
Writing Makefile.repos for SVN::_Repos
Writing Makefile.wc for SVN::_Wc
Running make
gcc -c  -I$HOME/local/include/apr-0
...
</pre></p>
<p>The command <em>/usr/bin/perl Makefile.PL INSTALLDIRS=site</em> generates a build environment to install in<em> /usr</em>. This is not favorable for installation in userspace since you do not have permission to write on that directory. So this command will be rerun /<em>usr/bin/perl Makefile.PL PREFIX=$USERDIR</em>, where <em>$USERDIR</em> is the destination directory you want to.</p>
<p>Now you can successfully clone subversion repositories!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amespinosa.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amespinosa.wordpress.com/193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amespinosa.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amespinosa.wordpress.com/193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amespinosa.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amespinosa.wordpress.com/193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amespinosa.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amespinosa.wordpress.com/193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amespinosa.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amespinosa.wordpress.com/193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amespinosa.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amespinosa.wordpress.com/193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amespinosa.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amespinosa.wordpress.com/193/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amespinosa.wordpress.com&amp;blog=10678498&amp;post=193&amp;subd=amespinosa&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amespinosa.wordpress.com/2009/01/25/adding-git-svn-support-from-source/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bfe73b02eb09d9ddd08ea5aed55134e8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Allan</media:title>
		</media:content>
	</item>
	</channel>
</rss>
