Search Results: "ean"

1 June 2006

David Pashley: Tidying Up

A few hours ago I got stressed about the lack of leg room under my desk and ended up spending the next few tidying and moving all of my computers to under the next desk. I also made the mistake of starting to remove keys from my keyboard to clean something sticky and found myself surrounded by keys and a keyless keyboard. It's now nice and shiny, which is more than can be said for the rest of the flat, which is now overrun with all the crap that was around my desk. Another thing that could do with a tidy up is Eddie, my Java liberal feed parsing library. After the initial coding sprint, I've had time to sit back and look at the design of the library and clean up any thing that sticks out. As mentioned in a previous entry, one of the things that has bothered me is that when ever you need to call an object method, you need to be certain that the object is not null. The means you end up with code like:
if (string != null && strong.equals("string"))  
This quickly becomes tiresome and the test for null distracts from the meaning of the code. Fortunately I was reminded of an improvement for string objects. Ideally, we should all be writing comparison conditionals like rvalue == lvalue. (an rvalue mostly is an expresion you can't assign to). The most common rvalue is a literal value like a string constant. The advantage of getting into the habit of writing code like this is that you'll discover at compile time when you accidentally write = rather than ==. Because you can't assign to an rvalue, the compiler will complain. What makes this interesting from a java string point of view is that you can call methods on string literals. Comparing a variable to a string literal, rather than calling .equals() on a variable is that the string literal is not going to be null, so you can remove the test for null and simplify the code:
if("string".equals(string))  
I know it's not everyone's cup of tea, but I prefer it to testing for null every time I look at a string. The other thing is that I've been reading Hardcore Java by Robert Simmons at work. Considering I've only got a few pages in so far. I've received a surprisingly large number of ideas to improve my code. The one that sticks in my head is using assert for doing post and pre conditions on your functions. Using asserts have number of advantages over throwing exceptions, including the fact they get optimised away when you do a production release. In Eddie, during a <feed> element I determine the version of Atom that we are parsing. This had a number of nested if/else if/else blocks. At the end of the function, I wanted to make sure I had set the version string to something, so had the following code:
if (!this.feed.has("format"))  
   throw new SAXParseException("Failed to detect Atom format", this.locator);
 
However, using assertions I can write this as
assert(this.feed.has("format")) : "Failed to detect Atom format";
I highly recommend the Hardcore java book if you want to improve your java programming. It includes sections on the new features of Java 1.5 and using collections. I've made a couple of other cleanups including going through member variable access specifiers to make sure they are right and making several public methods and variables and making them priavte. I also have a couple of ideas about refactoring some of the code to clean it up. Redesigning and refactoring code is almost more fun than writing it in the first place. You get to be in competition with yourself, challenging yourself to write better code and end up with cleaner code in the process. A couple of things I want to do in the near future is use a profiler and code coverage tools. If anyone has recommendations for either of these tools that integrates nicely with eclipse, I'd love to know.

31 May 2006

Wouter Verhelst: The NMBS sucks.

I'm typing this entry in the Antwerp Central Station, after having missed three trains. When I go from Mechelen (where I work) to Ekeren (where I live), I have a few options: either I take a train at 48 past the hour, in which case I can stay on the train until I'm home; or I can take another train, in which I have to change trains in Antwerp Central. Unless I take the train at 11 past the hour in Mechelen, which doesn't call in Antwerp Central, so I have an extra stop in Antwerp Berchem in that case. Today, I just missed the 48' train when I arrived in the Mechelen station (as in, I saw it close its doors and leave), so had to wait for the next. Which was the 11' train. But it was a bit late. When I arrived in Berchem, the train was still a bit late, and my connecting train (which leaves at 33') was just leaving (as in, I saw it close its doors and leave). I took the next, which is only four minutes later. But those four minutes mean a great deal; when that train was coming to a stop in Antwerp Central on track two, I saw a train leaving on track 6. Take one guess which train I had to get. So right now, I'm waiting for the next train home, which is over an hour later than the previous one. Better not miss it, too, since it's the last one for today. I wish the NMBS would create some less frustrating timetables.

David Pashley: Laptop Harddisk Failure

