Search Results: "bod"

23 April 2006

Joey Hess: ouch!

I've added a sigprogs page listing some of the signature programs I've written over the years. As I was researching that, I discovered pictures of one of my programs, a variant of the RSA in 3 lines of perl, that two people have gotten tatooed onto themselves. tattoo2.jpg tattoo3.jpg
#!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_= echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp" dc ;s/\W//g;$_=pack('H*',/((..)*)$/)
I remember sending that in, but until today I hadn't realised that my keystrokes had actually translated into needle sticks for two people, Youch! (The history of why a few people did things like getting programs tattoed on their bodies as a form of political protest is pretty interesting, if you're not familiar with it, the basics is that this tiny 3 line program was considered a dangerous "munition" by the US government, and was thus illegal to export. Nowadays you just have to mail a copy to the CIA or someone before exporting it; OTOH I think my DVD decoder T-shirt is still illegal.) Anyway, I wonder how to represent this acheivement in my resume? "Munitions tattoo artist"?

22 April 2006

Tollef Fog Heen: Am I spoiled?

(By way of magnio) Go through the list. Tick everything you have or have done. If you can tick 40 or more, you're spoiled. Do you: Are you: Have you: Did you: 24, so a bit more spoiled than Magni. Not that much, though.

21 April 2006

Jose Carlos Garcia Sogo: GCompareFunc...

or why C++ sucks. I am wondering if someone could be able to explain me why this piece of code fails when I try to compile it:
  1. GMJabberClient *GMJabberManager::GetClient (GmAccount *ac)
  2. {
  3.   GMJabberClient *client = NULL;
  4.  
  5.   client = g_slist_find_custom (jabber_client_list, ac,
  6.                                 (GCompareFunc) compare_clients_by_account);
  7.   return client;
  8.  
  9. }
  10.  
  11. gint GMJabberManager::compare_clients_by_account (gconstpointer a,
  12.                                                   gconstpointer b)
  13. {
  14.   GmAccount *client_ac;
  15.  
  16.   GMJabberClient *client = (GMJabberClient *) a;
  17.   GmAccount *ac = (GmAccount *) b;
  18.  
  19.   client_ac = client->GetGmAccount();
  20.   if ( strcmp(client_ac->aid, ac->aid) )
  21.      return 0;
  22.  
  23.   return 1;
  24. }
It fails at g_slist_find_custom call, why GCC saying:
endpoints/jabber.cpp: In member function GMJabberClient* GMJabberManager::GetClient(GmAccount*):
endpoints/jabber.cpp: 6 error: invalid use of member (did you forget the & ?)
make[1]: *** [jabber.o] Error 1
I have been only able to fix this by declaring compare_clients_by_account () function a static function, while it actually should be private method of GMJabberManager client. Ideas?
Update 04-21-2006 11:31:34.- First of all, thanks to everybody who have replied to me by mail. Fot those who wonder why I don't have comments enabled, the answer is easy... it is another place to look at, to keep clean of spam, and to care. Those who suggested using constructions like this->compare_clients_by_account or &compare;_clients_by_account that won't work, as other people explained to me (and GCC says a bit more clearly if you try to compile that). As this is C++, when using such constructions you get a member function which gets passed a pointer to the class instance. This way, the prototype for what g_slist_find_custom expects and what it is actually being passed is not the same. This is where static member functions enter in action. Those are functions belonging to a class that not get passed the this pointer, avoiding the problem. Please, follow next week our "C++ sucks / what the hell" show!

18 April 2006

Jose Carlos Garcia Sogo: Boot Time Enhancements

Does somwbody know what happened to those efforts to increase boot speed? Not long ago, some people started making funny graphics with boot times and some solutions regarding paralellism were given. But I haven't seen them applied, and the discussion about this issue disappeared. If I remember right, the main problem was with hotplug, and I know that this problem has been solved in latest udev packages by preloading some modules, bu tanyway I think that start up time can and should be cut off as most as we can. This is not ony important for desktop users (which have also another point that can be improved in GNOME or KDE, as well as X itself), but also for servers. If some problem occurs that leads to a reboot, the shortest this reboot time is the better, as you will get your services back sooner.

16 April 2006

Lars Wirzenius: Debian: Flames you never see

Sometimes there's e-mail that makes me quite angry. I then write a reply, and it is often a very angry reply. A flame. A scathing argument that annihilates the argument, persona, ancestry, future, and in fact entire existence of whoever angered me. Much of my best writing happens this way. Nobody ever sees these e-mails, though. The flamees will never know how utterly, totally, excruciatingly helpless they would have been under the scalpel that is my e-mail. I'll know, and I'll be quite smug about it, too, sitting in a dark room with my laptop in my lap, giggling. Not entirely unrelatedly: David Nusinow, you are owed a drink of your preference. No giggles for you, only respect and understanding for mistakes.

