<?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>Eq-Tech</title>
	<atom:link href="http://equima.pfpfree.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://equima.pfpfree.net</link>
	<description>More techno ramble - but with a twist!</description>
	<lastBuildDate>Sat, 28 Aug 2010 01:43:42 +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>Benchmarking HAProxy &#8211; Ubuntu vs FreeBSD</title>
		<link>http://equima.pfpfree.net/2010/benchmarking-haproxy-ubuntu-vs-freebsd/</link>
		<comments>http://equima.pfpfree.net/2010/benchmarking-haproxy-ubuntu-vs-freebsd/#comments</comments>
		<pubDate>Sat, 28 Aug 2010 01:42:53 +0000</pubDate>
		<dc:creator>farseeker</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://equima.pfpfree.net/?p=218</guid>
		<description><![CDATA[At work we&#8217;ve got a web server that&#8217;s fastly approaching capacity. With an expected rollout of our software to an additional 700 users, each using the site all day every weekday we need to expand capacity drastically. We can either spend about $100,000 upgrading licenses and purchasing beefier servers, or we can use HAProxy and [...]]]></description>
			<content:encoded><![CDATA[<p>At work we&#8217;ve got a web server that&#8217;s fastly approaching capacity. With an expected rollout of our software to an additional 700 users, each using the site all day every weekday we need to expand capacity drastically. We can either spend about $100,000 upgrading licenses and purchasing beefier servers, or we can use HAProxy and purchase about $20,000 worth of licenses. Bargain.</p>
<p>However, my experience with HAProxy is nill, so I&#8217;ve been putting this off for as long as possible. After reading the <a href="http://blog.serverfault.com/post/1016491873/better-rate-limiting-for-all-with-haproxy">ServerFault blog</a> and what they did with HAProxy I decided it was finally time to get my hands dirty.</p>
<p>Our scenario involves multiple windows servers, but HAProxy is <a href="http://serverfault.com/questions/95427/windows-replacement-for-haproxy/95878#95878">frankly pretty shit under Windows/Cygwin</a> (feel free to interpret that link however you will). So, *nix it is. I&#8217;m OK with that &#8211; I&#8217;ve got just enough experience in FreeBSD and Ubuntu server to get by, and Google is your friend. But that begs the question:</p>
<p>HAProxy on Ubuntu, or HAProxy on FreeBSD? I couldn&#8217;t find any real benchmarks comparing the two out in the wild, so I decided to do my own. <strong>Warning:</strong> From hereon in my stats are, to be honest, not going to be hugely accurate because I don&#8217;t have enough *nix knowledge to test all the proper metrics for this kind of exercise. I&#8217;m just hoping that if one of them is a clear winner, it wouldn&#8217;t matter if I honed in my statistics gathering. We&#8217;ll see.</p>
<p><strong>The setup</strong><br />
Everything we do at work is virtualised, so it makes sense to make the tests virtualised.</p>
<p><em>The VMWare Host:</em> I&#8217;m doing this on a development machine, which is a Quad Core 2.8Ghz, 8Gb of PC3200, RAID10 drives, in VMWare Workstation. The live environment will be a VMWare ESXi cluster, but this is as close as I can get.<br />
<em>Web Servers: </em> These are what we will be load balancing. I have two identical Windows Server 2008 R2 web servers running a simple, no-frills HTML webpage in IIS7, straight out of the box, no tuning whatsoever.<br />
<em>HAProxy VMs</em> Two vCPUs, 1024Mb of RAM, 20Gb fixed-size HDD. VMWare tools installed and updated.<br />
<em>FreeBSD:</em> FreeBSD 8.0-released-amd64. This isn&#8217;t the very latest version of FreeBSD but it&#8217;s all I had lying around. &#8220;Minimal&#8221; install<br />
<em>Ubuntu:</em> Ubuntu Server 10.4 amd64. No packages installed.<br />
<em>Jmeter:</em> I&#8217;ll be using <a href="http://jakarta.apache.org/jmeter/">Apache&#8217;s JMeter</a> to run real-world tests on the system. I want to simulate real-world usage for our servers. I&#8217;m not looking to absolutally max out the servers, mainly because I don&#8217;t have the ability to do that. I&#8217;m looking to simulate between 6000 and 8000 requests per second.</p>
<p><strong>The process</strong></p>
<p>Both of the VM&#8217;s are identical in specs. I&#8217;ve kep the load on the host as small as possible, to eliminate as many variables as possible. I will only be running three VM&#8217;s at a time (two web servers and one HAProxy). The connections will all be initiated from the host machine.</p>
<p>The first thing that I had forgotten about FreeBSD (especially with a Minimal install) is that installing VMWare tools is a bitch. Install the Perl package, install its dependancies, install the compatibility packages, answer these questions, blah blah blah. Installing VMWare tools on Ubuntu is as easy as pie.</p>
<p>I will be building HAProxy from scratch to ensure that the installations are as close as possible. The version of HAProxy in question is <a href="http://haproxy.1wt.eu/download/1.4/src/haproxy-1.4.8.tar.gz">haproxy-1.4.8</a>. This is where Ubuntu and FreeBSD were reversed. FreeBSD had everything needed to compile HAProxy immediately, whereas Ubutnu required GCC and libpcre++-dev. Swings and roundabouts&#8230;</p>
<p>What was immediately obvious is that the compile times were <em>fast</em> on both operating systems. Less than 3 seconds in both cases. Nice.</p>
<p>Thankfully the haproxy config file was identical for both HAProxy installations, because they weren&#8217;t using any os-specific options. It was as follows:</p>
<blockquote><p>global<br />
        pidfile /var/run/haproxy.pid<br />
        daemon</p>
<p>defaults<br />
        mode http<br />
        contimeout 500<br />
        clitimeout 500<br />
        srvtimeout 500</p>
<p>frontend http-in<br />
        bind *:80<br />
        default_backend servers</p>
<p>backend servers<br />
        server web1 192.168.0.210:80 check<br />
        server web2 192.168.0.211:80 check<br />
        balance roundrobin<br />
        option httpchk HEAD /index.html HTTP/1.0</p></blockquote>
<p>So. On to the results.</p>
<p><strong>The results</strong></p>
<p><a href="http://equima.pfpfree.net/wp-content/uploads/2010/08/haproxy-freebsd.png"><img src="http://equima.pfpfree.net/wp-content/uploads/2010/08/haproxy-freebsd-500x96.png" alt="" title="haproxy-freebsd" width="500" height="96" class="alignnone size-medium wp-image-222" /></a></p>
<p><a href="http://equima.pfpfree.net/wp-content/uploads/2010/08/haproxy-ubuntu.png"><img src="http://equima.pfpfree.net/wp-content/uploads/2010/08/haproxy-ubuntu-500x96.png" alt="" title="haproxy-ubuntu" width="500" height="96" class="alignnone size-medium wp-image-223" /></a></p>
<p>(if you&#8217;re interested you might want to click through to the full-sized versions. Multiple the scale by 100x to get the real values).</p>
<p>They look pretty similar. So, let&#8217;s go and put them ontop of eachother:</p>
<p><a href="http://equima.pfpfree.net/wp-content/uploads/2010/08/haproxy-combind.png"><img src="http://equima.pfpfree.net/wp-content/uploads/2010/08/haproxy-combind-500x96.png" alt="" title="haproxy-combind" width="500" height="96" class="alignnone size-medium wp-image-224" /></a></p>
<p>The result &#8211; almost identical. Which goes to show &#8211; in real-world conditions (and if you&#8217;re getting 8,000 hits a second &#8211; lucky you) there is no discernable difference between FreeBSD and Ubuntu when it comes to running HAProxy.</p>
]]></content:encoded>
			<wfw:commentRss>http://equima.pfpfree.net/2010/benchmarking-haproxy-ubuntu-vs-freebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DIY &#8211; Open Source Programming</title>
		<link>http://equima.pfpfree.net/2010/diy-open-source-programming/</link>
		<comments>http://equima.pfpfree.net/2010/diy-open-source-programming/#comments</comments>
		<pubDate>Thu, 05 Aug 2010 04:54:50 +0000</pubDate>
		<dc:creator>sparky</dc:creator>
				<category><![CDATA[Principles]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://equima.pfpfree.net/?p=216</guid>
		<description><![CDATA[I&#8217;m currently working on an open source project &#8211; which I won&#8217;t reveal just yet, because it&#8217;s still in the early development stage. The idea came to light about 6 ~ 8 months ago. Speaking to &#8216;Insanity&#8217;, he suggested &#8211; nay, encouraged &#8211; to write up a full outline of the what, when and how. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m currently working on an open source project &#8211; which I won&#8217;t reveal just yet, because it&#8217;s still in the early development stage.</p>
<p>The idea came to light about 6 ~ 8 months ago. Speaking to &#8216;Insanity&#8217;, he suggested &#8211; nay, encouraged &#8211; to write up a full outline of the what, when and how.</p>
<ul>
<li>What does the program do.</li>
<li>When does it do it.</li>
<li>How does it do it.</li>
</ul>
<p>Or, otherwise known as a Functional Specification and a Technical Specification.</p>
<p>In researching &#8216;guides&#8217;, Joel Spolsky &#8211; <a href="http://www.amazon.com/Joel-Spolsky/e/B001K8FTIE/ref=ntt_athr_dp_pel_1" target="_blank">famous for his various books</a> and his site <a href="http://joelonsoftware.com/" target="_blank">Joel on Software</a>, I found this guide on <a href="http://www.joelonsoftware.com/articles/fog0000000036.html" target="_blank">Functional Specifications</a>.<br />
There are four parts to it, and I highly encoursage reading. It&#8217;s definitely helped me kick start my write up.</p>
]]></content:encoded>
			<wfw:commentRss>http://equima.pfpfree.net/2010/diy-open-source-programming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Aldi Go Cruise 4300 Hack</title>
		<link>http://equima.pfpfree.net/2010/aldi-go-cruise-4300-hack/</link>
		<comments>http://equima.pfpfree.net/2010/aldi-go-cruise-4300-hack/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 23:23:25 +0000</pubDate>
		<dc:creator>sparky</dc:creator>
				<category><![CDATA[Hack / Mods]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Hack Aldi 4300 CE Ozi Explorer]]></category>

		<guid isPermaLink="false">http://equima.pfpfree.net/?p=173</guid>
		<description><![CDATA[Ozi Explorer is a handy little utility which allows 4WD enthusiasts to load maps onto a GPS device, and to track their locations on various 4WD tracks. One catch is the need to have a Windows OS enabled device. The creators have nicely created a couple of different versions &#8211; ranging from PDA / phones [...]]]></description>
			<content:encoded><![CDATA[<p>Ozi Explorer is a handy little utility which allows 4WD enthusiasts to load maps onto a GPS device, and to track their locations on various 4WD tracks.</p>
<p>One catch is the need to have a Windows OS enabled device.<br />
The creators have nicely created a couple of different versions &#8211; ranging from PDA / phones with Windows Mobile, as well as the ability to have it on any GPS device with a Windows CE Core.</p>
<p>Having purchased a Windows CE based GPS unit from <a href="http://aldi.com.au">Aldi</a>, I found a few guides which would allow me to modify it so as to bypass the default &#8216;interface&#8217; and to interact with the core OS.<br />
Here&#8217;s a concise guide how to do it &#8211; and should only take you about 20 minutes.<br />
Credit: I discovered the specific chipset used on the device from <a href="http://www.gpsaustralia.net/forums/showthread.php?t=13847&amp;highlight=cruise">here</a>.<br />
There was another guide dealing with a similar device that outlines how to do this &#8216;hack&#8217; <a href="http://forums.ebuyer.com/showpost.php?p=238281&amp;postcount=34">here</a>.<br />
<strong>Warning: I provide this guide &#8216;as is&#8217; with no warranties or guarantees. This worked for me &#8211; but there can be things that change in models, or other glitches that can happen along the way. If you happen to kill your device in the process, that is your fault &#8211; and have only yourself to blame.</strong></p>
<p>You&#8217;ll need:</p>
<li>1x Aldi GPS (Go Cruise 4300)</li>
<li>1x MicroSD Card (1 GB would suffice, I used a 4 GB Micro SDHC)</li>
<li>Computer with Active Sync (XP or older) / Mobile Device Centre (Vista / Windows 7)</li>
<li><a href="http://ceregeditor.mdsoft.pl/index.php?id=3&amp;lang=en">CE Reg Editor</a> [Free Download]</li>
<li><a href="http://www.oziexplorer3.com/ozice/oziexplorerce1.html">Ozi Explorer for PND/PDA</a> &#8211; <a href="http://www.oziexplorer3.com/ozice/downloads/v2a/wince_core_runtime_arm.zip">ARM Chipset</a></li>
<p style="text-align: left;"><span id="more-173"></span></p>
<p style="text-align: left;"><strong>Step One</strong><br />
Having installed ActiveSync / Mobile Device Center, connect the PDA/GPS to the computer<br />
Next, browse to the files / folders on it.</p>
<p style="text-align: left;">
<p style="text-align: center;"><a href="http://equima.pfpfree.net/wp-content/uploads/2010/03/expanded-folders.png"><img class="size-full wp-image-178     aligncenter" title="expanded folders - go cruiser 4300" src="http://equima.pfpfree.net/wp-content/uploads/2010/03/expanded-folders.png" alt="expanded folders - go cruiser 4300" width="180" height="341" /></a></p>
<p style="text-align: left;"><a href="http://equima.pfpfree.net/wp-content/uploads/2010/03/expanded-folders.png"></a><br />
The manual actually tells you to backup the GPS software (Found under <em>ResidentFlash\NNG</em>). Do this if you want, but it&#8217;s not necessary for this hack.</p>
<p><strong>Step Two</strong><br />
Fire up CE Reg Editor. Connect to your device, and you should be able to see the registry of it, just like you would on your own PC.<br />
<em><strong>Note:</strong> For Windows 7, I had to put it into &#8216;compatability mode: XP SP 3&#8242;, and &#8220;Run as Administrator&#8221;.</em></p>
<p><em><a href="http://equima.pfpfree.net/wp-content/uploads/2010/03/ceregedit1.png"><img class="aligncenter size-medium wp-image-180" title="CE RegEdit - Main Window" src="http://equima.pfpfree.net/wp-content/uploads/2010/03/ceregedit1-500x373.png" alt="CE RegEdit - Main Window" width="500" height="373" /></a></em></p>
<p>Expand the HKEY_LOCAL_MACHINE folder. You&#8217;ll have to do a few modifications.<br />
<strong>Note:</strong> The guide tells us to remap the My Documents, Application Data, Desktop &amp; Programs. I&#8217;m fairly confident this isn&#8217;t important &#8211; but remap to the SD card if you&#8217;d like (means you have more space to work with).<br />
The real key is the first change. IF you&#8217;re going to change the others as well, might as well do it all now.<br />
To Change the value of the registry key, simply select the key on the right hand panel (eg. Launch50), and then change the text in the &#8220;Value name&#8221; field:</p>
<p style="text-align: center;"><a href="http://equima.pfpfree.net/wp-content/uploads/2010/03/change_regval.png"><img class="aligncenter size-full wp-image-185" title="change_regval" src="http://equima.pfpfree.net/wp-content/uploads/2010/03/change_regval.png" alt="" width="480" height="272" /></a></p>
<p style="text-align: left;"><strong>List of values to change:</strong></p>
<p style="text-align: center;"><a href="http://equima.pfpfree.net/wp-content/uploads/2010/03/init-reghack.png"><img class="aligncenter size-medium wp-image-183" title="init-reghack" src="http://equima.pfpfree.net/wp-content/uploads/2010/03/init-reghack-500x162.png" alt="" width="500" height="162" /></a></p>
<p>1- HKEY_Local_Machine\init\Launch50<br />
Old value: launch.exe<br />
New value: explorer.exe</p>
<p style="text-align: center;"><a href="http://equima.pfpfree.net/wp-content/uploads/2010/03/rest-reghack.png"><img class="aligncenter size-medium wp-image-184" title="Registry Modifcations - rest" src="http://equima.pfpfree.net/wp-content/uploads/2010/03/rest-reghack-500x168.png" alt="Registry Modifcations - rest" width="500" height="168" /></a></p>
<p>2- HKey_Local_Machine\System\Explorer\ShellFolders\Desktop<br />
Old value: \Windows\Desktop<br />
New value: \SDMMC\Desktop</p>
<p>3- Hkey_Local_Machine\System\Explorer\Shell Folders\Programs<br />
Old value: \windows\programs<br />
New value: \SDMMC\Programs</p>
<p>4- Hkey_Local_Machine\System\Explorer\Shell\My Documents<br />
Old value: \My Documents<br />
New value: \SDMMC\My Documents</p>
<p>5- Hkey_Local_Machine\System\Explorer\Shell\Application Data<br />
Old value: \Application Data<br />
New value: \SDMMC\Application Data<br />
<strong>Note:</strong> There doesn&#8217;t seem to be an &#8220;Application Data&#8221; folder created in the \ root directory (where as there is the &#8220;My Documents&#8221; / &#8220;Desktop&#8221; / Programs&#8221;). I created one on the SDMMC just for good measure (in case &#8220;Application Data&#8221; is a hidden directory).</p>
<p>Once you&#8217;ve modified the registry, copy the folders from where they were originally ( \ root directory) to your SD Card.<br />
Also, whilst you&#8217;re at it: Create a folder on the SD Card called &#8220;Ozi Explorer&#8221;. Copy the <a href="http://www.oziexplorer3.com/ozice/downloads/v2a/wince_core_runtime_arm.zip">contents of the ZIP File</a> into there.</p>
<p>At this point, we&#8217;ve updated the registry, and copied over the the Ozi Explorer program. Next, restart the system. You can either goto &#8220;Tools | Reset Device&#8221; within CeReg Editor, or you can just turn the device off and on again.<br />
If all has gone well, you&#8217;ll be greeted with the warm, familiar Windows Explorer Interface:</p>
<p style="text-align: center;"><a href="http://equima.pfpfree.net/wp-content/uploads/2010/03/WinCE_desktop.png"><img class="aligncenter size-medium wp-image-188" title="WinCE_desktop" src="http://equima.pfpfree.net/wp-content/uploads/2010/03/WinCE_desktop-500x375.png" alt="Windows CE Default Desktop" width="500" height="375" /></a></p>
<p>From now on, every time you start up the device, it&#8217;ll boot into Windows CE.<br />
This only presents a small problem with accessing the navigation programs: So, we&#8217;ll create some shortcuts to these programs on the desktop.<br />
Remembering, we have no mouse or keyboard, so we have to improvise with a touch screen. There&#8217;s an &#8216;onscreen keyboard&#8217; we will be using &#8211; accessed via the little keyboard icon in the bottom right of the screen.</p>
<p>On the top left corner is an icon called &#8220;My Device&#8221; &#8211; this is basically the equivalent of &#8220;My Computer&#8221;, the file explorer for Windows.<br />
Double tapping that opens up the main screen:</p>
<p style="text-align: center;"><a href="http://equima.pfpfree.net/wp-content/uploads/2010/03/root_folder.png"><img class="aligncenter size-medium wp-image-190" title="Go Cruise Root Directory" src="http://equima.pfpfree.net/wp-content/uploads/2010/03/root_folder-500x306.png" alt="Go Cruise Root Directory" width="500" height="306" /></a></p>
<p style="text-align: left;">Browse to the ResidentFlash drive &#8211; which is the system reserved partition for the GPS software.<br />
Open NNG, and you&#8217;ll see the files pertaining to the GPS software:</p>
<p style="text-align: center;"><a href="http://equima.pfpfree.net/wp-content/uploads/2010/03/nng_dir.png"><img class="aligncenter size-medium wp-image-193" title="NNG Directory" src="http://equima.pfpfree.net/wp-content/uploads/2010/03/nng_dir-500x298.png" alt="NNG Directory" width="500" height="298" /></a></p>
<p style="text-align: left;">Select NNGNAVI (with the blue &#8216;iGo&#8217; icon).<br />
Go to EDIT &#8211; COPY. Then EDIT &#8211; PASTE AS SHORTCUT.<br />
Select the &#8220;Shortcut to NNGNAVI&#8221; file and go EDIT &#8211; CUT.<br />
Close that Window, and when on the desktop, go to the onscreen keyboard, tapping first CTL and then V (Ctrl-V, universal shortcut for &#8216;paste&#8217;):</p>
<p style="text-align: center;"><a href="http://equima.pfpfree.net/wp-content/uploads/2010/03/paste_nng.png"><img class="aligncenter size-medium wp-image-194" title="NNG pasted on Desktop" src="http://equima.pfpfree.net/wp-content/uploads/2010/03/paste_nng-500x300.png" alt="NNG pasted on Desktop" width="500" height="300" /></a></p>
<p style="text-align: left;">Similarly for Ozi Explorer; Go to My Device, Browse to the SDMMC drive.</p>
<p style="text-align: center;"><a href="http://equima.pfpfree.net/wp-content/uploads/2010/03/ozi_dir.png"><img class="aligncenter size-medium wp-image-195" title="Directory of Ozi Explorer" src="http://equima.pfpfree.net/wp-content/uploads/2010/03/ozi_dir-500x293.png" alt="Directory of Ozi Explorer" width="500" height="293" /></a></p>
<p style="text-align: left;">Open up the &#8216;Ozi Explorer&#8217; directory you created, and copied the files into. Select &#8220;OziExplorerCE&#8221;, EDIT &#8211; COPY, EDIT &#8211; PASTE AS SHORTCUT.<br />
Select &#8220;Shortcut to OziExplorerCE&#8221; and EDIT &#8211; CUT; Go to the desktop, and paste (CTL then V).</p>
<p style="text-align: left;">You can do this with any program that you install onto the SDMMC card.<br />
<strong>Note on installation of files</strong><br />
This particular Windows CE installation wipes any changes you make to the system &#8211; ignoring shortcuts on the desktop (remember how we moved the links to the desktop, etc. at the very beginning to the SD card? That&#8217;s so that the system wouldn&#8217;t wipe our hard work every time we shut the system down). This is because Windows CE is the same OS used on &#8216;Kiosk&#8217; Terminal machines: Any changes attempted to be made to the system will be wiped / undone as soon as the system reboots (all the core OS files are stored on a ROM &#8211; Read Only Memory). Unless you&#8217;re logged in as &#8216;administrator mode&#8217; which normally requiring a combination of key strokes to be pressed on boot &#8211; you can&#8217;t modify the core system settings or save it back to the ROM.<br />
So make sure you install additional software to your SD card.</p>
<p style="text-align: left;">When you press the power button, the system will only go into hibernation mode; luckily, the system designers added a shutdown command on the desktop:</p>
<p style="text-align: center;"><a href="http://equima.pfpfree.net/wp-content/uploads/2010/03/shutdown_exit.png"><img class="size-full wp-image-196  aligncenter" title="GPS Shutdown - Exit Icon" src="http://equima.pfpfree.net/wp-content/uploads/2010/03/shutdown_exit.png" alt="GPS Shutdown - Exit Icon" width="400" height="292" /></a></p>
<p style="text-align: left;">Double tape the icon marked &#8220;EXIT&#8221; and you&#8217;ll get a prompt saying &#8220;Shutdown?&#8221; with a big YES and NO to choose from.</p>
<p style="text-align: left;">There you have it &#8211; a more functional GPS unit, for only AU$129. <img src='http://equima.pfpfree.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align: left;">
<p style="text-align: center;">
]]></content:encoded>
			<wfw:commentRss>http://equima.pfpfree.net/2010/aldi-go-cruise-4300-hack/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Going with the flow</title>
		<link>http://equima.pfpfree.net/2010/going-with-the-flow/</link>
		<comments>http://equima.pfpfree.net/2010/going-with-the-flow/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 03:54:21 +0000</pubDate>
		<dc:creator>farseeker</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://equima.pfpfree.net/?p=158</guid>
		<description><![CDATA[Several months ago I took a 2nd, part-time, after-hours job doing sysadmin work for a company that I have a close relationship with. A large part of their business infrastructure is a 10-blade Dell Bladecentre system. It&#8217;s a mean beast. 20 CPUs, over 40Gb of RAM, and is set up as a VMWare ESXi cluster, [...]]]></description>
			<content:encoded><![CDATA[<p>Several months ago I took a 2nd, part-time, after-hours job doing sysadmin work for a company that I have a close relationship with. A large part of their business infrastructure is a 10-blade Dell Bladecentre system. It&#8217;s a mean beast. 20 CPUs, over 40Gb of RAM, and is set up as a VMWare ESXi cluster, hosting about 30 heavilly-used virtual machines.</p>
<p>Managing this cluster means using the <a href="http://www.vmware.com/products/vsphere/">VMWare vSphere Client</a>, which is fine. It&#8217;s a brilliant tool! Worth every penny. There&#8217;s just one thing that really, really, really bugs me, and after almost 6 months of using it every day, I&#8217;m still falling in the same trap.</p>
<p>Take a look at the following login screen for the vSphere client. Don&#8217;t linger, just take a glance. After all, it&#8217;s just a login screen:</p>
<p><img src="http://equima.pfpfree.net/wp-content/uploads/2010/02/vsphere-standard.png" alt="vSphere standard login dialog" title="vsphere-standard" width="500" class="alignnone size-full wp-image-161" /></p>
<p>Now, for someone who logs into dozens and dozens of things (apps/websites) every single day, a login screen is very standard. So what I see when I log in, is actually this:</p>
<p><img src="http://equima.pfpfree.net/wp-content/uploads/2010/02/vsphere-remember.png" alt="What I see when I log in" title="vsphere-remember" width="500"  class="alignnone size-full wp-image-160" /></p>
<p>Time to play spot the difference. Can&#8217;t be bothered? OK, here&#8217;s the big difference:</p>
<p><img src="http://equima.pfpfree.net/wp-content/uploads/2010/02/vsphere-focus-500x386.jpg" alt="Difference in login screens" title="vsphere-focus" width="500" height="386" class="alignnone size-medium wp-image-159" /></p>
<p>This difference is HUGELY important. Especially considering the vSphere domain is different to my local domain, so this option actually destroys my login. And it&#8217;s incredibly annoying, because:</p>
<p>1. The &#8220;Save my credentials&#8221; button goes on every single other login dialogue box I&#8217;ve ever used has been replaced by something that&#8217;s quite the opposite</p>
<p>2. After you&#8217;ve already typed your (in my case, very complicated) username and password</p>
<p>3. It deletes your username and password that you just typed in</p>
<p>And by the time I remember, it&#8217;s too late, I&#8217;ve already hit ENTER, and I have to wait 15 seconds for the login to fail just to be dumped back at the login prompt without any username or password.</p>
<p>What it SHOULD look like is:</p>
<p><img src="http://equima.pfpfree.net/wp-content/uploads/2010/02/vsphere-suggestion.png" alt="Suggested vSphere login dialogue box" title="vsphere-suggestion"  width="500"  class="alignnone size-full wp-image-162" /></p>
<p>This way, you&#8217;re doing things in a flow and order that makes sense, and nobody will ever wonder why vSphere wiped out their session credentials instead of saving them.</p>
<p>(just to be clear, not providing any option for saving your vSphere credentials is quite sensible. That&#8217;s not my issue here).</p>
]]></content:encoded>
			<wfw:commentRss>http://equima.pfpfree.net/2010/going-with-the-flow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gaming in the modern age</title>
		<link>http://equima.pfpfree.net/2010/gaming-in-the-modern-age/</link>
		<comments>http://equima.pfpfree.net/2010/gaming-in-the-modern-age/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 04:00:47 +0000</pubDate>
		<dc:creator>sparky</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://equima.pfpfree.net/?p=70</guid>
		<description><![CDATA[I&#8217;ve been thinking for a while about writing an article pertaining to computer/console games. Originally, I wanted to talk highly about the &#8216;shift&#8217; in the developers goals of creating mindless, violent First-Person Shooters where you go around killing anything that moves &#8211; to that of more &#8216;thought-inducing&#8217; strategy based learning teaching games. Back when I [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been thinking for a while about writing an article pertaining to computer/console games.</p>
<p>Originally, I wanted to talk highly about the &#8216;shift&#8217; in the developers goals of creating mindless, violent First-Person Shooters where you go around killing anything that moves &#8211; to that of more &#8216;thought-inducing&#8217; strategy based <span style="text-decoration: line-through;">learning</span> teaching games.</p>
<p>Back when I first started playing games, I wasn&#8217;t allowed to play Doom or Wolfenstein 3D &#8211; which were the original FPS&#8217;s of the time. Instead, I grew up playing games like The island of Dr Brain, and The castle of Dr Brain, along with The Incredible Machine, Hugo&#8217;s House of Horrors, Kings Quest, Day of the Tentacle and even Indiana Jones and the Last Crusade, (Sam and Max, and The Adventures of Willy Beamish also were in my fav&#8217;s list &#8211; which goes on and on&#8230;.)</p>
<p>I&#8217;m not sure how many of these games you&#8217;ll recognise or know, but they were &#8216;classics&#8217; in my mind, and bring a nostalgic flair to my memory. What was different about these games is that you had &#8216;puzzles&#8217; you had to solve. Be it having to go between 4 or 5 different characters to get the rope you needed to swing across the chasm, or working out that you had to mix 6 different items in your &#8216;bottomless backpack of inventory items&#8217; to create the one item you need to get that shiny ring.<br />
It was all in the name of good fun &#8211; and a lot of humour, subtle or otherwise.</p>
<p>Recently, Portal provided a similar experience, one that was different from the &#8216;norm&#8217;. Sure, we had the 3D engines, and everything looks really schmick on screen &#8211; but that&#8217;s only 10% of what makes a game. <strong>A good storyline is critical</strong>. I know I always get criticism from people when I harp on about this, but I stand by my &#8216;guns&#8217;. Movies and Books are the same &#8211; I don&#8217;t enjoy many modern ones because like many modern games, they lack this crucial element.</p>
<p>Mirrors Edge was a game I thought had a unique game-play style, backed by a positive and solid story. It was only when I reached the end that I was quite disappointed; primarily due to the lack of &#8216;fulfillment&#8217; of where the story ended up, and also because I wanted to do some more tricks; Like so many &#8216;chick flicks&#8217; &#8211; the main issues are discovered, and the dilemma of the protagonist is related to the viewer. However, the resolution seems to come to quickly and swiftly. Perhaps it&#8217;s because they feel the audience has been left on the edge of their seats for long enough &#8211; or they just ran out of &#8216;intermediary&#8217; people and sub-plots to place between the &#8216;plateau&#8217; of the issues and the final point of resolution.</p>
<p>Another game I&#8217;ve started in recent months (and yet to finish) is Assassins Creed. This one is an interesting mix between FPS and a more puzzle-based game, with goals and quests &#8211; not always requiring killing people, sometimes you have strange tasks such as picking pockets, or collecting a set number of &#8216;flags&#8217; within a time limit. The more interesting elements is the main story plot, and then sub plots within the characters. Scientifically speaking, it&#8217;s mostly none sense: But when has anyone let that get in the way of a good story? You get &#8216;sound&#8217; in space on shows like <em>Star Wars</em> and <em>Star Trek</em> &#8211; but not in <em>Firefly</em>. </p>
<p>In comparison, games on Wii are different again &#8211; primarily due to the controls. I know, there are FPS&#8217;s and various other games on there, but some of the &#8216;Wii Fitness&#8217; games are just plain fun! I love the Tennis and Golf that comes with Wii Sport &#8211; partially because it is a &#8216;sporting&#8217; game, but also because it&#8217;s something different.</p>
<p>The future of gaming is interesting. Microsoft&#8217;s latest attachment for the Xbox-360, an <a href="http://www.xbox.com/en-US/live/projectnatal/">interactive camera nicknamed Project Natal</a>, should be an interesting shift in how games are played &#8211; and may even prompt a new interface for computing (though, that one is being actively targeted by touch-screen systems).</p>
<p>Apart from the controls, the environment is the next part that developers are working on &#8211; though that is harder; allowing users to fully interact with their environment (read: destroy everything they can) provides a challenge and a freedom &#8211; which can be fun at times, but definitely not primary to the main story or purpose of the game.</p>
<p>Let&#8217;s watch and see what the next 10 years of gaming will bring us to our respective gaming &#8216;console&#8217; of choice!</p>
]]></content:encoded>
			<wfw:commentRss>http://equima.pfpfree.net/2010/gaming-in-the-modern-age/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apport integration</title>
		<link>http://equima.pfpfree.net/2009/apport-integration/</link>
		<comments>http://equima.pfpfree.net/2009/apport-integration/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 12:35:34 +0000</pubDate>
		<dc:creator>insanity</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[apport]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://equima.pfpfree.net/?p=144</guid>
		<description><![CDATA[So for the last day or two I have been attempting to add support for bug reports from within the application.  In the spirit of open-source, I have searched around and found that Apport seems to be heavily used in Ubuntu, and has clean integration with http://bugs.launchpad.net/, which is my chosen bug tracking system for [...]]]></description>
			<content:encoded><![CDATA[<p>So for the last day or two I have been attempting to add support for bug reports from within the application.  In the spirit of open-source, I have searched around and found that Apport seems to be heavily used in Ubuntu, and has clean integration with <a href="http://bugs.launchpad.net/">http://bugs.launchpad.net/</a>, which is my chosen bug tracking system for these projects.</p>
<p>Unfortunately, in the other spirit of open-source, the simple documentation is lacking a bit, so this blog post will hopefully help pave the way for people who might follow in my footsteps.</p>
<h1>Intended Use</h1>
<p>Basically, within one of the applications, I desired to have a link available in a menu that simply says &#8220;Report a problem&#8221;, which then submits a prefilled report to a bug tracking system including important information such as which version is being run, OS details etc.  My experience with Ubuntu has taught me that Apport is an ideal system that already supports the intended use-case, and is integrated into some existing apps in the same way that I&#8217;m looking for.</p>
<h1>UbuntuOne Apport Configuration</h1>
<p>The existing documentation that I referenced most heavily was found at <a href="https://wiki.ubuntu.com/Apport">https://wiki.ubuntu.com/Apport</a> and <a href="https://wiki.ubuntu.com/Apport/DeveloperHowTo">https://wiki.ubuntu.com/Apport/DeveloperHowTo</a>.  The first thing that struck me was that there seems to be no simple uses cases for what I thought would have been a reasonably commonly required use case, i.e., how to integrate with an app being released from a launchpad-hosted ppa.  The existing apport configuration makes apport-bug prevent reports being generated for non-Ubuntu packages (i.e., packages that are not in the main Ubuntu repositories).  This creates a hassle if releasing from a private or team ppa.</p>
<p>Fortunately, through browsing /etc/apport/ I found that the ubuntuone-client already uses apport with a non-genuine Ubuntu package.  This is done by placing a config file in /etc/apport/crashdb.conf.d, and an apport hook in /usr/share/apport/package-hooks/source_ubuntuone-client.py.</p>
<h1>Basic Configuration</h1>
<p>So, from all this, the most simple example I can come up with is the following.  To configure Apport to behave with an application, the following steps are required.</p>
<h2>1. Configure the CrashDb</h2>
<p>Place a CrashDb config file in /etc/apport/crashdb.conf.d called &lt;package-name&gt;-crashdb.conf (note: you can actually called it whatever you want&#8230; but for sanity&#8217;s sake I&#8217;d keep it as package-name <img src='http://equima.pfpfree.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ).  Inside this file place something similar to the following:</p>
<pre>&lt;package-name&gt; = {
 'impl' : 'launchpad',
 'project' : '&lt;package-name&gt;',
 'bug_pattern_base' : None,
}</pre>
<h2>2. Install an apport hook to specify the CrashDb</h2>
<p>Place a file in /usr/share/apport/package-hooks called &lt;package-name&gt;.py or source_&lt;package-name&gt;.py.  This file should contain the following, which simply  sets the CrashDb to use the correct configuration:</p>
<pre>import apport

def add_info(report):
 """add report info"""

 if not apport.packaging.is_distro_package(report['Package'].split()[0]):
 report['ThirdParty'] = 'True'
 # replace &lt;package-name&gt; with the crashdb config defined in the previous step
 report['CrashDB'] = '&lt;package-name&gt;'</pre>
<h1>Testing the settings&#8230;</h1>
<p>Assuming all has been correctly set up, you should now be able to report bugs against the custom package by entering the following command in a terminal (or using alt+f2):</p>
<pre>ubuntu-bug &lt;package-name&gt;</pre>
<p>This will open up a window allowing you to send a report.  If you click submit, you should be taken to launchpad, with a new bug being logged against the specified application.</p>
]]></content:encoded>
			<wfw:commentRss>http://equima.pfpfree.net/2009/apport-integration/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>If it&#8217;s not broke, sometimes it just can&#8217;t be broken.</title>
		<link>http://equima.pfpfree.net/2009/if-its-not-broke-sometimes-it-just-cant-be-broken/</link>
		<comments>http://equima.pfpfree.net/2009/if-its-not-broke-sometimes-it-just-cant-be-broken/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 07:36:22 +0000</pubDate>
		<dc:creator>sparky</dc:creator>
				<category><![CDATA[OS]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://equima.pfpfree.net/?p=139</guid>
		<description><![CDATA[As part of my work, I was required to do a demonstration / instructional on an introduction to Windows 7. My main interest was getting people to understand how Windows 7 has changed from Windows XP (since many people avoided Windows Vista, and now have heard how great Windows 7 is) and also to see [...]]]></description>
			<content:encoded><![CDATA[<p>As part of my work, I was required to do a demonstration / instructional on an introduction to Windows 7. My main interest was getting people to understand how Windows 7 has changed from Windows XP (since many people avoided Windows Vista, and now have heard how great Windows 7 is) and also to see the benefits in moving to Windows 7.</p>
<p>One of the things I really wanted to demonstrate was the compatability mode, showing how old programs can be forced to run in a environment that pre-dates Windows 7.<br />
<img src="http://equima.pfpfree.net/wp-content/uploads/2009/12/Win7CompatMode.jpg" alt="Win7CompatMode" title="Win7CompatMode" width="302" height="427" class="alignleft size-full wp-image-140" /> It&#8217;s quite useful for older programs that worked fine under Windows XP, but seem to struggle / have issues (for whatever reason) under newer Operating Systems.<br />
So, I hunted around my office, and found a copy of<a href="http://en.wikipedia.org/wiki/IBM_Lotus_SmartSuite"> Lotus Smart Suite</a> 9.6.<br />
I figured that since this program came about in 2000/2001 it should break enough to require Compatability Mode.</p>
<p>However, sadly (or goodly, as it may be) it didn&#8217;t need to. When installing, I did have to run the <em>setup.exe</em> as an Administrator (because otherwise it couldn&#8217;t write to the registry). It prompted that there was an incompatability with Lotus 1-2-3 printing certain formats, but you clicked through that, and it installed OK. And then &#8211; it ran fine. No problems.<br />
I even tried an old version of Winamp. That worked fine too.</p>
<p>I&#8217;ve only ever had to force Compatability Mode for playing older games, and they work fine under that.<br />
I&#8217;m keen to find an actual program that WONT work in Compatability Mode, and that requires the Windows 7 Professional &#8216;XP Mode&#8217; Virtual Machine.</p>
<p>So far, all I can say is that Windows 7 is freakin&#8217; awesome.</p>
]]></content:encoded>
			<wfw:commentRss>http://equima.pfpfree.net/2009/if-its-not-broke-sometimes-it-just-cant-be-broken/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Sharing sound between Pulseaudio instances in Ubuntu Karmic 9.10</title>
		<link>http://equima.pfpfree.net/2009/sharing-sound-between-pulseaudio-instances-in-ubuntu-karmic-9-10/</link>
		<comments>http://equima.pfpfree.net/2009/sharing-sound-between-pulseaudio-instances-in-ubuntu-karmic-9-10/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 10:06:04 +0000</pubDate>
		<dc:creator>insanity</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[multicast]]></category>
		<category><![CDATA[pulseaudio]]></category>
		<category><![CDATA[rtp]]></category>

		<guid isPermaLink="false">http://equima.pfpfree.net/?p=120</guid>
		<description><![CDATA[The goal of this post is to respond to a query about how to synchronize soundcards across several Ubuntu-based computers together using pulseaudio. I will present two methods, demonstrating the GUI tools that are available, before showing how to come up with the manually-edited files. In theory, at the end of this post you will [...]]]></description>
			<content:encoded><![CDATA[<p>The goal of this post is to respond to a query about how to synchronize soundcards across several Ubuntu-based computers together using pulseaudio.  I will present two methods, demonstrating the GUI tools that are available, before showing how to come up with the manually-edited files.  In theory, at the end of this post you will have multiple linux computers able to play sound from a single source using Pulseaudio&#8217;s Multicast/RTP abilities.</p>
<p>I must warn, the sound quality is VERY dependant on your network speeds and CPU loads at either end.  If you are running a lot of programs on either the server or the client, the sound will be erratic.  See the bugs on the pulseaudio website.  I was unable to get the sound to run very smoothly for any length of time on between two Ubuntu VM&#8217;s on pulseaudio version 0.9.19-0ubuntu4.  The specific bugs are:</p>
<ul>
<li><a href="http://www.pulseaudio.org/ticket/670">http://www.pulseaudio.org/ticket/670</a></li>
<li><a href="http://www.pulseaudio.org/ticket/477">http://www.pulseaudio.org/ticket/477</a></li>
</ul>
<p>Either way, it is a fun exercise in pulseaudio configuration.  In order to demonstrate this I have set up two Ubuntu VM&#8217;s using VirtualBox on a local network.</p>
<h1>Graphical Setup</h1>
<p>The first step is to install the tools we&#8217;re going to use to configure this.  Install PulseAudio Device Chooserm PulseAudio Volume Control and PulseAudio Preferences.  Select these items from the Ubuntu Software Centre.  You can easily reduce the list to these items by searching for pulseaudio in the search bar as shown in the following screenshot:</p>
<div id="attachment_121" class="wp-caption aligncenter" style="width: 520px"><a href="http://equima.pfpfree.net/wp-content/uploads/2009/11/Screenshot-Ubuntu-Software-Center-Pulseaudio.png"><img class="size-full wp-image-121 " title="Installing Pulseaudio Setup tools" src="http://equima.pfpfree.net/wp-content/uploads/2009/11/Screenshot-Ubuntu-Software-Center-Pulseaudio.png" alt="Screenshot of Ubuntu Software Center installing Pulseaudio" width="510" height="300" /></a><p class="wp-caption-text">Screenshot of Ubuntu Software Center installing Pulseaudio</p></div>
<p>Once this is installed, you can launch it by selecting it from Applications menu.</p>
<div id="attachment_122" class="wp-caption aligncenter" style="width: 499px"><a href="http://equima.pfpfree.net/wp-content/uploads/2009/11/Select-Pulseaudio-Dev-Chooser.png"><img class="size-full wp-image-122 " title="Open the Pulseaudio Device Chooser" src="http://equima.pfpfree.net/wp-content/uploads/2009/11/Select-Pulseaudio-Dev-Chooser.png" alt="Open the Pulseaudio Device Chooser" width="489" height="287" /></a><p class="wp-caption-text">Open the Pulseaudio Device Chooser</p></div>
<p>This will put an audio plug icon up near the clock. Left-click (or primary click) .  Select &#8220;Configure local Sound Server&#8221; and change to the Multicast/RTP tab in the Preferences window:</p>
<div id="attachment_123" class="wp-caption aligncenter" style="width: 464px"><a href="http://equima.pfpfree.net/wp-content/uploads/2009/11/Screenshot-PulseAudio-Preferences.png"><img class="size-full wp-image-123 " title="PulseAudio Preferences" src="http://equima.pfpfree.net/wp-content/uploads/2009/11/Screenshot-PulseAudio-Preferences.png" alt="PulseAudio Preferences" width="454" height="213" /></a><p class="wp-caption-text">PulseAudio Preferences</p></div>
<h2>Server Computer</h2>
<p>The first computer set-up will be the server.  This is the computer you will be controlling &amp; playing the sound from.  On this computer you will need to open up rhythmbox or your chosen audio program that supports pulseaudio output.  Totem or VLC also fit this prescription.</p>
<p>On the server computer you will want to &#8220;Enable Mutlicast/RTP sender&#8221;.  If you want to play the sound out this server computer&#8217;s speakers, select &#8220;Send audio from local speakers&#8221;.  If you want to be more specific about what is sent, I would recommend you select &#8220;Create separate audio device for Multicast/RTP&#8221;.  For my setup, I want to be able to send only music to the stream when I want it, so I am going to chose the second option.</p>
<h2>Client Computer(s)</h2>
<p>The client computers will all need to be set up with the &#8220;Enable Multicast/RTP receiver&#8221; option enabled.  Assuming the networks are working properly, you should immediately start hearing music on all the client computers!</p>
<h1>Manual Configuration</h1>
<p>If you don&#8217;t have the benefits of a running Xserver, or want to configure these settings to work on a headless machine, you will need to be manually configuring the pulseaudio config files.  The pulseaudio config files are stored in /etc/pulse/system.pa if you&#8217;re running in daemon mode, and /etc/pulse/default.pa if you&#8217;re running in a per user setup (this is the default method in Ubuntu).  I&#8217;m going to write this assuming you are using daemon-mode, so we will be editing /etc/pulse/system.pa.</p>
<h2>Server Computer</h2>
<p>To setup the server computer, you need to edit the configuration.  In a terminal or on a console with admin access type the following:</p>
<blockquote>
<pre>sudo nano /etc/pulse/system.pa</pre>
</blockquote>
<p>In this file, find and uncomment the lines that look like:</p>
<blockquote>
<pre>load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 description="RTP Multicast Sink"
load-module module-rtp-send source=rtp.monitor</pre>
</blockquote>
<p>(If these don&#8217;t exist, just add them to the end of the file)</p>
<p>Once this is done, restart the pulseaudio server by running:</p>
<blockquote>
<pre>sudo /etc/init.d/pulseaudio restart</pre>
</blockquote>
<h2>Client Computer(s)</h2>
<p>The client computer will be done by editing /etc/pulse/system.pa (alternatively, you can copy this file to ~/pulse/default.pa).  Edit this file by typing:</p>
<blockquote>
<pre>sudo nano /etc/pulse/system.pa</pre>
</blockquote>
<p>In this file, find and uncomment the lines that look like:</p>
<blockquote>
<pre>### Load the RTP reciever module (also configured via paprefs, see above)
#load-module module-rtp-recv</pre>
</blockquote>
<p>Again, if this doesn&#8217;t exist, just add them to the end of the file.</p>
<p>Once you&#8217;ve saved this, apply the changes the same way you did previously&#8230; by restarting pulseaudio:</p>
<blockquote>
<pre>sudo /etc/init.d/pulseaudio restart</pre>
</blockquote>
<p>Once again, assuming the network is behaving correctly, you should be hearing sound out both ends.</p>
<h1>Troubleshooting &amp; More Information</h1>
<p>Troubleshooting guides are well written on the pulseaudio site.  If you have any issues I would suggest reading the wonderful article at <a href="http://www.pulseaudio.org/wiki/HowToListenToTheRtpStream">http://www.pulseaudio.org/wiki/HowToListenToTheRtpStream</a>.  The key thing is to check that you can see the broadcast packets (see the tcpdump section in the article).</p>
<p>Another good tip is to start the pulseaudio server in non-daemon mode.  This will allow you to see and interact with the pulseaudio from the command line.  To do this, stop any existing pulseaudio servers with the following command:</p>
<blockquote>
<pre>sudo /etc/init.d/pulseaudio stop # in system or daemon mode or</pre>
<pre>pulseaudio -k # for single user mode</pre>
</blockquote>
<p>To start pulseaudio server, run the following:</p>
<blockquote>
<pre>sudo pulseaudio --system -Cv # in system or daemon mode or</pre>
<pre>pulseaudio -Cv # for single user mode</pre>
</blockquote>
<p>Take note of any errors you see when starting this.  Once the server is started, you can list the modules loaded by typing the following in the pulseaudio console:</p>
<blockquote>
<pre>list-modules</pre>
</blockquote>
<p>For more information on how to load modules see <a href="http://www.pulseaudio.org/wiki/Modules">http://www.pulseaudio.org/wiki/Modules</a>, and specifically <a href="http://www.pulseaudio.org/wiki/Modules#RTPSDPSAPTransport">http://www.pulseaudio.org/wiki/Modules#RTPSDPSAPTransport</a>.</p>
<p>More information about the commands that can be run in the pulseaudio console, see <a href="http://www.pulseaudio.org/wiki/CLI">http://www.pulseaudio.org/wiki/CLI</a></p>
]]></content:encoded>
			<wfw:commentRss>http://equima.pfpfree.net/2009/sharing-sound-between-pulseaudio-instances-in-ubuntu-karmic-9-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 7 &amp; Ubuntu 9.10 &#8220;Karmic Koala&#8221; &#8211; Dual Boot Install</title>
		<link>http://equima.pfpfree.net/2009/windows-7-ubuntu-9-10-karmic-koala-dual-boot-install/</link>
		<comments>http://equima.pfpfree.net/2009/windows-7-ubuntu-9-10-karmic-koala-dual-boot-install/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 12:00:40 +0000</pubDate>
		<dc:creator>sparky</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Dual boot]]></category>
		<category><![CDATA[Karmic]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://equima.pfpfree.net/?p=91</guid>
		<description><![CDATA[Windows 7 is fresh out in the wild. Following close behind is Ubuntu 9.10 Karmic Koala. What better oppertunity to 1. Do a clean install of Windows 7 and 2. Test the dual-booting &#8216;ease of setup&#8217; inbuilt into Ubuntu. I started with Windows 7. It installed in 15 minutes quite happily. One Criticism: It didn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: right;"><img class="size-full wp-image-118 alignright" title="Win7vsUbuntu" src="http://equima.pfpfree.net/wp-content/uploads/2009/11/Win7vsUbuntu.png" alt="Win7vsUbuntu" width="219" height="250" /></p>
<p style="text-align: left;">Windows 7 is fresh out in the wild.<br />
Following close behind is Ubuntu 9.10 Karmic Koala.</p>
<p style="text-align: left;">What better oppertunity to<br />
1. Do a clean install of Windows 7 and<br />
2. Test the dual-booting &#8216;ease of setup&#8217; inbuilt into Ubuntu.</p>
<p style="text-align: left;">I started with Windows 7. It installed in 15 minutes quite happily. One Criticism: It didn&#8217;t &#8216;automatically&#8217; find and install drivers for my Broadcom PCI-Gigabit Network Card; but it was ok &#8211; I simply plugged in the onboard network  and Windows downloaded the drivers for the Gigabit Network Card in 30 seconds.</p>
<p style="text-align: left;">Next, I tried the &#8220;<a href="http://wubi-installer.org/">Wubi Installer</a>&#8220;. I tried the default &#8220;Download and fetch Ubuntu from the internet&#8221; option. It started to download the AMD-64 bit version. Unbeknownst to me at the time, this was the typical 64 Bit version of Ubuntu, but because I read &#8216;AMD&#8217; in the name, and I&#8217;m running an Intel system, I thought this could potentially lead to a bad outcome. I now understand that the Ubuntu labeling of this distribution as AMD-64 is merely a reference to the 64 Bit Extension set that was<a href="http://en.wikipedia.org/wiki/X86-64"> developed by AMD &#8211; and fully compatible with Intel systems</a>. If I&#8217;d known that at the time, I probably would&#8217;ve proceeded with it.</p>
<p style="text-align: left;">As it was, I cancelled the auto download, and booted the system from the 9.10 Karmic bootable disc which I&#8217;d burnt earlier.</p>
<p style="text-align: left;">When it booted, I was faced with the standard questions:</p>
<ul style="text-align: left;"><img class="aligncenter size-medium wp-image-94" title="Ubuntu 9.10 Boot" src="http://equima.pfpfree.net/wp-content/uploads/2009/11/Boot-500x372.jpg" alt="Boot" width="500" height="372" /></ul>
<p style="text-align: left;">I was after the second. After selecting it, it went through the usual motions of asking where you lived, time zones, keyboard type: But then the big, hairy one &#8211; How do you want to install Ubuntu?</p>
<p style="text-align: left;">There are a few options:</p>
<p style="text-align: left;"><img class="aligncenter size-medium wp-image-100" title="Karmic Partitioner" src="http://equima.pfpfree.net/wp-content/uploads/2009/11/Partitioner1-500x374.jpg" alt="Karmic Partitioner" width="500" height="374" /></p>
<p style="text-align: left;">Now, here was where it became tricky, and this is only from a User Interface perspective &#8211; At the bottom is the slider to decided what percentage of the drive you want to allocate to the first partition (in my case, dedicated to Windows 7 use), but so far as I can tell, that has to do with the FIRST point <strong>Install them side by side, choosing between them at startup</strong>.<br />
Perhaps it&#8217;s just me, but I would&#8217;ve put the slider under this particular option, so as to show a link between them; particularly since neither of the other two options have any relevance or association with the slider.</p>
<p style="text-align: left;">Insanity encouraged me to <a href="https://bugs.launchpad.net/ubuntu/+source/linux/+bug/468433">report it as a &#8216;bug&#8217; &#8211; so I did</a>. It&#8217;ll be interesting to see the comments, and what comes of it.</p>
<p style="text-align: left;">Once it had finished the installation and the computer rebooted, I was presented with a newer GRUB bootloader to what I have seen in the past. It&#8217;s up to GRUB-2 version 1.97 Beta 4.</p>
<p style="text-align: left;"><img class="aligncenter size-medium wp-image-101" title="Karmic Grub Dual Booting Win 7" src="http://equima.pfpfree.net/wp-content/uploads/2009/11/Grub-500x328.jpg" alt="Karmic Grub Dual Booting Win 7" width="500" height="328" /></p>
<p style="text-align: left;">Ubuntu is set to the default first boot (though this can be changed in the GRUB settings), along with the other alternate boot options, with Windows coming in at the bottom. When you first boot Windows after this installation process, it runs a CHKDSK to ensure the consistency of the system files, and disk drive. This is because when Linux does it&#8217;s partitioning, it messes with Windows mind (basically, Windows remembers the original size of the drive, and suddenly things have changed &#8211; so it makes sure that everything is still intact).</p>
<p style="text-align: left;"><strong>Edit:</strong> <em>I replicated the install process and the setup on my laptop: To my surprise, Windows did not require a CHKDSK upon it&#8217;s first boot post Ubuntu install / GRUB writing to the boot record. I thought that was most interesting.</em></p>
<p style="text-align: left;">I&#8217;ll be following up with some reviews and thoughts on how the two systems behave, and a comparison / contrast of the two in the coming days. Stay tune!</p>
]]></content:encoded>
			<wfw:commentRss>http://equima.pfpfree.net/2009/windows-7-ubuntu-9-10-karmic-koala-dual-boot-install/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Tablets Revisited</title>
		<link>http://equima.pfpfree.net/2009/tablets-revisited/</link>
		<comments>http://equima.pfpfree.net/2009/tablets-revisited/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 12:41:22 +0000</pubDate>
		<dc:creator>sparky</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Hype]]></category>
		<category><![CDATA[Public Perception]]></category>

		<guid isPermaLink="false">http://equima.pfpfree.net/?p=85</guid>
		<description><![CDATA[At the start of this year, I was introduced to a podcast called &#8220;TWiT&#8221; &#8211; This Week in Tech. It&#8217;s run by a famous American radio host Leo Laporte, and it involves him inviting various tech-celebs (people renowned in the tech industry) to talk about issues and news from the last week to do with [...]]]></description>
			<content:encoded><![CDATA[<p>At the start of this year, I was introduced to a podcast called &#8220;<a href="http://twit.tv/">TWiT</a>&#8221; &#8211; <a href="http://twit.tv/">This Week in Tech</a>. It&#8217;s run by a famous American radio host <a href="http://en.wikipedia.org/wiki/Leo_Laporte">Leo Laporte</a>, and it involves him inviting various tech-celebs (people renowned in the tech industry) to talk about issues and news from the last week to do with technology.</p>
<p>One of the common panelists is <a href="http://en.wikipedia.org/wiki/John_C._Dvorak">John C Dvorak</a> &#8211; and I generally like what he writes, he makes sense, and often is right &#8211; admittedly I relate to his cynical undertones.</p>
<p>However, recently he wrote an article on <a href="http://www.pcmag.com/article2/0,2817,2352110,00.asp?kc=PCRSS03079TX1K0000584">what would make the perfect tablet</a>. I&#8217;m not too sure I agree.</p>
<p>My main reason is <strong>it all depends on <em>what</em> you want the tablet to do</strong>, or achieve.</p>
<p>John&#8217;s &#8216;list&#8217; follows:</p>
<blockquote><p>1. The machine should be about the thickness and size of a standard clipboard. It&#8217;s a size we are used to and a device this size would fit wherever a clipboard fits.<br />
2. It should weigh about a pound. The weight of today&#8217;s Kindle e-book reader should be the same weight.</p></blockquote>
<p>Agreed. The device does have to be relatively thinner than a notebook, and perhaps not as bulky. But until they find a better power source to batteries, I think this will remain a slight pipe dream. The truth is most notebooks are quite light &#8211; even with the battery inserted.</p>
<blockquote><p>3. It should have a digital ink or MEMS display-technology screen. There are many versions of this so-called digital ink technology and there must be one that would be ideal for this application. This low-power technology does not have to be powered up to display. The image is permanent until it is powered up and erased. Most e-book readers will use this sort of technology since it has a high contrast ratio, thus increasing readability.</p></blockquote>
<p>This one makes sense. You want a technology that is vivid and crisp enough to replicate print on paper, whilst ensuring longevity in battery life.</p>
<blockquote><p>4. Multitouch screen. I do not think I have to explain why this is necessary. I&#8217;m sure Apple will feature this for sure.</p></blockquote>
<p>I&#8217;m not entirely sure how this would be useful &#8211; maybe for that gimmicky &#8216;zoom in / zoom out&#8217; trick with four fingers. Though, you don&#8217;t realistically need &#8216;multi-touch&#8217;.</p>
<p>Perhaps in some primary school applications, or medical fields it could be useful &#8211; but you can&#8217;t enforce this as a &#8216;standard&#8217;. So, back to my key argument: Depends on the application for which the tablet is being designed.</p>
<blockquote><p>5. Massive I/O. As a PC user I like my machines to have a lot of I/O and connectivity options. This means Wi-Fi, WiMAX as well as all sorts of USB connectivity. If the machine is to be thin it may have to be done with a dongle, although I can see the device having a lip on one side with room for connectors. I hate losing dongles.</p></blockquote>
<p>This one is a big <strong>wrong</strong> in my books. Excessive I/O may seem &#8216;cool&#8217; and &#8216;handy&#8217; &#8211; but how many people realistically need to have firewire, usb, audio in/out, external video, etc. on a device that has limited applications?<br />
It makes designing a case complex, and makes designing the board even more complex- along with the additional cost factor for components to make the I/O work.</p>
<p>An alternative would be to have a narrow connector at one side of the device which &#8216;docks&#8217; into a docking station. This docking station would allow for:<br />
Charging, Connectivity (USB, FireWire, E-Sata,etc), External Video (HDMI, VGA / DVI), Gigabit LAN.<br />
Though, that said, you might be able to get away with a mini-HDMI connector on the unit itself for presentations, or even an SDHC slot for storage of files.<br />
Besides, with the way things are going, we may end up having a wireless &#8216;charging station&#8217;.</p>
<p>The unit itself could have Wireless Networking (N-Standard should be more than enough for most people), as well as BlueTooth connectivity.</p>
<blockquote><p>6. Built-in GPS so the whole thing can be used as a car navigation system.</p></blockquote>
<p>Interesting thought: but maybe not. A 12 or 15 inch display is hard to mount adequately for using as a guidance system. Stick to the 3 or 5 inch navigators.</p>
<blockquote><p>7. Built-in Apple TV and full screen video-processing capability. It could be used as a small hi-def television in the kitchen, perhaps.</p></blockquote>
<p>That&#8217;s just silly. At some point we&#8217;re forgetting the purpose of tablets.</p>
<p>A tablet, I see, should be used much the same way as the &#8216;Data-Pads&#8217; in Star Trek. Replacing pen &amp; paper with a digital, more re-usable form.</p>
<p>Modern tablet computers are wasted on gimmicky solutions. Let&#8217;s start thinking of real useful applications where these devices can be used &#8211; such as hospital&#8217;s to replace patients charts, where the records are being stored on a local server, rather than fragile paper.</p>
]]></content:encoded>
			<wfw:commentRss>http://equima.pfpfree.net/2009/tablets-revisited/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
