Author Archives: misa

“The hardest thing to learn is that which we think we already know”

I saw this quote, quite some time ago, on a friend’s page, attributed to Robert A. Heinlein.

For some reason, it never struck me as something that would be generally applicable. Until several days ago, when I started to think some more about it.

The world was the center of the Universe. It took some serious effort to change that.

I guess we tend to not question what we already know. It would not be very productive if we did, at least not at every step.

But maybe on occasion we should stop and think about what we know – is that really the truth?

More than once (and too much over the past couple of days) I’ve seen us defending a position, not because it was the right one, but because we needed to justify the decision. You may notice that, sometimes, if you point something out to a person, they tend to become very defensive and argue, sometimes fiercely, what they think they know.

It happened to me before, and probably continues to happen all the time. As usual, I am better at spotting this in other persons than in myself. After all, I know myself, why would I be wrong? I’ve seen it happen to friends, to people I love, in them dealing with their own problems (in which at least I have no stake, which is the reason I can claim impartiality). It is heart-breaking how blind we can be when we try to justify (what I perceive, as an outsider, as) the wrong decision.

If I am allowed to quote from a movie, “Vanity, definitely my favorite sin.” I cannot  think of a better explanation that pride for this struggle to realize when we’re on the wrong wrong side of the fence, when it comes to human relationships.

Science may be wrong in some of its assumptions (just like in the geocentric example above), and that would have nothing to do with pride. But one person admitting their mistake takes a lot of un-learning.

If only we could see the difference between right and stubbornness.

Is there a cure for my Al Baraka addiction?

I seem to be a sucker for whatever Al Baraka (on Hillsborough Street, right next to the I-440 ramp) sells.

Today’s way of killing money:

  • fresh lamb, locally grown (from Salisbury, NC)
  • Baba Ghanouj (metal can, but who cares, as long as the contents are good)
  • Kurdish olives. Pickled, not very salty

Every time I go there I discover something new that I really have to try. I hope there’s cure for that.

Sycamore Scramble

The local orienteering club, BOK, is organizing an A-meet (i.e. a national event), February 20-21. I’ve signed up to be one of the setter/vetters.

It’s very interesting how we decided to make sure we minimize the risk for mistakes when setting up controls, and in a way it’s an OCD-er’s dream. There are at least three setters that will go out and hang ribbons where the controls are placed. Then, two other persons (the vetters) have to go and vet (approve) the location chosen by the setter. Setters have the liberty to move the control from where the course designer suggested the location to be, for example if a feature is missing or is too dangerous to get to; vetters should try hard not to move controls, unless they were set wrong.

This gives you triple accountability for a control’s location, not to mention that some of the club members will have a practice run of the courses the week prior to the meet (which happens to be next weekend).

Today I spent more than 4 hours vetting. Now I am barely moving. Probably getting into the warm house after all that time in the balmy 34-36°F (1-2°C) did not help much. However, this is exactly what I need, hopefully the small injuries I’ve been accumulating over the past couple of months will eventually go away to let me go back to running on a more regular schedule.

