<?xml version="1.0" encoding="UTF-8" ?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc=" http://purl.org/dc/elements/1.1/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>briancarper.net (λ) (Tag: Gentoo)</title><link>http://briancarper.net/tag/151/gentoo</link><description>Some guy's blog about programming and Linux and cows.</description><item><title>VMware: What's in a name?</title><link>http://briancarper.net/blog/vmware-whats-in-a-name</link><guid>http://briancarper.net/blog/vmware-whats-in-a-name</guid><pubDate>Thu, 26 Nov 2009 22:05:01 -0800</pubDate><description>&lt;p&gt;&lt;a href=&quot;http://www.vmware.com/&quot;&gt;VMware&lt;/a&gt; never ceases to confuse me.  Not the program, which is a pretty good piece of software.  Just the name of everything.  Look at this &lt;a href=&quot;http://en.wikipedia.org/wiki/List_of_VMware_software&quot;&gt;list of VMware software&lt;/a&gt;; can you figure out what any of those things are via their names?  The VMware official site is no less confusing.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/random/vmware.png&quot; alt=&quot;VMware&quot; title=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Hilariously, all of these things seem to be named different things than a year or two ago when last I tried to install VMware.  It seems this company, like many others, enjoys renaming everything at random, just to keep you on your toes.&lt;/p&gt;

&lt;!--more It gets worse--&gt;

&lt;p&gt;If you search for &lt;code&gt;vmware&lt;/code&gt; in Gentoo you get these results, among others:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;app-emulation/vmware-dsp
app-emulation/vmware-gsx-console
app-emulation/vmware-modules
app-emulation/vmware-player
app-emulation/vmware-server
app-emulation/vmware-server-console
app-emulation/vmware-view-open-client
app-emulation/vmware-vix
app-emulation/vmware-workstation
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The descriptions are wonderful:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Emulate a complete PC on your PC without the usual performance overhead of most emulators
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;In some cases, multiple packages have the exact same copy/pasted description, which is awesome.  But maybe the Gentoo devs couldn't figure out what any of these things are either.&lt;/p&gt;

&lt;p&gt;After some trial-and-error I narrowed it down to &lt;code&gt;vmware-server&lt;/code&gt;, &lt;code&gt;vmware-player&lt;/code&gt; and &lt;code&gt;vmware-workstation&lt;/code&gt;.  I &lt;em&gt;think&lt;/em&gt; &lt;code&gt;vmware-workstation&lt;/code&gt; is the non-free one, so that narrowed it down to the other two.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;vmware-server&lt;/code&gt; required me to register at the VMware site and download something myself, after giving my name and shoe size and blood type to VMware and registering, then clicking a download link in an email.  Then &lt;code&gt;vmware-server&lt;/code&gt; installed via Portage OK.  But it comes with a horrible web-only interface and the OS runs in a browser plugin.  This crashed hard and often.  I'd like a standalone client please.&lt;/p&gt;

&lt;p&gt;There's &lt;code&gt;vmware-server-console&lt;/code&gt; in Gentoo which sounds like it should let you connect to &lt;code&gt;vmware-server&lt;/code&gt;, but ha ha, no, it doesn't.  At least not the versions I ended up with via Portage.  Then I read somewhere that you can't use VMware Server Console to connect to VMware Server 2.0, it only works with earlier versions.  I think?  I don't even know if this is true, all I know is &lt;code&gt;vmware-server-console&lt;/code&gt; froze or crashed no matter what I tried.&lt;/p&gt;

&lt;p&gt;I read on some random mailing list that you can use something called &quot;&lt;strong&gt;VMware Infrastructure Client&lt;/strong&gt;&quot; to connect to VMware Server, but I couldn't for the life of me determine what this is or where to get it.&lt;/p&gt;

&lt;p&gt;So I uninstalled &lt;code&gt;vmware-server&lt;/code&gt;, made sure to &lt;code&gt;rm -rf /etc/vmware /opt/vmware /var/lib/vmware&lt;/code&gt; first, and then installed &lt;code&gt;vmware-player&lt;/code&gt;.  This opened in a GTK2 GUI, which is what I wanted to begin with.  But I couldn't create a new image.  I could only open existing ones, which I could download from the official VMware site apparently.&lt;/p&gt;

&lt;p&gt;Mind-bogglingly, an image in VMware isn't called an &quot;image&quot;, it's called an &quot;&lt;strong&gt;Appliance&lt;/strong&gt;&quot;.  Clearly someone in the marketroid department at VMware ran out of names, saw a toaster on the shelf and went with it.  A washing machine is an appliance, not an OS image.  Did you know the &quot;&lt;strong&gt;Virtual Appliance Marketplace&lt;/strong&gt;&quot; has &quot;&lt;strong&gt;Expanded Capabilities from the Largest Library of Applications for the Cloud&lt;/strong&gt;&quot;?  Is there seriously someone in the world who can read this without needing to fight back a reflex to vomit?  (Images are also referred to as &quot;Solutions&quot;, to which I say only uggggggh.)&lt;/p&gt;

&lt;p&gt;Anyways, it seems that they only added the ability to create your own images in &lt;strong&gt;VMware Player&lt;/strong&gt; version 3.0; this feature was absent in previous versions.  And 3.0 is not available through Gentoo yet.&lt;/p&gt;

&lt;p&gt;So I uninstalled everything, &lt;code&gt;rm -rf&lt;/code&gt;ed any cruft I could find, and went and downloaded &lt;strong&gt;VMware Player 3.0&lt;/strong&gt; from the VMware site directly.  I had to register AGAIN, but then I got it.&lt;/p&gt;

&lt;p&gt;During the install, VMware Player 3.0 asks you for the location of your &lt;code&gt;runlevels&lt;/code&gt; directory.  It didn't accept &lt;code&gt;/etc/runlevels&lt;/code&gt; on my box; I guess Gentoo's is non-standard.  So I had to make a fake directory and go into it and &lt;code&gt;mkdir rc0.d rc1.d rc2.d rc3.d rc4.d rc5.d rc6.d init.d&lt;/code&gt; and let VMware pretend that was my runlevels directory.  All so the installer could spew an initscript into it, which doesn't even work.  Oh well.&lt;/p&gt;

&lt;p&gt;After trying to run &lt;code&gt;vmplayer&lt;/code&gt;, failing because the kernel modules weren't loaded properly by the broken initscript, &lt;code&gt;modprobe&lt;/code&gt;ing the modules myself and restarting a bunch of times, then running &lt;code&gt;vmware-networks --start&lt;/code&gt; manually, behold!  I had a running VMware Player 3.0 and I made my own image and everything was good.&lt;/p&gt;

&lt;p&gt;Are you confused yet?  It's all free, so I guess I shouldn't complain.  But I guess I just did complain anyways.  Names don't have to be this confusing.  So many companies do this, and why?&lt;/p&gt;

&lt;p&gt;How about &quot;light&quot; (or even &quot;lite&quot;), &quot;trial&quot;, &quot;full&quot;, &quot;free&quot;, &quot;paid&quot;, &quot;server&quot;, &quot;client&quot;?  Those are nice words.  We all know what those words mean.  &quot;&lt;strong&gt;VMware ESXi&lt;/strong&gt;&quot; might sound &lt;strong&gt;&lt;em&gt;EXTREME&lt;/em&gt;&lt;/strong&gt; or trendy or whatever, and maybe it really does &quot;&lt;strong&gt;Deliver Enterprise Performance to Your Applications&lt;/strong&gt;&quot;  (ugggggggggggh), but what the hell is it?  What is &lt;strong&gt;VMWare ThinApp&lt;/strong&gt;?  What does it do?  How am I supposed to buy what you're selling when you're speaking a foreign language to me?&lt;/p&gt;</description></item><item><title>Ker-crash</title><link>http://briancarper.net/blog/ker-crash</link><guid>http://briancarper.net/blog/ker-crash</guid><pubDate>Sat, 26 Sep 2009 18:56:52 -0700</pubDate><description>&lt;p&gt;I can pretty consistently crash my X server nowadays just by opening too many programs.  I think I need a new computer.&lt;/p&gt;

&lt;p&gt;Or maybe my idea of &quot;too many programs&quot; has been warped by how well Linux multi-tasks.  Let's see.  I'm seeding 20 torrents in KTorrent, I have Amarok playing, Konversation has a few IRC channels open, Kopete is doing some Jabber for me, Akregator is fetching feeds every 10 minutes, Gimp has a dozen PNGs open, Emacs is visiting around 20 files (and running SLIME + Clojure obviously), Squirrel SQL is running so I can peek at mysql, I have maybe 5 or 6 Konsole windows open, and I have four browsers running (Firefox, Chromium, Opera, Konq) for testing my websites while I develop (multiple tabs in each obviously).  And so on.&lt;/p&gt;

