<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
	<title>Ophion.org </title>
	<description>[ clever foo ]</description>
	<link>http://ophion.org</link>
	<managingEditor>raf@ophion.org (Rafael Ferreira)</managingEditor>
	<copyright>2008 - Rafael Ferreira</copyright>
	<pubDate>Sat,  2 Aug 2008 02:25:19 -0400</pubDate>
	<generator>JAWS 0.7.4</generator>
	<item>
		<category>Politics</category>
		<title><![CDATA[ Douchebag move of the week ]]></title>
		<description><![CDATA[ 	<p>Always ingenious, John Stewart delivers one of the best reviews of what went on this week with  McCain's campaign reaching for new lows with their attack adds aimed at painting a picture of an "elitist Obama" </p>
	<p><center>
<embed FlashVars='videoId=178207' src='http://www.thedailyshow.com/sitewide/video_player/view/default/swf.jhtml' quality='high' bgcolor='#cccccc' width='332' height='316' name='comedy_central_player' align='middle' allowScriptAccess='always' allownetworking='external' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed>
</center></p>
	<p>Update: Priceless comment from reddit:</p>
	<p><a href="http://www.reddit.com/comments/6uis9/jon_stewart_mccains_celebrity_attack_add_is_the/c04wkkx">http://www.reddit.com/comments/6uis9/jon_stewart_mccains_celebrity_attack_add_is_the/c04wkkx</a></p>
 ]]></description>
		<link>http://ophion.org/index.php/blog/show/Douchebag-move-of-the-week-.html</link>
		<author>raf@ophion.org (Rafael Ferreira)</author>
		<guid>http://ophion.org/index.php/blog/show/Douchebag-move-of-the-week-.html</guid>
		<pubDate>Sat,  2 Aug 2008 02:25:19 -0400</pubDate>
	</item>
	<item>
		<category>Mono</category>
		<title><![CDATA[ Mono OSCON BOF? ]]></title>
		<description><![CDATA[ 	<p>Does anyone know of such strange, yet delightful, gathering? I would like to see how things are going in mono land... 
</p>
 ]]></description>
		<link>http://ophion.org/index.php/blog/show/Mono-OSCON-BOF-.html</link>
		<author>raf@ophion.org (Rafael Ferreira)</author>
		<guid>http://ophion.org/index.php/blog/show/Mono-OSCON-BOF-.html</guid>
		<pubDate>Wed, 23 Jul 2008 16:13:02 -0400</pubDate>
	</item>
	<item>
		<category>Politics</category>
		<title><![CDATA[ Awesome reddit quote of the day ]]></title>
		<description><![CDATA[ 	<h2>"Flip-flops are only worn by girls and gay guys. On John McCain it's just beach wear."</h2>
	<p>Original here: <a href="http://reddit.com/info/6kas2/comments/">http://reddit.com/info/6kas2/comments/</a></p>
 ]]></description>
		<link>http://ophion.org/index.php/blog/show/Awesome-reddit-quote-of-the-day-.html</link>
		<author>raf@ophion.org (Rafael Ferreira)</author>
		<guid>http://ophion.org/index.php/blog/show/Awesome-reddit-quote-of-the-day-.html</guid>
		<pubDate>Thu, 22 May 2008 02:23:16 -0400</pubDate>
	</item>
	<item>
		<category>General</category>
		<title><![CDATA[ Vista as an instrument of meditation... ]]></title>
		<description><![CDATA[ 	<p>I'm typing this as I wait for my dad's brand new Sony VAIO to run Vista's "checking your hardware" utility; it has been doing this for about 8 minutes now. Before this lovely state, I had to wait while it ran "windows gets ready to run for the first time" for about 20 minutes. </p>
	<p>wait.. it just rebooted, looks like it is done. </p>
	<p>So in total, it took me 5 minutes to unpackage the VAIO plug it in and turn it on, and about 28 minutes to run Vista for the first time. </p>
	<p>Two things I don't understand:</p>
	<p>1) This is a brand new US$2,000 laptop with a fancy hybrid hard drive, why does it need to "check my hardware"?<br>
2) Why OEM's put up with this? I mean Sony should have enough leverage to force Microsoft to provide them with a "quick firstboot" version of Vista. </p>
	<p>Don't get me wrong, I'm not a Windows hater, I'm fine with it for the most part, but this just pushes my patience to a whole new level... has no one at Microsoft used a Mac and seen their elegant "firstboot" system? Or used pretty much any recent Linux distro for that matter?</p>
	<p>btw.. windows is still booting... 