Erich Schubert: More on brands

In this weekends newspaper was an article on brands in fashion. That the big brands are going down, and instead smaller brands are coming up. This was explained with people wanting to be "hip" and faster than the trend. "Cutting edge". This is very interesting, since Google basically defied this trend. Google started as this "insider tip" for search engines, back when everybody was using Altavista, Yahoo, Hotbot and such. Back then, Google was "hip" because of it's simplistic interface and quality, and meta searchengines such as MetaGer. Many of these search engines from back then have gone away. And Google has become a really big brand. Using Google is not "hip", everbody does use it. So what is it keeping people this loyal to the Google brand, and not going for new "hip" stuff like ExaLead. Another counterexample are iPods. I didn't buy one, because everybody does (and it doesn't play my .ogg files, and doesn't do gapless playback) - but millions of people did. So iPod is another "old-style brand" that just popped up a few years ago. Will the same thing happen on the net that has been happening in fashion? The next big thing, will it be an influx of "lifestyle search engines"? Maybe built around top blogs like BoingBoing? Should companies try to buy their way into the top blog sites? Or are they actually more likely to kill them that way? Or is the net actually ahead, and big brands are coming back? But given that one of the key features of so-called "Web 2.0" is the social interaction thing, isn't the net just changing right now to add more "community"? Will it happen to operating systems and software, too? Apple OSX is doing well in becoming a "lifestyle OS". Windows can't. But how about the Linux UIs? KDE has tons of features, some people say it's overloaded. GNOME is going the other way, keeping things simple and easy - too simple and easy for others. What if we'd "lifestyle" user interfaces, and do the next step past "theming" - offering desktop OS styles like "power user", "hip and quick", "just let me get the work done quickly" and "less is more". I guess we don't have to workforce for that. Yet.

15 April 2006

Steve Kemp: Deep down I know there is no other way

Looking over my server logs I see from the referers (sic) that somebody wrote a brief guide to using my xen-tools package under Ubuntu. It is a simple guide, but still useful since it doesnt actually need to be detailed. I wouldn’t have noticed had I not checked my server logs - so I thought it was worth suggesting that if you write documentation for any software it really is worth the time to point people to it. I know when I started writing pieces for the Debian Administration website I often pointed software authors at any article I’d written which described their tool/software. Partly for a good chance of a knowlegable reader who would correct any glaring mistakes I might make, but mostly because I think it is the right thing to do.

13 April 2006

Martin F. Krafft: Why Thai massages hurt

Naturally, in Thailand you ought to try a Thai massage. If you do, it's best to ignore all the things you ever heard about them, as that might stop you otherwise: the Thai massage is painful for a number of reasons, but one is the most prevalent one, at least for me. The idea of the Thai massage is that of "passive yoga." The masseur (or more likely, the masseuse) will knead your muscles beyond the point of comfort (unless, of course you tell them to keep it down, which I never did). They will bend your body, stretch it in ways you didn't think possible, crack your joints, rearrange your spine, and finally massage your head as if they are trying to make up for all the pain. However, all this is very bearable. What kills me each time I let a Thai massage me is the fact that the Thai apparently don't have hairs on their legs and arms. I do, however, and it's kinda hard to relax and breathe calmly while these hairs are being pulled every time he (or she) grabs part of my leg (or arm) to knead or twist it. But I'll do it again, and I recommend everyone who has the chance to try it -- at least once.

11 April 2006

Martin F. Krafft: More luck than brains

