<?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>hzn!</title>
	<atom:link href="http://humphrey.za.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://humphrey.za.net</link>
	<description></description>
	<lastBuildDate>Sun, 28 Nov 2010 12:20:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>SSD &#8211; how to use a USB Stick as SWAP</title>
		<link>http://humphrey.za.net/2010/11/28/ssd-how-to-use-a-usb-stick-as-swap/</link>
		<comments>http://humphrey.za.net/2010/11/28/ssd-how-to-use-a-usb-stick-as-swap/#comments</comments>
		<pubDate>Sun, 28 Nov 2010 12:20:55 +0000</pubDate>
		<dc:creator>nitr8</dc:creator>
				<category><![CDATA[Wayne]]></category>

		<guid isPermaLink="false">http://humphrey.za.net/?p=291</guid>
		<description><![CDATA[To save my SSD&#8217;s on none laptop pcs, i use a cheap USB stick for my swap. shred -v -n 1 -z /dev/sdX sudo mkswap /dev/sdX sudo swapon /dev/sdX sudo vi /etc/fstab add the following: /dev/sdX none swap sw 0 0 now run free: total used free shared buffers cached Mem: 1543508 463972 1079536 0 [...]]]></description>
			<content:encoded><![CDATA[<p>To save my SSD&#8217;s on none laptop pcs, i use a cheap USB stick for my swap.<br />
<span id="more-291"></span><br />
shred -v -n 1 -z /dev/sdX<br />
sudo mkswap /dev/sdX<br />
sudo swapon /dev/sdX<br />
sudo vi /etc/fstab<br />
add the following:<br />
/dev/sdX   none  	   swap  	sw  		   0 	0</p>
<p>now run free:<br />
total           used       free               shared    buffers     cached<br />
Mem:       1543508     463972    1079536          0            18552      299028<br />
Swap:      1957880     0             1957880</p>
]]></content:encoded>
			<wfw:commentRss>http://humphrey.za.net/2010/11/28/ssd-how-to-use-a-usb-stick-as-swap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>our new home</title>
		<link>http://humphrey.za.net/2010/09/25/our-new-home/</link>
		<comments>http://humphrey.za.net/2010/09/25/our-new-home/#comments</comments>
		<pubDate>Sat, 25 Sep 2010 09:44:46 +0000</pubDate>
		<dc:creator>nitr8</dc:creator>
				<category><![CDATA[Wayne]]></category>

		<guid isPermaLink="false">http://humphrey.za.net/?p=275</guid>
		<description><![CDATA[This has been a long road&#8230;. We got the call today, our offer was the higest and accepted so we now have a new home Its a but far from home but its in the Alps so who cares? Located just outside Interlaken, this is a nice little project for Angela and I. We have [...]]]></description>
			<content:encoded><![CDATA[<p>This has been a long road&#8230;. We got the call today, our offer was the higest and accepted so we now have a new home <img src='http://humphrey.za.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Its a but far from home but its in the Alps so who cares?</p>
<p><span id="more-275"></span></p>
<p>Located just outside Interlaken, this is a nice little project for Angela and  I. We have big hopes for the place, It is divided into two places, but we plan on making it one big house, bottom floor (house1) will be the &#8220;sleeping&#8221; area, and the top floor (house2) will be the &#8220;living&#8221; area.</p>
<p>Specs:<br />
Canton &#8211; Bern<br />
Rooms &#8211; 8<br />
Size &#8211; 360 m2</p>
<p>So our new playground:<br />
Summer<br />
<img class="aligncenter size-full wp-image-283" title="map-summer" src="http://humphrey.za.net/wp-content/uploads/2010/09/map-summer.jpg" /><br />
Winter<br />
<img class="aligncenter size-full wp-image-283" title="map-summer" src="http://humphrey.za.net/wp-content/uploads/2010/09/map-winter.jpg" /></p>
<p>Here are some pics from the estate agent:<br />
<img class="aligncenter size-full wp-image-283" title="map-summer" src="http://humphrey.za.net/wp-content/uploads/2010/09/01.jpg" /><br />
<img class="aligncenter size-full wp-image-283" title="map-summer" src="http://humphrey.za.net/wp-content/uploads/2010/09/02.jpg" /><br />
<img class="aligncenter size-full wp-image-283" title="map-summer" src="http://humphrey.za.net/wp-content/uploads/2010/09/03.jpg" /><br />
<img class="aligncenter size-full wp-image-283" title="map-summer" src="http://humphrey.za.net/wp-content/uploads/2010/09/04.jpg" /><br />
<img class="aligncenter size-full wp-image-283" title="map-summer" src="http://humphrey.za.net/wp-content/uploads/2010/09/05.jpg" /><br />
<img class="aligncenter size-full wp-image-283" title="map-summer" src="http://humphrey.za.net/wp-content/uploads/2010/09/06.jpg" /><br />
<img class="aligncenter size-full wp-image-283" title="map-summer" src="http://humphrey.za.net/wp-content/uploads/2010/09/07.jpg" /></p>
]]></content:encoded>
			<wfw:commentRss>http://humphrey.za.net/2010/09/25/our-new-home/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>xbmc &amp; mysql = multi-room sync</title>
		<link>http://humphrey.za.net/2010/09/25/xbmc-mysql-multi-room-sync/</link>
		<comments>http://humphrey.za.net/2010/09/25/xbmc-mysql-multi-room-sync/#comments</comments>
		<pubDate>Sat, 25 Sep 2010 09:21:06 +0000</pubDate>
		<dc:creator>nitr8</dc:creator>
				<category><![CDATA[Wayne]]></category>

		<guid isPermaLink="false">http://humphrey.za.net/?p=266</guid>
		<description><![CDATA[The primary reason I decided to use mysql is because I am always reinstalling my htpc for testing purposes. I am sick an tired of loosing all my watched flags, re-scraping with 20 threads still takes around 6 hours. I therefore use mysql and also store the thumbnails on a nfs share but now my [...]]]></description>
			<content:encoded><![CDATA[<p>The primary reason I decided to use mysql is because I am always reinstalling my htpc for testing purposes. I am sick an tired of loosing all my watched flags, re-scraping with 20 threads still takes around 6 hours.  I therefore use mysql and also store the thumbnails on a nfs share but now my laptop, tv and desktop xbmc look alike and one change is replicated throughout. I had a couple of issues hence documenting how its done.<br />
<span id="more-266"></span><br />
I use a NAS &#8211; QNAP 509p for my storage, I already use MySQL on the QNAP so decided to use that not to use more resources on the htpc and remove a single point of failure.</p>
<h2>Setting up MySQL</h2>
<p>If you add the relevant section to advancedsettings.xml and start xbmc, it will create the relevant databases however with the default collation which is not  latin1_general_ci. For some reason I kept on getting:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">ERROR: SQL: The table does not exist</div></div>
<p>So, to get it all working is simple, I used mysql admin however, use phpMyAdmin as I have tested this and it works fine.</p>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><a href="http://search.mysql.com/search?site=refman-%35%31&amp;q=CREATE"><span style="color: #990099; font-weight: bold;">CREATE</span></a> <a href="http://dev.mysql.com/doc/refman/%35%2E%31/en/information-functions.html"><span style="color: #000099;">USER</span></a> <span style="color: #008000;">'xbmc'</span> IDENTIFIED BY <span style="color: #008000;">'xbmc'</span><span style="color: #000033;">;</span><br />
<a href="http://search.mysql.com/search?site=refman-%35%31&amp;q=CREATE"><span style="color: #990099; font-weight: bold;">CREATE</span></a> <a href="http://search.mysql.com/search?site=refman-%35%31&amp;q=DATABASE"><span style="color: #990099; font-weight: bold;">DATABASE</span></a> xbmc_music CHARACTER <a href="http://search.mysql.com/search?site=refman-%35%31&amp;q=SET"><span style="color: #990099; font-weight: bold;">SET</span></a> latin1 <a href="http://dev.mysql.com/doc/refman/%35%2E%31/en/non-typed-operators.html"><span style="color: #CC0099; font-weight: bold;">COLLATE</span></a> latin1_general_ci<span style="color: #000033;">;</span><br />
<a href="http://search.mysql.com/search?site=refman-%35%31&amp;q=CREATE"><span style="color: #990099; font-weight: bold;">CREATE</span></a> <a href="http://search.mysql.com/search?site=refman-%35%31&amp;q=DATABASE"><span style="color: #990099; font-weight: bold;">DATABASE</span></a> xbmc_video CHARACTER <a href="http://search.mysql.com/search?site=refman-%35%31&amp;q=SET"><span style="color: #990099; font-weight: bold;">SET</span></a> latin1 <a href="http://dev.mysql.com/doc/refman/%35%2E%31/en/non-typed-operators.html"><span style="color: #CC0099; font-weight: bold;">COLLATE</span></a> latin1_general_ci<span style="color: #000033;">;</span><br />
<a href="http://search.mysql.com/search?site=refman-%35%31&amp;q=GRANT"><span style="color: #990099; font-weight: bold;">GRANT</span></a> <a href="http://search.mysql.com/search?site=refman-%35%31&amp;q=ALL"><span style="color: #990099; font-weight: bold;">ALL</span></a> <a href="http://search.mysql.com/search?site=refman-%35%31&amp;q=ON"><span style="color: #990099; font-weight: bold;">ON</span></a> <span style="color: #CC0099;">*</span>.<span style="color: #CC0099;">*</span> <a href="http://search.mysql.com/search?site=refman-%35%31&amp;q=TO"><span style="color: #990099; font-weight: bold;">TO</span></a> <span style="color: #008000;">'xbmc'</span><span style="color: #000033;">;</span></div></div>
<p>Things are slow with large databeses, so I suggest greating an indiex. A index is a data structure that improves the speed of operations in a table. On the xbmc_music database:</p>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><a href="http://search.mysql.com/search?site=refman-%35%31&amp;q=ALTER"><span style="color: #990099; font-weight: bold;">ALTER</span></a> <a href="http://search.mysql.com/search?site=refman-%35%31&amp;q=TABLE"><span style="color: #990099; font-weight: bold;">TABLE</span></a> song <a href="http://search.mysql.com/search?site=refman-%35%31&amp;q=ADD"><span style="color: #990099; font-weight: bold;">ADD</span></a> <a href="http://search.mysql.com/search?site=refman-%35%31&amp;q=INDEX"><span style="color: #990099; font-weight: bold;">INDEX</span></a> ix_idArtist<span style="color: #FF00FF;">&#40;</span>idArtist<span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">;</span><br />
<a href="http://search.mysql.com/search?site=refman-%35%31&amp;q=ALTER"><span style="color: #990099; font-weight: bold;">ALTER</span></a> <a href="http://search.mysql.com/search?site=refman-%35%31&amp;q=TABLE"><span style="color: #990099; font-weight: bold;">TABLE</span></a> song <a href="http://search.mysql.com/search?site=refman-%35%31&amp;q=ADD"><span style="color: #990099; font-weight: bold;">ADD</span></a> <a href="http://search.mysql.com/search?site=refman-%35%31&amp;q=INDEX"><span style="color: #990099; font-weight: bold;">INDEX</span></a> ix_idGenre<span style="color: #FF00FF;">&#40;</span>idGenre<span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">;</span><br />
<a href="http://search.mysql.com/search?site=refman-%35%31&amp;q=ALTER"><span style="color: #990099; font-weight: bold;">ALTER</span></a> <a href="http://search.mysql.com/search?site=refman-%35%31&amp;q=TABLE"><span style="color: #990099; font-weight: bold;">TABLE</span></a> song <a href="http://search.mysql.com/search?site=refman-%35%31&amp;q=ADD"><span style="color: #990099; font-weight: bold;">ADD</span></a> <a href="http://search.mysql.com/search?site=refman-%35%31&amp;q=INDEX"><span style="color: #990099; font-weight: bold;">INDEX</span></a> ix_idAlbum<span style="color: #FF00FF;">&#40;</span>idAlbum<span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">;</span></div></div>
<p>This reduced my Artist Look up by ~35 seconds (before &#8211; 35.4523 : after &#8211; 0.1138 )</p>
<p>That&#8217;s it for SQL, move on to configure xbmc.</p>
<h2>Setting up xbmc</h2>
<p>First thing is to update advancedsettings to tell xbmc to use MySQL</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">vi</span> .xbmc<span style="color: #000000; font-weight: bold;">/</span>userdata<span style="color: #000000; font-weight: bold;">/</span>advancedsettings.xml</div></div>
<p>And add the following:</p>
<div class="codecolorer-container xml default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;videodatabase<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>mysql<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;host<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>10.0.0.10<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/host<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;port<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>3306<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/port<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;user<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>xbmc<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/user<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;pass<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>xbmc<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/pass<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>xbmc_video<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/videodatabase<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;musicdatabase<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>mysql<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;host<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>10.0.0.10<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/host<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;port<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>3306<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/port<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;user<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>xbmc<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/user<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;pass<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>xbmc<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/pass<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>xbmc_music<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/musicdatabase<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></div>
<p>Replace 10.0.0.10 with the relevent server thats hosing MySQL</p>
<p>Restart xbmc, and you good to rock and roll.</p>
<h2>Setting up thumbnails on NFS</h2>
<p>The reason for this is my Thumbnails is 2.3 GB and I don&#8217;t want to rebuild these on each pc, or on a reinstall.  I also use dds, which is hell fast, however needs to be built from the tbn which takes time.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">du</span> <span style="color: #660033;">-h</span> Thumbnails<span style="color: #000000; font-weight: bold;">/</span><br />
2.3G&nbsp; &nbsp; &nbsp;Thumbnails<span style="color: #000000; font-weight: bold;">/</span></div></div>
<p>You can use CIFS too, however I prefer nfs. Add your share to fstab:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>fstab</div></div>
<p>At the end add:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">10.0.0.10:<span style="color: #000000; font-weight: bold;">/</span>Thumbnails <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>xbmc<span style="color: #000000; font-weight: bold;">/</span>.xbmc<span style="color: #000000; font-weight: bold;">/</span>userdata<span style="color: #000000; font-weight: bold;">/</span>Thumbnails nfs &nbsp; soft,intr,<span style="color: #007800;">rsize</span>=<span style="color: #000000;">8192</span>,<span style="color: #007800;">wsize</span>=<span style="color: #000000;">8192</span></div></div>
<p>Replace 10.0.0.10 with the relevant server that you have your nfs share on.</p>
<p>To save a bit of time if you already have thumbnails:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">cd</span> ~<span style="color: #000000; font-weight: bold;">/</span>.xbmc<span style="color: #000000; font-weight: bold;">/</span>userdata<span style="color: #000000; font-weight: bold;">/</span><br />
<span style="color: #c20cb9; font-weight: bold;">mv</span> Thumbnails Thumbnails-old<br />
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> Thumbnails<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-a</span><br />
<span style="color: #c20cb9; font-weight: bold;">mv</span> Thumbnails-old<span style="color: #000000; font-weight: bold;">/*</span> Thumbnails<span style="color: #000000; font-weight: bold;">/</span><br />
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-Rf</span> Thumbnails-old</div></div>
<p>That&#8217;s it you now have xbmc using a remote MySQL database and storing yoru Thumbnails on a remote server to</p>
<h2>Using DX1 DDS</h2>
<p>This is simple, just add useddsfanart to advancedsettings.xml, this increases my switch times tenfold. I will never look back.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">vi</span> .xbmc<span style="color: #000000; font-weight: bold;">/</span>userdata<span style="color: #000000; font-weight: bold;">/</span>advancedsettings.xml</div></div>
<p>And add the following:</p>
<div class="codecolorer-container xml default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;useddsfanart<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>true<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/useddsfanart<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://humphrey.za.net/2010/09/25/xbmc-mysql-multi-room-sync/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>SickBeard &amp; SABnzbs+</title>
		<link>http://humphrey.za.net/2010/09/22/sickbeard-sabnzbs/</link>
		<comments>http://humphrey.za.net/2010/09/22/sickbeard-sabnzbs/#comments</comments>
		<pubDate>Wed, 22 Sep 2010 10:08:19 +0000</pubDate>
		<dc:creator>nitr8</dc:creator>
				<category><![CDATA[Wayne]]></category>

		<guid isPermaLink="false">http://humphrey.za.net/?p=213</guid>
		<description><![CDATA[To get need to add blurb &#8230;. SickBeard &#038; SABnzbs+ on QNAP 509p Prerequisites Install the following qpks on the QNAP Optware &#8211; http://resources.qnap.com/~qnap/Storage/QPKG/X86/Optware_0.99.163_x86.zip Python &#8211; http://resources.qnap.com/~qnap/Storage/QPKG/X86/Python_2.7_x86.zip SABnzbdplus &#8211; http://resources.qnap.com/~qnap/Storage/QPKG/X86/SABnzbdplus_0.5.3_x86.zip Git ipkg update ipkg install git Configure SABnzbdplus connect to http://NAS_IP:8800 Set the defaults for SABnzbdplus, change the port to 8082 Once restarted go to [...]]]></description>
			<content:encoded><![CDATA[<p>To get need to add blurb &#8230;. SickBeard &#038; SABnzbs+ on QNAP 509p<br />
<span id="more-213"></span></p>
<h2>Prerequisites</h2>
<p>Install the following qpks on the QNAP<br />
<strong>Optware</strong> &#8211; http://resources.qnap.com/~qnap/Storage/QPKG/X86/Optware_0.99.163_x86.zip<br />
<strong>Python</strong> &#8211; http://resources.qnap.com/~qnap/Storage/QPKG/X86/Python_2.7_x86.zip<br />
<strong>SABnzbdplus</strong> &#8211; http://resources.qnap.com/~qnap/Storage/QPKG/X86/SABnzbdplus_0.5.3_x86.zip<br />
<strong>Git</strong></p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">ipkg update<br />
ipkg <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #c20cb9; font-weight: bold;">git</span></div></div>
<h2>Configure SABnzbdplus</h2>
<p>connect to http://NAS_IP:8800<br />
Set the defaults for SABnzbdplus, change the port to 8082<br />
Once restarted go to http://NAS_IP:8082<br />
Select Config<br />
General<br />
<img class="aligncenter size-full wp-image-251" title="sab-gen" src="http://humphrey.za.net/wp-content/uploads/2010/09/sab-gen.png" /><br />
<img class="aligncenter size-full wp-image-251" title="sab-gen" src="http://humphrey.za.net/wp-content/uploads/2010/09/sab-folder.png" /><br />
<img class="aligncenter size-full wp-image-251" title="sab-gen" src="http://humphrey.za.net/wp-content/uploads/2010/09/sab-sever.png" /><br />
<img class="aligncenter size-full wp-image-251" title="sab-gen" src="http://humphrey.za.net/wp-content/uploads/2010/09/sab-rss.png" /><br />
<img class="aligncenter size-full wp-image-251" title="sab-gen" src="http://humphrey.za.net/wp-content/uploads/2010/09/sab-email.png" /><br />
<img class="aligncenter size-full wp-image-251" title="sab-gen" src="http://humphrey.za.net/wp-content/uploads/2010/09/sab-index.png" /><br />
<img class="aligncenter size-full wp-image-251" title="sab-gen" src="http://humphrey.za.net/wp-content/uploads/2010/09/sab-cat.png" /><br />
<img class="aligncenter size-full wp-image-251" title="sab-gen" src="http://humphrey.za.net/wp-content/uploads/2010/09/sab-sort.png" /><br />
Config &#8211;> Sorting<br />
Enable Series Sorting<br />
Set the Sort String to:<br />
%s.n/Season.0%s/%s.n.S%0sE%0e.%ext<br />
This will give you a nice name for example:<br />
Show.Name/Season.01/Show.Name.S01E05.avi</p>
<p>Sorting is done using replaceable values such as %sn for the show name.</p>
<table>
<tbody>
<tr>
<td><strong>Meaning</strong></td>
<td><strong>Pattern</strong></td>
<td><strong>Result</strong></td>
</tr>
<tr>
<td>Show Name</td>
<td>%sn</td>
<td>Show Name</td>
</tr>
<tr>
<td></td>
<td>%s.n</td>
<td>Show.Name</td>
</tr>
<tr>
<td></td>
<td>%s_n</td>
<td>Show_Name</td>
</tr>
<tr>
<td>Season Number</td>
<td>%s</td>
<td>1</td>
</tr>
<tr>
<td></td>
<td>%0s</td>
<td>01</td>
</tr>
<tr>
<td>Episode Number</td>
<td>%e</td>
<td>5</td>
</tr>
<tr>
<td></td>
<td>%0e</td>
<td>05</td>
</tr>
<tr>
<td>Episode Name</td>
<td>%en</td>
<td>Episode Name</td>
</tr>
<tr>
<td></td>
<td>Episode.Name</td>
<td>%e.n</td>
</tr>
<tr>
<td></td>
<td>%e_n</td>
<td>Episode_Name</td>
</tr>
<tr>
<td>File Extension</td>
<td>%ext</td>
<td>avi</td>
</tr>
</tbody>
</table>
<h2>Install SickBeard</h2>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>MD0_DATA<span style="color: #000000; font-weight: bold;">/</span>.qpkg<br />
<span style="color: #c20cb9; font-weight: bold;">git clone</span> git:<span style="color: #000000; font-weight: bold;">//</span>github.com<span style="color: #000000; font-weight: bold;">/</span>midgetspy<span style="color: #000000; font-weight: bold;">/</span>Sick-Beard.git <span style="color: #ff0000;">&quot;sickbeard&quot;</span></div></div>
<p>Run SickBeard to create initial config file:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>python <span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>MD0_DATA<span style="color: #000000; font-weight: bold;">/</span>.qpkg<span style="color: #000000; font-weight: bold;">/</span>sickbeard<span style="color: #000000; font-weight: bold;">/</span>SickBeard.py</div></div>
<p>once fully started hit ctrl+c</p>
<p>Edit the config file:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">vi</span> sickbeard<span style="color: #000000; font-weight: bold;">/</span>config.ini<br />
change web_port to <span style="color: #000000;">8081</span><br />
web_port = <span style="color: #000000;">8081</span></div></div>
<p>Start up SickBeard and finnish the configuration.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>python <span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>MD0_DATA<span style="color: #000000; font-weight: bold;">/</span>.qpkg<span style="color: #000000; font-weight: bold;">/</span>sickbeard<span style="color: #000000; font-weight: bold;">/</span>SickBeard.py</div></div>
<p>Then go to ttp://NAS_IP:8081<br />
Select the Config Tab<br />
General | Episode Downloads | Search Providers | Notifications<br />
<img class="aligncenter size-full wp-image-251" title="sab-gen" src="http://humphrey.za.net/wp-content/uploads/2010/09/config-general.png" /><br />
<img class="aligncenter size-full wp-image-251" title="sab-gen" src="http://humphrey.za.net/wp-content/uploads/2010/09/config-episode.png" /><br />
<img class="aligncenter size-full wp-image-251" title="sab-gen" src="http://humphrey.za.net/wp-content/uploads/2010/09/config-provider-01.png" /><br />
<img class="aligncenter size-full wp-image-251" title="sab-gen" src="http://humphrey.za.net/wp-content/uploads/2010/09/config-provider-02.png" /><br />
<img class="aligncenter size-full wp-image-251" title="sab-gen" src="http://humphrey.za.net/wp-content/uploads/2010/09/config-provider-03.png" /><br />
<img class="aligncenter size-full wp-image-251" title="sab-gen" src="http://humphrey.za.net/wp-content/uploads/2010/09/config-notification.png" /><br />
Let SABnzbdplus startup script start SickBeard</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">vi</span> SABnzbdplus<span style="color: #000000; font-weight: bold;">/</span>sabnzbd.sh</div></div>
<p>after:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># starting sabnzbd...</span><br />
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot; Daemonizing... &quot;</span><br />
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">LD_LIBRARY_PATH</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">${QPKG_DIR}</span>/lib/sabnzbd&quot;</span><br />
<span style="color: #800000;">${SABNZBD}</span> <span style="color: #800000;">${OPTIONS}</span><br />
<span style="color: #007800;">RETVAL</span>=<span style="color: #007800;">$?</span><br />
<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">5</span></div></div>
<p>add:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;staring SickBeard&quot;</span><br />
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>python <span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>MD0_DATA<span style="color: #000000; font-weight: bold;">/</span>.qpkg<span style="color: #000000; font-weight: bold;">/</span>sickbeard<span style="color: #000000; font-weight: bold;">/</span>SickBeard.py <span style="color: #000000; font-weight: bold;">&amp;</span><br />
<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">5</span></div></div>
<p>before:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Shutting down <span style="color: #007800;">${QPKG_NAME}</span>... &quot;</span><br />
<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">kill</span> <span style="color: #660033;">-9</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">ps</span> <span style="color: #660033;">-ef</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>S<span style="color: #7a0874; font-weight: bold;">&#93;</span>ABnzbd <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{ print $1 }'</span><span style="color: #000000; font-weight: bold;">`</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span><br />
<span style="color: #007800;">RETVAL</span>=<span style="color: #007800;">$?</span><br />
<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">3</span></div></div>
<p>add:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Shutting down SickBeard&quot;</span><br />
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #ff0000;">&quot;http://10.0.0.10:8081/home/shutdown/&quot;</span> <span style="color: #660033;">-O</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null<br />
<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">2</span></div></div>
<p>Now stop and start SABnzbdplus via the qnap qui<br />
Home &#8211;> Applications &#8211;> QPKG Plugins &#8211;> SABnzbdplus<br />
Disable then Enable Again</p>
<p>Test to see if SABnzbdplus and SickBeard started up<br />
SickBeard &#8211; 8081<br />
SABnzbdplus &#8211; 8082</p>
]]></content:encoded>
			<wfw:commentRss>http://humphrey.za.net/2010/09/22/sickbeard-sabnzbs/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Run Ember Media Manager on Ubuntu</title>
		<link>http://humphrey.za.net/2010/09/12/run-ember-media-manager-on-ubuntu/</link>
		<comments>http://humphrey.za.net/2010/09/12/run-ember-media-manager-on-ubuntu/#comments</comments>
		<pubDate>Sun, 12 Sep 2010 11:23:20 +0000</pubDate>
		<dc:creator>nitr8</dc:creator>
				<category><![CDATA[Wayne]]></category>

		<guid isPermaLink="false">http://humphrey.za.net/?p=234</guid>
		<description><![CDATA[Ember Media Manager (aka EMM or Ember) is an open source movie and TV Show collections management tool which initially has been created to use with XBMC, but it contains Modules for a few media center application, moreover it should virtually support most of the other media center application out there. It empowers home theater [...]]]></description>
			<content:encoded><![CDATA[<p>Ember Media Manager (aka EMM or Ember) is an open source movie and TV Show collections management tool which initially has been created to use with XBMC, but it contains Modules for a few media center application, moreover it should virtually support most of the other media center application out there. It empowers home theater enthusiasts to manage and organize their entire movie and TV Show collections. EMM will scrape movie and TV Show information (plot, cast, genre, studio, mpaa certification, etc) from various sites, together with posters, fanart, actor photos and even movie trailers. It also automatically extracts media meta data like resolution, codecs, audio and subtitle streams. EMM can also be used as a standalone movie organizer/cataloger, but the primary aim is to export all the data and images to a format which can then be imported into your favorite media center application. In order to achieve this, EMM stores all data and images in files which are saved next to the media files. Media center applications can pick up those files and import the information to their own internal database<br />
<span id="more-234"></span><br />
Install Pre-Reques</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> add-apt-repository ppa:shiki<span style="color: #000000; font-weight: bold;">/</span>mediainfo<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get update</span><br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get install</span> mono-winforms-a11y libmono-microsoft-visualbasic8.0-cil libzen0 libmediainfo0 <span style="color: #660033;">-y</span></div></div>
<p>Download the ember installer and execute it:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.embermm.com<span style="color: #000000; font-weight: bold;">/</span>Updates<span style="color: #000000; font-weight: bold;">/</span>EmberSetup.exe<br />
mono EmberSetup.exe</div></div>
<p>After Instlation:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">cd</span> ember_instlation_folder<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> mono <span style="color: #ff0000;">&quot;Ember Media Manager.exe&quot;</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://humphrey.za.net/2010/09/12/run-ember-media-manager-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>From iPhone to Android – Samsung Galaxy S i9000</title>
		<link>http://humphrey.za.net/2010/09/01/from-iphone-to-android-%e2%80%93-samsung-galaxy-s-i9000/</link>
		<comments>http://humphrey.za.net/2010/09/01/from-iphone-to-android-%e2%80%93-samsung-galaxy-s-i9000/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 12:33:12 +0000</pubDate>
		<dc:creator>nitr8</dc:creator>
				<category><![CDATA[Wayne]]></category>

		<guid isPermaLink="false">http://humphrey.za.net/?p=223</guid>
		<description><![CDATA[Ok, so I did it. I went from my truly lovely iPhone (3Gs) to a Android phone. My choice is the Samsung Galaxy S i9000. So, how is the experience so far? Actually, I can say nothing else but good things about it. The Android OS feels just like…. natural. You realize quickly, that Google [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, so I did it. I went from my truly lovely iPhone (3Gs) to a Android phone. My choice is the Samsung Galaxy S i9000. So, how is the experience so far?</p>
<p><span id="more-223"></span></p>
<p>Actually, I can say nothing else but good things about it. The Android OS feels just like…. natural. You realize quickly, that Google has put in a lot of efforts into this system. Actually, they put in a lot of efforts in their latest products (Chrome, Picasa, etc.). In any case, I could get everything running in short time.</p>
<p>If you have a Google (or Google Apps) account then synching and setting up the phone is a breeze. All you have to do is to enter your eMail address and password and your phone pulls all the eMail, Calendar and Contacts from Google. Nothing else to do there. I actually had a funny thing with Contact synching. Exchnage webdav support is also nice.  Quicker and easier to setup than the iPhone.</p>
<p>You can feel that Android was build for working with Google Apps. eMails come in almost as instantly as on any desktop app. GTalk is integrated also and you get notification going all over the place. One thing that Android has definitely gotten right, are the notification in general. They don’t only work for some applications, but work for about everything. This is especially useful if you are on Twitter (who isn’t? btw: follow me at @thenitai) and someone mentions you or is sending you a message. This works with Seesmic or Hootsuite and any other app. Very nice.</p>
<p>Another thing is the geo location functionality. Google Maps with direction just blows aways about everything you have seen before. Did you ever try to use Directions on the iPhone? The last time in London, I ended up in a total different place. Anyhow, all I’m saying is that Android is really a good system and if they continue like this, they will give everyone a run for their money (yes, Apple I mean you).</p>
<p>Not being a “game” guy, I did not play one game on it yet, but can imagine that the Galaxy screen just screams for it  Talking about the screen. WOW. This Super Alomed screen is just marvelous. The phone itself is bigger then the iPhone (3g and 4G) but just a little. Since it is lighter then the iPhone 4G you actually don’t feel a difference at all. Actually, you won’t even notice a big difference between the iPhone and the Samsung, until you start working with it and realize that Android is not just a “Linux” and “Geek” system, but a grown up operating system for the phone. And a fun one as well. Turn on “Live Wallpaper” and you know what I mean…</p>
<p>At the end, I recommend the phone wholeheartedly to everyone who is thinking of switching from the iPhone.</p>
<h2>Setup GPRS and MMS for Swisscom network</h2>
<p>If you, like me, have not bought the phone from Swisscom directly you have to setup the phone manually to be able to connect to any Internet service on 3G. Swisscom offers a “setup your device” website which will send you a SMS and will automatically configure the phone, but unfortunately the Samsung Galaxy can not be configured this way. Thus we have to do some hand work here.</p>
<p>Go to “Settings”, click on “Wireless and network” and then on “Mobile networks”. Within click on “Access Point Names”. You will probably see a black screen. Thus we will have to add a APN now. Click on the menu key and “New APN” (do it once for GPRS and one time for MMS). Then simply enter all the required paramaters according to the list below:</p>
<p>For GPRS:<br />
Name: Swisscom GPRS<br />
APN: gprs.swisscom.ch<br />
Proxy:<br />
Port:<br />
User name: gprs<br />
Password: gprs<br />
Server:<br />
MMSC:<br />
MMS-Proxy:<br />
MMS-Port:<br />
MCC: 228<br />
MNC: 01<br />
Authentication type:<br />
APN-Typ: Internet + MMS</p>
<p>For GPRS:<br />
Name: Swisscom MMS<br />
APN: event.swisscom.ch<br />
Proxy:<br />
Port:<br />
User name:<br />
Password:<br />
Server:<br />
MMSC: http://mms.natel.ch:8079<br />
MMS-Proxy: 192.168.210.2<br />
MMS-Port: 8080<br />
MCC: 228<br />
MNC: 01<br />
Authentication type:<br />
APN-Typ: MMS</p>
<p>That’s it. Now you should be able to see the “3G” sign in the upper menu bar and will be able to connect to Twitter et all on your mobile network.</p>
]]></content:encoded>
			<wfw:commentRss>http://humphrey.za.net/2010/09/01/from-iphone-to-android-%e2%80%93-samsung-galaxy-s-i9000/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android emulator on Ubuntu</title>
		<link>http://humphrey.za.net/2010/08/29/android-emulator-on-ubuntu/</link>
		<comments>http://humphrey.za.net/2010/08/29/android-emulator-on-ubuntu/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 07:14:50 +0000</pubDate>
		<dc:creator>nitr8</dc:creator>
				<category><![CDATA[Wayne]]></category>

		<guid isPermaLink="false">http://humphrey.za.net/?p=215</guid>
		<description><![CDATA[I have been considering ditching the iphone for a while now, to get the SDK EMU working was a must to see if I can get all the stuff I use on my iphone working in android (exchange support, train timetables etc.)This is the step-by-step instructions for how to install the Android emulator on Ubuntu [...]]]></description>
			<content:encoded><![CDATA[<p>I have been considering ditching the iphone for a while now, to get the SDK EMU working was a must to see if I can get all the stuff I use on my iphone working in android (exchange support, train timetables etc.)This is the step-by-step instructions for how to install the Android emulator on Ubuntu 10.04.<span id="more-215"></span></p>
<h2>Java? Java!</h2>
<p>You will need Java, the standard OpenJDK implementation will work just fine:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get install</span> openjdk-<span style="color: #000000;">6</span>-jdk</div></div>
<p>Once that&#8217;s installed, you might want to verify that it seems to work:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">java <span style="color: #660033;">-version</span><br />
java version <span style="color: #ff0000;">&quot;1.6.0_18&quot;</span><br />
OpenJDK Runtime Environment <span style="color: #7a0874; font-weight: bold;">&#40;</span>IcedTea6 <span style="color: #000000;">1.8</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>6b18-<span style="color: #000000;">1.8</span>-4ubuntu3<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
OpenJDK <span style="color: #000000;">64</span>-Bit Server VM <span style="color: #7a0874; font-weight: bold;">&#40;</span>build <span style="color: #000000;">16.0</span>-b13, mixed mode<span style="color: #7a0874; font-weight: bold;">&#41;</span></div></div>
<h2>Downloading the Android SDK</h2>
<p>Grab the latest Android SDK tarball from <a href="http://dl.google.com/android/android-sdk_r06-linux_86.tgz">here</a>, and install it somewhere under your home directory. Once you do that, you should add the newly-installed tools/ subdirectory to your search path, since you&#8217;re going to want to be running the android and emulator executables real soon now. Once you do that, naturally, log out and log back in to make sure you have the updated search path.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>dl.google.com<span style="color: #000000; font-weight: bold;">/</span>android<span style="color: #000000; font-weight: bold;">/</span>android-sdk_r06-linux_86.tgz<br />
<span style="color: #c20cb9; font-weight: bold;">gzip</span> <span style="color: #660033;">-dc</span> android-sdk_r06-linux_86.tgz <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvf</span> -</div></div>
<p>And now, the real downloading starts.</p>
<h2>Adding the SDK components</h2>
<p>At this point, you need to download and install the SDK components for whatever versions of Android you want to support. Initially, you can tell that you have no SDK versions downloaded:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">android list<br />
Available Android targets:<br />
Available Android Virtual Devices:</div></div>
<p>So what you need to do is run the following, and select whatever versions of the SDK you&#8217;re going to need. Unless you&#8217;re being frugal, just select everything since you never know if you&#8217;ll need to support older versions:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">android update sdk</div></div>
<p>Depending on your download speed, take a break. Once the entire download is done, you can verify that it&#8217;s all there with:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">android list<br />
Available Android targets:<br />
id: <span style="color: #000000;">1</span> or <span style="color: #ff0000;">&quot;android-2&quot;</span><br />
Name: Android <span style="color: #000000;">1.1</span><br />
Type: Platform<br />
API level: <span style="color: #000000;">2</span><br />
Revision: <span style="color: #000000;">1</span><br />
Skins: HVGA-P, QVGA-P, HVGA <span style="color: #7a0874; font-weight: bold;">&#40;</span>default<span style="color: #7a0874; font-weight: bold;">&#41;</span>, QVGA-L, HVGA-L<br />
id: <span style="color: #000000;">2</span> or <span style="color: #ff0000;">&quot;android-3&quot;</span><br />
Name: Android <span style="color: #000000;">1.5</span><br />
Type: Platform<br />
API level: <span style="color: #000000;">3</span><br />
Revision: <span style="color: #000000;">4</span><br />
Skins: HVGA-P, QVGA-P, HVGA <span style="color: #7a0874; font-weight: bold;">&#40;</span>default<span style="color: #7a0874; font-weight: bold;">&#41;</span>, QVGA-L, HVGA-L<br />
id: <span style="color: #000000;">3</span> or <span style="color: #ff0000;">&quot;android-4&quot;</span><br />
Name: Android <span style="color: #000000;">1.6</span><br />
Type: Platform<br />
API level: <span style="color: #000000;">4</span><br />
Revision: <span style="color: #000000;">3</span><br />
Skins: HVGA <span style="color: #7a0874; font-weight: bold;">&#40;</span>default<span style="color: #7a0874; font-weight: bold;">&#41;</span>, WVGA854, WVGA800, QVGA<br />
id: <span style="color: #000000;">4</span> or <span style="color: #ff0000;">&quot;android-5&quot;</span><br />
Name: Android <span style="color: #000000;">2.0</span><br />
Type: Platform<br />
API level: <span style="color: #000000;">5</span><br />
Revision: <span style="color: #000000;">1</span><br />
Skins: HVGA <span style="color: #7a0874; font-weight: bold;">&#40;</span>default<span style="color: #7a0874; font-weight: bold;">&#41;</span>, WVGA854, WVGA800, WQVGA400, WQVGA432, QVGA<br />
id: <span style="color: #000000;">5</span> or <span style="color: #ff0000;">&quot;android-6&quot;</span><br />
Name: Android 2.0.1<br />
Type: Platform<br />
API level: <span style="color: #000000;">6</span><br />
Revision: <span style="color: #000000;">1</span><br />
Skins: HVGA <span style="color: #7a0874; font-weight: bold;">&#40;</span>default<span style="color: #7a0874; font-weight: bold;">&#41;</span>, WVGA854, WVGA800, WQVGA400, WQVGA432, QVGA<br />
id: <span style="color: #000000;">6</span> or <span style="color: #ff0000;">&quot;android-7&quot;</span><br />
Name: Android <span style="color: #000000;">2.1</span>-update1<br />
Type: Platform<br />
API level: <span style="color: #000000;">7</span><br />
Revision: <span style="color: #000000;">2</span><br />
Skins: HVGA <span style="color: #7a0874; font-weight: bold;">&#40;</span>default<span style="color: #7a0874; font-weight: bold;">&#41;</span>, WVGA854, WVGA800, WQVGA400, WQVGA432, QVGA<br />
id: <span style="color: #000000;">7</span> or <span style="color: #ff0000;">&quot;android-8&quot;</span><br />
Name: Android <span style="color: #000000;">2.2</span><br />
Type: Platform<br />
API level: <span style="color: #000000;">8</span><br />
Revision: <span style="color: #000000;">2</span><br />
Skins: HVGA <span style="color: #7a0874; font-weight: bold;">&#40;</span>default<span style="color: #7a0874; font-weight: bold;">&#41;</span>, WVGA854, WVGA800, WQVGA400, WQVGA432, QVGA<br />
Available Android Virtual Devices:</div></div>
<p>So that tells us that we have support for various versions of Android, but no virtual devices yet. No problem. Time to create some virtual devices.</p>
<h2>Creating a virtual device or two</h2>
<p>A fairly simple procedure:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">android</div></div>
<p>Select &#8220;New,&#8221; give your new Android Virtual Device (AVD) a name and so on, but there&#8217;s one caution &#8212; apparently, there&#8217;s still a bug (reported by your humble author) that you can&#8217;t select an SD card image of size 2G or larger so just pick something smaller. Once that appears to be done, close the window and verify you have a new AVD (given some values I pulled out of thin air):</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">android list avds<br />
Available Android Virtual Devices:<br />
Name: avd2.2<br />
Path: <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>rpjday<span style="color: #000000; font-weight: bold;">/</span>.android<span style="color: #000000; font-weight: bold;">/</span>avd<span style="color: #000000; font-weight: bold;">/</span>avd2.2.avd<br />
Target: Android <span style="color: #000000;">2.2</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>API level <span style="color: #000000;">8</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
Skin: HVGA<br />
Sdcard: 1024M</div></div>
<h2>Run the EMU!</h2>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">emulator <span style="color: #000000; font-weight: bold;">@</span>avd2.2</div></div>
<p>Note that, the first time you run the emulator on a new AVD, it might take a while so be patient. And now, the fun part &#8212; installing a new app.</p>
<h2>Installing a new app on your emulator</h2>
<p>A detailed explanation of how to install a new Android app can be found here, but let&#8217;s keep it short. Assuming you have your new app in .apk file format, simply make sure your emulator is running:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">adb devices<br />
List of devices attached<br />
emulator-<span style="color: #000000;">5554</span> &nbsp; device</div></div>
<p>at which point, install the app with:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">adb <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>.apk filename here<span style="color: #7a0874; font-weight: bold;">&#93;</span></div></div>
<p>whereupon the icon for your new app should show up in the emulator.</p>
]]></content:encoded>
			<wfw:commentRss>http://humphrey.za.net/2010/08/29/android-emulator-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>t60p ubuntu tweaks</title>
		<link>http://humphrey.za.net/2010/08/13/t60p-ubuntu-tweaks/</link>
		<comments>http://humphrey.za.net/2010/08/13/t60p-ubuntu-tweaks/#comments</comments>
		<pubDate>Fri, 13 Aug 2010 12:30:33 +0000</pubDate>
		<dc:creator>nitr8</dc:creator>
				<category><![CDATA[Wayne]]></category>

		<guid isPermaLink="false">http://humphrey.za.net/?p=194</guid>
		<description><![CDATA[A couple of things I do to get my clean installs back to the way I like them. Hacks to get things working Smoothly Volume OSD Volume buttons now work find in ubuntu 10.04 however there is no OSD. To get OSD working do the following: vi /etc/rc.local add this just before exit 0 cp /sys/devices/platform/thinkpad_acpi/hotkey_all_mask [...]]]></description>
			<content:encoded><![CDATA[<p>A couple of things I do to get my clean installs back to the way I like them.<br />
<span id="more-194"></span></p>
<h3>Hacks to get things working Smoothly</h3>
<p>Volume OSD<br />
Volume buttons now work find in ubuntu 10.04 however there is no OSD. To get OSD working do the following:<br />
vi /etc/rc.local<br />
add this just before exit 0<br />
cp /sys/devices/platform/thinkpad_acpi/hotkey_all_mask /sys/devices/platform/thinkpad_acpi/hotkey_mask</p>
<h3>Nice to haves</h3>
<h4>Enable playback of MP3’s, MP4’s &amp; more</h4>
<p>Ubuntu aren’t allowed by law to ship certain multimedia codec&#8217;s out of the box. Installing them yourself, thankfully, is a breeze – just click the button below!<br />
<a href="apt:ubuntu-restricted-extras"><img src="http://humphrey.za.net/wp-content/uploads/2010/08/install_codecs.png"></a></p>
<h4>Change font and/or font size</h4>
<p>I know what you’re thinking: those fonts look huge, huh? Set them to a smaller size via the Appearance menu (Shortcut: Right click on Desktop &gt; Change Background &gt; Fonts).<br />
<img src="http://humphrey.za.net/wp-content/uploads/2010/08/DroidSans.png"> </p>
<p>Most people find size 9pt works well but if you have a very wide display 8pt may suit you better.  If the default font isn’t to your taste a lot of readers suggested installing <em>DroidSans</em>:<br />
<a href="apt:ttf-droid"><img src="http://humphrey.za.net/wp-content/uploads/2010/08/install-droidans.png"></a></p>
<p>Many people also recommend you install the Microsoft Core fonts package for better web browsing:<br />
<a href="apt:msttcorefonts"><img src="http://humphrey.za.net/wp-content/uploads/2010/08/install-msfonts.png"></a></p>
<h4>Install Ubuntu Tweak and make your life easier</h4>
<p>Ubuntu Tweak is a one-stop shop for managing and installing extra applications, tweaking your desktop (such as putting the window controls back on the right and choosing which icons show on the desktop) and allowing you to keep your system in tip-top shape with the built in system cleaning options. (Ubuntu tweak recently <a href="http://www.omgubuntu.co.uk/2010/04/best-ubuntu-system-cleaner-you-decide.html" target="_blank">won our ‘Best System Cleaners’ poll</a> by a landslide – and for good reason!)<br />
<img src="http://humphrey.za.net/wp-content/uploads/2010/08/ubuntu-tweak.png"><br />
<a href="http://ubuntu-tweak.com/"><img src="http://humphrey.za.net/wp-content/uploads/2010/08/install-ubuntu-tweak.png"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://humphrey.za.net/2010/08/13/t60p-ubuntu-tweaks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Judder free perfectly synced playback on xbmc</title>
		<link>http://humphrey.za.net/2010/08/09/judder-free-perfectly-synced-playback-on-xbmc/</link>
		<comments>http://humphrey.za.net/2010/08/09/judder-free-perfectly-synced-playback-on-xbmc/#comments</comments>
		<pubDate>Mon, 09 Aug 2010 16:35:47 +0000</pubDate>
		<dc:creator>nitr8</dc:creator>
				<category><![CDATA[Wayne]]></category>

		<guid isPermaLink="false">http://humphrey.za.net/?p=186</guid>
		<description><![CDATA[Since there&#8217;s a lot of misinformation in the forum about how xorg display modes works, This is the right way. First of all, modelines are not a the magic solution to all your problems. Modelines are only needed with tv&#8217;s that have faulty EDID information. Most TVs provide the correct modes for 29.97/59.94 Hz, but [...]]]></description>
			<content:encoded><![CDATA[<p>Since there&#8217;s a lot of misinformation in the forum about how xorg display modes works, This is the right way.</p>
<p>First of all, modelines are not a the magic solution to all your problems. Modelines are only needed with tv&#8217;s that have faulty EDID information. Most TVs provide the correct modes for 29.97/59.94 Hz, but the modes are not used by xrandr by default, so XBMC can&#8217;t see that they are available.<br />
<span id="more-186"></span><br />
To check how ~24 and ~60 Hz modes are currently handled on your setup you can run the following command:<br />
(XBMC Live doesn&#8217;t have libgtk, which is required by nvidia-settings. Either check the refresh inside XBMC instead by pausing a video and pressing &#8220;o&#8221;, or run &#8220;sudo apt-get install libgtk2.0-0&#8243;.)</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">DISPLAY</span>=:<span style="color: #000000;">0</span><br />
<span style="color: #000000; font-weight: bold;">for</span> i <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000;">24</span> <span style="color: #000000;">60</span>; <span style="color: #000000; font-weight: bold;">do</span> xrandr <span style="color: #660033;">-r</span> <span style="color: #007800;">$i</span>; nvidia-settings <span style="color: #660033;">-q</span> RefreshRate <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-o</span> <span style="color: #ff0000;">&quot;[0-9][0-9].*Hz&quot;</span>; <span style="color: #000000; font-weight: bold;">done</span></div></div>
<p>The command will print the actual refresh rates used when switching the way XBMC does. Most setups will show 24 and 60 Hz instead of the wanted 23.97 and 59.94 Hz. You can run the command again after step 3 to check the difference.</p>
<p>The steps needed to set everything up are:</p>
<ul>
<li>Adding a proper xorg.conf</li>
<li>Finding what modes the TV says it supports in it&#8217;s EDID.</li>
<li>Adding the wanted modes to xorg.conf so XBMC can use them.</li>
<li>Adjusting the settings in NVIDIA&#8217;s drivers.</li>
<li>Adjusting the settings in XBMC.</li>
</ul>
<h2><span style="color: #444444;">Manual installation</span></h2>
<h3>1. Adding a proper xorg.conf</h3>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">WGET XXXX</div></div>
<p>Now your /etc/X11/xorg.conf should look like this:</p>
<div class="codecolorer-container xml default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Section &quot;Device&quot;<br />
Identifier &quot;nvidia&quot;<br />
Driver &nbsp;&quot;nvidia&quot;<br />
Option &nbsp;&quot;NoLogo&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;true&quot;<br />
Option &nbsp;&quot;DynamicTwinView&quot; &nbsp; &nbsp; &quot;false&quot;<br />
Option &nbsp;&quot;NoFlip&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;false&quot;<br />
Option &nbsp;&quot;FlatPanelProperties&quot; &quot;Scaling = Native&quot;<br />
Option &nbsp;&quot;ModeValidation&quot; &nbsp; &nbsp; &nbsp;&quot;NoVesaModes, NoXServerModes&quot;<br />
Option &nbsp;&quot;UseDisplayDevice&quot; &nbsp; &nbsp;&quot;DFP-1&quot;<br />
Option &nbsp;&quot;ModeDebug&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;true&quot;<br />
Option &nbsp;&quot;HWCursor&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;false&quot;<br />
EndSection<br />
<br />
Section &quot;Screen&quot;<br />
Identifier &nbsp; &nbsp; &nbsp;&quot;screen&quot;<br />
Device &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;nvidia&quot;<br />
SubSection &nbsp; &nbsp; &nbsp;&quot;Display&quot;<br />
Modes &quot;1920x1080_60&quot;<br />
EndSubSection<br />
EndSection<br />
<br />
Section &quot;Extensions&quot;<br />
Option &nbsp;&quot;Composite&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;false&quot;<br />
EndSection</div></div>
<p>The XBMC forum contains a lot of posts with messy xorg.conf settings, using options that are enabled by default, deprecated or unrelated to video playback. This is all that is needed. Don&#8217;t use options you don&#8217;t understand! Explanations to all the options can be found in the NVIDIA drivers manual. The ModeDebug option makes the nvidia driver print all the available modes to Xorg&#8217;s log file.</p>
<h3>2. Finding what modes the TV says it supports in it&#8217;s EDID.</h3>
<p>Now that ModeDebug is enabled Xorg needs to be restarted so the available modes will be written to the log file.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> service gdm restart</div></div>
<p>or if you are running XBMC Live:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> service xbmc-live stop<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> service xbmc-live start</div></div>
<p>Parse Xorg&#8217;s log file and output a text file with all the available modes on your desktop:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">'/- Modes/,/- End/p'</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>Xorg.0.log <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s/.*(0)://g'</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt; ~<span style="color: #000000; font-weight: bold;">/</span>modes.txt</div></div>
<h3>3. Adding the wanted modes to xorg.conf so XBMC can use them.</h3>
<p>Open up modes.txt and /etc/X11/xorg.conf in your favourite editor.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">vi</span> ~<span style="color: #000000; font-weight: bold;">/</span>modes.txt<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>X11<span style="color: #000000; font-weight: bold;">/</span>xorg.conf</div></div>
<p>The relevant part of my modes.txt looks like this:</p>
<div class="codecolorer-container xml default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">--- Modes in ModePool for SAMSUNG (DFP-0) ---<br />
&quot;nvidia-auto-select&quot; : 1920 x 1080 @ &nbsp;60.0 Hz &nbsp;(from: EDID)<br />
&quot;1920x1080&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: 1920 x 1080 @ &nbsp;60.0 Hz &nbsp;(from: EDID)<br />
&quot;1920x1080_60&quot; &nbsp; &nbsp; &nbsp; : 1920 x 1080 @ &nbsp;60.0 Hz &nbsp;(from: EDID)<br />
&quot;1920x1080_60_0&quot; &nbsp; &nbsp; : 1920 x 1080 @ 59.94/60 Hz (CEA-861B Format 16) (from: EDID)<br />
&quot;1920x1080_50&quot; &nbsp; &nbsp; &nbsp; : 1920 x 1080 @ 50 Hz (CEA-861B Format 31) (from: EDID)<br />
&quot;1920x1080_30&quot; &nbsp; &nbsp; &nbsp; : 1920 x 1080 @ 29.97/30 Hz (CEA-861B Format 34) (from: EDID)<br />
&quot;1920x1080_25&quot; &nbsp; &nbsp; &nbsp; : 1920 x 1080 @ 25 Hz (CEA-861B Format 33) (from: EDID)<br />
&quot;1920x1080_24&quot; &nbsp; &nbsp; &nbsp; : 1920 x 1080 @ 23.97/24 Hz (CEA-861B Format 32) (from: EDID)<br />
&quot;1920x1080_60i&quot; &nbsp; &nbsp; &nbsp;: 1920 x 1080 @ 59.94/60 Hz (CEA-861B Format 5) (from: EDID)<br />
&quot;1920x1080_50i&quot; &nbsp; &nbsp; &nbsp;: 1920 x 1080 @ &nbsp;50.0 Hz Interlace &nbsp;(from: EDID)<br />
--- End of ModePool for SAMSUNG (DFP-0): ---</div></div>
<p>If you don&#8217;t have any 23.97 or 59.94 modes here, that&#8217;s when you need to use modelines instead! Use the test command in the beginning of the post to see if your modelines work as expected. Then continue with step 4.</p>
<p>The above TV supports both both 60 and 59.94 Hz. The left column is the name of the mode. As you can see both modes have names that start with &#8220;1920x1080_60&#8243;. Since xrandr can&#8217;t have two ~60 Hz modes available at the same time, we need to tell it to use the 59.94 Hz mode when switching to a ~60 Hz refresh rate. Same needs to be done with the ~24 Hz mode.</p>
<p>The two modes wanted are called &#8220;1920x1080_60_0&#8243; and &#8220;1920x1080_24_0&#8243; since they provide the correct refresh rates. To enable these, paste the names of the modes to the Modes-line of /etc/X11/xorg.conf replacing the current setting. The first mode on the line will be your default mode. In my case it looks like this when done:</p>
<div class="codecolorer-container xml default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Modes &quot;1920x1080_60_0&quot; &quot;1920x1080_24_0&quot;</div></div>
<p>Save and exit. Restart Xorg for the settings to take effect:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> service gdm restart</div></div>
<p>or if you are running XBMC Live:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> service xbmc-live stop<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> service xbmc-live start</div></div>
<h3>4. Adjusting the settings in NVIDIA&#8217;s drivers.</h3>
<p>To enable all the right and disable all the wrong options in the drivers you can run this command: (Not needed on XBMC Live)</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">DISPLAY</span>=:<span style="color: #000000;">0</span><br />
nvidia-settings <span style="color: #660033;">-a</span> <span style="color: #ff0000;">&quot;SyncToVBlank=1&quot;</span><br />
nvidia-settings <span style="color: #660033;">-a</span> <span style="color: #ff0000;">&quot;AllowFlipping=1&quot;</span><br />
nvidia-settings <span style="color: #660033;">-a</span> <span style="color: #ff0000;">&quot;FSAAAppControlled=1&quot;</span><br />
nvidia-settings <span style="color: #660033;">-a</span> <span style="color: #ff0000;">&quot;OpenGLImageSettings=3&quot;</span><br />
nvidia-settings <span style="color: #660033;">-a</span> <span style="color: #ff0000;">&quot;LogAniso=0&quot;</span><br />
nvidia-settings <span style="color: #660033;">-a</span> <span style="color: #ff0000;">&quot;GPUScaling[DFP-0]=1,1&quot;</span><br />
nvidia-settings <span style="color: #660033;">-r</span></div></div>
<p>All these options are available though the gui of nvidia-settings aswell.</p>
<h3>5. Adjusting the settings in XBMC.</h3>
<p>In XBMC you want to set the following:</p>
<h4>System Settings</h4>
<ul>
<li>Vertical blank sync &#8211; Always enabled</li>
</ul>
<h4>Video Settings</h4>
<ul>
<li>Render method &#8211; Auto detect</li>
<li>Adjust display refresh rate to match video &#8211; On</li>
<li>Sync playback to display &#8211; On</li>
<li>A/V sync method &#8211; Audio</li>
</ul>
<p><a href="http://humphrey.za.net/wp-content/uploads/2010/08/SystemSettings.png"><img class="aligncenter size-full wp-image-190" title="SystemSettings" src="http://humphrey.za.net/wp-content/uploads/2010/08/SystemSettings.png" alt="" width="800" height="450" /></a><br />
<a href="http://humphrey.za.net/wp-content/uploads/2010/08/VideoSettings.png"><img class="aligncenter size-full wp-image-191" title="VideoSettings" src="http://humphrey.za.net/wp-content/uploads/2010/08/VideoSettings.png" alt="" width="800" height="450" /></a></p>
<p>XBMC should now automatically switches between 23.97, 50, and 59.94 Hz for 23.97, 25 and 29.97 FPS content respectively.</p>
<p>Two settings that you might want to try if you run into trouble is setting &#8220;Sync playback to display&#8221; to Off in XBMC and/or change NoFlip to &#8220;false&#8221; in /etc/X11/xorg.conf.</p>
]]></content:encoded>
			<wfw:commentRss>http://humphrey.za.net/2010/08/09/judder-free-perfectly-synced-playback-on-xbmc/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Automatic USB backup</title>
		<link>http://humphrey.za.net/2010/08/07/automatic-usb-backup/</link>
		<comments>http://humphrey.za.net/2010/08/07/automatic-usb-backup/#comments</comments>
		<pubDate>Sat, 07 Aug 2010 10:49:02 +0000</pubDate>
		<dc:creator>nitr8</dc:creator>
				<category><![CDATA[Wayne]]></category>

		<guid isPermaLink="false">http://humphrey.za.net/?p=180</guid>
		<description><![CDATA[Everyone has important files like personal photographs, bank statements, a life&#8217;s accumulation of porn and so and and so forth that would be hard or impossible to recover if that damn hard drive would fail. I&#8217;ve always been well aware of the dangers of not taking backups but yet still lazy enough to ignore it. [...]]]></description>
			<content:encoded><![CDATA[<p>Everyone has important files like personal photographs, bank statements, a life&#8217;s accumulation of porn and so and and so forth that would be hard or impossible to recover if that damn hard drive would fail.</p>
<p><span id="more-180"></span></p>
<p>I&#8217;ve always been well aware of the dangers of not taking backups but yet still lazy enough to ignore it.</p>
<p>Backup for the lazy includes the following steps:</p>
<ul>
<li>Put USB stick in computer</li>
<li>Wait for computer to BEEP or USB stick to stop flashing</li>
<li>Unplug USB stick</li>
<li>Rinse and repeat!</li>
</ul>
<p>I wrote a package that does the following:</p>
<ul>
<li>Detects USB drives connected to the computer and runs the backup script</li>
<li>Only runs backup on partitions that match the configured volume_id</li>
<li>Mounts the volume</li>
<li>Runs rsync and takes an incremental copy of the files that have changed since a last backup.</li>
<li>Unmounts the volume</li>
<li>Gives a good or a bad beep through the PC speaker</li>
</ul>
<h2>Step by Step</h2>
<ol>
<li>Insert your USB stick/disk</li>
<li>Make sure it has a usable partition. I use FAT32 so my Mac can also read it. (hint: System &gt; Administration &gt; Partition Editor)</li>
<li>Download the two files and put them in the appropriate places</li>
<p>/etc/udev/rules.d/55-usb-backup.rules (udev rule)<br />
/usr/local/bin/usb-backup (shell script)</p>
<li>Find the volume id of your partition and replace mine in the &#8216;usb-backup&#8217; file</li>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;</span>div <span style="color: #007800;">id</span>=<span style="color: #ff0000;">&quot;_mcePaste&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>nitr8<span style="color: #000000; font-weight: bold;">@</span>slayer:~$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> blkid <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb1<span style="color: #000000; font-weight: bold;">&lt;/</span>div<span style="color: #000000; font-weight: bold;">&gt;</span><br />
<span style="color: #000000; font-weight: bold;">&lt;</span>div <span style="color: #007800;">id</span>=<span style="color: #ff0000;">&quot;_mcePaste&quot;</span><span style="color: #000000; font-weight: bold;">&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb1: <span style="color: #007800;">LABEL</span>=<span style="color: #ff0000;">&quot;data&quot;</span> <span style="color: #007800;">UUID</span>=<span style="color: #ff0000;">&quot;235f29f7-b951-4d33-8c87-4756e9652d40&quot;</span> <span style="color: #007800;">TYPE</span>=<span style="color: #ff0000;">&quot;ext4&quot;</span><span style="color: #000000; font-weight: bold;">&lt;/</span>div<span style="color: #000000; font-weight: bold;">&gt;</span></div></div>
<li>Set SRC_DIR to the directory you want backed up within &#8216;usb-backup&#8217;</li>
<li>Make sure the &#8216;usb-backup&#8217; file has the execute permission for root:</li>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">700</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>usb-backup</div></div>
<li>Unplug USB stick</li>
<li>Plug in USB stick</li>
<li>After it beeps or stops flashing try mounting it f.e.</li>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdd1 <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>sdd1</div></div>
<li>Check if all your files made it accross</li>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Unmount the volume again f.e.<br />
<span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdd1</div></div>
<li>Unplug and plug it in again once a week or so.</li>
<p>For audio beep to work you need the &#8216;beep&#8217; package (apt-get install beep)</ol>
<h3>Notes and credit</h3>
<p>Thanks to Anders for his original idea and implementation of this.<br />
The script does not check if the volume has enough space to do the backup. If it doesn&#8217;t, it will fail!<br />
If umounting seems slow, it&#8217;s due to delayed write to the USB drive.<br />
Should work on other Linux distributions as long as udev is present.<br />
This is provided &#8216;as is&#8217; and offers no guarantee. Use at your own risk!</p>
]]></content:encoded>
			<wfw:commentRss>http://humphrey.za.net/2010/08/07/automatic-usb-backup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

