<?xml version="1.0" encoding="iso-8859-15"?>

<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
<title type="text">Troglobit</title>
<subtitle type="html"><![CDATA[
Freedom, Software, Hacking...
]]></subtitle>
<id>http://vmlinux.org/jocke/blog/index.atom</id>
<link rel="alternate" type="text/html" href="http://vmlinux.org/jocke/blog" />
<link rel="self" type="application/atom+xml" href="http://vmlinux.org/jocke/blog/index.atom" />


<author>
<name>Joachim Nilsson</name>
<uri>http://vmlinux.org/jocke/blog/index.atom</uri>
<email>troglobit()vmlinux!org</email>
</author>
<rights>Copyright &copy; 2003-2010  Joachim Nilsson</rights>
<generator uri="http://pyblosxom.sourceforge.net/" version="1.4.3 01/10/2008">
PyBlosxom http://pyblosxom.sourceforge.net/ 1.4.3 01/10/2008
</generator>

<updated>2010-08-29T18:44:22Z</updated>
<!-- icon?  logo?  -->

<entry>
<title type="html">Finally, NetBSD Boots in KVM!</title>
<category term="/unix" />
<id>http://vmlinux.org/jocke/blog/2010/08/29/netbsd</id>
<updated>2010-08-29T18:44:22Z</updated>
<published>2010-08-29T18:44:22Z</published>
<link rel="alternate" type="text/html" href="http://vmlinux.org/jocke/blog/unix/netbsd.1024px" />
<content type="html">
Compared to OpenBSD and FreeBSD the NetBSD install was hard, really hard. It wasn&apos;t
until I stumbled across &lt;a
href=&quot;http://www.ezunix.org/index.php?title=NetBSD_5_on_KVM&quot;&gt;this&lt;/a&gt; that I managed
to convince myself to try it again.  
&lt;p&gt;
The trick seems to be to ignore as much as you can from other Internet tips.  NetBSD
runs fine in KVM, so if someone says you need to run it in Qemu mode - don&apos;t believe
the hype.  OK, in virt-manager there is no preset defaults for NetBSD, so I went with
a generic OS and tried starting the install from there.  The kernel hangs before it 
probes USB, or it segfaults.
&lt;p&gt;
What I did was to stop the guest, and in the details view I disabled ACPI and
selected the pcnet NIC instead of the default ne2k-pci.  Running the default options
in the NetBSD 5.0.2 installer, and the bootloader after install, works fine.
&lt;p&gt;
Good Luck!
</content>
</entry>

<entry>
<title type="html">Announcing Minix editline 1.14.0</title>
<category term="/hacks" />
<id>http://vmlinux.org/jocke/blog/2010/08/12/editline-1.14.0</id>
<updated>2010-08-12T16:17:09Z</updated>
<published>2010-08-12T16:17:09Z</published>
<link rel="alternate" type="text/html" href="http://vmlinux.org/jocke/blog/hacks/editline-1.14.0.1024px" />
<content type="html">
It is with great pleasure I announce the next release of the editline library by
Simmule Turner and Rich Salz!  This is a popular library, it exists in several forked
versions. This release marks the end of a huge effort where archaeological methods
have been applied to recover fixes and improvements developed independently over
several decades by the following projects: &lt;a href=&quot;http://www.h5l.org&quot;&gt;Heimdal&lt;/a&gt;,
Festival &lt;a href=&quot;http://festvox.org/festival/&quot;&gt;speech-tools&lt;/a&gt;, &lt;a
href=&quot;http://packages.qa.debian.org/e/editline.html&quot;&gt;Debian&lt;/a&gt;, and Mr.  &lt;a
href=&quot;http://www.cs.unc.edu/~tell/dist.html&quot;&gt;Steve Tell&lt;/a&gt;.