It's been a busy three days since I last wrote. The climax (or lowest point) must have been the loss of my wallet with about 800 Bhat of cash (16 EUR) and a credit card inside. I left in on a telephone in a bus station in Khon Kaen during a very stressful moment trying to get to our next destination. Luckily, within ten minutes I noticed the loss and could cancel the credit card, so the damage is minimal (although I should hope that one day it hits me hard because I apparently never learn and leave my things all over the place -- like the camera on the return trip from Zanzibar/Tanzania). Anyway, shortly after the loss, we ended up in a very fortunate situation ("more luck than brains"), but more on that later. Last time I wrote, we were in Khorat, headed for Phimai the same evening. With about four hours to spend, we opted for a massage, and I chose the traditional style with a weighty woman bouncing up and down my body and twisting it into unnatural shapes. Nevertheless, I felt absolutely great afterwards and am looking forward to the next time. The massage took a little longer than expected, and when we finally made it to the laundry place to pick up our load, they had just closed. But nothing is impossible in Asia, and soon we had one person tell another to find the owner in a hairdresser shop, and she happily made an exception and handed over our bag. Feeling very good, we headed for the bus terminal to find the bus leaving 90 minutes later than planned, so we spent the time watching the busy life of Thais departing and arriving before riding for 90 minutes to Phimai, where we had to wake the owners of the guest house despite having called in earlier to let them know of our late arrival. The room was spartan but moderately clean, and we passed a night only disturbed by the continuous sounds obviously made by cockroaches, though none seemed to be in our room itself. Jokingly, I remarked that there is nothing to worry as Thai cockroaches would take off their shoes before crawling onto the bed, but I am yet unsure whether that was reason enough for Aline to finally drift to sleep. Phimai is a tiny town housing a beautifully restored Khmer temple, said to be the best preserved in Thailand. Without a guide, and with the heat picking up to a stifling level already at 9:00 o'clock, we decided to better spend the time in a bus, traveling north to Udon Thani, but first spent a visit to the Phimai national museum, and the "Banyan Tree," a huge assembly of trees with Thais picknicking in its shade. Leaving Phimai with a bus, we had to hop on another in Thalak Ke, about 10 kilometres away from Phimai, but our initial joy of catching an air-conditioned ride for the 4 hour trip to Udon Thani was severly lessened when the bus pulled in and was completely crowded. We stood pressed against each other for the first 90 minutes of the trip, until we reached Khon Kaen, where lots of people got off before lots more got on, but we were able to get seats in between. Having arrived in Udon Thani, the plan was to leave the same day for the Laotian border to catch a boat along the Mekhong river to Chiang Khan, but that seemed impossible without a visa for Laos, which is $30 per person and a little too much for the joy of the journey. A little disappointed, we stayed in a luxurious hotel (10 EUR per night) and strolled around the city at dawn, chatted a while with a Welsh expat about old European men coming to Thailand to find women, and finally headed for the Mandarin restaurant, suggested in the Lonely Planet. The place was sketchy, with a loud television set blasting some Thai soap opera, and the staff really misunderstood the meaning of "appetiser" and "vegetarian", so that I ended up eating a giant plate of "Chinese Hors d'Oeuvre", Aline's spring rolls with shrimp paste, and the Pad Thai I had ordered. They forgot the noodles, and Aline's Tofu portion was too hot, but our tummies stuffed, and we sank into bed early. The night was horrible, I was plagued by stomach aches and the fear of a repeated experience -- the last time I ate Pad Thai along this meridian was in Vientiane, and I came down with food poisoning, and I felt exactly the same way as back then throughout the night and morning. I stayed in bed long but fortunately found that I had just put too much food into my belly (which wasn't used to it, we had been eating sparingly), and walking solved the problem. Weighing our options, we decided on the route of the next two days. Initially, it was to be Loei and the Phu Kradung National Park, but seeing that it was a little too difficult to reach with public transportation, we decided to head back to Khon Kaen, forget about Udon Thani and the lost day, and continue to Nam Nao National Park along the route 12 between Khon Kaen and Phitsanulok, with an optional stop shortly after Lom Sak for some whitewater rafting. It was after being told that all busses were overbooked (remember, Songkrat, the New Year's festival bringing every Thai back to his home, starts this week) and our furious attempts to find a hole to slip through that I left the wallet on the telephone. I noticed the loss on our way to the other bus terminal, but it was too late, and it didn't help that nobody spoke English anymore (basically ever since we left Ayuthaya). As said, the money wasn't a big loss, the credit card immediately cancelled, driver's licence and insurance cards also being no biggie, but the wallet still contained one item of interest: the receipt for the cargo bag with the children's clothing waiting for me in Chiang Mai (hopefully). We had our friendly Tuk Tuk driver took us to the tourist police to file a report, with which we should be able to reclaim the bag even without the receipt -- Aline also fortunately took a picture of the bag. But the tourist police was out for the day and as we came to realise the misery of our situation -- it was about 18:00 o'clock by now and we were looking at losing another day on our journey, a friendly women with very good skills of English walked around the corner and told us to hop on her car. We were so glad to be able to follow someone's command that we didn't even ask where she was taking us, but on the back of the pickup, we learnt from her two students that she was an English teacher taking us to the police headquarters. There, we got the report and again boarded the pickup heading back to the city. We still did not know how to continue from Khon Kaen towards Phitsanulok in the lower north of the country, but the lady offered to negotiate a rental car for us after heading to another police station to help her student with a report against a British man, who had left her in the top-end hotel without paying the bill. Fortunately, she knew the real name and telephone number of the guy, so he'll surely get his share, that bastard. The rented car with driver to Phitsanulok would cost us between 4000 and 5000 Bhat (80 to 100 EUR), which we thought was too expensive, and it was again our lady friend who decided to head for the busses again and try her luck. She got us on a 2nd class bus to Phitsanulok, leaving Khon Kaen at 3:45 in the morning, and with about 7 hours to kill, we took her and her two students for dinner and to a discotheque as a form of thanking her for her help. Her name, by the way, is Jill, and she runs the "Khon Kaen Language Centre", teaching English, Japanese, German, and Spanish to about 20 students, half of whom live in her own house as they come from far away. We talked much with her and her students that night. Dinner was a huge buffet with everything you can imagine, including cow stomach and pig intestines (and yes, I tried them both, though I need not do that again), and grills at the tables for a very cozy atmosphere (if it hadn't been for the live band that was playing just a tat too loud). Jill apparently spends her days helping other people, not only learning languages; people come to her for relationship troubles, legal issues, or other difficulties such as my lost wallet. She does not choose to help people, but feels that as a Thai, she must. This attitude prevails throughout the population (as soon as you leave Bangkok and the tourist centres in the south) and is maybe the most important reason why this country is such a great place to be. After dinner, we ended at a discotheque with another live band, including singers and dancers, and even though it was clearly too loud for my taste, the band was very good, and we had a splendid time getting drunk on Thai beer -- after all, what else was there to do until the bus left. I also found out that Jill runs an Internet cafe and consequently left her with 10 Ubuntu CDs to try out, and give away to her computer-savvy students. It was great to explain to her what "free of charge" means, but very hard to actually get her to accept it. After the discotheque, she took us to her house for showers and a quick meal, and I tried to demonstrate Ubuntu to her, but did not succeed within the small time frame I had available. The reason was that her house uses static IPs, and I could not figure out how to tell the Live CD to use a static IP -- it did not ask me. Anyway, this isn't anything I cannot solve via email once I return to Switzerland. We left the city on time and were looking at 5:30 hours of an uncomfortable, rocky bus ride, but thanks to ample space, it went by quite quickly. We gave up on the plans for the national park and postponed the "experience of nature" until Pai (see below), and also found out that April is not the month to go whitewater rafting in Thailand, so without any stops, we reached Phitsanulok and quickly headed for a hotel to sleep through the midday heat, a little too long unfortunately to still get some errands done, like cashing traveller cheques. I am now sitting in an Internet cafe in Phitsanulok, and we did get most of our to do list done. We'll stay here for one night, enjoying the "food festival" over at the night bazaar, and head for Sukothai tomorrow. Having made the acquaintance of a very helpful employee of the Thai Tourist Authority, we now have the possibility to ride along in his van tomorrow, iff he makes it back from Bangkok in time; otherwise we'll go by bus and meet him there for another festival and a light show in the old city of Sukothai, which is now known as the historical park, which the Lonely Planet describes as "Thailand's most impressive World Heritage site". Also, tomorrow, Songkran starts in Sukothai (a day before the official start), and we have been told that Sukothai is one of the two best places for the event on numerous occasions. The other is Chiang Mai, and we were lucky to get two seats on a plane leaving Sukothai for Chiang Mai on the 14th, so we'll get to spend more or less two days in each of the "party centres" (Songkran ends on the 15th, though some cities just keep on going). I have to say that I am very excited about witnessing this event. All the shops in all the towns keep piling water guns on the streets, and for three days, the camera will be better left in the hotel as the entire city soaks itself in water. I cannot wait to buy one of the biggest guns, make a run for the all the Thais, and then give the gun to a child. While I am talking about plans, I might just as well continue my brain dump. From Chiang Mai, we are currently looking at 2-3 days in Pai, a village north-west from Chiang Mai with beautiful landscapes and many hill tribes within walking distance. I'll be leaving Chiang Mai for Yangon in Myanmar, and am currently faced with four choices as to how to spend my remaining time in that country. Mind me while I share these options with you: The simplest options would have me drop the clothing and gifts off at Julie's guest house; Julie is Swiss or German and frequently organises for clothing and similar items to be sent to refugee camps in Myanmar. Then, I could travel to Myanmar and be free to spend the time in Yangon and Mandalay, showing Linux to people, head out into the countryside, or spend my time in the monastery to which I have been invited. These options all appeal to me, approximately in decreasing order. The last option depends on whether Julie organises a trip to a refugee camp anytime soon, in which case I may be able to go along. I'll keep you posted. That's it for now from me from southeast Asia; we're off for the night bazaar. Thanks again for reading along.

7 April 2006

Wouter Verhelst: DFSG vs GFDL

One of the things that has kept Debian in heated discussion over the last few years is the question whether the GFDL, or the GNU Free Documentation License, is free according to Debian's own DFSG. We've had three votes on the subject, with the final one decisively saying it's conditionally free. Or so I thought. Yesterday, Josselin Mouette proposed another GR on the subject, since he believes there's a conflict between GR 2006 001 and the current text of the DFSG. Sigh. At least he isn't trying to reverse the effect GR 2006 001. But still; no, the GR does not conflict the text of the DFSG. I used to think otherwise, but got swayed by the discussions on -vote that occurred prior to GR 2006 001, especially (strangely) the one that happened as a result of Anton Zinoviev's amendment, which ended up as choice #3 on the ballot. At the the time, I was supportive of the original proposal to throw out all GFDL-licensed documents, even though I disliked doing so (for obvious reasons); but I felt that the arguments about the DRM clause did hold. This was wrong, and it took me an insult to see it. Quoting Anton, myself, and Craig Sanders:
This clause disallows the distribution or storage of copies on DRM-protected media only if a result of that action will be that the reading or further copying of the copies is obstructed or controlled. It is not supposed to refer [to] the use of encryption or file access control on your own copy.
No; however, as written it can be interpreted as such.
only by nutcases with an agenda. normal people (including lawyers and judges) wouldn't have such an insane and insupportable interpretation. that's because normal people rely on facts. and evidence. they don't just make up whatever crap they need to suit their argument.
Craig's way of saying things did not immediately have the intended effect; and had I not grown tired of the discussion, I probably would've missed it. But the fact that I stopped following the discussion gave me some time to think about it, and as such, Craig's argument had a chance to sink in. When I was finally swayed, I failed to attribute it to Craig, however, instead thinking it was an argument by Anton that did it. The point is this: the mere fact that you're able to construct an interpretation of a license which is logically sound and complies with everything, does not mean that it is a sane interpretation. Lawyers and judges, strange people though they might be according to some jokes, are still people; human beings. If you come up with an interpretation that nobody in court came up with on the first reading of a given text, then chances are rather high nobody will follow you. That's what really matters: whether something you claim will hold in court. Not whether something you claim holds up to your own argumentation. And yes, claiming that doing chmod -r, or storing something on an encrypted filesystem is somehow restricting distribution, seems a little far-fetched. After all, when I'm storing something on my own hard disk, or even in the privacy of my home-directory on a large shared fileserver, I'm not engaging in a distribution of any kind.
From WordNet (r) 2.0 (August 2003) [wn]:
  distribution
      n 1: (statistics) an arrangement of values of a variable showing
           their observed or theoretical frequency of occurrence
           [syn:  statistical distribution ]
      2: the spatial property of being scattered about over an area
         or volume [syn:  dispersion ] [ant:  concentration ]
      3: the act of distributing or spreading or apportioning
      4: the commercial activity of transporting and selling goods
         from a producer to a consumer
Definition 3 and 4 seem to require an active action by the originating person; when someone copies a file from your $HOME, you didn't distribute the file to them; they took it from you. In our culture of sharing is good, you should share!, I missed it; but a court would probably see copying without asking for permission more as stealing, rather than distributing. After all that, the arguments about the DRM clause being too broad seemed a bit weak to me; and given that the FSF had already agreed on it being a bug which needed to be fixed, as they had for the other arguments against the GFDL (apart from the Invariant sections, which are not being discussed here), made me decide that the big giant insane problems with the GFDL are not so much of a problem as most people seem to claim.

5 April 2006

Erich Schubert: Programming languages that need to die.

We have way to many programming languages. So I'm putting together a list of languages that need to die. ;-) Honorable mentions that didn't make it into the "must die" list: Languages that I think have issues, but couldn't put on this list: So let the flamewars begin. I'll try to keep track which language zealots are the worst. Without having started, I bet it'll be the Lisp zealots.

Rapha&#235;l Hertzog: Leader election: last chance to vote

Given the low participation, it looks like the choice of a DPL is difficult this year. It probably means that the platform of the candidates do no suit everybody… however with DPL teams, there’s more than just the DPL and in theory each member should have their own platform. That’s not the case for me because writing a platform is a big job… which I can avoid since I’m not candidate. :-) However I now do feel the need to tell what I would like to propose (and do) if I’m part of a team so that you know better what to expect if you vote for a team where I’m involved. I’d just like to give a warning, those items are quick notes and are in no way full- and flesched out solutions, they will need to be discussed and refined in all cases, and somes ideas may be dropped of course. This list is neither complete nor definitive. Not all items will be achieved but each of them is a real progress IMO and I’d like to be able to work on them. For people who are concerned by those changes, I’m sorry if you discover my ideas by this post even before I had the opportunity to talk to you… I’m posting those ideas now because they may be considered by people who are currently voting, but it does not mean that I’m not interested to discuss them with you. It’s also true that some of those ideas can be implemented without being part of the DPL team and I’ll certainly try to implement some whatever the outcome of the election, but I really believe that being part of a DPL team helps greatly because you have access to some important informations, and you can effectively discuss with core teams which are otherwise difficult to approach for non-technical discussions when you’re a random DD. And last but not least, the trust of the developers is a big motivation (at least for me) to work effectively on those problems. See this post for my personal vote recommandation and see you in 3 days for the result of the election !

