<?xml version="1.0"?>
<!-- name="generator" content="blosxom/2.0" -->
<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" "http://my.netscape.com/publish/formats/rss-0.91.dtd">

<rss version="0.91">
  <channel>
    <title>Joachim Nilsson   </title>
    <link>http://vmlinux.org/jocke/cgi-bin/blosxom.cgi</link>
    <description>The weblog of Joachim Nilsson.</description>
    <language>en</language>

  <item>
    <title>Missing Sound in Firefox?</title>
    <link>http://vmlinux.org/jocke/cgi-bin/blosxom.cgi/2008/07/14#missing-sound-in-firefox</link>
    <description>
In Ubuntu 8.04 I recently discovered that you need to install the 
&lt;a href=&quot;apt://libflashsupport&quot;&gt;libflashsupport&lt;/a&gt; package if you
get no sound in Firefox while running flash application/video.
Oddly enough this is not a &quot;required&quot; or &quot;supported&quot; package in
Ubuntu proper.
</description>
  </item>
  <item>
    <title>Regexp replace in many files		&lt;!-- -*-HTML-*- --&gt;</title>
    <link>http://vmlinux.org/jocke/cgi-bin/blosxom.cgi/2008/07/13#regexxer</link>
    <description>
I just have to blog about this exceptional tool I just found.  It is
called &lt;a href=&quot;apt://regexxer&quot;&gt;regexxer&lt;/a&gt; and is a tool in the true
UNIX spirit &amp;mdash; it does one job only, and does it well.</description>
  </item>
  <item>
    <title>Minix editline v0.2.1</title>
    <link>http://vmlinux.org/jocke/cgi-bin/blosxom.cgi/2008/06/09#minix-editline-0.2.1</link>
    <description>
The v0.2.0 version included some Debian patches, tcgetattr() and a
batch mode (when reading from file) line reader.  This release fixes a
bug in the Debian patch that caused the batch mode version of
readline() to actually truncate lines longer than 64 chars.
&lt;p&gt;
Get it from the usual FTP location:
&lt;ul&gt;
&lt;a
href=&quot;http://ftp.vmlinux.org/pub/People/jocke/minix-editline/&quot;&gt;http://ftp.vmlinux.org/pub/People/jocke/minix-editline/&lt;/a&gt;
&lt;/ul&gt;</description>
  </item>
  <item>
    <title>Minix editline v0.1.4</title>
    <link>http://vmlinux.org/jocke/cgi-bin/blosxom.cgi/2008/06/09#minix-editline-0.1.4</link>
    <description>
Another day another release, I guess. :-)
&lt;p&gt;
Lots of small fixes -- it can now be cross-built for Arm (Xscale) without
any serious warnings.  Get it from the usual FTP location:
&lt;ul&gt;
&lt;a href=&quot;http://ftp.vmlinux.org/pub/People/jocke/minix-editline/&quot;&gt;http://ftp.vmlinux.org/pub/People/jocke/minix-editline/&lt;/a&gt;
&lt;/ul&gt;
</description>
  </item>
  <item>
    <title>Minix editline v0.1.1</title>
    <link>http://vmlinux.org/jocke/cgi-bin/blosxom.cgi/2008/06/08#minix-editline-0.1.1</link>
    <description>
Hot on the heels of the first one, only minor build fixes but this
one should actually be usable by others.  Now installs both library,
include file and man page into the given --prefix.
&lt;ul&gt;
&lt;a href=&quot;http://ftp.vmlinux.org/pub/People/jocke/minix-editline/&quot;&gt;http://ftp.vmlinux.org/pub/People/jocke/minix-editline/&lt;/a&gt;
&lt;/ul&gt;
</description>
  </item>
  <item>
    <title>Minix editline v0.1.0</title>
    <link>http://vmlinux.org/jocke/cgi-bin/blosxom.cgi/2008/06/07#minix-editline-0.1.0</link>
    <description>
&lt;p&gt; I've been looking long and hard for a small and useful GNU
readline replacement.  Oddly enough, all the time I was looking for
one I never even once considered looking at the &lt;a
href=&quot;http://www.minix3.org&quot;&gt;Minix&lt;/a&gt; sources!