&lt;p&gt;In Windows not only would the single, sucky taskbar be full to overflowing, but all of my programs would be slowed to a crawl.  In Linux I somehow get away with this level of activity for days at a time, but eventually I do something wrong and something crashes.  Just now, it was opening one Konsole window too many.  I think it's KDE4 instability, or else my ancient video card can't handle the screen resolution I'm running.  But I get crashes in Gentoo and Arch both so I don't know.&lt;/p&gt;

&lt;p&gt;Buying a computer is such a pain.  I never know what to get.  I don't keep up with hardware news.  Every time I turn around there are twelve new processor families.  I know whatever I buy will suck in a month.  My current computer is from &lt;a href=&quot;http://briancarper.net/blog/new-computer&quot;&gt;way back in 2006&lt;/a&gt; and I haven't upgraded it since.  My geek cred is non-existent if judged by the computer I'm using.  It's embarrassing.&lt;/p&gt;</description></item><item><title>Trying Arch</title><link>http://briancarper.net/blog/trying-arch</link><guid>http://briancarper.net/blog/trying-arch</guid><pubDate>Wed, 01 Apr 2009 00:52:41 -0700</pubDate><description>&lt;p&gt;Thanks to all who gave &lt;a href=&quot;http://briancarper.net/blog/gentoo-vmware-fail#comments&quot;&gt;helpful suggestions&lt;/a&gt; about running VMs in Gentoo.  The main reason I wanted a VM was to play around with some other distros and see what I liked.&lt;/p&gt;

&lt;p&gt;But then I got to thinking, and I realized that I have over 250 GB of free hard drive space sitting around.  So I made a new little partition and per Noah's suggestion, threw &lt;a href=&quot;http://www.archlinux.org/&quot;&gt;Arch Linux&lt;/a&gt; on there. &lt;/p&gt;

&lt;p&gt;I'm fairly impressed so far.  The install was easy.  In contrast to the enormous Gentoo handbook, the whole Arch install guide fits on one page of the &lt;a href=&quot;http://wiki.archlinux.org/index.php/Official_Arch_Linux_Install_Guide&quot;&gt;official Arch wiki&lt;/a&gt;.  Why doesn't Gentoo have an official wiki?  I know there are concerns over the quality of something anyone can edit, but in practice is it a big a deal?  Is it worth the price of sending users elsewhere, to potentially even WORSE places, when the Gentoo docs don't cover everything we need?  The quality of the &lt;a href=&quot;http://en.gentoo-wiki.com/wiki/Main_Page&quot;&gt;unofficial Gentoo wiki&lt;/a&gt; is often very good but sometimes hit-or-miss, and it also sort of crashes and loses all data without backups every once in a while.&lt;/p&gt;

&lt;p&gt;The Arch installer is a commandline app using ncurses for basic menus and such, which is more than sufficient and a good compromise between commandline-only and full-blown X-run Gnome bloat.  The install itself went fine, other than my own mistakes.  I'm sharing &lt;code&gt;/boot&lt;/code&gt; and &lt;code&gt;/home&lt;/code&gt; between Gentoo and Arch so I can switch between them easily.  During the install Arch tried to create some GRUB files, but they already existed care of Gentoo, so the install bombed without much notification and I didn't notice until 3 steps later.  No big deal to fix, but I'd have liked a louder error message right away when it happened.  The base install took about 45 minutes.&lt;/p&gt;

&lt;p&gt;Another nice thing is that the Arch install CD has &lt;code&gt;vi&lt;/code&gt; on it.  I didn't have to resort to freaking &lt;code&gt;nano&lt;/code&gt; or remember to install &lt;code&gt;vim&lt;/code&gt; first thing.  A mild annoyance to be sure, but it bugged me every time I installed Gentoo.&lt;/p&gt;

&lt;p&gt;After boot, installing apps via &lt;code&gt;pacman&lt;/code&gt; is simple enough.  KDE 4.2 installed in about 15 minutes, as you'd expect from a distro with binary packages.  I found a mirror with 1.5 Mb/sec downloads, which is awfully nice.  Syncing the package tree takes less than 2 seconds, which is also nice compared to Portage's 5-minute rsync and &lt;code&gt;eix&lt;/code&gt; update times.  Searching the tree via regex is also somehow instantaneous in Arch.&lt;/p&gt;

&lt;p&gt;Oddly, KDE didn't seem to pull in Xorg as a dependency, but other dependencies worked fine so far.  Time will tell how well this all holds up.  Most package managers do fine on the normal cases but the real test is the funky little obscure apps.  &lt;code&gt;pacman -S gvim&lt;/code&gt; resulted in a Vim with working &lt;code&gt;rubydo&lt;/code&gt; and &lt;code&gt;perldo&lt;/code&gt;, which means Arch passed the &lt;a href=&quot;/blog/oh-come-on&quot;&gt;Ubuntu stink test&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Another nice thing is that KDE4 actually &lt;em&gt;works&lt;/em&gt;.  My Gentoo install is years old and possibly crufted beyond repair, or something else was wrong, but I have yet to get KDE4 working in Gentoo without massive breakage.  Possibly if I wiped Gentoo and tried KDE4 without legacy KDE3 stuff everywhere it'd also be smooth.  &lt;/p&gt;

&lt;p&gt;Regardless, it all works in Arch.  NVidia drivers and Twinview settings were copy/pasted from Gentoo, and compositing all works fine.  No performance problems in KDE with resizing or dragging windows, no Plasma crashes (yet), no missing icons or invisible notification area.  QtCurve works in Qt3, Qt4 and GTK just fine.  My sound card worked without any manual configuration at all.  My mouse worked without tweaking, including the thumb buttons.  Same with networking, the install prompted me for my IP and gateway etc. and then it worked, no effort.&lt;/p&gt;

&lt;p&gt;I've mentioned before, but one nice thing about Linux is that if you have &lt;code&gt;/home&lt;/code&gt; in its own partition, it's no big deal at all to share it between distros.  With no effort at all I'm now using all my old files and settings in Arch, and I can switch back and forth between this and Gentoo without any troubles.&lt;/p&gt;

&lt;p&gt;So we'll see how this goes.  So far so good though.  Arch seems very streamlined and its goal is minimalism, which is nice.  Gentoo has not felt minimalistic to me in a while.  Again, may be due to the age of my install, cruft and bit-rot.&lt;/p&gt;</description></item><item><title>Gentoo VMWare Fail</title><link>http://briancarper.net/blog/gentoo-vmware-fail</link><guid>http://briancarper.net/blog/gentoo-vmware-fail</guid><pubDate>Tue, 31 Mar 2009 00:59:55 -0700</pubDate><description>&lt;p&gt;According to &lt;a href=&quot;http://bugs.gentoo.org/show_bug.cgi?id=260979&quot;&gt;this bug&lt;/a&gt;, VMWare on Gentoo is in a sorry state, with one lone person trying to keep it going.  I can't get &lt;code&gt;vmware-modules&lt;/code&gt; to compile on my system no matter what I try, which is depressing.  Kudos to all of our one-man army Gentoo devs who are keeping various parts of the distro going, but I wonder how many other areas of Gentoo are largely unmaintained nowadays.&lt;/p&gt;

&lt;p&gt;KVM was braindead simple to get set up in comparison with VMWare, but I can't get networking to work.  This is because I'm an idiot when it comes to TUN/TAP and iptables.  I've read wiki articles that suggest setting up my system to NAT-forward traffic into the VM but I couldn't get that working and don't have a lot of time to screw with it.&lt;/p&gt;

&lt;p&gt;On one of the Gentoo mailing lists I noticed that a dev has posted some &lt;a href=&quot;http://www.mail-archive.com/gentoo-dev@lists.gentoo.org/msg33099.html&quot;&gt;KVM images of Gentoo&lt;/a&gt; suitable for testing.  But I'm looking to start up an image from scratch and that doesn't help, and it's not going to help me get networking going any easier.&lt;/p&gt;

&lt;p&gt;Why do I feel like this'd take 10 minutes to set up on Ubuntu?  Look at &lt;a href=&quot;https://help.ubuntu.com/community/VMware&quot;&gt;this&lt;/a&gt;, or search for &quot;&lt;code&gt;ubuntu vmware&lt;/code&gt;&quot; and see the hundreds of results.  Given that it's a VM and it doesn't really matter what the host OS is anyways, I'll probably do that on my laptop, but it's still depressing.&lt;/p&gt;</description></item><item><title>Conky Goodness</title><link>http://briancarper.net/blog/conky-goodness</link><guid>http://briancarper.net/blog/conky-goodness</guid><pubDate>Sat, 21 Mar 2009 18:52:59 -0700</pubDate><description>&lt;p&gt;I uploaded a new screenshot:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/screenshots/2009/2009-03-21.png&quot;&gt; &lt;img src=&quot;/screenshots/2009/thumbs/2009-03-21.png&quot; alt=&quot;/screenshots/2009/2009-03-21.png&quot; title=&quot;&quot; /&gt; &lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The conky with weather pictures in it is stolen from RAMC's conkyrc which you can find on the &lt;a href=&quot;http://forums.gentoo.org/viewtopic-t-741686-postdays-0-postorder-asc-start-25.html?sid=89142ae25fd1e651234452124b0a03c1&quot;&gt;Gentoo MB&lt;/a&gt; and also apparently &lt;a href=&quot;http://www.kaivalagi.com/node/2&quot;&gt;here&lt;/a&gt;.  There's a python script there to fetch and display weather info.&lt;/p&gt;