&lt;p&gt;Noteworthy changes and additions:
&lt;ul&gt;
  &lt;li&gt; The symbols &lt;tt&gt;rl_complete()&lt;/tt&gt; and &lt;tt&gt;rl_list_possib()&lt;/tt&gt; are no
  longer possible to overload as function pointers. Instead the FSF libreadline
  &lt;tt&gt;rl_set_complete_func()&lt;/tt&gt; and &lt;tt&gt;rl_set_list_possib_func()&lt;/tt&gt; API has been
  added for implementing custom completion handlers.

  &lt;li&gt; 8-bit handling now work correctly on non-utf8 terminals, including meta
  characters and key bindings.  This is actually a revert of an old broken Debian
  patch.

  &lt;li&gt; The functions &lt;tt&gt;el_bind_key()&lt;/tt&gt; and &lt;tt&gt;el_bind_key_in_metamap()&lt;/tt&gt;
  have been added thanks to the efforts of Festival speech-tools hacker Mr. Alan W. Black.

  &lt;li&gt; Support for capitalizing words (M-c), also from Mr. Alan W Black.

  &lt;li&gt; Improved FSF libreadline compatibility and signal safety fixes by Mr. Steve Tell.

  &lt;li&gt; The HUGE code cleanups are mostly courtesy of the Heimdal Project,.

  &lt;li&gt; Several more APIs for increased compatibility with FSF libreadline have also
  been added.  See the file &lt;tt&gt;include/editline.h&lt;/tt&gt; for details.
&lt;/ul&gt;

&lt;p&gt; Online GIT repository and release tarball available at the usual places:
&lt;ul&gt;                                                                                                                       
  &lt;li&gt; &lt;a href=&quot;http://git.vmlinux.org/editline.git&quot;&gt;vmlinux:editline.git&lt;/a&gt; (Main GIT)
  &lt;li&gt; &lt;a href=&quot;http://github.com/troglobit/editline&quot;&gt;github:editline.git&lt;/a&gt; (Backup)
  &lt;li&gt; &lt;a href=&quot;ftp://ftp.vmlinux.org/pub/People/jocke/editline/editline-1.14.0.tar.bz2&quot;&gt;editline-1.14.0.tar.bz2&lt;/a&gt;,
       &lt;a href=&quot;ftp://ftp.vmlinux.org/pub/People/jocke/editline/editline-1.14.0.tar.bz2.md5&quot;&gt;MD5&lt;/a&gt; (FTP)
&lt;/ul&gt;&lt;/p&gt;

&lt;p&gt; Report bugs to the email found in the &lt;a
href=&quot;ftp://vmlinux.org/pub/People/jocke/editline/README&quot;&gt;README&lt;/a&gt; file. See also
the &lt;a href=&quot;http://freshmeat.net/projects/minix-editline&quot;&gt;Freshmeat page&lt;/a&gt; for a
more consistent updates.  &lt;/p&gt;


</content>
</entry>

<entry>
<title type="html">Announcing Micro Tetris&amp;trade; 1.2.0</title>
<category term="/hacks" />
<id>http://vmlinux.org/jocke/blog/2010/08/02/tetris-1.2.0</id>
<updated>2010-08-01T22:56:06Z</updated>
<published>2010-08-01T22:56:06Z</published>
<link rel="alternate" type="text/html" href="http://vmlinux.org/jocke/blog/hacks/tetris-1.2.0.1024px" />
<content type="html">
&lt;div style=&quot;float: right; clear: left; margin: 0 0 2px 2px;&quot;&gt;
&lt;a href=&quot;/jocke/images/TetrisConstruction.jpg&quot;&gt;&lt;img src=&quot;/jocke/images/TetrisConstruction-thumb.jpg&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
New release of Micro Tetris&amp;trade;, v1.2.0, available for download now!  Noteworthy changes
and additions:
&lt;ul&gt;
  &lt;li&gt; Preview display fixes from &lt;a href=&quot;http://git.vmlinux.org/lazzer/tetris.git/&quot;&gt;Mattias Walstr&amp;ouml;m&lt;/a&gt;
  &lt;li&gt; Next level triggered after every 10 cleared lines
  &lt;li&gt; Speed increase by each level
  &lt;li&gt; Display high score at game over
  &lt;li&gt; High score recorded to save file
  &lt;li&gt; Pause key fixed, Mattias Walstr&amp;ouml;m