&lt;p&gt; Currently I'm using the &lt;a href=&quot;http://www.netbsd.org&quot;&gt;NetBSD&lt;/a&gt;
(readline compatible) &lt;a href=&quot;http://thrysoee.dk/editline/&quot;&gt;editline
derivative&lt;/a&gt; from &lt;a href=&quot;http://thrysoee.dk&quot;&gt;Jess Thrysoee&lt;/a&gt;,
but it requires ncurses, which is huge!

&lt;p&gt; All I really wanted was a bare bones readline() suitable for small
embedded systems.  One which could record history and preferably, but
not required to, support completion.

&lt;p&gt; OK, so yesterday I found the Minix editline implementation, written
years ago by Simmule Turner and Rich Salz.  My hat is off to you guys,
you rock!

&lt;p&gt; Here's my first packaged version for Linux:
&lt;ul&gt;
   &lt;a href=&quot;http://ftp.vmlinux.org/pub/People/jocke/minix-editline/&quot;&gt;
http://ftp.vmlinux.org/pub/People/jocke/minix-editline/&lt;/a&gt;
&lt;/ul&gt;

&lt;p&gt; All I have done, so far, is to move around the files a bit and add
the standard GNU configure and build system. (&lt;a
href=&quot;http://mij.oltrelinux.com/devel/autoconf-automake/&quot;&gt;Intro
here&lt;/a&gt;).  It now builds and runs perfectly on my laptop, next step
is to cross-build it for a couple of embedded ARM targets.

&lt;p&gt; I do all development using &lt;a href=&quot;http://www.bazaar-vcs.org&quot;&gt;GNU
Bazaar&lt;/a&gt;.  If you want to join in, then branch from the following
public URL:
&lt;ul&gt;
   &lt;a href=&quot;http://vmlinux.org/jocke/bzr/minix-editline&quot;&gt;bzr branch
http://vmlinux.org/jocke/bzr/minix-editline&lt;/a&gt;
&lt;/ul&gt;

&lt;p&gt; Patches and ideas are welcome!


</description>
  </item>
  <item>
    <title>Enterprise Emacs</title>
    <link>http://vmlinux.org/jocke/cgi-bin/blosxom.cgi/2008/02/24#EnterpriseEmacs</link>
    <description>
&lt;p&gt; Many years ago I discovered the beauty in a beast called
 &lt;a href=&quot;http://www.gnu.org/software/emacs/&quot;&gt;Emacs&lt;/a&gt;.  I am
actually a frequent user of both Emacs
and &lt;a href=&quot;http://www.vim.org&quot;&gt;VIM&lt;/a&gt;, but I firmly belive in the
notion
of &lt;a href=&quot;http://pragmaticprogrammer.com/the-pragmatic-programmer/extracts/tips&quot;&gt;learning
one editor well&lt;/a&gt;.  It took me several years to get to know it well,
but it was all worth it!
&lt;/p&gt;

&lt;p&gt; This is the first tale in a series of entries about my thoughts and
ideas about something I would like to call Enterprise Emacs.
Enterprise?  Yes, everything these days is enterprise this and
enterprise that, stick some glue on it and you are enterprise ready!
Let me give you some glue...
&lt;/p&gt;

&lt;p&gt; At many jobs I have had people have looked over my shoulder and
said; &quot;Oh, Emacs.  Yeah I used that ages ago when I was working on
UNIX, is it still C-x M-v...?&quot;.  Of course, I say, because it still
is.  They usually continue; &quot;Well, I left it because it was too hard
to use...&quot;.
&lt;/p&gt;
&lt;p&gt; Until now I have not really had a good reply &amp;mdash; because I
understand these people.  Emacs can be really counter intuitive and an
outright pain in the **** to use.  That is my gripe and I will use
this blog to present the small things I have done to make Emacs more
user friendly.
&lt;/p&gt;
&lt;p&gt; I find it a shame that still today, after so many &lt;em&gt;decades&lt;/em&gt;
(literally!)  there are no sane defaults setup &amp;mdash; I have seen
something in &lt;a href=&quot;http://ntemacs.sourceforge.net/&quot;&gt;Win32-Emacs&lt;/a&gt;
that resembled what I would like to have &amp;mdash; a sort of use cases
possible to chose from.  Why not have that on the GNU/Linux versions as
well?
&lt;/p&gt;