I'm currently mourning the loss of my laptop's hard disk. I don't think there was massive amounts of data on there that I needed, but it's still upsetting. Looks like I'll have to buy a new 2.5" drive. At least it gives me a reason to reinstall Debian. Update: The bad news is that it is actually a 1.8" drive, which means I need to spend 93GBP including tax and postage for a new drive. Should get it by Friday. The good news is that having left the laptop off during the day, I managed to get the laptop booting and am not rsyncing the data off as fast as I can. Shame about the money, but at least I haven't lost much in the way of data.

Jeff Bailey: Montr al goes non-smoking

This lovely city is about to get nicer for me. Montr al is going non-smoking in all indoor enclosed public spaces. The law takes effect in about 40 minutes.

It's tempting to go play pool at midnight, but:

1) I'm sure it'll take a week or two for the residue smoke to actually clear out of the pool hall.
2) I'm *tired*

But there needs to be a game sometime soon... I'm thinking next Tuesday, 11pm, Berri and Mont-Royal, right above the Jean Coutu.

John Goerzen: Midnight Musings on a Dark Train

I stepped out the front door Monday morning at 2AM. Our house was a bit warm and stuffy, and I expected a nice, cool breeze. But instead I got a blast of... slightly warmer and stuffier air. Summer must be here.

Terah and I were setting out on a train trip. The train east out of Newton, KS leaves at 3:01AM. We got our bags loaded and set off to the station.

Not long after we got on the train and to our room, the train started moving. Terah fell asleep right away. It's hard for me to fall asleep so quickly the first night of a train trip. The excitement of the upcoming trip keeps me awake. Plus, once I wake up, I usually stay awake. Even if the alarm woke me up at 1:20AM.

This time, I lay awake remembering my ancestors, who migrated from Russia to Kansas in 1874. Some of our trip will follow the same route that they took 132 years ago.

In the train, you hear what sounds like a distant train whistle fairly frequently. It's from the locomotive on our train, but sounds distant because the passenger cars keep the noise out.

We slowed a bit, went around a gentle curve, and the whistle sounded again. Off to one side of the train were the lights of a small town. It's Peabody, KS -- where my ancestors arrived in the middle of the night back in 1874. They were excited to finally be at the end of their journey -- which had taken months and spanned oceans and railroads on two continents. So excited, in fact, that they set off to find their new land in the middle of the night rather than wait for dawn. But how did they cover those 15 miles at night? Did they rent horses and wagons from someone? I couldn't remember, trying to sleep here in the middle of the night.

I'm still awake. I come to a pause in my thoughts and notice the train's horn again. Somewhere ahead, there is a dirt road crossing the tracks. Nobody is there, but the train is sounding its horn to keep them away anyway.

I think back to 1874 in Russia. Not everybody in the Mennonite settlements there left. Those that were too old, too weak, or that couldn't make the trip for whatever reason stayed behind. For most, when they left Russia, they were saying goodbye to their families for the last time. They would never have the opportunity to see them again.

Then their trip began. Through rickety Russian railroads, to long days at sea, then through New York, and on the railroad again, stopping some points along the way. They'd never seen what would be their new home. And there was no going back if it wasn't to their liking. I can only imagine how hard that must have been for this group of German-speaking immigrants from Russia. And how anxious and exciting it would be to finally get off the station and head to their new home.

This group of settlers made quite the impact on Kansas. They brought their "turkey red" winter wheat with them from Russia. This wheat turned Kansas into the world's leading wheat producer. And it helped rescue the ATSF railroad from the precarious financial situation it was in. That was a good move on the railroad's part -- they were the ones that sold land to the Mennonites in Kansas, recruited them to settle in the area, and even built them temporary housing for their first winter in Kansas.

And that's the same railroad we're taveling on now, as I hear the crescendo and then the WHOOSH of a passing train just a few inches from ours.

By now its 4AM. I think back to the train station in Newton, which we left behind just an hour ago. I remembered how earlier in the 20th century, after the Mennonites were well-established in Kansas, they would send off missionaries to other parts of the world -- China or India especially. Those that went off served two 7-year terms. They departed from the Newton train station, just like we had. They probably waited for the train to carry them away in the same room we did. But they knew they wouldn't see their friends, relatives, or home for 7 years.

