Search Results: "rra"

5 May 2006

Amaya Rodrigo: See you in MEX!

/me happily leaves the house now, in search for a taxi. Agi will meet me at the airport, with VIP seats, and a sleepy smile. I ll share a plane with several other DDs from AMS to MEX.

I am both stressed about arrangements and sad to leave Vi behind, and at the same time really looking forward to start the yearly debconf & debcamp experience.

3 May 2006

Matt Brown: Local Loop Unbundling

Wow! It’s out. The government has finally gained the courage to force Telecom to unbundle the local loop. Possibly the most interesting part of the whole announcement is the circumstances of it. Cabinet signed off on it this morning, by midday it had been leaked to Telecom and the Government was forced to scramble to announce it to everyone to avoid regulatory problems from the Sharemarket. No doubt whoever leaked it is feeling very very worried about their job security right now! The Cabinet briefing paper and minutes that accompanied the original press release are a bad quality scan and have obviously been prepared very quickly with hand written corrections to the page
numbers in the latter half of the document. The document has now been removed from the website, which I guess means that it is being touched up. Email me if you want a copy. [Update 1am: It’s now back, but has had information redacted presumably because it is meant to be commercially sensitive!] If you want the hard facts the following are good sources: So, is this a good a thing? I think it is in the long term, but the best part of today’s announcement is what goes alongside the LLU decision, not the LLU itself. More on that in a minute. The Cabinet paper (60 pages) appears to be a very thorough summary of the detailed analysis that has obviously been performed over the previous months. What I think is a fairly reasonable argument is made for why the action is needed and why the chosen course of action is the best option. I’m very impressed with David Cunliffe’s handling of the portfolio and I hope that he continues to work to the high standard that he’s set himself in the few short months since the election. He’s certainly going to face some opposition now! One thing to keep in mind in reading the paper and analysing the information available is that the Government’s hand was forced and there is probably a lot of implementation detail that they would have planned to release with the offical announcement on the 18th. So theres not much point in nit-picking details at this stage. The meat of the announcement is that the Government has chosen a two-stage approach to increase the regulation in the sector. The two stages are basically short and long term actions designed to be complementary. The long term action is the LLU itself and promotion of investment in alternative infrastructure. Because this will not be completed and ready to use in any shape or form until 2008 at the earliest there are also a series of measures to beef up the current wholesale offerings to tide us over and improve the market in the interim. What we get in the short-term: With prices and access terms for all these services to be set by the Commerce Commision, which is directed to ensure that the pricing is applied to protect investment incentives. There are a few juicy paragraphs that suggest the Government has considered opposition and is ready for it, such as 113 that warns that is Telecom does not invest quickly enough then full structural separation will be considered. However there are also suggestions (para 113) that Telecom is going to be thrown a bone in the form of a recalculated TSO that will provide higher levels of compensation to support the necessary network upgrades in rural areas. Rodney Hide and no doubt other right-wing groups are already bleating about the “stolen” property rights. But as I see it thats not the case. Telecom still owns the local loop. ISPs do not get to use the copper for free! They must pay Telecom a market rent. LLU is about regulating that price and forcing Telecom to offer the service where there is no incentive for Telecom to do otherwise given their vertically integrated monopoly. Secondly, Telecom was given a chance to avoid this scenario with the 2003 decision not to unbundle. At that point Telecom and its shareholders were warned that if they didn’t invest appropriately and provide a competitive wholesale market the situation would be reviewed. These warnings increased in frequency over the past year. Telecom cannot say that they were not warned. They may have massively misjudged the government, but they were warned. The simple fact is that over the last three years Telecom has played games and stalled as much as possible. In many ways I feel they are the authors of their own misfortune. Overall, I’m very happy and excited. Its a great time to be involved in the Internet industry in New Zealand. The government has churned out an excellent paper that shows that they have carefully analysed the issues and decide on a course of action that I think has an excellent chance of improving the state of broadband in New Zealand. LLU is not viewed as a magic bullet, other measures have been put in place to ease its introduction and investment incentives to build the next generation of access infrastructure are mentioned and regarded as important. The big risk to watch is how the Government goes with the implementation. It is a hugely complex peice of policy to implement, with lots of potential for mistake and they are fighting against a well resourced company with lots to loose. No doubt this will not be my last post on the issue.

Martin F. Krafft: Eventful times in Yangon

