DDE, Debian Data Export
After testing the idea and the prototype with my presentation at
Fosdem, I'm proud to announce
DDE, Debian Data Export.
The problem
In Debian, we publish all sort of information, using all sorts
of data formats (often ad hoc and obscure), in obscure places. Try
to think of an application, for example, that wants to access all
this information together:
- Maintainer <-> Source package mapping
- Popcon rankings
- Changelogs
- .desktop files of packages not installed
- What is in the new queue
- Package screenshots
- Some
statistics
- Localisation information
- uscan status
- Buildd logs
- sloccount run results
- Debian Weather
- Debian Pure Blend specific information
A nightmare, uh?
The solution
DDE is a way to make it simple to publish and download data. The
aim is to be able to access all sorts of Debian information without
worrying about data formats, protocols and access control, and to
make it easy to discover what data is available.
DDE exports data as a big virtual tree. You can pick a node in
the tree by its URL and download all the data that it contains, in
a format of your choice: currently it supports JSON/JSONP, YAML,
CSV and Python pickled objects.
This means that you can now get Debian data using a trivial HTTP
client tool or library, and read it using commonly available
decoders: both should be available in almost any programming
language nowadays. Since JSON and JSONP are supported, this even
includes JavaScript in Ajaxy web pages.
DDE is not a competitor to
UDD: UDD is about creating a
central location where all the data can be accessed, while DDE is
about giving people a simple way to access data or subsets of
data.
In a way, DDE and UDD complete each other: the more data enters
UDD, the more data is available for DDE. In turn, DDE gives a
simple interface to the most popular and useful UDD queries.
The dream
Here are some hints at what can be done with this:
- Autocompletion in HTML fields
- Export data to feed external sites like or
- Have a way for package managers to easily access all sorts of
data
- Have a way to implement fancy tools that can query massive data
sets without needing to download them locally
A call for action
You can add data to the DDE tree by just putting a data file in
yaml, json or pickle format under
~/.dde (I've written
a specific
guide to this on the
Debian wiki).
If you wish to create new and fancy Debian statistics or compute
other sorts of data, or if you already maintain tools that generate
Debian data, including but not limited to, for example:
- Popcon rankings
- .desktop files of packages not installed
- Content of the new queue
- Screenshots
- All sorts of statistics
- Debian Weather
Then please have a look at
http://wiki.debian.org/DDE/StaticData
and try to publish your data in
~/.dde on
merkel.debian.org.
For more complicated cases (like accessing a remote database),
it is possible to extend DDE via
python plugins. You
can get in touch with me if you need to go that way.

