Julien Danjou: OrgCamp 2011
I'll be at the OrgCamp 2011 in Paris next Saturday.
I'll be at the OrgCamp 2011 in Paris next Saturday.
Last year I shared my Debian related goals for 2010 . I announced that I would not be able to complete them all and indeed I have not, but I have still done more than what I expected. Let s have a look.
Translate my Debian book into English and get it published: NOT DONE
Or rather not yet done. It s still an important project of mine and I will do it this year. When I wrote this last year, I expected to find a publisher that would take care of everything but we failed to find a suitable one so we re going to do it ourselves.
Cleanup the dpkg perl API and create libdpkg-perl: DONE
libdpkg-perl has been introduced with dpkg 1.15.6.
Create dpkg-buildflags: DONE
dpkg-buildflags has been introduced with dpkg 1.15.7. It s not widely used yet and it won t really be until debhelper 7 supports it (see #544844). It would be nice to see progress on this front this year.
Ensure the new source formats continue to gain acceptance: DONE
The adoption rate has been steady, it clearly slowed down since the freeze though. I have implemented quite a few features to satisfy the needs of users, like the possibility to unapply the patches after the build, or the possibility to fail in case of unwanted upstream changes.
Design a generic vcs-buildpackage infrastructure to be integrated in dpkg-dev: NOT DONE
I believe it s something important on the long term but it never made it to my short-term TODO list and it s unlikely to change any time soon.
Continue fixing dpkg bugs faster than they are reported: PARTLY DONE
We have dealt with many bugs over the year, but we still have 20 more bugs than at the start of last year (370 vs 350). We re not doing bad compared to many other Debian teams but we can still benefit from some help. Start here if you re interested.
Enhance our infrastructure to ease interaction between contributors and to have a better view of how each package is maintained: NOT DONE
I am convinced that we need something to have a clearer idea of the commitments made by each contributor. I don t put the same amount of care in maintaining smarty-gettext that I do on dpkg. If we had a database of the stuff that we know we don t do well enough, it s easier to point new contributors towards those.
Anyway, this project is still unlikely to come to the top of my priorities any time soon.
Work on the developers-reference: NOT DONE
We have switched the Maintainer field to debian-policy@lists.debian.org to have more review of the changes suggested through the bug tracking system but that has not changed much on the global situation.
I still hope to become more active on it sometimes this year. Maybe by trying to make it more fun and creating the text for some of the wishlist bugs as blog articles first.
Rewrite in C the last Perl scripts provided by the dpkg binary package: DONE
Dpkg 1.15.8 was the first version working without Perl, I announced it in July.
Integrate the 3-way merge tool for Debian changelogs in dpkg-dev: DONE
dpkg-mergechangelogs is part of dpkg-dev since 1.15.7.
I enjoy it regularly. Unfortunately it doesn t work well for cherry-picks. Would be nice to see this fixed, anyone up to the task? Click here to subscribe to my free newsletter and get my monthly analysis on what s going on in Debian and Ubuntu. Or just follow along via the RSS feed, Identi.ca, Twitter or Facebook.
One comment Liked this article? Click here. My blog is Flattr-enabled.
Every time I review some package for sponsoring, I usually end up suggesting to fix some of more picky things which lintian finds. It looks like everybody is using default set of checks and does not look at others. Indeed the defaults tell about things which are really errors or need override, but --pedantic and --display-info show also useful hints. However you need to take them more as a suggestions than as a errors.
What I usually find interesting is --pedantic, because it tells about several things, which might be good idea to have in your package. Missing Homepage in debian/control is one of them and I believe this should exist for every package which has a homepage.
The --display-info (or just -I) is also useful, for example it does spell checking of texts in binaries and man pages. Registration into doc-base is also useful integration into the system and you should definitely do it if the package provides documentation in HTML.
To run these checks every time, you can create alias in your ~/.bashrc:
alias lintian='lintian -I --pedantic'
Filed under: Debian English 7 comments Flattr this!
new year, new RC bugs most of the fixes below are for newly reported
bugs in versions that don't affect squeeze. the rest are mainly uploads of
packages or patches prepared by others.
The good folks at
Bespoke Investment Group
frequently show charts of so-called overbought or oversold levels; see e.g.
here for the most recent global markets snapshot.
Classifying markets as overbought or oversold is a popular heuristic. It
starts from computing a rolling smoothed estimate of the prices, usually via a
(exponential or standard) moving average over a suitable number of days
(where Bespoke uses 50 days, see
here).
This is typically coupled with a (simple) rolling standard deviation.
Overbought and oversold regions are then constructed by taking the smoothed
mean plus/minus one and two standard deviations.
Doing this is in R is pretty easy
thanks to the combination of R's rich base functions and its add-on packages from
CRAN. Below is a simply function I
wrote a couple of months ago---and I figured I might as well release. It relies
on the powerful packages
quantmod
and
TTR by my pals
Jeff Ryan and
Josh Ulrich,
respectively.
After downloading data and computing the rolling smoothed mean and standard deviation, it really is just a matter of plotting (appropriate) filled polygons. Here I used colors from the neat RColorBrewer package with some alpha blending. Colors can be turned off via an option to the function; ranges, data length and type of smoother can also be picked. To call this in R, simply source the file and the call, say,## plotOBOS -- displaying overbough/oversold as eg in Bespoke's plots ## ## Copyright (C) 2010 - 2011 Dirk Eddelbuettel ## ## This is free software: you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 2 of the License, or ## (at your option) any later version. suppressMessages(library(quantmod)) # for getSymbols(), brings in xts too suppressMessages(library(TTR)) # for various moving averages plotOBOS <- function(symbol, n=50, type=c("sma", "ema", "zlema"), years=1, blue=TRUE) today <- Sys.Date() X <- getSymbols(symbol, src="yahoo", from=format(today-365*years-2*n), auto.assign=FALSE) x <- X[,6] # use Adjusted type <- match.arg(type) xd <- switch(type, # compute xd as the central location via selected MA smoother sma = SMA(x,n), ema = EMA(x,n), zlema = ZLEMA(x,n)) xv <- runSD(x, n) # compute xv as the rolling volatility strt <- paste(format(today-365*years), "::", sep="") x <- x[strt] # subset plotting range using xts' nice functionality xd <- xd[strt] xv <- xv[strt] xyd <- xy.coords(.index(xd),xd[,1]) # xy coordinates for direct plot commands xyv <- xy.coords(.index(xv),xv[,1]) n <- length(xyd$x) xx <- xyd$x[c(1,1:n,n:1)] # for polygon(): from first point to last and back if (blue) blues5 <- c("#EFF3FF", "#BDD7E7", "#6BAED6", "#3182BD", "#08519C") # cf brewer.pal(5, "Blues") fairlylight <- rgb(189/255, 215/255, 231/255, alpha=0.625) # aka blues5[2] verylight <- rgb(239/255, 243/255, 255/255, alpha=0.625) # aka blues5[1] dark <- rgb(8/255, 81/255, 156/255, alpha=0.625) # aka blues5[5] else fairlylight <- rgb(204/255, 204/255, 204/255, alpha=0.5) # grays with alpha-blending at 50% verylight <- rgb(242/255, 242/255, 242/255, alpha=0.5) dark <- 'black' plot(x, ylim=range(range(xd+2*xv, xd-2*xv, na.rm=TRUE)), main=symbol, col=fairlylight) # basic xts plot polygon(x=xx, y=c(xyd$y[1]+xyv$y[1], xyd$y+2*xyv$y, rev(xyd$y+xyv$y)), border=NA, col=fairlylight) # upper polygon(x=xx, y=c(xyd$y[1]-1*xyv$y[1], xyd$y+1*xyv$y, rev(xyd$y-1*xyv$y)), border=NA, col=verylight)# center polygon(x=xx, y=c(xyd$y[1]-xyv$y[1], xyd$y-2*xyv$y, rev(xyd$y-xyv$y)), border=NA, col=fairlylight) # lower lines(xd, lwd=2, col=fairlylight) # central smooted location lines(x, lwd=3, col=dark) # actual price, thicker invisible(NULL)
plotOBOS("^GSPC", years=2)
which creates a two-year plot of the SP500 as shown here:
This shows the market did indeed bounce off the oversold lows nicely
on a few occassions in 2009 and 2010 --- but also continued to slide after
hitting the condition. Nothing is foolproof, and certainly nothing as simple
as this is, so buyer beware. But it may prove useful in conjunction
with other tools.
The code for the script is
here and
of course available under GPL 2 or later. I'd be happy to help incorporate
it into some other finance package. Lastly, if you read this post this far,
also consider our R / Finance
conference coming at the end of April.
Edit: Corrected several typos with thanks to Josh.
Let's say you set up a machine using an encrypted disk with LUKS (debian-installer's partman makes this wonderfully easy!). You choose an initial passphrase, get the machine working, and it's working great. Then, you need to restart it, and realize that (for whatever reason) you've forgotten or lost the passphrase for the volume. oops! (i'm sure this has never happened to you -- let's just pretend it's your less-fortunate friend). If your system is still running, and you have superuser access to it, you can actually set a new passphrase for the LUKS volume using information that the dm-crypt kernel module has about the in-use mapping. In my examples, i'll imagine that the source volume is /dev/XXX2 and the exported cleartext volume is known by the device-mapper as XXX2_crypt In the bigger picture, this should serve as a reminder that even though your disk is encrypted, if someone gets live access to the superuser account on a system with the encryption keys loaded, your data is no longer secret. Before you do any tweaking, you might want to back up your LUKS header, just in case: 0 root@example:~# umask 077 0 root@example:~# cryptsetup luksHeaderBackup /dev/XXX2 --header-backup-file XXX2.luksheader.backup 0 root@example:~#Maybe also copy that off the machine, since a copy of the LUKS header stored within its own volume isn't terribly useful for a backup-recovery situation. You might also be interested in looking at the contents of the LUKS header:
0 root@example:~# cryptsetup luksDump /dev/XXX2 LUKS header information for /dev/XXX2 Version: 1 Cipher name: aes Cipher mode: cbc-essiv:sha256 Hash spec: sha1 Payload offset: 2056 MK bits: 256 MK digest: 93 51 6c 66 ec ce 32 54 6f 6b 52 d1 27 9b 5a 62 6f 6b 52 d1 MK salt: b2 ca 20 49 9f 78 49 c2 fe 15 b4 0f 74 11 23 49 64 9e 61 bb f2 82 60 47 a5 76 fa a4 24 0e 5a 7e MK iterations: 10 UUID: 052f1da0-21a1-11e0-ac64-0800200c9a66 Key Slot 0: ENABLED Iterations: 218733 Salt: f2 ae 8c 53 48 a5 f0 bf e1 2c 06 5f 5a bd ff d9 9a 2e d1 49 3a 63 f8 49 82 ed ae 86 7b 7b 7e 76 Key material offset: 8 AF stripes: 4000 Key Slot 1: DISABLED Key Slot 2: DISABLED Key Slot 3: DISABLED Key Slot 4: DISABLED Key Slot 5: DISABLED Key Slot 6: DISABLED Key Slot 7: DISABLED 0 root@example:~#Now, the fix: We pull the live "master key" from the running device map, and fill a new luksKeySlot from it (this example uses bash's <() syntax for process substitution -- if you use a different shell, i'm sure you can find a different way to do it):
0 root@example:~# cryptsetup --master-key-file <( > dmsetup --showkeys table awk '/^XXX2_crypt: / print $6 ' tr -d '\n' perl -e 'print pack("H*", <STDIN>);' > ) luksAddKey /dev/XXX2 Enter new passphrase for key slot: abc123 Verify passphrase: abc123 2 root@example:~#(note that the luksAddKey invocation above returned an error code of 2 even though it succeeded. I think this is a bug in cryptsetup's return code, not a bug in the password resetting -- it should have returned 0 instead of 2). You can check to see that a new key slot was enabled by re-running cryptsetup luksDump And if you really want to double-check before you reboot, you can try enabling a third keyslot using the passphrase you just added, since this would not succeed if your new passphrase failed to unlock any of the existing keyslots:
0 root@example:~# cryptsetup luksAddKey /dev/XXX2 Enter any passphrase: abc123 Enter new passphrase for key slot: anotherpassphrase Verify passphrase: anotherpassphrase 0 root@example:~#You can also get rid of the original keyslot (which you don't know the passphrase to) like this:
0 root@example:~# cryptsetup luksKillSlot /dev/XXX2 0 Enter any remaining LUKS passphrase: abc123 0 root@example:~#(the above commands were all demonstrated using debian testing, with cryptsetup 2:1.1.3-4 and dmsetup 2:1.02.48-4) Tags: cryptsetup, dmsetup, luks, tip
The second week is ending and it's time to publish another photo for project 52.
Again one picture from Prague (though the lightboards say welcome to Brno), this time taken in night:
Filed under: English Photography 0 comments Flattr this!
This week in brief:
I just registered for the 38th Berlin marathon on September 25th 2011.
We (Elizabeth and /me) will of course use this opportunity to visit
the city (our first time in Berlin), coming on Thursday 22th and
leaving on Monday 26th.
I aim for 3h30. We'll see..:-)
I made smoky grilled tofu (based on the recipe in Veganomicon) on a bed of collard greens and maple-glazed roasted beets and carrots.
Who s not? Same procedure as every year.
(okay, lolando prefers ski ng but ) Anyway. A cow orker told me that Belgium again/still has no gouvernment, and they have been asked to grow out their beards until they do. I found evidence on the net but won t link it here, also it s on German anyway. Let s all join in. (Besides, I now have an excuse to not shave, maybe even my grandmother will accept this one ) RT said on IRC that mksh will probably work on MSYS. My Debian/m68k stuff is coming around nicely, but I still haven t gotten around to do everything planned, plus I need to grow a new kernel and eglibc, after the latest uploads, and the 2.6.37 based one panics. Also I ve got to take care to not overwork myself. (And make a MirBSD ISO for FOSDEM.) But hey, it s been not working for some time and better now. And slow anyway yet we re progressing. Does anyone know how to debug that a C programme only calling res_init(3) segfaults? Benny is apparently not just working on making NetBSD pkgsrc available on MirOS BSD (picking up my work from 4+ years ago) but also replacing The MirPorts Framework with it. Sad, as I got a request for a gajim MirPort over a cocktail just this evening
Lisa snagged us some sort of subscription to the CSO's jazz series
and last night was a first concert resulting from this. In town were
Allen Toussaint
with a three piece rhythm section as well as
Don Byron (also here) on clarinet and tenor saxophone, and
Nicholas Payton (also here) on trumpet.
Given Allen Toussaint's live-long association with New Orleans, there was a
lot of music inspired by the town, including a modern rendition of an old
Sidney Bechet tune as well as other material came from his most recent
album The Bright Mississippi.
And, given Allen Toussaint's fame in Rhythm and Blues
circles, there was lot of R&B too. I found the program to be a little uneven
and unbalanced that way---but it was still a great show, and he surely
brought the house down. He is a charming old school performer, and
maybe the audience warmed his heart right before the concert started with a
quick Happy Birthday rendition as yesterday was in fact his this 73rd
birthday! Don Byron and Nicholas Payton were, as expected, stellar in their
own right. A nice night out.
On Saturday I turned 32. I haven't been able to sit down for ten minutes and
scribble the mandatory blog entry, a sign that I'm extremely busy (luckily
not only due to academic and professional reasons; the social part of the
problem is very significant). This year I was gifted with a costumes
Festa de l'Horta being held on the very same day as my birthday, and
it was memorable (in many ways).
Add an unexpected climbing evening on Friday, and getting to see my
fantastic 2 year old niece Vida, who came from Norwich for a visit, made a
great birthday weekend. I feel I'm going through a very, very sweet
stage of my life; I really can't remember the last time I generally had no
big worries or black clouds all over my head. I hope it stays like this for
a while...
Last night was the last time I came back from a pub with my clothes
stinking due to tobacco smoke. The Spanish congress has finally approved a
real anti-smoking law which will ban smoking on public areas, with no
exceptions or ways to workaround the ban. Starting on January 2nd, the
Spanish state will be a smoke-free region (or mostly, it seems it'll be
permitted in open-air events like football stadiums or bullrings, and I
don't think that will be a great problem for me, specially the latter).
For years, my intolerance to smoke has been increasing and I'm really
expectant to see the benefits of this law in my habits. After more than 30
years dealing with smoke around us, it's our turn now. I've been speaking
to a few barmans. In general they seem worried this will affect their
business, but I can't see how it will. Spain has a big culture for having
mid-morning almuerzos in bars, and people are not going to give
that up due to not being able to smoke. They will just do it after they
get out, not during the coffee, and that's it. The barmans of the two bars
I visit most are non-smokers, but have to breath the smoke of hundreds of
cigarretes every day, and can't do anything about it. Until tomorrow, when
this will end and everyone will have a right to breath better air. I hope
this kind of legislation continues to be adopted throughout Europe, because
the FOSDEM welcome party is probably the next smoke horror I'll have to face
soonish. :)
I knew walking all
over the Pyrenees during a whole month would come with some side
effects. I could imagine having a few muscular issues in my legs and some
back pain for a while after getting back; after all we did over 7 hours of
exercise every single day during a month. What I got after our hike was
totally unexpected...
I should have run a half marathon in Gandia on the 21st, and instead I
stayed at home doing some assignments. When we came back, I was in a
really good condition, and wanted to keep the good shape we had built the
month before. Given I haven't been able to swim for nearly a year now,
due to the Misterious Shoulder Injury and I don't have enough time to go
out cycling regularly, I centered my efforts in running, with the idea of
starting to get prepared for cross/mountain races this season.
Training had to wait a little because some days after getting back, I
got a sudden pain on both knees, which even made climbing stairs
difficult. It stuck for a while, and when it finally went away, more or
less, I went ahead and tried going out for a run. I haven't been training
for over two years, so I indended to increase the distances
proggressively. The first day I went out, I ran really nicely for the
first 25 minutes, and suddenly I started getting an intense pain in the
outer side of my right knee, to the point I could barely walk back
home.
I've tried letting them rest for weeks, and every time I try them, the
pain comes back. My physiotherapist says my body has developed quite a few
asymmetries, probably caused by the many days I had to walk crippled by a
big blister in my right foot. As time passes, I feel I'm losing all the
physical improvements I had developed during the summer, and I can't do
anything about it.
The new approach to tackle this is yoga. I know my body isn't too
elastic, and the lack of stretching during the walk made it even worse, so
I'll try to forget about real traning during some time and focus on
healing my muscles. Hopefully, this will help me resolve the nastiest
physical problem I've ever come across.
Tomorrow, at this time, I'll probably be unsuccessfully trying to find a
comfortable position on a seat of the Bilmanbus to Irun. Very early
on Saturday, as soon as we get off the bus, Maria and I will quickly head to
Hondarribia's beach in Cape Higer to symbolically wet our feet in the waters
of the Cantabrian Sea.
We won't have much time to enjoy the cold waters of the ocean, though.
Soon after that, we'll have to take a deep breath, look East, and start
walking if we want to achieve our utmost objective: take a bath in the
beautiful beaches of the Cap de Creus, in the Mediterranean sea. In between,
30 days and 840 kilometres of thick woods, deep valleys, high peaks and cold
waters, all of which shape incredible landscapes.

