<?xml version="1.0" encoding="iso-8859-1" ?>
<rss version="2.0" 
   xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" 
   xmlns:html="http://www.w3.org/1999/html" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
<channel>
   <title>Daniel Nouri's Blog</title>
   <link>http://danielnouri.org/blog</link>
   <description>Observing the unobserved</description>
   <language>en</language>
   <copyright>Copyright 2006 Daniel Nouri</copyright>
   <ttl>60</ttl>
   <pubDate>Thu, 28 Feb 2008 21:20 GMT</pubDate>
   <managingEditor>daniel.nouri@gmail.com</managingEditor>
   <generator>PyBlosxom http://pyblosxom.sourceforge.net/ 1.3.2 2/13/2006</generator>
<item>
   <title>Gnus 5.13 hanging with "Checking mailboxes..."?</title>
   <guid isPermaLink="false">linux/gnus-5.13-hangs</guid>
   <link>http://danielnouri.org/blog/linux/gnus-5.13-hangs.html</link>
   <description><![CDATA[

<div class="document">
<p>I finally fixed my problem with <a class="reference" href="http://gnus.org">Gnus</a>.  I'm writing this, hoping that
it'll maybe help someone out there with the same issue.</p>
<p>The symptom: Gnus checks your IMAP mailboxes forever.  The problem I
had was with one of my mailbox names: I had a ampersand (<tt class="docutils literal"><span class="pre">&amp;</span></tt>) in
there, which had Gnus hanging forever trying to escape it.  At least
that's what looking at <tt class="docutils literal"><span class="pre">*imap-log*</span></tt> suggested.  Activating the
logging is as simple as executing <tt class="docutils literal"><span class="pre">(setq</span> <span class="pre">imap-log</span> <span class="pre">t)</span></tt>.</p>
<p>The fix: Change your mailbox's name to something without <tt class="docutils literal"><span class="pre">&amp;</span></tt> and
update the <tt class="docutils literal"><span class="pre">.newsrc.eld</span></tt> accordingly.  And wait for a proper fix.
I'm submitting a bug report now.</p>
</div>

]]></description>
   <category domain="http://danielnouri.org/blog"></category>
   <pubDate>Thu, 28 Feb 2008 21:20 GMT</pubDate>