Gunnar writes about
dh-make-drupal and says:
Now, I hate having non-Debian-packaged files spilled over my /usr/share partition. Drupal modules want to
be installed in /usr/share/drupal5/modules/module_name (or s/5/6/ for Drupal6, to which I have not yet
migrated).
Well, there are modules in
/usr/share/drupal*/modules (basically the same applies to
themes/), but my
understanding is, that this place is intented for drupal core modules/themes. For your site modules/themes
/etc/drupal/*/sites/foobar/modules can/ought to be used instead. Of course you can symlink to where ever you
want.
Additionally there is
/etc/drupal/6/sites/all where you can put common/system-wide modules and themes
directories that can be used by all Drupal sites. I don't know whether Drupal5 does support this, but at least Drupal6
can and you will run into trouble when using this method with Debian packages because of
#513522.
So, I would recommend not to store packages into
/usr/share/drupal*/modules or
themes/ but maybe use
something like
/usr/share/drupal-contrib/*/modules and
themes/ and a tool/method to symlink
appropriately into
/etc/drupal/*/sites/*/modules similar to update-rc.d or such.
Just my 2 ... ;)
Getting started with a Free Software project and making it available to the community can be confusing for first-time software authors. However there are a couple of things worth knowing that will help you attract more users and increase the likelihood that your software will be part of a Free Software distribution like
Debian.
Idea, Name and LicenseAt the core, a Free Software project starts with an idea. It's the reason why you wrote the software in the first place. Where this becomes interesting is when your think that your software could be useful to others. That's when you should think about sharing your code.
Of course, one of the very first decisions you'll need to make is to name your project. This is of course a very personal decision, but if you're struggling to find something exciting and trendy, consider choosing something that:
- is not already used,
- is easy to remember and
- gives an idea of what the project is about.
Another choice you will need to make before your first release is the license. While that topic may not be familiar or interesting to you, I highly recommend that you
carefully consider your options since your license choice can influence the type of community that will form around your project.
Public ReleaseMaking your project publicly available can be as simple as dropping a
tarball on a mailing list. However, if you want your project to reach all of the users for which it could be useful, there are a few other things you might want to do.
One of these things is to provide a digital home for your project. That homepage should provide access to all of the services related to your project. Such services usually include source control, bug tracking, mailing list and file areas. I've got some
ideas about what that homepage should contain later but first things first, let's look at what that tarball should contain.
Tarball ContentsMost people downloading your source code will either be end-users or
distribution maintainers. Here's what they will be looking for:
- Complete source code along with the data files (if any) necessary to use your software.
- Installation instructions explaining how to compile and install your project on one of the supported platforms. This file is usually called INSTALL.
- Quick instructions on how to get started. This is usually contained in the README and it should provide new users all of the commands or instructions they need to get going within a minute or two.
- Full copy of the licensing terms, usually in a file named COPYING.
- Contact information for help or contributions. Small projects will often share the email address of the main author and a link to the project homepage if available. This is traditionally located in a file called AUTHORS or in the README directly.
This is pretty much the minimum that you need to provide in order for your code release to be useful to others and to be legally distributed by others. There are a few more things that you should think about if you would like to increase the likelihood that your software
will be included in a Free Software distribution.
After putting all of this together, you should be ready for the initial public release of your project and will now be moving to the next phase:
supporting your growing community.
In the next 11 months, I will be spending a significant amount of brain power and time writing a fairly long review article on digital media and ethnography which will assess the state of the literature and various trends. Since my expertise certainly lies in the west or global questions. I will be immersing myself in the literature that looks at various international, national, and regional contexts, which is exciting. It is nice to leave the well trodden path and venture into new lands.
There is a handy new site related to this topic, which some of you might be interested in:
New Media Practices in International Contexts Blog Series. The entries are less blog-like and more article-like but that is was makes them great resources.
In the next 11 months, I will be spending a significant amount of brain power and time writing a fairly long review article on digital media and ethnography which will assess the state of the literature and various trends. Since my expertise certainly lies in the west or global questions. I will be immersing myself in the literature that looks at various international, national, and regional contexts, which is exciting. It is nice to leave the well trodden path and venture into new lands.
There is a handy new site related to this topic, which some of you might be interested in:
New Media Practices in International Contexts Blog Series. The entries are less blog-like and more article-like but that is was makes them great resources.

For my research, to create neat images of the molecules I study, I use
Pymol. It's free, part of
Debian, command-driven, very powerful and it produces really good-looking pictures. Although, admittedly, if you don't buy a subscription, the documentation is rather sparse. I'm using scripts to generate ray-traced pictures, but I can't include the
ray command directly in the scripts, as
Pymol would not give me the opportunity to change anything before tracing (and things I trace take loads of time...). So I write a
ray command, but I comment it out, such as in the following example,
cytochrome.pml:
load http://www.rcsb.org/pdb/files/1c6s.pdb
hide everything
show sticks, (resname HEC)
color orange, (resname HEC)
show cartoon
bg_color white
set_view (\
0.939850032, 0.167392358, 0.297758341,\
0.336208642, -0.299271941, -0.892972171,\
-0.060366094, 0.939367712, -0.337551534,\
0.000000000, 0.000000000, -106.161231995,\
33.668910980, -4.749122620, -24.822664261,\
-9.742469788, 222.064941406, 0.000000000 )
# ray 800,800
So, to easily generate PNG images from such a file, I wrote the following
makefile snippet, that does the job (as demonstrated by the figure on the right, produced by this very snippet ran on the
cytochrome.pml file above):
%.png: %.pml
cd $(dir $<); \
ray_trace_args= grep -o 'ray.*' $(notdir $<) tail -n1 egrep -o '([0-9, ]+)' sed 's/ //g' ; \
pymol -c -d "@$(notdir $<)" -d "cmd.ray($$ray_trace_args)" -g $@
I hope this snippet will prove useful for others. At any rate, it will prove useful for me ! Just for the record, this protein, represented in
cartoon
view, is called cytochrome c
6 and is one of the proteins implied in the photosynthesis of some organisms.

I have spent a couple of days working into
dh-make-drupal. Yes, you guessed right: An idea based on the wonderful
dh-make-perl, but applied to the
Drupal Content Management System.
Drupal's greatest strengths, IMHO, are:
- Drupal offers a huge number of modules and themes
- Drupal has an amazingly sane configuration handling, where -contrary to what usually happens in PHP-land and, in general, among webapps- you set up the code only at a single place, with only the site-specific configuration (usually a single file) handling all of the differences
Yup, even though I am quite fond of its flexibility and power, I fell for Drupal in no small part because of its sysadmin-friendliness.
Now, I
hate having non-Debian-packaged files spilled over my
/usr/share partition. Drupal modules want to be installed in
/usr/share/drupal5/modules/module_name (or s/5/6/ for Drupal6, to which I have not yet migrated). For that reason, over the last year I have been growing my personal apt repository of Drupal stuff. Yes, it is still on, and I don't plan on taking it off. You can access it by adding
deb http://www.iiec.unam.mx/apt/ etch drupal to your
/etc/apt/sources. However, you can now also do the process locally. Do you fancy the wonderful
Biblio module? Or the
very nice Abarre theme? Great!
0 gwolf@mosca 4 /tmp$ ~/code/dh-make-drupal/dh-make-drupal --drupal 5 biblio
0 gwolf@mosca 5 /tmp$ cd drupal5-mod-biblio-1.16/
0 gwolf@mosca 6 /tmp/drupal5-mod-biblio-1.16$ debuild -us -uc >& /dev/null
0 gwolf@mosca 7 /tmp/drupal5-mod-biblio-1.16$ cd ..
0 gwolf@mosca 8 /tmp$ su
Password:
0 root@mosca[1]/tmp# dpkg -i drupal5-mod-biblio_1.16-1_all.deb
Selecting previously deselected package drupal5-mod-biblio.
(Reading > database ... 275110 files and directories currently installed.)
Unpacking drupal5-mod-biblio (from drupal5-mod-biblio_1.16-1_all.deb) ...
Setting up drupal5-mod-biblio (1.16-1) ...
Yay!
Yes, still many more things to come (i.e. including the debuild call and whatnot), but... Enjoy!
BTW, this piece of software owes a couple of beers to
Why the lucky stiff, author of
Hpricot. You are insane (but we are all well aware of that). You deserve to go to the webscraping heaven. Yes, besides the
programming-languages-teaching-cartoon heaven. You find out how to split the time between them.
[Update]: Of course,
ITP bug #514786 has been filed, and I will soon be uploading this into Debian.
End of last year I migrated from PowerPC arch to i386 which made it necessary to reformat/reparition/relabel the old 250
GB disk from Amiga disk label to PC disk label. Therefor I backupped all necessary files from the 250 GB disk to a 160
GB disk.
After installing the system on the 250 GB disk, I wanted to copy over the backup from the other disk, but accidently
issued a pvcreate on the backup partition. Big mistake. ;) No need to tell that lots of files ended in lost+found: 28
GB in total. Of course it's troublesome to sort all those files and directories back to their original places.
Because I don't know any tool yet, I wrote some scripts to address this issue. The first script is to be run to get a
list of directories and files and a unique file identifier for the files.
CODE:
#!/bin/bash
#
# Purpose of this file:
# to make a file that is parseable for recovering
# a filled /lost+found directory by parsing
# filesize, md5sum, permisions and path+filename
#
# first: get all directories
nice -15 find / -path /sys -prune -o \
-path /proc -prune -o \
-path /var/lib/backuppc -prune -o \
-path /var/spool/squid -prune -o \
-type d -print > /root/ls-md5sum-dirs.txt
# next: get all relevant information
nice -15 find / -path /sys -prune -o \
-path /proc -prune -o \
-path /var/lib/backuppc -prune -o \
-path /var/spool/squid -prune -o \
-type f -printf "%s %m " \
-exec openssl sha1 \; sed -e 's/SHA1(//g' -e 's/)=//g' > /root/ls-sha1sum-files.txt
#-exec nice -15 md5sum \; > /root/ls-md5sum-files.txt
This will create two files:
/root/ls-md5sum-dirs.txt and
/root/ls-md5sum-files.txt. The above is the
second version of the file with
openssl sha1 instead of
md5sum, because I discovered that md5sum is
giving me double hashes:
CODE:
muaddib:~# wc -l ls-md5sum-files.txt
712251
muaddib:~# cat ls-md5sum-files.txt awk ' print $3 ' sort -u wc -l
576539
That makes a difference of ~140000 files. The same script with openssl sha1 is giving a better approximation, but still
a gap between those two numbers:
CODE:
muaddib:~# wc -l ls-sha1sum-files.txt
712137 ls-sha1sum-files.txt
muaddib:~# cat ls-sha1sum-files.txt awk ' print $4 ' uniq wc -l
694200
The difference is much smaller with openssl but it takes a lot of more time to generate the resulting file.
Anyway, my second script assumes that the files can be identified by an unique hash. Currently it looks like this:
CODE:
#!/bin/bash
PFAD=$1
dry=$2
# generating md5sum/information of lost+found
echo "Examing $ PFAD /lost+found..."
find $PFAD/lost+found -type f -printf "%s %m " -exec nice -15 md5sum \; > /root/lostfound-files.txt
# creating missing directories if necessary by parsing ls-md5sum-dirs.txt
echo "Creating missing directories..."
for dir in cat /root/ls-md5sum-dirs.txt sed -e 's/\ /,/g' ; do
dir= echo $ dir sed -e 's/,/\ /g'
if [ ! -d "$ dir " ] ; then
echo " Missing dir "$dir" - creating..."
if [ "$dry" = "make_it_happen" ]; then
echo mkdir "$ dir "
fi
fi
done
# next, get the md5sum of files in lost+found and compare it
# against stored md5sum in ls-md5sum-files.txt
echo "Restoring/moving files..."
for z in cat /root/lostfound-files.txt tr -s " " sed -e 's/\ /,/g' ; do
z= echo $z sed -e 's/,/\ /g'
#size1= echo $z awk ' print $1 '
#perm1= echo $z awk ' print $2 '
md5s1= echo $z awk ' print $3 '
path1= echo $z awk ' print $4 '
file= grep $md5s1 /root/ls-md5sum-files.txt
if [ ! -z "$ file " ] ; then
file= echo $file sed -e 's/,/\ /g'
#size2= echo $file awk ' print $1 '
#perm2= echo $file awk ' print $2 '
#md5s2= echo $file awk ' print $3 '
path2= echo $file awk ' print $4 '
echo "$path1 -=> $path2"
if [ "$dry" = "make_it_happen" ]; then
echo mv "$ path1 " "$ path2 "
fi
fi
done
This script generates a similar list as the first script and compares each hash or file and tries to move it back to
its original path. Because of the above mentioned difference between total number of lines and unique liines this
approach seems a little bit broken.
So, dear lazyweb, is there something that can generate unique fingerprints in a reasonable amount of time (like md5sum)
or is there even an already existing application out there that I'm not aware of? And yes: I know that there are backup
applications, but that is another topic. In this case, the backup medium has been corrupt so the problem still exists:
how to identify files in lost+found and move them back in an automatic way, if possible?
I'm appreciating help, tips, patches, ideas, ... :)

From the local paper, yesterday, in a larger article about the bushfires
roaming hither and yon:
While arsonists are allegedly responsible for the fatal fires in Victoria,
it was "idiots" who laid the groundwork for a potential blaze in the Royal
National park near Helensburgh yesterday.
Rural Fire Service Illawarra manager Richard Cotterill said that despite a
total fire ban being in effect for the Illawarra and most of southern NSW,
weekend bushwalkers in the park lit a campfire and then left it to
smoulder.
Mr Cotterill said two trucks with about 10 firefighters tended to the
bushfire hazard just before 1pm, after being alerted to the smoking logs
by a resident.
"Obviously someone has not taken the fire ban rules into account and we
are just lucky that we haven't had any significant wind conditions being
as hot as it is," Mr Cotterill said.
"Something like that is obviously potentially very, very dangerous. You
get a wind blowing embers into the bush and it is downhill from there.
"It's a very stupid thing to do and obviously people don't realise just
how dangerous it can be."
I like Richard. Nice bloke, works hard for the local area, speaks
straight and doesn't mince words. "Idiots" indeed. Several thousand
homes are threatened if the Royal National Park burns. We've got easier
evacuation paths than a lot of the people down in Victoria had, but it
still could have been pretty bad.
Meanwhile, the weather up here has turned grey and cold, which will be a
mixed blessing for the firefighters working up at Peats Ridge and
Singleton, and down around Bega. It's a lot nicer to fight a fire at 24
degrees celsius rather than 40, but the misty rain we've had around home
would be enough to make backburning impossible, whilst not being enough to
really knock down the fire. The winds we got on Sunday night would have
made life far more exciting than is comfortable, too.
We recently bought a Canon Vixia HG20 camcorder. The HG20 records in AVCHD format (MPEG-4 h.264) at up to 1920 1080. To get from the camcorder to a DVD (or something we can upload to the web), I need some sort of video editing software. This lets me trim out the boring bits, encode the video for DVD, etc.
Background
In addition to DVD creation and web uploading, I want the ability to burn high-definition video discs. 1920 1080 is significantly higher resolution than you get from a DVD. There are two main ways to go: a blu-ray format disc, or an AVCHD disc. A blu-ray disc has to be burned onto BD-R media, which costs about $5 each, using a blu-ray burner, which costs about $200. AVCHD discs use the same h.264 encoding that the camcorder does, meaning they have better compression and can be burned onto regular DVD+R media, fitting about 30 minutes onto a DVD. Moreover, it is possible to move AVCHD files directly from a camcorder to an AVCHD disc without re-encoding, resulting in higher quality and lower playing time. The nicer blu-ray players, such as the PS3, can play AVCHD discs.
AVCHD seems pretty clearly the direction the industry is moving. Compared to the tape-based HDV, ACVHD has higher quality with lower bitrates, better resolution, and much greater convenience. Hard disk or SD-based AVCHD camcorders are pretty competitive in terms of price by now too, often cheaper than tape-based ones.
The downside of AVCHD is that it takes more CPU power to process. Though as video tasks are often done in batch, that wouldn t have to be a huge downside. The bigger problem is that, though all the major video editing software claims to support AVCHD, nobody really supports it well yet.
The Contenders
Back when I got my first camcorder in about 2001 the one that I m replacing now you pretty much had to have a Mac to do any sort of reasonable consumer or prosumer-level video editing. We bought our first iMac back then to work with that, and it did work well with the MiniDV camera.
Today, there s a lot more competition out there. The Mac software stack has not really maintained its lead some would even say that it s regressed and the extremely high cost of buying a Mac capable of working with AVCHD, plus Final Cut Express, makes that option completely out of the question for me. It would be roughly $2500.
Nobody really supports AVCHD well yet, even on the Mac. Although most programs advertise support of smart rendering a technique that lets the software merely copy unchanged footage when outputting to the same format as the input none of them have smart rendering that actually works with AVCHD source material. Though this fact is never documented, though discussed on forums.
Another annoyance, having used Final Cut Express in the past, is that with these programs you can t just go to the timeline and say delete everything between 1:35 and 3:52 ; you have to go in and split up clips, then select and delete them. They seem to be way too concerned about dealing with individual clips.
I briefly used Cinelerra on Linux to do some video editing. It s a very powerful program, but geared at people that are far more immersed in video editing than I. For my needs, it didn t have enough automation and crashed too much and that was with MiniDV footage. It apparently does support AVCHD, but I haven t tried it.
I ve tried three programs and considered trying a fourth. Here are my experiences:
Ulead/Corel VideoStudio Pro X2
Commonly referenced as the go to program for video editing on Windows, I started with downloading the Free Trial of it from Corel. Corel claims that the free trial is full-featured all over on their website, but I could tell almost instantly that it wasn t. I wound up buying the full version, which came to about $65 after various discounts.
I wanted to like this program. Its output options include AVCHD disc, Blu-ray disc, DVD+R, and the like. Its input options include MiniDV, AVCHD, ripping from DVD, ripping from Bluray, and just about every other format you can think of. And it heavily advertised proxy editing , designed to let you edit a scaled-down version of AVCHD video with a low-CPU machine, but refer back to the original high-quality footage for the output.
It didn t pan out that way.
The biggest problem was the constant crashing. I really do mean constant. It probably crashed on me two dozen times in an hour. If you are thinking that means that it crashes pretty much as soon as I can get it re-opened, you d be correct. Click the Play button and it hangs. Click a clip and it hangs. Do anything and it hangs.
It did seem to work better with the parts of the source that had been converted to a low-res version with Smart Proxy, though it didn t eliminate the hangs, just reduced them. And every time I d have to End Task, it would forget what it had already converted via Smart Proxy even if I had recently saved the project and have to start over from scratch.
I spent some time trying to figure out why it always thought my project was 720 480 even when it was 1920 1080, and why the project properties box didn t even have an option for 1920 1080. After some forum searching, it turns out that the project properties box is totally irrelevant to the program. Yay for good design, anyone?
VideoStudio Pro X2 does have good output options, allowing combination of multiple source files onto a single DVD or AVCHD disc as separate titles. Unfortunately, its DVD/AVCHD rendering process also yes hangs more often than not.
The documentation for VideoStudio Pro X2 is of the useless variety. It s the sort of thing that feels like it s saying The trim tool is for trimming your clips without telling you what trimming your clips means, or making it obvious how to remove material from the middle of a clip.
The proxy editing feature isn t what it should be either. Instead of being something that just automatically happens and Works in the background, you have to manage its queue in the foreground and it forgets what it was doing whenever the program hangs.
On the rare occasion when pressing Play did not cause a hang, the AVCHD footage played back at about 0.5fps far, far worse than PowerDirector manages on the same machine. Bits that had been rendered for proxy editing did appear to play at full framerate.
I have applied for a refund for this purchase from Corel under their 30-day return policy, and have already uninstalled it from my disk. What a waste.
CyberLink PowerDirector 7 Ultra
This was the second program I tried, and the one I eventually bought. Its feature set is not quite as nice as Corel s, especially when it comes to versatility of output options. On the other hand, it feels done. It only crashed two or three times on me apparently that s GOOD on Windows? Things just worked. It appears to have proxy editing support, but it is completely transparent and plays back with a decent framerate even without it. It can output to AVCHD, Bluray, and DVD, though smart rendering doesn t work with AVCHD source material.
Its weakness compared to the Corel package is that it doesn t have as many options for formatting these discs. You can have only one title on a disc, though you can have many chapters. You have some, but not much, control over compression parameters. The same goes for exporting files for upload to the web or saving on your disk.
The documentation is polished and useful for the basics, though not extensive.
Overall, this package works, supports all the basics I wanted from it, so I m using it for now.
Adobe Premiere Elements 7
I downloaded the trial of this one too. I opened it up, and up popped a dialog box asking what resolution my project would be, interlacing settings, etc. I thought YES now that s the kind of program I want. As I tried out the interface, I kept thinking the same. This was a program not just for newbies, but for people that wanted a bit more control.
Until it came to the question of output. Premiere Elements 7 was the only package I looked at that had no option to burn an AVCHD disc. DVD or Blu-ray only. That s a deal-breaker for me. There s no excuse for a program in this price range to not support the only affordable HD disc option out there. So I didn t investigate very much farther.
Another annoying thing is that Adobe seems to treat all of their software as a commercial. I m a user, not an audience, dammit. I do not want to buy some photoshop.net subscription when I buy a video editing program. I do not want to see ads for stuff when I m reading PDFs. LEAVE ME ALONE, ADOBE.
I just felt sleazy even giving them my email address, let alone installing the program on my system. I think I will feel like a better person once I reboot into Windows and wipe it off my system.
Pinnacle Studio 12
Another program that comes highly rated. But I never installed it because its minimum system requirements state that it needs an Intel Core 2 Quad 2.66GHz or higher for 1920 1080 AVCHD editing. And I have only a Core 2 Duo 2.66GHz half the computing horsepower that it wants. And since they offer no free trial, I didn t bother even trying it, especially since PowerDirector got by fine with my CPU.
Conclusions
This seems to be a field where we can say all video editing software sucks; some just suck a little less. I m using PowerDirector for now, but all of the above programs should have new versions coming out this year, and I will be keeping a close eye to see if any of them stop being so bad.

From my sigfile:
> There really is no substitute for brute force.
Indeed - I must admit to being a disciple of blessed Saint Makita myself.
-- Robert Sneddon and Tanuki, in the Monastery
Over the last couple of weeks, I've been teaching myself
Erlang by solving
the problems over at
Project Euler.
They're interesting problems, require a bit of math knowledge and logical
reasoning (my skills in both have been getting rusty anyway), along with
just enough coding on each problem to make it interesting.
One of the things that I've found, though, is that algorithmic elegance is
required far less often than I had expected. In several cases, I've sat
down with the problem and gone, "well, I can brute-force it like
this, (
clickety click), but I'll bet it'll take forever
to run. I'll set that going while I think about a bett... oh, it's done
already."
Part of this is that I've got a nice shiny-fast computer, and I'm writing
the sort of code that Erlang does well at (and using it's sexy-powerful
concurrent programming features to hammer away at all my CPU cores, with
practically no extra coding effort on my part), but primarily the problem
is that I don't have that good a "feel" for how long something's going to
actually take to run. I suspect I'm not the only one, and that it's not
something that experience is going to completely solve.
My take away lesson from all this (apart from a working knowledge of the
basics of Erlang), is one that has been said a million times before, but
is so easily forgotten in the excitement of coding: premature optimisation
is the root of all evil. In other words, first make it work,
then make it fast.

It is funny the way things work out when you're looking for help.
Recently I was working on a Ruby + FUSE based filesystem and as part of the development I added simple diagnostic output via trivial code such as this:
@debug && puts "called foo(# param );"
That was adequate for minimal interactive use, but not so good for real live use. In real live use I started outputing messages to a dedicated logfile, but in practise became overwhelmed by thousands of lines of output describing everything ever applied to the filesystem.
I figured the natural solution was to have a ring-buffer. (Everybody knows what a ringbuffer is, right?) It could keep the last 500 messages and newer debug information would just replace older entreis. That'd be just enough to be useful if I had a problem, but not so overwhelming it would get ignored.
In Perl I found a nice ringbuffer library, but for Ruby nothing. Locking a region of shared memory via
shmget,
shmset and keeping an array of a few hunded strings would be simple, but it seems odd I have to code this myself.
I started searching around and I accidentally stumbled upon the unrelated
IPC::DirQueue perl module. Not useful for my ringbuffer logging problem, but beautifully useful.
There is no package for Debian but that was easily created:
dh-make-perl --build --cpan IPC::DirQueue
Already I have a million and one uses for it - not least to solve my problem of maintaining a centralised quarantine for all the spam mail rejected by N MX machines. (Which currently uses a combination of
rsync and lockfiles.)
This is the reason why sites like
Perl Advent Calendar are useful - they introduce a useful module every day or two, and introduce you to thinks that you can use in the future.
Of course keeping a sustainable site like that up and running is hard which is why sites like
debaday struggle to attract contributors, for example.
Anyway random happyness.
ObFilm: Lord of the rings: Two Towers

Of course, I was in Brussels this week-end, for FOSDEM. I gave a talk about
Ultimate Debian Database (
slides here) in the Debian devroom. The conclusion was UDD is ready, go play with it! so you know what you should do now! FOSDEM in general was great and huge (see the
video from Quim Gil if you still doubt that) as usual.
On a more sad note, the worst talk of the week-end was without any possible doubt Frans Pop s release team bashing. Nobody is claiming that the release management of the lenny release cycle was perfect: there s always room for improvement. But given the context and the constraints, I think that they did a very good job. Frans talk boiled down to: The release team doesn t know what they are doing, I would have done much better because I m so qualified. Giving such talks at FOSDEM, in front of an audience with many people not involved in Debian development, is really insulting. To make things worse, he finished the talk late, not leaving any time for questions/discussion, so the audience might be left with the impression that his opinions are representative of the opinions of DDs.

Another Monday, start of the working week and I m thinking about business again. Ian Lynch of
The Learning Machine is a smart cookie who I ve collaborated with before. He leads a free-software-based business which is very different from
TTLLP s cooperative model and he gave a talk about it to Manchester Free Software. Here are the headlines:-
- Building a FOSS Business
-
- No fees from licenses
- Services allied to FOSS
- Something everyone needs
- Low cost to produce
- Low cost to distribute
- Encourage FOSS take up
- Increase the number of FOSS contributors
- Make money to support FOSS development
- Background theory and research
-
- Clay Christensen and the theory of disruptive innovation
- The innovators dilemma
- Seeing What is Next
- Business Growth
-
- 3 horizons of business growth
- Horizon 1 current profitable business
- Horizon 2 business with clear potential
- Horizon 3 possibilities currently being explored
- Pipeline for growth
- Tipping points
-
- Critical mass
- Viral effects
- The ideal product
-
- Something everyone needs
- Something that costs nothing to make
- Something that costs nothing to distribute
- Something that has increasing value the more that is bought.
- The INGOTs
-
- International Grades Open Technologies
- Market disruption
- Lower barriers to entry
- Target those currently not in the market
- Provide products that are good enough
- Improve and add features over time
- Primary Schools - KS3
-
- No-one targets primary schools
- Very little certification in KS3
- Use specialist schools community plans
- Upsell from primary to secondary
- KS3 add value at with less work for teachers
- Developing world
-
- Enable developing countries into the qualifications market
- Target those making the transition to FOSS
- Ally to netbook/smartphone internet access to lower costs
- Use UK Awarding Body status for credibility.
The above points are under a Creative Commons
cc-by-sa license and
the original report was at Manchester Free Software. Sometimes FSUK-Manchester produce videos of talks, but I ve not seen this one yet. Watch their page for details.
What can Ian s business analysis teach us about free software businesses? What interesting questions does it leave open?
Have you had anything to do with the INGOTs? I ve not worked in education for a while, so I d love to hear tales from the chalkface about them.

You know, the more I ve been using Twitter the last week or so (
@imbrandon ) I have noticed many things that I ll be blogging about. But one of those such things is the language used on Twitter by large is not the same Language that is used in SMS messages even though the two technologies while very different have quite a bit that would effect the language used in common such as the 140 character limit on tweets and that largely the people that use twitter also make use of SMS messages too.
SMS messages always seem to be much more abbreviated than Tweets , here is an example ( fictional to explain the point better ) :
Twitter to Mark : @MarkRosky Me and Sarah are having coffee at Starbucks on 4th and Grand, come join us if you have time.
SMS to Mark : grabbin cup o java at da spot. get down here
Now I m curious if this is because most people started ( and continue ) to use SMS via limited phone keyboards instead of fuller featured ones on Blackberries, iPhones, and other smart phones ? Is it a mindset when using a device other than a full computer , e.g. when you send a tweet via SMS does it follow the SMS language or Twitter s ? Or am I mistaken and its a whole different demographic ?
I d love to hear your thoughts in the comments
John Robb writes about the normalisation of salaries that is driven by the use of the Internet and global corporations [1]. He cites an example of IBM forcing many of it s employees to work in developing countries for lower wages.
It seems to me that IBM is leading the field in this regard and many other companies will do the same. The computer industry which has been very well paid for the last 20 years seems likely to have some significant reductions in wages. Some computer jobs can t be immediately outsourced to other companies such as network cabling, hardware repair, and training. But they will experience a pay reduction due to competition from software engineers and other people who s primary work is easily outsourced.
For a job hunter it seems that the best thing to do is to look for work that requires site visits and customer contact. One of my long-term clients has a large business in installing wireless devices. For a long time they have had an open offer for me to climb up towers and install wireless devices. If the rates for system administration and software engineering in Australia (and the outsourced work from the US that I sometimes do) drops to Indian pay standards then I might do some of that wireless work.
When recommending that my clients hire people to do software engineering or programming work I am considering seeking out people in low-wages countries that I know through the free software community. I believe that through an organisation like Debian I can find people who are as good as the people I have been finding through my local LUG but who can feel happy earning a much lower rate. My clients seem to periodically need PHP work, so if you live in a low wages country, have good PHP skills, and are well known in the free software community to a degree that I can feel happy in skipping personal meetings then you can email me your CV.
Don Marti has written about the Linux vs Windows situation on Netbooks [2]. He suggests that neither Intel nor Microsoft is set up for a Netbook world. If both Intel and Microsoft were to pay the majority of their employees rates that are only slightly greater than typical wages in India then things might look a little better for them.
During the dot-com boom I was working in Europe (firstly in London and then later in Amsterdam). It was a lot of fun in many ways with large amounts of money, easy work, and parties. The down-side was that I had to work with druggies and other people who were not suitable employees as the companies I worked for felt that they had no choice. Since the dot-com crash the quality of the people I have worked with has increased significantly which was a good compensation for the lower pay. Also I believe that the lack of silly money was one factor that helped Linux and other free software increase market share after the crash. I expect that the economic depression that we are now entering will have a similar effect. I will earn less money, have fewer parties, and work harder. But generally the quality of the staff in the IT industry will improve and the usage of free software will increase.
As an aside, Don suggests that people who create web sites etc will want more expensive machines. I regularly use my EeePC for running servers in several data centers, I do all types of system administration and system programming on it. The screen resolution is not that great, but it shouldn t be difficult to design a Netbook that can drive a 1920*1200 external display (as is being commonly deployed in new hotel rooms - it seems that all new large-screen TVs have VGA and DVI input). A netbook which can drive a 1920*1200 display and a full-size USB keyboard could allow me to do some very effective work in a hotel room while also allowing me to work when traveling in public transport. Now all I need is for the hotel booking sites such as
www.wotif.com to allow me to search for rooms that have such a display. A business hotel could even provide a USB keyboard in the room to allow guests to travel light. Of course it would be possible to design a slightly larger laptop at a Netbook price point, the extra plastic and metal needed to make a larger frame and keyboard costs almost nothing and given the low prices of large desktop TFT displays I find it difficult to believe that the factor of two difference in price between the cheaper and more expensive Netbooks is due to the display.
My main machine is a Thinkpad T41p, I really don t need a high-end machine on my desktop. I am considering the practice of avoiding purchasing expensive machines as a matter of principle. Maybe if we try and avoid buying expensive machines we can help drive the market towards Netbooks where Linux has an advantage.
Last week, we got a new HD camcorder. Jacob has really enjoyed watching video of himself on TV. He wants to watch it over and over. He ll start cackling when it gets close to the parts he thinks are funny. He ll jabber about it That Jacob funny! Sometimes when he hears a question that I asked him on the video, he ll answer it for himself now.
Today, I woke up feeling like vomiting. I haven t yet, but it s been really close. Terah and I explained to Jacob that my tummy hurts. Jacob came over to me and said kiss it! , and kissed me. (If he gets hurt, he wants a kiss where it hurts.)
I ve been in bed sometimes, at the desk sometimes, and at the couch sometimes. It s one of these annoying things where I can t sleep, but the only way I can not feel like vomiting in bed makes me sore after awhile, and sitting at the desk or reading something only works for a little while.
As I was sitting at the desk, Jacob came in and wanted to watch some train videos. See old train! See old train IN SNOW! He usually sits on my lap, his squirmy 2-year-old self, and watches the videos off Youtube. Today I told him he would have to be very still, and he did a very good job of it.
Later he saw me on the couch. Dad sleeping, he said. He gave me a hug, then said, I sleep there too. For about a minute, he had his head on the pillow facing me, with a big smile on his face. Then he was off to find a book or something. Dad have ouchies.
It s very sweet to see his sense of compassion developing already. Even if the bounciness sometimes made my stomach more queasy.

Debian
so needs a
Debian Tartan
theme.
For reference, my .Xresources file contains these
xtartan configuration
items:
XTartan.colorCode.EB: rgb:09FF/21FF/48FF
XTartan.colorCode.DR: rgb:57FF/0000/0AFF
XTartan.colorCode.DY: rgb:E4FF/A8FF/48FF
XTartan.Mine.nextTartan: Debian
XTartan.Debian.sett: %a EB16 DY2 EB16 DR16 BK2 DR16 W6 BK2 W2 BK2 W2 DR6 W2 DR6 W6 BK2 W2 BK2 W2 BK2 W2 DR6 W2 BK2 W2 DR6 W2 BK2 W6 DR6 W6 BK2 W2 DR16 BK2 DR16
Which (when calling
xtartan -r -t Debian) provides for a
nice Tartan background; but it's not a
theme. I'd do it myself,
but I'm not a graphical guy; but I would so love such a theme.
Someone with graphical skills please make it!
Herein I present a
rant on one-tailed tests in the social sciences; feedback welcome:
Unless you have a directional hypothesis for every coefficient before your model ever makes contact with the data, you have no business doing a one-tailed statistical test. Besides if your hypotheses are solid and you have a decent n, the tailedness shouldn t determine significance/lack thereof.
Thought experiment: assume you present a test in a paper that comes out p=.06, one-tailed. That means you have a hypothesis that doesn t really work to begin with (sorry, approaches conventional levels of statistical significance ). More importantly, if you just made up the tailedness hypothesis post facto to put a little dagger (or heaven forbid a star) next to the coefficient, you really did a two-tailed test with p=.12 and then post-hoc justified it to make the finding sound better than it really was.
Now here s the center of the rant: I really don t believe you actually knew the directionality of your hypothesis before you ran the test and were willing to stick with it through thick and thin, since I know that you d be figuratively jumping up and down with excitement and report a significant result if the sign was not as expected and it came out p=.003 two-tailed (p=.0015 one-tailed, opposite directionality), rather than lamenting how it turned out with p=.9985 on your original one-tailed test. I dare say nobody has ever published an article claiming the latter (although I might give it a positive review just for kicks).
And I really don t feel the need to have these discussions with sophomores and juniors, hence why I prefer books that just talk about two-tailed tests (aka not Pollock [a textbook I really like otherwise]) so I don t feel the need to rant.
See also:
this FAQ from UCLA, which is a little more lenient but not much.