When missionaries would leave, a large group of church members would accompany them to the station. As the train approached, the people there would start singing their favorite hymns -- a capella, in German. The sound filled the old station, and followed the departing family out onto the platform as they boarded their train. The people leaving weren't the only ones to miss their friends and relatives. Those staying behind would also go 7 years without being able to talk to the missionaries that were departing.

A light flickers by the window. Maybe a yard light, or a small town, or the back side of a warehouse somewhere. Off in the distance, the horn sounds at another crossing.

Time for some sleep.

Evan Prodromou: 11 Prairial CCXIV

I was chatting the other night with Jeff Bailey and Robin Millette in the Freenode #mlug channel (the channel for the Montreal Linux Users Group). Jeff gave out the good news that Ubuntu will be building a support centre here in wt:Montreal, which will mean Linux- and Debian-related jobs right here in Quebec.

David Pashley: Eddie RSS and Atom Feed Parser

I'd like to announce the initial release of Eddie, a feed parser library written in Java. It's taken me over 100 hours, but it now correctly parses 90% of the FeedParser unit tests, including all the rss and atom tests. It's GPLed, with an exception allowing you to use it in any open sourced program. Get it at my website. Need to add documentation and character set and encoding support. Also need to separate the testing infrastructure from the rest of the code. This is the first time I've done any java programming in anger, and I have to say I'm surprised to discover I quite like it. In many ways it seems a very quick language to program in. It seems almost like programming in a scripting language, but stronger typed. This is probably due to not having to worry about memory management. Certainly I don't think I could have written this quite so quickly in C++. Having said that, there are a couple things that I don't like about Java. Everything is a pointer. This is useful at times, but it means that every time you want to call a method on an object you have to test whether it is null or you run the risk of getting the dreaded NullPointerException. Java also doesn't have keywords for and, or and not. I know not everyone likes these, but I keep finding myself trying to use them. I'm sure there are other things I hated, but I can't remember them now. I think I'll end up doing more java programming in the future.

30 May 2006

Christine Spang: got UROP? (well, sort of)

It’s occurred to me that I haven’t ever actually blogged that yes, I accepted enrollment at MIT. Hence the preparing to move from Camillus, New York, a little suburb outside of Syracuse, to Cambridge, Massachusetts. (I.e. the Cambridge where you get to pick your email!) Not only that, but I have a job. A job at the MIT Media Lab, Tangible Media Group. They use Gentoo (on cygwin…), but I forgive them at least for now since it’s a heck of a lot more interesting a job than the crap retail jobs that my friends are queueing up for the summer. Though it means that I won’t be able to party with them for the last summer before university, since I won’t be home. Why I have the job is mostly Mako’s fault. So, I was staying at him and Mika’s place when I was down visiting MIT, and I met him outside the Media Lab the night I arrived since it’s right across the road from East Campus, where my undergrad student host lives. I got an awesome tour, got to check out the shiny toys, and got introduced to a few people. A day after I get home, I have forwarded email from Mako in my inbox from one of the people I was introduced to (another grad student at the Lab), who’s looking for people to hire this summer. Zing, nifty. The position’s basically a temporary UROP, hence the post title. A month and a bit later, I’ve paid my June rent for my sublet in Cambridge and am making lists of stuff to go shopping for. If you want to be helpful, tell me something you took to college and never used. Though keeping in mind that I’m in a small, rented house for 2.5 months until I move into my dorm in late August. Or, point me to quick and easy recipes. I’ve never really done a lot of cooking before, so I’ll be using the kamikaze “cook or don’t eat!” method here. I have 9 days of high school left until classes let out for exams, and I’m pumped. I’ll only have one final exam this year since the only classes I’m taking that have ‘em are Economics and AP Physics, but I managed to cut through the numerous layers of red tape necessary to get out of taking the New York State physics regents exam since it’s given on the very last day of testing, and I am leaving before then. (I’m heading down on June 19th; it was supposed to be the 22nd.) Seriously, red tape. Talk to guidance counselor, talk to academic dean, talk to guidance counselor again, talk to admissions officer from MIT whom I’m acquainted with, give guidance counselor his phone number so she can fulfill the school politics requirement of having official confirmation of okay-ness, get the go-ahead from guidance counselor afterward. The economics exam is on the first day of tests, w00t (June 12th, IIRC). Commencement is June 17th. Walk across the stage (I’m giving a speech!), then drive across the Northeast to the rest of life.