</item>
<item>
   <title>Persistent USB disk naming in Ubuntu</title>
   <guid isPermaLink="false">linux/persistent-usb-disk-naming-in-ubuntu</guid>
   <link>http://danielnouri.org/blog/linux/persistent-usb-disk-naming-in-ubuntu.html</link>
   <description><![CDATA[

<div class="document">
<p><strong>Update</strong>: I found out that setting the label for your USB device is
the less painful way to do this, see below.</p>
<p>The naming of my USB hard disks in Ubuntu differed from time to time,
which became more and more annoying recently.  When I booted up the
system with my external hard disk attached, the disk would be mounted
as <tt class="docutils literal"><span class="pre">/media/sdb6</span></tt>.  However, when I plugged the disk in when the
system was already up and I was logged in, it would mount as
<tt class="docutils literal"><span class="pre">/media/usbdisk</span></tt>.  This was very nasty, as it broke links and
libraries of applications like <a class="reference" href="http://f-spot.org/Main_Page">F-Spot</a> and <a class="reference" href="http://www.sacredchao.net/quodlibet/">Quod Libet</a>.</p>
<p>The cure for this problem was to have proper <a class="reference" href="http://en.wikipedia.org/wiki/Fstab">/etc/fstab</a> entries for
these devices.  I found out about <a class="reference" href="http://en.wikipedia.org/wiki/Udev">udev</a>, which is the device manager
for Linux since 2.16: udev manages the device nodes in <tt class="docutils literal"><span class="pre">/dev</span></tt>.  In
addition to the usual names like <tt class="docutils literal"><span class="pre">/dev/sdb</span></tt>, udev in <a class="reference" href="http://en.wikipedia.org/wiki/Ubuntu">Edgy</a> is
configured to also create symbolic links that will never change their
name, like
<tt class="docutils literal"><span class="pre">/dev/disk/by-id/usb-WD_3200JB_External_574D414D5231343637323730-part5</span></tt>
or <tt class="docutils literal"><span class="pre">/dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0</span></tt>.
(<tt class="docutils literal"><span class="pre">/etc/udev/rules.d/65-persistent-storage.rules</span></tt> does this.)</p>
<p>Knowing this, I went and put the right paths into <tt class="docutils literal"><span class="pre">/etc/fstab</span></tt>.  The
following is an excerpt from my configuration.  I have an external
<em>WD</em> hard disk with two partitions, one <a class="reference" href="http://en.wikipedia.org/wiki/File_Allocation_Table">vfat</a> and the other <a class="reference" href="http://en.wikipedia.org/wiki/Ext3">ext3</a>.
The last entry mounts a <em>SanDisk</em> USB stick, which uses <tt class="docutils literal"><span class="pre">vfat</span></tt>
again:</p>
<pre class="literal-block">
# USB WD
/dev/disk/by-id/usb-WD_3200JB_External_574D414D5231343637323730-part5 /media/WD_3200JB-part5 ext3 auto,users,defaults 0 0
/dev/disk/by-id/usb-WD_3200JB_External_574D414D5231343637323730-part6 /media/WD_3200JB-part6 vfat rw,nosuid,nodev,quiet,shortname=mixed,auto,users,iocharset=utf8 0 0

# SanDisk
/dev/disk/by-id/usb-SanDisk_U3_Cruzer_Micro_0000060326115761-part1 /media/SanDisk_Cruzer vfat rw,nosuid,nodev,quiet,shortname=mixed,auto,users,iocharset=utf8 0 0
</pre>
<p>The <a class="reference" href="http://en.wikipedia.org/wiki/Gnome">Gnome</a> <em>Disk Mounter</em>, which I don't use, seems quite confused by
this.  However, the disks are now automatically mounted with nice
names, and I can reliably link into my external disks.</p>
<p><strong>Update</strong>: I found out that setting the label for your USB device is
the less painful way to do this.  E.g. after renaming your FAT32
device to <tt class="docutils literal"><span class="pre">MYDATA</span></tt>, Ubuntu will mount your device at
<tt class="docutils literal"><span class="pre">/media/MYDATA</span></tt>.  This page explains how to rename your device for
all kinds of filesystem types:
<a class="reference" href="https://help.ubuntu.com/community/RenameUSBDrive">https://help.ubuntu.com/community/RenameUSBDrive</a></p>
</div>

]]></description>
   <category domain="http://danielnouri.org/blog"></category>
   <pubDate>Tue, 26 Dec 2006 14:20 GMT</pubDate>
</item>
<item>
   <title>Focus follows mouse in Metacity</title>
   <guid isPermaLink="false">linux/metacity-focus-follows-mouse</guid>
   <link>http://danielnouri.org/blog/linux/metacity-focus-follows-mouse.html</link>
   <description><![CDATA[

<div class="document">
<p>A feature that I missed in <a class="reference" href="http://en.wikipedia.org/wiki/Metacity">Metacity</a> (the default Window Manager of
GNOME nowadays) since my old <a class="reference" href="http://www.fvwm.org/">FVWM</a> days is <em>focus follows mouse</em>.
This is easily configured in Metacity as I found out today:</p>
<pre class="literal-block">
gconf-editor /apps/metacity/general/focus_mode
</pre>
<p>Set this to <tt class="docutils literal"><span class="pre">sloppy</span></tt> and your windows are focused whenever your
mouse enters them.</p>
<p>While you're at it, you might want to also check <tt class="docutils literal"><span class="pre">auto_raise</span></tt> and
set <tt class="docutils literal"><span class="pre">auto_raise_delay</span></tt> to 0, so that the focused windows raise to
the front.</p>
<p>Update: Jasper just tells me that you can configure the same by going
to <em>System -&gt; Preferences -&gt; Windows</em> in the Gnome menu.</p>
</div>

]]></description>
   <category domain="http://danielnouri.org/blog"></category>
   <pubDate>Wed, 08 Nov 2006 11:39 GMT</pubDate>
</item>
</channel>
</rss>
