<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0.6" -->
<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/"
	>

<channel>
	<title>Welcome to the Sextrivium</title>
	<link>http://sextrivium.com/blog</link>
	<description>Notes</description>
	<pubDate>Sun, 07 Jan 2007 02:01:49 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.6</generator>
	<language>en</language>
			<item>
		<title>gaim_add2dict</title>
		<link>http://sextrivium.com/blog/2007/01/05/gaim_add2dict/</link>
		<comments>http://sextrivium.com/blog/2007/01/05/gaim_add2dict/#comments</comments>
		<pubDate>Fri, 05 Jan 2007 22:45:28 +0000</pubDate>
		<dc:creator>desimo</dc:creator>
		
		<category>scripting</category>

		<guid isPermaLink="false">http://sextrivium.com/reviews/?p=75</guid>
		<description><![CDATA[This script adds an "autocorrect" definition inside of a text file.  The def will look like:



COMPLETE: 1CASE: 0BAD: misspellingGOOD: fixed_spelling



This helps prevent typos in Gaim.  If you want to access the script from directly within gaim, you can use the gaim-slashexec plugin (this is the src tarball; the guifications site is down) and [...]]]></description>
			<content:encoded><![CDATA[<p>This script adds an "autocorrect" definition inside of a text file.  The def will look like:</p>
<table style="background-color:#eeeeee; margin-left:3em; margin-bottom:1.5em">
<tr>
<td style="border:2px black dotted; padding:1.1em">
COMPLETE: 1<br />CASE: 0<br />BAD: <i>misspelling</i><br />GOOD: <i>fixed_spelling</i>
</td>
</tr>
</table>
<p>This helps prevent typos in <a href="http://gaim.sourceforge.net/" onclick="javascript:urchinTracker ('/outbound/article/gaim.sourceforge.net');">Gaim</a>.  If you want to access the script from directly within gaim, you can use the <a href="http://sextrivium.com/reviews/wp-content/uploads/2007/01/gaim-slashexec-1.1beta3.tar.gz" >gaim-slashexec plugin (this is the src tarball; the guifications site is down)</a> and just use the  <b>/exec</b> command from inside gaim. </p>
<div class="igBar"><span id="lbash-2"><a href="#" onclick="javascript:showPlainTxt('bash-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">BASH:</span>
<div id="bash-2">
<div class="bash">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">#!/bin/bash</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;"># will add a def to dict file (for gaim autocorrect)</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">PROGN=</span>gaim_add2dict</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;"># script takes 2 args, BAD word followed by GOOD word</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;"># where is your dict?</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">GAIM_DICT_FILE=</span>/path/to/my/dict/file</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#91;</span> $<span style="color: #808080; font-style: italic;"># -ne 2 ]; then</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">echo</span> <span style="color: #ff0000;">"error: $PROGN: I need 2 args, please..."</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">exit</span> <span style="color: #cc66cc;color:#800000;">1</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">else</span> <span style="color: #808080; font-style: italic;">#exactly 2 args</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">BADWORD=</span>$<span style="color: #cc66cc;color:#800000;">1</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">GOODWORD=</span>$<span style="color: #cc66cc;color:#800000;">2</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">BAD_EXISTS_TEST=</span>`grep -cx <span style="color: #ff0000;">"BAD $BADWORD"</span> <span style="color: #0000ff;">$GAIM_DICT_FILE</span>` <span style="color: #808080; font-style: italic;"># 1 if line exists</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#91;</span> <span style="color: #0000ff;">$BAD_EXISTS_TEST</span> -ne <span style="color: #cc66cc;color:#800000;">0</span> <span style="color: #66cc66;">&#93;</span>; <span style="color: #b1b100;">then</span>&nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">echo</span> <span style="color: #ff0000;">"error: $PROGN: BAD $BADWORD already exists in $GAIM_DICT_FILE"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">exit</span> <span style="color: #cc66cc;color:#800000;">1</span>&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">fi</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000066;">echo</span> -e <span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\n</span>COMPLETE 1<span style="color: #000099; font-weight: bold;">\n</span>CASE 0<span style="color: #000099; font-weight: bold;">\n</span>BAD $BADWORD<span style="color: #000099; font-weight: bold;">\n</span>GOOD $GOODWORD<span style="color: #000099; font-weight: bold;">\n</span>"</span> | cat -&gt;&gt; <span style="color: #0000ff;">$GAIM_DICT_FILE</span> &amp;&amp; <span style="color: #000066;">echo</span> <span style="color: #ff0000;">'the definition has been added (does this message make it thru?'</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">fi</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000066;">exit</span> <span style="color: #cc66cc;color:#800000;">0</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
</p>
]]></content:encoded>
			<wfw:commentRss>http://sextrivium.com/blog/2007/01/05/gaim_add2dict/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Last.fm</title>
		<link>http://sextrivium.com/blog/2007/01/02/lastfm/</link>
		<comments>http://sextrivium.com/blog/2007/01/02/lastfm/#comments</comments>
		<pubDate>Tue, 02 Jan 2007 12:12:01 +0000</pubDate>
		<dc:creator>desimo</dc:creator>
		
		<category>music</category>

		<guid isPermaLink="false">http://sextrivium.com/reviews/?p=74</guid>
		<description><![CDATA[I joined last.fm about a week ago; I'm desimo.


]]></description>
			<content:encoded><![CDATA[<p>I joined last.fm about a week ago; I'm <a href="http://www.last.fm/user/desimo" onclick="javascript:urchinTracker ('/outbound/article/www.last.fm');">desimo</a>.</p>
<p><img src="http://imagegen.last.fm/basicrt10/recenttracks/desimo.gif" alt="desimo's recently listened trax on last.fm" />
</p>
]]></content:encoded>
			<wfw:commentRss>http://sextrivium.com/blog/2007/01/02/lastfm/feed/</wfw:commentRss>
		</item>
		<item>
		<title>iPod to youPod</title>
		<link>http://sextrivium.com/blog/2006/11/28/ipod-to-youpod/</link>
		<comments>http://sextrivium.com/blog/2006/11/28/ipod-to-youpod/#comments</comments>
		<pubDate>Tue, 28 Nov 2006 15:35:13 +0000</pubDate>
		<dc:creator>desimo</dc:creator>
		
		<category>software</category>

		<category>music</category>

		<category>scripting</category>

		<category>media</category>

		<guid isPermaLink="false">http://sextrivium.com/reviews/?p=70</guid>
		<description><![CDATA[Before I forget, allow me to download the contents of my brain pertaining to sharing one's iPod via the www.
Here is an outline of the steps necessary.
1. Transfer iPod contents to computer
2. Rename files / clean up ID3 tags
3. Make artist directories
4. Set up Apache webserver
5. Install Apache module mod-musicindex
6. Install Icecast streaming server
Transfer iPod [...]]]></description>
			<content:encoded><![CDATA[<p>Before I forget, allow me to download the contents of my brain pertaining to sharing one's iPod via the www.</p>
<p>Here is an outline of the steps necessary.<br />
1. Transfer iPod contents to computer<br />
2. Rename files / clean up ID3 tags<br />
3. Make artist directories<br />
4. Set up Apache webserver<br />
5. Install Apache module mod-musicindex<br />
6. Install Icecast streaming server</p>
<p>Transfer iPod contents to computer.  I did it like this:</p>
<div class="igBar"><span id="lbash-8"><a href="#" onclick="javascript:showPlainTxt('bash-8'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">BASH:</span>
<div id="bash-8">
<div class="bash">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;"># go to directory on iPod where music is stored</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000066;">cd</span> /media/ipod/iPod_Control/Music</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;"># cp the contents of folders inside music directory to webroot/mp3</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">cp <span style="color: #66cc66;">&#123;</span>F0,F1,F2,F3,F4<span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#123;</span><span style="color: #cc66cc;color:#800000;">0</span>,<span style="color: #cc66cc;color:#800000;">1</span>,<span style="color: #cc66cc;color:#800000;">2</span>,<span style="color: #cc66cc;color:#800000;">3</span>,<span style="color: #cc66cc;color:#800000;">4</span>,<span style="color: #cc66cc;color:#800000;">5</span>,<span style="color: #cc66cc;color:#800000;">6</span>,<span style="color: #cc66cc;color:#800000;">7</span>,<span style="color: #cc66cc;color:#800000;">8</span>,<span style="color: #cc66cc;color:#800000;">9</span><span style="color: #66cc66;">&#125;</span>/* /var/www/mp3 </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Rename files / clean up ID3 tags.  I did it like this:</p>
<div class="igBar"><span id="lbash-9"><a href="#" onclick="javascript:showPlainTxt('bash-9'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">BASH:</span>
<div id="bash-9">
<div class="bash">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;"># debian's package management system; use your equivalent</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo apt-get install mp3info mp3rename</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;"># check your tags out</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;"># set a var for mp3info cmd to print a tab separated list of title, artist,</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;"># album and newline</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">mp3infocmd=</span>`mp3info -print <span style="color: #ff0000;">'%t<span style="color: #000099; font-weight: bold;">\t</span>%a<span style="color: #000099; font-weight: bold;">\t</span>%l<span style="color: #000099; font-weight: bold;">\t</span><span style="color: #000099; font-weight: bold;">\n</span>'</span>`</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">#**** Refer to this list and edit your ID3 tags - see man mp3info for details ****#</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;"># find all mp3s (ignoring single quotes, newlines, etc.)</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">find /var/www/mp3 -name <span style="color: #ff0000;">'*.mp3'</span> -print0 | xargs -<span style="color: #cc66cc;color:#800000;">0</span> <span style="color: #0000ff;">$mp3info</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;"># rename according to your perfect tags</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;"># set default filename scheme</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">mp3rename -s <span style="color: #ff0000;">'%a&amp;l&amp;t'</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;"># rename!</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">mp3rename /var/www/mp3 </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Make directories for artists for easier browsing.</p>
<div class="igBar"><span id="lbash-10"><a href="#" onclick="javascript:showPlainTxt('bash-10'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">BASH:</span>
<div id="bash-10">
<div class="bash">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">#!/bin/bash</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">########################################</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;"># mp3_sort.sh&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;"># note: anyone is free to use this script as I am about to post it online </span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;"># it has no error checking, and will almost definitely break, so it is&nbsp; &nbsp; &nbsp; &nbsp;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;"># distributed with no implied merchantability or fitness for a specific&nbsp; &nbsp; </span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;"># purpose&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">########################################</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">srcDir=</span>/var/www/mp3 </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">destDir=</span>/var/www/mp3/sorted</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000066;">cd</span> <span style="color: #0000ff;">$<span style="color: #66cc66;">&#123;</span>srcDir<span style="color: #66cc66;">&#125;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;"># disregard case</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">find <span style="color: #0000ff;">$<span style="color: #66cc66;">&#123;</span>srcDir<span style="color: #66cc66;">&#125;</span></span> -<span style="color: #000066;">type</span> f -iname \*.mp3 | <span style="color: #b1b100;">while</span> <span style="color: #000066;">read</span> f; <span style="color: #b1b100;">do</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;"># get artist</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">ARTIST=</span>`mp3info -p <span style="color: #ff0000;">'%a'</span> <span style="color: #ff0000;">"${f}"</span>`</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;"># make sure artist tag defined</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#91;</span> <span style="color: #ff0000;">"noart$ARTIST"</span> = <span style="color: #ff0000;">"noart"</span> <span style="color: #66cc66;">&#93;</span>; <span style="color: #b1b100;">then</span> <span style="color: #808080; font-style: italic;"># ARTIST undefined</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000066;">echo</span> <span style="color: #ff0000;">"some artist tag missing"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">else</span>&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #808080; font-style: italic;"># destination exists?</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#91;</span> ! -d <span style="color: #ff0000;">"${destDir}/${ARTIST}"</span> <span style="color: #66cc66;">&#93;</span>; <span style="color: #b1b100;">then</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #808080; font-style: italic;"># no? then make it</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; mkdir <span style="color: #ff0000;">"${destDir}/${ARTIST}"</span> \</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; || <span style="color: #000066;">echo</span> <span style="color: #ff0000;">"cannot make dir <span style="color: #000099; font-weight: bold;">\"</span>${destDir}/${ARTIST}<span style="color: #000099; font-weight: bold;">\"</span>."</span>\</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;&gt;/dev/stderr</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #b1b100;">fi</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;"># mv file to newly made directory</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; mv -f <span style="color: #ff0000;">"${f}"</span> <span style="color: #ff0000;">"${destDir}/${ARTIST}"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">case</span> <span style="color: #ff0000;">"$?"</span> <span style="color: #b1b100;">in</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #808080; font-style: italic;">#&nbsp; &nbsp;0) echo &quot;\&quot;${f}&quot;\&quot; -&gt; \&quot;${destDir}/${ARTIST}\&quot;;;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#41;</span> <span style="color: #000066;">echo</span> <span style="color: #ff0000;">"a file was moved"</span>;;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; *<span style="color: #66cc66;">&#41;</span> <span style="color: #000066;">echo</span> <span style="color: #ff0000;">"could not move <span style="color: #000099; font-weight: bold;">\"</span>${f}<span style="color: #000099; font-weight: bold;">\"</span>."</span>&gt;/dev/stderr;;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">esac</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">fi</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">done</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000066;">exit</span> <span style="color: #cc66cc;color:#800000;">0</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Set up Apache webserver.<br />
See <a href="http://www.apache.org" onclick="javascript:urchinTracker ('/outbound/article/www.apache.org');">apache.org</a> for details.</p>
<p>Install Apache module mod-musicindex</p>
<div class="igBar"><span id="lbash-11"><a href="#" onclick="javascript:showPlainTxt('bash-11'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">BASH:</span>
<div id="bash-11">
<div class="bash">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo apt-get install libapache2-mod-musicindex</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;"># the REAMDE file has all the instructions on setting the Aliases to whatever</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;"># directory your music files are in </span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Install IceCast2</p>
<div class="igBar"><span id="lbash-12"><a href="#" onclick="javascript:showPlainTxt('bash-12'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">BASH:</span>
<div id="bash-12">
<div class="bash">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo apt-get install icecast2</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;"># listens on port 8000 by default; allow tcp through in your router or firewall </span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://sextrivium.com/blog/2006/11/28/ipod-to-youpod/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Now serving mp3</title>
		<link>http://sextrivium.com/blog/2006/11/27/now-serving-mp3/</link>
		<comments>http://sextrivium.com/blog/2006/11/27/now-serving-mp3/#comments</comments>
		<pubDate>Mon, 27 Nov 2006 21:31:29 +0000</pubDate>
		<dc:creator>desimo</dc:creator>
		
		<category>software</category>

		<guid isPermaLink="false">http://sextrivium.com/reviews/?p=69</guid>
		<description><![CDATA[I decided I wanted to to listen to my ipod at work.  But I can't be bothered to carry around the device.  I needed to stream my music over a network.  
Basically, I use IceCast and a module for apache libapache2-mod-musicindex.  
When I get a chance, I'll post some of the [...]]]></description>
			<content:encoded><![CDATA[<p>I decided I wanted to to listen to my ipod at work.  But I can't be bothered to carry around the device.  I needed to stream my music over a network.  </p>
<p>Basically, I use <a href="http://www.icecast.org/" onclick="javascript:urchinTracker ('/outbound/article/www.icecast.org');">IceCast</a> and a module for apache <a href="http://packages.debian.org/unstable/net/libapache2-mod-musicindex" onclick="javascript:urchinTracker ('/outbound/article/packages.debian.org');">libapache2-mod-musicindex</a>.  </p>
<p>When I get a chance, I'll post some of the scripts I used to go from iPod to youPod...</p>
<p>My IP at home is dynamic, and I only update it twice per hour, so don't be surprised if the server's down for periods of about 30 min. </p>
<p>Here is what I have up:<br />
<a href="http://sextrivium.net/anybody/listings.csv" onclick="javascript:urchinTracker ('/outbound/article/sextrivium.net');">sextrivium.net/anybody/listings.csv</a><br />
<a href="http://sextrivium.net/anybody/listings.csv.ods" onclick="javascript:urchinTracker ('/outbound/article/sextrivium.net');">sextrivium.net/anybody.listings.csv.odt</a> (easier to read version)</p>
<p>Here is where you go:<br />
<a href="http://sextrivium.net/mp3" onclick="javascript:urchinTracker ('/outbound/article/sextrivium.net');">sextrivium.net/mp3</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sextrivium.com/blog/2006/11/27/now-serving-mp3/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Backup DVDs</title>
		<link>http://sextrivium.com/blog/2006/10/17/backup-dvds/</link>
		<comments>http://sextrivium.com/blog/2006/10/17/backup-dvds/#comments</comments>
		<pubDate>Tue, 17 Oct 2006 22:46:27 +0000</pubDate>
		<dc:creator>desimo</dc:creator>
		
		<category>software</category>

		<category>media</category>

		<guid isPermaLink="false">http://sextrivium.com/reviews/?p=60</guid>
		<description><![CDATA[I've decided I want to back up my DVD collection.  But I don't want all this extraneous shit on my discs: previews, deleted scenes, actor commentary, subtitles (excepting foreign flicks), captioning, menus. Also, I think I'd like to remove any region-codes, dma encryption, and of course they need to fit on a standard, single-layer [...]]]></description>
			<content:encoded><![CDATA[<p>I've decided I want to back up my DVD collection.  But I don't want all this extraneous shit on my discs: <em>previews, deleted scenes, actor commentary, subtitles (excepting foreign flicks), captioning, menus.</em> Also, I think I'd like to remove any region-codes, dma encryption, and of course they need to fit on a standard, single-layer DVD you might buy at Wal-Mart for $1.</p>
<h3>A few notes in case I need to refer or rerefer or rererefer to them:</h3>
<p>Strangely enough, the ripping is easier in Windows.  I had originally tried to install <a href="http://textsnippets.com/posts/show/287" onclick="javascript:urchinTracker ('/outbound/article/textsnippets.com');">handbrake-0.7.1</a>, but it involved too many steps and wasn't working for me.  I knew that there was a robust Windows program called DVDdecrypter that had the DeCSS embedded and a whole host of options for using it.</p>
<p>I read about a program called DVDShrink, which would cut the size of your file down to the size of a single-layer disc.  Much of my information came from Doom9.net, which truly is the definitive DVD Ripping / Burning resource (at least, for Windows users).<br />
So I fired up <a href="http://winehq.org/" onclick="javascript:urchinTracker ('/outbound/article/winehq.org');">WINE</a> (v. 0.9.9), installed <a href="http://www.doom9.org/Soft21/Rippers/SetupDVDDecrypter_3.5.4.0.exe" onclick="javascript:urchinTracker ('/outbound/article/www.doom9.org');">DVDdecrypter</a> and <a href="http://www.doom9.org/Soft21/Vobtools/dvdshrink32setup.zip" onclick="javascript:urchinTracker ('/outbound/article/www.doom9.org');">DVDShrink</a>.  No native Windows DLLs were necessary for either program.</p>
<h3>Getting DVDdecrypter (under WINE compatibility layer) to recognize your DVD burner</h3>
<p><a href="http://appdb.winehq.org/appview.php?iVersionId=2587&#038;iTestingId=5252" onclick="javascript:urchinTracker ('/outbound/article/appdb.winehq.org');">A guide I discovered.</a></p>
<blockquote><p>1. Use winecfg to set dvddecrypter.exe as running under WindowsNT4.0.</p>
<p>2. Make a symbolic link from your cdrom mountpoint(mine is /media/cdrom0) to /home/username/.wine/dosdevices/d:</p>
<div class="igBar"><span id="lbash-15"><a href="#" onclick="javascript:showPlainTxt('bash-15'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">BASH:</span>
<div id="bash-15">
<div class="bash">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">#while inside ~/.wine directory</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ln -s /media/cdrom0 -s d: </div>
</li>
</ol>
</div>
</div>
</div>
<p>
3. Create a symlink from your burner(mine is /dev/hda) to /home/username/.wine/dosdevices/d::</p>
<div class="igBar"><span id="lbash-16"><a href="#" onclick="javascript:showPlainTxt('bash-16'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">BASH:</span>
<div id="bash-16">
<div class="bash">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">#while inside ~/.wine directory</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">#note the double-colon</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ln -s /dev/hda -s d:: </div>
</li>
</ol>
</div>
</div>
</div>
<p>
4. Inside DVDdecrypter settings, search for drives automatically (you might also try restarting the program).</p></blockquote>
<p>DVDShrink is basically self-explanatory.  There is a tutorial (where else?) at <a href="http://www.doom9.org/index.html?/mpg/dvdshrink31-main.htm" onclick="javascript:urchinTracker ('/outbound/article/www.doom9.org');">Doom9.net</a>.  The program works nicely with DVDdecrypter or Nero, as there is an option to send the DVD files (basically the VIDEO_TS directory) to either program for direct burning.  In its simplest form, it is no more than a three step process:</p>
<blockquote><p>1. Decrypt.<br />
2. Shrink (including removing extraneous data).<br />
3. Burn.</p></blockquote>
<p>>One more note: If you are using WINE, it is safe to ignore the error messages about DVDdecrypter being unable to lock the DVD drive for unique access.  This would appear to be a bug in WINE.
</p>
]]></content:encoded>
			<wfw:commentRss>http://sextrivium.com/blog/2006/10/17/backup-dvds/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Hey Guys, I filled out a survey!</title>
		<link>http://sextrivium.com/blog/2006/10/17/hey-guys-i-filled-out-a-survey/</link>
		<comments>http://sextrivium.com/blog/2006/10/17/hey-guys-i-filled-out-a-survey/#comments</comments>
		<pubDate>Tue, 17 Oct 2006 22:02:14 +0000</pubDate>
		<dc:creator>desimo</dc:creator>
		
		<category>other</category>

		<category>myspace</category>

		<guid isPermaLink="false">http://sextrivium.com/reviews/?p=59</guid>
		<description><![CDATA[PERSONAL
What is your name? No Comment.
How old are you? No Comment.
What is your birthday? No Comment.
What is your mother's maiden name? No Comment.
What is your dogs name? No Comment.
What street were you born on? No Comment.
Name any pet you ever had? No Comment.
FUNNY STUFF
What is your bank account number? No Comment.
What does your social security [...]]]></description>
			<content:encoded><![CDATA[<p>PERSONAL</p>
<p>What is your name? No Comment.<br />
How old are you? No Comment.<br />
What is your birthday? No Comment.<br />
What is your mother's maiden name? No Comment.<br />
What is your dogs name? No Comment.<br />
What street were you born on? No Comment.<br />
Name any pet you ever had? No Comment.</p>
<p>FUNNY STUFF</p>
<p>What is your bank account number? No Comment.<br />
What does your social security number spell on a touchtone phone? No Comment.<br />
How about your pin? No Comment.</p>
<p>LOVE LIFE</p>
<p>What is your wife..s maiden name (if you're married)? No Comment.<br />
Do you own a paper shredder? No Comment.<br />
How many times have you moved in the last five years? No Comment.<br />
What is your credit score, in semaphore? Haha.</p>
<p>RIGHT NOW</p>
<p>Where are you sitting? No Comment.<br />
In what room? No Comment.<br />
Are you by a window? No Comment.<br />
Are you alone? No Comment.<br />
Is the door locked? No Comment.<br />
Can I come over? No Comment.</p>
<p>EITHER / OR</p>
<p>Apartment / House? No Comment.<br />
Cable / DirectTV? No Comment.<br />
Cable / DSL? No Comment.<br />
Turkey / Tofurkey? No Comment.<br />
SUV / Bug? No Comment.<br />
Mac / PC? PC (Debian Linux)<br />
Internet Explorer / Firefox? No Comment.<br />
Morning person / Night owl? No Comment.<br />
Cat / Dog? No Comment.</p>
<p><em>Information in one place is information in many places...</em>
</p>
]]></content:encoded>
			<wfw:commentRss>http://sextrivium.com/blog/2006/10/17/hey-guys-i-filled-out-a-survey/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Now on del.icio.us</title>
		<link>http://sextrivium.com/blog/2006/03/25/now-on-delicious/</link>
		<comments>http://sextrivium.com/blog/2006/03/25/now-on-delicious/#comments</comments>
		<pubDate>Sat, 25 Mar 2006 23:31:39 +0000</pubDate>
		<dc:creator>desimo</dc:creator>
		
		<category>sites</category>

		<guid isPermaLink="false">http://sextrivium.com/reviews/?p=22</guid>
		<description><![CDATA[I'm starting a list of bookmarks on del.icio.us.  You, my friends, are all welcome to see where I've been browsing lately.
A full review of del.icio.us will follow.
Current score: Unreviewed

]]></description>
			<content:encoded><![CDATA[<p>I'm starting a list of bookmarks on <a href="http://del.icio.us/desimo" onclick="javascript:urchinTracker ('/outbound/article/del.icio.us');">del.icio.us</a>.  You, my friends, are all welcome to see where I've been browsing lately.</p>
<p>A full review of <a href="http://del.icio.us/desimo"x onclick="javascript:urchinTracker ('/outbound/article/del.icio.us');">del.icio.us</a> will follow.<br />
Current score: Unreviewed
</p>
]]></content:encoded>
			<wfw:commentRss>http://sextrivium.com/blog/2006/03/25/now-on-delicious/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
