<?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>The DF Lab &#187; linux</title>
	<atom:link href="http://blog.danfego.net/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.danfego.net</link>
	<description>A guy like me?</description>
	<lastBuildDate>Tue, 03 Nov 2009 15:31:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Upgrading Ubuntu from Jaunty to Karmic Behind a Proxy</title>
		<link>http://blog.danfego.net/2009/11/upgrading-ubuntu-from-jaunty-to-karmic-behind-a-proxy/</link>
		<comments>http://blog.danfego.net/2009/11/upgrading-ubuntu-from-jaunty-to-karmic-behind-a-proxy/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 20:21:02 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.danfego.net/?p=285</guid>
		<description><![CDATA[Note: While this will update all of one&#8217;s packages to the latest release, as pointed out by Marcos in the comments, this method makes you miss out on all added/removed packages, among a few other things. So this is probably not the way anyone really wants to go!
This should be a quickie&#8230;
While my distro of [...]]]></description>
			<content:encoded><![CDATA[<p><em><strong>Note:</strong> While this will update all of one&#8217;s packages to the latest release, as pointed out by Marcos in the comments, this method makes you miss out on all added/removed packages, among a few other things. So this is probably not the way anyone really wants to go!</em></p>
<p>This should be a quickie&#8230;</p>
<p>While my distro of choice is Gentoo, I use Ubuntu at work ever since I was told any compiling of packages would be on my own time. <img src='http://blog.danfego.net/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  In any case, since version 9.10 (Karmic Koala) came out last week, I figured I&#8217;d give it a shot. Well, since I&#8217;m in a business environment behind a proxy, it wasn&#8217;t so straightforward, and the built-in &#8220;Update Manager&#8221; utility just hung forever, trying to make a connection. I was only able to figure out exactly what the problem was by <a href="http://en.wikipedia.org/wiki/Strace">strace</a> on it, and sitting on one call. Anyway, onto the fix!</p>
<p>Seems simple, because it is. Just open up your /etc/apt/sources.list, and change all instances of &#8220;jaunty&#8221; to &#8220;karmic&#8221;, or use a little sed-fu:</p>
<p><code># sed -i 's/jaunty/karmic/' /etc/apt/sources.list</code></p>
<p>Then run your usual apt-get update/upgrade.</p>
<p>I don&#8217;t think this is a recommended way of upgrading, but since the update program was broken and the CD didn&#8217;t work for me (froze when clicking any of the menu options) I didn&#8217;t have much choice. In any case, I&#8217;ve been using my system all day now with no issues, so this method worked out for me.</p>

<div class="sociable">
<span class="sociable_tagline">
<strong>Share and Enjoy:</strong>
	<span>These icons link to social bookmarking sites where readers can share and discover new web pages.</span>
</span>
<ul>
	<li><a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.danfego.net%2F2009%2F11%2Fupgrading-ubuntu-from-jaunty-to-karmic-behind-a-proxy%2F&amp;title=Upgrading%20Ubuntu%20from%20Jaunty%20to%20Karmic%20Behind%20a%20Proxy" title="Digg" onfocus="sociable_description_link(this, 'bodytext')" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a href="http://del.icio.us/post?url=http%3A%2F%2Fblog.danfego.net%2F2009%2F11%2Fupgrading-ubuntu-from-jaunty-to-karmic-behind-a-proxy%2F&amp;title=Upgrading%20Ubuntu%20from%20Jaunty%20to%20Karmic%20Behind%20a%20Proxy" title="del.icio.us" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a href="http://www.stumbleupon.com/submit.php?url=http://blog.danfego.net/2009/11/upgrading-ubuntu-from-jaunty-to-karmic-behind-a-proxy/" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a href="http://reddit.com/submit?url=http%3A%2F%2Fblog.danfego.net%2F2009%2F11%2Fupgrading-ubuntu-from-jaunty-to-karmic-behind-a-proxy%2F&amp;title=Upgrading%20Ubuntu%20from%20Jaunty%20to%20Karmic%20Behind%20a%20Proxy" title="Reddit" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a href="http://technorati.com/faves?add=http%3A%2F%2Fblog.danfego.net%2F2009%2F11%2Fupgrading-ubuntu-from-jaunty-to-karmic-behind-a-proxy%2F" title="Technorati" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.danfego.net/2009/11/upgrading-ubuntu-from-jaunty-to-karmic-behind-a-proxy/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Software Suspend on GNOME Desktop</title>
		<link>http://blog.danfego.net/2009/06/software-suspend-on-gnome-desktop/</link>
		<comments>http://blog.danfego.net/2009/06/software-suspend-on-gnome-desktop/#comments</comments>
		<pubDate>Sun, 14 Jun 2009 13:59:30 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[gnome]]></category>

		<guid isPermaLink="false">http://blog.danfego.net/?p=262</guid>
		<description><![CDATA[I just wrote a short article on the above topic, and then, not long before hitting &#8220;Publish,&#8221; I find this article that has the answer in short, simple terms. So if you&#8217;re having any issues having the &#8220;Suspend&#8221; dialog work on your GNOME desktop, give the above link a try. I figure I should spare [...]]]></description>
			<content:encoded><![CDATA[<p>I just wrote a short article on the above topic, and then, not long before hitting &#8220;Publish,&#8221; I find <a href="http://howto.fronck.dk/howto:gentoo:pm-block">this article</a> that has the answer in short, simple terms. So if you&#8217;re having any issues having the &#8220;Suspend&#8221; dialog work on your GNOME desktop, give the above link a try. I figure I should spare everyone from my often verbose ramblings when someone&#8217;s already got the answer. <img src='http://blog.danfego.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>

<div class="sociable">
<span class="sociable_tagline">
<strong>Share and Enjoy:</strong>
	<span>These icons link to social bookmarking sites where readers can share and discover new web pages.</span>
</span>
<ul>
	<li><a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.danfego.net%2F2009%2F06%2Fsoftware-suspend-on-gnome-desktop%2F&amp;title=Software%20Suspend%20on%20GNOME%20Desktop" title="Digg" onfocus="sociable_description_link(this, 'bodytext')" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a href="http://del.icio.us/post?url=http%3A%2F%2Fblog.danfego.net%2F2009%2F06%2Fsoftware-suspend-on-gnome-desktop%2F&amp;title=Software%20Suspend%20on%20GNOME%20Desktop" title="del.icio.us" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a href="http://www.stumbleupon.com/submit.php?url=http://blog.danfego.net/2009/06/software-suspend-on-gnome-desktop/" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a href="http://reddit.com/submit?url=http%3A%2F%2Fblog.danfego.net%2F2009%2F06%2Fsoftware-suspend-on-gnome-desktop%2F&amp;title=Software%20Suspend%20on%20GNOME%20Desktop" title="Reddit" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a href="http://technorati.com/faves?add=http%3A%2F%2Fblog.danfego.net%2F2009%2F06%2Fsoftware-suspend-on-gnome-desktop%2F" title="Technorati" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.danfego.net/2009/06/software-suspend-on-gnome-desktop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Culmination of Senior Project</title>
		<link>http://blog.danfego.net/2009/05/culmination-of-senior-project/</link>
		<comments>http://blog.danfego.net/2009/05/culmination-of-senior-project/#comments</comments>
		<pubDate>Mon, 04 May 2009 03:42:55 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.danfego.net/?p=217</guid>
		<description><![CDATA[So, for the few people that have read my musings thusfar, there may (or may not) have been note that I&#8217;ve had a rather prolonged lull, particularly given the Mid-Atlantic CCDC round that intended to write about, but probably can&#8217;t now because my memory&#8217;s fading.
In any case, the reason for this lull has been, aside [...]]]></description>
			<content:encoded><![CDATA[<p>So, for the few people that have read my musings thusfar, there may (or may not) have been note that I&#8217;ve had a rather prolonged lull, particularly given the Mid-Atlantic CCDC round that intended to write about, but probably can&#8217;t now because my memory&#8217;s fading.</p>
<p>In any case, the reason for this lull has been, aside from my laziness and Team Fortress 2, my schoolwork. In particular, my Senior Design project, Shallow Frost, has finally been &#8220;finished.&#8221; It&#8217;s finished in the sense that I&#8217;ve turned in everything and I&#8217;m done presenting on it, but I&#8217;d say it&#8217;s far from finished as a software project.</p>
<p>In any case, in lieu of describing it here, I&#8217;ve posted my final, public presentation on YouTube (in two parts):</p>
<p><a href="http://www.youtube.com/watch?v=sW5BdlF35t0">Part 1</a><br />
<a href="http://www.youtube.com/watch?v=aSGrDDEk_p0">Part 2</a></p>
<p>If any of you actually watch to the end of part 2, you&#8217;ll notice my demo&#8230; well&#8230; it didn&#8217;t exactly work. How embarrassing! And I had done a final test on that very podium 10 minutes prior. *sigh* Well, in any case, it&#8217;s over now. I swear, that was the first time it just up and broke (without me prodding it) in months. Oh well, what&#8217;s done is done, and no one seemed all that upset other than me.</p>
<p>If I actually decide to do anything more with this (unlikely, because of how it&#8217;s built, it won&#8217;t ever really go into the kernel), I&#8217;ll surely post updates and such. Thanks for reading/watching!</p>

<div class="sociable">
<span class="sociable_tagline">
<strong>Share and Enjoy:</strong>
	<span>These icons link to social bookmarking sites where readers can share and discover new web pages.</span>
</span>
<ul>
	<li><a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.danfego.net%2F2009%2F05%2Fculmination-of-senior-project%2F&amp;title=Culmination%20of%20Senior%20Project" title="Digg" onfocus="sociable_description_link(this, 'bodytext')" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a href="http://del.icio.us/post?url=http%3A%2F%2Fblog.danfego.net%2F2009%2F05%2Fculmination-of-senior-project%2F&amp;title=Culmination%20of%20Senior%20Project" title="del.icio.us" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a href="http://www.stumbleupon.com/submit.php?url=http://blog.danfego.net/2009/05/culmination-of-senior-project/" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a href="http://reddit.com/submit?url=http%3A%2F%2Fblog.danfego.net%2F2009%2F05%2Fculmination-of-senior-project%2F&amp;title=Culmination%20of%20Senior%20Project" title="Reddit" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a href="http://technorati.com/faves?add=http%3A%2F%2Fblog.danfego.net%2F2009%2F05%2Fculmination-of-senior-project%2F" title="Technorati" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.danfego.net/2009/05/culmination-of-senior-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Merging files with pr</title>
		<link>http://blog.danfego.net/2009/04/merging-files-with-pr/</link>
		<comments>http://blog.danfego.net/2009/04/merging-files-with-pr/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 09:00:18 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[cli]]></category>

		<guid isPermaLink="false">http://blog.danfego.net/?p=212</guid>
		<description><![CDATA[Tonight, I&#8217;ve been poring over a rather large data set that I want to get some useful information out of. All the data was originally stored in a .html file, but after some (very) crude extraction techniques, I managed to pull out just the data I wanted, and shove it into a comma-separated file. Earlier, [...]]]></description>
			<content:encoded><![CDATA[<p>Tonight, I&#8217;ve been poring over a rather large data set that I want to get some useful information out of. All the data was originally stored in a .html file, but after some (very) crude extraction techniques, I managed to pull out just the data I wanted, and shove it into a comma-separated file. Earlier, I had given up on my tools at hand and typed up an entire list of row headings for my newly-gotten data. So I had two files like so:</p>
<p><code>headings.txt<br />
Alpha<br />
Bravo<br />
Charlie</code></p>
<p><code>values.csv<br />
1,2,3,4<br />
5,6,7,8<br />
9,10,11,12</code></p>
<p>I spent quite a bit of time trying to figure out how to combine the two columns into one file with what I knew, but none of my tools could quite do it without nasty shell scripting. It took me a while, but I eventually found <a href="http://www.unix.com/shell-programming-scripting/22481-column-merge.html#post87560">this post</a> that cracked the case for me. The <code>pr</code> command, ostensibly for paging documents, has enough horsepower to solve my problem in short order, like so:</p>
<p><code>$ pr -tm -s, headings.txt values.csv</code></p>
<p>The <code>-t</code> tells the program to omit headers and footers, and <code>-m</code> tells it to merge each line. The <code>-s,</code> tells it to use commas as field-separators. My desired result, like so:</p>
<p><code><code>headings.txt<br />
Alpha,1,2,3,4<br />
Bravo,5,6,7,8<br />
Charlie,9,10,11,12</code></p>
<p>There are numerous other options to <code>pr</code>, and depending on your potential line lengths, one may have to experiment. But for me, this got the job done.</p>
<p><strong>External Links</strong></p>
<ul>
<li><a href="http://www.unix.com/shell-programming-scripting/22481-column-merge.html#post87560">Where I discovered pr</a></li>
</ul>

<div class="sociable">
<span class="sociable_tagline">
<strong>Share and Enjoy:</strong>
	<span>These icons link to social bookmarking sites where readers can share and discover new web pages.</span>
</span>
<ul>
	<li><a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.danfego.net%2F2009%2F04%2Fmerging-files-with-pr%2F&amp;title=Merging%20files%20with%20pr" title="Digg" onfocus="sociable_description_link(this, 'bodytext')" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a href="http://del.icio.us/post?url=http%3A%2F%2Fblog.danfego.net%2F2009%2F04%2Fmerging-files-with-pr%2F&amp;title=Merging%20files%20with%20pr" title="del.icio.us" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a href="http://www.stumbleupon.com/submit.php?url=http://blog.danfego.net/2009/04/merging-files-with-pr/" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a href="http://reddit.com/submit?url=http%3A%2F%2Fblog.danfego.net%2F2009%2F04%2Fmerging-files-with-pr%2F&amp;title=Merging%20files%20with%20pr" title="Reddit" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a href="http://technorati.com/faves?add=http%3A%2F%2Fblog.danfego.net%2F2009%2F04%2Fmerging-files-with-pr%2F" title="Technorati" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.danfego.net/2009/04/merging-files-with-pr/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Follow-up on mplayer&#8217;s tab-completion</title>
		<link>http://blog.danfego.net/2009/03/follow-up-on-mplayers-tab-completion/</link>
		<comments>http://blog.danfego.net/2009/03/follow-up-on-mplayers-tab-completion/#comments</comments>
		<pubDate>Mon, 23 Mar 2009 13:08:32 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[gentoo]]></category>

		<guid isPermaLink="false">http://blog.danfego.net/?p=200</guid>
		<description><![CDATA[So after a big of Googling and finding this bug (after several others), I was made aware of three things (in response to my previous post):

mplayer&#8217;s tab-completion support does in fact come from bashcomp
this support is covered in the &#8220;base&#8221; module
the appropriate file uses strange regular expressions

At the time this bug was filed, the appropriate [...]]]></description>
			<content:encoded><![CDATA[<p>So after a big of Googling and finding <a href="http://bugs.gentoo.org/show_bug.cgi?id=145727">this bug</a> (after several others), I was made aware of three things (in response to my <a href="http://blog.danfego.net/2009/03/flv-files-finally-tab-complete-with-mplayer/">previous post</a>):</p>
<ol>
<li>mplayer&#8217;s tab-completion support does in fact come from bashcomp</li>
<li>this support is covered in the &#8220;base&#8221; module</li>
<li>the appropriate file uses strange regular expressions</li>
</ol>
<p>At the time this bug was filed, the appropriate file to edit was (or was in) /etc/bash_completion. Since bash-completion-20081218, the bug was fixed, but the package also underwent some changes that seemingly caused locations of config files to change. (Apologies if this is incorrect, but I never went diving into the configs of bashcomp before now!)</p>
<p>In any case, the bashcomp configuration files are now in /usr/share/bash-completion. Since mplayer&#8217;s support is in base, the file that handles mplayer is &#8220;base&#8221; in that directory.</p>
<p>Now as for the &#8220;strange&#8221; regular expressions, that deserves some qualification. I&#8217;ve already seen lots of regular expressions on my (albeit rather short) day, but the reason I consider these ones strange is because they seem both unnecessary and redundant. The line in question is currently 5983 on my version 20081219-r1:</p>
<p><code>_filedir '@(mp?(e)g|MP?(E)G|wm[av]|WM[AV]|avi|AVI|asf|ASF|...|fl[iv]|FL[IV]...'</code></p>
<p>The two ellipses are my own adding, since the actual expression is one humongous line that ends up looking rather horrible here. My problems with this are both the explicit writing out of upper and lower case alternatives and the the bothering to do things like fl[iv]. Actually, I don&#8217;t have a problem with the latter except in the presence of the former. And to be fair, I probably wouldn&#8217;t have ever cared or noticed if I hadn&#8217;t been able to find &#8220;flv&#8221; when grepping numerous files. Not that &#8220;greppability&#8221; is necessarily a goal for configuration files, but it&#8217;s certainly annoying when it&#8217;s specifically hindered by regular expressions that save negligible space like the ones in this file.</p>
<p>As a final note, I&#8217;m going to disclaim that I&#8217;m no expert on bash scripting and the various intricacies of handling regular expressions therein, so I&#8217;d be happy to hear from anyone who knows better about why I should lay off the poor bash-completion folks. <img src='http://blog.danfego.net/wp-includes/images/smilies/icon_razz.gif' alt=':-P' class='wp-smiley' /> </p>
<p><strong>External Links</strong></p>
<ul>
<li><a href="http://bugs.gentoo.org/show_bug.cgi?id=145727">Gentoo Bugzilla bug on mplayer tab-completion</a></li>
<li><a href="http://blog.danfego.net/2009/03/flv-files-finally-tab-complete-with-mplayer/">Previous post on mplayer&#8217;s tab-completion</a></li>
</ul>

<div class="sociable">
<span class="sociable_tagline">
<strong>Share and Enjoy:</strong>
	<span>These icons link to social bookmarking sites where readers can share and discover new web pages.</span>
</span>
<ul>
	<li><a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.danfego.net%2F2009%2F03%2Ffollow-up-on-mplayers-tab-completion%2F&amp;title=Follow-up%20on%20mplayer%27s%20tab-completion" title="Digg" onfocus="sociable_description_link(this, 'bodytext')" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a href="http://del.icio.us/post?url=http%3A%2F%2Fblog.danfego.net%2F2009%2F03%2Ffollow-up-on-mplayers-tab-completion%2F&amp;title=Follow-up%20on%20mplayer%27s%20tab-completion" title="del.icio.us" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a href="http://www.stumbleupon.com/submit.php?url=http://blog.danfego.net/2009/03/follow-up-on-mplayers-tab-completion/" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a href="http://reddit.com/submit?url=http%3A%2F%2Fblog.danfego.net%2F2009%2F03%2Ffollow-up-on-mplayers-tab-completion%2F&amp;title=Follow-up%20on%20mplayer%27s%20tab-completion" title="Reddit" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a href="http://technorati.com/faves?add=http%3A%2F%2Fblog.danfego.net%2F2009%2F03%2Ffollow-up-on-mplayers-tab-completion%2F" title="Technorati" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.danfego.net/2009/03/follow-up-on-mplayers-tab-completion/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>.flv files finally tab-complete with mplayer</title>
		<link>http://blog.danfego.net/2009/03/flv-files-finally-tab-complete-with-mplayer/</link>
		<comments>http://blog.danfego.net/2009/03/flv-files-finally-tab-complete-with-mplayer/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 05:46:00 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[gentoo]]></category>

		<guid isPermaLink="false">http://blog.danfego.net/?p=193</guid>
		<description><![CDATA[After a long time of playing .flv files in mplayer on the command line in Gentoo, I noticed recently that they now tab-complete. I&#8217;m not quite sure how recently this change occurred or what caused it, but I&#8217;m very pleased with the update.
I&#8217;m not quite sure how the tab-completion infrastructure works, but I know it&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>After a long time of playing .flv files in mplayer on the command line in Gentoo, I noticed recently that they now tab-complete. I&#8217;m not quite sure how recently this change occurred or what caused it, but I&#8217;m very pleased with the update.</p>
<p>I&#8217;m not quite sure how the tab-completion infrastructure works, but I know it&#8217;s got a lot of &#8220;packages&#8221; for different programs. A surprising amount, actually. For the uninitiated, on my system, I&#8217;m looking at:</p>
<p><code>dfego@antica ~ $ eselect bashcomp list<br />
Available completions:<br />
  [1]   _subversion<br />
  [2]   apache2ctl<br />
  [3]   base *<br />
  [4]   bitkeeper<br />
  [5]   bittorrent<br />
  [6]   cksfv<br />
  [7]   clisp<br />
  [8]   dsniff<br />
  [9]   eselect *<br />
  [10]  freeciv<br />
  [11]  gcl<br />
  [12]  gentoo *<br />
  [13]  git *<br />
  [14]  gkrellm<br />
  [15]  gnatmake<br />
  [16]  gpg2<br />
  [17]  gvim<br />
  [18]  harbour<br />
  [19]  isql<br />
  [20]  larch<br />
  [21]  lilypond<br />
  [22]  lisp<br />
  [23]  mailman<br />
  [24]  mcrypt<br />
  [25]  mercurial *<br />
  [26]  modules<br />
  [27]  monodevelop<br />
  [28]  mpc *<br />
  [29]  mtx<br />
  [30]  p4<br />
  [31]  povray<br />
  [32]  qdbus<br />
  [33]  ri<br />
  [34]  sbcl<br />
  [35]  sitecopy<br />
  [36]  snownews<br />
  [37]  ssh *<br />
  [38]  subversion *<br />
  [39]  tig *<br />
  [40]  tree *<br />
  [41]  unace<br />
  [42]  unrar *<br />
  [43]  vim *<br />
  [44]  xxd</code></p>
<p>The ones with the asterisks are ones I currently have enabled for my main user. As you can see, there are a lot of options to choose from, and for some weird reason, my git functionality died after a recent update. But wait&#8230; mplayer isn&#8217;t there&#8230; Interesting&#8230;</p>
<p>Interesting&#8230;</p>
<p>So where <em>does</em> mplayer&#8217;s tab-completion come from? It&#8217;s not just the normal one provided by the shell, because it before excluded certain file types.</p>
<p>Interesting. This must be investigated.</p>

<div class="sociable">
<span class="sociable_tagline">
<strong>Share and Enjoy:</strong>
	<span>These icons link to social bookmarking sites where readers can share and discover new web pages.</span>
</span>
<ul>
	<li><a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.danfego.net%2F2009%2F03%2Fflv-files-finally-tab-complete-with-mplayer%2F&amp;title=.flv%20files%20finally%20tab-complete%20with%20mplayer" title="Digg" onfocus="sociable_description_link(this, 'bodytext')" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a href="http://del.icio.us/post?url=http%3A%2F%2Fblog.danfego.net%2F2009%2F03%2Fflv-files-finally-tab-complete-with-mplayer%2F&amp;title=.flv%20files%20finally%20tab-complete%20with%20mplayer" title="del.icio.us" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a href="http://www.stumbleupon.com/submit.php?url=http://blog.danfego.net/2009/03/flv-files-finally-tab-complete-with-mplayer/" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a href="http://reddit.com/submit?url=http%3A%2F%2Fblog.danfego.net%2F2009%2F03%2Fflv-files-finally-tab-complete-with-mplayer%2F&amp;title=.flv%20files%20finally%20tab-complete%20with%20mplayer" title="Reddit" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a href="http://technorati.com/faves?add=http%3A%2F%2Fblog.danfego.net%2F2009%2F03%2Fflv-files-finally-tab-complete-with-mplayer%2F" title="Technorati" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.danfego.net/2009/03/flv-files-finally-tab-complete-with-mplayer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>/etc/mtab Boot Nightmare</title>
		<link>http://blog.danfego.net/2009/02/etcmtab-boot-nightmare/</link>
		<comments>http://blog.danfego.net/2009/02/etcmtab-boot-nightmare/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 21:31:45 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[gentoo]]></category>

		<guid isPermaLink="false">http://blog.danfego.net/?p=160</guid>
		<description><![CDATA[The other day, I was working on my senior design project (a kernel project), and I did the good ol&#8217; make/make install/reboot to see my changes. Coming back, expecting my computer to have booted, I found it hung at:

Cannot create link /etc/mtab
perhaps there is a stale lockfile?

Naturally thinking it was my project&#8217;s fault (it was), [...]]]></description>
			<content:encoded><![CDATA[<p>The other day, I was working on my senior design project (a kernel project), and I did the good ol&#8217; make/make install/reboot to see my changes. Coming back, expecting my computer to have booted, I found it hung at:</p>
<blockquote><p>
Cannot create link /etc/mtab<br />
perhaps there is a stale lockfile?
</p></blockquote>
<p>Naturally thinking it was my project&#8217;s fault (it was), I rebooted into my normal kernel. To my horror, the same error came up. After a period of mini-panic, I ran to Google and at the same time reached for my Gentoo CD (the newest I could find was 2007.0 minimal, but it still works!). I ran e2fsck on both my home and root partitions for good measure, and then mounted my root partition and looked at /etc/mtab*. <strong>Apparently, the fact that there was mtab, mtab~, mtab~2205 and mtab~2213 isn&#8217;t normal.</strong> On recommendation from <a href="http://www.oesf.org/forum/index.php?showtopic=18484&#038;st=0&#038;p=120298&#entry120298">this obscure post from three years ago</a>, I deleted the extra files (after examining them and noting they were not only extraneous but empty), rebooted, and viola! Problem solved!</p>
<p>Turns out a number of different things I did caused this error several different times. Not exactly sure why, but it always seems to coincide with the boot of or boot after a kernel oops or panic.</p>
<p><strong>External Links</strong></p>
<ul>
<li><a href="http://www.oesf.org/forum/index.php?showtopic=18484&#038;st=0&#038;p=120298&#entry120298">Obscure post from 2006</a></li>
</ul>

<div class="sociable">
<span class="sociable_tagline">
<strong>Share and Enjoy:</strong>
	<span>These icons link to social bookmarking sites where readers can share and discover new web pages.</span>
</span>
<ul>
	<li><a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.danfego.net%2F2009%2F02%2Fetcmtab-boot-nightmare%2F&amp;title=%2Fetc%2Fmtab%20Boot%20Nightmare" title="Digg" onfocus="sociable_description_link(this, 'bodytext')" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a href="http://del.icio.us/post?url=http%3A%2F%2Fblog.danfego.net%2F2009%2F02%2Fetcmtab-boot-nightmare%2F&amp;title=%2Fetc%2Fmtab%20Boot%20Nightmare" title="del.icio.us" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a href="http://www.stumbleupon.com/submit.php?url=http://blog.danfego.net/2009/02/etcmtab-boot-nightmare/" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a href="http://reddit.com/submit?url=http%3A%2F%2Fblog.danfego.net%2F2009%2F02%2Fetcmtab-boot-nightmare%2F&amp;title=%2Fetc%2Fmtab%20Boot%20Nightmare" title="Reddit" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a href="http://technorati.com/faves?add=http%3A%2F%2Fblog.danfego.net%2F2009%2F02%2Fetcmtab-boot-nightmare%2F" title="Technorati" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.danfego.net/2009/02/etcmtab-boot-nightmare/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ubuntu, PAM, and MD5 logins</title>
		<link>http://blog.danfego.net/2009/01/ubuntu-pam-and-md5-logins/</link>
		<comments>http://blog.danfego.net/2009/01/ubuntu-pam-and-md5-logins/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 16:23:22 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.danfego.net/?p=130</guid>
		<description><![CDATA[At work today, I came upon a startling revelation when I typed in a 20+ character password on our Ubuntu server.  I typed in the password, not sure I got it quite right, and got in.  I thought I typed it in right, and obviously I did.  But I wasn&#8217;t sure, since [...]]]></description>
			<content:encoded><![CDATA[<p>At work today, I came upon a startling revelation when I typed in a 20+ character password on our Ubuntu server.  I typed in the password, not sure I got it quite right, and got in.  I thought I typed it in right, and obviously I did.  But I wasn&#8217;t sure, since our passwords are complicated.  So I exited, typed it in again, but typed it intentionally differently.  And It logged in.</p>
<p>As it turns out, after the first 8 characters, I could have put in anything at all, and the login would work.  I was shocked that such a strange security issue would come up on a mostly stock-configured Ubuntu 8.04 server.  In fact, it was <em>better</em> than stock configured, as I already had to do a bunch of configurations to secure it.</p>
<p>As it turns out, the problem lied with the way PAM was authenticating (or something).  I went and checked that my configurations were right (you should have &#8220;md5&#8243; in a &#8220;password&#8221; line where commented to do so in /etc/pam.d/common-password).  Then, after doing some more poking around online, I found an Ubuntu forum <a href="http://ubuntuforums.org/archive/index.php/t-581515.html">post</a> that mentioned that in /etc/shadow, if any given password has <strong>$1$</strong> at the beginning, it&#8217;s using MD5.  Upon looking at my shadow file, it turned out that one of my users (the one with the issue) was somehow not using MD5.  I don&#8217;t quite know how that happened, but I&#8217;m going to guess that I configured PAM for MD5 after last setting his password.  At least that&#8217;s my best guess.</p>
<p>To fix the issue, I just used passwd to change the password for the given user, and it properly took on its MD5 encryption.  I hope this proves useful to someone in the future!</p>

<div class="sociable">
<span class="sociable_tagline">
<strong>Share and Enjoy:</strong>
	<span>These icons link to social bookmarking sites where readers can share and discover new web pages.</span>
</span>
<ul>
	<li><a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.danfego.net%2F2009%2F01%2Fubuntu-pam-and-md5-logins%2F&amp;title=Ubuntu%2C%20PAM%2C%20and%20MD5%20logins" title="Digg" onfocus="sociable_description_link(this, 'bodytext')" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a href="http://del.icio.us/post?url=http%3A%2F%2Fblog.danfego.net%2F2009%2F01%2Fubuntu-pam-and-md5-logins%2F&amp;title=Ubuntu%2C%20PAM%2C%20and%20MD5%20logins" title="del.icio.us" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a href="http://www.stumbleupon.com/submit.php?url=http://blog.danfego.net/2009/01/ubuntu-pam-and-md5-logins/" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a href="http://reddit.com/submit?url=http%3A%2F%2Fblog.danfego.net%2F2009%2F01%2Fubuntu-pam-and-md5-logins%2F&amp;title=Ubuntu%2C%20PAM%2C%20and%20MD5%20logins" title="Reddit" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a href="http://technorati.com/faves?add=http%3A%2F%2Fblog.danfego.net%2F2009%2F01%2Fubuntu-pam-and-md5-logins%2F" title="Technorati" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.danfego.net/2009/01/ubuntu-pam-and-md5-logins/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Linux Kernel Queues</title>
		<link>http://blog.danfego.net/2008/12/linux-kernel-queues/</link>
		<comments>http://blog.danfego.net/2008/12/linux-kernel-queues/#comments</comments>
		<pubDate>Sat, 27 Dec 2008 17:46:02 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[kernel]]></category>

		<guid isPermaLink="false">http://blog.danfego.net/?p=114</guid>
		<description><![CDATA[My senior design project for university has involved a lot of working in the Linux kernel.  I&#8217;ve found that my primary difficulty with kernel work has been figuring out how the mass of code that already exists works and interacts with each other.  It&#8217;s mostly very well thought out, but some things take [...]]]></description>
			<content:encoded><![CDATA[<p>My senior design project for university has involved a lot of working in the Linux kernel.  I&#8217;ve found that my primary difficulty with kernel work has been figuring out how the mass of code that already exists works and interacts with each other.  It&#8217;s mostly very well thought out, but some things take a little time to wrap your head around.  One such thing is the kernel&#8217;s unified implementation of linked lists.</p>
<p>It&#8217;s actually rather ingenious if you think about it, and there are <a href="http://isis.poly.edu/kulesh/stuff/src/klist/">plenty</a> of <a href="http://kernelnewbies.org/FAQ/LinkedLists">references</a> that give great explanations of how it all works, so I won&#8217;t do that here.  The short version is that the list actually acts like an element within another data structure, which allows it to work for all types, rather than having to create new structures and functions for every structure to act like a list.  What I recently found myself trying to do was create a queue (first-in-first-out) data structure using the linked lists provided.  I decided to go about this after getting a little <a href="http://stackoverflow.com/questions/389582/queues-in-the-linux-kernel">advice</a> from a couple of fellas over at Stack Overflow.  I haven&#8217;t fleshed it all out yet, but came to an important realization on how things work.  It&#8217;s not really all that hard, but it was important enough for me to want to document: <strong>because it is a <em>circular</em>, <em>doubly-linked</em> structure, adding an item to the front and back of the list look <em>very</em> similar.</strong>  In fact, they&#8217;re pretty much the same operation, except for where the external head and tail pointers point to.  They&#8217;re so similar that I spent a bunch of time confused on how it all worked.  I suppose that&#8217;s my fault for delving in and examining the <del datetime="2008-12-27T17:23:19+00:00">overly-short</del> elegant code.</p>
<p>The result of this is that their list_add_tail() function (which is commented to be useful for queues) is, in fact, useful for queues.  It adds an element linked after the &#8220;last&#8221; element and before the &#8220;first,&#8221; given the head of the list.  &#8220;Last&#8221; and &#8220;first&#8221; are in quotes here because it&#8217;s a circular list, so there <em>technically</em> aren&#8217;t a first and last, but there are.  Anyway, what I still don&#8217;t quite understand is how the list_add() function is useful for stacks (also in the comments).  Though I&#8217;m getting myself slightly confused just thinking about it further, so I&#8217;ll end the tirade here.</p>
<p>I guess if there&#8217;s one thing I can pass on here, it&#8217;s that if there&#8217;s comments documenting a series of functions (which the kernel&#8217;s <a href="http://lxr.linux.no/linux+v2.6.28/include/linux/list.h">include/linux/list.h</a> file does), <em>listen</em> to the comments.  I suppose this was a learning experience for me in the end, but I could have saved a bunch of time by just trusting what they said the functions do.  On the flip side, if you&#8217;re curious, don&#8217;t trust them, and want to be <em>sure</em> about what the code is doing, you <em>are</em> always free to dive right in!  I&#8217;m just convinced that the kernel developers are a lot smarter than I am, at least at this point in my career.</p>
<p><strong>Related Links</strong></p>
<ul>
<li><a href="http://isis.poly.edu/kulesh/stuff/src/klist/">Linux Kernel Linked List Explained</a></li>
<li><a href="http://kernelnewbies.org/FAQ/LinkedLists">Another Kernel Linked List Explanation</a></li>
<li><a href="http://stackoverflow.com/questions/389582/queues-in-the-linux-kernel">Stack Overflow question about kernel queues</a></li>
<li><a href="http://lxr.linux.no/linux+v2.6.28/include/linux/list.h">list.h on Linux Cross Reference</a></li>
</ul>

<div class="sociable">
<span class="sociable_tagline">
<strong>Share and Enjoy:</strong>
	<span>These icons link to social bookmarking sites where readers can share and discover new web pages.</span>
</span>
<ul>
	<li><a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.danfego.net%2F2008%2F12%2Flinux-kernel-queues%2F&amp;title=Linux%20Kernel%20Queues" title="Digg" onfocus="sociable_description_link(this, 'bodytext')" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a href="http://del.icio.us/post?url=http%3A%2F%2Fblog.danfego.net%2F2008%2F12%2Flinux-kernel-queues%2F&amp;title=Linux%20Kernel%20Queues" title="del.icio.us" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a href="http://www.stumbleupon.com/submit.php?url=http://blog.danfego.net/2008/12/linux-kernel-queues/" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a href="http://reddit.com/submit?url=http%3A%2F%2Fblog.danfego.net%2F2008%2F12%2Flinux-kernel-queues%2F&amp;title=Linux%20Kernel%20Queues" title="Reddit" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a href="http://technorati.com/faves?add=http%3A%2F%2Fblog.danfego.net%2F2008%2F12%2Flinux-kernel-queues%2F" title="Technorati" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.danfego.net/2008/12/linux-kernel-queues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Music Solutions</title>
		<link>http://blog.danfego.net/2008/12/music-solutions/</link>
		<comments>http://blog.danfego.net/2008/12/music-solutions/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 14:13:11 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[music]]></category>

		<guid isPermaLink="false">http://blog.danfego.net/?p=108</guid>
		<description><![CDATA[A couple of months ago, I spent a lot of time working on a solution for handling all my music and its various uses.  Namely, I wanted to keep separate track of:

All my music (even the music I don&#8217;t listen to, so I don&#8217;t have to get rid of it)
The music I listen to [...]]]></description>
			<content:encoded><![CDATA[<p>A couple of months ago, I spent a lot of time working on a <a href="http://blog.danfego.net/2008/10/concatenatecombine-mp3-files/">solution</a> for handling all my music and its various uses.  Namely, I wanted to keep separate track of:</p>
<ul>
<li>All my music (even the music I don&#8217;t listen to, so I don&#8217;t have to get rid of it)</li>
<li>The music I listen to on my computer</li>
<li>The music I have on my limited-space iPod</li>
</ul>
<p>In addition, I wanted to make sure there was as little wasted disk space as possible, so I used hard links and had all the files in separate directories.</p>
<p>You&#8217;d think there would be a relatively simple solution, and I&#8217;d hope so too, but I came up with this really convoluted system that involved synchronizing three directories with two scripts whenever music had to be added or removed.  What it results in is that I never add music anymore.  And somewhere along the line, my &#8220;music on my computer&#8221; folder got messed up, so I&#8217;m back to square-one with that one.  Hundreds of songs I filtered out back in the mix.</p>
<p>I wonder if some of my problems would be solved if I used a GUI music player, but I&#8217;m not so sure.  My current setup uses MPD, which runs nice and light.  Anyway, I&#8217;m out of mental energy, and am hoping someone else might have a better idea.  <strong>Does anyone have any good ideas how to maintain my music?</strong>  Or perhaps a better ideal to work under?  Until then, I&#8217;ll just suffer under a horrible manual version where I just delete and add things at will to everything and hope I don&#8217;t miss things.</p>

<div class="sociable">
<span class="sociable_tagline">
<strong>Share and Enjoy:</strong>
	<span>These icons link to social bookmarking sites where readers can share and discover new web pages.</span>
</span>
<ul>
	<li><a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.danfego.net%2F2008%2F12%2Fmusic-solutions%2F&amp;title=Music%20Solutions" title="Digg" onfocus="sociable_description_link(this, 'bodytext')" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a href="http://del.icio.us/post?url=http%3A%2F%2Fblog.danfego.net%2F2008%2F12%2Fmusic-solutions%2F&amp;title=Music%20Solutions" title="del.icio.us" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a href="http://www.stumbleupon.com/submit.php?url=http://blog.danfego.net/2008/12/music-solutions/" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a href="http://reddit.com/submit?url=http%3A%2F%2Fblog.danfego.net%2F2008%2F12%2Fmusic-solutions%2F&amp;title=Music%20Solutions" title="Reddit" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a href="http://technorati.com/faves?add=http%3A%2F%2Fblog.danfego.net%2F2008%2F12%2Fmusic-solutions%2F" title="Technorati" rel="nofollow" target="_blank"><img src="http://blog.danfego.net/wp-content/plugins/sociable-zyblog-edition/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.danfego.net/2008/12/music-solutions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