&lt;/ul&gt;
&lt;p&gt; Online GIT repository and release tarball available at the usual places:
&lt;ul&gt;                                                                                                                       
  &lt;li&gt; &lt;a href=&quot;http://git.vmlinux.org/tetris.git&quot;&gt;vmlinux:tetris.git&lt;/a&gt; (Main GIT)
  &lt;li&gt; &lt;a href=&quot;http://github.com/troglobit/tetris&quot;&gt;github:tetris.git&lt;/a&gt; (Backup)
  &lt;li&gt; &lt;a href=&quot;ftp://ftp.vmlinux.org/pub/People/jocke/tetris/tetris-1.2.0.tar.bz2&quot;&gt;tetris-1.2.0.tar.bz2&lt;/a&gt;,
       &lt;a href=&quot;ftp://ftp.vmlinux.org/pub/People/jocke/tetris/tetris-1.2.0.tar.bz2.md5&quot;&gt;MD5&lt;/a&gt; (FTP)
&lt;/ul&gt;

&lt;/p&gt;&lt;p&gt;See also the &lt;a href=&quot;http://freshmeat.net/projects/micro-tetris&quot;&gt;Freshmeat
page&lt;/a&gt; for a more consistent updates.
&lt;/p&gt;
</content>
</entry>

<entry>
<title type="html">Minix editline moves to GIT</title>
<category term="/hacks" />
<id>http://vmlinux.org/jocke/blog/2010/07/19/editline-moves-to-git</id>
<updated>2010-07-19T00:40:00Z</updated>
<published>2010-07-19T00:40:00Z</published>
<link rel="alternate" type="text/html" href="http://vmlinux.org/jocke/blog/hacks/editline-moves-to-git.1024px" />
<content type="html">
A small heads-up, I&apos;ve migrated the Minix editline project from Bazaar to GIT.  The
new URL for keeping tabs on your favourite free readline() clone is:
&lt;ul&gt;
   &lt;a href=&quot;http://git.vmlinux.org/editline.git/&quot;&gt;http://git.vmlinux.org/editline.git/&lt;/a&gt;
&lt;/ul&gt;

&lt;p&gt; I&apos;m currently working on fixing up the tree and doing some house cleaning -
including making more stuff configurable - before releasing a 1.14.0 later on.

&lt;p&gt; One such item is the integration of libtool with our autoconf friends.  This
should make it lot more portable (again) and also help smooth a merge with other
sources for this library.  More on that as well, later, hopefully.

</content>
</entry>

<entry>
<title type="html">Git Quickie</title>
<category term="/programming" />
<id>http://vmlinux.org/jocke/blog/2010/07/13/git-quickie</id>
<updated>2010-07-13T18:45:07Z</updated>
<published>2010-07-13T18:45:07Z</published>
<link rel="alternate" type="text/html" href="http://vmlinux.org/jocke/blog/programming/git-quickie.1024px" />
<content type="html">
This is a document I intend to maintain for my own purposes.  It serves like a quick
reminder to the steps I need to take when creating and working with git repositories.

&lt;p&gt;First setup a bare repository on the server.
&lt;pre&gt;
$ git --bare init projectX.git
Initialized empty Git repository in /pub/git/projectX.git/
&lt;/pre&gt;

&lt;p&gt;Set one-liner description, visible in gitweb.
&lt;pre&gt;
$ echo &quot;Secret Project-X use ROT13 to decode all source files&quot; &gt;projectX.git/description
&lt;/pre&gt;

&lt;p&gt; Setup a post-update hook so that the server repo is update automatically when you push to
it.
&lt;pre&gt;
$ cp &lt;a href=&quot;/joachim/programming/post-update&quot;&gt;~/public_html/programming/post-update&lt;/a&gt; projectX.git/hooks/
&lt;/pre&gt;

&lt;p&gt; Change how the &quot;Owner&quot; field in gitweb is displayed to include an obfuscated email address.&lt;br&gt;
$ vi projectX.git/config
&lt;pre&gt;
[gitweb]
        owner = &quot;Joachim Nilsson &amp;lt;troglobit()vmlinux!org&amp;gt;&quot;
&lt;/pre&gt;

&lt;p&gt; These steps have become so common to me that I&apos;ve setup a &lt;a href=&quot;/joachim/programming/create-git-repo.sh&quot;&gt;script
to create server side git repositories&lt;/a&gt;.