29 May 2006

Jordi Mallach: Sevilla

I arrived in Sevilla this morning to attend tecnimap 2006, and I will be staying in the city until Friday evening. I'd love to hook up with the Sevillan Free Software community after the show ends during the week, so if you're in the area, please contact me by phone (there's plenty of Debian people who know my number) or by email and we can try to make up some plans. I'm staying in the Sevilla Congresos hotel in the outskirts, so going out to the city involves taxis, busses or other non-trivial means of transportation, so have that in mind! Getting here has been quite stressful, but that's no news anymore. At 00:00 last night, not only I had not packed at all, but all my clothes were scattered around thre different flats in the city, and I had no car to go pick the stuff up. Luckily, this morning my sister could give me a lift to pick things up and then took me to the airport. The flight revealed a very dry landscape as we headed south, and some irrigated areas in the middle of pure desert. There are also some very characteristic circular fields that show very cool patterns when looked from the heights. It's pretty hot in here, but still bearable. I don't want to imagine August around the place. Anyway, if you're in Sevilla, I hope to be able to meet you any of the four evenings or nights I'll be around. I need some natives to walk me around the place, and in some cases, translate the very special Andalusian spoken here. :) Momona people, I also mean you!

28 May 2006

Philipp Kern: XFS on root -- a no-no

You must not try to put your root filesystem on XFS, at least with the current debian-installer used by both Debian and Ubuntu. Even though the installer offers this, the boot code fails mysteriously by not finding an appropriate device to boot from. So it leads to a kernel panic on both distributions just after the installation, without any modification to the boot loader:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
It might be possible to fix this issue by putting some magic into the kernel parameter list. I recall that I had this problem already with Ubuntu Breezy, and even with the help from the Ubuntu powerpc kernel maintainer I did not get it to run properly. I hoped that it is fixed by now, in the standard distribution, but no, sadly enough it isn't. I used reiserfs in the meantime, even though I had some data losses and thus bad experiences about four years back in time. Well, but what's nice with those old Open Firmware Apple products: You get netboot for free. This guide helped me a lot, my desktop now provides powerpc installation images for both Debian and Ubuntu. But then... I only have one powerpc-based computer in my possession. And I won't buy another Apple again, due to the low manufacturing quality of their mobile products.

Martin F. Krafft: Aftereffects of the keysigning experiment

The experiment I conducted at the last keysigning party caused this thread (cross-posted to here). While the discussion has long gone way off-topic, some interesting points have been raised. I also took the opportunity to clarify my point of view a bit on the issue over the previous blog post:
The Debian project heavily relies on keysigning for much of its work. However, I think the question what the signing of a key actually accomplishes has not been properly addressed. In my opinion, from the point of view of the Debian project, a person's actual identity (as in the name on your birth certificate) matters very little; the Debian project does not actively interfere with a person's real life in such a way as to require the birth certificate identity (legal cases, liability issues, etc.). Moreover, it's rather trivial in several countries of this world to change your official name. In this context, even the claim that in the case of a trust abuse, your reputation throughout the FLOSS community (and the rest of the Internet) should be properly tarnished, does not stand, IMHO. From within the project, what matters is that everything you do within the project can be attributed to one and the same person: the same person that went through our NM process. The GPG key is one technical measure to allow for this form of identification. Its purpose is not, as Micah Anderson states, a means to confirm the validity of a government-issued ID. This brings me to a point which Andreas Schuldei nicely stated at the beginning of the thread (as did others throughout):
I do not need an ID to identify martin, so i dont need to rely on his (forged or real) passport or other id from him in order to sign his key. If you did not know him before you should not sign his key (if your judgement was based on the unofficial ID).
When Andreas signs my ID, he voices his trust in that I am who I claim to be, and he does so not because I presented him with an ID with the claimed name, but because we've interacted many times before. In that line, Gunnar's point stands:
Maybe we should just drop holding KSPs, and fall back to the traditional method of "Hey, nice dinner we had yesterday. Say, now that you know me, my family and my history, would you like to sign my key as well?" - Signing for people you actually know, not just linking
In my eyes, this is exactly what a keysigning is and should be all about: a statement of familiarity with a person, nothing more and nothing less. And as a project, we should either accept that, or find a better way to identify our developers. So what to do in this very situation? Should you revoke your signature from my key (or not even sign it in the first place)? Should you revoke or refuse signatures to all participants, because some claim the keysigning party to have been subverted? I think the answer to both cases should be: no, unless you have not previously known the person whose key you wish to sign. That's exactly what makes this decision very subjective, and a public call such as the original post rather unnecessary and missing the point.
If you do not care to read the entire thread, here are some of the better replies (in no particular order): One question that arouse while reading this thread is whether Debian could actually persecute one of its members for computer fraud/sabotage/whatever on an international level. And if so, would the real identity really help that much, given that we'll have countless IP addresses to go by? I know it would make things easier (despite it being only a name, no identity, as there is not birthplace or birthdate), but is it worth the hassle?

27 May 2006

Aigars Mahinovs: Debconf6 day 6: Main group photo

May 19th. Fallback from the dinner and Ted's expulsion hanged over the morning of this day, but by the lunchtime it was mostly forgotten and people moved on to more interesting topics. ... for example, Sponge Bob! I mean I18N, of course. A big discussion about the future of Debian's I18N infrastructure was the highliht of the morning for me as I expected to later become the mentor of the respective Google SoC project. In some ways need of Debian translators are simple and very similar to the need of all other translators worldwide, but other need are quite different. Coordination with Wordforge to detect both those subgroups of our need was one hot topic, need that are related to OLPC use was another. People went on hacking, but I went towards the pool to plan forward towards the group photos. I needed to check the angles and lighting levels, test the lenses and settings. When 18:00 (the time of the main group photo) approached, clouds covered the sky and it went dark. At 17:58 it started raining. At the last moment Mark took a jump from the 10m tower. He later reflected that the decision was between jumping or remaining the highest point around while the air crackled of ever increasing electricity. People slowly gathered under the roof nearby and waited as told. After around ten minutes most people were gathered and the rain stopped. People ran out into the field and I ran up the diving tower to my selected photography place 10 meters up from the ground. I took a bunch of pictures, more people came, I took some more pictures, others came, I screamed to people to say "Tequilaaaaa" and took loads of pictures. The group photo was done. After that we had a quick and painless keysigning party (only two hours is quick). The trust network grew again. After that there was a lot of dancing on the veranda of the hacklab. It was very cool thing to watch, but gave not so good pictures because of speed and low light. Those two dancing instructors were just great! With this number of DD's we have an expert in anything - dancing, photography, security, religion, patents, biking, ... ... We share their knowledge and we all become better. Inspiring. One minute after midnight around 30 people sneaked into the room of sleeping Andreas and started to sing "happy birthday" ... because it was. Andreas looked very surprised. Very sweet idea. Cudos to the organizers. However it would be nice to turn on the light so that flashes of the 20 cameras would be less blinding. ;)

Aigars Mahinovs: Debconf6 day 5: Formal dinner.

May 18th. The fifth day of Debconf6 started for me with a very detailed overview of the debian installer. I have already been quite familiar with the system, but did not really know how to debug the debian-installer system, which was a good part of today's presentation. Many were still tired from yesterday's evening's "testing" of international hard liquors. (Or the pancake party?) At the lunch I discovered on my own skin how hard it was to announce something in the restaurant where we were having food - the room had very high ceiling with high an thick separation beams, so the acoustics of the place were just terrible. I had almost enough volume to fill the room, but after many reflections it was incomprehensible. I had to revert to walking around the tables to remind people about the group photo next day and about the place to meet for today's formal dinner. The rest of the day flew by fast and it was soon time for the dinner itself. People slowly gathered at a parking lot behind the hotels and idly chatted while waiting for the boarding call. After a while people stopped minding me and that resulted in several good portraits. We boarded the bus and went to the place of the formal dinner. The place was a large hall where local volunteers had placed the tables in the form of a swirl. That was a very nice touch. People wondered round and round 'till they choose a place they liked. AJ sat at the very inner end of the swirl and I somehow got to sit at his right hand. Not that it matters. At one moment some person took a crown of Ted's head and rushed to put it on AJ's had. Many photos were taken at that moment (most of them very blurry), but I feel this one to be a bit of an irony: CLUE hanging over Ted, but he doesn't quite get it. But enough about him - there was enough fun at the dinner to satisfy anyone. After a while of nice chatting time food started to appear. First the glasses came, then there were the huge 3l bottles of Cola. I managed to avoid the Mexican version of Cola before that, but now when I tried it Mexican Cola tasted very much like the Estonian version and slightly different from UK's or USA's versions. I guess the sugar type used and the water might be of the difference. Few attempts at simulating a spiral "Mexican" wave along the tables were conducted. Only when AJ personally controlled every part of the way by running along the length of the table, the wave succeeded. :) A Mexican band came in to lighten up the mood. They were met with a huge wave of applause and a burst of flashlights. The music was great - lively and exciting. Spanish speaking people knew most of the songs and sang along. But after a short while the music was started to being drowned out by the sound of a rain hitting the roof. Soon after the food was served I heard scream of surprise with a hint of fear. When I turned, I saw that one of the wall of the hall strangely turned into a waterfall - gush of water was streaming from the roof into the building. People looked at the water, took a bunch of pictures, made a few water related jokes, picked their bags up from the floor and ... continued with the fun. I must say that I was slightly scared, but although others might have been scared as well, most did not show it and the event just went on with a half of the hall having a couple centimeters of water. Water also dripped down on some parts of the tables, so people shifted from there to other places. Meanwhile, outside the rain became stronger, wind became faster, thunder became louder and came closer. The climax of the evening was the sudden loss of power. I was jsut standing on the stage when all the lights inside and outside went out at once. For a moment there was a bit of confusion and the evening became slightly scary in a single instant. Then people took out their mobile phones, PDA's and other devices and lighted the place up with the light from their screens. Some others had handlights, and others made slightly more light for a shorter moments by taking flash photographs, for example, of the ceiling. In a few minutes the emergency light went up and after 15 more minutes the main lamps started coming back on. For most people that was enough excitement for the night, so when the rain calmed down and Gunnar announced that first buses are ready go back to the hotel if some people want that, two buses were overfilled with people wanting to get back. Some stayed. More fresh food was cooked then, including some cooked cactus leaves and some grilled meat after which a desert followed with a rollcake that included a swirl of some red jam. Very Debianish :) After a quick local-optimal packing session the hall was left almost empty in a few minutes. The packing algorithm was interesting - one person was collecting all forks, other person was collecting all spoons, other people were only folding tables, while others were handling chairs. The work division was very effective and allowed people to share the work without any kind of central coordination. And we went back .. to work. On the way to the hotel I noticed pixie sitting in the walkway in a very careful was - it turns out she got one of the kittens to trust her and was holding it in her lap. It was sooooo cute. Kawai! Ted: Many questions were raised about Ted, the "fight" at the formal dinner and the following expulsion of Ted from the event and from the Debian project. An I have a unique perspective on that as I was sharing a room with Ted and talked to him and his friend John after the dinner, but before the expulsion notice. I barely noticed the, now widely speculated about, events at the dinner itself. I noticed that at one point in time the lump of people around the door became a bit bigger and that Ted and John were in the middle of it. I heard no screaming and saw no struggle or fighting and did not see anything strange regarding Ted except this and the other event described higher above. Ted was siting by his table with a woman that I for some time believed to be his wife because of the very caring way he was handling her. After considering that he was from Canada, I assumed (with a though of the twisted humor) that she might then be his Mexican lover (either paid or not), but I did not care enough to find out about it or to raise any conflict about it. I remember thinking that it would sound quite funny in context of his latest blog post about killing of prostitutes which might also be the reason why people where very ready to believe the joke that one of Ted's companions said of the woman being paid to come here with Ted "or maybe not". After the event I wane to sleep to be awaken around 5 in the morning by a discussion going on in my room about the dinner. I went into the discussion slightly irritated with a simple argument - inviting people to a party without an explicit permission of the organizer is a bad thing to do. That point sank in quickly and Ted soon was ready to apologize for that. After that a discussion about individual people and motivations went on for another hour. Ted's action were deeply rooted in the confusion of terms with "bravery" and "cowardice" versus "aggression" and "non-confrontational behavior". Ted's motivation was clearly based on avoiding anything that could be considered to be cowardly and putting emphasis on brave actions, however the most of the rest of Debian project is much more in line with the modern world and prefers non-confrontational behavior to any action causing trouble. Most of the time such behavior is essential for comfortable survival of any geek living in non-geek environment. The difference in values between Ted and the rest of our project was just too immense. When I was walking out of the room at around 7 in the morning next day my final sentence was "Ted, even if you spend rest of the Debconf apologizing and making friends, I do not see a future for you in this project." and the most important was that Ted and John seemed to agree with me on that. I soon found out that DAM's agreed with me too and took action just when I was talking to Ted expelling him from the project. He was also advised to leave the Debconf to avoid any further confrontation. It was harsh, but kind of expected for a long time. This event spoiled my mind for a few hours, but ... the Debconf must go on!

