Older blog entries for ncm (starting at number 410)

Once again, I have remedied the entire lack of audio functionality on a Linux box by purging all the Pulseaudio-related packages, and /etc/asound.conf. While my respect for Lennart is second to none's, my success rate with PA has thus far been zero vs. a remarkably large N. I am finding it hard to blame myself for that, in the wake of my recent success finally getting the Intel Arrandale graphics subsystem on my laptop working.

5 Jan 2011 (updated 5 Jan 2011 at 05:03 UTC) »

Avery's "redo" build tool looks really interesting. It might, by itself, justify his existence.

* * *

Thanks (again) to the many who have expressed sympathy for my health problem. I guess I wasn't clear enough, though: my memory problem has been solved with medication. It has side effects -- loud ringing, jaw clenching at night, waking at 5 AM, and "dry mouth" -- all manageable. I'd like to reduce my dosage, but dare not without objective testing to determine whether the symptoms have begun to return.

It's interesting to explore how complicated short-term memory failure can be. I didn't have any trouble remembering what I had read, or seen, or done. What caused the most difficulty was loss of what might be termed intentional memory, the register of planned future actions. Everybody forgets, sometimes, what we went into the next room to fetch, but we remember that we had meant to fetch something. I didn't. Not always, but the stack overflowed much more easily. Similarly, I could remember three digits, but add three more and any of them might be scrambled.

* * *

My brother tells me Android jumped the shark in their 2.2 release. Now you need 500M of RAM just to run a minimal system. He blames the proliferation of background tasks that can't be turned off, and that insist on running even when they have no work to do, coupled with garbage-collection. He says the machine spends all its time oom-killing and garbage-collecting background tasks, and then restarting them and killing others, so it can't even keep up scrolling with his finger. Apple may have been right to restrict background tasks on the iPhone, but the undisciplined memory habits endemic to Java coding make it deserve most of the blame.

It has been a calmly terrifying last few months. I found I couldn't program any more. When I tried, I would just get sleepy. I left work on medical disability insurance. The mental health people really had no idea what to do, so they just tried different chemicals. Of course they started by diagnosing ADHD and prescribed amphetamines, which were a disaster. As it turned out, my problem was a curiously failing short-term memory. Oddly, it didn't interfere at all with reading, cooking, driving, or grocery shopping. I was just lucky they found, more or less by accident, something that helped. Neurologists have objective tests that would have narrowed the problem, but Kaiser wouldn't let me see any of their neurologists. Hints that it was a memory problem were that I could never remember how I came to be web-surfing instead of coding, and that I couldn't remember an IP address long enough to type it in, or a phone number long enough to dial it.

A few weeks back my wife and kids abandoned Google Chrome, which they used to like, as too buggy, and have gone back to Firefox. The latest version might be better.

My kids and I have been enjoying Osmos ($10). My son has been enjoying Algodoo (~$30), and Numptyphysics (Free), 2D physics simulations. He got a "Spy Trakr" for Christmas, a sort of remote-control tractor with a camera, microphone and speaker, and a little color display on the remote control. What I didn't know at first was that they have a free SDK for it, an ARM Gcc toolchain.

When my mother-in-law's Shuttle went on the blink, I replaced it ($85, Craigslist) and switched her from Ubuntu Edgy to Debian Squeeze, Firefox 2 to Iceweasel 3. She's happier now.

I've installed Squeeze candidates twice. Both times, I tried to install it from a USB thumb drive. Both times, the BIOS insisted it could boot from USB, but did not recognize the Debian boot image as something to boot from. Both times, I ended up burning a CD. Both times, the installer ignored the packages on the CD, and instead demanded a network connection, and installed everything from a mirror.

12 Sep 2010 (updated 12 Sep 2010 at 06:22 UTC) »

Today was the day to remember the United States has announced itself cowards before all the world. Will we ever regain our pride? Not until the last torturing murderer protected by the Pentagon is in chains.

10 Sep 2010 (updated 10 Sep 2010 at 03:26 UTC) »

Who says sociology doesn't have anything useful to offer? This paper, L-worlds: The curious preference for low quality and its norms, by Diego Gambetta and Gloria Origgi, explains so much about so much that the world will never look the same. It explains why offering good free software to people used to expensive bad software just irritates them. It explains why well-reasoned discussion isn't welcome in blog comments. It explains Safeway supermarkets, American cars, and television.

