Joey Hess: a resolution that stuck
Last year, my new year's resolution was to write in my journal every day.
That actually stuck, I wrote 262 journal entries in 2011. While I've been
keeping a journal intermittently since 1998, last year I doubled the number
of entries in it. And wrote a novel's worth of entries -- 53 thousand words!
Most of it is of course banal and mundane stuff. Not good compared with
Lars, who does something with his journal where he goes into some detail
about code he's working on, and other work. The excerpts I've seen are
quite nice. But after I've written code, written a commit message,
documentation, perhaps bug reports etc, I often can't find much to say
about it in my journal, beyond the bare bones that I worked on $foo today or
faced a particularly hard bug. I also worry that the journal, and my
reluctance to repeat myself, often tips the balance away from me blogging,
if I write down something in the journal first.
Here's my journal for today:
Compare what jokes are funny now with those in 1982. The 1982 ones from net.jokes on olduse.net seem juvenile. Now compare what Unix joke man pages are funny now with those I'm reading from 1982. They seem basically the same. What would Biella make of this? Liw noticed ikiwiki OOM on pell. Tracked down to a perl markdown bug with long lines. Had quite enough of perl markdown; ikiwiki will be moving to a different engine. Added discount support to it today, still needs Debian package tho. [censored] Really gorgeous sunset, with a high wind, moon, puffy low, fast moving clouds. Enjoyed it ecstaticly. It's going to get cold soon. Very rainy early, but then got intermittently sunny; power is holding out ok. Was going to roast a chicken today, but got distracted and had a large lunch besides. Need to find some quick food for supper. I need to start a new book, should it be the River Cottage book about meat that I stole from Anna, or some SF? Blogged about journaling, and put this journal entry in it, so also journaled about blogging. Wrote it somewhat self-conciously.
The benefits for me have ranged from being able to go back and work out dates of events, to forwarding the odd excerpts to others. The best thing though is certianly having a regular time of introspection, to look back over my the day. If you've not got a new year's resolution yet, I recommend this one. (Learning Haskell would be another good one, if you haven't yet.) Just write something, anything, down in your journal every day.

(
I've been informed by a couple of people that the
I started this blog over a decade ago. Over time, my priorities have changed family, work, home, etc. Many other avenues for online self-expression have also developed in the interim. I m done for now. Old entries remain online, but do not necessarily reflect any of my current views, and certainly do not reflect any views of any of my employers.


The
Backups are something I don't do well. I hope to write a more thorough
article about them at some point. For now, here are some tips.
Like most home users, I don't have access to a tape drive or jukebox for
backups. I'm therefore looking for a solution that backs up to a local
block device. I haven't ruled out a solution that backs up to DVD-Rs,
but I haven't found a suitable one.
I first tried
So there are two servers; let's call them srv1 and srv2. Srv1
contains a bunch of subversion repositories, but these are to be
migrated to srv2. Since the repositories are not (just) used for
ascii-only files, they're fairly big (several tens of gigabytes,
altogether), so copying them from one server to the other would take a
while. In order to make sure this would happen quickly, we had already
copied them over to the new server, so that on the final switch would be
quick (an rsync that would copy over just the new done
transactions).
That final switch was today. Only I didn't know that instead of just
testing, the customer had already started using one of the repositories
(and they'd forgotten to remind me), so the subversion repository
suddenly jumped backwards in time. In addition, the new server wasn't
being backed up yet (at least not for the subversion bits), so restoring
from backups wasn't an option. Oops.
Luckily the solution is fairly simple. You see, fsfs stores each
revision in a unique file; that means that as long as nobody has
committed to the repository yet (which they couldn't, since system users
aren't the same on both servers, so the webserver didn't have write
permissions on the repository after the rsync), nothing is lost. One
only needs to manually change the repository so that whatever subversion
thinks is the latest commit, actually is the latest commit.
That information is stored in a file called db/current
inside the repository. What's in that file depends on the repository
version, which is stored in a file called db/format in the
repository. For versions 1 and 2, the format is a single line with three
space-separated values, of which the first is the last revision number
used in the repository. The other two are counters that are used to give
transactions unique names; and they, too, need to be up-to-date. For
version 3 and above, the file contains only the revision number; there,
the other two are derived from that instead of having their own unique
number.
Figuring out the last used revision number in an fsfs repository is
ridiculously easy:
So, I intended to be completely away from my computer during my vacations, but hey. I have been interested in this new extension Apple added to the C language a little while ago which introduces the equivalent of closures to C. Today I spent a few minutes looking into it and writing a few tests with the help of clang.
Here s something I came up with, to use a block as the callback for a GIO asynchronous call:
Summary: It is important that we (the Debian community that relies on OpenPGP through
GNU Privacy Guard) stop using short key IDs. There is no vulnerability in OpenPGP and GPG.
However, using short key IDs (like 0x70096AD1) is
fundementally insecure; it is easy to generate collisions for short key IDs.
We should always use 64-bit (or longer) key IDs, like: 0x37E1C17570096AD1
or 0xEC4B033C70096AD1.
TL;DR: This now gives two results: gpg --recv-key 70096AD1