&lt;p&gt; OK, so what is it that I want by default?  Well, to me it is, at
the very least, the following really obvious things:
&lt;/p&gt;

&lt;p&gt;
&lt;ul&gt;
  &lt;li&gt; Scrollbar on the &lt;em&gt;right&lt;/em&gt;!
  &lt;li&gt; A &lt;em&gt;visible&lt;/em&gt; marked region... come on!
  &lt;li&gt; Marking text with shift + arrow keys, somewhat intuitive
  &lt;li&gt; Syntax highlighting!
  &lt;li&gt; A cursor that &lt;em&gt;blinks&lt;/em&gt; so I can find it!
  &lt;li&gt; A status line displaying both line and column of my cursor
  &lt;li&gt; Continue at the file and position where I left off when I
  closed Emacs.
  &lt;li&gt; Shared clipboard with other applications!
&lt;/ul&gt;
&lt;/p&gt;

&lt;p&gt; Most of these settings today have a graphical menu called &quot;Options&quot;,
where you can actually click and save.  So those tiny things are fixed
in the latest Emacs versions.  Wow...
&lt;/p&gt;

&lt;p&gt; In the coming months I will present some useful tips from my bag of
tricks. Including, but not limited to:
&lt;/p&gt;

&lt;p&gt;
&lt;ul&gt;
  &lt;li&gt; Auto-adjust as you type.
  &lt;li&gt; Auto-spell as you type, text and code
  &lt;li&gt; Auto-complete words and function/method names
  &lt;li&gt; A solution to: &quot;Where the h-ll is that function?&quot;
  &lt;li&gt; Debugging from inside Emacs, like an IDE!
  &lt;li&gt; Windows-like marking, with Ctrl-x, Ctrl-v and Ctrl-v
&lt;/ul&gt;
&lt;/p&gt;

&lt;p&gt; Plus the usual Emacs features that users of Microsoft products may
not have ever known.  To mention a few: complete indentation engine,
with several predefined indentation modes.  Built-in calculator
(converts between bases!)
&lt;/p&gt;

&lt;p&gt; The first tip is Emacs-23 with, grab on to something, font
anti-aliasing!  Yes, it's still an experimental feature, and if
you did not already know this, &quot;experimental&quot; in free/open source is
often quite stable.  I have used it daily for &gt;6 months and it has
crashed on me only once.
&lt;/p&gt;

&lt;p&gt;
&lt;ul&gt;
 &lt;li&gt; &lt;a href=&quot;http://peadrop.com/blog/2007/01/06/pretty-emacs/&quot;&gt;Ubuntu&lt;/a&gt;
 &lt;li&gt; &lt;a href=&quot;http://emacs.orebokech.com/&quot;&gt;Debian&lt;/a&gt;
&lt;/ul&gt;
&lt;/p&gt;

&lt;p&gt; Start off by installing it and discover the Options menu.  Then
return to this blog and I will have the next installment ready.
&lt;/p&gt;</description>
  </item>
  <item>
    <title>Suspend/Resume Nightmare on Ubuntu </title>
    <link>http://vmlinux.org/jocke/cgi-bin/blosxom.cgi/2008/02/23#resume-hell</link>
    <description>