Arnaud Fontaine: Google's summer of code has begun

I was really glad to be accepted for Google Summer of Code. My (accepted) proposal was on DWTT (Distribution Wide Tracker Tool) and CRMI (Collaborative Repository of Meta-Informations about source packages) mentored by Raphaël Hertzog. I have worked a bit on DWTT today and have written a webpage on the Debian wiki about the project. I'm currently pondering which is the best python framework to use : Having recently used ZODB (this means Zope Object DataBase) in a project, I think it's a great object database because it's very tightly integrated with Python, which makes it easy to use for programmers. ZODB is python-specific though, whereas SQLObject backends (for MySQL and Postgres) makes it language-independent. In the next weeks i will work on DWTT design. Until june 16, I have a lot of school work, which is why I won't have enough free time to work on the project, hence a slowdown in the project.

Erich Schubert: Next generation of office suites

I have the impression that OpenOffice is still busy with cleaning up the code inherited (and e.g. porting to GTK2 and such things). Given the screenshots posted in the much respected Office UI blog by Jensen Harris, I think OpenOffice will run into trouble when Microsoft actually releases their new Office. Microsoft seems to have a really neat and productive UI there - there is only one thing really wrong with it: it's completely different than anything else people are used to (and people have learned to use). While there will obviously be migration issues, companies will probably delay switching to the new office to save licensing costs and such things, marketing people will be all crazy about the new features in there. You might remember the research with the aggressive title "PowerPoint makes you stupid"... actually this will become even more true with the new Office, I fear. It comes with default styles for common diagrams used in presentations, like a flow sequence or a circle sequence. While these aren't particularly smart things, they'll be presented even more prominently (because the gfx is so great), and the actual contents will probably be pushed back even further... Anyway, these new styles look really hip, so people will be eager to use them. And use them. And use them again. And use them really big (eventually forgetting about the contents behind them)... and OpenOffice can't keep up with that so far. Maybe OpenOffice needs a huge scale UI contest. Maybe with some abstraction scheme to be able to run different UIs on the same engine. OpenOffice in particular should try to become a technology leader, and not just try to copy Microsoft as much as possible... the UI changes in Impress are said to be pretty similar to what people expected when they think PowerPoint. There are good reasons to stick with the established UI standards (even when that might mean 'cloning' the UI) since that keeps migration costs low. But I think it's a pity OpenOffice can't show many large technological improvements to put more pressure on Microsoft. Ah, and yes, I guess many people at OOo are well aware of that, and like so many projects (commercial ones probably even more than FLOSS) they're just short on development resources...

