<?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>AdamW on Linux and more &#187; Mandriva</title>
	<atom:link href="http://www.happyassassin.net/category/mandriva/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.happyassassin.net</link>
	<description></description>
	<lastBuildDate>Thu, 11 Mar 2010 22:50:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Webcam Test Day on Thursday 2010-03-11</title>
		<link>http://www.happyassassin.net/2010/03/09/webcam-test-day-on-thursday-2010-03-11/</link>
		<comments>http://www.happyassassin.net/2010/03/09/webcam-test-day-on-thursday-2010-03-11/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 05:23:09 +0000</pubDate>
		<dc:creator>adamw</dc:creator>
				<category><![CDATA[Mandriva]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://www.happyassassin.net/?p=942</guid>
		<description><![CDATA[It&#8217;s Test Day time again! This Thursday, 2010-03-11, is webcam Test Day. It&#8217;s really pretty simple: if you have a webcam we want you to boot up a recent Fedora and check if it works. There&#8217;s detailed instructions on the Wiki page but that&#8217;s really what it boils down to &#8211; fire up your webcam, [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s Test Day time again! This Thursday, 2010-03-11, is <a href="https://fedoraproject.org/wiki/Test_Day:2010-03-11_webcams">webcam Test Day</a>. It&#8217;s really pretty simple: if you have a webcam we want you to boot up a recent Fedora and check if it works. There&#8217;s detailed instructions on the Wiki page but that&#8217;s really what it boils down to &#8211; fire up your webcam, run Cheese or something like it, and make sure it all works well. If not, let us know about it! As always, the Test Day runs all Thursday in #fedora-test-day on Freenode IRC &#8211; see <a href="http://fedoraproject.org/wiki/How_to_use_IRC">this page</a> if you&#8217;re not sure how to use IRC.</p>
<p>As is often the case, this event isn&#8217;t really that Fedora specific: the work Fedora does on webcam support in the kernel and libv4l of course goes upstream where other distributions use it, so even if you don&#8217;t use Fedora, come along to the Test Day, do the test with a <a href="http://alt.fedoraproject.org/pub/alt/nightly-composes/desktop/">Fedora nightly live CD</a> so you don&#8217;t need to install any Fedora stuff, and send in your results; if you report a problem and get it fixed, the fixed will wind up in your distribution too. Isn&#8217;t open source great?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.happyassassin.net/2010/03/09/webcam-test-day-on-thursday-2010-03-11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>You never knew how much you didn&#8217;t know about the flash memory market</title>
		<link>http://www.happyassassin.net/2010/02/24/you-never-knew-how-much-you-didnt-know-about-the-flash-memory-market/</link>
		<comments>http://www.happyassassin.net/2010/02/24/you-never-knew-how-much-you-didnt-know-about-the-flash-memory-market/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 18:41:44 +0000</pubDate>
		<dc:creator>adamw</dc:creator>
				<category><![CDATA[Mandriva]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://www.happyassassin.net/?p=934</guid>
		<description><![CDATA[This is by far the most interesting blog post I&#8217;ve read this year. It also gives me a great urge to buy something &#8211; anything &#8211; made by Chumby. If the guy who runs the company is that on the ball, they must be making good stuff, I reckon&#8230;
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.bunniestudios.com/blog/?p=918">This</a> is by far the most interesting blog post I&#8217;ve read this year. It also gives me a great urge to buy something &#8211; anything &#8211; made by <a href="http://www.chumby.com">Chumby</a>. If the guy who runs the company is that on the ball, they must be making good stuff, I reckon&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.happyassassin.net/2010/02/24/you-never-knew-how-much-you-didnt-know-about-the-flash-memory-market/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Color Management Test Day Thursday 2010-02-18</title>
		<link>http://www.happyassassin.net/2010/02/16/color-management-test-day-thursday-2010-02-18/</link>
		<comments>http://www.happyassassin.net/2010/02/16/color-management-test-day-thursday-2010-02-18/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 21:26:43 +0000</pubDate>
		<dc:creator>adamw</dc:creator>
				<category><![CDATA[Mandriva]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://www.happyassassin.net/?p=929</guid>
		<description><![CDATA[It&#8217;s Test Day time again!
This Thursday, 2010-02-18, will be Color Management Test Day. There&#8217;s some exciting new color management features in Fedora 13. That is to say, there are color management features in Fedora 13! We&#8217;ve never had any real color management in Fedora before, so this is great news for photographers and designers in [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s Test Day time again!</p>
<p>This Thursday, 2010-02-18, will be <a href="http://fedoraproject.org/wiki/Test_Day:2010-02-18_Color_management">Color Management Test Day</a>. There&#8217;s some exciting new <a href="https://fedoraproject.org/wiki/Features/ColorManagement">color management features</a> in Fedora 13. That is to say, there are color management features in Fedora 13! We&#8217;ve never had any real color management in Fedora before, so this is great news for photographers and designers in particular &#8211; but everybody, really.</p>
<p>The good news is testing for this Test Day is very easy &#8211; anyone with a monitor can do most of the testing. A scanner, printer, webcam or colorimeter let you do some other tests. You don&#8217;t need a Rawhide installation to do the testing, just a <a href="http://alt.fedoraproject.org/pub/alt/nightly-composes/desktop/">nightly live image</a> will do fine, and the testing process is fully documented and won&#8217;t take more than a few minutes. So come out and help us test! Even if you don&#8217;t use Fedora, you can test very easily with a live image, and this is one of those features that&#8217;s popping up in Fedora first but will soon appear in all distributions (as it&#8217;ll be part of GNOME itself), so you&#8217;ll be helping your own distribution by testing.</p>
<p>The Test Day will run all day in Freenode IRC #fedora-test-day. See <a href="http://fedoraproject.org/wiki/How_to_use_IRC">this page</a> if you&#8217;re not sure how to use IRC &#8211; or you can use WebIRC just by clicking <a href="http://webchat.freenode.net/?channels=fedora-test-day">this link</a>! Ah, the wonders of science.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.happyassassin.net/2010/02/16/color-management-test-day-thursday-2010-02-18/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WPTouch: mobile view plugin for WordPress</title>
		<link>http://www.happyassassin.net/2010/02/14/wptouch-mobile-view-plugin-for-wordpress/</link>
		<comments>http://www.happyassassin.net/2010/02/14/wptouch-mobile-view-plugin-for-wordpress/#comments</comments>
		<pubDate>Sun, 14 Feb 2010 21:54:41 +0000</pubDate>
		<dc:creator>adamw</dc:creator>
				<category><![CDATA[Mandriva]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://www.happyassassin.net/?p=927</guid>
		<description><![CDATA[Thanks a lot to Jaap A. Haitsma for alerting me to WPTouch, a very neat plugin for WordPress which automatically presents a mobile-friendly appearance when it detects a mobile browser user agent (and you can customize the user agent list). So now when you visit this blog with a mobile device you should get a [...]]]></description>
			<content:encoded><![CDATA[<p>Thanks a lot to <a href="http://jaap.haitsma.org/2010/02/14/better-experience-for-mobile-readers">Jaap A. Haitsma</a> for alerting me to <a href="http://www.bravenewcode.com/products/wptouch/">WPTouch</a>, a very neat plugin for WordPress which automatically presents a mobile-friendly appearance when it detects a mobile browser user agent (and you can customize the user agent list). So now when you visit this blog with a mobile device you should get a much nicer view than the shrunken-desktop-view. Neat stuff!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.happyassassin.net/2010/02/14/wptouch-mobile-view-plugin-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>From the &#8216;freaking awesome&#8217; department &#8211; 3D support on nouveau</title>
		<link>http://www.happyassassin.net/2010/02/12/from-the-freaking-awesome-department-3d-support-on-nouveau/</link>
		<comments>http://www.happyassassin.net/2010/02/12/from-the-freaking-awesome-department-3d-support-on-nouveau/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 07:56:15 +0000</pubDate>
		<dc:creator>adamw</dc:creator>
				<category><![CDATA[Mandriva]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://www.happyassassin.net/?p=923</guid>
		<description><![CDATA[So, this is insane:

That&#8217;s Spring. What&#8217;s Spring? Well, it&#8217;s a fairly neat open source RTS framework that started out as a Total Annihilation clone, but more to the point, it&#8217;s a pretty complex 3D game. What&#8217;s cool about the picture? Well, it&#8217;s in the renderer info in the console (which you probably can&#8217;t quite make [...]]]></description>
			<content:encoded><![CDATA[<p>So, this is insane:</p>
<p><img src="http://www.happyassassin.net/extras/spring_on_nouveau.png" alt="Spring on Nouveau" /></p>
<p>That&#8217;s <a href="http://springrts.com/">Spring</a>. What&#8217;s Spring? Well, it&#8217;s a fairly neat open source RTS framework that started out as a Total Annihilation clone, but more to the point, it&#8217;s a pretty complex 3D game. What&#8217;s cool about the picture? Well, it&#8217;s in the renderer info in the console (which you probably can&#8217;t quite make out, never mind). Yup, that&#8217;s Spring&#8230;running on <a href="http://nouveau.freedesktop.org/wiki/">Nouveau</a>!</p>
<p>Huge kudos to the whole nouveau team for this. Nouveau&#8217;s 3D support recently became available in Rawhide / Fedora 13 with an update to the mesa-dri-drivers-experimental package. I was impressed when it ran Compiz, really impressed when it ran Neverball and Foobillard, but running Spring is nuts. Doesn&#8217;t seem to manage gnome-shell yet, but I&#8217;m sure they can fix that. I admit I never expected to see things working like that in such a time frame. Obviously it&#8217;s heavily hardware dependent, it doesn&#8217;t run super-fast (looked like about 20-25fps, just by eyeballing it, on my 9400 GT) and I haven&#8217;t stressed it much yet so it may be crashy, but still, that&#8217;s incredible stuff.</p>
<p>edit: it also runs Quake 3. Quake fricking 3!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.happyassassin.net/2010/02/12/from-the-freaking-awesome-department-3d-support-on-nouveau/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Android: some awesome interspersed with gigantic piles of fail</title>
		<link>http://www.happyassassin.net/2010/01/30/android-some-awesome-interspersed-with-gigantic-piles-of-fail/</link>
		<comments>http://www.happyassassin.net/2010/01/30/android-some-awesome-interspersed-with-gigantic-piles-of-fail/#comments</comments>
		<pubDate>Sat, 30 Jan 2010 09:19:48 +0000</pubDate>
		<dc:creator>adamw</dc:creator>
				<category><![CDATA[Mandriva]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://www.happyassassin.net/?p=909</guid>
		<description><![CDATA[So, I somehow forgot to mention that I got a new shiny: it&#8217;s an AT&#038;T Tilt 2. Odd choice since it&#8217;s an American phone and there are several versions available in Canada, you may think, but there&#8217;s a method to my madness: it has the exact frequencies required to work on 3G networks in both [...]]]></description>
			<content:encoded><![CDATA[<p>So, I somehow forgot to mention that I got a new shiny: it&#8217;s an <a href="http://www.htc.com/us/products/tilt-2-att">AT&#038;T Tilt 2</a>. Odd choice since it&#8217;s an American phone and there are several versions available in Canada, you may think, but there&#8217;s a method to my madness: it has the exact frequencies required to work on 3G networks in both Canada and Europe. This is a fairly rare situation, and doesn&#8217;t apply to any of the Touch Pro 2 variants you can actually buy from Canadian carriers. The only other decent phones I could find that do it are the Acer Liquid and the LG IQ. The LG runs Windows Mobile without HTC&#8217;s Manila interface (ugh) and the Acer doesn&#8217;t have a keyboard and is, well, an Acer phone? Come on. So the Tilt 2 it was.</p>
<p>It&#8217;s fine. I have it running a third party ROM (<a href="http://forum.xda-developers.com/showthread.php?t=562773">EnergyROM</a>) with Windows Mobile 6.5.5 and the latest version of Manila (HTC Sense 2.5). It does everything I need it to, pretty much, and Manila&#8217;s a nice UI. But still, Windows Mobile ain&#8217;t that cool these days, y&#8217;know.</p>
<p>So I&#8217;m tinkering with the <a href="http://forum.xda-developers.com/showthread.php?t=596370">Android port</a> that&#8217;s available for it. It&#8217;s impressive stuff; most basic things work now &#8211; calls, SMS, 3G data, most bits of Android itself including the Marketplace. Sound outside of calls, WiFi, GPS, Bluetooth aren&#8217;t working and power management is dicey, so it&#8217;s nowhere near done, but it&#8217;s certainly tinker-with-able.</p>
<p>Most of my frustrations with it are nothing to do with the highly bleeding edge nature of the port, but with Android itself being bloody fucking stupid in places. No-one would take this shit from Microsoft, but since it&#8217;s Google we&#8217;re apparently supposed to not care and just feel the love.</p>
<p>Stupid stupid frustration #1: if you want to synchronize with a Google account, that Google account has to have Gmail enabled. Never mind that I have absolutely no use in the world for Gmail and just want to sync my contacts and calendar with an account that exists solely for that purpose. Nope, I need to have Gmail. I can&#8217;t even set up a dummy Gmail as the primary account and then synchronize contacts and calendar from my real account as a second account; Android lets me add an account with no Gmail as a secondary account, but refuses to sync anything with it.</p>
<p>Google &#8211; *why*? Just why? Why would you consider this remotely not evil? I do not want Gmail. I do not need it. By doing this you are not convincing me to use Gmail, you are just hugely fucking pissing me off. There is no justification in the world for this. If you claim you need an email address for me for some bizarre reason, like to email me about the Marketplace or whatever &#8211; fine. Ask me for an email address and verify that it&#8217;s mine. There is no reason in the world it needs to be a Gmail account. Just quit this stupidity, pronto.</p>
<p>Stupid stupid frustration #2: Google&#8217;s email client <a href="http://code.google.com/p/android/issues/detail?id=1420">is totally broken</a>. It cannot parse perfectly standard IMAP folder hierarchies. As someone on the bug has pointed out, every other IMAP client in the known universe &#8211; including Microsoft&#8217;s, for God&#8217;s sake &#8211; manages this perfectly well. This has been broken since Android first showed up a year and a half ago and the bug has received not a single word of response from Google. All they&#8217;ve done is reclassify it as a feature request (duh, what?)</p>
<p>Even the IMAP prefix option seems broken for me. Whether I set it when creating an account or after having created one, whether I set it to INBOX or INBOX. (note the period), it just doesn&#8217;t seem to work.</p>
<p>Grah. Google. Stop being a bunch of doofuses and fix this crap already. Much of Android is nice, but this sort of idiocy just leaves a really icky taste in my mouth. Someone, please, do me a Maemo port&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.happyassassin.net/2010/01/30/android-some-awesome-interspersed-with-gigantic-piles-of-fail/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Running MythWeb on a separate machine from mythbackend</title>
		<link>http://www.happyassassin.net/2010/01/29/running-mythweb-on-a-separate-machine-from-mythbackend/</link>
		<comments>http://www.happyassassin.net/2010/01/29/running-mythweb-on-a-separate-machine-from-mythbackend/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 17:54:11 +0000</pubDate>
		<dc:creator>adamw</dc:creator>
				<category><![CDATA[Mandriva]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://www.happyassassin.net/?p=907</guid>
		<description><![CDATA[So, here&#8217;s something about MythTV that people may actually find useful!
MythTV has, as I mentioned, a neat web frontend called MythWeb. Obviously since I have a webserver I wanted to run MythWeb on that; doesn&#8217;t make any sense to have two of my local machines exposed to the internet. To my surprise, however, these seems [...]]]></description>
			<content:encoded><![CDATA[<p>So, here&#8217;s something about MythTV that people may actually find useful!</p>
<p>MythTV has, as I mentioned, a neat web frontend called <a href="http://www.mythtv.org/wiki/MythWeb">MythWeb</a>. Obviously since I have a webserver I wanted to run MythWeb on that; doesn&#8217;t make any sense to have two of my local machines exposed to the internet. To my surprise, however, these seems an obscure configuration in the Myth world; I could find only two references to it, one from 2004 and one from 2005, both mentioning in passing that it was possible, but no details. So here&#8217;s a quick highlight reel about how to do it.</p>
<p>First, stick MythWeb on your webserver. It is a very good idea at this point to secure access to it, especially (of course) if this is a <i>public-facing</i> server; there&#8217;s some example directives in the default config file for an htdigest setup. There&#8217;s nothing specific to MythWeb about restricting access, so just look it up in Apache docs if you aren&#8217;t sure. I found I also had to adjust AllowOverride to None to enforce the access restrictions, since I have a .htaccess at a lower level which would otherwise have granted access to the MythWeb directory, so keep that in mind.</p>
<p>Now you&#8217;re going to need to tweak MythWeb&#8217;s config a bit. In its config file, look for the setenv db_server parameter and change it to the hostname or IP address for the server. Also make sure the password is correct, of course.</p>
<p>Finally, the trickiest bit: you need to adjust your MySQL database configuration to allow access from the webserver machine&#8230;without stopping access from the local machine. This is surprisingly non-trivial. MySQL has a very strict permissions model.</p>
<p>On the backend machine, edit the MySQL config file &#8211; probably /etc/my.cnf. Comment out the line &#8217;skip-networking&#8217; and add a line:</p>
<p>bind-address=0.0.0.0</p>
<p>unfortunately it doesn&#8217;t seem possible to bind to two specific IP addresses with mysql; you can only do one specific address, or a wildcard. If your machine only has the loopback interface and a single network interface, this line will be fine, as it will bind to just those two, which is what you need. If it has more than that and you only want to allow access on the loopback interface and one of the real interfaces and you can&#8217;t do it with a more restricted wildcard, you&#8217;ll have to use firewalling to block off the ones you don&#8217;t want to have access. Which sucks. If anyone knows different, let me know, I&#8217;m no MySQL expert.</p>
<p>The trickiest bit is the MySQL privileges. It&#8217;s not actually that hard, but there are guides on the Google which hate you and want to eat your configuration. Do <b>not</b> follow things like <a href="http://faq.oneandone.co.uk/server/root_server/howto/15.html">this</a>, which you can find all over the Google results, which tell you to use things like &#8216;update user set Host blahblah&#8230;&#8217; commands. These will sort of work to allow remote access, but they will also stop access from localhost, which is a pain, and I&#8217;m damned if I can figure out how to reverse them properly. Nightmare. No. What you want to do is this:</p>
<p>grant all privileges on mythconverg.* to &#8216;mythtv&#8217;@'192.168.1.26&#8242; IDENTIFIED by &#8216;your_password_here&#8217;;<br />
grant all privileges on mythconverg.* to &#8216;mythtv&#8217;@'localhost&#8217; IDENTIFIED by &#8216;your_password_here&#8217;;</p>
<p>where 192.168.1.26 is the IP of your webserver and your_password_here is, obviously, the password you want to use. Even if you&#8217;ve already created the user, these will do the right thing. You&#8217;ll be able to access the database from the webserver and the backend machine, but nowhere else, with the appropriate password &#8211; and that&#8217;s what we want. Yay. Obviously, if the backend machine has a firewall, you&#8217;ll need to adjust it as appropriate. Now you should be able to visit http://www.yourwebserver.com/mythweb , enter the username and password if you set up restricted access, and access a working mythweb interface. Success!</p>
<p>For me, this is enough to make it all work. If you stumble across this page via Google, do let me know if it helps or if I messed it up somewhere.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.happyassassin.net/2010/01/29/running-mythweb-on-a-separate-machine-from-mythbackend/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Neat little logic &#8216;hack&#8217;: remote control power commands. Also, monitoring and auto-restarting an unreliable daemon</title>
		<link>http://www.happyassassin.net/2010/01/28/neat-little-logic-hack-remote-control-power-commands-also-monitoring-and-auto-restarting-an-unreliable-daemon/</link>
		<comments>http://www.happyassassin.net/2010/01/28/neat-little-logic-hack-remote-control-power-commands-also-monitoring-and-auto-restarting-an-unreliable-daemon/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 23:42:15 +0000</pubDate>
		<dc:creator>adamw</dc:creator>
				<category><![CDATA[Mandriva]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://www.happyassassin.net/?p=905</guid>
		<description><![CDATA[This is the kind of thing I just love. Now I have my PVR setup, it&#8217;s possible for the power state of the cable box to get kind of &#8216;out of sync&#8217;, with the combination of two different &#8217;setups&#8217; &#8211; direct TV, and PVR &#8211; that use it, and my Harmony remote control for controlling [...]]]></description>
			<content:encoded><![CDATA[<p>This is the kind of thing I just love. Now I have my PVR setup, it&#8217;s possible for the power state of the cable box to get kind of &#8216;out of sync&#8217;, with the combination of two different &#8217;setups&#8217; &#8211; direct TV, and PVR &#8211; that use it, and my Harmony remote control for controlling both through &#8216;activities&#8217;. The box could wind up off when the Harmony thinks it&#8217;s on, or vice versa.</p>
<p>Frustratingly, just like many many devices these days, my box (a Motorola 6200, remember) doesn&#8217;t have separate Power On and Power Off functions (either in hardware or IR codes). It just has a power toggle button, which turns it on if it&#8217;s off, and off if it&#8217;s on. This becomes a bit tricky; I want to make sure it&#8217;s always on and off at the right times, particularly when you just want to sit down and press one button and use it, and when MythTV wants to record stuff.</p>
<p>The MythTV side of the equation turned out to be simple: there&#8217;s a neat channel changer script for MythTV called &#8216;mythchanger&#8217; which supports switching the box on before changing channels &#8211; it doesn&#8217;t toggle the power, it is able to detect whether it&#8217;s on or off, so it turns it on if it&#8217;s off and leaves it on if it&#8217;s on. The Firewire interface must support that. Neat. That covers MythTV, as MythTV always runs the &#8216;channel changer&#8217; script before watching or recording TV. (This one also doesn&#8217;t need you to specify the Firewire node of the box &#8211; it goes off the box&#8217;s UUID, or just picks the first box it finds. So it works without reconfiguration when my box decides to change nodes. Yay!)</p>
<p>That left the Harmony side of the equation. If you just use the wizard setup, it depends on the remote tracking whether the box is on or off, which isn&#8217;t going to be reliable now MythTV can potentially change it. The Harmony setup is capable of setting up discrete Power On and Power Off commands and then using them appropriately, but my box doesn&#8217;t have any! What now?</p>
<p>I luckily found a <a href="http://www.remotecentral.com/cgi-bin/mboard/rc-discrete/thread.cgi?1877">somewhat obscure forum thread</a> where one Hailey Williamson (no relation) is credited with a great little logic hack. She noticed that, if the box is off and you hit Menu, it will be turned on (and sent straight into the menu system). If the box is turned on and you hit Menu, the menu system comes up. So you can now derive a simple little logic hack: the command string MENU POWER will always turn the device off, whether it&#8217;s on or off to start with (if it&#8217;s off, it turns it on (and into the menu) then immediately off again; if it&#8217;s on, it goes to the menu then turns it off). It follows of course that the command string MENU POWER POWER will always turn the device *on*. So you just define those command strings as the Power On and Power Off buttons in the Harmony configuration tool (luckily it supports that kind of hackery). Incredibly simple, but I doubt I&#8217;d ever have thought of that on my own. Cool trick! I set mine up that way and it works perfectly.</p>
<p>Another little tweak I set up today is to monitor the mythbackend process (that&#8217;s the MythTV &#8217;server&#8217;). It&#8217;s known to not be really super-reliable; every so often it does fall over, for one reason or another. Obviously you don&#8217;t want that to happen to a PVR setup. So I found a <a href="https://blueprints.launchpad.net/mythbuntu/+spec/auotrestartmythbackend">reference</a> to using a neat little tool called <a href="http://mmonit.com/monit/">Monit</a> to monitor it. Monit is a fairly powerful generic monitoring tool for *nix systems; it can monitor all sorts of things in different ways and perform actions depending on what it sees. It can be run as a one-time check or as a daemon which checks all the things it&#8217;s set to monitor at regular intervals. So with monit running as a daemon and the following configuration:</p>
<p>check process mythbackend with pidfile /var/run/mythbackend.pid<br />
        start program = &#8220;/etc/init.d/mythbackend restart&#8221;<br />
        stop program = &#8220;/etc/init.d/mythbackend stop&#8221;<br />
        if failed host localhost port 6544 then restart<br />
        if 5 restarts within 5 cycles then timeout</p>
<p>(thanks Thomas Mashos!), every time a monit scan happens, it checks if mythbackend is currently supposed to be running (by checking for the pidfile), and if it is, checks if it really is (by trying to poke the port it should be listening on). If it&#8217;s not there, it restarts it. If it fails the check five consecutive times, it figures there&#8217;s something really wrong &#8211; it&#8217;s not just randomly falling over &#8211; and gives up until you poke it manually. monit even does email notification, so you&#8217;ll know when it&#8217;s falling over and when it hits timeout. Really neat little tool.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.happyassassin.net/2010/01/28/neat-little-logic-hack-remote-control-power-commands-also-monitoring-and-auto-restarting-an-unreliable-daemon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>(Another) new tweaking project &#8211; MythTV Firewire HD PVR</title>
		<link>http://www.happyassassin.net/2010/01/28/another-new-tweaking-project-firewire-hd-pvr/</link>
		<comments>http://www.happyassassin.net/2010/01/28/another-new-tweaking-project-firewire-hd-pvr/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 11:17:13 +0000</pubDate>
		<dc:creator>adamw</dc:creator>
				<category><![CDATA[Mandriva]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://www.happyassassin.net/?p=902</guid>
		<description><![CDATA[So I managed to find myself yet another &#8216;little&#8217; project. I&#8217;ve had an HTPC for years, running Freevo; but that&#8217;s all it&#8217;s been, it just plays videos and music. At the very start I had it set up as an analog PVR, and recorded all of two things on it, but then the sound broke [...]]]></description>
			<content:encoded><![CDATA[<p>So I managed to find myself yet another &#8216;little&#8217; project. I&#8217;ve had an HTPC for years, running Freevo; but that&#8217;s all it&#8217;s been, it just plays videos and music. At the very start I had it set up as an analog PVR, and recorded all of two things on it, but then the sound broke and I just didn&#8217;t care enough to fix it.</p>
<p>Lately I bought a second HD box, as I think I mentioned, and it has a fairly neat feature &#8211; if you connect an eSATA hard disk to it, it&#8217;ll work as a PVR. But of course it&#8217;s a typical cable network PVR, the files are locked up and there&#8217;s no commercial skipping or anything. (It is dual-tuner, though). And I don&#8217;t have any appropriate disks lying around &#8211; only an IDE one, and I can&#8217;t find any enclosure that lets an IDE drive connect via eSATA. So I&#8217;d have to buy either Shaw&#8217;s &#8216;own&#8217; disk (apparently it&#8217;s a rebadged Western Digital), another eSATA disk, or an eSATA enclosure and SATA disk. All those options are over $100, and&#8230;meh. I also realized I&#8217;m likely going to be in the UK during the NHL playoffs, which is clearly terrible.</p>
<p>So I decided I&#8217;d get my HTPC working properly as a PVR again, and see if I can&#8217;t do something SlingBox-y with it too. (The SlingBox streams live video over the internet, basically, if you&#8217;ve never heard of it). Luckily for me, my older HD box has its own neat feature: it&#8217;s a Motorola 6200. That box has a Firewire output, and if you hook that Firewire output up to a PC, what you get is the raw, full-quality high definition MPEG-2 stream, complete with audio. Neat, yes? I&#8217;ve known about this for a while but just never bothered hooking it all up. Once or twice Shaw have turned on copy protection on some or all channels, as far as I can gather, but people write angry letters and they generally turn it off again after a bit.</p>
<p>(Apparently, there&#8217;s a law in the States which says that if you have a box from your TV service which has a Firewire port, they have to enable it and allow you to stream video out of it, if you ask them to. It&#8217;s been diluted a bit but it more or less still stands. Google it if you&#8217;re interested.)</p>
<p>This feature is sufficiently cool that people have been using it for years now, and MythTV has fairly mature support for this kind of Firewire input. It even comes with a neat script which changes channels via the Firewire connection (no, I didn&#8217;t know you could do that either!) The motherboard in my HTPC has no Firewire ports (it&#8217;s a damn cheap motherboard) so I went out and bought the <a href="http://www.ncix.com/products/index.php?sku=33437">absolute cheapest yum-cha Firewire adapter I could find</a> &#8211; a princely $10, including tax. I followed the MythTV instructions, and damned if&#8230;nothing. Nada. Zip. Not a fricking dicky bird. Upon further investigation, it seemed as if the kernel hadn&#8217;t done anything with the card at all &#8211; lspcidrake (the HTPC runs Mandriva) was showing the module as &#8216;unknown&#8217;. Crap, I thought. I nearly gave it up as a bad job and got a more expensive card, but happened across a post from a guy who&#8217;d had to switch PCI slots to make it work. So I experimented with different PCI card/slot permutations until I got one which got the ohci1394 module loaded and a /dev/raw1394 device showing up. Then started a cycle of twiddling with configuration commands and re-running the connectivity tests, with mixed results. In the end, I think the combination of the super-cheapo card and cheapo motherboard does affect the reliability a bit. I&#8217;ve entirely hung the system by nudging the cable while it&#8217;s busy streaming TV, and it seems to have an odd habit of switching from node 0 to node 1 (some Firewire thing), which requires a reconfiguration of MythTV&#8217;s channel-switching script, which is a pain. But basically I&#8217;ve got it working reasonably reliably, now.</p>
<p>Setting up MythTV was actually pretty easy &#8211; I just glued together the Firewire instructions and the general MythTV setup instructions from the official docs and pretty much got it working. It has its little idiosyncracies, of course. In a fairly typical way for Linux apps, it&#8217;s designed to scale to ridiculous levels &#8211; it has a client/server architecture and can actually have multiple &#8217;servers&#8217;, each with multiple video sources, all connected together in a ridiculous giant agglomeration so a single MythTV setup can be recording seventeen shows from ten different cable boxes spread across five machines while simultaneously playing back video on forty different frontends, or something silly like that. Which of course means that various bits of the configuration are way more complex than they need to be, for a simple one-box setup. The options for transcoding recordings down to a reasonable size (the raw HD streams come to 5GB/hour, with surround sound) are pretty bizarre at first sight; only if you imagine configuring one of the ridiculous setups I described above do you suddenly realize &#8216;oh, yeah, that&#8217;s why it was designed that way&#8217;. There&#8217;s the usual media center knobs to twiddle &#8211; getting your remote control set up, setting up the video and music plugins, and so on. You have to set up a <a href="https://www.schedulesdirect.org/">third-party TV listings service</a> (it&#8217;s $20/year, not that terrible). But really it&#8217;s not bad, certainly less painful than Freevo (which requires you to hand edit its configuration files, which are written in pure Python&#8230;) or the MythTV I first tried to set up in 2004 (though you could get listings for free back then).</p>
<p>So right now I&#8217;m watching Andy Murray against Mario Cilic in the Australian Open semi-finals; the stream comes into my HD box, gets piped to my PC, and rendered via VDPAU. It looks flawless, just as if I were watching direct via the box (which you can still do even with the Firewire up and running &#8211; useful if it all goes pear-shaped). I can do the whole &#8216;pause live TV&#8217; thing, and the recording will be available for me to watch tomorrow if I happened to want to, or I can store it for the future. It&#8217;s really pretty neat and works very well. I also have MythTV configured to let me watch videos and listen to music (though honestly I prefer Freevo&#8217;s interface for those).</p>
<p>The SlingBox bit may be trickier. There are avenues to explore. There&#8217;s a neat web interface for MythTV you can set up &#8211; it&#8217;s called MythWeb, it&#8217;s basically a MythTV frontend that is a web application, you connect to the webserver and can configure recordings and stuff, most of the things you can do from the &#8216;normal&#8217; frontend. It also has some neat remote video watching tricks: you can get a direct download or ASX stream of any stored recording. I can actually log in to the web interface from another system on my network and stream a recorded show in full HD quality &#8211; pretty cool. Obviously, though, 5GB/hr is far too much for the system to stream over the Internet.</p>
<p>I could transcode a recording down to a reasonable size and stream that, of course, but then you can&#8217;t use that to stream live TV. What may be the most promising avenue is MythWeb&#8217;s neatest trick: it actually has an inbuilt Flash streaming server system, so if you click on any recording, besides the ASX and direct download links, you see a Flash streaming player, much like Youtube. There&#8217;s a configuration widget where you can tell it what resolution and what bitrate to use for that, and MythWeb has the backend transparently transcode whatever it is you want to stream before serving it up through the Flash widget, so it&#8217;s much more suitable to Internet bandwidth. *Some* people have reported that they&#8217;ve been able to successfully use this on a currently-recording show &#8211; so they can set their box to &#8216;record&#8217; something at 9:00pm, then log in to MythWeb at 9:01 and successfully access the Flash stream of that recording, while it carries on being recorded. This is obviously a fairly dodgy chain, but there&#8217;s no absolute reason it can&#8217;t work. I tried it briefly and it didn&#8217;t quite get there, but I&#8217;ll tinker a bit more and see if I can get it to fly.</p>
<p>So, the final chapter of this little odyssey&#8230;when it has fallen over (see above) I suspect it has something to do with resources. My HTPC box is nothing particularly oomphy &#8211; it&#8217;s a Pentium dual-core E2180, which is not a high-end chip (that particular line of &#8216;Pentiums&#8217; is essentially the cut-down, &#8216;Celeron&#8217; version of the Core Duo), and it&#8217;s only had 512MB of RAM for years. It never really needed more than that to be a media player, especially since I got VDPAU support working so all the video decoding work happened on the graphics card. But it&#8217;s pretty borderline for a Myth PVR setup. I noticed it was nudging up against the top end of the RAM.</p>
<p>Then I realized I actually have a couple of gigabytes of RAM lying around the place. Only DDR-1, but the motherboard &#8211; being a cheapo one meant for cheapskate upgraders like me &#8211; actually does support both DDR-1 and DDR-2 (it&#8217;s got two pairs of RAM slots&#8230;it also has PCI-E *and* AGP video slots, and can support regular old PCI video cards too. You can have one each of all three if you really like. Crazy.) So I yanked out the 512MB stick and threw the 2GB in there. Thought &#8216;what the hell&#8217;, cranked the FSB up to 266MHz &#8211; many people have the E2180 overclocking easy to 2.66GHz, from 2GHz &#8211; and hit the big red button. Well, those successful people are obviously using better motherboards than mine, cos mine doesn&#8217;t even POST at 266MHz FSB. Did the CMOS jumper reset thing, and the board came back up fine. Reconfigured my BIOS settings, and&#8230;</p>
<p>the fucking thing wouldn&#8217;t boot any more. Just sat there with the Blinking Cursor Of Death at the point it&#8217;s supposed to load up the bootloader. Now, it&#8217;s 1:30am at this point and I&#8217;m getting cranky. I start swearing under my breath and doing all the usual crap. Reset the BIOS again. Twiddle with the FSB some more. Pull one of the RAM sticks. Pull the other. Go back to the 512MB one. Mess with the RAM speed and timings and voltages. Twiddle all the SATA interface settings I can find. All that crap. Nothing doing. I&#8217;m halfway through trying to reinstall the bootloader from a rescue CD (not a simple operation on a system with four hard disks, none of which has the same device node in a rescue environment as it does for realz) when I figure that&#8217;s a bad idea and it&#8217;s probably something else. Finally I hit on disconnecting the Silicon Image PCI SATA controller card to which my RAID array disks are all connected. Success! the bloody thing boots fine. Of course, the system&#8217;s not a hell of a lot of use without the RAID array. Finally I discover that setting the motherboard&#8217;s SATA controller to RAID mode &#8211; even though it&#8217;s controlling one whole disk, which is not a part of *any* RAID array &#8211; inexplicably makes it work. Even though I never had to do that before, the whole time I&#8217;ve had the freaking setup.</p>
<p>Hardware. I hate hardware.</p>
<p>So I put the 2GB of RAM back in, double-cross my fingers and kick the FSB to 233, and &#8211; fricking hallelujah &#8211; up it comes. Jebus, that was an hour I&#8217;ll never get back. Still, it&#8217;s up now, with four times the memory and a modest 1/6th CPU speed bump. Hopefully that&#8217;ll help keep it stable and make it do the more demanding PVR-y bits a little quicker.</p>
<p>Despite that last icky hardware crappiness footnote, I&#8217;m pretty happy with this project &#8211; got the whole thing up and running really quite nicely at minimal expense ($20 in total: $10 for the firewire controller, $10 for the cable) in an afternoon. The SlingBox trick may be harder and I may have to give up and just live with watching the games the morning after they happen, but I&#8217;ll do my best to hack something up. Never surrender!</p>
<p>(Yes, I did some work today too. Honest!)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.happyassassin.net/2010/01/28/another-new-tweaking-project-firewire-hd-pvr/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>More tinkering: eGroupWare</title>
		<link>http://www.happyassassin.net/2010/01/22/more-tinkering-egroupware/</link>
		<comments>http://www.happyassassin.net/2010/01/22/more-tinkering-egroupware/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 13:40:23 +0000</pubDate>
		<dc:creator>adamw</dc:creator>
				<category><![CDATA[Mandriva]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://www.happyassassin.net/?p=898</guid>
		<description><![CDATA[Well, this has been nostalgic &#8211; I haven&#8217;t pulled a packaging all-nighter in a while!
I was still sore about having to rely on Google for my calendar / contact synchronization, so I figured I&#8217;d sort that out. Cue eGroupWare. This is a rather nice SOHO/small business-targeted groupware suite; it does contacts, calendars, tasks and a [...]]]></description>
			<content:encoded><![CDATA[<p>Well, this has been nostalgic &#8211; I haven&#8217;t pulled a packaging all-nighter in a while!</p>
<p>I was still sore about having to rely on Google for my calendar / contact synchronization, so I figured I&#8217;d sort that out. Cue <a href="http://www.egroupware.org">eGroupWare</a>. This is a rather nice SOHO/small business-targeted groupware suite; it does contacts, calendars, tasks and a few other bits and pieces, with a decent web interface and synchronization via GroupDAV / WebDAV and SyncML. I spent most of the evening updating the Mandriva packages for eGroupWare, which existed but were extremely old. I got those updated nicely, and set up the software onto my web server. Making sure to follow all the instructions (and make the package do the same, as much as I could) I was able to set up a calendar and contact list and synchronize them to Evolution on my laptop and desktop via WebDAV &#8211; very slick! I haven&#8217;t yet tested syncing with my phone via SyncML / Funambol, but I expect it to work fine.</p>
<p>This may in fact be a good candidate for something I&#8217;ve been working with the infrastructure group to try and sort out for a long time &#8211; a Fedora project calendaring (and possibly other groupware functions) system. Everything else we&#8217;ve come across is either broken, obsolete, has a bad web interface / no interface, no CalDAV support, only works with Sun Java, is crazily coded, or any or all of the above. This doesn&#8217;t seem particularly crazy, is actively maintained, has a nice web interface and CalDAV support, and is written in PHP &#8211; so it looks good. We&#8217;ll see where that goes. The ultimate goal would be to have a Fedora project groupware server where Fedora projects and SIGs could do scheduling and stuff in a collaborative way.</p>
<p>I&#8217;m uploading the updated eGroupWare packages for Mandriva to all supported repos.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.happyassassin.net/2010/01/22/more-tinkering-egroupware/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
