
From tomorrow, if you start seeing bugs or getting email about your packages where the version string ends in em[0-9], or where dependencies mentioned by reportbug include such a version suffix, the user is running one of the two Emdebian distributions to be released alongside lenny (and based on lenny packages). You might also see Emdebian in the output of 'apt-cache policy' if your bug reports request or supply such data.
If there is any doubt that the bug is present in Debian, please immediately re-assign the bug to the buildd.emdebian.org pseudo-package in the BTS.
I'll be posting to d-d-a with more information on the releases and the em1 version suffix - just as soon as Lenny itself is released.
A patch for reportbug is being tested and I'll file the bug probably tomorrow. A large proportion of the development work to actually get Emdebian to the point of two releases only happened after the lenny freeze began. (Not the recent deep freeze, the initial toolchain freeze before DebConf8). (reportbug itself is not currently part of Emdebian for a variety of reasons.)
Emdebian only uses a small subset of Debian packages, so this principally involves the core packages in Debian, GTK+2.0 and dependencies, XFCE and GPE as well as a small number of applications like iceweasel, sylpheed, xchat-gnome and grisbi.
The two Emdebian distributions will be:
Emdebian Grip 1.0 (lenny)
A small Debian-compatible Emdebian installation
Full release title:
Emdebian GNU/Linux Grip 1.0 (based on Debian GNU/Linux 5.0 "lenny").
Short release name:
Emdebian Grip 1.0 (lenny)
Common release names:
Emdebian Grip or Grip (lenny)
Architectures: i386, amd64, powerpc, arm, armel, mips and mipsel
Emdebian Grip explicitly supports mixing Debian and Emdebian and that is how a Debian package could end up depending on a package from Emdebian Grip - this is not expected to be a problem because Grip packages are binary-compatible with the Debian version, just with some files removed from the package. (i.e. Grip is post-processed, not recompiled.) Grip typically comes in at ~600Mb for a full XFCE desktop and uses the Lenny debian-installer images. (Grip base system ~250Mb.) I'm currently running Emdebian Grip on my Acer Aspire1.
More information:
http://www.emdebian.org/grip/
Emdebian Crush 1.0 (lenny)
The smallest Emdebian installation - cross-built from Debian sources.
Full release title:
Emdebian GNU/Linux Crush 1.0 (based on Debian GNU/Linux 5.0 "lenny").
Short release name:
Emdebian Crush 1.0 (lenny)
Common release names:
Emdebian Crush or Crush (lenny)
Architectures: arm only
More information:
http://www.emdebian.org/crush/
Crush is the cross-built distribution from Emdebian - significant functional changes exist compared to the Debian package, libraries have been recompiled with options turned off and functionality removed etc. and Crush has dropped support for python or perl, and uses a modified, more recent version of busybox instead of coreutils. Crush is the hardest distribution to install, maintain and update and requires extensive customisation for particular machines with the benefit that it is an ultimately flexible Debian where the base system (equivalent to a debootstrap in Debian) can fit into 24Mb installed and a GPE GUI in 75Mb. uClibc support is expected in Crush 2.0 (squeeze), allowing sizes to shrink by another 10Mb or so. I'm currently running Emdebian Crush on my
balloon3.
I've been doing some work on
LangPop.com, and one of the things I'd like to do is update the chart software. What I have now,
Plotr seems to work ok, but being the tinkering type, I want to fix things, even if they're not broke. Truth be told, my worry is that Plotr isn't maintained any more, so it would be a good idea to find something that's receiving a bit of attention.
The candidates:
These seem to be fairly up to date in the sense that someone worked on them recently. There are some older ones like PlotKit, that do not appear to be maintained any more. It is entirely possible that I missed a good one. Another possibility would be to use Google's chart API, but I'd rather be a little bit more in control of things than to farm that out, and I also am planning on doing some interactive features in the near(ish) future.
So let's have a look:
Flot
Based on JQuery, this one looks fairly complete, and has a lot of different, nice looking charts. Since I don't really care what library it's based on JQuery seems as good as any other, being quite popular these days. Installation is pretty simple, and, having good defaults, it's easy to get nice looking data up on the screen in short order.
Flotr
Modeled after Flot, Flotr uses Prototype (the Rails default) instead of JQuery, and is the follow up to Plotr. I'm not quite sure what the motivation was behind the name/project change, but this seems to be where the guy is spending his time. Since he did a good job with Plotr, this one seemed worth a look too.
ProtoChart
This one is based on Prototype too. It immediately annoyed me by uncompressing from the .zip file in the current directory, scattering files around. I've always found this behavior a bit antisocial. This code claims to be "motivated by Flot, Flotr and PlotKit libraries", which indicate that it's fairly recent. However, my feeling is that the problem is not necessarily how old code is in these projects, but how quickly they spring up, bloom, and then stagnate. I'd like to use something that's got some staying power... But anyway, ProtoChart looks like pretty good code, even if the distribution is a bit minimal, and doesn't come with examples.
If you look at LangPop.com, you'll notice something that's very important for my choice: I need a barchart that has horizontal bars, rather than the more traditional vertical bars. This is because it would be quite difficult to squeeze so many languages across the screen horizontally. This ended up being the deciding factor: like Plotr, Flotr supports horizontally oriented bar charts, making it the obvious choice. The other two libraries looked pretty good too - Flot, in particular, looks like quite solid code.
So, there you have it - very brief reviews of an incomplete selection of libraries! In my defense, the goal is to attempt to dominate my
maximizing nature, pick one, and get on with doing some cool stuff with LangPop. I do, however, welcome comments and suggestions.
I already
wrote two days ago about it, but the problem then was to find a way of unique identifiers for files.
Using
md5sum and
openssl sha1 seemed to deliver multiple files for each hash, which confused me.
A closer look later revealed that there were in fact multiple times the same file, so the same hash is of course
correct.
Anywa, I'm now using the following two scripts to create an index file about the content of my filesystems and to be
able to restore files from lost+found.
CODE:
#!/bin/bash
#
# Usage: ./make-lsLR.sh
#
# Purpose:
# to make a file that is parseable for recovering
# a filled /lost+found directory by parsing
# filesize, md5sum, permisions and path+filename
#
# Author: Ingo Juergensman - http://blog.windfluechter.net
# License: GPL v2, see http://gnu.org for details.
#
# 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 %U:%G %#m " \
-exec nice -15 md5sum \; tr -s " " > /root/ls-md5sum-files.txt
CODE:
#!/bin/bash
#
# usage: check_lostfound.sh <pathtolost+found> [make_it_happen]
#
# Purpose: to find files in lost+found and trying to restore
# original files by comparing ls-md5sum-files.txt (generated by
# make-lsLR.sh
# Option make_it_happen cause the data actually being written/moved
# whereas the script runs in dry mode per default.
#
# Author: Ingo Juergensman - http://blog.windfluechter.net
# License: GPL v2, see http://gnu.org for details.
#
PFAD=$1
dry=$2
# generating md5sum/information of lost+found
echo "Examing $ PFAD /lost+found..."
find $PFAD/lost+found -type f -printf "%s %U:%G %#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 "/space/check_lostfound/$ dir " ] ; then
echo " Missing dir "$dir" - creating..."
if [ "$dry" = "make_it_happen" ]; then
mkdir -p "/space/check_lostfound/$ 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 '
ugid1= echo $z awk ' print $2 '
perm1= echo $z awk ' print $3 '
md5s1= echo $z awk ' print $4 '
path1= echo $z awk ' print $5 '
file= grep -m 1 $md5s1 /root/ls-md5sum-files.txt
if [ ! -z "$ file " ] ; then
file= echo $file sed -e 's/,/\ /g'
size2= echo $file awk ' print $1 '
ugid2= echo $z awk ' print $2 '
perm2= echo $file awk ' print $3 '
#md5s2= echo $file awk ' print $4 '
path2= echo $file awk ' print $5 '
if [ ! -e /space/check_lostfound/$ path2 ]; then
echo "$path1 -=> $path2"
if [ "$dry" = "make_it_happen" ]; then
cp "$ path1 " "/space/check_lostfound/$ path2 "
fi
fi
fi
done
It's actually working for me, but use them at your own risk - as always! ;)
Anyway, there are some drawbacks with these versions:
- it is dog slow. Grepping through 75M of ls-md5sum-files.txt for each file found in lost+found is CPU-intensive and
slow.
- files with spaces in their names are not handled well. In fact they are not handled properly at all. You'll get
"file not found" errors for each filename with spaces.
- currently grep -m 1 stops grepping when the first match was found.
If anyone has an idea how to speed up the script or improve it otherwise, please let me know! I already though by
myself to remove found files from
ls-md5sum-files.txt to reduce the workload on grepping every time all of the
75M and to work around the last point from above. But rewriting the file everytime a fiel was found and moved will put
extra workload on disk I/O, which - of course - will get better over time because the file gets smaller. Another idea
was to store the file within an array in memory, but then I would prefer to use a Python script for this purpose.
So, when you have some ideas, tips or improvemts, please comment!

