<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments for pixelchaos.net</title>
	<atom:link href="http://www.pixelchaos.net/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pixelchaos.net</link>
	<description>random bits for your terminal</description>
	<pubDate>Sat, 22 Nov 2008 06:25:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>Comment on Set up a bluetooth keyboard in Debian Etch by shelby</title>
		<link>http://www.pixelchaos.net/2008/09/26/set-up-a-bluetooth-keyboard-in-debian-etch/#comment-653</link>
		<dc:creator>shelby</dc:creator>
		<pubDate>Sat, 27 Sep 2008 17:42:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelchaos.net/?p=71#comment-653</guid>
		<description>When I have setup bluetooth devices I have always used hidd --search from the command line and that should connect it.  If all else it will give you the bluetooth address and you can then use the hidd --connect</description>
		<content:encoded><![CDATA[<p>When I have setup bluetooth devices I have always used hidd &#8211;search from the command line and that should connect it.  If all else it will give you the bluetooth address and you can then use the hidd &#8211;connect</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Coraid Odyssey: Part 6 (sata_mv hotplug) by jcl</title>
		<link>http://www.pixelchaos.net/2008/04/29/coraid-odyssey-part-6-sata_mv-hotplug/#comment-642</link>
		<dc:creator>jcl</dc:creator>
		<pubDate>Sat, 13 Sep 2008 12:00:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelchaos.net/?p=52#comment-642</guid>
		<description>Mark,

I have had no such problems with the Seagate Barracuda ES.2 drives (ST31000340NS). In fact, the only small issue I've seen with this whole rig at all is related to the immaturity of the sata_mv driver (I think).

Even under kernel 2.6.26-1-686 in Debian 5.0 (Lenny) I occasionally see drives that have just been hot plugged hit a performance cap of about 13MB/s. If you simply wait several minutes the issue seems to go away and the drives start performing at a more normal 110MB/s or so.

I suppose it is possible that the issue is actually caused by something in the firmware of the ES.2 drives and Linux/sata_mv just deals with it better than Plan9 on the Coraid boxes?</description>
		<content:encoded><![CDATA[<p>Mark,</p>
<p>I have had no such problems with the Seagate Barracuda ES.2 drives (ST31000340NS). In fact, the only small issue I&#8217;ve seen with this whole rig at all is related to the immaturity of the sata_mv driver (I think).</p>
<p>Even under kernel 2.6.26-1-686 in Debian 5.0 (Lenny) I occasionally see drives that have just been hot plugged hit a performance cap of about 13MB/s. If you simply wait several minutes the issue seems to go away and the drives start performing at a more normal 110MB/s or so.</p>
<p>I suppose it is possible that the issue is actually caused by something in the firmware of the ES.2 drives and Linux/sata_mv just deals with it better than Plan9 on the Coraid boxes?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Coraid Odyssey: Part 6 (sata_mv hotplug) by Mark</title>
		<link>http://www.pixelchaos.net/2008/04/29/coraid-odyssey-part-6-sata_mv-hotplug/#comment-640</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Sat, 13 Sep 2008 06:13:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelchaos.net/?p=52#comment-640</guid>
		<description>I would be interested to hear how you ST31000340NS disks went over time, as Coraid have reports of issues with them just stopping. A hot unplug/replug apparently brings them back to life.</description>
		<content:encoded><![CDATA[<p>I would be interested to hear how you ST31000340NS disks went over time, as Coraid have reports of issues with them just stopping. A hot unplug/replug apparently brings them back to life.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Coraid Odyssey: Part 1 (building the chassis) by Performance testing Linux software RAID at pixelchaos.net</title>
		<link>http://www.pixelchaos.net/2008/03/28/coraid-odyssey-part-1/#comment-638</link>
		<dc:creator>Performance testing Linux software RAID at pixelchaos.net</dc:creator>
		<pubDate>Fri, 12 Sep 2008 17:39:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelchaos.net/index.php/archives/46#comment-638</guid>
		<description>[...] Our test system, for those who dont follow this blog regularly, is a Supermicro X7DVL-E motherboard with a single Intel Core2 Xeon 5130 @ 2Ghz with 2GB of BLAH RAM. The disks used are Seagate ES.2 1TB SATA-II models hooked up to two Supermicro AOC-SAT2-MV8 8-port PCI-X SATA controllers. More complete specs are outlined in my original post where I was building the chassis, which can be found here. [...]</description>
		<content:encoded><![CDATA[<p>[...] Our test system, for those who dont follow this blog regularly, is a Supermicro X7DVL-E motherboard with a single Intel Core2 Xeon 5130 @ 2Ghz with 2GB of BLAH RAM. The disks used are Seagate ES.2 1TB SATA-II models hooked up to two Supermicro AOC-SAT2-MV8 8-port PCI-X SATA controllers. More complete specs are outlined in my original post where I was building the chassis, which can be found here. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on flac2mp3: batch flac to mp3 converter by curts</title>
		<link>http://www.pixelchaos.net/2007/11/04/flac2mp3-batch-flac-to-mp3-converter/#comment-392</link>
		<dc:creator>curts</dc:creator>
		<pubDate>Sun, 27 Jul 2008 21:52:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelchaos.net/index.php/archives/35#comment-392</guid>
		<description>Using Waldmeister's Perl script as a starting point, I've streamlined it, made it more robust, made some corrections for Ubuntu, and added some features I needed.  I hope others will find it useful.

&lt;code&gt;
#!/usr/bin/perl
#
# added some code to get id3 info in your mp3s

use Getopt::Std;
my $opt_string = 'ho:p:';
getopts( "$opt_string", \%opt ) or usage();
usage() if $opt{h};
$opt{o} = "." if ( $opt{o} eq "" );


sub usage() {
  print STDERR &#60;&#60; "EOF";

  usage: $0 [-h] [-o directory] [-p prefix] file.flac [file.flac ...]

    -h                    help (this message)
    -o directory          optional destination for MP3 files
    -p prefix             optional text to prepend to each MP3 file

EOF
  exit;
}

if ( ! -d $opt{o} ) {
  print "'$opt{o}' is not a valid directory for output, using current directory...\n";
  $opt{o} = ".";
}


# PROGRAMME
$flac=flac;
$metaflac=metaflac;
$lame=lame;
# OPTIONEN
$lame_opt="--preset extreme -V2 --add-id3v2 --tc \"Curtis Schroeder\" ";
$flacinfo="flacinfo.txt";

print "*** flac2mp3 -- Converts .flac to .mp3\n";

foreach (@ARGV) {
  print "\n\n*** Now processing ", $_, "\n";
  if (!($_ =~ /\.flac$/)) {
    print "Skipping $_\n";
    next;
  }

  # Convert spaces in filename to underscores as flac can't handle spaces
  if ( $_ =~ /\ /) {
     $file = $_;
     $file =~ s/ /_/g;
     system("mv '$_' '$file'");
  }
  else { $file = $_ }

  # getting the meta data (title, album, etc.)
  system("$metaflac --export-tags-to=$flacinfo '$file'");
  open ( $info, "$flacinfo" ) or die "No such file: $flacinfo\n";
  my @metainfo;
  while ( ! eof $info ) {
    $line = ;
    chomp $line;
    @metainfo = split /=/, $line;

    if   ( $metainfo[0] =~ /ARTIST/i ) { $ARTIST  = $metainfo[1]; }
    elsif( $metainfo[0] =~ /ALBUM/i )  { $ALBUM   = $metainfo[1]; }
    elsif( $metainfo[0] =~ /DATE/i )   { $YEAR    = $metainfo[1]; }
    elsif( $metainfo[0] =~ /TITLE/i )  { $TITLE   = $metainfo[1]; }
    elsif( $metainfo[0] =~ /TRACKN/i ) { $TRACKNo = $metainfo[1]; }
  }

  # Remove leading zero from track number
  $TRACKNo =~ s/0(\d)/$1/;

  # Metainfo for lame
  $LAMEmeta="--tt \"$TITLE\" --ta \"$ARTIST\" --tl \"$ALBUM\" --tn $TRACKNo --ty $YEAR ";

  # Now converting follows
  system("$flac -d '$file'");
  $file =~ s/\.flac$/.wav/;
  $target = $file;
  $target =~ s/\.wav$/.mp3/;
  system("$lame $lame_opt $LAMEmeta '$file' '$opt{o}/$opt{p}$target'");
  unlink $file;
  print "\n";
}
unlink $flacinfo;
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Using Waldmeister&#8217;s Perl script as a starting point, I&#8217;ve streamlined it, made it more robust, made some corrections for Ubuntu, and added some features I needed.  I hope others will find it useful.</p>
<div class="php" style="font-family: monospace;font-size: 110%; color: #000066; border: 1px solid orange; margin: 5px; padding: 5px; background-color: #ffffff;"><span style="color: #808080; font-style: italic;">#!/usr/bin/perl</span><br />
<span style="color: #808080; font-style: italic;">#</span><br />
<span style="color: #808080; font-style: italic;"># added some code to get id3 info in your mp3s</span></p>
<p>use <a href="http://www.php.net/getopt"><span style="color: #000066;">Getopt</span></a>::<span style="color: #006600;">Std</span>;<br />
my <span style="color: #0000ff;">$opt_string</span> = <span style="color: #ff0000;">&#8216;ho:p:&#8217;</span>;<br />
getopts<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">&quot;$opt_string&quot;</span>, \%opt <span style="color: #66cc66;">&#41;</span> or usage<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
usage<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #b1b100;">if</span> <span style="color: #0000ff;">$opt</span><span style="color: #66cc66;">&#123;</span>h<span style="color: #66cc66;">&#125;</span>;<br />
<span style="color: #0000ff;">$opt</span><span style="color: #66cc66;">&#123;</span>o<span style="color: #66cc66;">&#125;</span> = <span style="color: #ff0000;">&quot;.&quot;</span> <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #0000ff;">$opt</span><span style="color: #66cc66;">&#123;</span>o<span style="color: #66cc66;">&#125;</span> eq <span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #66cc66;">&#41;</span>;</p>
<p>
sub usage<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; <a href="http://www.php.net/print"><span style="color: #000066;">print</span></a> STDERR &amp;<span style="color: #808080; font-style: italic;">#60;&amp;#60; &quot;EOF&quot;;</span></p>
<p>&nbsp; usage: $<span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#91;</span>-h<span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">&#91;</span>-o directory<span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">&#91;</span>-p prefix<span style="color: #66cc66;">&#93;</span> <a href="http://www.php.net/file"><span style="color: #000066;">file</span></a>.flac <span style="color: #66cc66;">&#91;</span><a href="http://www.php.net/file"><span style="color: #000066;">file</span></a>.flac &#8230;<span style="color: #66cc66;">&#93;</span></p>
<p>&nbsp; &nbsp; -h &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;help <span style="color: #66cc66;">&#40;</span>this message<span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; -o directory &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;optional destination <span style="color: #b1b100;">for</span> MP3 files<br />
&nbsp; &nbsp; -p prefix &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; optional text to prepend to <a href="http://www.php.net/each"><span style="color: #000066;">each</span></a> MP3 <a href="http://www.php.net/file"><span style="color: #000066;">file</span></a></p>
<p>EOF<br />
&nbsp; <a href="http://www.php.net/exit"><span style="color: #000066;">exit</span></a>;<br />
<span style="color: #66cc66;">&#125;</span></p>
<p><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span> ! -d <span style="color: #0000ff;">$opt</span><span style="color: #66cc66;">&#123;</span>o<span style="color: #66cc66;">&#125;</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; <a href="http://www.php.net/print"><span style="color: #000066;">print</span></a> <span style="color: #ff0000;">&quot;&#8217;$opt{o}&#8217; is not a valid directory for output, using current directory&#8230;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;<br />
&nbsp; <span style="color: #0000ff;">$opt</span><span style="color: #66cc66;">&#123;</span>o<span style="color: #66cc66;">&#125;</span> = <span style="color: #ff0000;">&quot;.&quot;</span>;<br />
<span style="color: #66cc66;">&#125;</span></p>
<p>
<span style="color: #808080; font-style: italic;"># PROGRAMME</span><br />
<span style="color: #0000ff;">$flac</span>=flac;<br />
<span style="color: #0000ff;">$metaflac</span>=metaflac;<br />
<span style="color: #0000ff;">$lame</span>=lame;<br />
<span style="color: #808080; font-style: italic;"># OPTIONEN</span><br />
<span style="color: #0000ff;">$lame_opt</span>=<span style="color: #ff0000;">&quot;&#8211;preset extreme -V2 &#8211;add-id3v2 &#8211;tc <span style="color: #000099; font-weight: bold;">\&quot;</span>Curtis Schroeder<span style="color: #000099; font-weight: bold;">\&quot;</span> &quot;</span>;<br />
<span style="color: #0000ff;">$flacinfo</span>=<span style="color: #ff0000;">&quot;flacinfo.txt&quot;</span>;</p>
<p><a href="http://www.php.net/print"><span style="color: #000066;">print</span></a> <span style="color: #ff0000;">&quot;*** flac2mp3 &#8212; Converts .flac to .mp3<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;</p>
<p><span style="color: #b1b100;">foreach</span> <span style="color: #66cc66;">&#40;</span>@ARGV<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; <a href="http://www.php.net/print"><span style="color: #000066;">print</span></a> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>*** Now processing &quot;</span>, <span style="color: #0000ff;">$_</span>, <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;<br />
&nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>!<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$_</span> =~ /\.flac$/<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; <a href="http://www.php.net/print"><span style="color: #000066;">print</span></a> <span style="color: #ff0000;">&quot;Skipping $_<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;<br />
&nbsp; &nbsp; <a href="http://www.php.net/next"><span style="color: #000066;">next</span></a>;<br />
&nbsp; <span style="color: #66cc66;">&#125;</span></p>
<p>&nbsp; <span style="color: #808080; font-style: italic;"># Convert spaces in filename to underscores as flac can&#8217;t handle spaces</span><br />
&nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #0000ff;">$_</span> =~ /\ /<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">$file</span> = <span style="color: #0000ff;">$_</span>;<br />
&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">$file</span> =~ s/ /<a href="http://www.php.net/_"><span style="color: #000066;">_</span></a>/g;<br />
&nbsp; &nbsp; &nbsp;<a href="http://www.php.net/system"><span style="color: #000066;">system</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;mv &#8216;$_&#8217; &#8216;$file&#8217;&quot;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; <span style="color: #b1b100;">else</span> <span style="color: #66cc66;">&#123;</span> <span style="color: #0000ff;">$file</span> = <span style="color: #0000ff;">$_</span> <span style="color: #66cc66;">&#125;</span></p>
<p>&nbsp; <span style="color: #808080; font-style: italic;"># getting the meta data (title, album, etc.)</span><br />
&nbsp; <a href="http://www.php.net/system"><span style="color: #000066;">system</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;$metaflac &#8211;export-tags-to=$flacinfo &#8216;$file&#8217;&quot;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; open <span style="color: #66cc66;">&#40;</span> <span style="color: #0000ff;">$info</span>, <span style="color: #ff0000;">&quot;$flacinfo&quot;</span> <span style="color: #66cc66;">&#41;</span> or <a href="http://www.php.net/die"><span style="color: #000066;">die</span></a> <span style="color: #ff0000;">&quot;No such file: $flacinfo<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;<br />
&nbsp; my @metainfo;<br />
&nbsp; <span style="color: #b1b100;">while</span> <span style="color: #66cc66;">&#40;</span> ! eof <span style="color: #0000ff;">$info</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #0000ff;">$line</span> = ;<br />
&nbsp; &nbsp; chomp <span style="color: #0000ff;">$line</span>;<br />
&nbsp; &nbsp; @metainfo = <a href="http://www.php.net/split"><span style="color: #000066;">split</span></a> /=/, <span style="color: #0000ff;">$line</span>;</p>
<p>&nbsp; &nbsp; <span style="color: #b1b100;">if</span> &nbsp; <span style="color: #66cc66;">&#40;</span> <span style="color: #0000ff;">$metainfo</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span> =~ /ARTIST/i <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span> <span style="color: #0000ff;">$ARTIST</span> &nbsp;= <span style="color: #0000ff;">$metainfo</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span>; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; elsif<span style="color: #66cc66;">&#40;</span> <span style="color: #0000ff;">$metainfo</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span> =~ /ALBUM/i <span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #66cc66;">&#123;</span> <span style="color: #0000ff;">$ALBUM</span> &nbsp; = <span style="color: #0000ff;">$metainfo</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span>; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; elsif<span style="color: #66cc66;">&#40;</span> <span style="color: #0000ff;">$metainfo</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span> =~ /<a href="http://www.php.net/date"><span style="color: #000066;">DATE</span></a>/i <span style="color: #66cc66;">&#41;</span> &nbsp; <span style="color: #66cc66;">&#123;</span> <span style="color: #0000ff;">$YEAR</span> &nbsp; &nbsp;= <span style="color: #0000ff;">$metainfo</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span>; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; elsif<span style="color: #66cc66;">&#40;</span> <span style="color: #0000ff;">$metainfo</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span> =~ /TITLE/i <span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #66cc66;">&#123;</span> <span style="color: #0000ff;">$TITLE</span> &nbsp; = <span style="color: #0000ff;">$metainfo</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span>; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; elsif<span style="color: #66cc66;">&#40;</span> <span style="color: #0000ff;">$metainfo</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span> =~ /TRACKN/i <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span> <span style="color: #0000ff;">$TRACKNo</span> = <span style="color: #0000ff;">$metainfo</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span>; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; <span style="color: #66cc66;">&#125;</span></p>
<p>&nbsp; <span style="color: #808080; font-style: italic;"># Remove leading zero from track number</span><br />
&nbsp; <span style="color: #0000ff;">$TRACKNo</span> =~ s/<span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#40;</span>\d<span style="color: #66cc66;">&#41;</span>/$<span style="color: #cc66cc;">1</span>/;</p>
<p>&nbsp; <span style="color: #808080; font-style: italic;"># Metainfo for lame</span><br />
&nbsp; <span style="color: #0000ff;">$LAMEmeta</span>=<span style="color: #ff0000;">&quot;&#8211;tt <span style="color: #000099; font-weight: bold;">\&quot;</span>$TITLE<span style="color: #000099; font-weight: bold;">\&quot;</span> &#8211;ta <span style="color: #000099; font-weight: bold;">\&quot;</span>$ARTIST<span style="color: #000099; font-weight: bold;">\&quot;</span> &#8211;tl <span style="color: #000099; font-weight: bold;">\&quot;</span>$ALBUM<span style="color: #000099; font-weight: bold;">\&quot;</span> &#8211;tn $TRACKNo &#8211;ty $YEAR &quot;</span>;</p>
<p>&nbsp; <span style="color: #808080; font-style: italic;"># Now converting follows</span><br />
&nbsp; <a href="http://www.php.net/system"><span style="color: #000066;">system</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;$flac -d &#8216;$file&#8217;&quot;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; <span style="color: #0000ff;">$file</span> =~ s/\.flac$/.wav/;<br />
&nbsp; <span style="color: #0000ff;">$target</span> = <span style="color: #0000ff;">$file</span>;<br />
&nbsp; <span style="color: #0000ff;">$target</span> =~ s/\.wav$/.mp3/;<br />
&nbsp; <a href="http://www.php.net/system"><span style="color: #000066;">system</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;$lame $lame_opt $LAMEmeta &#8216;$file&#8217; &#8216;$opt{o}/$opt{p}$target&#8217;&quot;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; <a href="http://www.php.net/unlink"><span style="color: #000066;">unlink</span></a> <span style="color: #0000ff;">$file</span>;<br />
&nbsp; <a href="http://www.php.net/print"><span style="color: #000066;">print</span></a> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;<br />
<span style="color: #66cc66;">&#125;</span><br />
<a href="http://www.php.net/unlink"><span style="color: #000066;">unlink</span></a> <span style="color: #0000ff;">$flacinfo</span>;</div>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Coraid Odyssey: Part 1 (building the chassis) by Richard</title>
		<link>http://www.pixelchaos.net/2008/03/28/coraid-odyssey-part-1/#comment-314</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Wed, 23 Jul 2008 15:34:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelchaos.net/index.php/archives/46#comment-314</guid>
		<description>I recently embarked on a Coraid journey myself and am finding myself frustrated and disappointed in general.  Let's just say that I've had a Coraid box (actually 2) for almost 4 months and still haven't moved any data onto it permanently.

I really like that you built your own server - it looks much better then my Coraid unit.  :/  It also runs Debian (which I love) instead of Plan 9 (which just cornfuses me).

Later...
  Richard

BTW: I think I'm going to steal your "backup RAID1 mirror" idea!  I think a trio of 1TB disks would do nicely for an offsite backup plan.  Thanx!</description>
		<content:encoded><![CDATA[<p>I recently embarked on a Coraid journey myself and am finding myself frustrated and disappointed in general.  Let&#8217;s just say that I&#8217;ve had a Coraid box (actually 2) for almost 4 months and still haven&#8217;t moved any data onto it permanently.</p>
<p>I really like that you built your own server - it looks much better then my Coraid unit.  :/  It also runs Debian (which I love) instead of Plan 9 (which just cornfuses me).</p>
<p>Later&#8230;<br />
  Richard</p>
<p>BTW: I think I&#8217;m going to steal your &#8220;backup RAID1 mirror&#8221; idea!  I think a trio of 1TB disks would do nicely for an offsite backup plan.  Thanx!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on VLAN Bridging in Xen by jcl</title>
		<link>http://www.pixelchaos.net/2008/07/16/vlan-bridging-in-xen/#comment-217</link>
		<dc:creator>jcl</dc:creator>
		<pubDate>Fri, 18 Jul 2008 12:11:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelchaos.net/?p=53#comment-217</guid>
		<description>phyber,

Excellent info. Thanks!</description>
		<content:encoded><![CDATA[<p>phyber,</p>
<p>Excellent info. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on VLAN Bridging in Xen by phyber</title>
		<link>http://www.pixelchaos.net/2008/07/16/vlan-bridging-in-xen/#comment-202</link>
		<dc:creator>phyber</dc:creator>
		<pubDate>Thu, 17 Jul 2008 14:14:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelchaos.net/?p=53#comment-202</guid>
		<description>It's possible to name your Xen interfaces so that your output from various commands looks a little nicer and makes it easier to tell what's what when you're looking at interface listings.
I like to use the primary function of the domU as my interface names.  So I end up with interfaces like 'www0' or 'mail0'.

You can do this by using 'vifname=somename' in the 'vif = [ ]' config for each of your domUs.</description>
		<content:encoded><![CDATA[<p>It&#8217;s possible to name your Xen interfaces so that your output from various commands looks a little nicer and makes it easier to tell what&#8217;s what when you&#8217;re looking at interface listings.<br />
I like to use the primary function of the domU as my interface names.  So I end up with interfaces like &#8216;www0&#8242; or &#8216;mail0&#8242;.</p>
<p>You can do this by using &#8216;vifname=somename&#8217; in the &#8216;vif = [ ]&#8216; config for each of your domUs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on flac2mp3: batch flac to mp3 converter by Waldmeister</title>
		<link>http://www.pixelchaos.net/2007/11/04/flac2mp3-batch-flac-to-mp3-converter/#comment-195</link>
		<dc:creator>Waldmeister</dc:creator>
		<pubDate>Fri, 09 May 2008 22:22:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelchaos.net/index.php/archives/35#comment-195</guid>
		<description>Some funny things happen while using Provoxy:

open ( IN, "$flacinfo" ) or die "No such file: $flacinfo\n";

It should read _o p e n_, not PrivoxyWindowOpen.</description>
		<content:encoded><![CDATA[<p>Some funny things happen while using Provoxy:</p>
<p>open ( IN, &#8220;$flacinfo&#8221; ) or die &#8220;No such file: $flacinfo\n&#8221;;</p>
<p>It should read _o p e n_, not PrivoxyWindowOpen.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on flac2mp3: batch flac to mp3 converter by Waldmeister</title>
		<link>http://www.pixelchaos.net/2007/11/04/flac2mp3-batch-flac-to-mp3-converter/#comment-194</link>
		<dc:creator>Waldmeister</dc:creator>
		<pubDate>Fri, 09 May 2008 22:18:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelchaos.net/index.php/archives/35#comment-194</guid>
		<description>&lt;code&gt;
#!/usr/bin/perl
#
# added some code to get id3 info in your mp3s

# PROGRAMME
$flac=flac;
$metaflac=metaflac;
$lame=lame;
# OPTIONEN
$lame_opt="--preset extreme --add-id3v2 --tc \"Waldmeisters Musiktruhe\" ";
$flacinfo="flacinfo.txt";

print "*** flac2mp3  -- Converts .flac to .mp3\n";

foreach (@ARGV) {
print "\n\n*** Now processing ", $_, "\n";
if (!($_ =~ /\.flac$/)) {
print "Skipping $_\n";
next;
}

# getting the meta data (title, interpret, etc.)
system("$metaflac --export-tags-to=$flacinfo $_");
open ( IN, "$flacinfo" ) or die "No such file: $flacinfo\n";
$i = 0;
while ( $line =  ) {
  chomp $line;
  ($metainfo[$i],$metainfo[$i 1]) = split (m/=/, $line);
  $i =2;
}

for( $i = 0; $i &#60; @metainfo; $i   ) {
  if( $metainfo[$i] =~ /ARTIST/ ) { $ARTIST = $metainfo[$i 1]; }
  elsif( $metainfo[$i] =~ /ALBUM/ ) { $ALBUM= $metainfo[$i 1]; }
  elsif( $metainfo[$i] =~ /YEAR/ ) { $YEAR= $metainfo[$i 1]; }
  elsif( $metainfo[$i] =~ /TITLE/ ) { $TITLE= $metainfo[$i 1]; }
  elsif( $metainfo[$i] =~ /TRACKNo/ ) { $TRACKNo= $metainfo[$i 1]; }
}

# Metainfo for lame
$LAMEmeta="--tt \"$TITLE\" --ta \"$ARTIST\" --tl \"$ALBUM\" --tn $TRACKNo --ty $YEAR  ";

# now converting follows
`$flac -d "$_"`;
$_ =~ s/\.flac$/.wav/;
$target = $_;
$target =~ s/\.wav$/.mp3/;
`$lame $lame_opt $LAMEmeta "$_" "$target"`;
`rm "$_"`;
}

`rm $flacinfo`;
print "\n";
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<div class="php" style="font-family: monospace;font-size: 110%; color: #000066; border: 1px solid orange; margin: 5px; padding: 5px; background-color: #ffffff;"><span style="color: #808080; font-style: italic;">#!/usr/bin/perl</span><br />
<span style="color: #808080; font-style: italic;">#</span><br />
<span style="color: #808080; font-style: italic;"># added some code to get id3 info in your mp3s</span></p>
<p><span style="color: #808080; font-style: italic;"># PROGRAMME</span><br />
<span style="color: #0000ff;">$flac</span>=flac;<br />
<span style="color: #0000ff;">$metaflac</span>=metaflac;<br />
<span style="color: #0000ff;">$lame</span>=lame;<br />
<span style="color: #808080; font-style: italic;"># OPTIONEN</span><br />
<span style="color: #0000ff;">$lame_opt</span>=<span style="color: #ff0000;">&quot;&#8211;preset extreme &#8211;add-id3v2 &#8211;tc <span style="color: #000099; font-weight: bold;">\&quot;</span>Waldmeisters Musiktruhe<span style="color: #000099; font-weight: bold;">\&quot;</span> &quot;</span>;<br />
<span style="color: #0000ff;">$flacinfo</span>=<span style="color: #ff0000;">&quot;flacinfo.txt&quot;</span>;</p>
<p><a href="http://www.php.net/print"><span style="color: #000066;">print</span></a> <span style="color: #ff0000;">&quot;*** flac2mp3 &nbsp;&#8211; Converts .flac to .mp3<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;</p>
<p><span style="color: #b1b100;">foreach</span> <span style="color: #66cc66;">&#40;</span>@ARGV<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><br />
<a href="http://www.php.net/print"><span style="color: #000066;">print</span></a> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>*** Now processing &quot;</span>, <span style="color: #0000ff;">$_</span>, <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;<br />
<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>!<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$_</span> =~ /\.flac$/<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><br />
<a href="http://www.php.net/print"><span style="color: #000066;">print</span></a> <span style="color: #ff0000;">&quot;Skipping $_<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;<br />
<a href="http://www.php.net/next"><span style="color: #000066;">next</span></a>;<br />
<span style="color: #66cc66;">&#125;</span></p>
<p><span style="color: #808080; font-style: italic;"># getting the meta data (title, interpret, etc.)</span><br />
<a href="http://www.php.net/system"><span style="color: #000066;">system</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;$metaflac &#8211;export-tags-to=$flacinfo $_&quot;</span><span style="color: #66cc66;">&#41;</span>;<br />
open <span style="color: #66cc66;">&#40;</span> IN, <span style="color: #ff0000;">&quot;$flacinfo&quot;</span> <span style="color: #66cc66;">&#41;</span> or <a href="http://www.php.net/die"><span style="color: #000066;">die</span></a> <span style="color: #ff0000;">&quot;No such file: $flacinfo<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;<br />
<span style="color: #0000ff;">$i</span> = <span style="color: #cc66cc;">0</span>;<br />
<span style="color: #b1b100;">while</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #0000ff;">$line</span> = &nbsp;<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; chomp <span style="color: #0000ff;">$line</span>;<br />
&nbsp; <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$metainfo</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$i</span><span style="color: #66cc66;">&#93;</span>,<span style="color: #0000ff;">$metainfo</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$i</span> <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span> = <a href="http://www.php.net/split"><span style="color: #000066;">split</span></a> <span style="color: #66cc66;">&#40;</span>m/=/, <span style="color: #0000ff;">$line</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; <span style="color: #0000ff;">$i</span> =<span style="color: #cc66cc;">2</span>;<br />
<span style="color: #66cc66;">&#125;</span></p>
<p><span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span> <span style="color: #0000ff;">$i</span> = <span style="color: #cc66cc;">0</span>; <span style="color: #0000ff;">$i</span> &amp;<span style="color: #808080; font-style: italic;">#60; @metainfo; $i &nbsp; ) {</span><br />
&nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span> <span style="color: #0000ff;">$metainfo</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$i</span><span style="color: #66cc66;">&#93;</span> =~ /ARTIST/ <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span> <span style="color: #0000ff;">$ARTIST</span> = <span style="color: #0000ff;">$metainfo</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$i</span> <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span>; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; elsif<span style="color: #66cc66;">&#40;</span> <span style="color: #0000ff;">$metainfo</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$i</span><span style="color: #66cc66;">&#93;</span> =~ /ALBUM/ <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span> <span style="color: #0000ff;">$ALBUM</span>= <span style="color: #0000ff;">$metainfo</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$i</span> <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span>; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; elsif<span style="color: #66cc66;">&#40;</span> <span style="color: #0000ff;">$metainfo</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$i</span><span style="color: #66cc66;">&#93;</span> =~ /YEAR/ <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span> <span style="color: #0000ff;">$YEAR</span>= <span style="color: #0000ff;">$metainfo</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$i</span> <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span>; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; elsif<span style="color: #66cc66;">&#40;</span> <span style="color: #0000ff;">$metainfo</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$i</span><span style="color: #66cc66;">&#93;</span> =~ /TITLE/ <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span> <span style="color: #0000ff;">$TITLE</span>= <span style="color: #0000ff;">$metainfo</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$i</span> <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span>; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; elsif<span style="color: #66cc66;">&#40;</span> <span style="color: #0000ff;">$metainfo</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$i</span><span style="color: #66cc66;">&#93;</span> =~ /TRACKNo/ <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span> <span style="color: #0000ff;">$TRACKNo</span>= <span style="color: #0000ff;">$metainfo</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$i</span> <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span>; <span style="color: #66cc66;">&#125;</span><br />
<span style="color: #66cc66;">&#125;</span></p>
<p><span style="color: #808080; font-style: italic;"># Metainfo for lame</span><br />
<span style="color: #0000ff;">$LAMEmeta</span>=<span style="color: #ff0000;">&quot;&#8211;tt <span style="color: #000099; font-weight: bold;">\&quot;</span>$TITLE<span style="color: #000099; font-weight: bold;">\&quot;</span> &#8211;ta <span style="color: #000099; font-weight: bold;">\&quot;</span>$ARTIST<span style="color: #000099; font-weight: bold;">\&quot;</span> &#8211;tl <span style="color: #000099; font-weight: bold;">\&quot;</span>$ALBUM<span style="color: #000099; font-weight: bold;">\&quot;</span> &#8211;tn $TRACKNo &#8211;ty $YEAR &nbsp;&quot;</span>;</p>
<p><span style="color: #808080; font-style: italic;"># now converting follows</span><br />
`<span style="color: #0000ff;">$flac</span> -d <span style="color: #ff0000;">&quot;$_&quot;</span>`;<br />
<span style="color: #0000ff;">$_</span> =~ s/\.flac$/.wav/;<br />
<span style="color: #0000ff;">$target</span> = <span style="color: #0000ff;">$_</span>;<br />
<span style="color: #0000ff;">$target</span> =~ s/\.wav$/.mp3/;<br />
`<span style="color: #0000ff;">$lame</span> <span style="color: #0000ff;">$lame_opt</span> <span style="color: #0000ff;">$LAMEmeta</span> <span style="color: #ff0000;">&quot;$_&quot;</span> <span style="color: #ff0000;">&quot;$target&quot;</span>`;<br />
`rm <span style="color: #ff0000;">&quot;$_&quot;</span>`;<br />
<span style="color: #66cc66;">&#125;</span></p>
<p>`rm <span style="color: #0000ff;">$flacinfo</span>`;<br />
<a href="http://www.php.net/print"><span style="color: #000066;">print</span></a> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;</div>
]]></content:encoded>
	</item>
</channel>
</rss>