The last 18 hours have been quite eventful, including a mugging, an accident involving first aid, two more confrontations with the military, a visit to the university, and a monk drowning a fly. Fortunately, the heat has gone down quite a bit, the thermometre at the pharmacy now measuring 44 degrees in the shade. When I left the Internet cafe yesterday in the early afternoon, thick clouds covered the sky and it was starting to become quite bearable. Thus, I decided to visit Shwedagon Paya that afternoon, but not before getting a massage (for $3), which was duly necessary after the two hours of almost continuous typing during the hottest hours. I reached the pagoda sometime around 16:00 and almost got into a fight with the ticket office. Admission is $5, and since I am keeping my dollars until all the Kyats are spent, I was asked to pay 8000 Kyats. The current exchange rate (which fluctuates +/- 50 Kyats per day, it's very unstable) is 1450 Kyats to one dollar (it was 850 just one month ago), so I'd have to pay a little more than half a dollar more if I paid in local currency. The lady tried to tell me that she's paying 1550 or 1600 for $1, so I tried to tell her that she better find some other exchange place because she's being ripped off. After ten minutes of a heated discussion, I turned around to leave and she finally settled for 7500 Kyats. You may wonder why I make such a fuzz about 500 Kyats, but the reason is simply that the money goes to the government, which I don't want to support unless I have to. The pagoda itself is quite impressive, rising 100 metres into the sky from atop a sixty metre high. In as such, you can see this pagoda from many places in the city, unless enclosed by tall buildings that usually line the streets. It's said to contain the hairs of Buddha, from when he shaved his head to go and contemplate under the tree in the forest for six years at the age of 29 years, while in Bagan I was told that Buddha threw his hair into the sky, where it hovered and bring luck as long as it remains up there. I suppose he had to shave more than once, so the theories can both hold. I had a guide show me around, but I ended up knowing more about Myanmar history and Buddhism than him, so it was kind of a joke when he asked me for $5 afterwards. I gave him a lecture that he needs to announce his price beforehand and gave him $3, then left him protesting. Again, I am not here to rip people off, but I also won't pay $5 for a half hour tour, when the guide should instead be at home and reading books about the stuff he told. Still, I found the pagoda quite impressive, even though the overcast sky prevented me from seeing the sunset, for which it is famous among tourists. I would come back again at night to watch the supposedly beautiful lighting after dusk, and headed back to the city, with a number of detours thanks mostly to hopping on the wrong busses. As I mentioned before, "yes" apparently means "no" and "yes" and "I don't understand" and "thank you" and almost anything else, if used as a response by a not-so-fluent Burmese. For dinner, I treated myself to a somewhat expensive Sushi dinner, came back to the pagoda to watch the evening life of families and couples strolling clockwise around the stupa (resembling a little the evening family strolls in small Italian cities), found the lighting too bright and still boring, and made my way to the hotel, on foot because I only had a $20 note on me, which is useless when trying to pay for a taxi. ... and then I was mugged; not by some evil Burmese or one of the many muslims living in the city, but by two American rednecks, who apparently ran out of money (and it's very hard to get more without going across the Thai border) and were desperate enough to threaten me with a knife. I really didn't feel like a hero and prepared to hand over the $20 bill, when I saw a military truck drive up the road behind their backs, and remembered the Burmese call for help ("Keh-ba!"), which I shouted just as they were about to pass. The rednecks tried to make a run but had no chance (the military did not even think about using guns, they just called out to a police man at the end of the street, in the direction the rednecks were running). There was not much discussion, the two were loaded onto the truck, and the police officer then explained to me that those guys will be held in prison for two weeks before handed over to their embassy for further prosecution in the US. He asked me if I wanted to press charges against them, in which case they could get sentenced to up to ten years in prison in Myanmar for use of a weapon against civilians (with no right to a lawyer or help from the embassy), but I declined. Curiously, just in the morning, I had read a bit in a doctorate thesis on Myanmar prison life in the bookstore on Merchant Street at the corner of 38th, and it was obvious that the next two weeks for them were going to be hell on earth and enough of a punishment for their misdeed. While handing over my passport, I was assured that the "prisoners" were not going to find out my identity (and I doubt they'll find this blog), and with still somewhat shaky legs and a slight feeling of guilt, I climbed in the back of a police truck to take me to the hotel, wondering a little about how friendly and cool the police were towards foreigners. The next morning, I rose early to confirm my flight reservation and make some arrangements for tomorrow's departure, then headed off to the university by public bus in the hope to talk to the folks at the computer science department about Linux, and to hand over some of the Ubuntu CDs I have left. In Mandalay, it was not possible for me to set foot on the campus, and here in Yangon it would not have been much different, had I not met a zoology professor on the bus, who took me to the campus and refuted everyone's claim that I could not enter. Instead, she called the computer science head professor, who then explained to the officials that she had been waiting for me and would come and pick me up. While waiting, I witnessed a Burmese student just falling to the ground and ran over to help -- nobody else did. With the military folks chasing me (I had not thought about that), I didn't actually have to explain a lot when I knelt down next to the guy, obviously trying to help. The officials just stood close by and watched my every move, as I scrambled to remember my first aid training, diagnosed the guy with a heat stroke, or something in that direction (no sweat, very hot forehead, rapid pulse, white face, mild seizures, uncontrolled movement of the eyes, and delirious lulling), and gave orders to the bystanders to help me carry him to the shade, get water (I had some electrolyte rehydrating solution left), sugar, to have someone fan his head, and someone else call a doctor. Nobody understood anything of what I said until another student with very good English skills translated. Nevertheless, noone wanted to get a doctor because it was too expensive, so I offered to pay the charges and off they went, and I handed over 10'000 Kyats (more than enough) to the translating student with instructions. In the meantime, the computer science professor had arrived, and took me to her office, where I found out that the university is already using Red Hat to teach some of their courses, that she's the vice president of the Myanmar Computer Professionals Association, and that she's also a member of the Myanmar Linux Users' Group. She set up a meeting for me with the founder of this group tomorrow morning, and I proceeded to show off Ubuntu's Live CD to her, and to explain the benefits of Debian over Red Hat, which she understood very well and seemed delighted, because "dependency hell" has been a major problem for them in the past. I left her with half a dozen CDs and information on how she could obtain more, then had lunch with two of the teachers (where I witnessed a monk drowning a fly into his soup while laughing! Imagine that!), who wouldn't let me pay no matter how hard I tried. Upon leaving the campus for the city centre an hour or two later, I was informed that the guy had recovered and was okay, and the officials gave me 3000 Kyats, which I suppose must be the return money from the doctor. Another instance of honesty. I'll spend the afternoon strolling over the market to spend some of my excess Kyats (the rest of which will go to an orphanage), probably get another massage, and finally take in my last Burmese dinner, together with the Burmese white wine I had picked up at the vineyard on the way to Taunggyi, possibly accompanied by the Portuguese traveller I had met before in Bagan and Inle, who's now in Yangon as well... ... which is good, because I found a new argument pro beggars the other day, as I was resting at a street tea shop: I witnessed plenty of Burmese people handing money to a bunch of beggars on the other side of the street. One benefactor then came over to the tea shop, sat down at the table next to me, and answered my question as to why he just gave them money with a simple "because I have some at the moment, and they do not." To me, it could not have been more convincing, and by now, the only argument against supporting beggars is the one raised by the Portuguese: if begging is lucrative, people will give up their self-sufficieny in the countryside and come to live on the streets in the city, in the hope for more money. I'll be looking forward to tonight's discussion. Tomorrow's my day of departure (after meeting the Linux Users' Group founder at the MICT park on the way to the airport), and I'll be in Bangkok for 24 hours before going home. And already the thought of Bangkok makes me sad, because it surely was a great trip in this lovely country, even though I wasn't always happy with how it turned out. I'll be back.

2 May 2006

Martin F. Krafft: Yangon

I am nearing the end of my trip, and have arrived in Yangon late yesterday. Fortunately, as I got to the airport, there was yet another change in schedule, and I only had to make one stopover in Mandalay as opposed to a second one in Bagan. And if it hadn't been for the French package tourists, wo were nasty (= unwashed, or with a really bad perfume), smelly (I think they all suffered from diarrhoea and couldn't control their exhausts) and rather obnoxious (= loud, and unwilling to speak English, aggrevating themselves why the Burmese wouldn't talk French to them), I might well have enjoyed the trip. I did finish Murakami's book as we touched down in Yangon, and I really enjoyed it. Give it a week, then I'll know whether it has replaced "Wild Sheep Chase" as my favourite of his books. One problem overshadowed the entire day, nevertheless, and I think it must relate to bad food the night before at the Four Sisters Inn in Nyaung Shwe (not meaning to badmouth them, such things can happen): Around noon, I started feeling nausea every now and then, and my stomach apparently meant to tell me that something's not right, my belly feeling hot to the touch. I was then sure I'd come down with another food poisoning, but so far (24 hours later), my body has not revolted yet and the symptoms are fading, so maybe it's strong enough to cope without sending me to bed for a day. Which would be rather unfortunate. The hotel, which I prearranged over the Internet, is nice, and in a very good location. Upon arrival, I tried to score new reading material at one of the bookstores but found them closed already, so I ate some food at the market (not giving my stomach a break, really), had a couple of beers at a small bar, and finally fell asleep to a crap action movie involving a kidnapping and many cellphones on the TV, with the intention not to get out of bed until I could not sleep anymore. And that I did. When I finally went to breakfast, it was almost 9 o'clock, which is averagely three hours later than the last two weeks, and tried to figure out what to do for the day. Of course, I am haunted by bad spirits because even here in Myanmar, which is not socialist (anymore), the first of May is still a holiday, meaning that most sights and shops (including the ENglish bookstore) are closed for the day. I'll thus consider just roaming the streets, getting out of the heat at noon to watch a movie at the cinema (which is supposed to be a big event on holidays), write some more blog entries, and then possibly hire a guide for Shwedagon Paya towards the evening, 2-3 hours before sunset. Thanks for reading along.

1 May 2006

Martin F. Krafft: No lake for me

I am scheduled to leave Inle today for Yangon; that is to say, I was scheduled to leave to Yangon on a noon-time flight, and despite confirmation yesterday, this morning the flight was cancelled. Fortunately, I managed to get one in the late afternoon, but instead of a direct flight, I have to go via Mandalay, Bagan, and then Yangon instead. Fun fun fun. This also means my stay here at Inle Lake is almost over, and I have not even seen the lake. That was a conscious decision, simply the weather is quite bad, rain in the morning, and a drizzle most of the afternoon, and without a view of the surrounding mountains, there really was little incentive to subject yourself to tourist treatment on a loud boat, while unable to move and getting soaked. Despite the weather, I did pass a rather pleasant day yesterday. I joined the crowd at my hotel on a trip to Taunggyi, from where they continued to Kalak; I didn't have much interest in seeing this place, so I was to stay in Taunggyi and catch a bus back. Before we got there, though, we stopped over at a vineyard run by a German, which serves three "okay" wines made from French Shiraz and Italian Musquat grapes, which they grow here in Myanmar. After a wine tasting at 8:00 o'clock in the morning, we continued to Taunggyi, where is was raining unpleasantly, so I had only a short stroll across the huge market, then set off to find the cheroot factory (cheroots are a local type of cigarettes; see below), as well as the Shan museum and library. Unfortunately, all three were closed for the day, it being Saturday and market day and all. If it hadn't been for a short encounter with the military, I would have to admit that my trip to Taunggyi was pointless. I have yet to find out what actually went on in Taunggyi, but it seems that some important government people got together, while the police and military secured the area around it. My bus was about to leave, so I insisted to go the direct route and found myself accompanied by five armed soldiers, walking in a pentagonal shape around me. As we passed the Pagoda with the convention, I dared to take a peek but was immediately commanded to keep my head straight and not look. I caught the bus in time and enjoyed a one and a half hour ride back to Nyaungshwe, the town in which I am staying, perched on a rather small pickup truck with 31 other passengers. I guess you have to see it to believe it, but this sort of mass transport is common in most Asian parts, especially India. I got back in time to run some errands (like post a little present to Eddy back in Pyin Oo Lwin) and met a canoe driver around 15:30 for a three hour ride among the canals running virtually everywhere in the town and through the rice fields. The first stop was another cheroot factory, where I was introduced to the art of rolling these local cigarettes. They use some rather coarse tobacco, roll it up in a bamboo leave, which is glued in place with glutinous rice. As filter, thin bamboo wood is rolled up tight and rolled together with the tobacco. It takes the women working at the factory around 15 seconds to make one cheroot; it took me almost 15 minutes to make one. :) We continued, and my driver was all too keen about showing off the peculiar rowing style developed by the Intha people (those who inhabit the lake and surroundings) to decrease the strain on their arms: they stand on one leg, hold the padel in the arm on the other side, wrap the other leg around it, and then kick the padel in and through the water, while keeping a good balance. I wanted to try, but the driver would not let me, and it's probably better that way or else I would have most likely gotten really wet. Returning from three hours of canoeing, my arms and back ached, and I was dreaming of a shower and a massage when I ran into the Portuguese globetrotter from Bagan by chance and we decided to have dinner instead. Ending a lengthy discussion with whiskey at around midnight, I struggled to find my way back home, the streets being completely unlit (we've been without power for a while), my torch back in the hotel, and the whiskey skewing my sense of direction. I did eventually find the hotel, must have passed it several times looking for the sign, and was all too ashamed to wake the owner to let me in. My plan for this morning was simply to sleep in, eat breakfast, then go to the airport, but the couple next door to my room forgot to take the snooze function off their alarm clock before going to breakfast at 6:00, and with bamboo walls, the sound carried perfectly well. But I considered it no biggie, got up, ate, headed for a massage, and then was lucky to have some time to make arrangements for my next flight, after discovering the one I was supposed to take had been cancelled. So now, with four hours to eat, I am happy to sample another serving of Shan delicacies, undecided between rice noodles with a semi-sweet seasoning of green tea leaves and peanuts, or a pumpkin curry with ginger. Tonight, I'll be in Yangon, and I am looking forward to this city, having heard many great stories, and with some good references in my pocket. As always, stay tuned.

29 April 2006

Andree Leidenfrost: Mondo Rescue Debian RAID Progress

Sadly, RAID support in Mondo Rescue on Debian has been broken since the raidtools2 package was removed just before the sarge release.

I have finally started on getting things to work with mdadm (whilst retaining raidtools2 support to get this accepted upstream) and sent an initial patch to bug #325877.
.

Looks like it generally works, i.e. I have successfully restored a sid amd64 system with a RAID1 and a RAID0 array without manual intervention. However, there are some limitations that I'd like to overcome:
  • hard-coded chunk size
  • RAID5 parity algorithm is ignored
  • spare devices are ignored
The main thing is inclusion in upstream, so I am now waiting for Bruno's verdict on the general approach...

28 April 2006

Barry Hawkins: Nokia USA, TigerDirect, and caveat emptor

So I have been loving my Nokia N90 phone as far as functionality goes, but there are a few design issues that bug me. One is the rather primitive battery cover, which I managed to re-fasten a number of times until it finally came off without me realizing it. Beside that, a piece of the metal inlay by the camera button keeps popping loose on one end. I figure US$650 is way too much for a phone with pieces popping off, so I contact Nokia to send it in under warrantly. And that’s where we pick up in the story… I bought the phone from TigerDirect; they had the best price on an unlocked Nokia N90 that I could find while still being a store I knew of and felt I could trust. When the phone arrived, to my shock it had a UK charger. Weird! But, it was 2 days before I was going out of town for 10 days, and I had the phone rushed so I’d have it before leaving. I popped over to Radio Shack, bought an adapter, and got on with life. So I am on the phone with Nokia USA support, going through the steps for a warranty repair scenario. After they run my serial number, I am placed on hold for several minutes. The representative comes back to chide me for having bought a non-US phone, and says that if I ship it they will return it to me unrepaired. He goes on to explain that less-honest retailers will purchase overseas unlocked GSM phones and then sell them here. Purchasers of these phones basically forego any support or warranty for these phones except in the phone’s country of origin. Who knew phones could have nationalities and be refused care when not in their home country? Perhaps Nokia should set up embassies for these poor, displaced phones. Well, as you can imagine I am totally ticked by now. I call up TigerDirect and start in on them. Right now there’s an agreement of working out an exchange, though I am having to reiterate in every paragraph of the conversation that I do not want another UK phone. Heck, I didn’t want a UK phone the first time. My “case” is awaiting manager approval; I have to call back my phone’s social worker tomorrow.

27 April 2006

Jeroen van Wolffelaar: Laptop back

Yesterday, the mailman delivered back my 'new' thinkpad from the IBM warranty repair in England, with a repaired LCD screen (connector?). On the results sheet they also ticked the 'cleaned' box, and one can see that. It looks much better then when I bought this T41 second-hand less than a month ago — it's now as if it's new. Maybe I should break something in my laptop more often ;). Now I gotta fix my wireless, so that I can combine sitting outside in the sun (when it dares coming back) with working on stuff. I seem to be unable to get 'ad-hoc' mode wireless to work, for some reason. Unfortunately the wireless in my server doesn't support "master" (AP) mode, so I'm now opting for having my server connect as client to my laptop (which can act as AP) automatically, instead of the other way around. Oh well, as long as it works. So much to do before leaving for Mexico... And upcoming weekend it's also Koninginnedag, so won't have much time in my last weekend in the Netherlands either. My flatmates gave me last friday a tourist book about Mexico (I gave a late birthday party), which I'm currently reading. And... last night I got mail that my ticket is arranged (in the same hour as that I took a tequilla on the bi-annual FullHouse student party, coincidence?). Thanks a lot to all involved for making this possible, and see you in Mexico! PS: Happy birthday, Steve

26 April 2006

Martin F. Krafft: Mandalay to Bagan, and 2700 temples

Leaving the computer centre in Mandalay, I decided to settle my further itineraries and headed to an Internet shop in the hope to arrange some online bookings, using Aline's credit card (because mine was lost and I would rather preserve the cash dollars I have, given that there is no way to get more money in this country. I managed to book myself hotel rooms for the One Night in Bangkok I have before returning home, as well as the five days of Yangon before. Other than that, however, I could not get any flights; Myanmar-internal flights cannot be booked online, and Thai Airways refuses to take passengers when the name on the credit card does not match the passenger's. Given that my plans for the evening where set, I had to leave the place with my mission unaccomplished and headed for the Green Elephant restaurant, which the Lonely Planet describes as up-scale. For a whopping $7, I treated myself to beer, pickled ginger and green tea leaves, and butter fish in a tomato curry. Very delicious. Afterwards I attended the Mandalay Marionette & Culture Show, which was quite lovely despite the atonal music that came with it. Mandalay marionettes (or Myanmar marionettes in general) are very elaborately made, and the style to guide them is very unique to the country, the art having been the popular art back in the days when kings ruled the land. The artists are devoted to keeping this art alive, and you could really feel their enjoyment as they showed fights between ogres, princes and snakes, riding horses and trolling monkeys, princes engaging in "hackysack"-style football artistics (which is very popular over here, and people are rather good), as well as synchronised dances between marionettes and real dancers. I can recommend this show to anyone visiting (as I recommend to anyone visiting Hanoi to see the water puppet theatre) and am glad I chose this option over the "Moustache Brothers" performance, which is political satire and slapstick on the edge of legality. I ended the evening talking to some other travellers, most of which had no interest in listening to others but to tell their stories instead. The next morning saw me rising at 4:30 to catch the ferry to Bagan at 6:00 o'clock. The boat had comfortable seats and a restaurant, and only a handful passengers, so the 10 hours went by reasonably fast (no comparison to the ride we took on the Mekhong last year to get from Chiang Khong in Thailand to Luang Phrabang in Laos). We arrived in Bagan on time and together with some Australians I found the May Kha Lar guesthouse (following again the Lonely Planet), which is a rather pleasant place with a lovely, elderly, English-speaking lady running it. SHe also arranged my further air travel for me and wanted about $30 less than the official booking offices. I decided to spend an additional day in Bagan, so I am heading out from here by plane on the 28th, going to Heho, then spending two and a half days at Inle Lake, and flying to Yangon on the 30th. From there, I am leaving for Bangkok on 4 May. With the tickets in my pocket, I felt relieved, showered, and went for a traditional Burmese massage, which turns out to be completely different from the Thai style (which Laos and Vietnam copied more or less) and was rather painful, both because the lady literally tormented my legs far too long and spent only a very short time on my pained shoulders, and because neither the mosquito coils nor my repellents warded off the beasts as I was lying there out in the darkening sky right at dusk. No Malaria in this region, fortunately. Following a very traditional Burmese dinner (goat meat curry), I went to bed because... ... the next day I rose again at 4:30 to meet a guide, and left the hotel at 5:00 o'clock on a horse cart for a tour of the temples. Bagan is what could be called the heart of Myanmar, and on a 42 square kilometre area, you can find 2700 temples (of the 4500 originally built), dating back to the 10th century AD. Unfortunately, the wall carvings and paintings in most temples has been washed away, and it was nowhere near as fascinating to stroll along the endless corridors as it had been in Angkor Wat or Bayon Wat in Cambodia, but from the outside, these temples still look spectacular and are well preserved or restored. Also, climbing up on one or the other, the sight was almost overwhelming: a vast landscape of strupas and temples as far as the eye would reach, and all that under a lovely sunny sky. Haha. The "sunny" bit is what made me get up so early, because the temperatures are bearable only up until 11 o'clock or so. Between noon and 16:00 o'clock today, the thermometre measured 46 degrees Celsius -- I don't think I've ever been in a place so hot (if you leave out our trip to Death Valley in an airconditioned van. So in order to escape the heat, I went to the archaeological museum at noon, then back to the city and into the swimming pool of one of the nicer hotels in town, which cost me $3 for a pool that was green (they don't have the money for chemicals), and the water about the temperature of my bathtub at home. I did not swim, but fortunately, the showers there were pleasantly cold, so I lay in the shade to read ("Kafka on the Short" by Haruki Murakami), taking a shower every ten minutes to cool down. Going back to the hotel, I find the electricity to be gone once again. I think that this town (and Mandalay as well) has maybe 4 hours of electricity a day, it coming and going every few minutes (which makes computer use quite unpleasant). This also means that there is no aircondition most of the day, at least in the budget hotels which don't have their own generator. I am meeting my guide again at 16:00 hours for another 2-3 hours, then will follow the hotel owner's suggestion for a "back massage expert", eat, sleep, and climb Mount Popa tomorrow morning. I'll try to get online again in the afternoon. Thanks for reading along.

25 April 2006

Lars Wirzenius: Debian: Packaging tutorial clarification

I wrote a couple of weeks ago that it would be fun to organize a packaging tutorial this summer. It seems that a couple of people thought this would be a bit more than I intended, so let me clarify: this would be a one day event, HP is not sponsoring it apart from (hopefully) letting us use an auditorium or meeting room, and it's probably not worthwhile to travel from abroad to Finland just for this. There has been a fair bit of interest within Finland, however, and I hope we can make this happen. Several people have offered to help. I guess the next step is to decide on a date. When I have news about that, I'll post it here, and then start announcing it in other places, too. It would be cool if someone with suitable contacts could see if some (modest) sponsorship for travels within Finland could be arranged. Many interested people are not in the Helsinki area, so they'd have to take a train or plane to get here, and that can be expensive, if they're students. Free accomodation has already been promised by two of my friends who have a large apartment.

Erich Schubert: More thoughts on XML differencing

Last year, I gave a talk on XML differencing at the Extreme Markup Languages 2005 conference in Montr al. Since then I didn't have much time to work on that project. The prototype app is opensource, and available at ssddiff.alioth.debian.org. The slides are there, too, and so is a link to the article. XML differencing is actually a two phase process; I've been mostly working on the first phase. Traditional approaches intertwine the two phases. In the first phase, you build a mapping between the two documents. I called this a "nodeset correspondence" in the slides. Basically you decide which node from the first document corresponds to which node in the second document. When you have found this mapping (the "marked" output writer of ssddiff will output this information in form of two XML documents marked with numbers in a certain attribute), the actual differencing is done. But much of the work remains. When doing a diff, the output (format) is just as important as the actual result. While the "marked" output explained above is very precise, it doesn't give the user an overview of what has changed in the document. That's why I added two more output writers, the "xupdate" writer and the "merged" writer. The "xupdate" writer does obviously produce an XUpdate script. It goes a long way to optimizing the output (read: minimizing the number of operations), and employs a longest-common-subsequence algorithm for that (LCS is what regular diff uses on lines!). Fortunately we already have a 1:1 mapping, so this boils down to a longest-increasing-subsequence which can be computed very efficiently. Then the writer employs some XUpdate tricks to do real moves (by storing parts of the tree in variables to be inserted later), and avoids collapsing of text nodes (it will eventually insert dummy nodes for that). But all this gives just a glimpse of the complexity I've encountered in what I considered to be a "remote" part of my project. It isn't even described in the paper, because I just hacked this code together to work somewhat (attribute handling is incomplete IIRC). The "merged" writer turned out to be much more powerful than I had imagined and actually rather easy. After "merging" two version of an HTML document, I could add some CSS rules and have a visual presentation of the changes in my browser. Very cool. I'd love to add this html merge functionality to the prototype, but I didn't have enough time yet (you'll find some refactoring of the merged writer in SVN though to get there someday). But let me get back to the difficulties in the "XUpdate" writer. Not all of these difficulties are actually of technical nature. It is (like with the semantics of differencing) a matter of the intended data model and use. When you are doing a diff to be applied by a computer (e.g. via XUpdate), you may have the requirement, that the resulting document is identical to the original document. In that case, the diff is likely to have to restore whitespace. If you are interested in analyzing the differences, you will want to skip any irrelevant information. Let's assume we have an address book:
<abook><entry name="tom" /><entry name="jerry" /></abook>
Ordering of the entry nodes is likely to be irrelevant. You address book applications will sort the entries on demand. So a "semantic diff" shouldn't include any changes to the ordering of "entry" nodes, should it? The XUpdate writer doesn't have any functionality in place to skip such changes from being written to the output file. This will likely be not possible without some DTD magic and extra user information. However, to have the benefits of the "-u" context option of good old "diffutils" - fuzzy matches, and somewhat reliable merging of changes without having all revisions available - such semantics are needed, too. But this will even further increase complexity of the output writer, which for example would need to detect somehow that the "name" attribute in my address book is a unique key, and therefore xpath expressions like /abook/entry[@name='tom'] are preferrable to expressions such as /abook/entry[1], which will easily break when merging. The specification of an "XUpdate-replacement with context information" is probably a whole thesis in itself, I guess. P.S. I'm occasionally asked about a Java version of ssddiff. Sorry that I have to disappoint you there. First of all, I'm very short of time. Then I'm not too comfortable in Java, and I estimated that the Java version would need at least twice as much memory, because of certain optimizations I can't easily access in Java that I can just hide in a template in C++. And memory is the key limiting factor at least in exact mode.

24 April 2006

Martin F. Krafft: Back to Mandalay

I have returned to Mandalay after an exciting weekend in Pyin Oo Lwin. Sunday morning, I woke to meet Adam at 6:00 o'clock for a stroll through the botanical garden, and we engaged in interesting discussions for the 1.5 hours before we returned to a cup of coffee and being picked up by Eddy, his friend. He took us for a breakfast of excellent strawberry yoghurt -- the area is famous for its strawberries -- and afterwards helped me arrange for my own motorcycle, with which I went touring about the town. First, I visited the Chinese temple, followed by two Pagodas before fleeing the midday heat to the Be waterfall, where I first tried to get some food. Thankfully I have the Lonely Planet Burmese Phrasebook on me or else I would have had no chance, but eventually I ended up with some vegetables and rice, which at least did the deed. Following lunch, I went for a swim (which you are not supposed to do) in the waterfall pond, joining several dozens of Burmese cooling down. My attempts to dry and read where thwarted several times by excited folks doing almost everything in their power to get me back into the cold water. So I did. Eventually, the heat lowered and I decided to head back to the city to find an Internet cafe, and meet Adam and Eddy for a visit to a remote village, but the first half of those plans were changed when by the side of the road, I saw an old monk carrying two heavy bags and offered him a lift. He gladly accepted and I took him about 10 miles off the main road, uphill on a dirt track until we reached his village where we were greeted by the other surprised monks, who subsequently invited me for tea. I enjoyed the time, although only the monk to whom I had offered the ride spoke English and did not deviate from his topic how much he hated the Japanese -- he had fought in the war against the Japanese 60 years ago. On the way back I got lost several times but eventually managed to return the motorbike and make it to the lodge for a shower, before we drove off to the remote village. On the way I learnt that Burma is actually much richer than Laos or Cambodia, that noone in this country has to starve because of the vast amount of natural resources, but that poverty still exists all over the place, even though I found it to be not as extreme as back in Laos when I decided to come back with clothing for the children. But seeing (and being told) that the people in the village we visited were definitely among the poorest in the country, I decided to distribute the clothing I took along, which was well received and even documented on video by Eddy. Still, in the end, I was not completely satisfied because these village people were rich (albeit living in beaten huts and wearing torn clothing) as opposed to the ones who hosted my cousin and I 15 months ago in Laos. However, given that Pyin Oo Lwin gets very cold in the winter and the clothing I took was mostly warm clothing (like fleece sweaters and cord trousers), it was probably a lot better to leave it here rather than to take it to other (warmer) parts of the country. So now I am carrying an empty backpack with me, and the temptation to fill it with the many handicrafts and goods on sale here is almost unbearably high. That night, Eddy's wife invited us to a traditional Burmese dinner at their house. Unfortunately, Adam felt a little sick and couldn't join, so I went alone for some excellent food and had to drink the bottle of Australian Sauvignon Blanc all by myself. I doubt thought that it was due to the elevated alcohol level of my blood that I thoroughly enjoyed the screening of some videos of traditional Myanmar martial arts, as well as videos from the water festival celebrated in the country at the same time as in Thailand. While Songkhran in Thailand was almost excessive, the Burmese put more value on tradition, and intersperse the soaking with traditional dances, which looked absolutely wonderful. I am sure to return, even though April really is not the month to come here -- it's boiling hot outside. Now, back in Mandalay, I first embarked on a little expedition to the MICT, which is a computer centre with a bunch of schools in town, to distribute some of the Ubuntu CDs I had brought. It was good to know that most of the folks I talked to had heard of Linux, but that they never tried it because it's impossible to obtain. Now, almost a dozen CDs are with managing directors of various stores and schools, and they all know that they can freely copy them as many times as they like. If it turns out to be popular, maybe Canonical can arrange for a larger shipment to companies in this country, probably via Bangkok. I am leaving Mandalay tomorrow for Bagan, taking an express ferry at 6:00 o'clock, which should get me there within 9 hours. I am unsure what's next, but after 2-3 days in Bagan, I will either fly to Hohe and visit Inle Lake, then to Yangon, or just make my way on land to Yangon immediately. Flights come in at about $50 each, so while cheap, I am not sure I brought enough cash with me to afford them. You cannot use credit cards or traveller cheques in Burma. Stay tuned, and thanks for reading along.

23 April 2006

Martin F. Krafft: Offline in Burma

Our last night in Chiang Mai saw us eat at the market and take our rented motorcycle for a spin around the town, before falling into bed in order to get up early the next day. In the morning, we ran our last errands, including the buying of a lovely 14 litre Deuter backpack as my hang luggage -- Aline took the backpack I originally brought along with her as a shopping bag -- at a 30% discount, as well as breakfast, before we were off to the airport to part ways. Even though at first I really did not want to take Aline along (because I had planned this vacation as my first ever vacation alone in an unknown area), we had a great time, and I am glad I did. This way, she got a first glimpse of Southeast Asia, which may well be my future home, and if it turns out that way, hers too. In the checkin queue for Mandalay Air, I brushed up a conversation with the gentleman in front of me who turned out to be a regular visitor of Burma. He -- Adam -- supplied me with plenty of advice, and as we ended up sitting next to each other on the plane, he told me a lot about his business and the friends he was going to meet, eventually inviting me to come along to a lodge in Pyin Oo Lwin, east of Mandalay, for the weekend. Adam apparently knows the drills and by his side, I passed immigration and customs in a jiffy, without having my bags searched and no questions asked (not that I had anything to hide, but it saved us some time). His friends were waiting at the airport and gave me a ride into town (about one hour), dropping me off at a nice hotel right by the railway station. I am not yet decided whether and how long I will come along, but it's certainly a great offer, especially to get in touch with some of the people who could pull the right strings to help me in case of problems, or in the future facilitate further "clothing expeditions" into the country. I am to meet them again for dinner in about an hour but decided to check out the town a bit on feet, as well as investigate the Internet situation. As it turns out, it's pretty much all locked, so if you end up reading this entry, it means I either found a backdoor, or managed to sign up a freemail account somewhere, and mailed it off to a friend with write access to my blog. In Pyin U Lwin, I am supposed to meet James, a British expat who runs the only computer in the town, so maybe I'll be more lucky there. He'll surely be an interesting person to talk to with respect to the Linux CDs I brought along, and the Internet in Burma in general. It's a shame I did not set up a DNS tunnel before the trip, but the connection seems too slow anyway. Oh well, good thing I bought that USB stick! Mandalay so far strikes me very similar to the outskirts of Bangkok or Hanoi, I have not encountered too much poverty yet, but it's generally dirty and loud. I will probably not spend too many days here, but am always flexible to go along with what comes around. I do find myself stared at a lot more than I am used to from other countries on this side of the globe. Usually it takes them a while longer to respond to my smile, but if they do it is generally followed by an invitation to come sit with them. "Generally"... ha! I've only just come here, we'll see what time brings. Stay tuned.

19 April 2006

Martin F. Krafft: Last days in Chiang Mai

Our time in Chiang Mai is nearing an end, and with the end my lonely adventure to Burma is coming closer. Having had three days left in the city when I last wrote and deciding that a two day trek would just be too stressful, and the chance of it not meeting our expectations too high, we chose to stay put and get the most out of the city. We hired a motorcycle Monday night and rode around the town for a while, finally ending at an Italian restaurant for dinner. Aline is half Italian, and not quite as promiscuous as myself when it comes to Thai food, and had I known how much joy even my willingness to eat Italian in Asia would have caused in her, I may well have gone easier before on my motto not to eat anything but the local food. Dinner was quite good, although the wine (they only had one open white, red wine was not an option for me in the heat) again met confirmed my dislike of Chardonnay: it's oily and sour, or at least I have not yet had a taste of a different one. With the motorcycle waiting for us downstairs, I was unable to stay in bed for long, and we got up early the next morning to head to the Mae Sa waterfalls in a national park just 30 kilometres north of Chiang Mai. After a bit of zig-zag navigation, trying to get out of the city which has just a little too many one-way streets for foreigners, we didn't have any more problems reaching the site, disembarked and hiked around a bit until after about 30 minutes we got to one of the falls with a lot of Thai (no tourists whatsoever) bathing and trolling about in the water. We joined, of course. With the plan to drive further north to visit the "Hmong Lodge" and another waterfall, we walked back and I could not believe it when my pocket did not contain the motorcycle keys anymore. Damn. Once again I felt foolish that I just cannot seem to keep my stuff together, and I punished myself running back to the falls while Aline was already making arrangements for our rescue. Fortunately, I eventually did find the keys just in time to call off the arrangements, and -- soaked in sweat -- we were on the road again. I really should exercise more. About 30 minutes of a beautiful ride down into the park, we reached the "Hmong Lodge", only to find it to be nothing more than an overpriced lodge, offering its guests "local culture" in the form of shows and displays of Hmong handicraft work. We enjoyed the most expensive beer of our trip up there, then turned around and stopped at another waterfall, where a bunch of Thai youth had assembled. With a subtle intention to crash their party, we joined, but the heavy rain that started after a few minutes drove those intentions away. After spending 15 minutes-or-so sheltered in a hut with some of the Thai and making almost no contact, we took off and rode the bike back to Chiang Mai, stopping by one of the cinemas and deciding to spend the evening watching "Ice Age 2". We got back to the hotel just in time to meet our tailor to fit the shirts, trousers, skirt, and jacket we had ordered, sending her back with quite a few changes to be made. Then, with an hour left to kill, we opted for a massage before the movie and headed into the shop we thought the hotel owner had recommended. Turns out that we took the wrong door, and while Aline was getting a good knead, I found myself under the incapable hands (and feet) of an overweight Thai woman, who apparently seemed to think that litres worth of massaging oil would somehow obscure her inability to massage muscles and instead apply moderate pressure to my bones only. I told her a bunch of times but really only made it worse -- in the end I must have upset her to a point where she started bouncing up and down on me with the clear intention to torture and eventually murder me... but fortunately the 60 minutes were over just in time. The movie theatre itself wasn't spectacular (and I didn't think the movie was either), and if it hadn't been for the national anthem and some low-budget film flashing pictures of the King, while everyone stood and paid due respect to him, I'd have said it was just another cinema night I'll quickly forget. At 70 Baht entrance fee (about 1,40 EUR) it didn't hurt either. The evening ended as we met some folks from a bar back in Ayutthaya and chatted for a while, learning that the Thai elections are on today (Wednesday), and as a result, no alcohol is served in the city throughout that day, as well as after 18:00 o'clock the night before. Tough luck for them, especially after we succeeded in getting another can each while they did not. The trick is simply to take the beer out of the fridge and hand over the money without asking questions. So today, our last day in the city, was supposed to be museum day, with the tribal museum, the national museum, and possibly even the insect museum on our list. Negotiating with a tuk tuk driver for the right price, it then occured to us that it's cheaper anyway to hire a motorcycle at 200 Baht/day (4 EUR) -- and way more fun -- so we again hired a bike and drove off to find the museums closed due to the elections. Not that this upset us in any way; we rode back to the hotel, spent the hottest hours of the day reading by the pool, and went for another cruise in the afternoon, returning again just in time to meet the tailor a second time; while my shirts and trousers are fine (and beautiful), Aline's skirt needed yet another modification, so we are expecting her again tomorrow. By the way: yesterday we rode a Yamaha Mio 125cc automatic bike, and today I settled for the Honda Dream 125cc manual, which I had ridden before in Laos and which seemed like a good bike. If I ever have the choice again, I would certainly go with the Yamaha, which was a joy to ride, especially since this has been only my third time on a bike. Now, the last night in Chiang Mai will probably see us dining somewhere, packing, running the last errands, and sleeping in, so we can actually make it to the airport tomorrow in time and rested. I hope I'll be able to continue writing from Burma. Apparently, network access is restricted, so I fear I may have some difficulty logging into my servers. However, I bought a USB stick today, and with that, and maybe A Little Help From My Friends back in Zurich, I can publish entries nevertheless. Stay tuned.

14 April 2006

Martin F. Krafft: Wet in Chiang Mai

We got up early this morning to catch our flight to Chiang Mai from Sukhothai Airport, the most beautiful airport I have ever seen: it's not a cement brick with squared floors, but rather a group of traditional Thai hut houses, one for ticketing and checking, one for departure, and one for arrival, and all set in a beautiful surrounding -- no wonder this airport won the Thai environmental award every year since it was first given. If you ever consider visiting Sukhothai from Chiang Mai, fly there! I can imagine arriving at that airport to be a very special experience! Following the touchdown few minutes after takeoff, we sought out a couple of guest houses and finally settled at the Awana Guesthouse, which also offered a pool, although on seeing it, it's more like a bath tub for 5 people. Whatever... I used the morning hours, during which the Thai appeared to be still sleeping to run two most important errands: first, getting my ear unclogged, and second, picking up the bag with clothing from the train station. Our guesthouse referred me to the Chiang Mai Ram hospital, a privately run clinic, and once I got there (still dry), I didn't get to read as much as a single page in my new book (The Crying of Lot 49 by Thomas Pynchon) until I was lying flat and had an English-speaking doctor examine me. He told me that the Thai put some sort of stuff (I did not understand the name of the substance) into their pools, which causes European ears to clog up frequently, and after 15 minutes of routine, I was able to hear again on my left ear. I paid just short of 20 EUR for the cure and felt so good about it and the hospital that I talked my way up to the management to make a donation -- in the amount of the estimated difference between those 20 EUR and the amount I would have had to pay in Switzerland. They said that I was the first person to ever make a donation to the clinic, the other foreigners usually only complain about the high prices. Go figure about the kind of tourist who frequents Chiang Mai. Speaking of tourists, unfortunately, this place is crowded with Europeans, and not just any of them, but the worst kind. For me, dress code means a lot, and when I see Europeans without shirts, or women in bikinis in a Bhuddist city, I sometimes wonder why these people don't simply stay home. Of course, tourism is the number one source of income for about 70% of the Thai, so it's just as well that they come, but then they should not be complaining about medical care for 20 EUR, or bargain to the minimum price for handicrafts, or annoy themselves that the tuk tuk driver just "ripped them off" by charging 60 instead of 40 Bhat (again, around 1 EUR). Cured, I made my way for the station and almost made it there dry, if it hadn't been for that damned pickup van closing in from behind and hunting my taxi for several hundred metres, just to get a shot. At the station, I took some detours to find the cargo terminal, but was then surprised at how easy it was to claim the bag, even without the receipt (which, if you will remember, was in the wallet I had lost a couple of days ago). I am really relieved, once for the clothing, and second because the bag itself was lent to me by a friend (forgive me, HP). By the time I left the station it was about noon, and there was water everywhere, but I made it to the hotel almost dry. The Thai duly respect if you have a bag, smoke a cigarette, hold a cellphone, or simply wave your hand. It goes without saying that the two massive splashed I received nevertheless were from tourists, who must have reached some sort of overpowering state of joy and didn't care about what they sprayed. When I saw some tourists splash buckets onto a couple of old people (which is a no-do), I was really ashamed. The New Year festival in Chiang Mai is said to be the biggest and most lively all over Thailand. I met Aline back at the hotel and we headed out into the centre city for yet another day of soaked clothing, and we can probably agree that the "festivities" here are second to none. This time, following the bad experience of the inferior position of a water gun on a motorcycle, we bought two puckets and got up on one of the pickups with some Thais and Burmese people speaking excellent English, and had excellent fun for an hour or two -- gettting no further than 200 metres along one of the rivers or so -- there was no driving on the roads which were filled with people and vehicles, just not touching each other, and there was water everywhere with people getting fresh canisters from the rivers all the time. We then remembered that we were wearing our last set of clothing, the other stuff being laundered and ready for pickup tomorrow, so we disembarked the truck and headed out of the city to the market in hope to find some trousers to wear, but short of a Sarong for Aline, there was nothing striking our fancy (which, mind you, isn't high. I just don't want to be wearing thick jeans in this weather). Anyway, the trousers we were wearing had dried in the mean time, and now the challenge was to make it back to the guesthouse without being splashed again -- and quite a difficult endeavour it was, but we almost succeeded, only soaking up another litre each, which, believe me, was peanuts by then. Sorry for this somewhat unexciting entry. Starting tomorrow, we'll break with the festival as we've had enough of water for the time being. On our list are a day of cooking school, the zoo, a 1-2 day treck in the hills, a seminar with monks, and, of course, a bunch of the temples of the city. Thanks again for reading along.

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.

Martin F. Krafft: Soaking the city

We spent eight hours today, starting at around 10:00 o'clock, completely soaked with water. I had read about the Thai New Year celebration "Song Khran," but I would not have believed it to be as extreme as it turned out to be. But let me start where I left off: Phitsanulok. Following the recommendation of the director of the lower northern Thailand Tourist Authority (TAT), we spent the evening by the river running through Phitsanulok, where the Thai were celebrating the "food festival" -- it seems to me that the Thai, or Southeast Asian folk have a festival for almost anything to make it around the year... The road along the river was banked with little booths selling just about everything, from edible to handicrafts, with fair booths offering games such as darts, jumping castles, and live bands in between. Strolling around, we had a bite of the most appealing things -- I did stay away from roasted cockroaches, maggots, and other bugs this time, for I had already sampled them in Vietnam and felt no particular need to repeat the experience, although it was not revolting back then at all: it's just a little meat with a lot of crust that you don't want to eat, and the taste isn't particular. An excellent meal of noodles with some sort of sweet-spicy sauce, together with a beer and the company of some young Thai boys ended the evening for us and we returned to our hotel rather soon, with the intention to get up early to finish our errands and make a run for Sukhothai. So with our plane tickets and some fresh cash, we set out for "Sgt. Tawnee's Folklore Museum", a private collection of traditional Thai "things" -- tools, traps, toys, instruments, clothing, ... just about everything... Sgt. Tawnee was a poor soldier who realised that people were forgetting about how their ancestors went about to solve everyday's problems and consequently started collecting anything and everything -- a truly remarkable and beautiful collection! After a so-so Thai massage (see forthcoming blog entry), we quit the city by bus to arrive in Sukhothai about an hour later, where we were met by the pickup van of the guesthouse we had booked, also following the recommendation of the TAT director: we are staying at the Ruean Thai Guesthouse, a place with cozy rooms, a swimming pool, and very friendly staff, for about 10 EUR a night -- the best guesthouse I have been to in three vacations in Southeastasian countries, three thumbs up, I can recommend it to anyone coming to the area! We had just settled and taken a shower when the hotel clerk notified us that the director was waiting downstairs to take us to the "light show". We boarded his van, together with his family and colleagues, and drove about an hour to Srisatchamalai Historical Park, where we arrived just in time to witness an impressive ceremony, part of the New Year celebration: old people were sitting in rows on chairs, and younger folk passed from one to the next, pouring drops of water into their hands as a form of respect to the elderly to help them stay cool in the dreadful heat of the month. Naturally, we lined up and did as the others did -- and found us filmed and greeted by a television crew afterwards for an interview. Not wanting to be a burden to the director and his family, we followed the suggestion to stroll around in the park for about an hour, until we returned to the agreed meeting point. There, we found that mats had been rolled out on the lawn in front of one of the temples, and maybe 200 Thais were sitting and dining. The director invited us to join them, and we enjoyed Thai cuisine until dusk, when everyone got up for the national anthem and the show began. At first, a famous Thai singer (so we were told) performed a couple of folk songs and we learnt that, (to my knowledge) unlike European folk songs, the Thai sing songs telling real events in history. A fashion show of old, traditional Thai clothing followed, and finally, the stage was set for a performance of the history of Sukhothai. People were all over the place, fighting, dancing, or just "ruling" (as the king(s) would do), and a voice recounted the story, which one of the director's daughters translated for Aline, I was busy taking pictures. Fireworks accompanied the scene, along with flying objects consisting of a real flame underneath a balloon made of rice paper. Most flew high and far away, some got stuck in trees and went up in flames. After the show, I had a chance to see some of the costumes and must say that I am deeply impressed, not only by how Thai people used to dress, but also by the love and care the people put into the show to make it as authentic as possible. Interestingly, only one other tourist ("fallang") was at the event, something the tourist director wants to change in the future -- good thing we witnessed the "pure event"... I seem to prefer places not frequented by tourists, and in the Thais seem to be continuously surprised that we are not heading for the beaches in the south following our time in the north. Back at the hotel, we fell into bed, exhausted from the day and the nightswim in the pool. I got up this morning to find my ear clogged with water -- must have been the late swim. The guesthouse owner insisted to take me to a pharmacy to find some eardrops, and I hope this nuisance will go away soon. We rented a motorcycle for the day and headed in direction of the old Sukhothai city, or the Sukhotai History Park, as it is also called. Waiting for our photo chip to be beamed to CD, we made our first encounter with the way young people like to celebrate the New Year (which officially started today): all over the city, people rode around on the back of pickup trucks, emptying buckets of water over other people. We bought ourselves a water gun and plunged in for the fun. It didn't take 30 minutes until we were soaked, but nothing could stop us. The old city is maybe 10 kilometres away, and the drive was the most unforgetable motorcycle ride I'd ever had: all along the sides of the road, people were filling buckets and splashing everything that passed -- being on a motorcycle with merely a water gun, and as "fallang" (foreigners), we were naturally the primary target for just about everyone, so by the time we had reached the city, we had soaked up half an ocean each. We stopped by a group of kids, gave our water gun to the smallest one, bought a new one, and teamed up with them to fight the passing vehicles. Oh what fun! Dripping, we made our way to the park after a while, and strolled around some temples, the market, and many more water fights. Even though the water obscured the heat, we still didn't feel like taking the barrels of water we had collected for a walk and didn't last too long before we were on our way back, destined to stop again with our allies (the kids) to make sure no car and no passenger got by unwashed. The Thai also crumble up chalk, mix it with water, and smear it into each other's face -- you can imagine how we looked like after a few minutes: soggy and chalked. Finally, we made a run for the hotel and got back at about 16:00 o'clock for the first time of feeling "dry" in eight hours. Now, after some time at the pool, we are loathing for dinner but daren't go for the city as we are wearing our last set of clean, dry clothing; I doubt the Thai lay their buckets to rest at seven and call it an evening. Fortunately the hotel offers food too, so we'll likely be boring and stay in. Tomorrow morning is our flight to Chiang Mai for more of the wet fun. I'll keep you posted. Thanks for reading along.

12 April 2006

David Welton: Ruby vs Tcl, round 2

Ding ding. (Round 1 - for those who missed it) Kidding aside, remember that I like and respect both of them. Libraries In the first article, I mentioned that Ruby has a lot of momentum, which is a pleasant change from Tcl's relative 'uncoolness' amongst the Web 2.0/O'Reilly/"next big thing" crowd. That said, there are still places where that momentum hasn't taken it. I set about writing some code that I'd wanted to play with that involves sending some email. Something that's very easy in Tcl: http://tcllib.sourceforge.net/doc/smtp.html (towards the end of thepage). Python seems to have a pretty complete email system too, for that matter: http://docs.python.org/lib/module-email.html. So it appears that, based on a sample of one attempted task (how's that for statistics?), that Ruby is still lacking a few things in its standard distribution. Note that this functionality is available elsewhere (TMail, to cite one), but email is ubiquitous enough that it ought to be in the standard library. Command line swiss-army knife While Ruby's OO system gives it a head start when you need to create a larger system with distinct parts, it can still be used as a quick'n'dirty scripting language for quick one-off jobs. From the man page:
% cat /tmp/junk
matz
% ruby -p -i.bak -e  $_.upcase!  /tmp/junk
% cat /tmp/junk
MATZ
Very handy. Tcl's command-based syntax just isn't quite as quick for those sorts of operations, so Ruby wins hands down here. I've suggested that the Tcl folks distribute a second program that takes a lot of the Perl-style command line arguments for this sort of work, but the idea doesn't seem to be of much interest. C API's On another tack completely, one of the things that originally drew me to Tcl was its very, very nice C API. It's documentation is clear, and thorough, and the API itself lets you get involved in pretty much any aspect of the language that you want. This makes sense, because when Tcl was originally created by Dr. Ousterhout in the late '80ies, the idea was to create a scripting language as a C library that would be loaded into other programs. The language has always been faithful to its heritage, and to this day I find it lots of fun to merge Tcl with C code. I have to admit that I don't know the Ruby API all that well, but what I have looked up looks pretty nice. To a certain degree, it's comparing apples and oranges, because Ruby requires you to deal with the very object oriented nature of the language, whereas Tcl is a lot more direct. The Programming Ruby book's coverage of the subject also leads me to believe that Tcl really gives you access to more stuff (interpreters, channels, events, and many other parts of the system). Ruby seems to take an approach that might best be described as letting you write Ruby in C - meaning that you create Ruby objects, use their methods, get their values, and so on, but you're still really dealing with Ruby. This has a certain elegance, but sometimes it's necessary to muck about with things at a lower level. I don't know how it works out in practice, but Ruby has a bit more infrastructure in place for actually building extensions once you've created them. Tcl has "tea", which is a set of m4 macros, but anyone can tell you that the auto tools are not much fun to work with (going to the dentist is more fun) - anything that keeps me away from them is welcome. Garbage collection One of the more interesting aspects of the different approaches to C interoperability is the fact that Tcl uses a simple, robust, straightforward reference counting system to keep track of, and throw away resources that are no longer used. Ruby has a mark and sweep garbage collector, which is probably more sophisticated, but also more complicated, and requires a bit more support from the programmer initially. The benefit is that once things are set up, they require less keeping track of, because you hand off memory management to the computer. From the end user's point of view, Ruby wins here, but if you happen to be writing a C extension, I could see it being more difficult to write and debug to this API, although Tcl has its own warts, one of the worst of which is the fact that Tcl values must be convertible back and forth to strings, so that for things like a file handle that can't really survive the round trip, because it's just a pointer, you use a hash table and some sort of string to hold onto the object:
 "file1" -> int fd1
 "file2" -> int fd2
which makes it impossible to GC these values. I suspect that both approaches have their merits - Ruby's is more elegant, but Tcl's is simple and rugged. Licensing Bouncing back to something completely non-technical, Ruby's licensing is either the GPL, or their own license. If I understand things correctly, you can get around the GPL's "viral nature" by simply renaming things, if you have a need to include Ruby in a proprietary product:
  1. You may distribute the software in object code or executable form, provided that you do at least ONE of the following: a) distribute the executables and library files of the software, together with instructions (in the manual page or equivalent) on where to get the original distribution. b) accompany the distribution with the machine-readable source of the software. c) give non-standard executables non-standard names, with instructions on where to get the original software distribution. d) make other distribution arrangements with the author.