3 April 2006

Amaya Rodrigo: New head in the headcount!

I just added Andree Leidenfrost to the Planet Debian feed. H ctor and I have been sponsoring his packages for mondo and mindi for a long time now, his New Maintainer proccess is currently in DAMnation and I think he will be a great maintainer one day (hopefully very soon). Andree is from Sydney, New South Wales, Australia, has a cat, and is a pleasure to work with.

Everybody say hi!

Luciano Bello: Quantum mechanics at cmburns.debconf.org

The last weeks I was reading about quantum mechanics. The theory goes around the problem of continuous (e.g., the time) vs discrete (e.g., the energy) values. I read about Dirac, Brown, Planck and Einstein.

But looking the Debconf's Statistics I found something interesting for the next Annalen der Physik. People can be counting as a Continuous Function!



I'm very curious... who lose the 5% of the body?

Mike Beattie: A small side trip..

So, today, I've just arrived back from Sydney with a few of my fellow LCA 2006 organisers where we'd been attending the annual LCA Ghosts meeting. Next year, as you all know, LCA will be held at UNSW in Sydney, Australia. The venue looks great, and a lot of the ideas the Seven team have in the pipeline sound fantastic. If they pull a couple of them off, then this is going to be a fairly significant turning point in LCA growth. All things considered, this will make LCA 2007 even better than LCA 2006.. if that's even possible :). Raewyn also came along on this little trip, so that she could have a little holiday, and go shopping - also to add some stamps to her passport, she'd never been outside of New Zealand before.. One of her memorable comments was something like "That's really the Sydney Opera House, not just a postcard". She spent some of her time with the wife of one of the other 2006 organisers, who was there just for the shopping. This may not have been a good thing. We didn't get to do a whole lot together, since I was tied up for most of the weekend at Jeff and Pia's place. We did however manage to slip in a visit to see a good friend (bod, for those that know him), a BridgeClimb, a diamond ring, and a wander around the city on Sunday evening. I'd highly recommend the bridge climb, if you can manage to go around dusk, it's fantastic to watch the sunset in the west over the Blue Mountains. We also had a lovely dinner after the climb on Saturday with everyone else at James Squire Brewery down on the King St Wharf. I had the kangaroo - there's something pleasing about eating a national icon :) Yeah, for those of you that read that last paragraph and went "diamond ring?!? Wha?!".. I finally gave in, and proposed to Raewyn on the top of the Sydney harbour bridge. I'm still coming to terms with having a fianc , rather than just a girlfriend :). For those that are wondering, how do you take the ring up on the bridge, when you can't carry loose items? Well, it turns out it's not uncommon for guys to propose on the bridge.. So the BridgeClimb folk have this thing called an ERD - an Engagement Ring Device. Basically an elastic armband with a ribbon attached. The ring is placed over one side of the ribbon, and the two ends are placed through a small plastic toggle - like the one you have on your sleeping bag cover. When you are up on the bridge, you loosen the toggle, and place the ring on the appropriate finger, hold hands together, and slide the elastic from you to your (now) fianc . It's a bit hard to describe, but it works quite well. Anyway, This happened underneath what the Aussies call 'Blinky Bill' - the flashing red light on the top of the bridge used as a bit of a warning/navigation aid to aircraft. Our climb group were on the western arch of the bridge awaiting the descent, and the group behind were on the eastern arch after just arriving. Both erupted into applause, and cheering when I went down on one knee... quite an experience! The amusing anecdote of the whole thing was about 3-4 minutes later, as we were descending, Raewyn said "Oh my god, I'm engaged" - it had just sunk in.. At that dinner afterwards? We walked up to join the others, and they erupted into more applause and cheering, in front of the all the other diners.. Bastards. Right, now back to the real topic... The Seven crew really do have this LCA job all sorted out, and Sydney in January 2007 is the place to be.. Hell, even I'm tempted to put in a paper submission this time around - normally I'd try and avoid it! (I need to get back into this blogging thing again, it's so easy to just fall out of the habit when you get busy with other things.. I promise to try harder from now on!)