The Portella de Baiau, during our 2008 trip
For a whole month, we'll be mostly disconnected from everything else that
isn't our knee ache, our blisters, the Sun over our heads or where to get
food. It's the first time I leave on a hiking trip as long and tough as this
one, and I feel both uncertainty and eagerness. We've been so busy during the
last few months that we've been unable to train at all for this, and I'm
probably in the worst physical condition in a decade. It's too late
to take care of that now, so we'll try to take good care of our legs and
spine.
In order to get back home in the Mediterranean, we'll have to
be fast, some days joining two stages and skipping a few that we know are not
that interesting (sections over asphalt, etc.). It's hard to make it in just
one month, but we'll try our best. The plan is going to sleep not long after sunset, getting up at dawn, to be able to walk for a decent time before the heat
starts being a handicap and just resting at midday, when the Sun is
strongest.
Of course, this means that I'm missing, yet again, this year's edition
of DebConf in New York City, which is
really sad because I was looking forward hanging around with
Mako,
Mika,
Biella, micah,
Clint and the rest of the
NYC/
Boston gang, but when
the idea of doing a long trip this summer popped up around January, it was
clear DebConf seemed unlikely this year. I hope all of you have a lot of
fun, and see you in a few weeks!
Two weeks ago, Maria and I completed
one of our dreams
when we arrived in Cap de Creus, where the Pyrenean range sinks in the
Mediterranean. To get there, we walked hundreds of kilometres during a month,
crossed dozens of steep valleys and enjoyed one of the richest experiences
of our lives.
We managed to complete this challenge without facing major problems or
pains, and after the first five our six days, our legs seemed to have
gotten used to the daily effort and it started to be easier and easier.
Our morale kept growing as days passed and we advanced east. When I
started walking on a cold and rainy morning in Hondarribia, after barely
no rest in the night bus to Ir n, I thought for myself that it was
improbable that we'd manage to get anywhere near Catalunya, that one of
us would get injuried way before, or we'd just give up and go for the easy
beach vacation in the Basque Country.