I recently received an email from
Sigma Xi with various
news items. One of them mentioned a Hawking quote:
Science fiction is useful both for stimulating the
imagination and for diffusing fear of the future.
-- Stephen Hawking?
Now, Sigma Xi is generally a pretty reputable organization, but I
wondered: is a scientific organization really encouraging fear of the
future? Mind, I think a certain degree of concern about the future is
healthy, both individually and societally, and there is a
long
tradition in science fiction of writing novels about
terrifying futures. But Sigma Xi is usually upbeat about the wonders
of science and technological progress. Besides, there's a real
dissonance in that quote between becoming more creating and
imaginative, and becoming more afraid of the future. Maybe it was
intentional, but it seems very out-of-place. So, I started to wonder
whether this was really what Hawking said. Typing a few key words
into Google, I looked at where else this quote showed up.
According to the NSF, Sigma Xi's quote is
correct.
According to renowned physicist Stephen Hawking, "science fiction is
useful both for stimulating the imagination and for diffusing fear
of the future." Interest in science fiction may affect the way
people think about or relate to science...
ERIC, which is some sort of database of internal government reports,
agrees:
According to renowned physicist Stephen Hawking, "science fiction is
useful both for stimulating the imagination and for diffusing fear
of the future." Indeed, several studies suggest that using science
fiction movies as a teaching aid can improve both motivation and
achievement.
So, maybe Hawking really does encourage being afraid of the future?
Well, here was the third and final reference to this quote that I
found, from (of all places) an unofficial transcript of a
Larry King Live interview:
HAWKING: I think science fiction is useful, both for
stimulating the imagination and for defusing fear of the
future. But science fact can be even more amazing. Science fiction
never suggested anything as strange as black holes.
So, it looks like this quote comes from a live TV interview. I don't
know whether the different interpretations come from different
transcripts (this is the only one I can find);
defused
and
diffused
are similar enough that it would be easy for either
one to be reasonable -- and IIRC, he speaks through some sort of
speech-generating machine, which would just make it easier to
misunderstand him. But given that Hawking is a crazy-science-guy, I
suspect that he would rather
defuse fear of the future than spread
it around (even if it became more diffuse as it was spread), and that
the transcript above is what he meant to say. In which case, I wonder
about the versions of the quote that I found everywhere else. Didn't
anyone do a double-take when they were typing up those papers, Web
pages and news items?
Of course, there is a third possibility, which I rather like: the
quote could be a play on words, a sort of
slant pun
(a phrase
that I just invented, which is the funnier cousin of a
slant rhyme). What's particularly cool about this particular
ambiguity is that (a) both sentences are sensible, (b) they have
related but opposite meanings, and (c) somewhat oddly, I agree with
both of them: science fiction is good at defusing unwarranted fear of
the future, while also diffusing fear where it's entirely warranted.
I doubt Hawking was going for the double meaning, but it's a nice
thought.
And for the inevitable people who can't figure out what this blog
entry is about, here's a hint:
diffuse:
Verb
- (transitive) To spread over or through as in air, water, or other matter, especially by fluid motion or passive means.
- (intransitive) To be spread over or through as in air, water, or other matter, especially by fluid motion or passive means.
defuse:
Verb
- To remove the fuse from a bomb, etc.
- To make something less dangerous, tense, or hostile.
Not so long ago, I was lamenting to some Debian developer about how LONG it took for me to write stuff, of any quality at least. And aside from my own slowish pace, the academic publishing process is slow as molasses. The two together make for a deadly combo. This friend reminded me that Debian took a heck of a long time to release and at the time, this reminder actually made me feel a lot better. Well, after years of toiling, updating, bug squashing, and lots of lots of arguing, Lenny is coming out and those of us in NYC are celebrating. Though this has been circulated on the Debina-nyc list, it never hurts to circulate a little wider, especially for this event.
Attention New York City Debianistas,
The astrological confluence of 1234567890[0], the impending release of
Lenny[1], and the odd sighting of a horned mythical beast that
cryptozoologists are calling a new FTP-master-assistant/slave being
sighted in the mist off the shores of the East River[2] will result in
all emacs users to transcend and all vim users to be transponded to
their respective motherships, which are scheduled for near-orbit on that
night.
You will only be taken if you have a sip of beer on the 13th, before
6:31:30pm at the Pacific Standard[3].
If you come late, you may suffer nano for all eternity.
Micah
ps. All nano users will be Left Behind to tend to the servers that we
did not bring with us on the Rapture rickshaw.
ps. lets keep the the post-apocalyptic space editor battle that will
erupt between the S.S. Church of Emacs, and the H.R.H VIMperator
mothership for later, and drink with revelry together now.
0. date -d @1234567890
1. http://lists.debian.org/debian-devel-announce/2009/02/msg00000.html
2. http://lists.debian.org/debian-devel-announce/2009/01/msg00004.html
3. http://www.pacificstandardbrooklyn.com
Not so long ago, I was lamenting to some Debian developer about how LONG it took for me to write stuff, of any quality at least. And aside from my own slowish pace, the academic publishing process is slow as molasses. The two together make for a deadly combo. This friend reminded me that Debian took a heck of a long time to release and at the time, this reminder actually made me feel a lot better. Well, after years of toiling, updating, bug squashing, and lots of lots of arguing, Lenny is coming out and those of us in NYC are celebrating. Though this has been circulated on the Debina-nyc list, it never hurts to circulate a little wider, especially for this event.
Attention New York City Debianistas,
The astrological confluence of 1234567890[0], the impending release of
Lenny[1], and the odd sighting of a horned mythical beast that
cryptozoologists are calling a new FTP-master-assistant/slave being
sighted in the mist off the shores of the East River[2] will result in
all emacs users to transcend and all vim users to be transponded to
their respective motherships, which are scheduled for near-orbit on that
night.
You will only be taken if you have a sip of beer on the 13th, before
6:31:30pm at the Pacific Standard[3].
If you come late, you may suffer nano for all eternity.
Micah
ps. All nano users will be Left Behind to tend to the servers that we
did not bring with us on the Rapture rickshaw.
ps. lets keep the the post-apocalyptic space editor battle that will
erupt between the S.S. Church of Emacs, and the H.R.H VIMperator
mothership for later, and drink with revelry together now.
0. date -d @1234567890
1. http://lists.debian.org/debian-devel-announce/2009/02/msg00000.html
2. http://lists.debian.org/debian-devel-announce/2009/01/msg00004.html
3. http://www.pacificstandardbrooklyn.com
On February 15th, we are having an election to decide whether a constitutional amendment will be accepted or not in Venezuela. I don't want to talk about this. Instead, I'd like to talk about the funniest Political Propaganda I have seen at the moment regarding the elections.
I was driving from my girlfriend's home to mine when suddenly I saw a guy with a banner hanged on him. When he was near to my car, I was able to read what he had written on the banner. I read:
"Vota NO a la mierda. Dale bomba".
Look at the picture:
Translated it means:
"Vote NO to the shit. Flush the toilet".
I got very surprised about the imagination used by that guy. I laughed out loud. I think it has been the funniest political propaganda that I have seen ever..
On February 15th, we are having an election to decide whether a constitutional amendment will be accepted or not in Venezuela. I don't want to talk about this. Instead, I'd like to talk about the funniest Political Propaganda I have seen at the moment regarding the elections.
I was driving from my girlfriend's home to mine when suddenly I saw a guy with a banner hanged on him. When he was near to my car, I was able to read what he had written on the banner. I read:
"Vota NO a la mierda. Dale bomba".
Look at the picture:
Translated it means:
"Vote NO to the shit. Flush the toilet".
I got very surprised about the imagination used by that guy. I laughed out loud. I think it has been the funniest political propaganda that I have seen ever..