</p>
 ]]></description>
		<link>http://ophion.org/index.php/blog/show/Vista-as-an-instrument-of-meditation-.html</link>
		<author>raf@ophion.org (Rafael Ferreira)</author>
		<guid>http://ophion.org/index.php/blog/show/Vista-as-an-instrument-of-meditation-.html</guid>
		<pubDate>Fri,  2 May 2008 23:20:55 -0400</pubDate>
	</item>
	<item>
		<category>General</category>
		<title><![CDATA[ Sitting at opposite ends of the spectrum ]]></title>
		<description><![CDATA[ 	<p>For some odd reason I came across this video today, it brings together Mr. Dawkins and Pastor Ted. I'm not quite sure why professor Dawkins would even consider something like this but it is hella funny. 
<center>
<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/PMHB4_tSOf0"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/PMHB4_tSOf0" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>
</center>
Even if you are a big Pastor Ted fan, this video should still serve to show you the crumbling grounds that one must take to argue about logic and reason against an evolutionary biologist. 
</p>
 ]]></description>
		<link>http://ophion.org/index.php/blog/show/Sitting-at-opposite-ends-of-the-spectrum.html</link>
		<author>raf@ophion.org (Rafael Ferreira)</author>
		<guid>http://ophion.org/index.php/blog/show/Sitting-at-opposite-ends-of-the-spectrum.html</guid>
		<pubDate>Mon, 10 Mar 2008 02:56:46 -0400</pubDate>
	</item>
	<item>
		<category>General</category>
		<title><![CDATA[ Async delegates in... bash! ]]></title>
		<description><![CDATA[ 	<p>This may not surprise some of you but, believe it or not, you can write very simple asynchronous delegates in plain old bash. Yeah that's right, BASH. </p>
	<p>Here's the scenario, let's say you have to perform a task that might take a long time (let's pretend you need to check the health of an nfs server prior to attempting to mount exports from it) but you do not want to block the main "process" waiting for it, here's how something like that can be implemented:</p>
	<div class="code"><div class="bash">
<span style="color: #808080; font-style: italic;">###################################################</span><br />
<span style="color: #808080; font-style: italic;"># ASYNC NFS CHECK</span><br />
<span style="color: #808080; font-style: italic;"># Rafael Ferreira &lt;raf@ophion.org&gt;</span><br />
<span style="color: #808080; font-style: italic;">###################################################</span></p>
	<p><span style="color: #808080; font-style: italic;"># CONFIG FLAG - whether NFS has been checked or not</span><br />
<span style="color: #0000ff;">NFS_OK=</span><span style="color: #cc66cc;">1</span></p>
	<p>
<span style="color: #808080; font-style: italic;"># Runs a command asynchronously</span><br />
<span style="color: #808080; font-style: italic;"># $1 is the command to run</span><br />
<span style="color: #808080; font-style: italic;"># $2 is the callback function</span><br />
async_run<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><br />
&#160; &#160; &#160; &#160; <span style="color: #66cc66;">&#123;</span><br />
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; $<span style="color: #cc66cc;">1</span> &amp;&gt;/dev/null</p>
	<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <span style="color: #808080; font-style: italic;"># calling the callback passing the result</span><br />
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; $<span style="color: #cc66cc;">2</span> $?<br />
&#160; &#160; &#160; &#160; <span style="color: #66cc66;">&#125;</span>&amp;<br />
<span style="color: #66cc66;">&#125;</span></p>
	<p>nfs_callback<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><br />
&#160; &#160; &#160; &#160; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#91;</span> $<span style="color: #cc66cc;">1</span> == <span style="color: #ff0000;">"0"</span> <span style="color: #66cc66;">&#93;</span><br />
&#160; &#160; &#160; &#160; <span style="color: #b1b100;">then</span><br />
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; touch /tmp/$$<br />
&#160; &#160; &#160; &#160; <span style="color: #b1b100;">fi</span><br />
<span style="color: #66cc66;">&#125;</span></p>
	<p><span style="color: #b1b100;">for</span> i <span style="color: #b1b100;">in</span> $<span style="color: #66cc66;">&#40;</span>mount -l&#160; -t nfs | grep nfs2 | awk -F <span style="color: #ff0000;">":"</span> <span style="color: #ff0000;">'{print $1}'</span><span style="color: #66cc66;">&#41;</span><br />
<span style="color: #b1b100;">do</span><br />
&#160; &#160; &#160; &#160; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#91;</span> <span style="color: #0000ff;">$NFS_OK</span> == <span style="color: #ff0000;">"1"</span> <span style="color: #66cc66;">&#93;</span><br />
&#160; &#160; &#160; &#160; <span style="color: #b1b100;">then</span><br />
&#160; &#160; &#160; &#160; &#160; &#160; &#160;async_run <span style="color: #ff0000;">"/usr/sbin/rpcinfo -p $i"</span> nfs_callback<br />
&#160; &#160; &#160; &#160; &#160; &#160; &#160;<span style="color: #000066;">disown</span></p>
	<p>&#160; &#160; &#160; &#160; <span style="color: #b1b100;">fi</span><br />
<span style="color: #b1b100;">done</span></p>
	<p>sleep 1s</p>
	<p><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#91;</span> -f /tmp/$$ <span style="color: #66cc66;">&#93;</span><br />
<span style="color: #b1b100;">then</span><br />
&#160; &#160; &#160; &#160; <span style="color: #000066;">echo</span> <span style="color: #ff0000;">"NFS OK"</span></p>
	<p><span style="color: #b1b100;">else</span><br />
&#160; &#160; &#160; &#160; <span style="color: #000066;">echo</span> <span style="color: #ff0000;">"NFS NOT OK"</span><br />
<span style="color: #b1b100;">fi</span><br />
&#160;</div></div>
	<p>In a nutshell,  async_run() is where all the action happens. It takes a string parameter of a command to be run and a callback function to be dispatched once the command is done. On the example above, I  decided to block the main process and wait for the async call to return for at most 1 sec, this allows me to have constant execution O(1),  no matter how long the async task takes.   </p>
	<p>Yeah, I know this is pretty silly, but hey, I like it. 
</p>
 ]]></description>
		<link>http://ophion.org/index.php/blog/show/Async-delegates-in-bash.html</link>
		<author>raf@ophion.org (Rafael Ferreira)</author>
		<guid>http://ophion.org/index.php/blog/show/Async-delegates-in-bash.html</guid>
		<pubDate>Thu,  6 Mar 2008 11:14:56 -0500</pubDate>
	</item>
	<item>
		<category>General</category>
		<title><![CDATA[ And for the Arse of the Year Award... ]]></title>
		<description><![CDATA[ 	<p>This guy Mark Fink should get the Arse of the Year Award for the most obtuse gnome mailing list post:</p>
	<p><a href="http://mail.gnome.org/archives/desktop-devel-list/2008-February/msg00131.html">http://mail.gnome.org/archives/desktop-devel-list/2008-February/msg00131.html</a></p>
	<p>My fav quote from that whole thread:</p>
	<p><em>"I've never written a program before so I also need some help. Also I need a place to put it on the web"</em></p>
	<p>We are indeed doomed....</p>
 ]]></description>
		<link>http://ophion.org/index.php/blog/show/And-for-the-Arse-of-the-Year-Award.html</link>
		<author>raf@ophion.org (Rafael Ferreira)</author>
		<guid>http://ophion.org/index.php/blog/show/And-for-the-Arse-of-the-Year-Award.html</guid>
		<pubDate>Sat, 23 Feb 2008 01:06:43 -0500</pubDate>
	</item>
	<item>
		<title><![CDATA[ Mike Huckabee pulls a "Howard Dean" ]]></title>
		<description><![CDATA[ 	<p>This might turn out to have the same effect to Mike Huckabee's bid for the White House as Howard Dean's now infamous "rahhh!".</p>
	<p><a href="http://firstread.msnbc.msn.com/archive/2008/01/15/579265.aspx">http://firstread.msnbc.msn.com/archive/2008/01/15/579265.aspx</a></p>
	<p>Now, to be clear, I'm not putting Howard Dean's deranged scream in equal footing with Mr. Huckabee's comments but I do see a parallel that could lead to the same kind of political turmoil. </p>
	<p>Fundamentally, I see two things wrong with Huckabee's stance:</p>
	<p>a) He manages to display complete lack of respect towards the US Constitution and the principles in which it was based
b) He shows a lack of insight into the complexity of Christianity and how one must quantify what "God's standards" mean in light of the different interpretations of the Bible (I must say this one is extra troublesome coming from a "minister")</p>
	<p>Well, enough said. Let's all seat back and watch. </p>
 ]]></description>
		<link>http://ophion.org/index.php/blog/show/15.html</link>
		<author>raf@ophion.org (Rafael Ferreira)</author>
		<guid>http://ophion.org/index.php/blog/show/15.html</guid>
		<pubDate>Wed, 16 Jan 2008 03:04:23 -0500</pubDate>
	</item>
	<item>
		<title><![CDATA[ Quote of the day ]]></title>
		<description><![CDATA[ 	<p>"Given enough eyeballs, all bugs are shallow."  - Eric S. Raymond
</p>
 ]]></description>
		<link>http://ophion.org/index.php/blog/show/14.html</link>
		<author>raf@ophion.org (Rafael Ferreira)</author>
		<guid>http://ophion.org/index.php/blog/show/14.html</guid>
		<pubDate>Sat,  5 Jan 2008 13:39:19 -0500</pubDate>
	</item>
	<item>
		<title><![CDATA[ No, I'm not dead..  Uva Software is unveiled ]]></title>
		<description><![CDATA[ 	<p>For the last year or so, along with my dual Master's degree, I've been working with a partner on what I think is a long overdue addition to the educational marketplace in the US, an open source educational software company providing software that aims at shaking up things and really increase the value of what you get today when you think educational software.</p>
	<p><a href="http://www.uvasoftware.com">http://www.uvasoftware.com</a> 
Open Educational Middleware </p>
	<p>We have just released version 0.1 of our flagship product: Uva Core an open source  SIF agent library. </p>
	<p>That's it... now it's official.... carry on... </p>
 ]]></description>
		<link>http://ophion.org/index.php/blog/show/13.html</link>
		<author>raf@ophion.org (Rafael Ferreira)</author>
		<guid>http://ophion.org/index.php/blog/show/13.html</guid>
		<pubDate>Mon,  1 Oct 2007 23:20:18 -0400</pubDate>
	</item>
</channel>
</rss>