I've had my ThinkPad T43 for a while now and I'm really pleased with it,
everything just works!  It took some pleading and, I admit, begging to
persuade my boss and the IT department to buy it since they usually only
buy from Dell or HP.  This was mainly due to care packs and payment plans
that these suppliers offer companies.  My ThinkPad they had to actually
pay for straight up.  So if I were a Lenovo sales person, that was something
I would fix to boost my sales.
&lt;p&gt;
This post is however not about sales, brands of laptops or how the cat
ate my homework ... well, OK, almost.  Ubuntu/Gnome ate my resume!
&lt;p&gt;
When I initially installed the laptop, early 2006, I went with Ubuntu
5.10.  Ubuntu is great Linux dist! Ubuntu is to Debian what Mandrake
was to RedHat in the beginning: RedHat + all the tweaks you usually
had to apply.
&lt;p&gt;
I remember the first install, it was a Breeze!  All features and extras
of the laptop was of course not working so after some digging I found
a few pages detailing what to do to get things like susped, hibernate
and such working.  A couple of hours later everything was working! Cool, 
that had to be the first computer where I actually bothered setting it
all up.
&lt;p&gt;
Now, two years later I run 7.10 and I am less than happy.  All upgrades
have made this laptop a complete mess.  Each upgrade has failed to 
integrate the necessary changes I made and simply installed the new
default settings from each package. OK, I can live with that.  But I was
starting to really miss having no suspend, so the last four months I have
been working on fixing it all again.
&lt;p&gt;
It turns out that if I run the script &lt;tt&gt;/etc/acpi/suspend.sh&lt;/tt&gt; manually
from the prompt suspend &lt;em&gt;and&lt;/em&gt; resume works fine, even with X.  But
when I press Fn-F4 from within X or select &quot;Suspend&quot; from the Gnome &quot;logout&quot;
menu the machine happily goes to sleep but always fails at resume.  I always
get a black screen!
&lt;p&gt;
Why is it so complicated?  I really don't understand.  What is it doing?
&lt;p&gt;
OK, so I started digging.  The Fn-F4 button didn't work in the console so
that seemed like a first thing to investigate.  I started acpi_listen
and pressed Fn-F4, bingo!  It returned a key press.  A grep later and I
had found it in /etc/acpi/events/ibm-sleepbtn, alright!  Simple syntax,
seems it looks for the ThinkPad sleep button and then sends another new
combination &lt;tt&gt;$KEY_SLEEP&lt;/tt&gt;, wtf?
&lt;p&gt;
I changed the action to call &lt;tt&gt;/etc/acpi/sleep.sh&lt;/tt&gt;, restarted the
ACPI stuff and, yes it works!  At least from the console, not from X/Gnome.
Aha, so we have a Gnome app that does magic things, HAL + gnome-power-manager.
&lt;p&gt;
I didn't get any further. Removing gnome-power-manager fixed my problem,
I can now press Fn-F4 from Gnome, close the lid, come back the next morning
and sucessfully resume when opening the lid again.
&lt;p&gt;
So, the question is, wtf is gnome-power-manager doing and why do I have
to learn this stuff all over again every time I upgrade?
</description>
  </item>
  <item>
    <title>Bzrweb 0.1.2 Released</title>
    <link>http://vmlinux.org/jocke/cgi-bin/blosxom.cgi/2007/07/31#bzrweb-0.1.2</link>
    <description>
The end of my own &quot;summer of code&quot; is here.  Seriously, this summer I
took it upon myself to clean up my act and move whole heartedly to the
&lt;a href=&quot;http://www.bazaar-vcs.org/&quot;&gt;Bazaar&lt;/a&gt; version control system
for &lt;a href=&quot;/jocke/bzr/&quot;&gt;my private projects&lt;/a&gt;.  Needless to say, I
didn't get far.

&lt;p&gt; Being quite lazy I haven't upgraded this server yet to the latest
shiny Debian 4.0.  This made it a bit hard to setup the new shiny &lt;a
href=&quot;http://www.lag.net/loggerhead/&quot;&gt;Loggerhead web gui&lt;/a&gt; (see it
in action &lt;a
href=&quot;http://codebrowse.launchpad.net/~mwhudson/loggerhead/production/changes&quot;&gt;here&lt;/a&gt;)
for Bazaar -- so instead I started fixing up the &lt;a
href=&quot;http://mccormick.cx/dev/bzrweb/&quot;&gt;old bzrweb&lt;/a&gt; that I already
had setup a few years ago.