Since several month,
awesome users have reported a bug with
OpenOffice.org. When using OOo and clicking on a menu, or using the mouse wheel to read a document, the currently selected tag (desktop) will change automagically to another one.
I've digged into awesome and found that awesome received a _NET_CURRENT_DESKTOP request. As defined by
EWMH, this kind of request are sent by a pager to change the active desktop.
That was weird. Nobody is using a pager here. So, I just kicked my gdb out, attached it to OOo, breaking on
XSendEvent call. And I got it:
Breakpoint 1, XSendEvent (dpy=0x1a00080, w=483, propagate=0, event_mask=1572864, event=0x7fff1fd70d70)
at ../../src/SendEvent.c:46
(gdb) bt
#0 XSendEvent (dpy=0x1a00080, w=483, propagate=0, event_mask=1572864, event=0x7fff1fd70d70)
at ../../src/SendEvent.c:46
#1 0x00007f8c0ab4193f in vcl_sal::WMAdaptor::switchToWorkArea ()
from /usr/lib/openoffice/basis3.0/program/libvclplug_genlx.so
#2 0x00007f8c0aafdbd8 in X11SalFrame::Show ()
from /usr/lib/openoffice/basis3.0/program/libvclplug_genlx.so
#3 0x00007f8c1378623c in Window::Show ()
from /usr/lib/openoffice/program/../basis-link/program/libvcllx.so
#4 0x00007f8c13785f40 in Window::Show ()
from /usr/lib/openoffice/program/../basis-link/program/libvcllx.so
#5 0x00007f8c1372cb54 in FloatingWindow::StartPopupMode ()
from /usr/lib/openoffice/program/../basis-link/program/libvcllx.so
#6 0x00007f8c1373c877 in ?? () from /usr/lib/openoffice/program/../basis-link/program/libvcllx.so
#7 0x00007f8c1373ccf2 in ?? () from /usr/lib/openoffice/program/../basis-link/program/libvcllx.so
#8 0x00007f8c1373ce84 in ?? () from /usr/lib/openoffice/program/../basis-link/program/libvcllx.so
#9 0x00007f8c13795e7f in ?? () from /usr/lib/openoffice/program/../basis-link/program/libvcllx.so
#10 0x00007f8c13797e74 in ?? () from /usr/lib/openoffice/program/../basis-link/program/libvcllx.so
#11 0x00007f8c13796748 in ?? () from /usr/lib/openoffice/program/../basis-link/program/libvcllx.so
#12 0x00007f8c0aafe6f8 in X11SalFrame::HandleMouseEvent ()
from /usr/lib/openoffice/basis3.0/program/libvclplug_genlx.so
#13 0x00007f8c0ab040c2 in X11SalFrame::Dispatch ()
from /usr/lib/openoffice/basis3.0/program/libvclplug_genlx.so
#14 0x00007f8c0ab31625 in SalX11Display::Yield ()
from /usr/lib/openoffice/basis3.0/program/libvclplug_genlx.so
#15 0x00007f8c0ab356f3 in ?? () from /usr/lib/openoffice/basis3.0/program/libvclplug_genlx.so
#16 0x00007f8c0ab2df1f in SalXLib::Yield () from /usr/lib/openoffice/basis3.0/program/libvclplug_genlx.so
#17 0x00007f8c135b050e in Application::Yield ()
from /usr/lib/openoffice/program/../basis-link/program/libvcllx.so
#18 0x00007f8c135b0587 in Application::Execute ()
from /usr/lib/openoffice/program/../basis-link/program/libvcllx.so
#19 0x00007f8c17517e80 in ?? () from /usr/lib/openoffice/program/../basis-link/program/libsofficeapp.so
#20 0x00007f8c135b4b24 in ?? () from /usr/lib/openoffice/program/../basis-link/program/libvcllx.so
#21 0x00007f8c135b4bc5 in SVMain () from /usr/lib/openoffice/program/../basis-link/program/libvcllx.so
#22 0x00007f8c1754ca6c in soffice_main ()
from /usr/lib/openoffice/program/../basis-link/program/libsofficeapp.so
#23 0x000000000040105b in main ()
I started digging more into the code, and this is what I finally found in
salframe.cxx:
// #i45160# switch to desktop where a dialog with parent will appear
if( mpParent && mpParent->m_nWorkArea != m_nWorkArea )
GetDisplay()->getWMAdaptor()->switchToWorkArea( mpParent->m_nWorkArea );
Beautiful! It even has a comment with a IssueZilla bug number. Let's go and see where it comes from.
After 10 minutes of research to find that fucking IZ, I finally found the link to the
issue #45160. The bug is IMHO not related to OOo but to a window manager doing poor job.
I've found that an awesome user already reported an bug err, wait, I mean an issue as
issue #96684 (remember there's no bug in OOo, only issues) and I commented about it.
UPDATE: It seems OOo developers have agreed to fix that bug eventually.

