Mike Hommey: Crazy ideas
ar -rc file.deb debian-binary control.tar.gz data.tar.gz
ar -rc file.deb debian-binary control.tar.gz data.tar.gz

Jeremy Visser writes about the evilness
of User-Agent sniffing
I tend to disagree with him, particularly after reading Wikipedia's
robots.txt file, and some of the comments in there.
wget can be quite a nasty program if used incorrectly. Chances are,
if you know what you're doing, you'll know how to change the User-Agent
string, and therefore you're probably not going to do something dumb like
try to download the entire site recursively.
If you don't, you're probably Doing It Wrong.
Sometimes a bug report is a labyrinth. #348046 is an example of this. It is a horrible mess of at least three different issues with half of the
original participants having become unresponsive. I would like to pull the issues apart into different bug reports to be
able to deal with them (and their probably unresponsive submitters) individually.
Obviously, cloning and renaming is not an option since this copies the mess.
So, it would probably be desireable to download the bug mbox and to bounce individual messages to new bugs (that have
been created before), but the BTS recognizes the dupes and bins them. Blars has helped me by looking at BTS mail log, so
it was clear that removing the X-Loop, X-Debian-PR, X-Spam, Resent- and Received headers from the mbox before loading it
into mutt to do the actual bouncing works fine.
A command line to do this:
rm -f mboxout; mboxbug formail -d -I Received -I X-Debian-PR -I X-Loop -I X-Spam -I Resent -s >> mboxoutAfter trying this in “production”, one needs to send one message per BTS pulse, or one will totally mess up the order of the messages. That’s a real pity and an annoyance.