&lt;p&gt; I'm new to Python, but, as I said, I'm quite lazy and Python
seemed to suit me perfectly.  Whipping up Bzrweb to support the bzr
0.15 I had on my laptop (Ubuntu 7.04) was just enough to fiddle with
in the warm summer evenings of my vacation.  Now I find myself really
enjoying Python. :-)

&lt;p&gt; So I decided to try and take up maintainership of Bzrweb.  I like
it for its simplicity and small list of dependencies (only Python
2.4).  Which is something I will honor and continue to evolve.

&lt;p&gt; Oh well, &lt;a href=&quot;ftp://vmlinux.org/pub/bzrweb/&quot;&gt;here it is&lt;/a&gt;:
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;ftp://vmlinux.org/pub/bzrweb/bzrweb-0.1.2.tar.gz&quot;&gt;bzrweb-0.1.2.tar.gz&lt;/a&gt;
  &lt;li&gt;&lt;a href=&quot;ftp://vmlinux.org/pub/bzrweb/bzrweb-0.1.2.tar.gz.md5sum&quot;&gt;md5sum&lt;/a&gt;
  &lt;li&gt;Release Notes: &lt;a href=&quot;ftp://vmlinux.org/pub/bzrweb/ReleaseNotes-0.1.2.txt&quot;&gt;[TXT]&lt;/a&gt;
  &lt;a href=&quot;ftp://vmlinux.org/pub/bzrweb/ReleaseNotes-0.1.2.pdf&quot;&gt;[PDF]&lt;/a&gt; 
&lt;/ul&gt;

&lt;p&gt; No GPG signing yet, I've yet to figure out how GPG works, again.

&lt;p&gt; Bug reports can be sent to me directly, see my address in the
tarball or &lt;a href=&quot;/jocke/bzr/&quot;&gt;online&lt;/a&gt;.
</description>
  </item>
  <item>
    <title>Netapplet Patchwork</title>
    <link>http://vmlinux.org/jocke/cgi-bin/blosxom.cgi/2007/07/12#netapplet</link>
    <description>
I think I've finally done it -- achieved my ultimate goal of combining
the awesome powers of the Debian &lt;tt&gt;/etc/network/interfaces&lt;/tt&gt; file
with guessnet, wpa_supplicant, ifplugd and now also with netapplet!

&lt;p&gt; I've been looking for a way to just point-and-click to select a
different access point, both at home and at work.  To that end I have
a pretty advanced interfaces file that automatically detects where I
am, what I am connected with (cable/wireless) and then, like magic,
sets it all up.  

&lt;p&gt; Several times now I have tried, really hard, to get used to and
live my life with &lt;a
href=&quot;http://www.gnome.org/projects/NetworkManager/&quot;&gt;Network
Manager&lt;/a&gt;, but it's just plain impossible.  It still doesn't
integrate well with Debian ifupdown et consortes and until now I've
been using ifup to select different wireless mappings:

&lt;pre&gt;
$ sudo ifdown eth2; sudo ifup eth2=WLAN
Password: ***********
[Use crappy work AP to access VPN tunnel]
$ sudo ifdown eth2; sudo ifup eth2=NETLET
Password: ***********
[Use family WRT54GL access point]
&lt;/pre&gt;

&lt;p&gt; For the last couple of days I've been looking into getting the old
(obsoleted?) Netapplet from Novell.  Since I'm a Ubuntu user I'm using
the Debian patched-up version by Matthew Garrett (thanks!).  I
remember using it a couple of years back, at that time I think it
worked but now it didn't -- not well at least.  I found several bugs
and quirks that I have now fixed and published in my own &quot;repository&quot;.

&lt;p&gt; I have published everything as a Bazaar branch, using one
changeset per patch (small patches), at &lt;a
href=&quot;/jocke/bzr/netapplet-1.0.8/&quot;&gt;http://vmlinux.org/jocke/bzr/netapplet-1.0.8&lt;/a&gt;,
which can be viewed &lt;a href=&quot;http://vmlinux.org/jocke/bzr/&quot;&gt;here&lt;/a&gt;
using bzrweb.
</description>
  </item>
  </channel>
</rss>