It's been announced at
quite a few places, so you probably already heard about it:
Miro 2.0, the new major release of the cross-platform Internet RSS audio/video aggregator and player
has been released.
Miro is available for
Linux, Windows, and Mac OS X, the new release on Linux now features a "native" GTK+ widgets UI (instead of the Mozilla-based HTML widgets of earlier versions) and supports both a
xine, as well as
gstreamer renderer (for audio and video).

I won't even attempt to list all the improvements and new features, please check the
release notes and the
feature list for details. Overall more than
670 issues have been fixed since the last 1.2.x series release.
You can also watch
this video (Ogg Theora, 10 MB) for a short introduction in Miro 2.0.
Together with the software release, the
getmiro.com website, as well as the online
Miro Guide have been competely rewritten and are a lot more usable and better-looking than before.
Finally, I have
uploaded a new
Miro 2.0 Debian package to unstable yesterday, by now it should be available from most mirrors. For Debian we're defaulting to xine at the moment, but please consult README.Debian if you want to switch to the gstreamer backend.
Please test the new release extensively so the few remaining issues (if any) can be ironed out soon...
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, ... :)
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.

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
Welcome, Congress, to
our generation s electric sun.
Earlier, I had posted the Wikileaks link to these congressional reports with comments of my own but I thought I would pen down a few thoughts as I finally electronically leafed through some of them. These reports remind me a little bit of another set of reports that are publicly available, which are the
Congressional Quarterly reports, which are an excellent resource for research. They are a bit dry but provide a wealth of information and perhaps more important, citations to law cases, journalist articles, and academic pieces (everything that journalistic pieces, in other words, do not do). It does 1/2 the research for you, as I like to think.
The few reports I have scanned from the leaks remind me, in fact, of the CQ reports, in content, style and tone. And while I thought CQ reports published on a wide range of topics, these semi-private reports are far more extensive in terms of topics and far more specific as well:
CRS: Humane Treatment of Farm Animals: Overview and Issues, December 10, 2008
CRS: FDA s Authority to Ensure That Drugs Prescribed to Children Are Safe and Effective, December 2, 2008
CRS: African American Members of the United States Congress: 1870-2008, December 4, 2008
CRS: The Pigford Case: USDA Settlement of a Discrimination Suit by Black Farmers, January 13, 2009
CRS: Selected Legal and Policy Issues Related to Coalbed Methane Development, March 9, 2004
I look forward to hearing/learning more about how they are used (I can t imagine that each report is read by many) and why exactly they were hidden away as they don t seem to be the type of information that should be kept classified.
Welcome, Congress, to
our generation s electric sun.
Earlier, I had posted the Wikileaks link to these congressional reports with comments of my own but I thought I would pen down a few thoughts as I finally electronically leafed through some of them. These reports remind me a little bit of another set of reports that are publicly available, which are the
Congressional Quarterly reports, which are an excellent resource for research. They are a bit dry but provide a wealth of information and perhaps more important, citations to law cases, journalist articles, and academic pieces (everything that journalistic pieces, in other words, do not do). It does 1/2 the research for you, as I like to think.
The few reports I have scanned from the leaks remind me, in fact, of the CQ reports, in content, style and tone. And while I thought CQ reports published on a wide range of topics, these semi-private reports are far more extensive in terms of topics and far more specific as well:
CRS: Humane Treatment of Farm Animals: Overview and Issues, December 10, 2008
CRS: FDA s Authority to Ensure That Drugs Prescribed to Children Are Safe and Effective, December 2, 2008
CRS: African American Members of the United States Congress: 1870-2008, December 4, 2008
CRS: The Pigford Case: USDA Settlement of a Discrimination Suit by Black Farmers, January 13, 2009
CRS: Selected Legal and Policy Issues Related to Coalbed Methane Development, March 9, 2004
I look forward to hearing/learning more about how they are used (I can t imagine that each report is read by many) and why exactly they were hidden away as they don t seem to be the type of information that should be kept classified.

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.