I'm (again) writing a library that is supposed to be cross-platform, but needs sort of an event loop, which I'd rather leave in the main program and just give them a bunch of file descriptors to watch and a timeout.
Problem is, file descriptors are platform dependent.
There are a few approaches to this. The mighty ASIO simply annexes the entire loop, and just tells people to hook into it if they need anything -- it works, but on the downside you get threads for free when you didn't want or need them.
Simply spawning a new thread for everyone isn't a solution either, as it requires me to do lots of synchronised inter-thread communication -- and on Windows, file handles are thread affine, so I cannot even call into the same library from different threads.
I will probably go with ASIO for this project, but I'm fairly certain that there are better solutions out there.
Although an interim release, there are a number of new features in 0.8.2 that are worth noting.
Around the end of 2006 I come up with the idea of setting up something I called font-machine: a collection of scripts / utilities, intended to improve quality of fonts by defining and implementing automatic tests able to catch errors and provide screenshots. Some pioneering work on this area was done a while ago by Miriam who set up a page showing how fonts currently in Debian look like. I did something similar focusing on the fonts used by the Debian graphical installer (will write a separate post to describe the way it works). I'll start describing the tools which I've used more frequently; of course my preference goes to the ones which can be run non-interactively: those that can be invoked inside shell scrips and keep your CPU busy! fntsample is probably one of the programs I've used more frequently during the last months: it was written by Eugeniy Meshcheryakov, who also made it available as a Debian package, and creates really nice and professional PDF / PS charts showing all the glyphs contained in a particular font file. The following code snippet shows how you can use fntsample to create pdf charts for each of the ttf files contained in ttf-dejavu package (will often refer to this package since I maintain it :-) ):font="http://ftp.de.debian.org/debian/pool/main/t/ttf-dejavu/ttf-dejavu-core_2.23-1_all.deb"Note that PDF files will have useful outlines (aka bookmarks) courtesy of the pdfoutline tool shipped with the fntsample package. Results are IMHO very imperessive!
deb=$(basename $ font )
wget $font
dpkg -x $ deb $ deb/.deb/
outdir="out"
mkdir $outdir
for ttf in $(find $ deb/.deb/ -name '*.ttf') ; do
pdf="$(basename $ ttf sed -e "s \.ttf$ \.pdf ")"
fntsample -f $ ttf -o $ outdir /$ pdf -l > $ outdir /$ pdf/.pdf/.outline
pdfoutline $ outdir /$ pdf $ outdir /$ pdf/.pdf/.outline $ outdir /$ pdf
done
PS: looking at the above chart for Cyrillic, I've just noticed the glyphs are ordered as to read "SEX"... I did not choose that particular chart snippet on purpose!
Mid august, “responsability” will get a new meaning: my wife is into the 15th week of our third pregnancy.
OK. This is the beauty of FOSS. The project has been dead upstream for a while now. It survived until it was removed from lenny.
Now me and 2 other users decided to adapt it. port it or rewrite it in gtk2.
We are having a discussion about the whole situation.
To anyone still using multi-gnome-terminal: Please share with us the features you were actually using. These are the ones more likely to be implemented and no new features will probably be added, maybe help us coding and/or testing or participate in the discussions. read more
When people say "lightweight branches":
Following the first
phase, the second and final phase of the Penny and Martin
adventure ended last Friday at Wellington airport.
I am now 11 500 metres high on my way from Bangkok to Zurich,
looking back at seven days on the New Zealand South Island, another
in Wellington, and a night in Melbourne.
Here s the summary of the 2200km we travelled, with selected photos
inline. Penny has more pictures in her Flickr
album.
Camping with a car isn t all bad.
From Haast, we took the beautiful road to Jackson
Bay and back, before heading into Cascade Valley for
another night of camping, this time with millions of sandflies
forcing us to dress appropriately.
NB: please, no new offers for fashion modeling contracts, I am
already fully booked. Penny might appreciate them though,
especially if she gets to wear white socks.
From there, headed west for Lewis Pass and passed up on
camping due to the heavy rainfall. Instead, we booked into the
Maruia Springs Resort
Hotel and indulged in hot springs recreation and
camping-stove-cooked pasta in the room.
Modern electrical safety standards in most countries require that exposed pins of a power plug (other than the earth) be shielded to prevent metal objects or the fingers of young children from touching live conductors. The image above shows a recent Australian power plug which has the active and neutral pins protected with plastic such that if the plug is slightly removed there will be no access to live conductors. I have photographed it resting on a keyboard so that people who aren’t familiar with Australian plugs can see the approximate scale.
I’m not sure exactly when the new safer plugs were introduced, a mobile phone I bought just over three years ago has the old-style plug (no shielding) while most things that I bought since then have it. In any case I expect that a good number of PCs being used by Australian companies have the old style as I expect that some machines with the older plugs haven’t reached their three year tax write-down period.
For a device which has a plug with such shielding they sell kits for disassembling the power lead or taking the power point from the wall. I spoke to an an electrician who assured me that he could with a 100% success rate attach to wires within a power cord without any special tools (saving $149 of equipment that the HotPlug people offer). Any of these things will need to be implemented by a qualified electrician to be legal, and any electrician who has been doing the job for a while probably has a lot of experience working before the recent safety concerns about “working live“.
The part of the web site which concerns moving servers seems a little weak. It seems to be based on the idea that someone might have servers which don’t have redundant PSUs (IE really cheap machines - maybe re-purposed desktop machines) which have to be moved without any down-time and for which spending $500US on a device to cut the power (plus extra money to pay an electrician to use it) is considered a good investment. The only customers I can imagine for such a device are criminals and cops.
I also wonder whether you could get the same result with a simple switch that cuts from one power source to another. I find that it’s not uncommon for brief power fluctuations to cause the lights to flicker but for most desktop machines to not reboot. So obviously the capacitors in the PSU and on the motherboard can keep things running for a small amount of time without mains power. That should be enough for the power to be switched across to another source. It probably wouldn’t be as reliable but a “non-government” organisation which desires the use of such devices probably doesn’t want any evidence that they ever purchased one…
Now given that such devices are out there, the question is how to work around them. One thing that they advertise is “mouse jigglers” to prevent screen-lock programs from activating. So an obvious first step is to not allow jiggling to prevent the screen-saver. Forcing people to re-authenticate periodically during their work is not going to impact productivity much (of course the down-side is that it offers more opportunities for shoulder-surfing authentication methods).
Once a machine is taken the next step is to delay or prevent an attacker from reading the data. If an attacker has the resources of a major government behind them then they could read the bus of the machine to extract data and maybe isolate the CPU and send memory read commands to system memory to extract all data (including the keys for decrypting the hard drive). The only possible defence against that would be to have multiple machines exchanging encrypted heart-beat packets and configured to immediately shut themselves down if all other machines stop sending packets to them. But if defending against an attacker with more modest resources the shutdown period could be a lot longer (maybe a week without a successful login).
Obviously an attacker who gets physical ownership of a running machine will try and crack it. This is where all the OS security features we know can be used to delay them long enough to allow an automated shut-down that will remove the encryption keys from memory.
Mrs Taylor asked: "are the council allowed to reroute a redway or are they right of way and if so can you help me to prove that they are??"I don't know. Do you? If no-one knows, I'd probably start by looking at the detailed OS maps for the area (which I think mark rights of way) and maybe make Freedom of Information Act requests for the order that established a particular redway. However, even if they are a right of way, a council could reroute it through the usual transport planning process, although a member of the public and any affected councillors should be able to speak against it at a hearing.
As Josep asks for it every now and then,
and we really enjoyed this trip, it's time to write about the four days we
spent cycling from Ripoll to Girona, through the Ruta del Carrilet,
a Catalan via verda similar to the one
we completed
a year ago.
I spent this year's 9 d'Octubre cycling trip with totally different trip
mates, not related to my triathlon team. The extensive group was formed by
Sabri, Mar, B rbara, Carles, Desi, Adela, N ria, Amador and myself. We
started our journey by car from Val ncia to Mollet de Mar, where we parked
the cars and take a regional train to Ripoll with our bikes, where the
real journey would start.

