<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Bren&#039;s Blog</title>
	<atom:link href="http://xerampelin.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://xerampelin.wordpress.com</link>
	<description></description>
	<lastBuildDate>Mon, 16 Jan 2012 02:40:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='xerampelin.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Bren&#039;s Blog</title>
		<link>http://xerampelin.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://xerampelin.wordpress.com/osd.xml" title="Bren&#039;s Blog" />
	<atom:link rel='hub' href='http://xerampelin.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Abstract Unix Domain Sockets</title>
		<link>http://xerampelin.wordpress.com/2010/11/23/abstract-unix-domain-sockets/</link>
		<comments>http://xerampelin.wordpress.com/2010/11/23/abstract-unix-domain-sockets/#comments</comments>
		<pubDate>Tue, 23 Nov 2010 12:48:29 +0000</pubDate>
		<dc:creator>xerampelin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[uds unix sockets linux]]></category>

		<guid isPermaLink="false">http://xerampelin.wordpress.com/?p=22</guid>
		<description><![CDATA[Today, I came across some code which created a unix domain socket. It first memset() the entire struct sockaddr_un to 0, then it copied a string into &#38;sun_path[1]. This looks odd; the copying starts at offset 1. So there&#8217;s a &#8230; <a href="http://xerampelin.wordpress.com/2010/11/23/abstract-unix-domain-sockets/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xerampelin.wordpress.com&amp;blog=9107589&amp;post=22&amp;subd=xerampelin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today, I came across some code which created a unix domain socket.  It first memset() the entire struct sockaddr_un to 0, then it copied a string into &amp;sun_path[1].  This looks odd; the copying starts at offset 1.  So there&#8217;s a null character at the first position?  That&#8217;s weird.  That would always return an empty string when you read sun_path right?</p>
<p>It turns out, unix domain sockets can be &#8220;abstract&#8221; by making the first byte null.  If you read &#8220;man 7 unix&#8221;, it explains it:</p>
<pre>       *  abstract: an abstract socket address is distinguished  by  the  fact
          that  sun_path[0] is a null byte ('').  All of the remaining bytes
          in sun_path define the "name" of the socket.   (Null  bytes  in  the
          name have no special significance.)  The name has no connection with
          file system pathnames.  The socket's address in  this  namespace  is
          given  by the rest of the bytes in sun_path.  When the address of an
          abstract socket is returned by getsockname(2),  getpeername(2),  and
          accept(2),  its  length  is sizeof(struct sockaddr_un), and sun_path
          contains the abstract name.  The abstract socket namespace is a non‐
          portable Linux extension.</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xerampelin.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xerampelin.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xerampelin.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xerampelin.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xerampelin.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xerampelin.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xerampelin.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xerampelin.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xerampelin.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xerampelin.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xerampelin.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xerampelin.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xerampelin.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xerampelin.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xerampelin.wordpress.com&amp;blog=9107589&amp;post=22&amp;subd=xerampelin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xerampelin.wordpress.com/2010/11/23/abstract-unix-domain-sockets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/13fcc59902be8316cb6a0762b1a7719e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">xerampelin</media:title>
		</media:content>
	</item>
		<item>
		<title>Copying a Random Subset of Files</title>
		<link>http://xerampelin.wordpress.com/2010/01/27/copying-random-files-to-an-mp3-player/</link>
		<comments>http://xerampelin.wordpress.com/2010/01/27/copying-random-files-to-an-mp3-player/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 01:46:53 +0000</pubDate>
		<dc:creator>xerampelin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[banshee]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mp3 player]]></category>
		<category><![CDATA[rhythmbox]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://xerampelin.wordpress.com/?p=15</guid>
		<description><![CDATA[I wanted to copy a random subset of my MP3&#8242;s over to my 1GB MP3 player.   Doing this with banshee or rhythmbox isn&#8217;t straightforward.  After some fruitless google searches, I came up with two solutions. Rhythmbox: Create a new playlist &#8230; <a href="http://xerampelin.wordpress.com/2010/01/27/copying-random-files-to-an-mp3-player/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xerampelin.wordpress.com&amp;blog=9107589&amp;post=15&amp;subd=xerampelin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I wanted to copy a random subset of my MP3&#8242;s over to my 1GB MP3 player.   Doing this with banshee or rhythmbox isn&#8217;t straightforward.  After some fruitless google searches, I came up with two solutions.</p>
<h4>Rhythmbox:</h4>
<ol>
<li>Create a new playlist and add all your songs to it.</li>
<li>Right click on the playlist and select &#8220;shuffle playlist&#8221;.</li>
<li>Select all files in your (now shuffled) playlist, and drag them over to your mp3 player.</li>
</ol>
<h4>Command Line:</h4>
<p>I used bash with Ubuntu Linux, but this would probably work elsewhere:</p>
<pre>find ~/music -name '*.mp3' | shuf | while read line; do cp -v "$line"
/media/sansa/;  done;
</pre>
<p>This finds all the files in ~/music with .mp3 extension.  It shuffles that list of files, and then copies them over to /media/sansa/.  Of course, you&#8217;d have to replace ~/music and /media/sansa with your source and destination.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xerampelin.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xerampelin.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xerampelin.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xerampelin.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xerampelin.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xerampelin.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xerampelin.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xerampelin.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xerampelin.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xerampelin.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xerampelin.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xerampelin.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xerampelin.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xerampelin.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xerampelin.wordpress.com&amp;blog=9107589&amp;post=15&amp;subd=xerampelin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xerampelin.wordpress.com/2010/01/27/copying-random-files-to-an-mp3-player/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/13fcc59902be8316cb6a0762b1a7719e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">xerampelin</media:title>
		</media:content>
	</item>
		<item>
		<title>Second Monitor Goes Blank After a While</title>
		<link>http://xerampelin.wordpress.com/2009/09/15/second-monitor-goes-blank-after-a-while/</link>
		<comments>http://xerampelin.wordpress.com/2009/09/15/second-monitor-goes-blank-after-a-while/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 12:02:19 +0000</pubDate>
		<dc:creator>xerampelin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[dual display]]></category>
		<category><![CDATA[nvidia]]></category>

		<guid isPermaLink="false">http://xerampelin.wordpress.com/?p=12</guid>
		<description><![CDATA[I was having a problem where my 2nd monitor was going blank after a while.   I found this post that explained what is likely the problem: http://www.nvnews.net/vbulletin/showthread.php?t=106739 Quote from the link: FX5700 first DVI output is working up to 165 &#8230; <a href="http://xerampelin.wordpress.com/2009/09/15/second-monitor-goes-blank-after-a-while/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xerampelin.wordpress.com&amp;blog=9107589&amp;post=12&amp;subd=xerampelin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was having a problem where my 2nd monitor was going blank after a while.   I found this post that explained what is likely the problem: <a href="http://http://www.nvnews.net/vbulletin/showthread.php?t=106739">http://www.nvnews.net/vbulletin/showthread.php?t=106739</a></p>
<p>Quote from the link:</p>
<blockquote><p>FX5700 first DVI output is working up to 165 Mhz pixel clock and second DVI output can goes only up to 150 Mhz pixel clock. Calculated pixel clock for 1600&#215;1200@60Hz would exceed second output rate as this resolution needs up to 162 Mhz pixel clock : this would be ok for output 1, but problematic for output 2.</p>
<p>Here we are : with 9746 drivers, reduced blanking is automatically applied as we can see &#8220;Reduced Blanking enabled to bring Pixel Clock in range.&#8221; message in traces. Roughly, this eliminates the dead time needed by a CRT beam to be blanked and to be bring back from the end of the line to the start of the next line. Instead, this time is used for a LCD display to acquire DVI. Thus, the pixel clock can be brought back from 162 to 130 Mhz, which clock is compatible with the 150 Mhz rate of the card&#8217;s 2nd DVI output.</p>
<p>169.xx driver&#8217;s behaviour is completly different : if a calculated pixel clock exceed the max pixel clock for the output, this mode is directly invalidated, even with 2 LCD monitors.</p>
<p>Also, the dual screen calculated horizontal size (2660) is not consistent with fallback 1280 pixels + 1600 pixels (should be 2880).</p>
<p>I do not see specifically the reason why the monitor is blanked instead of having a 1280&#215;1024 fallback. Maybe this is a double fault. I am letting that to nvidia gurus.</p></blockquote>
<p>My primary monitor was connected via dvi, my secondary via vga.  My solution was just to enable one monitor at a time.  Since the 2nd monitor is actually a TV, I only needed to use one display at a time.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xerampelin.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xerampelin.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xerampelin.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xerampelin.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xerampelin.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xerampelin.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xerampelin.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xerampelin.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xerampelin.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xerampelin.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xerampelin.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xerampelin.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xerampelin.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xerampelin.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xerampelin.wordpress.com&amp;blog=9107589&amp;post=12&amp;subd=xerampelin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xerampelin.wordpress.com/2009/09/15/second-monitor-goes-blank-after-a-while/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/13fcc59902be8316cb6a0762b1a7719e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">xerampelin</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing Chimera 1.3 on Ubuntu 9.04</title>
		<link>http://xerampelin.wordpress.com/2009/08/22/installing-chimera-1-3-on-ubuntu-9-04/</link>
		<comments>http://xerampelin.wordpress.com/2009/08/22/installing-chimera-1-3-on-ubuntu-9-04/#comments</comments>
		<pubDate>Sat, 22 Aug 2009 14:16:10 +0000</pubDate>
		<dc:creator>xerampelin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[chimera]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://xerampelin.wordpress.com/?p=3</guid>
		<description><![CDATA[Download Chimera installer  http://www.cgl.ucsf.edu/chimera/download.html. In a terminal, cd to the directory containing chimera installer. Make the installer executable (note: % is part of my prompt, not part of the command): % chmod +x chimera-1.3-linux.exe Start chimera installer % ./chimera-1.3-linux.exe UnZipSFX &#8230; <a href="http://xerampelin.wordpress.com/2009/08/22/installing-chimera-1-3-on-ubuntu-9-04/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xerampelin.wordpress.com&amp;blog=9107589&amp;post=3&amp;subd=xerampelin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<ol>
<li>Download Chimera installer <a title="http://www.cgl.ucsf.edu/chimera/download.html" href="http://www.cgl.ucsf.edu/chimera/download.html"> http://www.cgl.ucsf.edu/chimera/download.html</a>.</li>
<li>In a terminal, cd to the directory containing chimera installer.</li>
<li>Make the installer executable (note: % is part of my prompt, not part of the command):
<pre>% chmod +x chimera-1.3-linux.exe</pre>
</li>
<li>Start chimera installer
<pre>% ./chimera-1.3-linux.exe
UnZipSFX 5.41 of 16 April 2000, by Info-ZIP (Zip-Bugs@lists.wku.edu).
Original path: '/home/bren/archive/chimera'
 inflating: chimera_install_upnT9u/installer  
 inflating: chimera_install_upnT9u/chimera.exe  

Enter install location [hit enter for default (/usr/local/chimera)]: <span style="color:#0000ff;"><strong>/home/bren/opt/chimera</strong></span></pre>
</li>
<li>Notice above that when prompted, I set the install location to /home/bren/opt/chimera.  The default /usr/local/chimera&#8211;should you wish to install there&#8211;requires running chimera installer with sudo in step 4.</li>
<li>Press enter to finish the install.</li>
<li>Run chimera
<pre>% /home/bren/opt/chimera/bin/chimera</pre>
</li>
<li>The Chimera window appears
<p><div id="attachment_9" class="wp-caption alignnone" style="width: 238px"><img class="size-medium wp-image-9" title="Chimera Screenshot" src="http://xerampelin.files.wordpress.com/2009/08/screenshot1.png?w=228&#038;h=300" alt="Screenshot of Chimera and a terminal" width="228" height="300" /><p class="wp-caption-text">Screenshot of Chimera and a terminal</p></div></li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xerampelin.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xerampelin.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xerampelin.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xerampelin.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xerampelin.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xerampelin.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xerampelin.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xerampelin.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xerampelin.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xerampelin.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xerampelin.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xerampelin.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xerampelin.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xerampelin.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xerampelin.wordpress.com&amp;blog=9107589&amp;post=3&amp;subd=xerampelin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xerampelin.wordpress.com/2009/08/22/installing-chimera-1-3-on-ubuntu-9-04/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/13fcc59902be8316cb6a0762b1a7719e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">xerampelin</media:title>
		</media:content>

		<media:content url="http://xerampelin.files.wordpress.com/2009/08/screenshot1.png?w=228" medium="image">
			<media:title type="html">Chimera Screenshot</media:title>
		</media:content>
	</item>
	</channel>
</rss>
