Chris Lamb: FOSDEM 2008

I’m off to FOSDEM in a few minutes (it’s nearly bedtime, right?), getting the 10:00 Eurostar. Give me a shout if I owe you a beverage or something..

I’m off to FOSDEM in a few minutes (it’s nearly bedtime, right?), getting the 10:00 Eurostar. Give me a shout if I owe you a beverage or something..


Yesterday witnessed the most important step forward for the Definition
of Free Cultural Works (DFCW) since its adoption and endorsement by
the Wikimedia Foundation a year ago.
Although I might have wished things otherwise, Creative Commons is
not a social movement fighting for essential freedom or the essential
freedoms at the core of the DFCW in particular. From the movement's
perspective, CC is more like a law and advocacy firm that works for us
-- a very sympathetic one. CC writes, hosts, and supports a variety of
licenses. Some are free. Some are not. Last year they took steps to
explicitly limit the extent of restrictions they are willing to tolerate
in their licenses.
Yet, while CC has resisted taking a stand in favor of the Definition of
Free Cultural Works, they continue to produce some of the best free
licenses, tools, and metadata available and they seem honestly
interested in helping users interested in social movements based around
these definitions organize more effectively.
In perhaps its most important move to date in this area, Creative
Commons announced yesterday that it was placing a seal on each of
its licenses that provide the essential freedoms laid out in the
Definition of Free Cultural Works. The seal links to the definition
over at freedomdefined.org. In Creative Commons' words:
This seal and approval signals an important delineation between less and more restrictive licenses, one that creators and users of content should be aware of. A very practical reason users should be aware of these distinctions is that some important projects accept only freely (as defined) licensed or public domain content, in particular Wikipedia and Wikimedia sites, which use the Definition of Free Cultural Works in their licensing guidelines.The seal is currently on two CC licenses that provide for essential freedom (Attribution and Attribution-ShareAlike) and their public domain dedication. Thanks go to Erik Moeller at the Wikimedia Foundation and everyone at Creative Commons to helped make this happen.
1. After several years of it sitting on my shelf, I finally read Kernighan and Pike's "The Practice of Programming". I was always a little intimidated by this slender little book. I felt like it was full of wisdom that I couldn't really absorb at the right pace. Now that I've spent some time working on more challenging code and trying to come to grips with at the least the basics of more advanced computing concepts it was the right time to read it. I can't recommend it highly enough, it really is packed with wisdom. I've got Kernighan's "Software Tools" on the way, and I'll post a proper review of this at some point since it's not as well known.
After about two weeks I'm finally able to come back to Debian, which feels good. After my last package upload was botched (and gracefully recovered by my teammates) I realized that I needed to step away for a little bit.
Today, in a fit of fool-Hardy-ness, I upgraded one of my computers to the most recent Ubuntu development release, codename Hardy Heron. Amongst the several other bugs I encountered (the kernel not booting was a rather noticable one…) was this adorable little bug in tracker.
(Some background info: Tracker is a file alteration monitor - like Apple’s Spotlight, and …whatever the Vista knockoff is called. ImageMagick is an image processing utility, invoked with the command “convert”.)
So - picture this situation: Tracker is searching along, and encounters a graphics file. Being a graphics file, Tracker realizes it wants a thumbnail. Tracker calls convert. Convert creates a temporary file. Tracker notices a file has been created. It notices that this file is an image file, and therefore wants a thumbnail. Tracker calls convert…
You can guess what happens from here on.
... when you're having fun. This blog turned five
a few days ago.
For various reasons, I usually carry an USB stick with me that holds a single ext2fs and has grub installed. This blog
entry quickly documents how to copy a Debian-Installer to it to be able to quickly install Debian without the need to
burn a CD.
I had tried this stunt last year already, but without success. I don’t know whether Debian Installer was not able
to boot from an USB stick back then or if I was just too stupid to do things right. This procedure was done with
today’s d-i daily image, so I guess that it will work this way in the future.
I’d like the USB stick to be useable for other things even if d-i is available on it as well. So I would have
liked d-i to be confined to a single subdirectory, which is possible with today’s code.
The Installation Manual is rather verbose about booting from USB stick. The only challenge is to find the Kernel and
the initrd files that are needed to actually boot. The exact path to these two files is not in the manual, but the nice
people on #debian-boot confirmed that these are the correct ones.
The second challenge was a non-issue for me since grub was already installed and functional on the USB Stick (its
installation was also surprisingly straightforward).
Next step: Create a directory on the USB stick and copy vmlinuz, initrd.gz and an arbitrary Debian CD image there. I
used the daily netinst image.
root (hd0,3); kernel /d-i/vmlinuz expert; initrd /d-i/initrd.gz and boot
That’s it. The installer boots, finds the CD image, mounts it and pulls its components from there. The rest is a
normal, stock Debian installation. Debian Installer rocks. It nearly always does the right thing.
Russ Nelson: The Influence of Government writes: "Larry Lessig proposes to lessen the influence of money on legislators. Unfortunately for him, he is trying to hide a symptom without curing the disease. The disease is that governments regulate businesses. The symptom is that businesses then have a profit motive in regulating governments. If you want a government which is free of corruption, you have to eliminate the motive for corrupting them."which looks like utter bovine excrement to me. Corporations - and the overpowering profit motive of some corporations - are artificial things, created purely by regulations. If you free corporations from all regulations, you destroy them. If you only free them from taxes, you remove some of the few restraints on their bad behaviour in pursuit of profit. See Joel Bakan: The Corporation for a better approach. In summary:-