So it seems that you're ok if you just call it something else. However, the license goes on to talk about several other files in the core distribution:
  1. You may modify and include the part of the software into any other software (possibly commercial). But some files in the distribution are not written by the author, so that they are not under this terms. They are gc.c(partly), utils.c(partly), regex.[ch], fnmatch.[ch], glob.c, st.[ch] and some files under the ./missing directory. See each file for the copying condition.
Looking through the LEGAL file in the distribution shows that there are files distributed under other terms. Of course, they're all free software, but some are LGPL, some BSD, and a few others for good measure. Tcl's licensing, on the contrary, requires very little understanding. The language was developed at the University of California, Berkeley, and the license remains BSD. This goes for many of the libraries and extensions as well. If you need to embed a language in your proprietary system, Tcl and its libraries present no problems whatsoever. Of course, I prefer to work with open source code and communities, but that's not possible 100% of the time, so it's always nice to know things are free and clear, should that need arise. Internationalization This is something the Ruby folks know they need to fix, and are working on, so it's not worth dwelling on it much, but it is a proud point for the Tcl community. Tcl has had very nice i18n setup for many years, at this point - since the 8.0 release. It's built into the language, so that everything works with it. You have commands to set encodings of IO channels, and even munge strings. Tcl wins here - no contest. As I continue exploring Ruby, I think I'll find more stuff to compare with Tcl, so we won't ring the final bell just yet.

MJ Ray: Reforming the NM Process

Suggestion: Ask advocates to take on the formative/ educational part of the current AM role and prepare a summary in a given format about the applicant. The summary could then be used as the basis for simpler summative testing by an AM, with swift referral back to advocate and applicant with direction, if the AM or FD is not satisfied. [link to mailing list post with more explanation and references]

Lars Wirzenius: Debian: Packaging tutorial next summer in Finland?

I met someone from HP Finland yesterday and he gave me a tentative promise that HP would be willing to give its auditorium for free if I want to arrange a Debian packaging tutorial during the summer. I've given such a tutorial to some friends, and it would be fun to do it again, if there's interest. The way I imagine it currently would be that there's a theoretical lecture first, say one hour, that covers the basics of packaging. The second part is hands-on training, where everyone builds packages, and if they have problems, I and others will help. Depending on how long we want to make this, we can then continue with more lectures, and maybe more hands-on stuff. In my calendar, the weeks starting June 10 or June 17 would be ideal. This would, of course, be completely free for participants, and open to everyone. If you would like to participate, either as a student or as a teacher, please drop me a note. Nothing is binding right now, I'm mostly just interested in how many people are interested.

Next.

Previous.