I’ve also worked on a solution to download data from an Sportident box on a Linux computer (it might work on Windows too, since it’s written in python, and I believe pyserial does work on Windows. It has sound to alert users if their download was unsuccessful (more about that in a future post), and generates a PDF for the splits and total time; I think the printing part is going to be the one that will cause most of the problems, I seem to have bad luck with printers in general. (The printing part would definitely not work on Windows). At some point I will publish the code, maybe someone else has a use for it.

20 years later… (or: the ends justify the means)

20 years ago, on this day, Romania’s president at the time, Nicolae Ceauşescu, fled under pressure from the large popular uprise which we call The Revolution.

Three days later, they were executed, after something that pretended to be a trial. Over the past days, a Romanian newspaper ran the timeline of the events, tracking the movements of Ceauşescu and his wife. The trial was filmed, and it exposed the truth about “revolutions”: in order to gain legitimacy, both for the Romanian people and for the foreign governments, they needed to show there was a trial. They also needed the former president executed, partly as an attempt to stop the attacks from terrorists (special forces allegedly trained by the former president as elite units that would protect him) against the population and the military forces.

20 years later, said terrorists are still nowhere to be found. The attacks were just various branches of the military not knowing what to do, and pulling the trigger against each other.

20 years later, the goal of the trial is ever more obvious: the new political class (which was really not that new to begin with) needed no roadblocks from the old president; they wanted the president eliminated, and they came up with a plan that would help their recognition from the rest of the world as a legitimate government.

The accusations against Ceauşescu were not sustainable in a real court. 20 years tend to erase some of the bad memories from the terrible times of his reign, so I may be missing a lot of the details about how bad it used to be (and, believe me, communist Romania was bad). But the new political class decided that the ends justify the means.

In the end, I personally believe that people give the institution of presidency too much credit. (And this applies not just to Romania, pre or post December 1989). I believe Ceauşescu was being presented with a very rosy picture about Romania, by the people around him, some of them who eventually were the ones to kill him. He was an old man, some argue he was senile, and the powers behind the curtain liked the status quo, until it became non-profitable. He was merely a symbol – the symbol of the extreme-left communism, in a Europe that was trying to get rid of the East-West separation. He probably truly believed in his ideas, completely oblivious to the real economic and social facts. His ignorance could be blamed on his age or medical conditions, but I would much rather blame it on his entourage that handled the smoke and mirrors.

December 22, 1989 – I remember that my parents were coming back from a visit from my grandparents, and I was home, alone, vacuuming and cleaning up for Christmas. And, for some unknown reason, I turned on the TV. This makes very little sense now for me, just like it probably does not make any sense for you – but we were only having 2 hours of TV per day, and most of it was just news anyway. There usually was nothing (as in no signal) on a Friday morning. And yet, there he was, talking about something I did not pay attention to. And then the audience (which was normally cheerful and would acclaim him after each sentence) started booing him. That was unheard of! An hour or so later, when my parents came home, they would not believe me.

And from that point on, Romania was glued to the TV – the same thing we all ignored for the most part until that day.

Fall activities

A quick update on my non-work related activities.

A lot of orienteering lately:

  • Quick white course at Lake Bond with my daughter a few weeks ago.
  • A very eventful Birkhead Wilderness run. You can read the report in the comments – I don’t think there was one single participant to get all the controls right. I messed up the first two and had a relatively clean run after that, especially after I started to pace count.
  • A quick Bond Park sprint. I kind of had the home field advantage, and I was still slower than the fast runners.

I ran for the first time with the Raleigh Trail Runners. I knew I signed up for pain, and pain it was. 2.5 miles at a slow speed, 6 uphill sprints on the Graveyard Hill at Umstead (off of Old Reedy Creek), and back 2.5 miles; last 2 miles were 7:50 and 6:50 minutes respectively. Maybe we were trying to make it back before it got too dark. As I said to the other (3) runners, it’s no surprise so few people sign up for hill sprints.

My daughter started to take piano lessons, so a piano had to be acquired. We got a digital piano which seemed like a good compromise of quality vs. price.

Between fixing stuff up around the house I’d like to get back to some recreational programming (picking up Flex would be nice).

Prize for trash

One of the novel ideas (at least for me) for the Gleneagles Challenge Adventure Racing was a prize for the most unusual piece of trash one can collect from the course. I think it was a great way to encourage us to clean up the courses, but even more so to become painfully aware of the price of littering.

It is not fun running with a wheelbarrow :-) I kept seeing it in a ditch at Lake Bond for the past couple of weeks, and was wondering who’s going to pick up; my teammates decided to break it in two pieces (the cup and the handles – there was no wheel), and we took turns carrying the parts. That was enough to earn us the prize :-)

My First Adventure Race

Today I participated in the Gleneagles Challenge. I must say it was a lot more fun than I expected from an event that takes 4.5 hours and requires you to be constantly on the move.

About 20 minutes of running, 30 minutes in the kayak, an orienteering course and a lot of bike riding. The bike’s odometer showed 19.33 miles when I got back home (that included about 3 miles to get to Lake Bond and back).

Thanks to Bryan, Rob and Justin for letting me join them. Overall I think we did pretty well, second place when we only aimed to finish the race in one piece.

keyutils, python and you

Over the weekend I wrote Python bindings for keyutils. So this blog announces python-keyutils.

If you are not familiar with keyutils, it is a library that allows you to securely store sensitive information, directly inside the Linux kernel. You have a reasonable guarantee that the information cannot be retrieved from the memory or swap.

keyutils comes with a binary, keyctl(1), that gives you access to the kernel’s key management facilities. The man page describes the types of available keyrings. The ones the most interesting to the use case I had in mind were the per-thread, per-process and per-session keyrings.

The need for python bindings came when we realized that our release process requires typing the passphrase for signing packages way too many times, so there was a real need for a key agent of some sort. Searching for gpg-agent protocol specifications (or seahorse) returned some information, but nothing I could readily use (I may not have found the proper examples for speaking assuan; the end result was that I could not get anywhere in this direction).

Future versions of Conary will have the ability to read passphrases from the session keyring, if python-keyutils is installed. You can get python-keyutils from either contrib.rpath.org@rpl:2 or foresight.rpath.org@fl:2-devel (depending on whether you need the python 2.4 or python 2.6 version).

Keep in mind that I only implemented the bare minimum I needed for being able to set and get key information. There are other functions the library provides, that could be useful to have. If you find the need for one, let me know; as usual, patches will be cheerfully accepted.

The code is hosted on bitbucket and can be checked out with Mercurial.