Biad s refuge, under Posets
But we didn't, and after a somewhat painful start, with our boots soaking
wet during the stages that crossed the enchanting Selva de Irati
which ended up with me getting the biggest blister I've ever seen, we
started to walk farther every day, extending the stages when we
felt strong after reaching their official end. When we crossed from
Nafarroa to Aragonese territory, the mental wall that I had built over the
toughest stages in our quest started to fall apart. Days later, we found
ourselves climbing down to Pineta, leaving Ordesa behind and enjoying a
feeling that our adventure could not go better. The weather had been
perfect for over a week and our legs and back were strong to go all over
the way to the sea.

Ca n de A isclo, on our way to Pineta
When we finally saw that huge blue stain on the horizon, the day before
getting to the last mark, we got really excited. We had made it, but as we
walked towards the cape, happiness slowly got mixed with melancholy. An
unforgettable adventure was about to end, and we didn't want to face our
return to the city and our routines. It had been many days surrounded only by
awesome landscapes, and living without watches, with only sunlight and
weariness marking the time to get in our sleeping bags.

At the very last red and white mark of our journey
We've had plenty of time to meet great people. Starting with
the Navarrian brothers we met in the early stage, which provided us with a
good pace to follow while our leg muscles were still building up; or Kike
and Ana, who drove from Pamplona to visit us during the first Aragonese
stages (thanks for the supplies!). Tom s and Roger, young hikers from
Matar , surprised us with their maturity and experience as mountaineers;
we had the pleasure to join forces during four days, walking a really cool
variant through the Infiernos and Collado del Letrero
which avoided going through the ghost city of Panticosa. Roger and Tom s,
we really hope to meet you soon! Andreu, Manel, Ghandi and Ga la visited us
at the Vall de N ria and were unlucky to suffer a frightening
hail and thunder storm when they left our shelter on their way back to
their car. Thanks! All of you have been a very special part of our
experience!
This adventure through GR 11 has been incredibly positive for us for
several reasons. We've learned a lot about ourselves and strengthened our
relation, and now I know how powerful drive can be; to get somewhere, no
matter how far, it's really easy if you just believe you can do it and
desire to get there.
Maria and I are proud of what we've done, and no wonder we're looking
for new challenges. An obvious one would be repeating this experience,
going through the French side of the Pyrenees, but for now, the Corsican
GR 20 seems the most appealing. We'll see, next summer!
Next.