&lt;p&gt;Whoever thought up the idea of making a font that consists of little weather pictures was pretty clever.  Whoever thought up making a font that consists of Linux distro emblems has a bit too much time on his hands.  &lt;/p&gt;

&lt;p&gt;Oddly enough, Unicode itself includes glyphs for weather symbols.  e.g. this is Unicode character 2603: &lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;font-size: 30pt;&quot;&gt;&amp;#9731;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;If your font supports it, it should show up as a snowman.  If your font doesn't support it, it may show up as an ice cube.&lt;/p&gt;</description></item><item><title>Goodbye, sweet uptime</title><link>http://briancarper.net/blog/goodbye-sweet-uptime</link><guid>http://briancarper.net/blog/goodbye-sweet-uptime</guid><pubDate>Thu, 19 Mar 2009 18:48:06 -0700</pubDate><description>&lt;p&gt;I finally had to reboot my Gentoo box today.  My uptime as of reboot:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;315 days, 54 min
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Not spectacular, but not bad for a dust-covered desktop machine, and it probably could've gone another 300 days or so.  I only had to reboot because I bought another 500GB hard drive. &lt;/p&gt;

&lt;p&gt;Funny thing about rebooting after that long, you have no idea what's going to happen.  I finally unmasked and compiled a newer kernel, and there were quite a few new options and features in there to root through.  My disk hadn't been &lt;code&gt;fsck&lt;/code&gt;ed for 396 days, and after rebooting and 15 minutes of grinding away, it found a few dozen orphaned inodes.  A few init scripts having to do with modules gave me some warnings, but I fixed that up.&lt;/p&gt;

&lt;p&gt;But I think I can spare an hour every year or two to update my system.&lt;/p&gt;</description></item><item><title>KDE 4.2.... so close</title><link>http://briancarper.net/blog/kde-42-so-close</link><guid>http://briancarper.net/blog/kde-42-so-close</guid><pubDate>Wed, 25 Feb 2009 16:31:13 -0800</pubDate><description>&lt;p&gt;I tried KDE 4 (again) on Gentoo last night.  It's unmasked in the tree so it was simple enough to install (if you're willing to use a masked Portage so you can use sets).&lt;/p&gt;

&lt;p&gt;You can easily see improvement in KDE 4.2 compared to older versions of KDE 4.  Everything generally works now, which is itself a change.  Performance issues are almost gone; I can at least move and resize windows now without my system freezing.  Delays in rendering popup menus are gone.  All the shiny desktop effects worked right away with no hassle and everything looked great.  A lot of the little nooks and crannies of previous missing features are filled in.&lt;/p&gt;

&lt;p&gt;Some things are still not quite right though.  I experienced massive stuttering in mplayer when I tried to watch a movie and do some other things at the same time.  I managed to crash plasma once or twice just by resizing the main panel.  I'm using two monitors and one monitor went totally blank for no reason I can determine, with only a one-inch strip of blue wallpaper at the top which was still right-clickable, while the other monitor kept working fine.&lt;/p&gt;

