Older blog entries for ncm (starting at number 391)

Got a new camera, a Canon Powershot D10 that is supposed to work underwater. The manual says, "Playing back for a long time may cause feelings of discomfort." And regrets, for sure.

I have finally put my "socketpair for win32" (1, 2, 3) on github. That a bug turned up three years after initial posting suggests it is not, in fact, so trivial as I had originally said, and that perhaps, therefore, nothing in programming is. Or that nothing in interacting with an operating system is. Or anyway that nothing in interacting with a Microsoft operating system is. But probably the first is right.

Just shy of three years ago I posted a Free implementation of socketpair for Win32. Today I added a bugfix, connected with Windows System Error 10049 "Event ID 4226 TCP/IP has reached the security limit imposed on the number of concurrent TCP connect attempts."

For a couple of weeks, totem 2.28.5 on Debian has been crashing with SIGSEGV at startup with a message "Invalid column number 6 added to iter (remember to end your list of columns with a -1)". Traceback says this comes from a bad call to strlen, from somewhere under totem_action_set_mrl_with_warning. To fix it, I manually updated totem-common from 2.28.1-1 to 2.28.5-1.

10 Feb 2010 (updated 10 Feb 2010 at 20:36 UTC) »
redi, IlyaM: Ilya, your reaction to the C++ code you saw may (pace Jon) be right. There are heaps, mountains, planets of bad C++ code out there. Most of it probably comes from former (and current) Windows coders and Java coders. It's no harder to write good C++ code than good C code, but they seem disinclined to do it, or don't know how. C presents fewer temptations to bad coding than C++, but fewer tools to write powerful code. When you find a C++ library packed with virtual interfaces, "get" and "set" members, redundant constructors, and operator overloads, what you're seeing is probably just the product of procrastination.

A month ago I quit drinking (green) tea. Now my ADD is gone. I started twelve years ago because I was persuaded that it was "good for me". If you don't have ADD, dropping caffeine might not do you much good. If you do have ADD, have you tried that?

From an exchange on LWN:

... transforms your PHP source code into highly optimized C++ ... PHP->Scheme or PHP->Lisp ... would be seen as ... impossible to use in "real life" ... would be seen as very, very funny -- particularly by Lisp fans ... Roadsend PHP Compiler [is] doing (php -> scheme (bigloo) -> c)

Lisp comedy -- it writes itself.

3 Feb 2010 (updated 3 Feb 2010 at 05:03 UTC) »

My laptop is running linux 2.6.32.7 now, and the $2 Clique HUE cameras that failed with 2.6.29.4 and barely worked with 2.6.31.4 now seem to work fine, even producing credible (fake) 1280x1024 video at low frame rates. Thank you to Brian Johnson, I think.

2 Feb 2010 (updated 2 Feb 2010 at 20:01 UTC) »

I finally saw Avatar. My advice is -- particularly if you're seeing it with kids -- leave the theater at the point right after the first big explosion. At that point you have seen everything original and inspiring, and you can walk out feeling invigorated and inspired by the visuals, and forget all about the toy plot. Every detail after that point rings false. It just keeps getting dumber and dumber until it's just a parody of every other Hollywood explosions movie.

Seriously, there are two movies here. The first is beautiful. The second is ugly and stupid. There are much better things to do with that final half hour than getting dragged through Hollywood's gutter.

Epiphany itself has a nice new version, 2.29.6. It now gets stuck in an infinite loop while rendering (some?) meetup.com pages, failing to render any other pages and keeping CPU usage pinned at 100%, or even crashing outright. It's not entirely certain 2.29.5 didn't also fail on these pages with Webkit 1.1.19, or even Webkit 1.1.18, but with Webkit 1.1.17 it didn't.

25 Jan 2010 (updated 26 Jan 2010 at 23:01 UTC) »

Webkit released a version 1.1.19, so I decided to try out Epiphany on it. The bug from 1.1.18 that made Epiphany unusable is fixed, but none of the Debian changelogs nor the Webkit or Epiphany changelogs hints at anything germane. Maybe it was some random library incompatibility, fixed by my upgrading libgtk or something in the meantime. So, I am left to thank the anonymous person who fixed it. Thank you, anonymous person.

Sadly, it still ignores my Gnome edit-key bindings setting.

382 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!