&lt;p&gt;You can now push to the server, after having setup remote location on the client.
&lt;pre&gt;
$ git remote add origin ssh://login@example.com/pub/git/projextX.git
$ git push origin master
$ git push --tags
&lt;/pre&gt;
</content>
</entry>

<entry>
<title type="html">Simple Guide to Converting from Bazaar to GIT</title>
<category term="/programming" />
<id>http://vmlinux.org/jocke/blog/2010/07/13/convert-bzr-to-git</id>
<updated>2010-07-12T23:56:58Z</updated>
<published>2010-07-12T23:56:58Z</published>
<link rel="alternate" type="text/html" href="http://vmlinux.org/jocke/blog/programming/convert-bzr-to-git.1024px" />
<content type="html">
You need git, and bazaar obviously.  Also install bzr-fastimport, it contains the
export plugin as well.  The rest is a rip off from the folloing URL: &lt;a
href=&quot;http://fthieme.net/en/drupal6/node/77&quot;&gt;http://fthieme.net/en/drupal6/node/77&lt;/a&gt;.

&lt;pre&gt;
git init project.git
cd project.git
bzr fast-export --export-marks=.git/bzr.mark ~/project.bzr | git fast-import --export-marks=.git/git.mark
&lt;/pre&gt;

&lt;p&gt; That worked for me.  The output will likely be something like this:

&lt;pre&gt;
01:41:19 Calculating the revisions to include ...
01:41:19 Starting export of 33 revisions ...
01:41:20 Exported 33 revisions in 0:00:01
git-fast-import statistics:
---------------------------------------------------------------------
Alloc&apos;d objects:       5000
Total objects:          267 (         0 duplicates                  )
      blobs  :          158 (         0 duplicates         57 deltas)
      trees  :           76 (         0 duplicates         55 deltas)
      commits:           33 (         0 duplicates          0 deltas)
      tags   :            0 (         0 duplicates          0 deltas)
Total branches:          10 (         1 loads     )
      marks:           1024 (        33 unique    )
      atoms:             38
Memory total:          2344 KiB
       pools:          2110 KiB
     objects:           234 KiB
---------------------------------------------------------------------
pack_report: getpagesize()            =       4096
pack_report: core.packedGitWindowSize = 1073741824
pack_report: core.packedGitLimit      = 8589934592
pack_report: pack_used_ctr            =        267
pack_report: pack_mmap_calls          =         73
pack_report: pack_open_windows        =          1 /          1
pack_report: pack_mapped              =     977484 /     977484
---------------------------------------------------------------------
&lt;/pre&gt;

&lt;p&gt; Now just do a simple &lt;tt&gt;&quot;git checkout master&quot;&lt;/tt&gt; to get started working again.
</content>
</entry>

<entry>
<title type="html">Syntax Highlighting in less</title>
<category term="/unix" />
<id>http://vmlinux.org/jocke/blog/2010/05/09/lessfilter</id>
<updated>2010-05-09T17:53:00Z</updated>
<published>2010-05-09T17:53:00Z</published>
<link rel="alternate" type="text/html" href="http://vmlinux.org/jocke/blog/unix/lessfilter.1024px" />
<content type="html">
&lt;div style=&quot;float: right; clear: left; margin: 0 0 2px 2px;&quot;&gt;
&lt;a href=&quot;/jocke/images/lessfilter.png&quot;&gt;&lt;img src=&quot;/jocke/images/lessfilter-thumb.png&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
Yes, it&apos;s certainly possible and source code becomes so much easier to read.
Try it out by downloading my &lt;a href=&quot;/jocke/dot.lessfilter&quot;&gt;.lessfilter&lt;/a&gt;, save
it as &lt;tt&gt;~/.lessfilter&lt;/tt&gt; in your $HOME.

&lt;p&gt; Then try it out on a C source file: &lt;tt&gt;less -R myfile.c&lt;/tt&gt;, soon you
will probably add a line &lt;tt&gt;alias less=&quot;less -R&quot;&lt;/tt&gt; to your &lt;tt&gt;~/.bash_aliases&lt;/tt&gt;
file. :-)
&lt;/p&gt;
</content>
</entry>

