<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.1.3" -->
<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/"
	>

<channel>
	<title>Hoke's Ramblings</title>
	<link>http://www.hokemon.com/wordpress</link>
	<description>Just what the name says!</description>
	<pubDate>Wed, 26 Nov 2008 13:19:23 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.3</generator>
	<language>en</language>
			<item>
		<title>Websites that are too smart</title>
		<link>http://www.hokemon.com/wordpress/2008/11/26/websites-that-are-too-smart/</link>
		<comments>http://www.hokemon.com/wordpress/2008/11/26/websites-that-are-too-smart/#comments</comments>
		<pubDate>Wed, 26 Nov 2008 13:08:26 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Tech]]></category>

		<category><![CDATA[Travel]]></category>

		<guid isPermaLink="false">http://www.hokemon.com/wordpress/2008/11/26/websites-that-are-too-smart/</guid>
		<description><![CDATA[I wrote a post ages ago saying how cool it was that websites could figure out where you are based on your IP address. The downside of this is that they sometimes mistakenly assume you speak Kazakh, just because you happen to be sitting in a hotel room in central Asia.

What ticks me off even [...]]]></description>
			<content:encoded><![CDATA[<p>I wrote a post ages ago saying how cool it was that websites could figure out where you are based on your IP address. The downside of this is that they sometimes mistakenly assume you speak Kazakh, just because you happen to be sitting in a hotel room in central Asia.<br />
<img src="http://www.hokemon.com/wordpress/wp-content/uploads/2008/11/kazakh-search-results.PNG" title="kazakh-search-results.PNG" alt="kazakh-search-results.PNG" float="right" align="middle" /><br />
What ticks me off even more is that to try and find the English option, there&#8217;s nothing that actually says &#8220;English&#8221;. So not only do they assume you can speak the local lingo, you know what your own language is called in it. I had to resort to &#8220;Pirate&#8221; and then after that I could choose English in &#8220;Me Likes an&#8217; Dislikes&#8221;.<br />
<img src="http://www.hokemon.com/wordpress/wp-content/uploads/2008/11/select-pirate.PNG" title="select-pirate.PNG" alt="select-pirate.PNG" align="absmiddle" /></p>
<p>EDIT: I subsquently found a &#8220;Google.com in English&#8221; link at the bottom of the pge, but the main point of my rant stands - language selections usually tend to be based on the langugage you&#8217;re stuck in at the moment, which sometimes makes it very hard to work your way out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hokemon.com/wordpress/2008/11/26/websites-that-are-too-smart/feed/</wfw:commentRss>
		</item>
		<item>
		<title>WebMarshal Fail</title>
		<link>http://www.hokemon.com/wordpress/2008/11/22/webmarshall-fail/</link>
		<comments>http://www.hokemon.com/wordpress/2008/11/22/webmarshall-fail/#comments</comments>
		<pubDate>Sat, 22 Nov 2008 06:15:52 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Tech]]></category>

		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://www.hokemon.com/wordpress/2008/11/22/webmarshall-fail/</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><img src='http://www.hokemon.com/wordpress/wp-content/uploads/2008/11/webmrshall-hokemon1.PNG' alt='webmrshall-hokemon1.PNG' /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hokemon.com/wordpress/2008/11/22/webmarshall-fail/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Picasa 3 finally gets Ken Burns effect</title>
		<link>http://www.hokemon.com/wordpress/2008/09/29/picasa-3-finally-gets-ken-burns-effect/</link>
		<comments>http://www.hokemon.com/wordpress/2008/09/29/picasa-3-finally-gets-ken-burns-effect/#comments</comments>
		<pubDate>Mon, 29 Sep 2008 16:28:10 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.hokemon.com/wordpress/2008/09/29/picasa-3-finally-gets-ken-burns-effect/</guid>
		<description><![CDATA[I&#8217;ve long been a fan of Google&#8217;s Picasa image editing/viewing software, but have found it lacking in one area; The slide shows were very static, and lacking the dynamic pizazz of iPhoto&#8217;s &#8220;Ken Burns&#8221; effect.
Well the beta release of Picasa 3 has included this much anticipated (to me at least) feature! It has the rather [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://picasa.google.com/images/logo.jpg" alt="" align=right/>I&#8217;ve long been a fan of Google&#8217;s <a href="http://picasa.google.com/">Picasa</a> image editing/viewing software, but have found it lacking in one area; The slide shows were very static, and lacking the dynamic pizazz of iPhoto&#8217;s &#8220;<a href="http://en.wikipedia.org/wiki/Ken_burns_effect">Ken Burns</a>&#8221; effect.</p>
<p>Well the beta release of Picasa 3 has included this much anticipated (to me at least) feature! It has the rather inane name of &#8220;Pan and Zoom&#8221;, but I guess it will avoid some lawsuits.</p>
<p>Another nifty addition (I don&#8217;t know if Picasa 2 had this though, I just discovered it by accident) - If you have dual monitors, and activate the Picasa screensaver, it will show separate images on each screen - now you can view your Lolcats in stereo!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hokemon.com/wordpress/2008/09/29/picasa-3-finally-gets-ken-burns-effect/feed/</wfw:commentRss>
		</item>
		<item>
		<title>My Dogs Are Officially 59% Cute</title>
		<link>http://www.hokemon.com/wordpress/2008/07/31/my-dogs-are-officially-59-cute/</link>
		<comments>http://www.hokemon.com/wordpress/2008/07/31/my-dogs-are-officially-59-cute/#comments</comments>
		<pubDate>Thu, 31 Jul 2008 15:21:09 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://www.hokemon.com/wordpress/2008/07/31/my-dogs-are-officially-59-cute/</guid>
		<description><![CDATA[Vote for Connor on PuppyWar!Vote for Sheba on PuppyWar!As of today, they&#8217;ve each won 59% of their PuppyWars. I&#8217;m so proud.

]]></description>
			<content:encoded><![CDATA[<p><a target="_blank" href="http://puppywar.com/stats.php?id=52099"><img border="0" src="http://puppywar.com/images/cards/52099.jpg"/></a><br/>Vote for <a target="_blank" href="http://puppywar.com/stats.php?id=52099">Connor</a> on <a target="_blank" href="http://puppywar.com">PuppyWar</a>!<a target="_blank" href="http://puppywar.com/stats.php?id=52098"><img border="0" src="http://puppywar.com/images/cards/52098.jpg"/></a><br/>Vote for <a target="_blank" href="http://puppywar.com/stats.php?id=52098">Sheba</a> on <a target="_blank" href="http://puppywar.com">PuppyWar</a>!<br />As of today, they&#8217;ve each won 59% of their <a target="_blank" href="http://puppywar.com">PuppyWars</a>. I&#8217;m so proud.<br />
<br clear=all></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hokemon.com/wordpress/2008/07/31/my-dogs-are-officially-59-cute/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Lolz</title>
		<link>http://www.hokemon.com/wordpress/2008/07/16/lolz/</link>
		<comments>http://www.hokemon.com/wordpress/2008/07/16/lolz/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 16:04:17 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Entertainment]]></category>

		<guid isPermaLink="false">http://www.hokemon.com/wordpress/2008/07/16/lolz/</guid>
		<description><![CDATA[moar funny pictures
]]></description>
			<content:encoded><![CDATA[<p><a href='http://mine.icanhascheezburger.com/view.aspx?ciid=1555041' ><img src='http://images.icanhascheezburger.com/completestore/2008/7/16/128606976445860409.jpg' alt='funny pictures' /></a><br />moar <a href='http://icanhascheezburger.com'>funny pictures</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hokemon.com/wordpress/2008/07/16/lolz/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Where&#8217;s Chris?</title>
		<link>http://www.hokemon.com/wordpress/2008/07/03/wheres-chris/</link>
		<comments>http://www.hokemon.com/wordpress/2008/07/03/wheres-chris/#comments</comments>
		<pubDate>Thu, 03 Jul 2008 12:55:00 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://www.hokemon.com/wordpress/2008/07/03/wheres-chris/</guid>
		<description><![CDATA[View Larger Map
]]></description>
			<content:encoded><![CDATA[<p><iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps/ms?ie=UTF8&amp;hl=en&amp;t=h&amp;s=AARTsJoqo4jntacZKigM5fWC3YeWUoit1A&amp;msa=0&amp;msid=117018381264878249933.0004511dfa3847efdbfd9&amp;ll=-33.318767,115.633464&amp;spn=0.012551,0.018239&amp;z=15&amp;output=embed"></iframe><br /><small><a href="http://maps.google.com/maps/ms?ie=UTF8&amp;hl=en&amp;t=h&amp;msa=0&amp;msid=117018381264878249933.0004511dfa3847efdbfd9&amp;ll=-33.318767,115.633464&amp;spn=0.012551,0.018239&amp;z=15&amp;source=embed" style="color:#0000FF;text-align:left">View Larger Map</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hokemon.com/wordpress/2008/07/03/wheres-chris/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Marvellous Movies!</title>
		<link>http://www.hokemon.com/wordpress/2008/06/19/marvelous-movies/</link>
		<comments>http://www.hokemon.com/wordpress/2008/06/19/marvelous-movies/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 16:13:02 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Entertainment]]></category>

		<guid isPermaLink="false">http://www.hokemon.com/wordpress/2008/06/19/marvelous-movies/</guid>
		<description><![CDATA[Hulk (the incredible one) kick&#8217;d asz! Then I saw Iron Man, it kick&#8217;d moar asz!!1
For Iron Man, make sure you stay till after the credits.
And if you haven&#8217;t seen either, see Iron Man first.
]]></description>
			<content:encoded><![CDATA[<p><em>Hulk </em>(the incredible one) kick&#8217;d asz! Then I saw <em>Iron Man</em>, it kick&#8217;d moar asz!!1</p>
<p>For Iron Man, make sure you stay till after the credits.</p>
<p>And if you haven&#8217;t seen either, see Iron Man first.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hokemon.com/wordpress/2008/06/19/marvelous-movies/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Wake On LAN Through the Internet</title>
		<link>http://www.hokemon.com/wordpress/2008/06/14/wake-on-lan-through-the-internet/</link>
		<comments>http://www.hokemon.com/wordpress/2008/06/14/wake-on-lan-through-the-internet/#comments</comments>
		<pubDate>Sat, 14 Jun 2008 17:09:41 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.hokemon.com/wordpress/2008/06/14/wake-on-lan-through-the-internet/</guid>
		<description><![CDATA[Wow. Four posts in as many days! This blog is smokin&#8217;!
Firstly, I&#8217;d like to say that to add to the super l33tness of this post, I used WOL and VNC from halfway around the globe to get local admin access to my router to check all the settings necessary for this to work. l33t.
Wake on [...]]]></description>
			<content:encoded><![CDATA[<p>Wow. Four posts in as many days! This blog is smokin&#8217;!</p>
<p>Firstly, I&#8217;d like to say that to add to the super l33tness of this post, I used WOL and VNC from halfway around the globe to get local admin access to my router to check all the settings necessary for this to work. l33t.</p>
<p>Wake on LAN is a very useful tool that allows you to send what is known as a &#8216;magic packet&#8217; over a LOCAL area network to boot up a specific PC, whose MAC address appears in the packet. Googling this will give you any number of applications and tutorials to accomplish this. Getting this to work from outside your LAN however, is a tad trickier.<br />
 <a href="http://www.hokemon.com/wordpress/2008/06/14/wake-on-lan-through-the-internet/#more-213" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hokemon.com/wordpress/2008/06/14/wake-on-lan-through-the-internet/feed/</wfw:commentRss>
		</item>
		<item>
		<title>DIY Email to SMS Gateway</title>
		<link>http://www.hokemon.com/wordpress/2008/06/14/diy-email-to-sms-gateway/</link>
		<comments>http://www.hokemon.com/wordpress/2008/06/14/diy-email-to-sms-gateway/#comments</comments>
		<pubDate>Fri, 13 Jun 2008 23:57:35 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.hokemon.com/wordpress/2008/06/14/diy-email-to-sms-gateway/</guid>
		<description><![CDATA[Well, despite the &#8216;Wake on LAN&#8217; being the &#8216;popular&#8217; choice for my first how-to, as Murphy would have it, it&#8217;s not working now for some inexplicable reason. Hence the subject of this post will be getting emails to be automagically rerouted to your cell-phone by SMS.
Firstly, you unfortunately need to pay somebody to send you [...]]]></description>
			<content:encoded><![CDATA[<p>Well, despite the &#8216;Wake on LAN&#8217; being the &#8216;popular&#8217; choice for my first how-to, as Murphy would have it, it&#8217;s not working now for some inexplicable reason. Hence the subject of this post will be getting emails to be automagically rerouted to your cell-phone by SMS.</p>
<p>Firstly, you unfortunately need to pay somebody to send you SMSes. Good choices in South Africa are <a href="http://www.winsms.co.za/?ref=1188">WinSMS</a> or <a href="http://www.bulksms.com">BulkSMS</a>. In both cases you sign up for an account and prepay a certain amount of SMSes. The example below uses BulkSMS.</p>
<p>Next, you need to set up a mail forwarder to execute a php script. I&#8217;m not entirely sure it&#8217;s possible with all hosts, but it is with <a href="http://www.site5.com/in.php?id=17650">Site5</a>.</p>
<p>Create a mail account (I get bounce errors if the account doesn&#8217;t actually exist) eg &#8220;sms2me@mydomain.com&#8221;. Instead of forwarding to another email address, specify the following:</p>
<p><code>| /usr/local/bin/php /home/your_home_dir/path_to/sms2mail.php</code></p>
<p>Next you need the script to actually take the mail passed to it and ship it off through your third party gateway.</p>
<p><em>Disclaimer</em>: This is code was pulled in from all over until I got the cursed thing to work. Requires curl libraries to do the form post. No warranties express, implied or otherwise apply. Some emails still come through with rich formatting etc, which uses up all your 160 available characters. I need to look into this at some stage.</p>
<p><code>
<pre>#!/usr/bin/php
&lt;?php
   // read from stdin
   $fd = fopen("php://stdin", "r");
   $email = "";
   while (!feof($fd)) {
      $email .= fread($fd, 1024);
   }
   fclose($fd);

   // handle email
   $lines = explode(&#8221;n&#8221;, $email);

   // empty vars
   $from = &#8220;&#8221;;
   $subject = &#8220;&#8221;;
   $headers = &#8220;&#8221;;
   $message = &#8220;&#8221;;
   $splittingheaders = true;

   for ($i=0; $i < count($lines); $i++) {
      if ($splittingheaders) {
         // this is a header
         $headers .= $lines[$i]."n";

         // look out for special headers
         if (preg_match(&#8221;/^Subject: (.*)/&#8221;, $lines[$i], $matches)) {
            $subject = $matches[1];
         }
         if (preg_match(&#8221;/^From: (.*)/&#8221;, $lines[$i], $matches)) {
            $from = $matches[1];
         }
      } else {
         // not a header, but message
         $message .= $lines[$i].&#8221;n&#8221;;
      }

      if (trim($lines[$i])==&#8221;") {
         // empty line, header section has ended
         $splittingheaders = false;
      }
   }

   $headers2 = &#8220;From: $fromrn&#8221; .
      &#8220;Reply-To: $fromrn&#8221;;

   mail(&#8217;###@gmail.com&#8217;, &#8220;[SMS] &#8220;.$subject, $message, $headers2);

   $message = substr($message,0,155); // make sure it fits

   $ch = curl_init();
   curl_setopt($ch, CURLOPT_URL, &#8216;http://bulksms.2way.co.za:5567/eapi/submission/send_sms/2/2.0&#8242;);
   curl_setopt ($ch, CURLOPT_POST, 1);
   $post_fields = &#8220;username=###&#038;password=###&#038;message=$message&#038;msisdn=27#########&#8221;;
   curl_setopt ($ch, CURLOPT_POSTFIELDS, $post_fields);
   curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
   $response_string = curl_exec($ch);
   curl_close($ch);
?&gt;</pre>
<p></code><br />
Now back to getting my wake on wan to work again&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hokemon.com/wordpress/2008/06/14/diy-email-to-sms-gateway/feed/</wfw:commentRss>
		</item>
		<item>
		<title>What is this blog for?</title>
		<link>http://www.hokemon.com/wordpress/2008/06/12/what-is-this-blog-for/</link>
		<comments>http://www.hokemon.com/wordpress/2008/06/12/what-is-this-blog-for/#comments</comments>
		<pubDate>Thu, 12 Jun 2008 11:09:44 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.hokemon.com/wordpress/2008/06/12/what-is-this-blog-for/</guid>
		<description><![CDATA[Ok, so clearly I (and you, the blessed reader) aren&#8217;t getting enough bang for my buck, blog-wise, so why on earth did I renew for another year, you might ask?
Well, besides blogging, I&#8217;ve hacked together a couple of useful server-side scripts over the years that I still find immensely useful, in my personal capacity, reader-be-damned. [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, so clearly I (and you, the blessed reader) aren&#8217;t getting enough bang for my buck, blog-wise, so why on earth did I renew for another year, you might ask?</p>
<p>Well, besides blogging, I&#8217;ve hacked together a couple of useful server-side scripts over the years that I still find immensely useful, in my personal capacity, reader-be-damned. Here are a few of them:</p>
<ol>
<li>Screenscraping <a href="http://www.tvsite.co.za">TVsite.co.za</a> to get the day&#8217;s telly viewing on one page, <a href="http://hokemon.com/scripts/tv.php">one click</a> from my bookmarks toolbar</li>
<li>Sending Wake-on-Lan &#8220;magic packets&#8221; to my router, which passes them on to my desktop at home, so that I can boot up my PC from anywhere in the world to use VNC, with just a click of one of my (non-shared) del.ico.us bookmarks.</li>
<li>Automatically emailing my gmail account when above happens, so I know my PC&#8217;s booted up properly (ok, this has nothing to do with my webhosting, but my ISP&#8217;s open mail server)</li>
<li>Emails to a private account on my domain get forwarded through an SMS gateway to my number, so I can get booking confirmations etc sent straight to my phone.</li>
</ol>
<p>A couple of these, particularly the Wake-on-Lan and email gateway story were a bit of a headache to get to work, so if people are interested, I may actually write some blog-entries with how-tos!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hokemon.com/wordpress/2008/06/12/what-is-this-blog-for/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