I'm (again) writing a library that is supposed to be cross-platform, but needs sort of an event loop, which I'd rather leave in the main program and just give them a bunch of file descriptors to watch and a timeout.
Problem is, file descriptors are platform dependent.
There are a few approaches to this. The mighty ASIO simply annexes the entire loop, and just tells people to hook into it if they need anything -- it works, but on the downside you get threads for free when you didn't want or need them.
Simply spawning a new thread for everyone isn't a solution either, as it requires me to do lots of synchronised inter-thread communication -- and on Windows, file handles are thread affine, so I cannot even call into the same library from different threads.
I will probably go with ASIO for this project, but I'm fairly certain that there are better solutions out there.


Being able to compare images can be really useful sometimes; I found it extremely helpful when I wanted to know what changed between two releases of the same font. Imagemagick does the trick via a set of really powerful command line tools. Here's a very simple demonstration: which results in the following output:
pango-view --font="DejaVu Sans Mono" -t "Hello World" -w 180 -q -o a.png
pango-view --font="DejaVu Sans Mono" -t "Hello world" -w 180 -q -o b.png
compare a.png b.png hello_diff.png
We can now apply the previous tip to something more useful; let's say we want to know how the glyphs in a font changed from a release to another. In a previous post I've explained how to render all the glyphs into a nice PDF using fntsample; we just need to create PDFs for both releases and compare them... ain't that easy? # Let's suppose you have already created PDF files inside the following dirsThis is what you get when a glyph was modified:
a=dejavu-2.22
b=dejavu-2.23
vsdir="$ a _vs_$ b "
mkdir $vsdir
for f in $(find $a -name '*.pdf') ; do
f=$(basename $f)
apng=$ a /$ f/.pdf/
bpng=$ b /$ f/.pdf/
mkdir $ apng $ bpng
echo "*** $ f ***"
# pdf -> pngs
convert $ a /$ f $ apng /$ f/.pdf/ .png
convert $ b /$ f $ bpng /$ f/.pdf/ .png
# compare pngs and, if different, show whre they differ in a png
for p in $(find $ apng -name '*.png') ; do
p=$(basename $p)
meas=$(compare -metric AE $ apng /$ p $ bpng /$ p $ vsdir /$ p 2>&1)
if [ $ meas -eq 0 ] ; then
rm $ vsdir /$ p $ apng /$ p $ bpng /$ p
else
echo " - $ p "
fi
done
done
In case of newly introduced glyphs you get the following:
After a failed attempt to fix Penny s car speakers taking
apart the interior of a Ford is way harder than it should be, and
of course we came out of the quest with the obligatory screw which
wouldn t fit anywhere I bought a pair of portable speakers. The
Logitech PureFi Anywhere convinced in terms of sound quality,
and we greatly enjoyed them on our
roadtrip.
Having bought them in New Zealand, the speakers of course came
with a type I power
plug, while most of Europe uses a type-C-compatible plug. The
design is modular, allowing for the actual plug to be swapped, so I
bought it anyway:
Back home, I contacted Logitech and asked them how to get the
adapter swapped.
Their response? It is not possible to obtain the modular plug
separate from the speakers.
Logitech uses a modular approach to optimise their product lines
and ultimately, their profit, but they don t deem it necessary to
leverage the power from this approach to serve their clients.
Guess who won t be buying Logitech products again! If you are
considering their stuff, please think twice.
If anyone knows of a way to get at such an adapter, or has one
to trade, or can help otherwise, please get in touch with
me. Thanks!
NP:
The Pineapple Thief: 137
Are any worker cooperatives reading this involved in any Local Strategic Partnerships or Strategic Economic Partnerships? If so, please contact me (use the contact form on the page for this post and mark it "not for publication"). I've some questions about it from a Regional Cooperative Council. Any other comments about LSPs and SEPs can be fed back if you want to send them to me. As an example, our local LSP is http://www.northsomersetpartnership.co.uk/

Regardless of what Fox business-creature Neil Cavuto may have to say on the subject, healthcare and profit are two thoroughly antithetical concepts. Giving CEOs the authority to stand on the edge of the arena and issue a final thumbs-up or down while we lay incapacitated or dying is like charging a lion with protecting the Christians.
I'm employed at Solarflare
Communications in the test group, supporting the work of testers
and developers by developing test frameworks. (We actually have very
few pure testers and a whole lot of automation.). In a major break
from my previous jobs, I've been working mostly in Python on
applications for use in-house.
More recently I've become involved in maintenance of our network driver for
Linux, starting with updating it to use current kernel coding conventions, and
submitting for inclusion in the kernel. This has become a bit frustrating
because while there are a lot of people prepared to run checkpatch and pick
nits, there are not so many who will do a thorough review of a driver that's
20,000-odd lines long. And without someone doing that, it won't go in.
Meanwhile some of my colleagues have done some great work to accelerate
Linux networking on Xen by having drivers in dom0 and domU cooperate to expose
hardware resources directly to domU. Our hardware architecture supports many
virtual NICs with their own packet queues and set of buffers, so this does
not compromise the security of the physical machine and dom0. The results
are very impressive.
The original motivation for the virtual NIC architecture was as a basis for
a user-level networking stack, which can provide very low latency and reduced
CPU usage. This software was originally proprietary but has now been released
under GPLv2 as OpenOnload. Google
invited two of my senior colleagues to talk about this - here's
a video of their talk about user-level networking.
Next.