26 May 2006

David Pashley: Makes you look big *and* clever

To the anonymous Texan that thought it would be a good idea to point out a Perl module in response to my date parsing class in Java: I'm well aware of date parsing modules in other languages. In fact I've used them for similar tasks. But the post wasn't asking "How do I parse dates in Perl?" It was giving some code that some people might find useful. Commenting with "man Date::Parse" doesn't make you look clever; it just makes you look like a twat and the kind of person people are relucant to invite to parties. You may be a geek and you may know stuff, but that doesn't mean you have to try to look clever, because you will invariably fail. </rant> Oh and Erich, I've got some more date formats I want to add support for, so I'll add german dates and post the updated code. :)

Carlos Parra Camargo: I mean Planet Debian

Ok, the order matters in this case, you are right Brett, i mean Planet Debian. This morning a lot of my old posts have been in Planet Debian, now seems to be fixed. Ouch, I've just realized that i need a hackergotchi :D

Kenshi Muto: My ARM machine is down

At least since a few days ago, my ARM buildd for experimental/unstable non-free/volatile/etch-secure/d-i went broken (ARGH!). Dpkg always caused a segmentation fault and I couldn't find any meaningful messages from the system. After I rebooted the machine, it won't reply anything... I'll try to connect a monitor and to solve the problem on this weekend.