Thanks to the hard work of
Tim Abbott and the
FTP masters,
Sage can now be found in the
unstable repository. Tim deserves a whole bunch of kudos for his determination in getting Sage into Debian it involved a lot of working with upstream to resolve a variety of problems that made life difficult for packagers, and, as far as I can tell, a non-trivial amount of time. My involvement in the job was fairly minimal just reviewing and uploading. There are still a few issues with the packaging that are being worked out with upstream for the next version before sagemath can migrate into testing (after Lenny, of course), but the package should be at least functional.
If you were looking to give Sage a try before but gave up because it wasn t in Debian, now s your chance to check it out! (The same goes if you re interested in free mathematics software but hadn t heard of Sage before.)
Biella asks if I can read novels
from a screen. Yes, I've read what has to be getting close to a thousand
novels that way, over the past 8+ years.
I was thinking about this just the other day as I read
The once and future e-book: on reading in the digital age.
That article does a good job arguing against many of the common complaints
about ebooks, such as "I can't read an ebook in the bathtub".
my pile of paper |
Right now, I have a pile of paper books I want to read or am in the middle
of reading. But if I want something new to read, I don't reach for that
pile, but for my (much larger) directory of ebooks. The pile of paper is
reserved for special occasions: plane trips, camping, etc.
I started reading ebooks in circumstances where it was too hard to get
access to paper ones. Traveling in the third world, hauling along a lot of
paper books wasn't practical. Living rural, where every book had to be
backpacked in.
I've stuck with it because it works for me and because I've enjoyed
stretching my muscles of concentration on the screen. To me, the focus
required to read an ebook from the screen is similar to the focus required
to work on a program. And completly different than skimming through a web
page.
The best example of this that I have right now is Real World Haskell, which
I've almost finished (hurrah!) reading in a combination of paper and
web editions. I was only able to
stick with reading this book when I got the paper version. I use the web
version for reference, or for looking for help on a challenging part of the
book. For reading, it's just
too much a web page; too easy to skim, or be
distracted by the comments that can be attached to every paragraph, or jump
off to Wikipedia.
screenshot of my ebook reader |
Just as most programmers tune their development environment so that it
uniquely suites them, I've put a lot of thought, trial, and error into
tuning my ebook reading environment. The most important thing seemed to
be getting rid of anything that interfered with focusing on the text.
Since I wasn't (easily) able to use that environment for reading Real World
Haskell, I wasn't able to read it from the screen.