Arrival at Ripoll
When we got to Ripoll, it was quite late and dark, but we managed to find
the start of the Ruta del Ferro rail trail which would take us to Sant
Joan de les Abadesses. It was quite cold, but especially really humid, so
we had to think twice before settling on a place to camp and setup our tents.
We had to take special care of covering the bicycles as the air was really wet,
and anything we left uncovered would appear soaking next morning. In part, my
shoes suffered from this.
Early next morning we had breakfast on the wet grass and then started our
way to Sant Joan through a deliciously well equipped and maintained cycling
track, which unfortunately only lasts for 12 kilometres through a splendind
landscape. After having breakfast in the old railway station in Sant Joan, we
abandoned the Ruta del Ferro to take a road to Olot via Sant Pau de
Seguries, where we had to climb a small mountain and then descend through the
Vall de Bianya until we got to Olot.

Sant Joan de les Abadesses' railway station
Asking the locals for the start of the Ruta del Carrilet was
fun due to the strong oriental accent in the area and we sometimes wouldn't get
a word of what we were told. An old man recommended us finding a big park in
the outskirts of the town, where we prepared our entrepans for
lunch, and after a little rest, we started cycling up the Carrilet,
which would take us to Girona in two stages. This Catalan area is of volcanic
origin, and there are several natural parks dedicated to the phenomenon. There
are many mountains covered with forests and impossible peak shapes, which due
to the time of the year were starting to go from green to brown and yellow,
making fantastic colour schemes in the landscape.

Under a green ceiling in Olot
Just after the few first kilometres, the railroad track starts to descend
most of the way, which makes it easy for people who aren't too trained, and
easier to enjoy your way chatting with people while you cycle. As we consumed
the daylight, we came across a parish church party with lots of old and young
people from the nearby town of Sant Miquel de Pineda. Amador and I were lagging
behind a bit at that point, and when we got there, we found the rest of the
group were already off their bikes and either having a curious look over the
party, or directly following suit and dancing like the others. We had a peek
into the small church and also into a small graveyard in the back, where I was
surprised to find the enemies of my Catalan grandmother: Fam lia Matabosch ,
as one of the headstones revealed.

