<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <id>http://well.com/user/tux/</id>
  <title>Joels Blog</title>
  <updated>2009-03-25T12:34:30Z</updated>
  <link rel="alternate" href="http://well.com/user/tux"/>
  <link rel="self" href="http://well.com/user/tux/blog/feed/index.xml"/>
  <author>
    <name>Joel Westerberg</name>
    <uri>http://well.com/user/tux</uri>
  </author>
  <entry>
    <id>tag:well.com/user/tux,2009-03-25:/blog/articles/xterm/</id>
    <title type="html">Nice colors in xterm</title>
    <published>2009-03-25T12:34:30Z</published>
    <updated>2009-01-07T06:51:03Z</updated>
    <link rel="alternate" href="http://well.com/user/tux/blog/articles/xterm/"/>
    <content type="html">&lt;p&gt;Here&amp;#8217;s a nice white on black color scheme for xterm, put this in your ~/.Xdefaults file&lt;/p&gt;

&lt;pre&gt;
xterm*color0:         #1a1a1a
xterm*color1:         #ba8b8b
xterm*color2:         #86af80
xterm*color3:         #c6d01e
xterm*color4:         #3c8ec4
xterm*color5:         #9a70b2
xterm*color6:         #9fc1cc
xterm*color7:         #c6c6c6
xterm*color8:         #71a3b7
xterm*color9:         #e5505f
xterm*color10:        #8cba87
xterm.color11:        #e0d95c
xterm*color12:        #5899c4
xterm.color13:        #ad73ba
xterm*color14:        #338eaa
xterm*color15:        #f7f7f2
&lt;/pre&gt;</content>
    <summary type="html">__EXCERPT__</summary>
  </entry>
  <entry>
    <id>tag:well.com/user/tux,2009-03-18:/blog/articles/debian/</id>
    <title type="html">Debian notes</title>
    <published>2009-03-18T07:34:51Z</published>
    <updated>2009-03-19T13:45:54Z</updated>
    <link rel="alternate" href="http://well.com/user/tux/blog/articles/debian/"/>
    <content type="html">&lt;p&gt;Trying to grok an unknown package management system is daunting at first. Buut when you get your bearings it starts to get easier. Having played with debian packages for a day now I feel that it&amp;#8217;s not as easy to work with as the gentoo ebuild system which I am used to, but it&amp;#8217;s a lot faster to install the packages of course.&lt;/p&gt;
&lt;p&gt;Some useful commands&lt;/p&gt;
&lt;p&gt;Downloads a source package and unpacks it:&lt;br /&gt;
apt-get source &lt;package-name&gt;&lt;/p&gt;
&lt;p&gt;Where are the binary packages kept when downloaded?&lt;br /&gt;
/var/cache/apt/archives/*.deb&lt;/p&gt;
&lt;p&gt;Unpack a .deb file:&lt;br /&gt;
ar -x *.deb&lt;/p&gt;
&lt;p&gt;Howto build a .deb package from source. Inside the main folder:&lt;br /&gt;
dpkg-buildpackage&lt;/p&gt;
&lt;p&gt;Howto build a .deb package from binary. Below the main folder&lt;br /&gt;
dpkg -b &lt;foldername&gt;&lt;/p&gt;
&lt;p&gt;Install debian package directly&lt;br /&gt;
dpkg -i package.deb&lt;/p&gt;</content>
    <summary type="html">Setting up custom debian packages for simple deployment</summary>
  </entry>
  <entry>
    <id>tag:well.com/user/tux,2009-02-14:/blog/articles/adventures-with-ruby1.9/</id>
    <title type="html">Adventures with ruby 1.9 yaml</title>
    <published>2009-02-14T11:08:02Z</published>
    <updated>2009-02-14T12:30:17Z</updated>
    <link rel="alternate" href="http://well.com/user/tux/blog/articles/adventures-with-ruby1.9/"/>
    <content type="html">&lt;p&gt;Initial stuff: all my source files are in utf-8 and generates errors&amp;#8230; what to do? add this to .profile did the trick:&lt;/p&gt;
&lt;p&gt;export &lt;span class="caps"&gt;RUBYOPT&lt;/span&gt;=&amp;#8220;-w -Ku&amp;#8221;&lt;/p&gt;</content>
    <summary type="html"></summary>
  </entry>
  <entry>
    <id>tag:well.com/user/tux,2008-10-19:/blog/articles/vserver-bash-completion/</id>
    <title type="html">Fixing bash completion for vserver</title>
    <published>2008-10-19T08:07:27Z</published>
    <updated>2008-10-19T08:14:03Z</updated>
    <link rel="alternate" href="http://well.com/user/tux/blog/articles/vserver-bash-completion/"/>
    <content type="html">&lt;p&gt;By default bash completion doesn&amp;#8217;t work for linux vserver in gentoo. On the linux vserver pages there&amp;#8217;s a bash completion script available for download but it doesn&amp;#8217;t compile. I&amp;#8217;ve put together a very simple bash completion script here that does only what I need most &amp;#8211; expand on available vservers and the safe options.&lt;/p&gt;
&lt;p&gt;On gentoo you need to emerge bash-completion first &amp;#8211; but you already knew that didn&amp;#8217;t you?&lt;/p&gt;
&lt;p&gt;Here&amp;#8217;s the source for my script /etc/bash_completion.d/vserver &lt;/p&gt;
&lt;pre&gt;
_vserver() 
{
    local cur prev opts
    COMPREPLY=()
    cur="${COMP_WORDS[COMP_CWORD]}"
    prev="${COMP_WORDS[COMP_CWORD-1]}"
    opts="enter start stop restart chkconf status exec"
	vservers=$(for x in `ls /vservers -1`; do echo ${x} ; done )

	if [[ ${prev} == "vserver" ]] ; then
        COMPREPLY=( $(compgen -W "${vservers}" -- ${cur}) )
        return 0
	else
		COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
        return 0
	fi
}

complete -F _vserver vserver
&lt;/pre&gt;</content>
    <summary type="html">By default vserver TAB doesn't do anything. It's easy to correct this with a simple script</summary>
  </entry>
  <entry>
    <id>tag:well.com/user/tux,2008-08-09:/blog/articles/eyelids-are-getting-heavier/</id>
    <title type="html">Eyelids are getting heavier</title>
    <published>2008-08-09T00:55:33Z</published>
    <updated>2008-08-09T00:58:54Z</updated>
    <link rel="alternate" href="http://well.com/user/tux/blog/articles/eyelids-are-getting-heavier/"/>
    <content type="html">&lt;p&gt;Channeling the talking moose: your eyelids are gettig heavier and heavier. You are getting sleeepy. Just want to fix the last stuff and publish this site now!&lt;/p&gt;</content>
    <summary type="html">Channeling the talking moose: your eyelids are gettig heavier and heavier. You are getting sleeepy. Just want to fix the last stuff and publish this site now!</summary>
  </entry>
</feed>
