And the Oscar goes to…

July 12th, 2010

After today’s World Cup Final, I am even more committed to boycott Soccer (or Football for the other 99.9% of the nations out there) by not watching it.

Too much acting. Too much cheating.

Imagine this discussion with your child (and no, it didn’t happen to mine, but I am sure it could):

“Daddy, who is Cristiano Ronaldo?”

“He’s this very famous player that earns millions per year.”

“Wow, he is really good. Look at his skills. The other team can only stop him with fouls, see? Look at the replay, you see how they… Oh, wait… They didn’t even touch him. He just fell off his feet and the other guy got red carded.”

“Well, you see, sometimes they play a little bit of acting,  you know, to improve their odds…”

“But isn’t that cheating?”

“It is, but…”

“So why do I get punished if I cheat at my test, or I am called out for plagiarizing, but they get away with it? And they have no shame that everybody will see the replay, and realize how crooked they are? Including the referees who got fooled for a second, and will get (rightfully) stonewalled after the game? And why is FIFA’s slogan ‘Fair Play’? Is it really fair to cheat?”

I am not original, I read some of these opinions on other sites. I am sure a lot of people feel the same. I am just wasting zeros and ones here.

Spain deserved to win, they were the better team (although I must admit I did not watch the whole game). Netherlands did not deserve the silver medal, after all the theatricals they played. No matter how talented Robben is, I lost all respect for him the moment he fell off his feet and claimed a penalty kick or whatever he was claiming when he was booked.

I am sure that, 4 years from now, I will forget all this, and I will waste other 90-minute chunks of my life. And I will again feel sorry for that. If FIFA does nothing to make the game what it used to be, I am afraid the game is doomed.

Recovering data from one disk from a RAID1 array

June 5th, 2010

Last night I helped a friend recover his data he had stored on an Iomega NAS.

The disks were fine, the rest of the hardware had failed.

Prior to me being involved in this, my friend had installed Ubuntu on an older machine and had installed both drives.

Not having played with RAID for quite some time, I had to acquire some knowledge first – google to the rescue!

In the process I used the wrong option to mdadm (–create instead of –assemble), so I messed up the RAID descriptor on one of the disks. Fortunately, the second disk was fine.

Here is what I ended up doing:

  • install mdadm, a utility to configure RAID devices.
  • install lvm2, a utility to configure LVM (Logical Volume Manager).
  • Run:

mdadm –assemble /dev/md9 /dev/sdc1 –run

(this adds one of the partitions on the existing drives, /dev/sdc1, into a RAID device /dev/md9 running in degraded mode, i.e. with not enough disks – that’s what –run does)

vgchange -a y

(this scans all drives, including the newly created /dev/md9, for logical volumes)

It should print something about a new device with a rather cryptic name, I think something like /dev/vg1_md9/lv1. lvdisplay will show the available volumes.

This new device has a filesystem that can be mounted:

mkdir /tmp/olddrive
mount /dev/vg1_md9/lv1 /tmp/olddrive -o ro

After this, the directory /tmp/olddrive is associated with the contents of the filesystem.

There may be better ways to achieve the same thing, but this is what worked.

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

April 27th, 2010

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?

April 2nd, 2010

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.

Canonul cel mare al Sf. Andrei Criteanul

February 15th, 2010

Puteţi asculta Canonul cel Mare aici.

(if you cannot read above this line: it’s a link to the Great Canon of St. Andrew of Crete, officiated during the first week of the Great Lent).

Sycamore Scramble

February 6th, 2010

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)

December 22nd, 2009

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.

A new low in spelling

December 18th, 2009

Saw this last night on one of the local TV stations: “Happy Holiday’s!”

I’m sorry, I meant, on one of the local TV station’s. Because noun’s should have apostrophe’s.

Fall activities

October 15th, 2009

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

September 1st, 2009

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 :-)