Uwe Hermann: HOWTO: Disk encryption with dm-crypt / LUKS and Debian

A few weeks ago I published a small HOWTO for using loop-aes to encrypt your hard drive, usb thumb drive etc. As I have bought a new 300 GB external USB disk drive on Friday, I have tried something new this time: disk encryption using dm-crypt / LUKS. It has been suggested to me multiple times that dm-crypt is superior to loop-aes, however I didn't get a real reason. Yes, it doesn't require any kernel patches and is easier to setup. But has any serious cryptographer looked at it sharply, yet? Did it withhold his eye contact? Anyways, here's how I encrypted my 300 GB drive. I largely followed the guide at the EncryptedDeviceUsingLUKS wiki page...
  1. Make sure you run Linux 2.6.16 or better. Previous versions suffer from an implementation problem which affects the security of dm-crypt, see Linux Kernel dm-crypt Local Cryptographic Key Disclosure.
  2. Enable the following options in your kernel:
    • Code maturity level options
      • Prompt for development and/or incomplete code/drivers
    • Device Drivers -> Multi-device support (RAID and LVM)
      • Device mapper support
      • Crypt target support
    • Cryptographic options
      • AES cipher algorithms
  3. Overwrite the whole drive with random data in order to slow down attacks on the encryption. At the same time perform a bad blocks scan to make sure the hard drive is not going to die too soon:
    badblocks -c 10240 -s -w -t random -v /dev/sdb
    Replace /dev/sdb with whatever is correct on your system. If you're really paranoid, and are willing to wait one or two days, do this:
    dd if=/dev/urandom of=/dev/sdb
  4. Install the required packages:
    apt-get install cryptsetup hashalot
    The current cryptsetup in Debian already supports LUKS, which was not the case a while ago, if I'm not mistaken.
  5. Create one or more partitions on the drive:
    cfdisk /dev/sdb
    I created one big 300 GB partition, /dev/sdb1.
  6. Setup LUKS:
    cryptsetup --verbose --verify-passphrase luksFormat /dev/sdb1
    Enter a good passphrase here. Don't spoil the whole endeavour by chosing a stupid or short passphrase.
  7. Open the encrypted device and assign it to a virtual /dev/mapper/samsung300gb device:
    cryptsetup luksOpen /dev/sdb1 samsung300gb
  8. Create a filesystem on the encrypted device:
    mkfs.ext3 -j -m 1 -O dir_index,filetype,sparse_super /dev/mapper/samsung300gb
    I used ext3 with some optimizations, see mke2fs(8).
  9. Mount the encrypted partition:
    mkdir /mnt/samsung300gb
    mount /dev/mapper/samsung300gb /mnt/samsung300gb
    That's it. Everything you write to /mnt/samsung300gb will be encrypted transparently.
  10. For unmounting use:
    umount /mnt/samsung300gb
    cryptsetup luksClose /dev/mapper/samsung300gb