&lt;p&gt;And other things are still broken beyond belief.  All my system tray icons were invisible (reading the Gentoo MB apparently I'm not alone with that problem).  Icons were a problem in general; random parts of the kmenu still had question-mark icons.  Trying to download new themes of any sort via the &quot;New Themes...&quot; buttons in various system dialogs silently did nothing.  When I opened Dolphin, all the menus were labeled &quot;No Text&quot;, which was amusing.  And I did manage to freeze-crash KDE4 when I tried to quit once, just like old times.  Qtcurve wouldn't let me configure itself.  GTK apps were themeless until I found an ebuild for a gtk-engines-kde4 ebuild in an overlay.  &lt;/p&gt;

&lt;p&gt;Installing KDE 4.2 and KDE 3.5 in parallel breaks tons of things in KDE3, e.g. the K menu is missing tons of stuff and has tons of extra KDE4 stuff that doesn't work, KControl no longer functions at all, the splash screen when you start is just a blank blue box, and so on.  I'm now in the process of uninstalling KDE 4 (again) and trying to salvage my system (again).&lt;/p&gt;

&lt;p&gt;Starting KDE 3 again after using KDE 4 for an hour, it's depressing how much smoother and more responsive it feels.  I have hopes for KDE 4, it's clearly headed in the right direction, but I feel like it's going to be another year before it comes close to catching up to KDE 3.&lt;/p&gt;</description></item><item><title>Remote webcam viewing: Ubuntu 3, Gentoo 0</title><link>http://briancarper.net/blog/remote-webcam-viewing-ubuntu-3-gentoo-0</link><guid>http://briancarper.net/blog/remote-webcam-viewing-ubuntu-3-gentoo-0</guid><pubDate>Sat, 31 Jan 2009 18:04:32 -0800</pubDate><description>&lt;p&gt;One could argue that boringness is a good attribute for a distro.  Gentoo has stayed out of my way for a good long time.  I update world once a week and I haven't had a package fail to build or fail to work in a while.&lt;/p&gt;

&lt;p&gt;Until a few days ago.  I wanted to view video from my laptop's built-in webcam, on my desktop, over my local network.  My laptop is running Ubuntu, and my desktop is running Gentoo.  One point in favor of Ubuntu, my webcam works without any effort on my fault.  It works right on a fresh Ubuntu install off the install CD.  I never did get any webcam working on any Gentoo install whenever I've tried over the years.  Maybe the situation has rectified itself at this point, but I don't anticipate trying.&lt;/p&gt;

&lt;p&gt;Unfortunately, viewing my laptop's feed on my desktop also failed to work.  First I tried an X-forwarding SSH tunnel, and running &lt;code&gt;xawtv -remote&lt;/code&gt;, but I got all kinds of nasty errors along the lines of&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  2 (X_ChangeWindowAttributes)
  Resource id in failed request:  0x1a5
  Serial number of failed request:  55
  Current serial number in output stream:  56
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Extensive Googling turned up nothing on this, which isn't surprising given how un-informative an error message this is.  Maybe some extension in X needed to be built to get xawtv to work.  Maybe it's a version incompatibility.  Maybe some hardware thing with my video card driver.  Who knows.  On the other hand when I tried to view my laptop's feed on another laptop running Ubuntu (actually Kubuntu), it worked fine.  Albeit incredibly slowly.&lt;/p&gt;

&lt;p&gt;Then I noticed &lt;a href=&quot;http://ekiga.org/&quot;&gt;Ekiga&lt;/a&gt; comes installed on Ubuntu by default, so I figured I'd try that, in spite of it being a bit overkill.  But installing Ekiga on Gentoo died with a build error, because I needed to build &lt;code&gt;pwlib&lt;/code&gt; with &lt;code&gt;ldap&lt;/code&gt; support.  Ekiga between the two Ubuntu laptops worked fine without any effort too, so at that point I gave up on getting it working in Gentoo, since it was no longer worth it.&lt;/p&gt;

&lt;p&gt;No big deal, but slightly annoying.  Probably could've gotten it to work in Gentoo eventually, but I have less and less patience for fiddling with installation nowadays.  This is probably one of the benefits of the sort of mono-culture Ubuntu is turning into.  Everyone using Ubuntu has the same basic crap installed.  Whereas there's probably no one in the world with a Gentoo install quite like mine.&lt;/p&gt;

&lt;p&gt;But Gentoo is still working well for me overall. &lt;/p&gt;</description></item><item><title>KDE4 disaster</title><link>http://briancarper.net/blog/kde4-disaster</link><guid>http://briancarper.net/blog/kde4-disaster</guid><pubDate>Sun, 05 Oct 2008 13:49:10 -0700</pubDate><description>&lt;p&gt;From reading &lt;a href=&quot;http://bugs.gentoo.org/show_bug.cgi?id=234773&quot;&gt;the bug&lt;/a&gt; it sounds like KDE4 is getting close to being ready to hit the tree, which is awesome.  Foolishly, I decided to try it early from the overlay last night.  It was a total disaster.  Things were crashing left and right, panels would resize themselves to be fullscreen (with hilarious results), half of my apps didn't work at all.  I found three or four ways to bring down the entire X server.  It took me many hours to get KDE3 running again.  This is totally to be expected from installing masked packages as I did, so it's my own dumb fault, it was amusing and I wanted to get a taste.&lt;/p&gt;

&lt;p&gt;I'm afraid it's going to be inevitably difficult or impossible to migrate cleanly from KDE3 to KDE4.  I had the same problem in Kubuntu when I tried a while back.  KDE is so huge and so many things link to it or interact with it that it's going to take a year to track down and remove all the cruft after the switch.&lt;/p&gt;

&lt;p&gt;I couldn't even import my old KDE3 color schemes or Konsole color schemes into KDE4, which was surprising.  QtCurve was un-configurable, dekorator didn't work, and so on.  I didn't get far enough to figure out if my preferred icon themes work or not.  I didn't realize they broke backwards compatibility to that large an extent, but I maybe it's to be expected.&lt;/p&gt;

&lt;p&gt;There were other problems that were seemingly due to the lingering immaturity of KDE4.  I can see all the pieces there which are going to allow people to do really neat stuff eventually.  In the meantime KDE4 feels horrible.&lt;/p&gt;

&lt;p&gt;KDE4 fonts look nice though.&lt;/p&gt;</description></item><item><title>Gentoo still rules</title><link>http://briancarper.net/blog/gentoo-still-rules</link><guid>http://briancarper.net/blog/gentoo-still-rules</guid><pubDate>Fri, 26 Sep 2008 18:56:44 -0700</pubDate><description>&lt;p&gt;The version of akregator I have always displays article link text in an ugly dark blue, which doesn't show up well against my dark Qt theme.  I can barely read an ebuild to save my life, and the KDE ebuilds are full of all kinds of odd KDE-specific stuff, but it still took me just a couple of minutes to:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Find the sources in &lt;code&gt;/usr/portage/distfiles&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/kde/akregator-3.5.10-link-color.patch&quot;&gt;Cludgily patch&lt;/a&gt; akregator to use normal text color for links (underlines still distinguish them)&lt;/li&gt;
&lt;li&gt;Copy the akregator ebuild into an overlay, throw the patch in there and add one line to the ebuild to read it&lt;/li&gt;
&lt;li&gt;emerge away&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Et voil?, custom-patched, package-manager-managed app.  Gentoo is pretty good for this kind of thing, whatever its other shortcomings.  Does any other distro make it this easy to do such things?  (I'm genuinely curious.)&lt;/p&gt;</description></item><item><title>Interview with a new Linux user</title><link>http://briancarper.net/blog/interview-with-a-new-linux-user</link><guid>http://briancarper.net/blog/interview-with-a-new-linux-user</guid><pubDate>Sat, 30 Aug 2008 21:53:06 -0700</pubDate><description>&lt;p&gt;&lt;em&gt;After countless, endless hours of nagging on my part, my girlfriend finally put Linux on her laptop.  I thought it would be interesting to hear what a long-time Windows-using non-programmer thinks of Linux (Kubuntu in this case) after a few weeks of use.  So I interviewed her.  Read on.  My thoughts and conclusions are at the end.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Q1: &lt;strong&gt;&lt;em&gt;How would you describe your level of expertise or skill level when it comes to computers in general?&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A: I think I'm better with computers (at least Windows) than the majority of my classmates (I'm starting third year accounting next week).  I know my way around the internet, I'm decent with programs like Office and GIMP, and I know how to fix most problems that affect me as a lay user.  As for Linux, I would know how to look for help, but I probably wouldn't understand it yet.&lt;/p&gt;

&lt;p&gt;Q2: &lt;strong&gt;&lt;em&gt;You used Windows for a long time in spite of my constant pestering.  What kept you from using Linux until now?&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A: A few years ago you tried to get me to use Gentoo.  I was younger, and apparently Linux in general was more difficult to use, so I got frustrated pretty quickly.  A lot of my reluctance was from remembering that time.  I was also worried that I might do something wrong and lose all my schoolwork.  At least in Windows I know it wouldn't be directly my fault if that happened (disregarding the fact that I'm slow at backing things up).  &lt;/p&gt;

&lt;p&gt;Q3: &lt;strong&gt;&lt;em&gt;You decided to use Kubuntu.  Why did you pick that distro instead of another?&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A: I heard it was easy for Windows users to pick up.  It's also the one you have on your laptop, so it's easier to get tech support.&lt;/p&gt;

&lt;p&gt;Q4: &lt;strong&gt;&lt;em&gt;Why did you pick KDE instead of Gnome, XFCE, or some other desktop environment / window manager?&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A: I don't remember.  Something about having multiple wallpapers on multiple desktops and being able to make them change randomly whenever I want.  There might've been other reasons, but that one is the most enjoyable so far.&lt;/p&gt;

&lt;p&gt;Q5: &lt;strong&gt;&lt;em&gt;How hard was it to install Linux?  Compared to Windows?&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A: It was about the same.&lt;/p&gt;

&lt;p&gt;Q6: &lt;strong&gt;&lt;em&gt;How hard was getting everything set up the way you like it after Linux was installed?  How long did it take you?&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A: There's always a lot to set up on a clean install of anything.  It took me a few days to find something I'm comfortable with.  I mostly just ripped off your setup because I liked it, though, so that made it a bit easier.  Getting SKIM to work was quite difficult, though, since I couldn't find good instructions for my version of Kubuntu (or Kubuntu at all, really).  I think I just ended up making you fix it.&lt;/p&gt;

&lt;p&gt;Q7: &lt;strong&gt;&lt;em&gt;Does Linux have any features or applications you really enjoy, that Windows is missing?  Can you do anything in Linux that you couldn't do (easily) in Windows?&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A: Even just doing a small amount of image editing yesterday, I'm beginning to see the appeal of multiple desktops.  I also like how easily it's detected various wireless networks so far.  The package manager is pretty nice too.  I wouldn't have a Gmail checker if you didn't write one for me, but the one you wrote is better than the one I was using before.&lt;/p&gt;

&lt;p&gt;Q8: &lt;strong&gt;&lt;em&gt;Do you miss anything from Windows?  Is there anything you could do in Windows that you can't do (easily) in Linux?&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A: It's easier to install programs in Windows than it is to install non-package programs in Linux.  I still don't know the difference between a source and a binary.  I don't miss playing games too much, since I'm more of a console person.  But I do miss OtaClock.  The default clock is boring and not cute at all.&lt;/p&gt;

&lt;p&gt;Q9: &lt;strong&gt;&lt;em&gt;How comfortable are you with using a command prompt?&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A: Not very.  I know how to chmod things, but that's about it.  I need to look for a guide for basic bash commands that explains them in plain English.&lt;/p&gt;

&lt;p&gt;Q10: &lt;strong&gt;&lt;em&gt;How do you like the general look and feel of the Linux desktop compared to Windows?&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A: It's a lot nicer looking overall.  I like being able to use all the Buuf icons easily.  At first I was resistant to using anti-aliased font, but it's growing on me.  Windows displayed aliased fonts so nicely, and I still kind of miss it.&lt;/p&gt;

&lt;p&gt;Q11: &lt;strong&gt;&lt;em&gt;You have a dual-boot set up.  What do you still plan to use Windows for?&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A: I have a couple games that don't work in Linux.  I also use my laptop for school, and my university is dominated by Windows, so I feel comfortable having it around for compatibility purposes if I ever need it.&lt;/p&gt;

&lt;p&gt;Q12: &lt;strong&gt;&lt;em&gt;It's been a few weeks since you switched to Linux.  How has it been overall?  Do you plan to stick with it long-term?&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A: Overall it's been about the same as Windows.  Something about Vista still creeps me out, so it feels good using an OS that doesn't feel evil.  I like being able to get pretty much any program I want free and on demand.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Here are some Linux programs I know you've used... tell me something you like and something you dislike about each one.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;em&gt;Dolphin&lt;/em&gt;&lt;/strong&gt; It's minimalistic, but it doesn't have the view options I like.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;em&gt;Konqueror&lt;/em&gt;&lt;/strong&gt; I can get all the info on a file that I need just by mousing over it.  It took me a while to figure out how to both display thumbnails and then sort them by size or date, though.  I'm quite obsessive about collecting and sorting pictures, and in Windows that was how I used to see which pictures were new or duplicates.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;em&gt;Gwenview&lt;/em&gt;&lt;/strong&gt; It finds duplicate pictures for me, making the above method obsolete.  It even finds similar pictures, which is pretty intersting.  So far I can't think of anything I don't like about it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;em&gt;Amarok&lt;/em&gt;&lt;/strong&gt; Win-B is my friend.  There's too many unnecessary features for me, though.  I don't care about album art or smart playlists.  It's good that I can just ignore them.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;em&gt;Kopete&lt;/em&gt;&lt;/strong&gt; It has custom themes.  I really like the Metal Gear theme you made.  For some reason I can't figure out how to make our text different colours, though.  The text is different for my friends who use the real MSN, but for you it's the same colour is mine, so it's harder for me to read.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;em&gt;Kate&lt;/em&gt;&lt;/strong&gt; It's like tabbed Notepad.  I'm one of those people who actually likes Notepad, since I don't do much coding at all.  I can see where Vim is better, but Kate is fine too.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;em&gt;KDE as a whole&lt;/em&gt;&lt;/strong&gt; When it's set up properly, it looks really nice. The amount of stuff I needed to change to get it to look nice was quite overwhelming, though.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Thoughts and conclusions: I used to try to push Gentoo on people, and that was a mistake.  Gentoo isn't for everyone.  A bad experience can kill people's opinions of Linux.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;It's a lot easier to make a big switch to a new operating system when you have knowledgeable people to back you up and help you out.  This is one area where Linux shines: There are a LOT of people willing to help newbies.  The community aspect of Linux is by far one of the best parts of using it.  We're all doing this because it's fun and Linux people like to share the fun with others.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Is Linux ready for the desktop?  I think so; I think it has been for a while now.  A Windows power-user can find a lot to like in Linux.  There are a lot of features and apps in modern desktop Linux that offer a lot of things many people would find very appealing if they only knew they existed.&lt;/em&gt;&lt;/p&gt;</description></item><item><title>Gentoo 2008.0</title><link>http://briancarper.net/blog/gentoo-20080</link><guid>http://briancarper.net/blog/gentoo-20080</guid><pubDate>Wed, 09 Jul 2008 20:08:33 -0700</pubDate><description>&lt;p&gt;Kudos to the release team for getting this release out.  I wasn't waiting on the edge of my seat of course, Gentooers don't need releases to stay up to date.  But I do know a few people starting Linux who specifically didn't install Gentoo because the install CD was so old.  You don't need a Gentoo liveCD to install Gentoo (I don't even think I have one in my house) but most people don't know that, and appearances can be deceiving / first impressions can be important / etc.&lt;/p&gt;

&lt;p&gt;I just read about a problem that &lt;a href=&quot;http://blog.mindlesstechie.net/2008/07/08/upgrading-to-2008-profile-wierdness/&quot;&gt;John Alberts&lt;/a&gt; mentioned having when updating his profile to 2008.0.  I had the same problem with the &quot;releases&quot; folder not being synced properly, causing all kinds of mess.  I though perhaps I was the only one but I guess it was more widespread.  Another sync cleared it up though.  I imagine (I hope) the problem is fixed on all the mirrors by now.&lt;/p&gt;

&lt;p&gt;I was curious about what the new profile consisted of so I started reading a few files.  Did you ever wonder if Gentoo devs know what they're doing?  According to &lt;code&gt;/usr/portage/profiles/targets/developer/make.defaults&lt;/code&gt;:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;# As much as it pains me, we hope that developers know what they're doing.
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I_KNOW_WHAT_I_AM_DOING=&quot;yes&quot;&lt;/p&gt;

&lt;p&gt;I can rest easy now.&lt;/p&gt;</description></item><item><title>FAT</title><link>http://briancarper.net/blog/fat</link><guid>http://briancarper.net/blog/fat</guid><pubDate>Mon, 05 May 2008 17:13:36 -0700</pubDate><description>&lt;p&gt;I had to undelete someone's files from a FAT partition today.  My first thought was to use good ol' Windows to do so, given that Windows is the unholy ground which spawned FAT to begin with.  I remember there used to be an UNDELETE command of some sort in some old version of DOS.  But this doesn't seem to exist in XP any longer.  &lt;/p&gt;

&lt;p&gt;There are however lots and lots of third-party &quot;shareware&quot; programs which can do this kind of thing, as &lt;a href=&quot;http://www.google.com/search?q=undelete+fat32&quot;&gt;Google reveals&lt;/a&gt;.  There is in fact an overwhelming number of such shareware programs.  Most of these programs are total crap and cost around $30.  One program required me to burn a CD and reboot my computer from the CD before I could run it.  Many of the programs &quot;intelligently&quot; scan a partition looking for chunks of things that look like JPEGS or WMVs.  I tried a few &quot;demos&quot; before I gave up, not having an hour to waste finding the one program that would work.  Thus bringing the current score to Windows: 948, Brian: 0.&lt;/p&gt;

&lt;p&gt;Instead I brought the drive home and plugged it into Gentoo and used &lt;a href=&quot;http://lists.slug.org.au/archives/slug/2006/05/msg00002.html&quot;&gt;this post&lt;/a&gt; as a guide.  I dd'ed the partition to a file, fscked around with it a bit, mounted it via loopback, and had my files back.  Took 10 minutes, and worked as expected.  And it didn't cost me $30.&lt;/p&gt;

&lt;p&gt;The moral of this story: I need to burn a Knoppix disk to take to work with me.&lt;/p&gt;

&lt;p&gt;My only quibble is that I can never ever remember what Gentoo package contains &lt;code&gt;fsck.vfat&lt;/code&gt;.  Note to self, it's &lt;code&gt;dosfstools&lt;/code&gt;.  I can never think of the search terms even to locate that package.  I had to google it.&lt;/p&gt;</description></item><item><title>SBCLish host wanted</title><link>http://briancarper.net/blog/sbclish-host-wanted</link><guid>http://briancarper.net/blog/sbclish-host-wanted</guid><pubDate>Mon, 03 Mar 2008 13:44:08 -0800</pubDate><description>&lt;p&gt;After sleeping on it, I think I'm going to switch hosts and try to keep going with SBCL and Hunchentoot.  &lt;/p&gt;

&lt;p&gt;If you're reading this and you know of a VPS unmanaged web host that's known to work well with SBCL, could you please comment and let me know what host you use, and what plan at that host, if it offers more than one plan, and what OS you prefer?  So far I've heard &lt;a href=&quot;http://www.slicehost.com/&quot;&gt;Slicehost&lt;/a&gt; and &lt;a href=&quot;http://www.ocssolutions.com/&quot;&gt;OCS Solutions&lt;/a&gt; suggested.  (Slicehost offers Gentoo.  Do I dare?)&lt;/p&gt;

&lt;p&gt;Note to all, my current host for my SBCL-driven site is &lt;a href=&quot;http://futurehosting.biz&quot;&gt;FutureHosting&lt;/a&gt;.  I'd advise people to avoid them if you plan to run SBCL.  Their support and service is usually pretty good as long as you don't push it too far, but their servers are pretty wonky at times and after the comments from my last post, I wouldn't be surprised if a lot of my problems were due to some kind of VPS misconfiguration.  Their support staff told me nothing more than &quot;pay for more RAM&quot; when I informed them of the problems I was having.&lt;/p&gt;</description></item><item><title>SBCL on Gentoo (rules)</title><link>http://briancarper.net/blog/sbcl-on-gentoo-rules</link><guid>http://briancarper.net/blog/sbcl-on-gentoo-rules</guid><pubDate>Mon, 28 Jan 2008 22:51:21 -0800</pubDate><description>&lt;p&gt;The &lt;a href=&quot;http://sourceforge.net/project/showfiles.php?group_id=1373&quot;&gt;SBCL download page&lt;/a&gt; shows version 1.0.14 released today, and it's already in Portage (masked).  The &lt;a href=&quot;http://archives.gentoo.org/gentoo-lisp/&quot;&gt;gentoo-lisp&lt;/a&gt; list says we got a new Lisp project lead recently.  Looks like there's plenty of Lisp going on in the Gentoo world.  Personally I am very pleased with the state of Lisp in Gentoo.&lt;/p&gt;

&lt;p&gt;Sometimes I wonder what purpose this blog serves.  One purpose I found for it today was looking back through my old entries, to see how things have changed over the past couple years.  I very strongly believe in introspection for the purpose of refining beliefs to make them more accurately reflect reality.  In other words, I know I'm probably wrong about a lot of crap and I really don't like the thought.  It bugs me.  So I'm always looking for ways to change my perspective on things, if it needs changing.&lt;/p&gt;

&lt;p&gt;I first tried Lisp in August 2006, it seems.  Some of what I said was somewhat amusing, and wrong.  Quoth &lt;a href=&quot;http://briancarper.net/2006/08/11/lisp/&quot;&gt;myself&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;My prediction is that Ruby will end up being mostly a superset of Lisp except for a few areas Lisp is specifically targetted at.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Oops!  In fact just the opposite is true.  Common Lisp is easily a superset of Ruby in all the ways that matter, specifically meta-programming and the flexibility of the object system, to name a few.  &lt;/p&gt;

&lt;p&gt;Lisp is sadly just a subset of Ruby in terms of the amount of libraries available.  Ruby has tons of people writing tons of code for it.  But I am finding that Common Lisp actually has a LOT more libraries than you'd guess from a quick glance.  The problem is that Common Lisp is so much less &quot;mainstream&quot; than most languages that you have to do some digging to find the libraries you need.  Once you do find them, they tend to be of high quality and great utility, from my brief experience.&lt;/p&gt;

&lt;p&gt;Then again, Ruby itself is a subset of Perl in this regard.  There's a critical mass where you probably have &quot;enough&quot; libraries to get the job done.  Perl+CPAN is probably over the top in this regard.  Ruby is there.  Common Lisp is pretty close.&lt;/p&gt;

&lt;p&gt;Quoth &lt;a href=&quot;http://briancarper.net/2006/08/11/baby-steps/&quot;&gt;myself&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;I must admit, properly formatting Lisp seems confusing.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Yeah, I do remember indentation of Lisp code to be pretty confusing back then.  In &lt;a href=&quot;http://www.gigamonkeys.com/book/syntax-and-semantics.html&quot;&gt;PCL&lt;/a&gt; Seibel talks about how &quot;experienced Lispers&quot; use indentation to tell them if something funky is going on with their parens.  I realized today I actually do this too now (though I am not an &quot;experienced Lisper&quot;).  &lt;code&gt;LET&lt;/code&gt; forms look a certain way, &lt;code&gt;IF&lt;/code&gt; forms look a certain way, standard function calls look a certain way.  You can tell immediately if something fishy is going on if the indentation is being screwy.&lt;/p&gt;

&lt;p&gt;Actually I think people probably do this in most languages.  If you've written any amount of Ruby, you know that eventually you often end up with 87 &lt;code&gt;end&lt;/code&gt;'s in a row, some closing if-then statements, some closing iterator blocks, some closing method definitions, some closing class definitions.  If you type an &lt;code&gt;end&lt;/code&gt; in Vim and it launches all the way to column 1, but you weren't expecting it there, that can tell you that you have something wrong (an extra &lt;code&gt;end&lt;/code&gt; somewhere).&lt;/p&gt;

&lt;p&gt;But it's much more necessary in Lisp.  It seems to me that it would be extremely difficult to write good Lisp code without an editor's help.  There are way too many parens for a human to keep track of.  That's not to say that Lisp requires a full-blown IDE just to make the language usable (*cough*Java*cough*).  Lisp syntax is regular enough that it's REALLY EASY for an editor to very consistently help you keep your parens balanced.  The rules are &lt;a href=&quot;http://dept-info.labri.fr/~strandh/Teaching/MTP/Common/Strandh-Tutorial/indentation.html&quot;&gt;highly logical, simple, and surprisingly standard across the Lisp community&lt;/a&gt; (compared to the tabs vs. whitespace, 2 vs. 4 vs. 8 spaces, curly-braces-on-newlines-or-not sorts of wars you'll find in some other languages' communities).  If you use &lt;a href=&quot;http://mumble.net/~campbell/emacs/paredit.el&quot;&gt;paredit&lt;/a&gt; or something similar, keeping your parens balanced and indented nicely is a no-brainer.&lt;/p&gt;</description></item><item><title>SBCL on Debian (sucks)</title><link>http://briancarper.net/blog/sbcl-on-debian-sucks</link><guid>http://briancarper.net/blog/sbcl-on-debian-sucks</guid><pubDate>Sat, 26 Jan 2008 20:44:01 -0800</pubDate><description>&lt;p&gt;In my &lt;a href=&quot;http://briancarper.net/2008/01/21/am-i-too-dumb-for-common-lisp/&quot;&gt;oh-so-neverending quest&lt;/a&gt; to learn Lisp and make a webpage using it, today I actually bothered trying to install SBCL on my server, which is a VPS running Debian.&lt;/p&gt;

&lt;p&gt;Failure.  I got errors like this:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;mmap: Cannot allocate memory
ensure_space: failed to validate 536870912 bytes at 0x09000000
(hint: Try &quot;ulimit -a&quot;; maybe you should increase memory limits.)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This is a well-known error involving CMUCL and SBCL and Debian (and some other distros), especiall when running from a VPS apparently.   &lt;a href=&quot;http://lemonodor.com/archives/001457.html&quot;&gt;Lots&lt;/a&gt; and &lt;a href=&quot;http://forums.vpslink.com/showthread.php?t=1708&quot;&gt;lots&lt;/a&gt; and &lt;a href=&quot;http://lwat.blogspot.com/2006/07/debian-and-cmucl-not-getting-along.html&quot;&gt;lots&lt;/a&gt; and &lt;a href=&quot;http://groups.google.com/group/linux.debian.bugs.dist/browse_thread/thread/82c64a3cc66395bb/a8f16985b83eeda5?lnk=st&amp;amp;q=&amp;amp;rnum=1#a8f16985b83eeda5&quot;&gt;lots&lt;/a&gt; of people have this problem, seemingly.  Reading through all of that, it's hard to figure out whether it's a bug in SBCL, a bug in Debian's package, or a bug in the kernel.&lt;/p&gt;

&lt;p&gt;Given that I'm on a VPS on someone else's server, memory and other resource caps are set and I can't touch them, so a lot of the (probably unhealthy) hacks that some people list as solutions above don't work for me.&lt;/p&gt;

&lt;p&gt;Fortunately &lt;a href=&quot;http://ml.osdir.com/lisp.steel-bank.general/2006-09/msg00045.html&quot;&gt;there's a solution&lt;/a&gt; posted to one of the SBCL lists.  Download the SBCL source, and edit &lt;code&gt;src/compiler/x86/parms.lisp&lt;/code&gt;, find the section for your OS and change one of the lines to read:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;(def!constant dynamic-space-end         #x10000000)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Then it's a matter of recompiling SBCL.  You have to do this on a machine that already has a working SBCL (or other Common Lisp) installed.  The &lt;a href=&quot;http://sbcl.sourceforge.net/getting.html&quot;&gt;install instructions&lt;/a&gt; on the website are not as complete as the &lt;code&gt;INSTALL&lt;/code&gt; that comes in the source tarball.  The included INSTALL doc has some important things you need to do if you want to compile SBCL with threading enabled.  (Note: You probably do want threading enabled.)  If I'd read that first it would've saved me 30 minutes worth of compiling an SBCL that I couldn't use for Hunchentoot due to no threading.&lt;/p&gt;

&lt;p&gt;Here is yet another example of where a binary distro fails and fails hard.  If this was Gentoo I could've tweaked an ebuild and thrown it into an overlay and taken care of most of this bookkeeping crap for me.  With Debian I get to compile everything by hand and SFTP files around between servers and look up to make sure I have install prefixes set correctly and so on and so on.  With Gentoo I wouldn't have forgotten to enable threads because I'd have a USE flag right in front of my face.&lt;/p&gt;

&lt;p&gt;In any case the above mess at least got me a working SBCL that let me install and run Hunchentoot.  Time will tell whether it's going to survive when I actually start hosting a web page on it, or whether reducing SBCL's memory allocation is going to starve and kill my program.&lt;/p&gt;</description></item><item><title>Roll call results</title><link>http://briancarper.net/blog/roll-call-results</link><guid>http://briancarper.net/blog/roll-call-results</guid><pubDate>Thu, 24 Jan 2008 19:04:13 -0800</pubDate><description>&lt;p&gt;Six developers (or people pretending to be developers) responded to my &lt;a href=&quot;http://briancarper.net/2008/01/22/roll-call/#comments&quot;&gt;survey&lt;/a&gt;.  &lt;/p&gt;

&lt;p&gt;Now, given a random online poll that I might stumble upon, I estimate a 3% chance that I would ever bother to respond to it.  Extrapolating from this the fact that only 3% of the devs reading Planet Larry responded to my poll, this means that there are actually approximately 200 devs reading this right now.  That's science, right there.&lt;/p&gt;</description></item><item><title>Roll call!</title><link>http://briancarper.net/blog/roll-call</link><guid>http://briancarper.net/blog/roll-call</guid><pubDate>Tue, 22 Jan 2008 14:39:50 -0800</pubDate><description>&lt;p&gt;I was wondering today how many Gentoo devs actually read &lt;a href=&quot;http://larrythecow.org/&quot;&gt;Planet Larry&lt;/a&gt;.  &lt;/p&gt;

&lt;p&gt;If you're a Gentoo dev, and you feel so inclined, could you leave me a &lt;a href=&quot;http://briancarper.net/2008/01/22/roll-call/#comments&quot;&gt;short comment&lt;/a&gt;?  Just say &quot;hi&quot;.  In this way, I shall count you.&lt;/p&gt;

&lt;p&gt;I'll at least get a lower bound answer this way.  Unless no one responds, in which case sucks to be me huh?&lt;/p&gt;</description></item><item><title>Lisp on Gentoo; Hunchentoot thread slaughter</title><link>http://briancarper.net/blog/lisp-on-gentoo-hunchentoot-thread-slaughter</link><guid>http://briancarper.net/blog/lisp-on-gentoo-hunchentoot-thread-slaughter</guid><pubDate>Mon, 14 Jan 2008 03:32:23 -0800</pubDate><description>&lt;p&gt;Via &lt;a href=&quot;http://www.newartisans.com/blog_files/tag-hunchentoot.php&quot;&gt;this page&lt;/a&gt; I learned of the existence of &lt;a href=&quot;http://httpd.apache.org/docs/2.2/programs/ab.html&quot;&gt;apachebench&lt;/a&gt;, which was installed on my system already (probably along with Apache2) as &lt;code&gt;/usr/sbin/ab&lt;/code&gt;.  This tool lets you hammer a server and see how it handles concurrent requests etc.  Long before I read &lt;a href=&quot;http://www.zedshaw.com/rants/programmer_stats.html&quot;&gt;this diatribe&lt;/a&gt; I knew that I didn't know crap about statistics and that benchmarks in the end are of marginal use to me, but apachebench lets me partially answer the &lt;a href=&quot;http://briancarper.net/2008/01/13/partial-lisp-successes/&quot;&gt;questions I had&lt;/a&gt; about how SBCL+Hunchentoot handles concurrent requests.&lt;/p&gt;

&lt;p&gt;I got mixed results.  Hunchentoot happily gives birth to worker threads to handle all the requests, so that answers one question for me.  But when running Hunchentoot behind mod_lisp and Apache, when I hit it with too many requests at once I get dropped into the debugger in the REPL.  (Actually, I get dropped simultaneously into tens or hundreds of debuggers.  Ouch.)  And I get all kinds of errors spewed into my logs.  Things about broken pipes, missing sockets, dead streams, unbound HUNCHENTOOT:&lt;em&gt;REPLY&lt;/em&gt; variables, you name it.&lt;/p&gt;

&lt;p&gt;One thing I looked at first was whether my packages were up to date.  This brings me to a side rant: They were not, because many / most of the CL packages (even unstable) in the Portage tree are really really out of date.  Because this is Gentoo, it's not hard to version-bump some new ebuilds into &lt;code&gt;/usr/local/portage&lt;/code&gt; myself, which I did, but I didn't realize the tree was lagging this much.&lt;/p&gt;

&lt;p&gt;(There is (was?) a Gentoo &lt;a href=&quot;http://common-lisp.net/cgi-bin/darcsweb/darcsweb.cgi?r=portage-overlay-portage-overlay;a=summary&quot;&gt;&quot;Common Lisp Portage Overlay project&quot;&lt;/a&gt; linked from &lt;a href=&quot;http://www.cliki.net/Gentoo&quot;&gt;CLiki&lt;/a&gt; but it seems entirely abandoned since 2006.  Apparently there was a lone dev (Matthew Kennedy) back in 2006 who was really pushing a lot of CL stuff for Gentoo but he quit in January 2007.  But according to the &lt;a href=&quot;http://archives.gentoo.org/gentoo-lisp/msg_00046.xml&quot;&gt;gentoo-lisp&lt;/a&gt; mailing list, there's a newer &lt;a href=&quot;http://repo.or.cz/r/gentoo-lisp-overlay.git/&quot;&gt;git overlay repo&lt;/a&gt; that's serving the same purpose nowadays.  &lt;/p&gt;

&lt;p&gt;It's kind of sad how much detective-work I needed to do to track this information down.  I'm sure the Gentoo Lisp-devs are doing the best they can though.  If only I had the skill, knowledge, time, and ambition (in that order of importance) to help out myself.)&lt;/p&gt;

&lt;p&gt;In any case, upgrading packages to current versions didn't help.  Even loading a fresh SBCL image and loading hunchentoot and starting a server and serving just the default Hunchentoot &quot;Hey you have no pages defined&quot; page, I get a thread massacre and SLIME is debugger-bombed even if I simply hit refresh in my web browser a bunch of times quickly.&lt;/p&gt;

&lt;p&gt;The good news is that if there's no human around to handle these thread errors / debugger sessions in the REPL, the threads quickly timeout and die off.  This is probably what I'd want to have happen on a server I wasn't monitoring 24 hours a day.  The bad news is that requests dying left and right isn't that great when you're a user waiting for a page to be displayed.  &lt;/p&gt;

&lt;p&gt;However the other good news is if I just use Hunchentoot by itself and ditch mod_lisp and Apache, I have no problems at all.  Requests are handled quickly and even with lots and lots of concurrent requests in apachebench I get no thread-slaughter.  So it seems likely that the problem is with mod_lisp, or with the communication between it and Apache and SBCL.&lt;/p&gt;

&lt;p&gt;When it comes right down to it, why do I even need Apache?  I don't really.  My first thought was that Apache was hogging up port 80 on my machine and I don't want a Hunchentoot-driven site to have my URL always include some non-standard port, but then I remembered I pay for two IP addresses with my host anyways, so I can use one IP for my other, Apache-driven sites and dedicate the other IP to Hunchentoot.&lt;/p&gt;

&lt;p&gt;If I can set that up, why use Apache?  There's no real reason other than the one that bites me so often as I've been learning Lisp: It's what I'm used to, it's what I'm comfortable with.  The idea that a hierarchy of web pages are actually all coming from a single Lisp script running in a single persistent Lisp image that's parsing and fiddling with request URI strings and calling functions appropriately, is very different from the naive filesystem directory tree full of HTML files or PHP scripts that I suppose I usually think of when I picture a web page.  It's different, but also very nice in many ways.&lt;/p&gt;

&lt;p&gt;And so the journey continues.  We'll see what tomorrow has in store.&lt;/p&gt;</description></item><item><title>Lisp on Gentoo</title><link>http://briancarper.net/blog/lisp-in-gentoo</link><guid>http://briancarper.net/blog/lisp-in-gentoo</guid><pubDate>Tue, 04 Dec 2007 22:21:40 -0800</pubDate><description>&lt;p&gt;Gentoo is a good platform for playing with Lisp.  Given it's the only platform I've used for playing with Lisp other than Windows, and I doubt anything could be as bad as Windows.  But Gentoo works fine.  &lt;/p&gt;

&lt;p&gt;Here are some other links that I'll probably find useful in a few months even if no one else in the world does.  Funny how my blog serves as my sticky-notes.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.gentoo.org/proj/en/lisp/common-lisp/guide.xml&quot;&gt;Gentoo Common Lisp Guide&lt;/a&gt;.  Tells you how to avoid using Debian-derived common-lisp-controller, which I take it many people hated.  Hint: Read the bottom of that guide first, it tells you about gentoo-init.lisp so you can avoid dumping tons of stuff into your config files.&lt;/li&gt;

&lt;li&gt;&lt;a href=&quot;http://www.gentoo.org/proj/en/lisp/emacs/xft.xml&quot;&gt;XFT fonts in Emacs on Gentoo&lt;/a&gt;.  I have Emacs 23.0.0.1 (built 2007-09-20, installed as &lt;strong&gt;emacs-cvs&lt;/strong&gt;) and XFT fonts work fine for me.&lt;/li&gt;

&lt;li&gt;Be sure to throw 
&lt;pre&gt;(require 'site-gentoo)&lt;/pre&gt;
into ~/.emacs if you install any Emacs stuff via Portage.  If you plan to use SLIME you probably also need this in there:

&lt;pre&gt;(setq inferior-lisp-program &quot;/usr/bin/sbcl&quot;)&lt;/pre&gt;

(inserting the path to your implementation of choice of course).&lt;/li&gt;

&lt;li&gt;Portage is chock-full of CL packages.  Of course pretty much every free CL implementation you could ask for is in Portage.  But the &lt;strong&gt;dev-lisp&lt;/strong&gt; branch of the Portage tree also has 200+ other CL packages.  Get CL-PPCRE.&lt;/li&gt;

&lt;li&gt;&lt;a href=&quot;http://www.cliki.net/Gentoo&quot;&gt;A CLiki&lt;/a&gt; page about Lisp on Gentoo.&lt;/li&gt;

&lt;li&gt;&lt;a href=&quot;http://common-lisp.net/cgi-bin/darcsweb/darcsweb.cgi?r=portage-overlay-portage-overlay;a=summary&quot;&gt;This post&lt;/a&gt; on the gentoo-lisp mailing list has some nice information about where things go when you install CL packages via Portage.  Might come in handy.&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>QT-GTK</title><link>http://briancarper.net/blog/qt-gtk</link><guid>http://briancarper.net/blog/qt-gtk</guid><pubDate>Sat, 10 Nov 2007 22:30:34 -0800</pubDate><description>&lt;p&gt;For a long time in Gentoo, if I had the &quot;Use my KDE style in GTK applications&quot; option selected in KDE, certain themes would cause all GTK apps to fail to even start.  Only certain QT themes did it though.  Domino for example, which happens to be my favorite QT app.&lt;/p&gt;

&lt;p&gt;I also had some redraw problems with GTK apps no matter what QT theme I used.  When changing between virtual desktops, bits and pieces of certain GTK apps wouldn't redraw properly until I moved them around or resized them.  And as I mentioned an entry or two ago, I had some lag problems when switching between desktops in general.  Nothing show-stopping.  Just barely bad enough to annoy me at times.&lt;/p&gt;

&lt;p&gt;Strangely, all of those problems seem to have been corrected.  Must've been something fixed in the past month.  Or maybe something on my system was b0rked and the slew of updates that accumulated over the past month caused me to have to recompile something that fixed it.  That included a new version of xorg, tons of KDE apps, a new nvidia driver, and lots of other things, and I upgraded freetype to the latest keyworded version.  I wish I knew what it was in particular that fixed things so well.  Such are the mysteries of Gentoo.&lt;/p&gt;</description></item><item><title>Match made in heaven</title><link>http://briancarper.net/blog/match-made-in-heaven</link><guid>http://briancarper.net/blog/match-made-in-heaven</guid><pubDate>Thu, 08 Nov 2007 21:29:19 -0800</pubDate><description>&lt;p&gt;Imagine if you will, a field of daisies.  In the background, some sappy music.  Perhaps &lt;a href=&quot;http://www.youtube.com/watch?v=e4qDvSC9nqo&quot;&gt;Chariots of Fire&lt;/a&gt;?  At one end of the field, running in slow motion, arms spread wide, is a pasty white, lanky, bespectacled geek.  At the other end, a nondiscript black box.  What is this box?  Could it be?  Yes, it's a computer, and it comes bearing the gift of Linux.&lt;/p&gt;

&lt;p&gt;That was more or less the scene today.  After a month of agony, my Gentoo box arived today.  It sustained minor damage during its trans-continental journey.  The case has a dent in the corner, which is impressive given that my case is solid steel.  Both optical drives were bashed into the case, and one drive's front panel was broken off, but it snapped back on OK.  The video card came unseated, but I took it out and put it back in and it worked fine.  This is mostly expected.  I should've packed it properly before I moved, but I didn't have time.  Next time maybe I'll send the parts separately, or else pack the inside of the case with something to pad it.&lt;/p&gt;

&lt;p&gt;Either way, I'm immensely glad to have it back.  All my precious music files, and my precious source code, and my precious desktop shortcuts and conky configs.  I'm now slowly but surely updating all the packages that are out of date, and there are a lot of them.  &lt;/p&gt;

&lt;p&gt;Also 1920x1200 lags KDE pretty badly.  I need to figure out how to liven it up a bit.&lt;/p&gt;</description></item><item><title>What's happening to me?</title><link>http://briancarper.net/blog/whats-happening-to-me</link><guid>http://briancarper.net/blog/whats-happening-to-me</guid><pubDate>Sun, 28 Oct 2007 01:01:23 -0700</pubDate><description>&lt;p&gt;I had to buy a mouse for my laptop, and &lt;a href=&quot;http://www.microsoft.com/hardware/mouseandkeyboard/productdetails.aspx?pid=070&quot;&gt;this Microsoft mouse&lt;/a&gt; is what I got.  Microsoft does actually seem to make decent mouses.  It's a nice little mouse, takes one AA batter that supposedly lasts 6 months, has a little USB antenna that snaps into the base of the mouse for travel and which also turns off the laser when embedded.&lt;/p&gt;

&lt;p&gt;First I managed to tolerate C#, and now I'm using a MS-spawned mouse.  What's happening to me?  What next, will I become a Microsoft MVP (r)(tm)(r) and start hanging pictures of Ballmer all over my living room?&lt;/p&gt;

&lt;p&gt;Or maybe this shows that I'm open-minded and that my undying hatred of MS software isn't due to bias but is actually a valid and well-founded opinion based on the inferiority of the software itself.  Phew.&lt;/p&gt;

&lt;p&gt;In other non-news, I'm really trying to get my Gentoo box shipped out to me within the next week or two.  I'm going through heavy withdrawal symptoms.  Today I dropped into a terminal and tried to wget a file, only to realize that Windows Vista doesn't have such nice things as wget.  Then I curled up into a fetal position under my desk and shook uncontrollably for a half hour.&lt;/p&gt;</description></item><item><title>Vista sucks</title><link>http://briancarper.net/blog/vista-sucks</link><guid>http://briancarper.net/blog/vista-sucks</guid><pubDate>Sat, 13 Oct 2007 19:52:47 -0700</pubDate><description>&lt;p&gt;After moving recently 2,500 miles across the country, my Gentoo machine is on the east coast while I'm on the west coast.  All I have with me is my laptop, which to my everlasting regret runs Vista.  &lt;/p&gt;

&lt;p&gt;Having been forced to use Vista exclusively for a week now, I find myself more and more wanting my precious Linux back.  It's the little things, like wanting to fall to a command prompt to do something quickly but not being able to.  I have cygwin on here, but it's not the same.  And I want to play some MKV files, which either mplayer or VLC plays fine in Linux (I forget which) but which sucks in Windows, even VLC in Windows.  The subtitles are screwed up no matter what I try.  I found a player that works finally, but it's non-free (as in beer, speech, freedom, and everything else).  I want to at least re-arrange the order of running programs in the task bar, if not have multiple desktops, but nope, the task bar is still as pathetic as Windows 95.  &lt;/p&gt;

&lt;p&gt;Today I wanted to fire up the Windows Photo Gallery program, so I opened the start menu, clicked in the search box, and typed &quot;photo gallery&quot;.  My single result was an entry labeled only &quot;setup.ini&quot;.  Note, Photo Gallery IS installed on my computer.  Although to be honest, I had removed the Windows Photo Gallery from the TOP-LEVEL of my start menu, where MS and many other programs had spewed far too many icons that I have to continually scroll past.  And when I put the icon back into my start menu (top-level), then a search for &quot;photo gallery&quot; gives me the launcher icon for the program as well as my good old random &quot;setup.ini&quot;.  But you'd think the search thing would index program names anyways, wouldn't you? &lt;/p&gt;

&lt;p&gt;Many of my games aren't compatible with Vista, like ZSNES for example.  Maple Story barely runs.  &quot;XP compatible mode&quot; proves to be entirely useless, as I expected.  Personally, I'm convinced &quot;XP compatible mode&quot; does absolutely nothing.  Other programs, for no reason I can determine, cause Windows to bail out of Aero and drop back to some dumbed-down interface.  Then when you close the program, Windows bumps back to Aero again.  These aren't games or anything fancy; SPSS for example, a statistics program, causes this to happen.  This is a feature of Vista, but one I can't explain.&lt;/p&gt;

&lt;p&gt;I managed to go a week without disabling UAC, but I just broke down and killed it.  A more stupid idea, I have never seen.  When you show a user a box which says &quot;Is this safe?&quot; 1,000 times, and 999 of those times is for a safe operation, and 1 of those times is something manevolent, there's no chance in Hades that the user is going to get it right.  Vista also retains the continual nagging about not running a firewall or anti-virus program that XP brought into the world.  &lt;/p&gt;

&lt;p&gt;Vista blue-screened on me yesterday too, which is great.  Good old IRQ_NOT_LESS_OR_EQUAL.  I also love how my laptop loses my internet connection every time I put it to sleep (it always has a 30-second lag when I turn it back on where it THINKS it still has a connection, but then fails, just to make things extra special annoying).  I very much love how the computer won't go to sleep at all or activate my screensaver if I have my USB mouse plugged in.  And I love how unbelievably laggy simple file copy/move/delete operations are, for no reason I can determine.  (Note: by &quot;love&quot;, I mean &quot;hate&quot;.)&lt;/p&gt;

&lt;p&gt;Windows Vista: &lt;a href=&quot;http://www.google.com/search?q=windows+vista+polished+turd&quot;&gt;A polished turd.&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Yikes</title><link>http://briancarper.net/blog/yikes</link><guid>http://briancarper.net/blog/yikes</guid><pubDate>Wed, 03 Oct 2007 18:53:11 -0700</pubDate><description>&lt;pre&gt;&lt;code&gt;&amp;gt;&amp;gt;&amp;gt; No outdated packages were found on your system.
 * Regenerating GNU info directory index...
 * Processed 176 info files.
 * IMPORTANT: 96 config files in '/usr/share/X11/xkb' need updating.
 * See the CONFIGURATION FILES section of the emerge
 * man page to learn how to update config files.
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Good thing they could all be blindly overwritten.  The thought of etc-updating that many config files almost gave me a heart attack.&lt;/p&gt;</description></item></channel></rss>

