<?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>OhRyan.ca &#187; HowTo</title>
	<atom:link href="http://ohryan.ca/blog/category/howto/feed/" rel="self" type="application/rss+xml" />
	<link>http://ohryan.ca/blog</link>
	<description>Canadian Tech News, Hacks &#38; How To</description>
	<lastBuildDate>Mon, 06 Sep 2010 19:19:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How To: Watch Hulu in Canada. The Definitive Guide.</title>
		<link>http://ohryan.ca/blog/2010/07/04/how-to-watch-hulu-in-canada-the-definitive-guide/</link>
		<comments>http://ohryan.ca/blog/2010/07/04/how-to-watch-hulu-in-canada-the-definitive-guide/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 03:46:45 +0000</pubDate>
		<dc:creator>RyanN</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[hulu]]></category>
		<category><![CDATA[tv]]></category>

		<guid isPermaLink="false">http://ohryan.ca/blog/?p=643</guid>
		<description><![CDATA[Unfortunately, the internets report this method no longer works Disclaimer: The method described below almost certainly violates Hulu&#8217;s Terms of Use. I do not know the legal ramifications of breaking these TOU. I am not suggesting that you actually follow my fictional instructions. I&#8217;ve finally cracked the nut on watching Hulu in Canada. At the [...]]]></description>
			<content:encoded><![CDATA[<h1>Unfortunately, the internets report this method no longer works <img src='http://ohryan.ca/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </h1>
<p><strike><br />
<strong>Disclaimer: </strong>The method described below almost certainly violates Hulu&#8217;s Terms of Use. I do not know the legal ramifications of breaking these TOU. I am not suggesting that you actually follow my fictional instructions.</p>
<hr />I&#8217;ve finally cracked the nut on watching Hulu in Canada. At the time of writing, this method is 100% successful; I&#8217;m confident the method also works internationally, but I have not been able to get any corroboration. Before you read on, let me warn you that these instructions require basic tinkering skill on OS X, Linux and routers; <strong><em>advanced</em> </strong>tinkering skill on Windows. At the bare minimum, you&#8217;ll need to know how to open a command prompt/terminal window in your operating system.</p>
<h2>Instructions:</h2>
<ol>
<li><strong> </strong>Open Firefox. The workaround requires a Firefox add-on, so unfortunately the method is Firefox-only at this point in time.</li>
<li>Install the &#8220;Modify Header&#8221; add-on, download it here: <a href="http://addons.mozilla.org/en-US/firefox/addon/967" target="_blank">http://addons.mozilla.org/en-US/firefox/addon/967</a></li>
<li>Configure the add-on using the <a href="http://ohryan.ca/blog/2009/08/15/how-to-watch-comedy-central-videos-from-canada/" target="_blank">instructions I previously posted for watching Comedy Central in Canada</a>. Here&#8217;s a quick reference image: <a href="http://imgur.com/Feb4" target="_blank">http://imgur.com/Feb4</a> <strong> </strong><strong>VERY IMPORTANT NOTE: </strong>The IP address referenced in the instructions &#8220;12.13.14.15&#8243; is being actively blocked by Hulu, You&#8217;ll need to replace it with a known American IP address. Ask an American friend for their IP or see <a href="#appendixa">Appendix A</a> for instructions on how to find a US IP address. The address you use should not affect the method, it&#8217;s merely being used to trick a portion of Hulu&#8217;s geo-location algorithm.<br />
<strong>NOTE:</strong> These settings interfere with other sites that you WANT thinking you&#8217;re from Canada. You can always disable the rule in modify headers when not using Hulu.</li>
<li>Block port 1935.<br />
This is the real breakthrough I came across. Turns out Hulu&#8217;s flash video player attempts a direct connection to your computer via the RTMP port to verify your real IP.  When you block this port it the falls back to HTTP allowing the video to play. Blocking ports is fairly straightforward on Mac and Linux, but looks to be somewhat difficult on Windows. See <a href="#appendixb">Appendix B</a> for complete Port blocking instructions for all OSes.</li>
</ol>
<p><strong>Notes:</strong></p>
<ul>
<li>If you are able to navigate Hulu.com, load a video and watch the commercial but then get a blank player or an error message afterwords, then you have not properly blocked the port.</li>
<li>If you are not even able to navigation Hulu.com, you have misconfiguration the modify headers plugin, or you are using an IP address Hulu is actively blocking.</li>
<li>This work-around also works for other sites that have video players powered by Hulu on the backend. Discovery Channel for example.</li>
<li>It&#8217;s likely that non-Hulu-related restricted video websites may use a similar RTMP verification method will not function. You may want to disable the Port block when not watching Hulu. See <a href="#appendixc">Appendix C</a> for instructions.</li>
<li>It&#8217;s unclear whether the holes that allow this workaround are a bug or a feature. My guess is that closing them my results in certain IP on US soil to be blocked inadvertently.</li>
</ul>
<p>Thanks to <a href="http://blog.jason.pollock.ca/" target="_blank">Jason Pollock</a>, who&#8217;s <a href="http://entertainment.slashdot.org/comments.pl?sid=1424291&amp;cid=29931067" target="_blank">slashdot comment</a> pointed me in the right direction; and the <a href="http://www.reddit.com/r/canada/" target="_blank">Reddit /r/Canada</a> community &#8211; especially <a href="http://www.reddit.com/user/MarshallX">MarshallX</a> and <a href="http://www.reddit.com/user/got_milk4">got_milk4</a> &#8211; who helped me out with <a href="http://www.reddit.com/r/canada/comments/ckfcp/hulu_breakthrough_i_am_watching_hulu_in_canada/" target="_blank">my initial instructions</a>.</p>
<hr />
<h2><strong>Thoughts about Hulu:</strong></h2>
<p>In the past I&#8217;ve had some limited experience checking out Hulu in hotel rooms on trips to The States, I&#8217;ve generally been impressed by it and I&#8217;m sure I&#8217;ve written about my impressions in previous  <a href="http://ohryan.ca/blog/tag/tv/" target="_self">TV</a> posts. After a few days of &#8220;real world&#8221; usage, I&#8217;ve changed my mind a little. I no longer see Hulu as this Holy Grail of online TV watching experiences that Canadians could only dream of. It&#8217;s not a <em>real</em> alternative to torrenting and it&#8217;s only somewhat better than <a href="http://www.rogersondemand.com/" target="_blank">Rogers On Demand</a> or the various individual Canadian network TV experiences.</p>
<p>The selection of available shows is (I hesitate to say &#8220;terrible,&#8221; Hulu has a <strong>metric tonne</strong> of content) not great, I was not able to find full episode of any recently aired show I  wanted to watch. As far as I could tell, if the show is new Hulu only has short clips. On the other hand, I was able to find full series of shows I&#8217;d have difficulty finding in torrents or elsewhere online &#8211; like Sliders and Firefly. Hulu&#8217;s movie selection is not even worth mentioning.</p>
<p>Aside from the selection, I was astonished by the amount of ads. Full length shows typically have a 15-90 second pre-roll ad, plus network ID, plus 15-60 second interstitial ads during the show at broadcast TV; due to the heaps of praise Hulu generally receives in the Tech media, I was under the impression that they served little to no advertising. Granted it&#8217;s less than regular TV, but more than I&#8217;d accidentally watch on a PVR and it&#8217;s more than the 0 I&#8217;d see in a torrent.</p>
<p>The TV industry needs to find a better way to make money.</p>
<hr /><a name="appendixa"></a></p>
<h3><strong>Appendix A. How to find a US IP address.</strong></h3>
<p><strong> </strong>As I mentioned above in step 3, the X-Forwarded-For header requires a valid US IP address. It&#8217;s best if you use a unique-ish IP address, instead of the ones listed in my example. There are 2 simple ways to find a US IP address.</p>
<p><strong>Method 1) </strong><br />
Ping a known US domain name, record the result. For example:</p>
<pre>PING google.com (74.125.95.104): 56 data bytes</pre>
<p>Downside: it&#8217;s hard to know for if the server that responds is actually located in the USA. If it works, run with it.</p>
<p><strong>Method 2) </strong><br />
Pick a random<a href="http://www.no-ip.com/support/faq/EN/dynamic_ddns/what_is_a_valid_ip_address.html" target="_blank"> valid IP address</a> for a known US Organization. A few examples:<br />
<span style="text-decoration: underline;">AT&amp;T:</span> 12.0.0.0-12.255.255.255, 32.0.0.0 &#8211; 32.255.255.255<br />
<span style="text-decoration: underline;">MIT:</span> 18.0.0.0-18.255.255.255<br />
<span style="text-decoration: underline;">Xerox:</span> 13.0.0.0-13.255.255.255</p>
<p>Downsides: none</p>
<p><a name="appendixb"></a></p>
<h3><strong>Appendix B. Blocking Ports.</strong></h3>
<p><strong> </strong>This is the tricky part. If you have a router or firewall that gives you a simple interface for blocking ports, I&#8217;d suggest using it, rather than  OS-level configuration. Anyways, here are the instructions for various OSes:</p>
<p><strong>Mac OS X:</strong></p>
<pre><code>sudo ipfw add 0 deny tcp from any to any 1935
sudo ipfw add 0 deny udp from any to any 1935</code></pre>
<p><strong>Third-party firmware routers (Tomato, DD-WRT, OpenWRT):</strong></p>
<pre><code>iptables -t nat -A PREROUTING -p tcp --dport 1935 -j DROP
iptables -t nat -A PREROUTING -p udp --dport 1935 -j DROP
</code></pre>
<p><strong>Windows XP, Vista, 7: </strong><br />
<a href="http://docs.google.com/Doc?docid=0AY-zDhP4MbQ1ZGs5aHhnal8xZzI2MmRtZDc&amp;hl=en&amp;authkey=CPH9xc0I" target="_blank">See section 3 of MarshallX&#8217;s stellar Google doc</a> for instructions. Based on comments I&#8217;ve seen on the Reddit post, this method is a little finicky.</p>
<p><strong>Linux:<br />
</strong></p>
<pre><code>iptables -A INPUT -p tcp --dport 1935 -j DROP
iptables -A INPUT -p udp --dport 1935 -j DROP</code></pre>
<p><strong><a name="appendixc"></a><br />
</strong></p>
<h3><strong> <strong>Appendix C. Undoing the Block.</strong></strong></h3>
<p><strong><strong>Mac OSX: </strong></strong></p>
<p>If these are the only firewall rules you&#8217;ve ever added:</p>
<pre><code>sudo ipfw delete 00100
sudo ipfw delete 00200
</code></pre>
<p>If you&#8217;ve got other rules in the firewall run:</p>
<pre><code>sudo ipfw list
</code></pre>
<p>Output will look similar to this:</p>
<pre><code>00100 deny tcp from any to any dst-port 1935
00200 deny udp from any to any dst-port 1935
65535 allow ip from any to any
</code></pre>
<p>Use that first number as the ID for the <em>ipfw delete</em> command.</p>
<p><strong>Windows: </strong>Delete the policies and filters you created (the ones with &#8220;Hulu&#8221; in the name).</p>
<p><strong>Linux: </strong>you&#8217;re on your on. I think you run the same commands you use to block the ports, instead of &#8220;DROP&#8221; use &#8220;ADD&#8221;. But I can&#8217;t guarantee that.<br />
</strike></p>
]]></content:encoded>
			<wfw:commentRss>http://ohryan.ca/blog/2010/07/04/how-to-watch-hulu-in-canada-the-definitive-guide/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>How To: Add Multiple Borders With CSS2</title>
		<link>http://ohryan.ca/blog/2010/06/22/how-to-add-multiple-borders-with-css2/</link>
		<comments>http://ohryan.ca/blog/2010/06/22/how-to-add-multiple-borders-with-css2/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 06:04:51 +0000</pubDate>
		<dc:creator>RyanN</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://ohryan.ca/blog/?p=636</guid>
		<description><![CDATA[Found this on Nettuts+:]]></description>
			<content:encoded><![CDATA[<p><a href="http://net.tutsplus.com/tutorials/html-css-techniques/quick-tip-multiple-borders-with-simple-css/" target="_blank">Found this on Nettuts+</a>:</p>
<p><object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/twtA7pPFpLM&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/twtA7pPFpLM&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://ohryan.ca/blog/2010/06/22/how-to-add-multiple-borders-with-css2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To: Convert an MP3 to an Audiobook in iTunes</title>
		<link>http://ohryan.ca/blog/2010/06/17/how-to-convert-an-mp3-to-an-audiobook-in-itunes/</link>
		<comments>http://ohryan.ca/blog/2010/06/17/how-to-convert-an-mp3-to-an-audiobook-in-itunes/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 14:47:50 +0000</pubDate>
		<dc:creator>RyanN</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Audio]]></category>
		<category><![CDATA[itunes]]></category>

		<guid isPermaLink="false">http://ohryan.ca/blog/?p=627</guid>
		<description><![CDATA[Ever wonder how to stop an audio book mp3 from showing up in iTunes randomization? It&#8217;s easy. Right-click the mp3 (select a group of mp3s first if you prefer) Click &#8220;Get Info&#8221; from the context menu Click the &#8220;options&#8221; tab Change the media type to &#8220;Audiobook&#8221; Changing this setting will cause the mp3s to appear [...]]]></description>
			<content:encoded><![CDATA[<p>Ever wonder how to stop an audio book mp3 from showing up in iTunes randomization?</p>
<p>It&#8217;s easy.</p>
<ol>
<li>Right-click the mp3 (select a group of mp3s first if you prefer)</li>
<li>Click &#8220;Get Info&#8221; from the context menu</li>
<li>Click the &#8220;options&#8221; tab</li>
<li>Change the media type to &#8220;Audiobook&#8221;</li>
</ol>
<p>Changing this setting will cause the mp3s to appear in the &#8220;Books&#8221; library, instead of &#8220;Music.&#8221;</p>
<p><a href="http://ohryan.ca/blog/wp-content/uploads/Screen-shot-2010-06-16-at-2.46.06-PM.png"><img class="size-full wp-image-628 alignnone" title="Screen shot 2010-06-16 at 2.46.06 PM" src="http://ohryan.ca/blog/wp-content/uploads/Screen-shot-2010-06-16-at-2.46.06-PM.png" alt="" width="462" height="430" /></a></p>
<p><small><a href="http://oakroadsystems.com/genl/itunsabk.htm#AppSep" target="_blank">Found this gem buried in a convoluted set of instructions</a> posted in <a href="http://appslappy.com/2010/06/appslappy-50-black-is-the-new-white/" target="_blank">App Slappy&#8217;s show notes</a>.</small></p>
<p>UPDATE:</p>
<p>If you&#8217;re keen on making making chapters, <a href="http://oakroadsystems.com/genl/itunsabk.htm#Step3" target="_blank">follow the instructions in the original source</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ohryan.ca/blog/2010/06/17/how-to-convert-an-mp3-to-an-audiobook-in-itunes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How To: Watch Hulu In Canada (Maybe?)</title>
		<link>http://ohryan.ca/blog/2010/06/16/how-to-watch-hulu-in-canada/</link>
		<comments>http://ohryan.ca/blog/2010/06/16/how-to-watch-hulu-in-canada/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 13:55:51 +0000</pubDate>
		<dc:creator>RyanN</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[hulu]]></category>
		<category><![CDATA[tv]]></category>

		<guid isPermaLink="false">http://ohryan.ca/blog/?p=622</guid>
		<description><![CDATA[New method is 100% functional. I&#8217;ve been seeing some reports that the method I posted for watching Comedy Central (The Daily Show, Colbert Nation, South Park Studios) from Canada is now also working for Hulu!! I was not able to confirm this in my testing. I was only able to play one short clip of [...]]]></description>
			<content:encoded><![CDATA[<h2><a href="http://ohryan.ca/blog/2010/07/04/how-to-watch-hulu-in-canada-the-definitive-guide/">New method is 100% functional</a>.</h2>
<p><span style="text-decoration: line-through;">I&#8217;ve been seeing <a href="http://www.reddit.com/r/canada/comments/cfgno/is_the_a_canadian_version_of_hulu_for_all_of_us/c0s6zmj" target="_blank">some reports</a> that <a href="http://ohryan.ca/blog/2009/08/15/how-to-watch-comedy-central-videos-from-canada/">the method I posted</a> for watching <a href="http://www.comedycentral.com/" target="_blank">Comedy Central</a> (<a href="http://www.thedailyshow.com/" target="_blank">The Daily Show</a>, <a href="http://www.colbertnation.com/home" target="_blank">Colbert Nation</a>, <a href="http://www.southparkstudios.com/" target="_blank">South Park Studios</a>) from Canada is now also working for <a href="http://www.hulu.com" target="_blank">Hulu</a>!!</span></p>
<p><span style="text-decoration: line-through;">I was not able to confirm this in my testing. I was only able to play one short clip of a show I&#8217;d never heard of; but, I did notice that the first level ip-wall no longer shows up, I was able to browse the entire site, launch the video player and watch full pre-roll commercials before the stream stopped playing.</span></p>
<p><span style="text-decoration: line-through;">To save you some clicking, here&#8217;s a re-post of the work-around:</span></p>
<blockquote><p><span style="text-decoration: line-through;">For Canadian viewers, if you are using firefox, install the following addon:<a href="http://addons.mozilla.org/en-US/firefox/addon/967"><br />
http://addons.mozilla.org/en-US/firefox/addon/967</a> then:</span></p>
<p><span style="text-decoration: line-through;">1) In Firefox, Go to tools-&gt;modify headers<br />
2) From the drop down box on the left select add<br />
3) Then enter: &#8220;X-Forwarded-For&#8221; in the first input box without the quotation marks<br />
4) Enter: &#8220;12.13.14.15&#8243; in the second input box without the quotation marks<br />
5) Leave the last input box empty, and save the filter, and enable it<a href="http://imgur.com/Feb4.png"></p>
<p>http://imgur.com/Feb4.png</a></p>
<p>6) Click the &#8216;Configuration&#8217; tab on the right then proceed to check the &#8216;always on&#8217; button.</span></p>
<p><span style="text-decoration: line-through;">Close the Modify Headers box and it should work.</span></p></blockquote>
<p><span style="text-decoration: line-through;">Leave a comment, let me know if this works for you.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://ohryan.ca/blog/2010/06/16/how-to-watch-hulu-in-canada/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>How To Detect Mobile Visitors Using .htaccess Rewrite Rules, Simplified</title>
		<link>http://ohryan.ca/blog/2010/04/10/how-to-detect-mobile-visitors-using-htaccess-rewrite-rules-simplified/</link>
		<comments>http://ohryan.ca/blog/2010/04/10/how-to-detect-mobile-visitors-using-htaccess-rewrite-rules-simplified/#comments</comments>
		<pubDate>Sat, 10 Apr 2010 13:00:27 +0000</pubDate>
		<dc:creator>RyanN</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mobile browser]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[rewrite rule]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://ohryan.ca/blog/?p=559</guid>
		<description><![CDATA[Since my original posts on mobile redirection in .htaccess files I&#8217;ve gotten some comments and emails asking for step-by-step guidance on exactly how to &#8220;install&#8221; these rules. I hope this post will answer some of those questions. Before you continue reading, if you have php installed on your server, you may want to consider Andy Moore&#8217;s php [...]]]></description>
			<content:encoded><![CDATA[<div>
<p>Since my <a href="http://ohryan.ca/blog/2007/10/29/htaccess-mobile-browser-redirect/" target="_blank">original</a> <a href="http://ohryan.ca/blog/2009/02/18/revisiting-mobile-redirection-using-htaccess-rewrite-rules/" target="_blank">posts</a> on mobile redirection in .htaccess files I&#8217;ve gotten some comments and emails asking for step-by-step guidance on exactly how to &#8220;install&#8221; these rules. I hope this post will answer some of those questions.</p>
<p>Before you continue reading, if you have php installed on your server, you may want to consider <a href="http://detectmobilebrowsers.mobi/" target="_blank">Andy Moore&#8217;s php based detection solution</a>.</p>
<h3>The Basics</h3>
<p>First off, some basic requirements. You&#8217;ll need:</p>
<ul>
<li><strong>Apache/Linux Hosting</strong>. Microsoft&#8217;s IIS has a completely different method for handling this sort of thing.</li>
<li><strong>FTP access.</strong></li>
<li><a href="http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html" target="_blank"><strong>Apache mod_rewrite</strong></a><strong> enabled</strong>. Depending on the type of hosting you have, it may be difficult to determine if you have this module installed and it may be impossible to enable if you don&#8217;t. If the steps below simply don&#8217;t seem to work, there is a good chance you don&#8217;t have mod_rewrite installed. Ask your tech support.</li>
<li><strong>Mobile site in a subdirectory</strong>, eg. www.yourdomain.com/m/. This set of rules I&#8217;ve posted will not work with a mobile subdomain.</li>
</ul>
<h3>The Steps</h3>
<ol>
<li>Download <a href="http://ohryan.ca/blog/wp-content/uploads/mobilerules2.1.txt" target="_blank">mobilerules2.1.txt</a>.</li>
<li>Open the file in your favorite text editor, replace the 2 instances of &#8220;mobiledirectoryhere&#8221; (without quotes) with the directory name you are using for your mobile site. Save it.</li>
<li>Open FTP client, enable &#8216;view hidden files&#8217; &#8211; files beginning with a dot are hidden on linux. This option is typically buried in a &#8220;view&#8221; menu or something to that effect. Results may vary.</li>
<li>Navigate to your site&#8217;s webroot (probably &#8216;htdocs&#8217; or &#8216;www&#8217;).</li>
<li>
<ul>
<li>If there is already a .htaccess file present in the directory. Download it, open it in your favorite text editor. Copy &amp; paste the contents of<a href="http://ohryan.ca/blog/wp-content/uploads/mobilerules2.1.txt" target="_blank">mobilerules2.1.txt</a> into the file. Save it, upload it.</li>
<li>If there is no .htaccess file present. Upload <a href="http://ohryan.ca/blog/wp-content/uploads/mobilerules2.1.txt" target="_blank">mobilerules2.1.txt</a> as is, rename it to .htaccess.</li>
</ul>
</li>
<li>Your Done. Test it from a mobile device.</li>
</ol>
<p>If you have any questions please leave a comment.</p>
<p><strong>Note:</strong> This script treats all opera mini, iphone and android the same as other phones and browsers. Leave some comments if you&#8217;d like me to address this.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://ohryan.ca/blog/2010/04/10/how-to-detect-mobile-visitors-using-htaccess-rewrite-rules-simplified/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How To: Stop Websites From Resizing Your Browser Window</title>
		<link>http://ohryan.ca/blog/2010/01/07/how-to-stop-websites-from-resizing-your-browser-window/</link>
		<comments>http://ohryan.ca/blog/2010/01/07/how-to-stop-websites-from-resizing-your-browser-window/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 18:00:28 +0000</pubDate>
		<dc:creator>RyanN</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://ohryan.ca/blog/?p=504</guid>
		<description><![CDATA[If you&#8217;re tired of websites resizing your browser window, rest your weary head. In Firefox, you can disable website&#8217;s abilities to do this with Javascript: Tools-&#62; Options (Firefox -&#62; preferences or ⌘, on OS X) Select the &#8220;Content&#8221; tab. Click on the &#8220;Advanced&#8221; button across from &#8220;Enable JavaScript&#8221;. Uncheck the &#8220;Move or resize existing windows&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re tired of websites resizing your browser window, rest your weary head. In <em>Firefox</em>, you can disable website&#8217;s abilities to do this with Javascript:</p>
<ol>
<li>Tools-&gt; Options (Firefox -&gt; preferences or ⌘, on OS X)</li>
<li>Select the &#8220;Content&#8221; tab.</li>
<li>Click on the &#8220;Advanced&#8221; button across from &#8220;Enable JavaScript&#8221;.</li>
<li>Uncheck the &#8220;Move or resize existing windows&#8221; checkbox.</li>
</ol>
<p>Thanks to reddit user <a href="http://www.reddit.com/user/libertao" target="_blank">libertao</a>, another one of the many bits of knowledge I&#8217;ve learned from <a href="http://www.reddit.com/r/entertainment/comments/amm2r/jenny_mccarthy_dismisses_autism_study_invites/c0icst7" target="_blank">comments on reddit</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ohryan.ca/blog/2010/01/07/how-to-stop-websites-from-resizing-your-browser-window/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How To Fix: The Newspaper Industry</title>
		<link>http://ohryan.ca/blog/2009/12/08/how-to-fix-the-newspaper-industry/</link>
		<comments>http://ohryan.ca/blog/2009/12/08/how-to-fix-the-newspaper-industry/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 07:37:27 +0000</pubDate>
		<dc:creator>RyanN</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Review]]></category>
		<category><![CDATA[newspapers]]></category>

		<guid isPermaLink="false">http://ohryan.ca/blog/?p=396</guid>
		<description><![CDATA[I found this post sitting in my drafts folder from earlier this year. Seeing as I haven&#8217;t updated the blog in awhile, I thought I&#8217;d finish off some of the sentences and hit the &#8216;publish&#8217; button. The newspaper industry is facing the perfect storm of declining readership, declining print ad sales, lackluster online ad revenues, [...]]]></description>
			<content:encoded><![CDATA[<p>I found this post sitting in my drafts folder from earlier this year. Seeing as I haven&#8217;t updated the blog in awhile, I thought I&#8217;d finish off some of the sentences and hit the &#8216;publish&#8217; button.</p>
<hr />The newspaper industry is facing the perfect storm of declining readership, declining print ad sales, lackluster online ad revenues, the ever-present threat of blogs and the real-time web.<br />
<br/></p>
<p>I had a Eureka! moment <span style="text-decoration: line-through;">earlier today</span> when I originally started this post, it occurred to me &#8211; newspapers could learn a lot from the <a href="http://revision3.com/diggdialogg/trentreznor/">Nine Inch Nails distribution model</a>. In a nutshell, the NIN model concedes that music is free, instead of trying to charge people for something that already free, they charge fans for limited edition tangible goods: things like special run vinyl, signed copies of things, tee-shirts, etc.</p>
<p>A couple of ways I think the newspaper industry could add value to their dead tree version:</p>
<p>1) NO ads<br />
2) ONLY distribute coupon type ads in print, don&#8217;t make them available online. Encourage advertisers to pay extra for these premium coupons.<br />
3) Free stuff &#8211; throw in some tickets to stuff, maybe a glossy photo of scantily clad firefighters. Whatever the audience would apprieciate.<br />
4) Allow subscribers to opt-in to receiving an email copy of their favorite section of the newspaper. An emailed copy would be easy to take with you on a mobile device like an iPhone without having to lug around a fat wad of paper.</p>
<p>I have no idea how the finances work out for any of these ideas. I just really think that if the print newspaper needs to survive, then publishers need to inject some value.</p>
]]></content:encoded>
			<wfw:commentRss>http://ohryan.ca/blog/2009/12/08/how-to-fix-the-newspaper-industry/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To: Watch Comedy Central Videos From Canada</title>
		<link>http://ohryan.ca/blog/2009/08/15/how-to-watch-comedy-central-videos-from-canada/</link>
		<comments>http://ohryan.ca/blog/2009/08/15/how-to-watch-comedy-central-videos-from-canada/#comments</comments>
		<pubDate>Sun, 16 Aug 2009 03:19:38 +0000</pubDate>
		<dc:creator>RyanN</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Websites]]></category>

		<guid isPermaLink="false">http://ohryan.ca/blog/?p=424</guid>
		<description><![CDATA[UPDATE: Some visitors are reporting that this works for Hulu as well. The relationship between Comedy Central and Canada&#8217;s Comedy Network is the worst example of what can happen when rights owners assert copyright on the internet, based on national borders. If you are not aware &#8211; like Hulu, TV.com and others &#8211; Comedy Central [...]]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATE:</strong> Some visitors are reporting that this works for Hulu as well.</p>
<p>The relationship between Comedy Central and Canada&#8217;s Comedy Network is the worst example of what can happen when rights owners assert copyright on the internet, based on national borders. If you are not aware &#8211; like Hulu, TV.com and others &#8211; Comedy Central videos will not play in Canada, but it&#8217;s worse. <a href="http://www.comedycentral.com/">ComedyCentral.com</a> &#8211; <strong>the entire domain</strong> &#8211; is unavailable to Canadian IPs! When you try visit it, you are redirected to <a href="http://www.comedynetwork.ca">comedynetwork.ca</a>.</p>
<p>I found a workaround to this buried in a comment thread on <a href="http://www.reddit.com">reddit</a>. Firefox users only:</p>
<blockquote><p>For Canadian viewers, if you are using firefox, install the following addon:<a href="http://addons.mozilla.org/en-US/firefox/addon/967"><br />
http://addons.mozilla.org/en-US/firefox/addon/967</a> then:</p>
<p>1) In Firefox, Go to tools-&gt;modify headers<br />
2) From the drop down box on the left select add<br />
3) Then enter: &#8220;X-Forwarded-For&#8221; in the first input box without the quotation marks<br />
4) Enter: &#8220;12.13.14.15&#8243; in the second input box without the quotation marks<br />
5) Leave the last input box empty, and save the filter, and enable it<a href="http://imgur.com/Feb4.png"></p>
<p>http://imgur.com/Feb4.png</a></p>
<p>6) Click the &#8216;Configuration&#8217; tab on the right then proceed to check the &#8216;always on&#8217; button.</p>
<p>Close the Modify Headers box and it should work.</p>
<p>[<a href="http://www.reddit.com/r/funny/comments/9atz9/the_daily_show_if_only_the_glenn_beck_of_sixteen/c0c267a">orginal post</a>]</p></blockquote>
<p>Works like a charm!</p>
]]></content:encoded>
			<wfw:commentRss>http://ohryan.ca/blog/2009/08/15/how-to-watch-comedy-central-videos-from-canada/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>How To: Exclude Words Like &#8220;An, A, The&#8221; From Alphabetized MySQL ORDER</title>
		<link>http://ohryan.ca/blog/2009/07/17/how-to-exclude-words-like-an-a-the-from-alphabetized-mysql-order/</link>
		<comments>http://ohryan.ca/blog/2009/07/17/how-to-exclude-words-like-an-a-the-from-alphabetized-mysql-order/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 15:10:42 +0000</pubDate>
		<dc:creator>RyanN</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://ohryan.ca/blog/?p=419</guid>
		<description><![CDATA[When ordering lists of names or titles it&#8217;s sometimes desirable to exclude articles or other words from the order clause (eg. you want &#8220;The Burning Hell&#8221; to show up before &#8220;Great Lake Swimmers&#8221; in a list ordered by name). Early on in my career I must have assumed it was not possible and never bothered [...]]]></description>
			<content:encoded><![CDATA[<p>When ordering lists of names or titles it&#8217;s sometimes desirable to exclude articles or other words from the order clause (eg. you want &#8220;The Burning Hell&#8221; to show up before &#8220;Great Lake Swimmers&#8221; in a list ordered by name). Early on in my career I must have assumed it was not possible and never bothered to look into again because I don&#8217;t recall ever ordering a list like this.<br />
Anyways. Here&#8217;s how you do it:</p>
<p><code>SELECT name FROM artists ORDER BY TRIM( LEADING "a " FROM TRIM( LEADING "an " FROM TRIM( LEADING "the " FROM LOWER( name ) ) ) )</code></p>
<p><small><a href="http://ask.metafilter.com/52434/How-to-get-mySQL-to-ignore-A-An-amp-The-when-presenting-alphabetized-book-titles">[thanks metafilter]</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://ohryan.ca/blog/2009/07/17/how-to-exclude-words-like-an-a-the-from-alphabetized-mysql-order/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To: Cold Brew Coffee</title>
		<link>http://ohryan.ca/blog/2009/07/05/how-to-cold-brew-coffee/</link>
		<comments>http://ohryan.ca/blog/2009/07/05/how-to-cold-brew-coffee/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 04:58:03 +0000</pubDate>
		<dc:creator>RyanN</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[coffee]]></category>

		<guid isPermaLink="false">http://ohryan.ca/blog/?p=408</guid>
		<description><![CDATA[Now that summer has finally reached The True North (strong and free), I decided to finally attempt cold brewing some iced coffee. Turns out it&#8217;s one of the easiest operations I&#8217;ve ever attempted in the kitchen. Basic recipies is as follow: - 1cup coarse ground coffee - 4.5cups water - combine, leave in fridge for [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/matthew-anderson/71343866/"><img class="alignleft" title="Iced Coffee - Photo By Matthew Anderson" src="http://farm1.static.flickr.com/20/71343866_132f70a8d9.jpg?v=0" alt="" width="225" height="300" /></a>Now that summer has finally reached The True North (strong and free), I decided to finally attempt cold brewing some iced coffee. Turns out it&#8217;s one of the easiest operations I&#8217;ve ever attempted in the kitchen. Basic recipies is as follow:</p>
<p><strong>- 1cup coarse ground coffee<br />
- 4.5cups water<br />
- combine, leave in fridge for around </strong><strong>12hours<br />
- filter<br />
- drink</strong></p>
<p>I brewed it in my french press carafe overnight &#8211; with a saran wrap lid to keep out any potentially nasty fridge smells. In the morning I used the french press as usual. Unfortunately, this left the coffee more gritty than when using a french press with hot coffee, the cold water must keep the smallest grinds in suspension more readily. Next time I&#8217;ll either forgo the french press altogether and directly filter the coffee through a regular filter, or possible dual filter it (the later seems less messy).</p>
<p><small>[ Original Recipe From <a href="http://internetfoodassociation.com/2009/04/12/cold-brewed-iced-coffee/">Internet Food Association</a> via <a href="http://lifehacker.com/5211256/make-cold+brewed-iced-coffee">Lifehacker</a>]</small></p>
]]></content:encoded>
			<wfw:commentRss>http://ohryan.ca/blog/2009/07/05/how-to-cold-brew-coffee/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