Steve Kemp: See if you can spot this one?

Xen-tools now correctly installs CentOS4 installations, complete with OpenSSH access. I’ve not fiddled around with rpmstrap enough to cache intelligently, but otherwise it works. (What this means is that each new installation re-fetches each .rpm package from the network, rather than caching them locally.) This new work does bring my “design decision” into focus though. Originally xen-create-image was a simple system which did two things:
  1. Install a clean version of sid/sarge/etch using debootstrap.
  2. Run a series of shell scripts aftwarwards to customize the new environment install networking, and install openssh. The “hook scripts”.
Hooks were implemented as a directory of shell scripts run in order, much like you’d expect from run-parts. Simple? Neat? Yes. And no. Because each script was based around the idea of tweaking Debian they had a lot of Debian-specific knowlege in them, and so they didn’t do the right thing for CentOS4. There are two (or more!) solutions to this problem:
  1. Have per-distribution hooks: hook.d/debian, hook.d/centos4, etc.
  2. Have each script decide which environment it has and do the right thing.
The first has the advantage that it is simple to understand and adding additional distributions becomes simpler to approach. The second avoids proliferation, and seems neater to me. Anyway the decision is made for the moment to use this approach. I could be swayed the other direction when it comes to time to setup SuSE, Mandriva, etc. However in all honesty I don’t actually expect to do that work myself. If you need those distros you can help, capishe? Now to backport rpmstrap to Sarge, and make a new release…