After unmounting, nobody will be able to see your data without knowing the correct passphrase. Drive is stolen? No problem. Drive is broken, and you want to send it in for repair without the guys there poking in your data? No problem. You leave the USB drive at home and some jerk breaks into your house, steals your drive, rapes your wife, and kills your kids? No problem. Well, sort of, but you get the idea ;-) There's more things you can do, thanks to LUKS: have multiple passphrases which unlock your data, change/add/remove passphrases as you see fit, etc. Comments?

2 April 2006

Barry Hawkins: Why make a free runtime for Java?

I was at my monthly Java ™ user group meeting tonight, and during the pre-meeting discussion our president Burr Sutter asked a question he usually asks: “So, anybody working on anything exciting?” This typically is taken as “does anyone have a really cool Java ™ project that they are working on right now that would be neat for us to hear about?” I usually sit there, not saying anything. But tonight, nobody had anything much, and I finally spoke up about free runtimes for Java ™. I told them that great progress is being made in the free runtimes for Java ™ arena, particularly in GNU Classpath and Kaffe. After my update, Burr asked a very good question: “Why would you work on a free, open runtime for Java ™ programming language?” My answer follows. You would work on it in order to have a free alternative to a platform governed by the SCSL. You work on a free runtime for Java ™ because a free alternative would be better than what we have now; a closely-guarded and largely ingrown platform. You work on improving a free alternative because you are free to participate without that project demanding (via a legally-binding license) that you can only work with them from here on out, and that nothing you learn while devoting your time and energy to them (without compensation) can be used elsewhere. If you do share it elsewhere, and that project finds out, their legal team will make an example out of your ass. You prefer a free alternative runtime for the same reason that you prefer the free alternatives to the non-free frameworks and platforms available for use on Java(TM). Why is Hibernate so popular? Why is Spring so popular? Why is EJB not? Because innovation by committee, while better than a ruthless, unaccountable corporate entity concerned solely with its own betterment, is still not as good as free, open cooperation and collaboration. Is this idea so new? Don’t we try to teach kids that sharing and honesty is the Right Thing ™ to do? I will probably flesh this out as an article at some point, but I wanted to get something written down tonight, while it’s still fresh in my mind.