<entry>
<title type="html">HowTo Move Window Controls Back to the Right Side</title>
<category term="/ubuntu" />
<id>http://vmlinux.org/jocke/blog/2010/05/01/move-window-controls</id>
<updated>2010-05-01T14:46:53Z</updated>
<published>2010-05-01T14:46:53Z</published>
<link rel="alternate" type="text/html" href="http://vmlinux.org/jocke/blog/ubuntu/move-window-controls.1024px" />
<content type="html">
When you&apos;ve installed Ubuntu 10.04 you might want to have the window controls back to
the right side, where you&apos;re used to having them.  Use the following simple command:
&lt;pre&gt;
   gconftool-2 --set /apps/metacity/general/button_layout --type string &quot;menu:minimize,maximize,close&quot;
&lt;/pre&gt;
</content>
</entry>

<entry>
<title type="html">Best. Programming. Font. Ever.</title>
<category term="/programming" />
<id>http://vmlinux.org/jocke/blog/2010/04/26/inconsolata</id>
<updated>2010-04-26T20:44:17Z</updated>
<published>2010-04-26T20:44:17Z</published>
<link rel="alternate" type="text/html" href="http://vmlinux.org/jocke/blog/programming/inconsolata.1024px" />
<content type="html">
This is not only a reminder to myself, it is appraisal to the probably best
programming font ever: &lt;a
href=&quot;http://levien.com/type/myfonts/inconsolata.html&quot;&gt;Inconsolata&lt;/a&gt;.  Thank you Mr
Raph Levien!

&lt;p&gt; On the previous laptop I used &lt;a
href=&quot;http://www.tobiasjung.net/profont/&quot;&gt;ProFont&lt;/a&gt; quite extensively, but its
screen was only 1280x800, on the new laptop I have 1680x1050 and ProFont just got too
small for my aging eyes.
&lt;/p&gt;

&lt;p&gt; For more tips on fonts, see &lt;a
href=&quot;http://hivelogic.com/articles/top-10-programming-fonts&quot;&gt;Top-10 Programming
Fonts&lt;/a&gt; and &lt;a
href=&quot;http://keithdevens.com/wiki/ProgrammerFonts&quot;&gt;KeithDevens.com&lt;/a&gt;.
&lt;/p&gt;
</content>
</entry>

<entry>
<title type="html">HowTo Hide Window Titlebar on Maximized Windows</title>
<category term="/gnome" />
<id>http://vmlinux.org/jocke/blog/2010/04/18/hide-decoration-on-maximize</id>
<updated>2010-04-17T22:11:47Z</updated>
<published>2010-04-17T22:11:47Z</published>
<link rel="alternate" type="text/html" href="http://vmlinux.org/jocke/blog/gnome/hide-decoration-on-maximize.1024px" />
<content type="html">
&lt;div style=&quot;float: right; clear: left; margin: 0 0 2px 2px;&quot;&gt;
&lt;a href=&quot;/jocke/images/compiz-window-decoration.jpg&quot;&gt;&lt;img src=&quot;/jocke/images/compiz-window-decoration-thumb.jpg&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;

This is a &quot;reblog&quot; of another &lt;a href=&quot;http://jaket.is-a-geek.com/blog/linux/remove-titlebar-on-maximized-windows-with-compiz&quot;&gt;excellent post&lt;/a&gt;.  

&lt;ul&gt;
  &lt;li&gt; Open the Compiz config panel: either using the terminal &quot;ccsm&quot; or from the Gnome menu: System&amp;rarr;Preferences&amp;rarr;&lt;a
  href=&quot;apt://compizconfig-settings-manager&quot;&gt;CompizConfig Settings Manager&lt;/a&gt;
  &lt;li&gt; Go to &quot;Window Decorations&quot;, in Category Effects
  &lt;li&gt; On the penultimate line; &quot;Decoration Windows&quot;,  the default is &quot;any&quot;, meaning all windows have a titlebar
  &lt;li&gt; Replace &quot;any&quot; with &quot;!state=maxvert&quot;
&lt;/ul&gt;

</content>
</entry>
</feed>
