Patrick Schoenfeld: Sorry for Planet Spamming
Bah, sorry, I've just noticed that Planet was spammed with an old post, because of me changing the font to the default (which appearently also didn't work, lol).
Sorry for that.
Sorry for that.
long time no RC bug posting. in july I was at the Munich BSP, & during
DebCamp/DebConf I had the excuse of being one of the judges of the RCBC (which was the
only reason for the freeze, I'm sure :)).
DebConf launched with a bang the day I arrived
by bike I was up
until 3am meeting and greeting in the basement lounge of the Carmen
Columbia dormitory, where I was staying. No idea how I managed to be so
awake for that.
The rest of the week alternated between hacking like crazy on code
for my talk
and spending a lot of time socializing with Debian folks new and old.
For the day trip to Coney Island, I joined the
dkg-led bike expedition which ended up
running to nearly 30 miles, which was a bit more than expected. The fact
that this was all in actual dense city really drove home the scale
difference between Boston and New York (I'd never been to NYC before
this). We took several breaks to lounge around and eat and drink, so it
took quite a long time even given the distance. I hadn't planned on
seeing the baseball game that was a part of the trip, but I ended up
going anyway and it turns out that a bunch of geeks at a minor league
game is actually quite a lot of fun! I hope someone else will put some
pictures from the bike ride and game online soon, since I didn't really
take any myself.
This was the first DebConf where I gave a talk, which resulted in me
skipping almost all of the other talks, because my talk was on the last
day and I reaaally wasn't ready at the start of the conference due to
the rest of life being pretty crazy this summer. I missed some things I
would have liked to see because of this, but ultimately I think it was
worth it. The good news is: it went well! I was nervous until I actually
started talking (never given a talk at a conference before), and then it
was fine. If you missed it, the talk video is on the web in
low
and
high
quality; slides are here.
The audience was great there were excellent questions and people
were excited and interested in the project. I couldn't have asked for a
better reception. After the talk finished I spent some time aisle-chatting
with some folks, and totally failed to recognize
Joey despite having met him before, because
he'd shaved off his hair.
DebConf was, like usual, both inspiring and exhausting. I haven't
managed to follow up on much that happened during the conference yet. I
definitely plan to do so, though, now that real life is calming down
again. I'd hate to waste the post-conference buzz about
SD. My todo list includes:
If the Debian package of the day website were still alive, I would post this
there. Since I still have the backups lying in my harddrive waiting to be
restored in some other place, I'll post here.
In the graphviz package
there is a neat shell script called vimdot that will open
vim and a X window showing your progress with the drawing, updated
each time you save. Simple but really useful, probably not much people know it
exists.
Tags: Planet Debian, Planet Lugfi, tips
Between work and parenthood, I'm struggling to keep on top of things a bit
at the moment, but so I'm a bit late to the party.
Debian turned 17 during the week. I
think the first thing that brought the fact to my attention was someone sent
me a thank you note for maintaining dstat (of all things) via thanks.debian.net, which Marga
set up.
I've been a Debian Developer for 7 of those 17 years now, and it's been
great. I've learned heaps about Linux and Linux software packaging, and been
able to give something back to the distro that I love. My time commitment
waxes and wanes as real life permits, and my involvement in the community
has dropped to almost nothing, again for time reasons, but I hope to be able
to get more involved again in the future.
DebConf10 ended 2 weeks ago, I m back in Bosnia and I needed some time to recalculate everything that happened to me in last month
This was my third time in NYC, and NYC as a city never left me empty handed, in every possible sense! And am seriously considering option of moving back one day, whether to get my Masters/phD or just do work we ll see what future holds for me
DebConf10
I was in organization team for DebConf10, but if you put me aside, what s particularly interesting is that there was a total number of 7 Bosnians on DebConf10, two of which were government officials. I must note this wasn t our complete team, and what s most important of all is that they all pretty much volunteered as much as they could, of course, besides good will to help Debian, but also to at least somehow prepare themselves for organization of DebConf11.
It s also worth noting that this was their first DebConf, and I as a leader of the team must say I m proud on how well they performed. I m sure by being highly active in volunteering they have learned as much as they could when it comes to how it s done and were able to see good and bad sides of DebConf10 organization team.
Of course, I d also like to thank DebConf10 team for their superb work, perfect Venue selection, their hospitality and being incredibly friendly and helpful to all of us. As I said in one of my lectures, it s kinda unwritten rule that every next DebConf has to top the previous one, and that being said it s going to be almost impossible to compete with this year bid, but being Bosnians we re up for the challenge
My DebConf10 Pictures: Semi-private album FaceBook public link (no registration required)
DebConf11
DebConf10 was busy period for all of us, but I don t want to start complaining since even though we ve done enormous amounts of work so far, the real challenge lays ahead of us. With DebConf10 behind us, the thing we should process now is it s our turn now, we re next
Before anything, I d like to thank Government of Republika Srpska for their full financial support, which was one of the preconditions to even get this bid. With their full support + sponsors, we ll be able to get great amount for sponsorships, for you to come to Banja Luka from the most remote places, and also in case you need visa for them to help you in getting one. Government support is just too precious in any way you want to take it.
We would also like to invite you to DebConf11 in Bosnia (Banja Luka) next summer, we also invite all of you to our communication channels (mailing list, irc) since we would really like to get involved as many people as we can. Besides all of you enjoying DebConf11 next year, we would like you to help us in giving directions since we re a young team
Besides Debian people, I d like to invite anyone who think he/she could help, or want to get involved, especially individuals/organizations/LUG from whole region!
It s also important to stress that in all of our communication means, we do speak English, so please do not hesitate if you have any sort of question/suggestion/whatever.
For those interested in next DebConf11, most important page you should follow is our wiki page, where you can find all information and which we keep updated in timely manner: http://wiki.debconf.org/wiki/DebConf11/BanjaLuka
Communication/Links
Languages we officially support are: English, Bosnian, Serbian and Croatian
Mailing list:
)
Facebook:See you next year!
0 0 * * 1 /usr/bin/gpg --refresh-keys
to run at midnight on a Sunday, or any other convenient time. Append > /dev/null to make it silent unless there are errors.
Provide a key server
This is nearly as trivial a refreshing the keyring, but it does take some disk space (on my machine, 4G for the decompressed dump from another server, 7.4G for the database itself and a few hundred MB for other stuff. Supposedly the dump can go after a full database build, but as I m not constrained I haven t bothered).
The sks package in Lenny and Squeeze manages the database and answers to clients. However, take care to follow README.Debian carefully, since if the permissions on /var/lib/sks or /var/log/sks aren t set right it will silently fail and much head-scratching will ensue. Building the database for the first time takes some hours even on a reasonably quick machine, and takes a lot of CPU time, so it s probably best done overnight.
Once sks is running, it needs to catch up from the date of the key dump to now (which is why a recent dump is always a good start). To do that, it should be listed in the pool.sks-keyservers.net and therefore needs gossip peers. http://code.google.com/p/sks-keyserver/wiki/Peering is an excellent guide, though the version of sks in Lenny does not support multiple listening addresses for either the recon or hkp processes.
When a small enough delta between the server and its peers is reached, it s included in the DNS pool for use by other clients.
My project.
This part of this post assumes that the reader has read my last post.
The Summer of Code is over. It was great to spend time working on GHC and getting money for it. Although the implementation is not mature enough to be included in the repository, I m happy with the state it is now. I think it s a good start, and I plan to keep working on it. It s good to see how my motivation increased now that the program is over, and that I m free to not work on it if I want to. So I m going to take a look at it again, as soon as I do the stuff I was postergating during the program. I ve created a wiki page for it, and my plans are to implement and measure the Remove partial lists patch, and then to debug Allocate in lines in minor GCs . Any help is very welcome.
Quite a few things have happened recently in the Debian/ARM land
Debian package building scripts consist of several inter-related tools, which are documented well with manpages, but not in the code itself.
Should you have some free time I urge you to take a peak at the source code of dpkg-buildpackage, debsign, and debuild. They work. They work well, but they're not shining examples of clear code are they?
Given that they work, and that they are complex I'm not sure I'm interested in improving things, but I do have a personal desire to run something like:
debuild -sa --output=/tmp/results/What would that do? Instead of placing the resulting package in the parent directory, which is what we have by default, it would place them in the named directory. However looking over the code I see that there are too many places where "../$file" is hardwired. e.g. Take a look at dpkg-buildpackage and you see:
my $chg = "../$pva.changes";
..
open OUT, '>', $chg or syserr(_g('write changes file'));
If you change that to the simple code below it works - but suddenly debsign fails to find the file:
my $dir = $ENV 'OUTPUT' ".."; my $chg = $dir . "/" . $pva . ".changes";Ugh. I guess I can come up with some hack to index files in the parent, run a build process, and move the only new files into place. But that's sleazy at best, and still doesn't solve the problem that we have tools which we rely upon which are .. unfriendly to changes.
I thought I could handle this via:ObQuote: I am the servant of the power behind the Nothing - The Neverending Story.debuild \ --post-dpkg-buildpackage-hook="move-changes-contents /tmp/output/ ../%p_%v_ dpkg-architecture -qDEB_HOST_ARCH .changes" \ --no-tgz-check -sa -us -uc(Here "move-changes-contents" would read the given .changes file and move both it and the contents listed in it to the specified directory.) Unfortunately %v corresponds to the package version - which isn't the same as the version in the .changes filename. (i.e. epochs are stripped out.)
When Lars and I started work on
Branchable, the
Ikiwiki-based wiki and blog hosting service that we first discussed a year ago,
and launched two weeks ago, we didn't know what software to use to build it.
Probably, we assumed, we'd need a relational database. (Or maybe Couchdb,
we wondered?) To manage the sysadmin jobs of keeping a slew of Ikiwiki
sites running, we investigated using Puppet or Chef. (We worried that
scaling Puppet or Chef to handle an arbitrary number of ikiwiki sites could
be a problem.) For the user interface frontend, we assumed we'd be writing
code in some kind of web application framework.
Nearly all of that conventional wisdom turned out to be false. Instead,
all the frontend code for Branchable runs as part of Ikiwiki.
www.branchable.com is just another Branchable site, though one with some
custom plugins that can make other sites and display a user's control
panel. Other plugins handle things like the
DNS setup interface.
Those plugins are part of the first public site hosted on Branchable,
ikiwiki-hosting.branchable.com.
That wiki's git repository holds all the code, as well as the wiki for
documentation and bug tracking. Also included in ikiwiki-hosting are some
backend programs, like ikisite, which handles the high-level site
management (creation, deletion, branching, etc), and is what we used
instead of Chef. (Though we may use Chef for server deployment later.)
Rather than use a relational database, we did out own little noSQL thing,
by using a special, locked-down wiki as our database. That wiki is so
special-purpose that it is not even accessible via the web!
But it's managed by Branchable just like any other site. Deciding to
not use a database was a watershed moment, because at that point we were
fully dogfooding everything
for Branchable. It's worked out well so far, possibly because our database
needs are minimal.
We have over a dozen other Ikiwiki sites in Branchable that we use either
internally, or for other special purposes. Like
this parked site
that is branched
every day to refresh sandbox.branchable.com.
So, no database, no Puppet, lots of dogfooding. Did we use a web app
framework? Not really. The closest we came is when developing Branchable
highlighted that Ikiwiki needed a more user-friendly openid login
interface, so I went off and adapted one, and of course added it into
Ikiwiki proper. And that uses the JQuery framework. (I might write sometime
about all the other Ikiwiki improvements that Branchable spurred.)
We've done a lot of eating our own dogfood at Branchable, but I think it's
all been pragmatic, not due to Not Invented Here syndrome. And the result
is that Branchable is increasingly flexible
in what its sites can do, and runs on a very simple architecture, with no
odd special-cases for database servers, etc. It's just a bunch of Ikiwiki
sites that work together.
for a in ls ; do mv $a $a.gpg; done
gpg --decrypt-files *.gpg
rm *.gpg
gpg --import *
rm *
This LWN article is perhaps a bit confused,
but it does point out a truth: On modern hardware, with fast, local
storage, and large, often static files, rsync is often unncessarily slow.
That's probably true to some extent when using rsync across a LAN, but
it's especially true when using it to copy files locally. rsync runs as a
client/server pair, and both processes MD5 checksum the files as they are
being transferred. That's nice, but it's slow too.
Funny thing about rsync is that probably 50% of uses of it don't involve
the core feature that it was written to provide: Updating files by
transferring differences. Which, other than ensuring data validity, is
the only reason it needs slow checksums. Instead, rsync is often chosen
because of all the other awesome features that were glommed onto it over
the past several decades.
Compared with rsync, cp is pretty laughable -- it can't even exclude files
from being copied by patterns. And unlike rsync, cp command lines are not
often developed by repeated trial and error -- cp does not recover well
from being ctrl-c'd in the middle, while rsync does. These kinds of things
make a lot of us reach for rsync first, even if the situation does
not involve incremental file changes. In most any situation, one of
rsync's 120-some options is sure to be just what you need...
So lots of scripts use rsync to synchronise directories, but the amount
of speedup obtained by using the rsync algorithm is often low.
(Correction: rsync turns off the delta-transfer algorythm by default for
local to local transfers. It still does md5 checksums however.)
Since rsync is reasonably fast, we generally don't care that it does these
checksums that probably on average slow it down. But if larger files,
like videos, are involved, this starts to change.. When rsync is run
on a typical home NAS, with a slow (arm) CPU, the picture changes
entirely -- now the checksum overhead is unbearable, while the IO overhead
is minimal.
So, here's local-rsync.
It takes all the same options as rsync, with the caveat that
SOURCE and DEST must be the first two options, and must be local
directories.
% local-rsync huge/ /media/usb/huge/ -a -v --exclude '*~' --delete --max-delete=100
It speeds up rsync in these types of situations, by querying it to find
what files need to be updated, and updating them the brute force way, with
cp. At the end, rsync is run, to take care of the non-brute force stuff
(like deletions and file permissions).
On a fast CPU, local-rsync will probably speed up rsync of large, static
files by a factor of 2. On a slow CPU, local-rsync is so fast, and rsync so
slow, that I have not bothered to benchmark. :)
This is just a hack (easily replaced by a --no-checksum option in rsync, of
course). But I think it illustrates some interesting things about how a
program's underlying assumptions about its environment can change over
time, and how free software programs can accrete value until the original
differentiating reason for their existence is not the most important thing
about them anymore.
I have just looked at traffic to my photos from Debconf10 during and after the event. During the event I sent out the link to the photos to Twitter/Identi.ca and to IRC channel of the conference. The amount of people visiting my photos rose from <100 per day to around 1000 per day. That might be the number of people that follow Debian actively enough to either follow the conference directly or look at #debian or #debconf or #debconf10 Twitter hashtags (if only half of people care about photos, multiply that number by 2).Next.