Guido Trotter: Feed readers

By reading Planet Debian through a feed reader (my choice is for liferea) I almost missed everybody being upside down… Luckily I noticed it in time! :)

Jose Carlos Garcia Sogo: ekiga in Debian

For those of you wondering about why Ekiga is not in unstable yet, the problem seems to be some discussion about MPL in debian-legal of which nobody has informed any of ekiga/opal mantainers (Thanks again for your communication folks!). The main problem is point 3.2, which reads
3.2. Availability of Source Code.
Any Modification which You create or to which You contribute must be made available in Source Code form under the terms of this License either on the same media as an Executable version or via an accepted Electronic Distribution Mechanism to anyone to whom you made an Executable version available; and if made available via Electronic Distribution Mechanism, must remain available for at least twelve (12) months after the date it initially became available, or at least six (6) months after a subsequent version of that particular Modification has been made available to such recipients. You are responsible for ensuring that the Source Code version remains available even if the Electronic Distribution Mechanism is mantained by a third party.
Also, as a comment in annotated MPL 1.1 you can read:
This provision is intended to ensure availability of code, while minimizing the burden on each Contributor. You do not need to ship Source Code to your Modifications with each Executable, as long as you make it available on-line and tell the recipient where it is. It does not require that you return Modifications to mozilla.org or any other named organization. However, you may do so if you choose, and we hope that you wish to participate in the development community that mozilla.org is chartered to foster.
You don't have to ask a lawyer to see that Debian does yet comply with this. As Alioth is now an official Debian system, and as OPAL is being mantained using Alioth and svn.debian.ORG, every patch we can make to OPAL source will be kept not only for those required 6 months, but forever. And nobody can comply about a SCM system not being an accepted Electronic Distribution Mechanism. For those wondering why OPAL is not relicensed using GPL/LGPL, you can ask yourself by performing a quick Google search. Basically the problem is that there were many conributors in the past and that some parts of the code were written sponsored under the condition of the code be kept under MPL. So, please, stop being so integrist and GPL centric. There are other licenses that have problems (as GPL have) but are as DFSG compliant like GPL and BSD are. We have to keep main clean, but we have a lot of problems to solve and we don't need to make up any more.

