<?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"
	>

<channel>
	<title>A Lonely Impulse</title>
	<atom:link href="http://brett.benders.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://brett.benders.net</link>
	<description>brett bender's oblogitary - all the cool kids have one...</description>
	<pubDate>Mon, 25 Aug 2008 23:14:32 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>zsh WORDCHARS</title>
		<link>http://brett.benders.net/2008/07/25/zsh-wordchars/</link>
		<comments>http://brett.benders.net/2008/07/25/zsh-wordchars/#comments</comments>
		<pubDate>Fri, 25 Jul 2008 23:29:40 +0000</pubDate>
		<dc:creator>brett</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://brett.benders.net/?p=20</guid>
		<description><![CDATA[At the shell prompt, I want to directories in a path to act like words, so that I can kill them one by one. So I added to my .zshrc

WORDCHARS="${WORDCHARS:s#/#}"

which takes the value of WORDCHARS, removes slash, and assigns back to WORDCHARS. I could also hardcode a literal value like:

WORDCHARS='*?_-.[]~=&#38;;!#$%^(){}&#60;&#62;&#8217;

but the former is self-documenting while [...]]]></description>
			<content:encoded><![CDATA[<p>At the shell prompt, I want to directories in a path to act like words, so that I can kill them one by one. So I added to my .zshrc</p>
<pre>
WORDCHARS="${WORDCHARS:s#/#}"
</pre>
<p>which takes the value of WORDCHARS, removes slash, and assigns back to WORDCHARS. I could also hardcode a literal value like:</p>
<pre>
WORDCHARS='*?_-.[]~=&amp;;!#$%^(){}&lt;&gt;&#8217;
</pre>
<p>but the former is self-documenting while the latter reads like line noise, or Perl =)</p>
<p>References:</p>
<ul>
<li><a href="http://zsh.sourceforge.net/Doc/Release/zsh_13.html#SEC52">zsh manual / expansion modifiers</a></li>
<li><a href="http://www.zsh.org/mla/users/1998/msg00725.html">zsh mailing list / definition of a word</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://brett.benders.net/2008/07/25/zsh-wordchars/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Random Wallpaper</title>
		<link>http://brett.benders.net/2008/06/25/random-wallpaper/</link>
		<comments>http://brett.benders.net/2008/06/25/random-wallpaper/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 20:39:49 +0000</pubDate>
		<dc:creator>brett</dc:creator>
		
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://brett.benders.net/?p=17</guid>
		<description><![CDATA[I was tired of staring at an LCD all day while it is sunny and blue skies outside. To tide me over until vacation, I downloaded some landscape photos and scripted my wallpaper to rotate randomly.
/home/brett/bin/random-wallpaper
#!/bin/bash
DIR=$HOME/Pictures/wallpaper
WALLPAPER=$( ( for i in `ls $DIR`; do
    echo $RANDOM $i
  done
) &#124; sort &#124; sed -r 's/^[0-9]+ //&#8217; &#124; [...]]]></description>
			<content:encoded><![CDATA[<p>I was tired of staring at an LCD all day while it is sunny and blue skies outside. To tide me over until vacation, I downloaded some landscape photos and scripted my wallpaper to rotate randomly.</p>
<p>/home/brett/bin/random-wallpaper</p>
<pre>#!/bin/bash
DIR=$HOME/Pictures/wallpaper
WALLPAPER=$( ( for i in `ls $DIR`; do
    echo $RANDOM $i
  done
) | sort | sed -r 's/^[0-9]+ //&#8217; | head -1 )
gconftool -t string -s /desktop/gnome/background/picture_filename $DIR/$WALLPAPER</pre>
<p>Crontab:</p>
<pre>*/3 * *   *   *   /home/brett/bin/random-wallpaper</pre>
<p>Credits to:</p>
<p><a href="http://hivearchive.com/2007/10/18/bash-one-liner-to-randomize-lines-in-file/">http://hivearchive.com/2007/10/18/bash-one-liner-to-randomize-lines-in-file/</a></p>
<p><a href="http://joeamined.wordpress.com/2008/02/15/automatically-changing-wallpaper-relatively-to-daytime-in-ubuntu/   ">http://joeamined.wordpress.com/2008/02/15/automatically-changing-wallpaper-relatively-to-daytime-in-ubuntu/<br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://brett.benders.net/2008/06/25/random-wallpaper/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Firefox 2 and 3 Dual Install</title>
		<link>http://brett.benders.net/2008/06/20/firefox-2-and-3-dual-install/</link>
		<comments>http://brett.benders.net/2008/06/20/firefox-2-and-3-dual-install/#comments</comments>
		<pubDate>Sat, 21 Jun 2008 01:01:00 +0000</pubDate>
		<dc:creator>brett</dc:creator>
		
		<category><![CDATA[firefox]]></category>

		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://brett.benders.net/?p=16</guid>
		<description><![CDATA[I need to test our application in our supported browsers, including both Firefox 2 and Firefox 3. Also, some of the extensions that I use don&#8217;t yet work with FF3.
We can sandbox the &#8216;foxes (and their settings, extensions) by creating distinct profiles and wrapper scripts to run each version of FF with its respective profile.
Fire [...]]]></description>
			<content:encoded><![CDATA[<p>I need to test our application in our supported browsers, including both Firefox 2 and Firefox 3. Also, some of the extensions that I use don&#8217;t yet work with FF3.</p>
<p>We can sandbox the &#8216;foxes (and their settings, extensions) by creating distinct profiles and wrapper scripts to run each version of FF with its respective profile.</p>
<p>Fire up the <a href="http://support.mozilla.com/en-US/kb/Managing+profiles#Ubuntu">Profile Manager</a>:</p>
<pre>firefox -ProfileManager</pre>
<p>and create a new profile (&#8221;ff3&#8243;)</p>
<p>For consistency&#8217;s sake, edit ~/.mozilla/firefox/profiles.ini and rename &#8220;Default&#8221; to &#8220;ff2&#8243;:</p>
<pre>[Profile0]
Name=ff2
IsRelative=1
Path=2k5iwgg1.default

[Profile1]
Name=ff3
IsRelative=1
Path=2zopbwoy.ff3</pre>
<p>Create a couple of shell scripts (ff2 and ff3):</p>
<pre>#!/bin/sh
firefox-2 -P ff2</pre>
<pre>#!/bin/sh
firefox-3.0 -P ff3</pre>
<p>and you are done. Mine live in ~/bin (which is prepended to my path), along with a symlink &#8216;firefox&#8217; pointing to ff2. Once all my must-have extensions are upgraded, I&#8217;ll change the symlink to point to ff3.</p>
]]></content:encoded>
			<wfw:commentRss>http://brett.benders.net/2008/06/20/firefox-2-and-3-dual-install/feed/</wfw:commentRss>
		</item>
		<item>
		<title>rxvt-unicode yellow box be gone</title>
		<link>http://brett.benders.net/2008/06/19/rxvt-unicode-yellow-box-be-gone/</link>
		<comments>http://brett.benders.net/2008/06/19/rxvt-unicode-yellow-box-be-gone/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 23:39:31 +0000</pubDate>
		<dc:creator>brett</dc:creator>
		
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://brett.benders.net/?p=15</guid>
		<description><![CDATA[Wilmer has the fix for rxvt-unicode popping a little yellow box full of ticky-tacky when I hit CTRL-SHIFT. Tweaked instructions, with my preferred package:
apt-get source rxvt-unicode
sudo apt-get build-dep rxvt-unicode
cd rxvt-unicode-*
perl -pi -e 's/--enable-iso14755/--disable-iso14755/g' debian/rules
dch -n 'disable iso14755'
fakeroot debian/rules binary
sudo dpkg -i ../rxvt-unicode_*.deb

]]></description>
			<content:encoded><![CDATA[<p>Wilmer <a href="http://wilmer.gaast.net/blog/archives/36-rxvt-unicode-and-ISO-14755-mode.html">has the fix</a> for rxvt-unicode popping a little yellow box full of ticky-tacky when I hit CTRL-SHIFT. Tweaked instructions, with my preferred package:</p>
<pre>apt-get source rxvt-unicode
sudo apt-get build-dep rxvt-unicode
cd rxvt-unicode-*
perl -pi -e 's/--enable-iso14755/--disable-iso14755/g' debian/rules
dch -n 'disable iso14755'
fakeroot debian/rules binary
sudo dpkg -i ../rxvt-unicode_*.deb
</pre>
]]></content:encoded>
			<wfw:commentRss>http://brett.benders.net/2008/06/19/rxvt-unicode-yellow-box-be-gone/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Ubuntu, Firefox 2, and Sun Java Plugin</title>
		<link>http://brett.benders.net/2008/06/19/ubuntu-firefox-2-and-sun-java-plugin/</link>
		<comments>http://brett.benders.net/2008/06/19/ubuntu-firefox-2-and-sun-java-plugin/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 17:55:45 +0000</pubDate>
		<dc:creator>brett</dc:creator>
		
		<category><![CDATA[ubuntu]]></category>

		<category><![CDATA[firefox]]></category>

		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://brett.benders.net/?p=14</guid>
		<description><![CDATA[Setup: Ubuntu Hardy Heron 8.04, Firefox 2
I installed the Sun Java 6 plugin via the Firefox plugin finder GUI, but applets still didn&#8217;t work. Viewing about:plugins did not list Java.
I tried a good swift kick to the package manager:

sudo aptitude install sun-java6-jre sun-java6-plugin sun-java6-fonts

Still no joy. The trick turned out to be adding a symlink [...]]]></description>
			<content:encoded><![CDATA[<p>Setup: Ubuntu Hardy Heron 8.04, Firefox 2</p>
<p>I installed the Sun Java 6 plugin via the Firefox plugin finder GUI, but applets still didn&#8217;t work. Viewing about:plugins did not list Java.</p>
<p>I tried a good swift kick to the package manager:<br />
<code><br />
sudo aptitude install sun-java6-jre sun-java6-plugin sun-java6-fonts<br />
</code></p>
<p>Still no joy. The trick turned out to be adding a symlink in /usr/lib/firefox/plugins:<br />
<code><br />
sudo ln -s /usr/lib/jvm/java-6-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/firefox/plugins<br />
</code></p>
<p>Some pages that helped:<br />
<a href="http://ubuntuforums.org/archive/index.php/t-578049.html">http://ubuntuforums.org/archive/index.php/t-578049.html</a><br />
<a href="http://www.egir.dk/phpBB3/viewtopic.php?f=17&#038;t=3758">http://www.egir.dk/phpBB3/viewtopic.php?f=17&#038;t=3758</a></p>
<p>And a related (?) bug:<br />
<a href="https://bugs.launchpad.net/ubuntu/+source/classpath/+bug/239017">https://bugs.launchpad.net/ubuntu/+source/classpath/+bug/239017</a></p>
]]></content:encoded>
			<wfw:commentRss>http://brett.benders.net/2008/06/19/ubuntu-firefox-2-and-sun-java-plugin/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