I'm still trying to get this Dell E6510 with integratedIntel Arrandale graphics working. Lately it's been overheating, although I don't know whether to blame linux or Dell. During a long kernel build, it hovers around 101C (spiking over 105, with emergency shutdown) in an X terminal, but around only 75 C without X. Starting a compile jumps the temperature by 18K in a couple of seconds, and stopping drops it by 20K in about the same time.

More mysteriously, the Synaptics touchpad doesn't show up as anything but a PS/2 mouse, so edge scrolling etc. doesn't work. Lots of workarounds are offered all over the web, but none of them help.

To everyone upset about Oracle going on a Java litigation rampage, I have only one thing to say: you had plenty of warning. So, I just laugh. Next, let's see what happens with Mono.

Incidentally, the Ekiga web page, uproariously, recommends installing OSS 4 in order to get it working. Um, no thanks. I won't be installing BeOS either.

8 Aug 2010 (updated 8 Aug 2010 at 07:12 UTC) »

Got the intel "Centrino Advanced-N" 6200 wifi working on this Dell. That meant downloading a "firmware" archive, iwlwifi-6000-ucode-, from Intel's site, and dumping iwlwifi-6000-4.ucode into /lib/firmware. ("apt-get install firmware iwlwifi" might do the job, but that has version 9.193.) I also had to run "rfkill unblock all", and make sure the rfkill switch was off. ("rfkill list" helped.) Astonishingly, somebody actually thought it would be a good idea for the wifi connectivity light on the keyboard to flicker whenever net activity happens, i.e. all the damn time. To fix it, I had to create a file /etc/modprobe.d/iwlcore.conf containing "options iwlcore led_code=1". Now it's just on, steady, when wlan0 is up. Seems like a good default to add to module-init-tools.

I tried setting up pulse-audio on another (intel HDA) box. The process was distressingly similar to the last time, two years ago, e.g. manually editing /etc/asound.conf. Results seem a little more successful than last time, but I made the mistake of trying to use Ekiga to test it. Ekiga appears to be too buggy, still, for the results to mean anything.

5 Aug 2010 (updated 5 Aug 2010 at 07:14 UTC) »

The Inconsolata typeface looks incomparably better in Emacs with "slight" hinting, but other faces, particularly Linux Libertine O, which I use everywhere that I don't want a monospace face, really needs hinting. What to do? I added

    <match target="font">
        <test compare="eq" name="family">
        <edit name="autohint" mode="assign">
        <edit name="antialias" mode="assign">
        <edit name="hinting" mode="assign">
        <edit name="hintstyle" mode="assign">
to my /etc/fonts/local.conf, and then set Gnome's hinting back to "full", and then cycled Emacs through a font change so it would pick up the new setting. That worked for Emacs, but not for gnome-terminal. Apparently Gnome programs make gnome-appearance-properties settings override fontconfig settings. There's a bug filed about that over at Canonical, not that anything's been done about it:
You may recognize from there where I got the code above.

At least Emacs and my Linux Libertine text look good. I have given up and switched to Deja Vu Mono for my terminals.

5 Aug 2010 (updated 5 Aug 2010 at 03:46 UTC) »

A watershed day: I've been using the 6x13 ("fixed") typeface in Emacs, as in xterm, since 1988, and have just switched to Inconsolata 9. (Thanks, Raph!) The final obstruction fell when I discovered that Inconsolata looks phenomenally better with "slight" hinting (set using gnome-appearance-properties). Inconsolata is a little bit less dense vertically -- I fit 82 lines on this screen, where 6x13 fit 88 -- but the width is almost identical. The alternatives to Inconsolata, like Vera Sans Mono and Liberation Mono, waste far too much space to be usable.

Speaking of typefaces, Linux Libertine is so overwhelmingly better looking than everything else, I'm astonished it's not been adopted as the default face on all distros. ("apt-get install ttf-linux-libertine") I have jimmied my fontconfig to substitute it for every face used in every web page, serif or not. If you can tolerate sans-serif text fonts, Biolinum is equally well done.

Xorg on a Dell Latitude E6510 with Arrandale video, using i915 kernel drm, still doesn't work right, but with released Linux 2.6.35 it's better than it was. I have a few patches that, e.g., make it come back after it blanks the screen for inactivity. To unblank it after suspend/resume, I still have to plug and unplug an external monitor. Thanks to Jesse, Chris, and Dave for hammering away at this. There's a fair chance that, and maybe even, will work well enough to be usable by normal people. Maybe released Squeeze will even work out of the box on it, instead of panicking.

401 older entries...

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!