Partying at Sant Miquel de Pineda
As it was getting late, we eventually started off again, but luckily B rbara
spotted what seemed a good sleeping place for that night. To the right of the
trail there was a hermitage (devoted to Santa Cec lia) up on the hill which,
for bonus points, had a porch with a recently renewed roof which would help
cover ourselves from humidity and rain, as we found soon after starting
cooking dinner.
While the cooks prepared our soup, some others went down to the
Carrilet in order to find out if the next town was close so we could
get some driking water for the dinner. Luckily, Sant Feliu was close enough,
and we found a bar where we got some water... and two bottles of wine, which
made some people back at the hermitage very happy. We were quite tired though,
so we eventually went to sleep after reading some stories from a great tale
book, with the sound of rain hitting the grass outside the porch.
The rain was still with us when we started waking up, so we had breakfast
and packed our stuff very slowly, in an attempt to avoid getting wet. But
rain didn't stop, so we made a few hacks on our bicycle bagpacks to minimise
the amount of rain wetting them. When we were finally ready to set off and
had cycled around 3 kilometres under the light rain, it finally stopped
raining, making the rest of the journey very pleasant.

Sleeping under the porch of Santa Cec lia's hermitage
This part of the route is again quite beautiful, with impressive amounts
of green vegetation at both sides of the track. There's a lot of water
presence in the land, which makes the type of trees and bushes quite different
to the ones we are used to find in the Valencian Country.
After going by a few small towns, we arrived in the old railway station
of Amer, hometown of the Puigdemonts. Even if it was a bit early, we
decided to have lunch there, so a few of us went down to the centre of the
town to buy bread and some other details to eat. Being in my friend Josep's
town for the first time, I wanted to visit his
family's bakery, but unfortunately it
is closed on Mondays. We had lunch back at the cute station, and eventually
kept going on our way to Girona. Outside Amer, the Carrilet was
temporarily cut by the road, and there were two possible alternatives: using
the road, with heavy lorry traffic, or diverting through a very steep track
with very hard slopes. Most of the group preferred the road, but Mar, Amador
and I went up that track, which was hard to climb and really fun to descend.
Apparently, Amer locals call those 1.5 kilometres the Tourmalet . It's
probably not so bad, though. :)

Amer's railway station
Unfortunately, the Ruta del Carrilet starts getting uglier after
Amer, and as you approach the more industrialised towns near the capital
Girona. The area around Angl s wasn't that fun, with the track continuously
being invaded by cars and other vehicles. Soon after we were in the
farmland area surrounding Girona and its Devesa.
Jonathan was waiting for us in the city, after his two month stay in
Scotland, and we were all happy to meet him. We discarded continuing our
way to the coast, which was the initial plan, and instead dropped our stuff
in the house of one of Adela's friends, and went out to have dinner to a
Wok restaurant, where the poor people running it suffered our
childish behaviour involving the rotating central dish on our table and
custard sucking contests.
Jonathan guided us through the Cathedal and city wall areas of the town
centre, which are impressive, and we climbed all of the wall towers to have
great looks over the dark and quiet city. Eventually, we went to sleep, as
Adela had to leave early, and we had to pack to get our train back to
Barcelona.
Back in Mollet, we cooked our last camping-gaz lunch in the park right next
to the station, before noticing the place stinked of dog poo. After the careful
operation of filling the three cars with 9 bicycles, we were finally on our
way back to Val ncia, completing another great cycling journey. If you like
bicycle tourism and can travel to this area in Catalonia, I highly recommend
it, as there's many great places to visit, all of them accessible with
bikes.

Having lunch in Mollet
I've replaced the top banner on my personal site with a sunset panorama taken from the other end of Sand Bay. Yes, it may look green and grassy, but it is Sand Bay. I've added a shared bookmarks RSS to my site, generated from the first subfolder in my Bookmarks Toolbar Folder by a daft shell script. I've put an old paper online. Fighting in the shadows: moles and activists is about how to keep an open group, but minimising the effectiveness of moles:- "It does not matter whether an activist is a mole or not, as long as they work well for you. The mole may be working against you in secret, but they would probably work against you anyway. To be an effective mole, they have to do some helpful work in order to avoid detection. They are a resource that we would not have access to if they weren't a mole."Finally, I've attended a few events recently, so the next few posts will probably be mostly conference reports.
Next.