<?xml version="1.0" encoding="iso-8859-1"?>
<rdf:RDF
	xmlns="http://purl.org/rss/1.0/"
	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:wiki="http://purl.org/rss/1.0/modules/wiki/">
	<channel rdf:about="http://www.fredemmott.co.uk/index.php?page=blog">
		<link>http://www.fredemmott.co.uk/index.php?page=blog</link>
 		<title>Fred Emmott's Blog</title>
		<language>en-gb</language>
		<description>My random ravings :)</description>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://www.fredemmott.co.uk/blog_157" />
<rdf:li rdf:resource="http://www.fredemmott.co.uk/blog_156" />
<rdf:li rdf:resource="http://www.fredemmott.co.uk/blog_155" />
<rdf:li rdf:resource="http://www.fredemmott.co.uk/blog_154" />
<rdf:li rdf:resource="http://www.fredemmott.co.uk/blog_153" />
			</rdf:Seq>
		</items>
	</channel>
	<item rdf:about="http://www.fredemmott.co.uk/blog_157">
<title>mprisshell</title>
<description><![CDATA[<p>
I've written a small bash CLI interface to MPRIS players, available at <a href='http://files.fredemmott.co.uk/mprisshell.sh'>http://files.fredemmott.co.uk/mprisshell.sh</a>.</p>

<p>It's currently rather limited in functionality:</p>

<pre class='code'>
Usage: mprisshell.sh [command]
Commands:
  play                          Start playing the current track
  pause                         Pause the current track
  playpause                     If a track is playing, pause it; otherwise, play the current track
  next                          Skip to the next track
  previous                      Skip to the previous track
  incVolume [percentage]        Increase the volume by 10%, or the given percentage
  decVolume [percentage]        Decrease the volume by 10%, or the given percentage
</pre>

<p>It sends the above commands to the first <a href='http://www.mpris.org'>MPRIS</a>-capable player found; this includes the latest git head of YANIHP, Amarok 2, Audacious, and others. It's meant for normal users, not developers, for example as a program to bind to media keys.</p>]]></description>
<link>http://www.fredemmott.co.uk/blog_157</link>
<pubDate>Sat, 23 Aug 2008 07:58:44 UTC</pubDate>
<dc:date>2008-08-23T07:58:44</dc:date>
<dc:creator>Frederick Emmott</dc:creator>
</item>
<item rdf:about="http://www.fredemmott.co.uk/blog_156">
<title>Ogg/Vorbis on N810</title>
<description><![CDATA[<p>
There's easily findable tutorials on how to build the vorbis codec in scratchbox; however, you don't need to :)
</p>

<p>Just add the chinook extra's repository, then as root, apt-get install gstreamer0.10-plugins-ivorbis (integer-only decoder). This package works fine on diablo.</p>]]></description>
<link>http://www.fredemmott.co.uk/blog_156</link>
<pubDate>Tue, 19 Aug 2008 20:59:29 UTC</pubDate>
<dc:date>2008-08-19T20:59:29</dc:date>
<dc:creator>Frederick Emmott</dc:creator>
</item>
<item rdf:about="http://www.fredemmott.co.uk/blog_155">
<title>Maemo scratchbox on amd64 multilib</title>
<description><![CDATA[<p>Regarding <a href='http://tsdgeos.blogspot.com/2008/08/maemo-scratchbox-on-amd64.html'>TSDgeos' post</a>, if you have working 32-bit multilib, you just need "linux32 sh installer-goes-here.sh". If you don't have that binary in your distribution, the source is in <a href='ftp://anorien.warwick.ac.uk/slamd64/slamd64-12.1/source/c/linux32/linux32.c'>the slamd64 source archives</a> among other places. Thanks to Andi Kleen for writing this incredibly useful little launcher back in 2002 :)</p>

<p>It's also useful for various games installers.</p>]]></description>
<link>http://www.fredemmott.co.uk/blog_155</link>
<pubDate>Sun, 17 Aug 2008 15:21:28 UTC</pubDate>
<dc:date>2008-08-17T15:21:28</dc:date>
<dc:creator>Frederick Emmott</dc:creator>
</item>
<item rdf:about="http://www.fredemmott.co.uk/blog_154">
<title>Akademy</title>
<description><![CDATA[<p>Firstly a big thank you to Trolltech^WNokia, and all of the team who organised the event - probably the best one I've been to so far.</p>

<p>As for what I did there:</p>

<ul>
<li>Drank lots of Belgian Beer :)</li>
<li>Learned about new stuff in Qt, KDE, and Linux graphical stuff in general - in particular, Zack Rusin's talk on Gallium3D seems very promising</li>
<li>Added <a href='http://mpris.org/'>MPRIS</a> support to YANIHP - so it now support the same D-Bus interface as Amarok, VLC, Xmms2, and others</li>
<li>Added a tray icon to YANIHP</li>
<li>Received a free N810 from Nokia...</li>
</ul>

<p>...which led to:</p>

<p><img src='http://files.fredemmott.co.uk/yanihp-n810.jpg' alt='YANIHP running on the N810' /> :D</p>

<p>
Surprisingly few changes were needed:
</p>

<ul>
<li>Added a compile-time option to make it so that left-clicking on the tray icon pops up the context menu, instead of hiding/showing YANIHP - I'll later make this apply to all context menus, where appropriate</li>
<li>Added a compile-time option to hardcode data and music paths - otherwise YANIHP uses QDesktopServices::storageLocation - which seems to think that /usr/share/mime/data/ is a perfectly suitable location to store non-root user data on the N810...</li>
</ul>

<p>Here's how to get it running:</p>

<ul>
<li>Install taglib (1.5), libqtcore4, libqt4-sql-sqlite, libqt4-phonon on the device, and the corresponding -dev packages in scratchbox</li>
<li>Also install cmake in scratchbox</li>
<li>Build YANIHP in scratchbox, as normal, with the following options:
<ul>
<li>EMBEDDED_FIXED_DATA_PATH=/home/user/.yanihp - this changes where the database, coverart, and lyrics are stored</li>
<li>EMBEDDED_FIXED_MUSIC_PATH=/media/mmc2/Music - this just changes the default location, the user's asked if they want to change it</li>
<li>EMBEDDED_USE_FIXED_PATHS=ON - enables the above two options</li>
<li>EMBEDDED_LEFT_BUTTON_CONTEXT_MENU=ON - makes it so that left clicking on the tray icon shows the context menu instead of showing/hiding YANIHP</li>
<li>WITH_Mpris_PLUGIN=OFF - not strictly neccessary, but I doubt you've got use for it</li>
</ul>
</li>
<li>Copy it across :)</li>
</ul>

<p>There's a few caveats:</p>
<ul>
<li>It's only currently usable with the CleanLooks Qt theme - with small font sizes and so on, not with GTK support.</li>
<li>Phonon-gstreamer doesn't appear to support manually switching between gstreamer audio sinks - in particular, there's no mp3 codec as such - instead, you need to connect your audio source to "dspmp3sink" instead. Alternatively, you can use another phonon backend.</li>
</ul>

<p>I'm not uploading packages, as I've got no idea how to make a "good" debian package.</p>]]></description>
<link>http://www.fredemmott.co.uk/blog_154</link>
<pubDate>Sun, 17 Aug 2008 11:49:24 UTC</pubDate>
<dc:date>2008-08-17T11:49:24</dc:date>
<dc:creator>Frederick Emmott</dc:creator>
</item>
<item rdf:about="http://www.fredemmott.co.uk/blog_153">
<title>The Thinker</title>
<description><![CDATA[<p>
<img src='http://files.fredemmott.co.uk/the_thinker.jpg' alt='ASeigo' />
</p>]]></description>
<link>http://www.fredemmott.co.uk/blog_153</link>
<pubDate>Sat, 09 Aug 2008 10:28:16 UTC</pubDate>
<dc:date>2008-08-09T10:28:16</dc:date>
<dc:creator>Frederick Emmott</dc:creator>
</item>
</rdf:RDF>
