<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>CML&#039;s Blog ... Full Disclosure</title>
	<atom:link href="http://cml-industries.com/thought/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://cml-industries.com/thought</link>
	<description>100% Post Consumer Content</description>
	<lastBuildDate>Mon, 12 Mar 2012 05:55:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Travels to Vancouver, BC</title>
		<link>http://cml-industries.com/thought/?p=105</link>
		<comments>http://cml-industries.com/thought/?p=105#comments</comments>
		<pubDate>Sat, 10 Mar 2012 22:08:41 +0000</pubDate>
		<dc:creator>johnwu</dc:creator>
				<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://cml-industries.com/thought/?p=105</guid>
		<description><![CDATA[Had a chance to go on walkabout during a recent trip to Vancouver, BC. <p>A movie crew was filming at the train station (Pacific Station). Apparently making a sequel to &#8220;A Christmas Story&#8221;. I thought things were off when I noted a Christmas Tree in the middle of the train terminal. Outside was this getup. [...]]]></description>
			<content:encoded><![CDATA[<h4>Had a chance to go on walkabout during a recent trip to Vancouver, BC.</h4>
<div id="attachment_118" class="wp-caption alignleft" style="width: 310px"><a href="http://cml-industries.com/thought/wp-content/uploads/2012/03/DSC00087.jpg"><img class="size-medium wp-image-118 " style="border: 2px solid lightgray; margin: 2px 5px;" title="Indiana Plates" src="http://cml-industries.com/thought/wp-content/uploads/2012/03/DSC00087-300x180.jpg" alt="" width="300" height="180" /></a><p class="wp-caption-text">Indiana Plates</p></div>
<p>A movie crew was filming at the train station (Pacific Station). Apparently making a sequel to &#8220;A Christmas Story&#8221;. I thought things were off when I noted a Christmas Tree in the middle of the train terminal. Outside was this getup. I snuck around the side of the filming crew to get this pictures before being ushered along by security!</p>
<div style="clear: left;">

<a href='http://cml-industries.com/thought/?attachment_id=106' title='DSC00029'><img width="150" height="150" src="http://cml-industries.com/thought/wp-content/uploads/2012/03/DSC00029-150x150.jpg" class="attachment-thumbnail" alt="DSC00029" title="DSC00029" /></a>
<a href='http://cml-industries.com/thought/?attachment_id=107' title='DSC00034'><img width="150" height="150" src="http://cml-industries.com/thought/wp-content/uploads/2012/03/DSC00034-150x150.jpg" class="attachment-thumbnail" alt="DSC00034" title="DSC00034" /></a>
<a href='http://cml-industries.com/thought/?attachment_id=108' title='DSC00038'><img width="150" height="150" src="http://cml-industries.com/thought/wp-content/uploads/2012/03/DSC00038-150x150.jpg" class="attachment-thumbnail" alt="DSC00038" title="DSC00038" /></a>
<a href='http://cml-industries.com/thought/?attachment_id=109' title='DSC00040'><img width="150" height="150" src="http://cml-industries.com/thought/wp-content/uploads/2012/03/DSC00040-150x150.jpg" class="attachment-thumbnail" alt="DSC00040" title="DSC00040" /></a>
<a href='http://cml-industries.com/thought/?attachment_id=110' title='DSC00042'><img width="150" height="150" src="http://cml-industries.com/thought/wp-content/uploads/2012/03/DSC00042-150x150.jpg" class="attachment-thumbnail" alt="DSC00042" title="DSC00042" /></a>
<a href='http://cml-industries.com/thought/?attachment_id=111' title='DSC00049'><img width="150" height="150" src="http://cml-industries.com/thought/wp-content/uploads/2012/03/DSC00049-150x150.jpg" class="attachment-thumbnail" alt="DSC00049" title="DSC00049" /></a>
<a href='http://cml-industries.com/thought/?attachment_id=112' title='DSC00052'><img width="150" height="150" src="http://cml-industries.com/thought/wp-content/uploads/2012/03/DSC00052-150x150.jpg" class="attachment-thumbnail" alt="DSC00052" title="DSC00052" /></a>
<a href='http://cml-industries.com/thought/?attachment_id=113' title='DSC00057'><img width="150" height="150" src="http://cml-industries.com/thought/wp-content/uploads/2012/03/DSC00057-150x150.jpg" class="attachment-thumbnail" alt="DSC00057" title="DSC00057" /></a>
<a href='http://cml-industries.com/thought/?attachment_id=115' title='DSC00078'><img width="150" height="150" src="http://cml-industries.com/thought/wp-content/uploads/2012/03/DSC00078-150x150.jpg" class="attachment-thumbnail" alt="DSC00078" title="DSC00078" /></a>
<a href='http://cml-industries.com/thought/?attachment_id=116' title='DSC00085'><img width="150" height="150" src="http://cml-industries.com/thought/wp-content/uploads/2012/03/DSC00085-150x150.jpg" class="attachment-thumbnail" alt="DSC00085" title="DSC00085" /></a>
<a href='http://cml-industries.com/thought/?attachment_id=117' title='DSC00086'><img width="150" height="150" src="http://cml-industries.com/thought/wp-content/uploads/2012/03/DSC00086-150x150.jpg" class="attachment-thumbnail" alt="DSC00086" title="DSC00086" /></a>
<a href='http://cml-industries.com/thought/?attachment_id=118' title='Indiana Plates'><img width="150" height="150" src="http://cml-industries.com/thought/wp-content/uploads/2012/03/DSC00087-150x150.jpg" class="attachment-thumbnail" alt="Indiana Plates" title="Indiana Plates" /></a>

</div>
<div style="clear: left;"></div>
<div id="attachment_116" class="wp-caption alignnone" style="width: 598px"><a href="http://cml-industries.com/thought/wp-content/uploads/2012/03/DSC00085.jpg"><img class=" wp-image-116  " style="border: 2px solid lightgray; margin: 2px 5px;" title="Panoramic view of False Creek" src="http://cml-industries.com/thought/wp-content/uploads/2012/03/DSC00085-1024x232.jpg" alt="" width="588" height="133" /></a><p class="wp-caption-text">Panoramic view of False Creek</p></div>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://cml-industries.com/thought/?feed=rss2&#038;p=105</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Perl and Postfix &#124;&#124; semantics</title>
		<link>http://cml-industries.com/thought/?p=78</link>
		<comments>http://cml-industries.com/thought/?p=78#comments</comments>
		<pubDate>Fri, 03 Apr 2009 04:13:50 +0000</pubDate>
		<dc:creator>johnwu</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://cml-industries.com/thought/?p=78</guid>
		<description><![CDATA[<p>sooo.  I have to admit.  I am an old school sendmailer.  So, when gentoo absconded my native MTA I was a bit perturbed considering that they replaced &#8220;mail&#8221; with a postfix wrapper. Well like any good hack I rm&#8217;ed that bish and installed my tried and true sendmail.  Problem solved.</p> <p>Though I&#8217;ve ALWAYS hated the [...]]]></description>
			<content:encoded><![CDATA[<p>sooo.  I have to admit.  I am an old school sendmailer.  So, when gentoo absconded my native MTA I was a bit perturbed considering that they replaced &#8220;mail&#8221; with a postfix wrapper. Well like any good hack I rm&#8217;ed that bish and installed my tried and true sendmail.  Problem solved.</p>
<p>Though I&#8217;ve ALWAYS hated the fact that sendmail implement the m4 (wtfever) pre-processor and I&#8217;ve always edited the cf files manually.  Yeah &#8230; so?  It made more sense to me. Anyway&#8217;s I figured I&#8217;d spent enough time bastardizing the cf files and learn how to do it right; which in-turn had me assess how silly it was to have an m4 (wtfever) pre-processor versus a config file and I got to researching postfix.</p>
<p>Soooooo &#8230; Here I am; impressed.  I like the implementation, the ease of use, the 3rd party plugins (courier, sasl, etc) and I figure, WTF, i&#8217;ll give it a whirl.</p>
<p>Here&#8217;s the point of the blog.  There&#8217;s still no &#8220;mail&#8221; to command line control&#8230; d&#8217;oh.</p>
<p>Either by slight of hand or by malice its now &#8220;sendmail&#8221;, which, lexically makes sense; however, the flags aren&#8217;t identical.  Again back to the point of me blogging about this I thought I would share a very simple perl / postfix cgi wrapper to &#8220;send&#8221; &#8220;mail&#8221; via the postfix sendmail wrapper and still be happy that &#8220;you got mail&#8221;.</p>
<p><code><br />
my @vars = $cgi-&gt;param;<br />
my $email .= 'SUBJECT: blah blah porn' . "\n\n";<br />
foreach (@vars) {<br />
my $val = $cgi-&gt;param($_);<br />
$email .= "$_ :: $val" . "\n";<br />
}<br />
$email .= "\n" . '.' . "\n";<br />
my $cmd = "echo \'$email\' \| sendmail foo\@xxx.com";<br />
system("$cmd");<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://cml-industries.com/thought/?feed=rss2&#038;p=78</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Toy!</title>
		<link>http://cml-industries.com/thought/?p=75</link>
		<comments>http://cml-industries.com/thought/?p=75#comments</comments>
		<pubDate>Thu, 02 Apr 2009 14:21:09 +0000</pubDate>
		<dc:creator>johnwu</dc:creator>
				<category><![CDATA[Drivel]]></category>
		<category><![CDATA[Gear]]></category>
		<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://cml-industries.com/thought/?p=75</guid>
		<description><![CDATA[<p>mmmm my precious.</p> <p>So; I have been coveting this little gem for quite some time now and being that I recently had a birfday I decided to pony up and purchase a new Canon EOS Rebel XS (e1000D).</p> <p>w00t.</p> <p>Can&#8217;t wait to see the HDR images I can create with this bad boy. Stay tuned!</p>]]></description>
			<content:encoded><![CDATA[<div id="attachment_176" class="wp-caption alignleft" style="width: 250px"><a href="http://cml-industries.com/thought/wp-content/uploads/2009/04/canon-rebel-xs-1000d.jpg"><img class=" wp-image-176  " style="margin: 5px 5px;" title="canon-rebel-xs-1000d" src="http://cml-industries.com/thought/wp-content/uploads/2009/04/canon-rebel-xs-1000d-300x265.jpg" alt="" width="240" height="212" /></a><p class="wp-caption-text">My first DSLR</p></div>
<p>mmmm my precious.</p>
<p>So; I have been coveting this little gem for quite some time now and being that I recently had a birfday I decided to pony up and purchase a new Canon EOS Rebel XS (e1000D).</p>
<p>w00t.</p>
<p>Can&#8217;t wait to see the HDR images I can create with this bad boy. Stay tuned!</p>
]]></content:encoded>
			<wfw:commentRss>http://cml-industries.com/thought/?feed=rss2&#038;p=75</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>perl and wordpress blog roller&#8230;</title>
		<link>http://cml-industries.com/thought/?p=72</link>
		<comments>http://cml-industries.com/thought/?p=72#comments</comments>
		<pubDate>Wed, 11 Mar 2009 02:10:28 +0000</pubDate>
		<dc:creator>johnwu</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://cml-industries.com/thought/?p=72</guid>
		<description><![CDATA[<p>good to go, for a start &#8230; I&#8217;ll optimize the code later. Ask if you are curious how it works.</p> <p><br /> sub blogRoller {<br /> use LWP::Simple;<br /> use CMLRSSLite;</p> <p># CONFIG<br /> my $url1 = &#8216;http://heartofsin.com/HOSBlogs/feed/&#8217;;<br /> #my $url2 = &#8216;http://elprez.heartofsin.com/HOSBlogs/feed/&#8217;;<br /> my $url3 = &#8216;http://johnwu.heartofsin.com/HOSBlogs/feed/&#8217;;<br /> #my $url4 = &#8216;http://kozy.heartofsin.com/HOSBlogs/feed/&#8217;;<br /> my [...]]]></description>
			<content:encoded><![CDATA[<p>good to go, for a start &#8230; I&#8217;ll optimize the code later. Ask if you are curious how it works.</p>
<p><code><br />
sub blogRoller {<br />
use LWP::Simple;<br />
use CMLRSSLite;</code></p>
<p># CONFIG<br />
my $url1 = &#8216;http://heartofsin.com/HOSBlogs/feed/&#8217;;<br />
#my $url2 = &#8216;http://elprez.heartofsin.com/HOSBlogs/feed/&#8217;;<br />
my $url3 = &#8216;http://johnwu.heartofsin.com/HOSBlogs/feed/&#8217;;<br />
#my $url4 = &#8216;http://kozy.heartofsin.com/HOSBlogs/feed/&#8217;;<br />
my $url2 = &#8216;http://foobar.heartofsin.com/HOSBlogs/feed/&#8217;;</p>
<p>my @preRoll =();<br />
my @sites = ($url1,$url2,$url3);</p>
<p>foreach (@sites) {<br />
my $rp = new CMLRSSLite;<br />
my $xml = get($_);;<br />
unless ($xml) { $error = &#8216;RSS Feed Unavailable&#8217;; next; }<br />
$rp-&gt;parse($xml);<br />
my %pointer = ();<br />
$pointer{&#8216;COUNT&#8217;} = $rp-&gt;count();<br />
if ($pointer{&#8216;COUNT&#8217;} == 0) { next; }<br />
$pointer{&#8216;TITLE&#8217;} = $rp-&gt;get(title);<br />
$pointer{&#8216;URL&#8217;} = $rp-&gt;get(url);<br />
$pointer{&#8216;DESC&#8217;} = $rp-&gt;get(description);<br />
$pointer{&#8216;HASH&#8217;} = $rp-&gt;get(0); # HASH contains $HASH{&#8216;title&#8217;, &#8216;url&#8217; and &#8216;description&#8217;}<br />
push @preRoll, \%pointer; # Passing an array of anonymous hashes<br />
}</p>
<p>$c=1;<br />
foreach $blog(@preRoll) {<br />
my $var = &#8220;blogRoll&#8221; . $c;<br />
my $postHASH = $$blog{&#8216;HASH&#8217;}; # dereferencing rp-&gt;get() HASH<br />
$$var = &#8216;  <strong><a style="font-weight: bolder;" href="' . $$blog{'URL'}. '">&#8216; . $$blog{&#8216;TITLE&#8217;} . &#8216;</a></strong><br />
&#8216; . &#8220;\n&#8221;;<br />
$$var .= &#8216;  <a href="' . $$postHASH{'url'} .'">&#8216; . $$postHASH{&#8216;title&#8217;} . &#8216;</a>&#8216;;<br />
$c++;<br />
push @blogRoll, $$var;<br />
}<br />
return \@blogRoll;<br />
}</p>
<p>my $blogRoll = &amp;blogRoller;</p>
<p>print $$blogRoll[0] . &#8220;\n\n&#8221;;<br />
print $$blogRoll[1] . &#8220;\n\n&#8221;;<br />
print $$blogRoll[2]. &#8220;\n\n&#8221;;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://cml-industries.com/thought/?feed=rss2&#038;p=72</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Best Laptop Bag.  Evar.</title>
		<link>http://cml-industries.com/thought/?p=68</link>
		<comments>http://cml-industries.com/thought/?p=68#comments</comments>
		<pubDate>Thu, 19 Feb 2009 15:29:37 +0000</pubDate>
		<dc:creator>johnwu</dc:creator>
				<category><![CDATA[Gear]]></category>

		<guid isPermaLink="false">http://cml-industries.com/thought/?p=68</guid>
		<description><![CDATA[<p>Cue evil laugh.</p> <p>Whats the perfect compliment to my beautiful new MacBook?</p> <p>&#160;</p> <p>This wicked item just showed up on my door:</p> <p><a href="http://www.booqbags.com/Laptop-Bags/Vyper-exo-M">http://www.booqbags.com/Laptop-Bags/Vyper-exo-M</a></p> <p>Perfect!</p>]]></description>
			<content:encoded><![CDATA[<div class="mceTemp">
<div id="attachment_173" class="wp-caption alignleft" style="width: 310px"><a href="http://cml-industries.com/thought/wp-content/uploads/2009/02/VX7b1s.jpg"><img class="size-medium wp-image-173" title="Vyper" src="http://cml-industries.com/thought/wp-content/uploads/2009/02/VX7b1s-300x201.jpg" alt="" width="300" height="201" /></a><p class="wp-caption-text">Booq Vyper Exo</p></div>
</div>
<p>Cue evil laugh.</p>
<p>Whats the perfect compliment to my beautiful new MacBook?</p>
<p>&nbsp;</p>
<p>This wicked item just showed up on my door:</p>
<p><a href="http://www.booqbags.com/Laptop-Bags/Vyper-exo-M">http://www.booqbags.com/Laptop-Bags/Vyper-exo-M</a></p>
<p>Perfect!</p>
]]></content:encoded>
			<wfw:commentRss>http://cml-industries.com/thought/?feed=rss2&#038;p=68</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>#1</title>
		<link>http://cml-industries.com/thought/?p=64</link>
		<comments>http://cml-industries.com/thought/?p=64#comments</comments>
		<pubDate>Tue, 17 Feb 2009 02:41:30 +0000</pubDate>
		<dc:creator>johnwu</dc:creator>
				<category><![CDATA[Drivel]]></category>

		<guid isPermaLink="false">http://cml-industries.com/thought/?p=64</guid>
		<description><![CDATA[<p>Reading Mama&#8217;s blog logs tonight I noticed a cool referrer: <a href="http://search.msn.com/results.aspx?srch=105&#38;FORM=AS5&#38;q=HANDPAINTED+ONESIES">http://search.msn.com/results.aspx?srch=105&#38;FORM=AS5&#38;q=HANDPAINTED+ONESIES</a></p> <p>oooooo&#8230; Guess who comes up as NUMBER 1 in Microsoft&#8217;s Live Search results for Handpainted Onesies?!?</p> <p>HAHAHHAHA</p> <p>MAMA! <a href="http://www.babyluxdesigns.com/">http://www.babyluxdesigns.com/</a></p>]]></description>
			<content:encoded><![CDATA[<p>Reading Mama&#8217;s blog logs tonight I noticed a cool referrer: <a href="http://search.msn.com/results.aspx?srch=105&amp;FORM=AS5&amp;q=HANDPAINTED+ONESIES">http://search.msn.com/results.aspx?srch=105&amp;FORM=AS5&amp;q=HANDPAINTED+ONESIES</a></p>
<p>oooooo&#8230; Guess who comes up as NUMBER 1 in Microsoft&#8217;s Live Search results for Handpainted Onesies?!?</p>
<p>HAHAHHAHA</p>
<p>MAMA! <a href="http://www.babyluxdesigns.com/">http://www.babyluxdesigns.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://cml-industries.com/thought/?feed=rss2&#038;p=64</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Just for Uncle Joel&#8230;</title>
		<link>http://cml-industries.com/thought/?p=58</link>
		<comments>http://cml-industries.com/thought/?p=58#comments</comments>
		<pubDate>Mon, 19 Jan 2009 16:37:43 +0000</pubDate>
		<dc:creator>johnwu</dc:creator>
				<category><![CDATA[Drivel]]></category>

		<guid isPermaLink="false">http://cml-industries.com/thought/?p=58</guid>
		<description><![CDATA[<p>A regular blog post</p>]]></description>
			<content:encoded><![CDATA[<p>A regular blog post</p>
<div id="attachment_59" class="wp-caption alignnone" style="width: 310px"><img class="size-medium wp-image-59" title="dsc001701" src="http://cml-industries.com/thought/wp-content/uploads/2009/01/dsc001701-300x225.jpg" alt="Captain to Cowboy" width="300" height="225" /><p class="wp-caption-text">Captain to Cowboy</p></div>
]]></content:encoded>
			<wfw:commentRss>http://cml-industries.com/thought/?feed=rss2&#038;p=58</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Google oddity</title>
		<link>http://cml-industries.com/thought/?p=55</link>
		<comments>http://cml-industries.com/thought/?p=55#comments</comments>
		<pubDate>Mon, 05 Jan 2009 18:43:35 +0000</pubDate>
		<dc:creator>johnwu</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://cml-industries.com/thought/?p=55</guid>
		<description><![CDATA[<p>Google for the letter e. WTF?</p>]]></description>
			<content:encoded><![CDATA[<p>Google for the letter e.  WTF?</p>
]]></content:encoded>
			<wfw:commentRss>http://cml-industries.com/thought/?feed=rss2&#038;p=55</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Best quote evar:</title>
		<link>http://cml-industries.com/thought/?p=42</link>
		<comments>http://cml-industries.com/thought/?p=42#comments</comments>
		<pubDate>Tue, 05 Aug 2008 15:05:23 +0000</pubDate>
		<dc:creator>johnwu</dc:creator>
				<category><![CDATA[Drivel]]></category>

		<guid isPermaLink="false">http://cml-industries.com/thought/?p=42</guid>
		<description><![CDATA[<p>I&#8217;m stupid. You&#8217;re smart. I was wrong. You were right. You&#8217;re the best. I&#8217;m the worst. You&#8217;re very good-looking. I&#8217;m not very attractive.</p> <p>&#8211;Happy Gilmore</p>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m stupid. You&#8217;re smart. I was wrong. You were right. You&#8217;re the best. I&#8217;m the worst. You&#8217;re very good-looking. I&#8217;m not very attractive.</p>
<p>&#8211;Happy Gilmore</p>
]]></content:encoded>
			<wfw:commentRss>http://cml-industries.com/thought/?feed=rss2&#038;p=42</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Google as a Stock Ticker</title>
		<link>http://cml-industries.com/thought/?p=35</link>
		<comments>http://cml-industries.com/thought/?p=35#comments</comments>
		<pubDate>Sat, 02 Aug 2008 03:45:20 +0000</pubDate>
		<dc:creator>johnwu</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://cml-industries.com/thought/?p=35</guid>
		<description><![CDATA[<p>So I am working on neat trading application and thought I would share a snippet of Perl code I just wrote. Its usage will be in a BioTech trading application I am authoring for my own profiteering and it currently is limited to only listed stocks, but its a start</p> <p><br /> # Does not [...]]]></description>
			<content:encoded><![CDATA[<p>So I am working on neat trading application and thought I would share a snippet of Perl code I just wrote. Its usage will be in a BioTech trading application I am authoring for my own profiteering and it currently is limited to only listed stocks, but its a start</p>
<p><code><br />
# Does not work with OTC or BB STOCKS!</p>
<p>use LWP::UserAgent;<br />
my $ua = new LWP::UserAgent;</p>
<p>my @stocks=('BPUR', 'CGEN', 'CRA', 'CRIS', 'DCGN', 'ENCO', 'EPIX', 'GENR', 'IDMI<br />
', 'SLXP');</p>
<p>$ua->agent('Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/20<br />
08070208 Firefox/3.0.1');</p>
<p>foreach $stock(@stocks) {<br />
        my $query='http://www.google.com/search?q=stocks%3A'.$stock;<br />
        my $response = $ua->get($query);<br />
        my $content = $response->content;<br />
        my @lines = split /\n/, $content;</p>
<p>        foreach (@lines) {<br />
                my $m1=$stock.'_l';<br />
                my $m2=$stock.'_lt';<br />
                if (m!$m1!) {<br />
                        s/&#038;nbsp\;//g;<br />
                        @breaks=split /></, $_;<br />
                        foreach (@breaks){<br />
                                chomp();<br />
                                if (m!$m1\W!) {<br />
                                        m!>(\d+\.\d+)<!;<br />
                                        $stock->{ 'PRICE' }=$1;<br />
                                }<br />
                                elsif (m!$m2\W!) {<br />
                                        m!>(.*)<!;<br />
                                        $stock->{ 'DATE' }=$1;<br />
                                }<br />
                        }<br />
                }<br />
        }<br />
        print "$stock :: $stock->{'PRICE'} @ $stock->{'DATE'}\n";<br />
}</code></p>
]]></content:encoded>
			<wfw:commentRss>http://cml-industries.com/thought/?feed=rss2&#038;p=35</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