25 May 2006

Wouter Verhelst: Edge flipping.

So, in my previous blog post, I mentioned that Enlightenment, bug-ridden as it is, is the only application I've seen thus far that implements edge flipping the right way. Since it's been a long time since I last used the only windowmanager that actually implements it the right way, I've been able to give it quite some thought by now. Here's my take at it: The central thing to remember is that the edge flipping interface will trigger accidentally. No matter how well you implement your interface, sometimes a user will accidentally move his or her mouse, or he/she will want to click somethin near the edge of the screen and touch it. Therefore, there are two things an implementer should do:
  1. Make every effort to avoid accidental edge flipping where possible, and
  2. Make it as easy as possible for the user to correct an accidental triggering of the interface.
The best way is to make sure your interface has the following characteristics: Getting the above two right will ensure that accidental edge flipping is reduced to a minimum. This is the first step, and one that only Enlightenment and IceWM got right. The final step, however, is something that IceWM does not get right; and this is what makes Enlightenment's edge flipping implementation such a natural thing to do: Some people will find that last point evil, I'm sure. I'll admit it took me a while to get accustomed to it as well. But it's the only natural thing to do. You should think of your virtual workspaces as one large desktop; if you're using four workspaces next to eachother, that means one large desktop four workspaces wide. When you move the mouse one quarter to the left, it's normal that it ends up about the same place on that same desktop. In other words, warp the mouse. Additionally, the mouse warping will have the effect that it makes recovery from accidental edge flipping easy and fast. If the mouse stays where it was after edge flipping (as in the case of brightside and IceWM), then if I accidentally hit my mouse, by the time I've moved my arm towards the mouse and started moving it back, I've moved away three workspaces from where I was already (because of the second bullet point in this post). If, however, the mouse does warp to the opposite side of the screen (i.e., the side where it was coming from), then going back to where you were is just a matter of moving the mouse a few millimeters in the opposite direction. Very easy to accomplish, that... Oh, and finally, you also shouldn't segfault at random. Again something that brightside did not get right when I used it—did I mention that brightside is crap? Well, I did now. Hopefully it's changed for the better in the mean time. Back in my Enlightenment days, I used workspaces a lot, because Enlightenment made it so natural with its excellent edge flipping implementation, and with the help of the pagers which would always, at any time, give me a snapshot of all my workspaces, helping me to remember where this or that application was running. IceWM doesn't replace that, but it sure gets close.

Next.

Previous.