<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><rss 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" version="2.0">

<channel>
	<title>R-squared</title>
	
	<link>http://allan.88-mph.net/blog</link>
	<description>Allan M. Espinosa</description>
	<pubDate>Tue, 25 Nov 2008 23:49:11 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/aespinosa" type="application/rss+xml" /><item>
		<title>On science productivity</title>
		<link>http://allan.88-mph.net/blog/entry/on-science-productivity/</link>
		<comments>http://allan.88-mph.net/blog/entry/on-science-productivity/#comments</comments>
		<pubDate>Tue, 25 Nov 2008 23:48:11 +0000</pubDate>
		<dc:creator>Allan Espinosa</dc:creator>
		
		<category><![CDATA[Soft Hacks]]></category>

		<category><![CDATA[grid computing]]></category>

		<category><![CDATA[sc]]></category>

		<category><![CDATA[science]]></category>

		<category><![CDATA[supercomputing]]></category>

		<guid isPermaLink="false">http://allan.88-mph.net/blog/?p=189</guid>
		<description><![CDATA[Grid computing infrastructures were made to support execution of science applications at larger scales. One challenge today in running your science in these behemoth systems the requirement of &#8220;griddification&#8221; or &#8220;supercomputerification&#8221;. You need to know how to make the best of your hardware or grid sites in order to orchestrate beautiful workflows and process your [...]]]></description>
			<content:encoded><![CDATA[<p>Grid computing infrastructures were made to support execution of science applications at larger scales. One challenge today in running your science in these behemoth systems the requirement of &#8220;griddification&#8221; or &#8220;supercomputerification&#8221;. You need to know how to make the best of your hardware or grid sites in order to orchestrate beautiful workflows and process your science. So a lot of research has been done to create languages such as <a href="http://www.ci.uchicago.edu/swift">Swift</a> to make life easier for these domain scientists.</p>
<p>I was debugging a science application for the last several months to run on petascale (100&#215;10^3++ processors) systems. The main goal of the domain scientist was to process hundres of thousands data sequences. I got too much carried away in the debugging to make the application work and have only looked at 3000 of the set In other words, not much *real* work has been done.</p>
<p>Now I should always remember when debugging, remember the scientists who took pain in measuring this data or who can&#8217;t get data. (Much like an analogy of &#8220;finish your food because there are millions of children hungry in developing countries&#8221;).</p>
]]></content:encoded>
			<wfw:commentRss>http://allan.88-mph.net/blog/entry/on-science-productivity/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Chicago Startup Factory</title>
		<link>http://allan.88-mph.net/blog/entry/chicago-startup-factory/</link>
		<comments>http://allan.88-mph.net/blog/entry/chicago-startup-factory/#comments</comments>
		<pubDate>Sat, 11 Oct 2008 00:32:50 +0000</pubDate>
		<dc:creator>Allan Espinosa</dc:creator>
		
		<category><![CDATA[Soft Hacks]]></category>

		<category><![CDATA[Theoretical Hacks]]></category>

		<category><![CDATA[innovation]]></category>

		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://allan.88-mph.net/blog/?p=185</guid>
		<description><![CDATA[The event is a collaboration between the GSB and CS Department. The group hopes to create technology-heavy startups and businesses unlike when you gather a bunch of pure business people who can&#8217;t make a business plan other than canned food, a network of juice/ shake stands, etc. The speaker for the Startup Factory talk was [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://masters.cs.uchicago.edu/news/csf.pdf">event</a> is a collaboration between the <a href="http://www.chicagogsb.edu/">GSB </a>and <a href="http://www.cs.uchicago.edu">CS Department</a>. The group hopes to create technology-heavy startups and businesses unlike when you gather a bunch of pure business people who can&#8217;t make a business plan other than canned food, a network of juice/ shake stands, etc. The speaker for the Startup Factory talk was Adarsh Arora, CEO of Athena Security and Co-Founder of Lisle Technology Partners. I took some of his striking ideas about innovating and generating business plans around technology:</p>
<ul>
<li><em>never sell more than one innovation</em> - his rationale for this was that the market cannot catch-up with all of your ideas. I have not thought of this deeply because [1] I have yet to have a really brilliant idea, and [2] most busines models I saw are too caught up in selling this one unique idea that they don&#8217;t bother to look at the other types (probably they are bad ideas in the first place).</li>
<li><em>interdisciplinary collaboration</em> - now this is more familiar to my school of thought. As what we always say in the <a href="http://innovation.ateneo.edu">Ateneo Innovation Center</a>, today&#8217;s problems are so complex that you need to apply every type of paradigm to be able to attack the problem from different angles and come up with a brilliant solution.</li>
</ul>
<p>Adarsh also discussed four types of companies [1] wishful thinking (you have enough deep connections to get angel funding), [2] historical precedence - selling technology to improve a process, [3] intuitive jump - pure luck; with democratization of technology, YouTube and Ebay became a big thing even though video sharing and online auctions were almost non-existent web services during their time, and [4] sure technology - you know that there is a need for it in the future (e.g. Y2K &#8220;bug&#8221;).</p>
<p>Follow-up events to this is an Entrepenuerial Brainstorming Session with GSB and CS students and an Introduction to creating application on the iPhone. Apple&#8217;s development platform makes it so easy for anyone to distribute an app and sell it over iTunes (or AppleStore?) enabling you to earn several thousand dollars in a few months.</p>
<p>Oh, and they had free pizza during the talk <img src='http://allan.88-mph.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://allan.88-mph.net/blog/entry/chicago-startup-factory/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Great Chicago Book Sale</title>
		<link>http://allan.88-mph.net/blog/entry/great-chicago-book-sale/</link>
		<comments>http://allan.88-mph.net/blog/entry/great-chicago-book-sale/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 22:23:08 +0000</pubDate>
		<dc:creator>Allan Espinosa</dc:creator>
		
		<category><![CDATA[Theoretical Hacks]]></category>

		<category><![CDATA[science]]></category>

		<category><![CDATA[society]]></category>

		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://allan.88-mph.net/blog/?p=170</guid>
		<description><![CDATA[I quickly grabbed my bike after coming from a seminar class and arrived 10 minutes before the closing time! Within a short span of time and by relying on my semi-rare impulsiveness of buying, I got these two titles foer 5 USD (buy-one-take-one):
W. T. Welford, Useful Optics (Chicago Lectures in Physics). University Of Chicago Press, [...]]]></description>
			<content:encoded><![CDATA[<p>I quickly grabbed my bike after coming from a seminar class and arrived 10 minutes before the closing time! Within a short span of time and by relying on my semi-rare impulsiveness of buying, I got these two titles foer 5 USD (buy-one-take-one):</p>
<p><img class="alignleft" src="http://ecx.images-amazon.com/images/I/41H3SHDQSXL._SL160_.jpg" alt="" width="108" height="160" />W. T. Welford, <em>Useful Optics (Chicago Lectures in Physics)</em>. University Of Chicago Press, October 1991.</p>
<blockquote><p>Students and professionals alike have long felt the need of a modern source of practical advice on the use of optical tools in scientific research. Walter T. Welford&#8217;s _Useful Optics_ meets this need. Welford offers a succinct review of principles basic to the construction and use of optics in physics. His lucid explanations and clear illustrations will particularly help those whose interests lie in other areas but who nevertheless must understand enough about optics to create the experimental apparatus necessary to their research. Consistently emphasizing applications and practical points of design, Welford covers a host of topics: mirrors and prisms, optical materials, aberration, the limits of image formation and resolution, illumination for image-forming systems, laser beams, interference and interferometry, detectors and light sources, holography, and more. The final chapter deals with putting together an experimental optics system. Many areas of the physical sciences and engineering increasingly demand an appreciation of optics. Welford&#8217;s _Useful Optics_ will prove indispensable to any researcher trying to develop and use effective optical apparatus. Walter T. Welford (1916-1990) was professor of physics at Imperial College of Science, Technology and Medicine from 1951 until his death. He was a Fellow of the Royal Society and of the Optical Society of America.  Link to <a href="http://www.amazon.com/exec/obidos/redirect?tag=citeulike07-20&amp;path=ASIN/0226893065">[Amazon.com]</a></p></blockquote>
<p><img class="alignleft" title="Human-Built World by Hughes" src="http://bks9.books.google.com/books?id=G7xmjLN6uXwC&amp;printsec=frontcover&amp;img=1&amp;zoom=1&amp;sig=ACfU3U1do3OfYZcPui8L3aQBwy0v6DuF5w" alt="" width="128" height="195" />T. P. Hughes, Human-Built World: How to Think about Technology and Culture (science * culture).    University Of Chicago Press, May 2005.</p>
<blockquote><p>To most people, technology has been reduced to computers, consumer goods, and military weapons; we speak of &#8220;technological progress&#8221; in terms of RAM and CD-ROMs and the flatness of our television screens. In Human-Built World, thankfully, Thomas Hughes restores to technology the conceptual richness and depth it deserves by chronicling the ideas about technology expressed by influential Western thinkers who not only understood its multifaceted character but who also explored its creative potential.</p>
<p>Hughes draws on an enormous range of literature, art, and architecture to explore what technology has brought to society and culture, and to explain how we might begin to develop an &#8220;ecotechnology&#8221; that works with, not against, ecological systems. From the &#8220;Creator&#8221; model of development of the sixteenth century to the &#8220;big science&#8221; of the 1940s and 1950s to the architecture of Frank Gehry, Hughes nimbly charts the myriad ways that technology has been woven into the social and cultural fabric of different eras and the promises and problems it has offered. Thomas Jefferson, for instance, optimistically hoped that technology could be combined with nature to create an Edenic environment; Lewis Mumford, two centuries later, warned of the increasing mechanization of American life.</p>
<p>Such divergent views, Hughes shows, have existed side by side, demonstrating the fundamental idea that &#8220;in its variety, technology is full of contradictions, laden with human folly, saved by occasional benign deeds, and rich with unintended consequences.&#8221; In Human-Built World, he offers the highly engaging history of these contradictions, follies, and consequences, a history that resurrects technology, rightfully, as more than gadgetry; it is in fact no less than an embodiment of human values. Link to <a href="http://www.amazon.com/gp/product/0226359344">[Amazon.com]</a></p></blockquote>
<p>Even information can be found in the <a href="http://www.press.uchicago.edu/News/0809booksaleprs.html">UChicago Press site</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://allan.88-mph.net/blog/entry/great-chicago-book-sale/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Ubiquity weather command</title>
		<link>http://allan.88-mph.net/blog/entry/ubiquity-weather-command/</link>
		<comments>http://allan.88-mph.net/blog/entry/ubiquity-weather-command/#comments</comments>
		<pubDate>Sun, 07 Sep 2008 07:17:53 +0000</pubDate>
		<dc:creator>Allan Espinosa</dc:creator>
		
		<category><![CDATA[Soft Hacks]]></category>

		<category><![CDATA[firefox]]></category>

		<category><![CDATA[ubiquity]]></category>

		<guid isPermaLink="false">http://allan.88-mph.net/blog/?p=164</guid>
		<description><![CDATA[Ubiquity from Mozilla labs features a nice command for querying the weather. It creates a query to the Google Weather service and returns the result. But with Google&#8217;s location/ IP dependent search results you can get the weather information in various languages depending where you conduct the search. For example if your language preference is [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://labs.mozilla.com/2008/08/introducing-ubiquity/">Ubiquity</a> from Mozilla labs features a nice command for querying the weather. It creates a query to the Google Weather service and returns the result. But with Google&#8217;s location/ IP dependent search results you can get the weather information in various languages depending where you conduct the search. For example if your language preference is Filipino (politically correct) or Tagalog (ISO language standard code) TL, you get the results in the corresponding language and in the unit standard used in the area.</p>
<p>But as a metric thinking type of guy, I hate it when Google gives me the results in Fahrenheit! I did some tweaking to get the weather in the metric system while using the English language.  The simple solution is to use the EN-UK language code. Simply edit your ~/.mozilla/[profile_name]/extentions/ubiquity@labs.mozilla.com/chrome/content/builtincmds.js and modify the command &#8220;weather&#8221;:</p>
<pre><code>CmdUtils.CreateCommand({
  name: "weather",
  takes: {"location": noun_arb_text},
  icon: "http://www.wunderground.com/favicon.ico",
  description: "Checks the weather for a given location.",
  help: "Try issuing &amp;quot;weather chicago&amp;quot;.  It works with zip-codes, too.",
  execute: function( directObj ) {
    var location = directObj.text;
    var url = "http://www.wunderground.com/cgi-bin/findweather/getForecast?query=";
    url += escape( location );

    Utils.openUrlInBrowser( url );
  },

  preview: function( pblock, directObj ) {
    var location = directObj.text;
    if( location.length &lt; 1 ) {
      pblock.innerHTML = "Gets the weather for a zip code/city.";
      return;
    }

    var url = "http://www.google.com/ig/api";
    jQuery.get( url, {weather: location, hl: "EN-GB"}, function(xml) {
      var el = jQuery(xml).find("current_conditions");
      if( el.length == 0 ) return;

      var condition = el.find("condition").attr("data");

      var weatherId = WEATHER_TYPES.indexOf( condition.toLowerCase() );
      var imgSrc = "http://l.yimg.com/us.yimg.com/i/us/nws/weather/gr/";
      imgSrc += weatherId + "d.png";

      var weather = {
        condition: condition,
        temp: el.find("temp_c").attr("data"),
        humidity: el.find("humidity").attr("data"),
        wind: el.find("wind_condition").attr("data"),
        img: imgSrc
      };

      weather["img"] = imgSrc;

      var html = CmdUtils.renderTemplate( {file:"weather.html"}, {w:weather}
                                        );

      jQuery(pblock).html( html );
      }, "xml");
  }
});</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://allan.88-mph.net/blog/entry/ubiquity-weather-command/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Where do you get good news about the Philippines?</title>
		<link>http://allan.88-mph.net/blog/entry/where-do-you-get-good-news-from-the-philippines/</link>
		<comments>http://allan.88-mph.net/blog/entry/where-do-you-get-good-news-from-the-philippines/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 08:28:18 +0000</pubDate>
		<dc:creator>Allan Espinosa</dc:creator>
		
		<category><![CDATA[Personal]]></category>

		<category><![CDATA[innovation]]></category>

		<category><![CDATA[philippines]]></category>

		<guid isPermaLink="false">http://allan.88-mph.net/blog/?p=160</guid>
		<description><![CDATA[
I was hanging out with a couple of Pinoy immigrants when one of them said, &#8220;Sa Pilipinas wala nito no? (This does not exist in the Philippines, right?)&#8221; Of course there are a few grains of truth to it. But what disappointed and pierced me inside was that the tone of the voice felt like [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://www.flickr.com/photos/jeridaking/2679193274/sizes/m/"><img class="aligncenter" title="Typhoon along the bay" src="http://farm4.static.flickr.com/3242/2679193274_790846894f.jpg" alt="" width="450" height="300" /></a></p>
<p>I was hanging out with a couple of Pinoy immigrants when one of them said, &#8220;Sa Pilipinas wala nito no? (This does not exist in the Philippines, right?)&#8221; Of course there are a few grains of truth to it. But what disappointed and pierced me inside was that the tone of the voice felt like the Philippines will never rise out of its ashes. It was as if life abroad is always the best and we all came from a filthy place. I also felt very useless that even though I was involved and emotionally attached in projects and movements that I believe will change the nation, all efforts are futile.</p>
<p>Face it. The only time when the Philippines get featured in international news networks like CNN is when: [1] a really big storm or calamity struck us, or [2] someone from the government screwed up big time. No wonder why Filipino immigrants do not see anything good happening in the Philippines.</p>
<p>I firmly believe that something big is on the rise in this nation. You can&#8217;t find it on mainstream media or its equivalent websites. Big things are happening locally in small communities. But where can you know these good things happening in the country? With the advent of Web2.0 and its high democratization of user contributed content small community movements are letting themselves known throughout the world. Here are some of a few sites and blogs I frequently read that makes me proud of to be a Filipino:</p>
<ul>
<li><a href="http://www.whynotforum.com">The WhyNot? Forum</a> - inspired by TEDtalks, it is a gathering of Filipinos daring themselves to ask: Why not? Bakit hindi? Speakers share their thoughts on what we can do to put the Philippines back in the map. Their website is a bit too flashy and but you can get the latest updates and most of the videos of the last 5 forums at their <a href="http://whynotforum.multiply.com/">Multiply page</a>.</li>
<li><a href="http://innovation.ateneo.edu">Ateneo Innovation Center</a> - a new approach in doing research in the Philippines. Doing projects relevant to be implemented in local communities. Acting like a startup to work around the big hurdle of getting funding. The site features some of the crazy projects we are doing in my old university.</li>
<li><a href="http://kolektib.com">Kolektib</a> - a group of diverse professionals seeking to create real products and inventions that solve&#8217;s a Filipino&#8217;s everyday problems.</li>
<li><a href="http://markruiz.typepad.com">Game Changer</a> - Mark Ruiz&#8217; blog about innovating and ideas that make an impact to the world.</li>
<li><a href="http://www.yps.org.ph">Young Public Servants</a> - a site dedicated to promoting good governance and citizenship to the youth.</li>
<li><a href="http://www.gawadkalinga.org">Gawad Kalinga</a> - a worldwide movement that seeks to provide housing and nurture communities in depressed areas.</li>
<li><a href="http://www.ayalatbi.org">AyalaTBI</a> - a project of the Ayala group of companies to incubate technology startups based on great and innovative ideas. They host various events like the Innovation Forum, Kape@Teknolohiya (Coffee and Technology), and TechBootCamp.</li>
<li><a href="http://bliss-project.blogspot.com">The Bliss Project</a> - my sister&#8217;s project to enrich the lives of a local community in my native town. I just installed the site for her but you can also look at <a href="http://le-songeur.livejournal.com/">her blog</a> for an initial description about the project. I&#8217;m including this in the list as a proud Kuya <img src='http://allan.88-mph.net/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </li>
</ul>
<p>Where do you go on the web to inspire you as a Filipino?</p>
]]></content:encoded>
			<wfw:commentRss>http://allan.88-mph.net/blog/entry/where-do-you-get-good-news-from-the-philippines/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Technology for the masses’ sari-saris</title>
		<link>http://allan.88-mph.net/blog/entry/technology-for-the-masses-sari-saris/</link>
		<comments>http://allan.88-mph.net/blog/entry/technology-for-the-masses-sari-saris/#comments</comments>
		<pubDate>Tue, 26 Aug 2008 01:17:56 +0000</pubDate>
		<dc:creator>Allan Espinosa</dc:creator>
		
		<category><![CDATA[Soft Hacks]]></category>

		<guid isPermaLink="false">http://allan.88-mph.net/blog/?p=153</guid>
		<description><![CDATA[The sari-sari store is a key economic and social installation in Filipino communities.  It allows the community easy access to basic good. The term sari-sari is Filipino for &#8220;various kinds&#8221;.  See more from its wikipedia entry.
Mark Ruiz of Hapinoy shares some updates on their company deploying a POS system for these sari-sari store. Technology is [...]]]></description>
			<content:encoded><![CDATA[<p>The <em>sari-sari </em>store is a key economic and social installation in Filipino communities.  It allows the community easy access to basic good. The term <em>sari-sari</em> is Filipino for &#8220;various kinds&#8221;.  See more from its <a href="http://en.wikipedia.org/wiki/Sari-sari_store">wikipedia entry</a>.</p>
<p><a href="http://markruiz.typepad.com">Mark Ruiz</a> of <a href="http://www.hapinoy.com">Hapinoy</a> shares some updates on their company deploying a POS system for these sari-sari store. Technology is not only a key component in streamlining systems of today&#8217;s enterprises but it is also needed by people like <em>Nanay Delia</em>. Below is the image from his <a href="http://markruiz.typepad.com/gamechanger/2008/08/sari-sari-sto-1.html">blog post</a>:</p>
<div class="wp-caption aligncenter" style="width: 449px"><img title="Scene from a recent Hapinoy activity" src="http://markruiz.typepad.com/gamechanger/082508_2247_SARISARISTO1.jpg" alt="Nanay Delia learning a Point-of-Sale System for her Sari-Sari Store. Whatever doubts of the applicability of technology for the smallest unit of retail were laid to rest after the training session. The potential of becoming more efficient in pricing controls, inventory management, and accounting were key benefits that were very much appreciated. [description from Mark Ruiz blog." width="439" height="330" /><p class="wp-caption-text">Nanay Delia learning a Point-of-Sale System for her Sari-Sari Store. Whatever doubts of the applicability of technology for the smallest unit of retail were laid to rest after the training session. The potential of becoming more efficient in pricing controls, inventory management, and accounting were key benefits that were very much appreciated. [description from Mark Ruiz&#39; blog</p></div>
]]></content:encoded>
			<wfw:commentRss>http://allan.88-mph.net/blog/entry/technology-for-the-masses-sari-saris/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Web2.0-generated wallpapers</title>
		<link>http://allan.88-mph.net/blog/entry/web20-generated-wallpapers/</link>
		<comments>http://allan.88-mph.net/blog/entry/web20-generated-wallpapers/#comments</comments>
		<pubDate>Wed, 13 Aug 2008 19:05:33 +0000</pubDate>
		<dc:creator>Allan Espinosa</dc:creator>
		
		<category><![CDATA[Soft Hacks]]></category>

		<category><![CDATA[programming]]></category>

		<category><![CDATA[web2.0]]></category>

		<guid isPermaLink="false">http://allan.88-mph.net/blog/?p=143</guid>
		<description><![CDATA[
I decided to create a backround header image for my blog and Multiply page. Tons of randomly writter equations would be nice to have. The Yahoo Image search allows you to specify if you the types of pictures you want like black and white photos, image size, etc. I used the yahoo_collage.pl from Uppal&#8217;s blog [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption aligncenter" style="width: 460px"><a class="flickr-image" title="blog pag background" href="http://www.flickr.com/photos/23313643@N00/2733902034/"><img src="http://farm4.static.flickr.com/3213/2733902034_5422c21d89.jpg" alt="blog pag background" width="450" height="95" /></a><p class="wp-caption-text">Blog page background header</p></div>
<p>I decided to create a backround header image for my blog and Multiply page. Tons of randomly writter equations would be nice to have. The Yahoo Image search allows you to specify if you the types of pictures you want like black and white photos, image size, etc. I used the yahoo_collage.pl from <a href="http://upster.blogspot.com/2005/03/yahoo-image-search-collage-generator.html">Uppal&#8217;s blog</a> and modified it to exceed the maximum images per query of 50 limit from <a href="http://developer.yahoo.com/search/image/V1/imageSearch.html">Yahoo&#8217;s image search api</a>. Below is the patch:</p>
<pre><code>*** yahoo_collage.pl	2005-09-16 20:07:50.000000000 -0500
--- ycollage.pl	2008-08-13 13:56:45.000000000 -0500
***************
*** 1,4 ****
! #! /usr/local/bin/perl -w
  ################################################################################
  # Yahoo Image Search Collage Generator
  #
--- 1,4 ----
! #! /usr/bin/perl -w
  ################################################################################
  # Yahoo Image Search Collage Generator
  #
*************** my $count   = 50;
*** 33,38 ****
--- 33,39 ----
  my $file    = undef;
  my $width   = 50;
  my $height  = 50;
+ my $init = 0;

  GetOptions(
      'query=s'   =&amp;gt; \$query,
*************** GetOptions(
*** 41,46 ****
--- 42,48 ----
      'width=i'   =&amp;gt; \$width,
      'height=i'  =&amp;gt; \$height,
      'help'      =&amp;gt; \$help,
+     'init=i'      =&amp;gt; \$init,
  );

  if ($help) {
*************** if ($help) {
*** 56,71 ****

  die("Must specify a query!\n") unless ($query);

! if ($count &amp;gt; Yahoo::Search::MaxCount('Image')) {
!     die("Yahoo! does not allow querying for more than " .
!         Yahoo::Search::MaxCount('Image') . " results at once!\n");
! }

  print STDERR "Querying Yahoo for "$query"...\n";
! my @results = Yahoo::Search-&amp;gt;Results(
      Image =&amp;gt; $query,
!     Count =&amp;gt; $count,
! );

  print STDERR "Generating HTML...\n";
--- 58,86 ----

  die("Must specify a query!\n") unless ($query);

! #if ($count &amp;gt; Yahoo::Search::MaxCount('Image')) {
! #    die("Yahoo! does not allow querying for more than " .
! #        Yahoo::Search::MaxCount('Image') . " results at once!\n");
! #}

  print STDERR "Querying Yahoo for "$query"...\n";
! my $summary = Yahoo::Search-&amp;gt;Query(
      Image =&amp;gt; $query,
!     Count =&amp;gt; "50",
! 	Start =&amp;gt; $init,
! 	Color =&amp;gt; "bw")-&amp;gt;CountAvail;
! my $i;
! my @results;
! for($i = $init; $i &amp;lt; $count + $init; $i += 50)
! {
!     my @partial = Yahoo::Search-&amp;gt;Results(
!         Image =&amp;gt; $query,
! 		Start =&amp;gt; $i,
!         Count =&amp;gt; 50,
!         Color =&amp;gt; "bw");
! 	push (@results, @partial);
! }
! print "Generated image $init to $i from $summary\n";

  print STDERR "Generating HTML...\n";
*************** sub generate_html {
*** 92,99 ****
      my $html_images = "";

      foreach my $image_result (@$ra_results) {
!         $html_images .= "&amp;lt;a href="" . $image_result-&amp;gt;HostUrl() . ""&amp;gt; &amp;lt;img src="" .
!                         $image_result-&amp;gt;ThumbUrl() . "" width=$width height=$height&amp;gt;&amp;lt;/a&amp;gt;";
      }

      my $html_credits = qq{Created with &amp;lt;a href="http://upster.blogspot.com"&amp;gt;Siddharth Uppal&amp;lt;/a&amp;gt;'s
--- 107,114 ----
      my $html_images = "";

      foreach my $image_result (@$ra_results) {
!         $html_images .= "&amp;lt;img src="" .
!                         $image_result-&amp;gt;ThumbUrl() . "" border=0&amp;gt; ";
      }

      my $html_credits = qq{Created with &amp;lt;a href="http://upster.blogspot.com"&amp;gt;Siddharth Uppal&amp;lt;/a&amp;gt;'s
*************** sub generate_html {
*** 104,120 ****
      my $html_page = qq{
          &amp;lt;html&amp;gt;
          &amp;lt;head&amp;gt;
!         &amp;lt;title&amp;gt;Yahoo Image Search Collage Generator: $query&amp;lt;/title&amp;gt;
          &amp;lt;/head&amp;gt;
!         &amp;lt;body&amp;gt;&amp;lt;center&amp;gt;
!         &amp;lt;font face="Trebuchet MS" color="Black" size="4"&amp;gt;&amp;lt;b&amp;gt;$query&amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;
!         &amp;lt;p align="center"&amp;gt;$html_images&amp;lt;/p&amp;gt;
!         &amp;lt;font face="Trebuchet MS" color="Black" size="2"&amp;gt;&amp;lt;br&amp;gt;&amp;lt;b&amp;gt;
!         To show off your collage, just copy and paste the text below into your blog or website!&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;
!         &amp;lt;textarea rows="25" cols="50"&amp;gt;$html_images&amp;lt;br&amp;gt;$html_credits&amp;lt;/textarea&amp;gt;&amp;lt;br&amp;gt;&amp;lt;font size="1"
!         face="Verdana" color="Gray"&amp;gt;
!         &amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;$html_credits
!         &amp;lt;/center&amp;gt;&amp;lt;/body&amp;gt;
          &amp;lt;/html&amp;gt;
      };

--- 119,129 ----
      my $html_page = qq{
          &amp;lt;html&amp;gt;
          &amp;lt;head&amp;gt;
!         &amp;lt;title&amp;gt;$query&amp;lt;/title&amp;gt;
          &amp;lt;/head&amp;gt;
!         &amp;lt;body style="width: 1024px;"&amp;gt;
! 		&amp;lt;p align="center"&amp;gt;$html_images&amp;lt;/p&amp;gt;
!         &amp;lt;/body&amp;gt;
          &amp;lt;/html&amp;gt;
      };</code></pre>
<p>Here are some selected of my generated collages:</p>
<div class="wp-caption aligncenter" style="width: 460px"><span style="font-size: x-small; font-family: Trebuchet MS; color: black;"><span style="font-size: xx-small; font-family: Verdana; color: gray;"><a class="flickr-image" title="latex equation" href="http://www.flickr.com/photos/23313643@N00/2759968523/"><img src="http://farm4.static.flickr.com/3125/2759968523_02160fc1be.jpg" alt="latex equation" width="450" height="264" /></a></span></span><p class="wp-caption-text">latex equation</p></div>
<div class="wp-caption aligncenter" style="width: 460px"><span style="font-size: x-small; font-family: Trebuchet MS; color: black;"><span style="font-size: xx-small; font-family: Verdana; color: gray;"><a class="flickr-image" title="modulator" href="http://www.flickr.com/photos/23313643@N00/2759974911/"><img src="http://farm4.static.flickr.com/3057/2759974911_973da32bcd.jpg" alt="modulator" width="450" height="264" /></a></span></span><p class="wp-caption-text">modulator</p></div>
<p style="text-align: center;">
]]></content:encoded>
			<wfw:commentRss>http://allan.88-mph.net/blog/entry/web20-generated-wallpapers/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Midwest Grid School 2008 @UChicago</title>
		<link>http://allan.88-mph.net/blog/entry/midwest-grid-school-2008-uchicago/</link>
		<comments>http://allan.88-mph.net/blog/entry/midwest-grid-school-2008-uchicago/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 19:46:31 +0000</pubDate>
		<dc:creator>Allan Espinosa</dc:creator>
		
		<category><![CDATA[Theoretical Hacks]]></category>

		<category><![CDATA[conference]]></category>

		<category><![CDATA[grid computing]]></category>

		<guid isPermaLink="false">http://allan.88-mph.net/blog/?p=140</guid>
		<description><![CDATA[Yey! Malapit na malapit lang  More information about the program and registration information is found in its OSG Page. Workshop dates from Sept 17-19.
The Open Science Grid (OSG), the TeraGrid and the Computation Institute of The University of Chicago present a three day intensive course in grid computing and its application to scientific discovery.
The [...]]]></description>
			<content:encoded><![CDATA[<p>Yey! Malapit na malapit lang <img src='http://allan.88-mph.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> More information about the program and registration information is found in its <a href="https://twiki.grid.iu.edu/bin/view/Education/MWGS08">OSG Page</a>. Workshop dates from Sept 17-19.</p>
<blockquote><p><a href="http://www.opensciencegrid.org/" target="_top">The Open Science Grid</a> (OSG), the <a href="http://www.teragrid.org/" target="_top">TeraGrid</a> and the <a href="http://www.ci.uchicago.edu/" target="_top">Computation Institute</a> of <a href="http://www.uchicago.edu/" target="_top">The University of Chicago</a> present a three day intensive course in grid computing and its application to scientific discovery.</p>
<p>The course introduces the techniques of grid and distributed        computing for science and engineering fields, with hands-on training in the      use of national grid computing resources. The workshop introduces essential      skills that will be needed by researchers in the natural and applied             sciences, engineering, and computer science to conduct and support               large-scale computation and data analysis in emerging grid and distributed       computing environments.</p>
<p>School participants will work with grid computing experts during the 3-day training. The workshop will focus on enabling the use of the national cyberinfrastructure -<a href="http://www.opensciencegrid.org/" target="_top">The Open Science Grid</a> and <a href="http://www.teragrid.org/" target="_top">TeraGrid</a>- to perform              <span style="color: #ff0000;"> large-scale computations </span> and <span style="color: #ff0000;"> data-intensive processing </span> in the your field of research. Participants will learn to use grids of thousands of processors and will be able to continue to use these resources for their research after the class. We encourage you to bring your research project to us for suggestions and help in porting your application to the grid. We would like to offer you support in transitioning your application to this platform.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://allan.88-mph.net/blog/entry/midwest-grid-school-2008-uchicago/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Unix timer utility</title>
		<link>http://allan.88-mph.net/blog/entry/unix-timer-utility/</link>
		<comments>http://allan.88-mph.net/blog/entry/unix-timer-utility/#comments</comments>
		<pubDate>Fri, 08 Aug 2008 20:34:41 +0000</pubDate>
		<dc:creator>Allan Espinosa</dc:creator>
		
		<category><![CDATA[Soft Hacks]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://allan.88-mph.net/blog/?p=135</guid>
		<description><![CDATA[
The Unix time(1) command can only give a precision of 10 milliseconds by default. But being the engineer who goes insane after precision, I made my own script to be able to get differences in terms of microseconds. My first timer utility was made in C but I got stuck with the insane exec(3) family [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption aligncenter" style="width: 410px"><a class="flickr-image" title="Timer microbenchmark" href="http://www.flickr.com/photos/23313643@N00/2745203142/"><img title="Timer utilities performance on C and Perl" src="http://farm4.static.flickr.com/3069/2745203142_8e3e868b8c.jpg" alt="Timer microbenchmark" width="400" height="300" /></a><p class="wp-caption-text">Timer utilities performance on C and Perl of &quot;echo -n&quot;</p></div>
<p>The Unix time(1) command can only give a precision of 10 milliseconds by default. But being the engineer who goes insane after precision, I made my own script to be able to get differences in terms of microseconds. My first timer utility was made in C but I got stuck with the insane exec(3) family of functions since you need to fork the process to a child for the parent process to create successful timing. Hence I used Perl with the Time::HiRes library which is a wrapper to &lt;time.h&gt; and &lt;sys/time.h&gt;. Later on, I found out that C itself has the system(3) functioin in &lt;stdlib.h&gt;</p>
<p>Performance-wise you can see that C has a much faster runtime when the program was being invoked. But you can see in the graph above that Perl has much more consistent values so its standard deviation is lower than C. When I tested both programs for my data-intensive computing experiments, I get better results with the Perl utility! Perhaps I forgot to do all the magic the system function in Perl does in my C implementation?</p>
<p>Here is my Perl code:</p>
<pre><code>#!/usr/bin/perl

use Time::HiRes qw ( tv_interval gettimeofday );

$start = [gettimeofday];
system @ARGV;

$elapsed = tv_interval ( $start );
print $elapsed, "\n";</code></pre>
<p>Here is my C implementation:</p>
<pre><code>#include &lt;stdlib.h&gt;
#include &lt;stdio.h&gt;

#include &lt;time.h&gt;
#include &lt;sys/time.h&gt;

int main(int argc, char* argv[])
{
	struct timeval start, end, diff;
	gettimeofday(&amp;start, NULL);
	char* command = malloc( sizeof(argv) );
	int i;
	sprintf(command, "%s", argv[1]);
	for( i = 2; i &lt; argc; i++ )
	{
		sprintf(command, "%s %s", command, argv[i]);
	}
	system(command);
	gettimeofday(&amp;end, NULL);
	timersub(&amp;end, &amp;start, &amp;diff);
	printf("%d.%06d\n", diff.tv_sec, diff.tv_usec);
	return 0;
}</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://allan.88-mph.net/blog/entry/unix-timer-utility/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The future of public health: grid gains traction</title>
		<link>http://allan.88-mph.net/blog/entry/the-future-of-public-health-grid-gains-traction/</link>
		<comments>http://allan.88-mph.net/blog/entry/the-future-of-public-health-grid-gains-traction/#comments</comments>
		<pubDate>Thu, 31 Jul 2008 20:06:48 +0000</pubDate>
		<dc:creator>Allan Espinosa</dc:creator>
		
		<category><![CDATA[Soft Hacks]]></category>

		<category><![CDATA[grid computing]]></category>

		<category><![CDATA[health]]></category>

		<guid isPermaLink="false">http://allan.88-mph.net/blog/entry/isgtw-feature-the-future-of-public-health-grid-gains-traction/</guid>
		<description><![CDATA[From iSGTW Feature - The future of public health: grid gains traction.
Feature - The future of public health: The grid gains traction
Dr. Ida A. Bengston (1881-1952) was one of the first women employed on the scientific staff of the Hygienic Laboratory of the Public Health Service, the predecessor to the National Institutes of Health. Bengston [...]]]></description>
			<content:encoded><![CDATA[<p>From <a href="http://www.isgtw.org/?pid=1001260">iSGTW Feature - The future of public health: grid gains traction</a>.</p>
<blockquote><p><strong>Feature - The future of public health: The grid gains traction</strong></p>
<p>Dr. Ida A. Bengston (1881-1952) was one of the first women employed on the scientific staff of the Hygienic Laboratory of the Public Health Service, the predecessor to the National Institutes of Health. Bengston was particularly noted for her studies of bacterial toxins.</p></blockquote>
<p>What are the infrastructure challenges of public health informatics that requires leveraging the grid?  Of course Doc Eloy Marcelo has his <a href="http://chits.ph/wiki/index.php?title=Main_Page">CHITS</a> and also there is the <a href="http://openmrs.org/wiki/OpenMRS">OpenMRS</a> project.  Perhaps this is an *integration* of existing systems? It would be interesting to see a web service interfacing CHITS and OpenMRS.</p>
]]></content:encoded>
			<wfw:commentRss>http://allan.88-mph.net/blog/entry/the-future-of-public-health-grid-gains-traction/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