1 April 2006

John Goerzen: Today's New Word: "Tuttled"

So remember Jerry Taylor, the man from Tuttle, OK that threatened to call the FBI on a Linux vendor because an unrelated hosting company had misconfigured Apache?

Well, this story is just getting funnier and funnier.

First off is this story from the Tuttle Times. It basically repeats Taylor's view that the CentOS people were expected to help him with his problem, and that he was somehow entitled to their help. But there are some funny tidbits in the story:

"Phone calls from across the country started coming in to the newspaper and city offices, and e-mails from Switzerland, Australia, Wales and England were received. Many of the web sites discussing the exchange are in foreign languages." I hate to break it to you, but Australia, Wales, and England all speak English.

(Ok, so they did switch from talking about email to web, but it still sounds funny.)

"In their search to find out more, web surfers discovered that the Tuttle Times online forums were hacked, and theorized that it was in retribution for the e-mails. Those forums, however, were corrupted several months ago, and the newspaper s now former web hosts did not repair it after numerous requests. New forums should be available at the Times site in the coming weeks." I'm so glad to know that your forums were merely corrupted for months and not hacked. Sounds like the IT problems in this town extend well past the city building.

Taylor said: "[CentOS is] a free operating system that this guy gives away, which tells you how much time he s got on his hands." Grumble.

Quoting Tuttle Mayor Paxton (trying to say what was more important than this): "We have issues with sewer. People here want better park facilities. They want a library." I think this has just validated every stereotype people have about Oklahoma.


Tuttle is more than 7 times larger than my hometown in Kansas, and yet my hometown has had a library for years.

Jerry Taylor also reported having 500 e-mails and numerous phone messages when he arrived to work Monday.

There's a new blurb on the Wikipedia page about Tuttle about all this. And in their talk page about the now-deleted article on Jerry Taylor, one person wrote: "Mr. Taylor's actions have coined a new term of art "Tuttled", in reference to the invocation of criminal consequences by one who is ignorant of the true situation. Since this is now a part of the English vernacular the story behind the term should be explained to give it an historical context. It is no longer about the action of a single person and an attempt to publicly vilify him, it is about a world-wide common experience of dealing with a Kafka-esque minor government official who, through ignorance, creates problems far beyond their normal sphere of influence. The page should be returned to the public."

The Register has two new stories about it. The first reports that Taylor has been interviewed by all sorts of media and says that he did the right thing. The second, Linux conquered, Tuttle man takes on London is a story about the grandson of the namesake of Tuttle, OK -- who happens to be the current US ambassador to the UK. This person is refusing to pay the regular London car fees. The mayor of London said: "It would actually be quite nice if the American ambassador in Britain could pay the charge like everybody else and not skive out of it like some chiseling little crook."

And finally, there's some incredibly funny photoshop work on this one over at fark.com (you have to scroll down a ways). Also, this comment:

"A small-town American politician wants a British newspaper to turn off the Internet.

Say that to yourself a few times. Please."

Next.

Previous.