Search Results: "agi"

19 May 2006

Uwe Hermann: OS Install Experiences - Part 1: Debian stable + unstable [Update]

Debian Open Use Logo
Note: This article is part of my OS Install Experiences series.
OK, so let's start with something simple: Debian. Simple in the sense that there probably won't be too many surprises for me as a Debian developer (or for most readers of Planet Debian). For other people this might be interesting, though, and some facts are probably interesting to one or the other experienced Debian user/developer, too... Hardware A few words on the hardware I'll be installing all these OSes on. It's a cheapo (200 Euros) x86 PC (Intel Celeron, 2 GHz), 80 GB IDE hard drive, 256 MB RAM, ATI Radeon 9200 SE graphics adapter, Realtek PCI ethernet controller, CDROM, USB, and all the other standard stuff. Nothing fancy, really. Install
  1. First, I downloaded a Debian sarge 3.1r2 CD image, burned it on a CD, and booted from that.
  2. An installer menu showed up, where you can press F3 for boot options. I chose "expert26", which will ask me more questions and give me a 2.6 Linux kernel instead of 2.4.
  3. The installer (newt-based, i.e. not graphical) will now start to boot a base Linux system.
  4. Now, you can choose your language (used in the installer), country, region, and keyboard layout.
  5. You'll be asked which additional kernel modules you want to load (default: all), and whether you want PCMCIA support. Also, you can choose which extra installer components should be loaded (LVM, PPP, serial, IrDA, ...).
  6. Your hardware can be automatically detected (my Realtek card was successfully detected, the "8139too" kernel module was then loaded).
  7. The network was successfully auto-configured via DHCP within seconds.
  8. Now you can choose a hostname and domain name for the box. I used "hydra" as hostname (guess why), and "local.domain" as domain name.
Partitioning Now the funny part starts: partitioning the disk. As I will be installing >= 10 OSes, this needs a bit of consideration. I have chosen to create a 10 GB (primary) partition for a Redmond OS I'll be installing later (for games, testing, proprietary software I'm forced to use, and similar things). This will be the first partition and I marked it bootable, as Windows might choke otherwise. For the rest, I reserved 5 GB for each OS — that should do. So the next two (primary) partitions are 5 GB each. I'll leave these empty for now, as I might encounter obscure OSes which must be installed on primary partitions. Let's hope it won't be more than two ;-) As you can only have four primary partitions, I then had to create a logical partition, which will "contain" any further partitions. The next three (secondary) partitions are 1 GB each, intended to be used as swap. One of those I marked as swap in order to use it for Debian. Other Linux installations will be able to reuse this one. The other two are reserved in case I encounter OSes which have another form of swap and cannot use Linux swap partitions... The rest is easy: create twelve 5 GB partitions => lots of space for more OSes. Here's the resulting fdisk output:
Disk /dev/hda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
      Device Boot      Start         End      Blocks   Id  System
   /dev/hda1   *           1        1216     9767488+  83  Linux
   /dev/hda2            1217        1824     4883760   83  Linux
   /dev/hda3            1825        2432     4883760   83  Linux
   /dev/hda4            2433        9964    60500790    5  Extended
   /dev/hda5            2433        2554      979933+  82  Linux swap / Solaris
   /dev/hda6            2555        2676      979933+  83  Linux
   /dev/hda7            2677        2798      979933+  83  Linux
   /dev/hda8            2799        3406     4883728+  83  Linux
   /dev/hda9            3407        4014     4883728+  83  Linux
   /dev/hda10           4015        4622     4883728+  83  Linux
   /dev/hda11           4623        5230     4883728+  83  Linux
   /dev/hda12           5231        5838     4883728+  83  Linux
   /dev/hda13           5839        6446     4883728+  83  Linux
   /dev/hda14           6447        7054     4883728+  83  Linux
   /dev/hda15           7055        7662     4883728+  83  Linux
   /dev/hda16           7663        8270     4883728+  83  Linux
   /dev/hda17           8271        8878     4883728+  83  Linux
   /dev/hda18           8879        9486     4883728+  83  Linux
   /dev/hda19           9487        9964     3839503+  83  Linux
Install, continued
  1. The Debian partitioning tool allowed me to do all of the above via a friendly menu. As it does not modify the partition table until you say "done", I could revert many changes, and play around with different layout ideas until I was satisfied.
  2. Next thing you can choose is the Kernel flavor (386, 686, smp).
  3. You may now configure and install GRUB, the bootloader. I installed it at "(hd0)", the master boot record of the hard disk.
  4. Soon the CD ejects, and you have to reboot.
  5. After a restart (which also shows whether GRUB works fine), you can now choose your timezone, and decide whether you want shadow passwords (say yes!).
  6. Now enter the root password, and decide whether you want to create an additional user account (say yes, and enter a different password here).
  7. You can now configure apt, e.g. tell it which sources you'd like to use (CDROM, FTP, HTTP, ...). You'll be asked whether you want to install software from Debian's "non-free" archive. After choosing a mirror (and proxy settings, if you like), you can (should!) also say yes to the question whether you want security updates...
  8. Finally, you may now choose "tasks" (desktop, web server, file server, ...) your machine should be able to perform; this will influence which packages will be installed. You may choose "manual package selection", of course, if you want more control. I used "desktop".
  9. That's about it. You'll see a few more application-specific questions (configuration of MTA, ssh, fonts, X11, gdm, and others), and after that you'll be left with a GNOME login window.
Security I collected some (partly) security-relevant information after that. Ok, so that's it for Debian stable. Unstable is 99% the same, except that you do a "vi /etc/apt/sources.list; apt-get update; apt-get dist-upgrade". I'll do that later maybe, compare the findings, and report notable differences here, but it shouldn't be too many (I guess). Not today, though, I need some sleep now. Comments, suggestions, flames? Update 2006-05-19: Updated "why is Debian-exim capitalized?" info as per comments, thanks!

18 May 2006

Christian Perrier: Going to Bhutan

After a lot of discussions and mail exchanges with my contact there, it finally happens that I will indeed go to Bhutan at the end of the month. This trip is the consequence of an invitation received from the translator working on D-I translations in Dzongkha (the language of Bhutan). It happens that the Information Technology Institue of Bhutan is working on a local Linux distribution, named "Dzongkha Linux", which will be based on Debian. So, on June 2nd, will be the official launch event of that project, with most Bhutan officials attending, including the Prime Minister. I've then be invited there to give a keynote lecture about Free Software in general and more specifically the Debian Project, of course. One can imagine how a big honor it can be, both for me and Debian, actually. I hope I'll can sustain it and will give to Debian the representation it deserves.

Jeff Bailey: Savage Love

Dan Savage writes in his column this week,


The American Taliban doesn't think married heterosexual couples should be able to use birth control. If you care about your own freedom - not just your right to have premarital sex, but your right to decide whether, when, and how many children you're going to have you need to read "The War On Contraception."


I have trouble imagining what people are thinking. A world where couples don't have sex? Can you imagine how much fighting there would be?

Okay, okay, so that's not the point. But with articles like Chicago economist links abortion to falling crime rates, it's incredibly distressing to see another attempt at taking away freedoms. While things like birth control and abortion are not in immediate risk here in Canada, it's hard to predict how long it would take for our our current Conservative leadership to start entertaining those thoughts.

I'm all for a principled discussion on sex and sexuality. But why don't people ever consider the concept that providing more tools to people is better than providing fewer?

John Goerzen: Why I Like HP

I've been managing servers professionally for some years now. Support is one of the most important things when you are managing computers for work. You don't need support to help you out with a printing problem or an e-mail problem. You need support because every minute the machine fails to power up, your company may lose twice the value of the entire machine. Or even more.

My first day job managing servers involved Dell hardware. What a nightmare. I've never had a good experience with Dell support, ever.

First off, Dell support never puts me straight through to an intelligent support rep. I don't care whether I get to the Indian call center or someone in Texas. The first support person I speak to at Dell has less computer aptitude than my grandmother. One conversation I will always remember went like this:


Me: We have a disk in our array that went bad on our Linux server. The red light on the disk itself is on. Please send us a replacement.

Dell: Have you tried rebooting?

Me: No. This is a production server. The reason the disks are redundant is so I don't HAVE to. Besides, the light ON THE MACHINE ITSELF is on.

Dell: Ah, OK. Have you run scandisk?

Me: No. This is a Linux server, as I told you, and scandisk wouldn't see a problem anyway since this disk is in an array and the array is still up.

Dell: OK, great. How about you download the diagnostics .exe from our website...

Me: Can't. We don't have Windows on this machine. You did say you support Linux when we bought it.

Dell: Ah. Can you right-click on My Computer...

Me: NO. This runs Linux, and the BAD DISK LIGHT ON THE MACHINE IS ON.

Dell: Ah, OK. I wonder if the problem really is that you have a bad disk.

Me: Could be!


Our first HP server purchase happened to be at a time when HP had undercut Dell by several thousand dollars. I liked the hardware, but it wasn't anything that much more special than Dell.

But what I really like is the support. I haven't had to call HP support often, but when I do, I am almost always speaking to a live, experienced person within 5 minutes.

With only one exception, all the HP support people I've talked to have been very experienced. They all sound like they've been working with HP hardware since the late punched card era. They know what is going on and assume that I do too. The HP people don't make small talk (it *really* ticks me off when someone obviously in Calcutta or something asks me about the weather in Kansas, because you *know* they are reading it off a screen and don't care). But that's fine. I'm not calling them to talk about the weather, I'm calling them because my server is down.

We had a bad disk in an array on a HP server once. That conversation went more like this.


HP: Server support. Serial number please?

Me: [gives it to them]

HP: OK. What's the problem?

Me: The array dropped a disk. The failed disk light is on and the controller logged a disk error.

HP: OK. That's a 146GB SCSI, right? 15KRPM or 10K?

Me: 15K.

HP: OK. Is 1PM tomorrow good to send out the replacement?

Me: Fine.

HP: OK, your case number is xxxxx. Can you give us directions to your location?

Me: Sure...


So recently we got in our MSL4048 tape library. A very nice unit. And faster than most *disks*. 48 Ultrium3 tapes -- 400GB native each -- very nice. And a barcode reader built in.

So anyway, one small problem. When you open up a magazine to put tapes in, you can close the unit back up. It says "scanning", but it doesn't notice that we've changed tapes until we give it a command on the operator panel (yes, this tape drive has a LCD screen built in). This can be worked around, but is annoying and is just waiting to cause confusion. Plus it's not how it should work.

So I call HP support yesterday.

Turns out this MSL4048 is a brand-new unit. Had only been on the market a few weeks. Our support rep has never seen one or taken calls about one, and they haven't even given him all the HP technical docs yet. But no matter, he is willing to try to help us out.

He calls me back twice yesterday with tips and questions after speaking to colleagues. He asks intelligent questions, doesn't bother with the "are you sure you're putting the tapes in the right way around" or the "is the power cord securely plugged in" crap, and generally doesn't waste my time. He called me back about four times more today -- they duplicated our setup in their lab, right down to the exact firmware version, but didn't have the problem. Two of those callbacks were apologizing for taking so long, and explaining that they were learning about this machine as they went along. So a HP rep will be out to our location shortly.

Now THAT'S what I call service. No blaming it on someone else, no trying to make me do stupid troubleshooting things, and returning calls.

My *one* bad experience with HP was one time we put a new internal tape drive in the machine, and it was acting flaky. I got the only not-very-experienced HP rep I ever had spoken to that time, and they tried to blame Debian for what turned out to be a bad SCSI cable. (The symptoms weren't very similar to what I'd expect for a bad SCSI cable, and the cable had been working fine.) Oh HP, you donate to Debian -- why don't you support your hardware under it?

(In fairness, that is the ONLY time they have flinched when I said I run Debian, though it does make them hesitate sometimes)

Eric Warmenhoven: Cingular sucks.

Lisa has been thinking for a short while that she’d like to get a Motorola RAZR phone. We were AT&T Wireless customers, which now makes us a weird type of Cingular customer where we not only have our AT&T plan, but also special AT&T customer service representatives (which I’ll get to in a bit). So we went into our local Cingular store and she asked about getting the shiny new black RAZR, and they said that it wouldn’t be a problem, they’d just need to upgrade our service, and since we’re on the same plan and the service is changing, I’d need to upgrade my phone as well. AT&T Wireless has a email-to-SMS gateway and gives every phone its own email address, yournumber@mmode.com. Since AT&TWS only charges if you send a message but not if you receive a message, I use it all the time (mostly for stock quotes but also for various other things). So in an average month I probably receive 30-50 emails on my phone, as well as the occasional spam, all of them free. Cingular has the same service, yournumber@cingularme.com. But unlike AT&TWS, Cingular charges you both for sending and receiving messages. (”Text, Instant, and Multimedia messages are charged when sent or received, whether read or unread, solicited or unsolicited.”) So my 30-50 messages a month are going to cost me $3.00-$5.00 a month. Of course, I could always get a package, which will limit those 50 messages to just $3.00. Or I could get a $20 package that lets me receive 2500 messages. That’s not the point. The point is that once that limit is hit, it goes back to $0.10 per message, regardless of the plan. That means that some evil person can send you thousands of messages and you could end up owing hundreds of dollars. The only way to prevent that is to call Cingular and turn off the E-Mail Messaging feature from your service. (You can use the Message Center to “Create block and allow lists to limit e-mail messages received” and “Control what times of day your phone can receive e-mail messages.” Also it looks like you can block email containing some spam attributes. But none of those things guarantee that you’re not going to get a bunch of junk.) I tried calling Cingular to confirm this, and when I entered my phone number, it redirected me to AT&TWS customer service, who confirmed that AT&TWS does not charge for receiving text messages, and confirmed that Cingular does charge for receiving messages, but did not have an answer for how Cingular deals with spam. In fact, they didn’t seem to have a lot of information about the Cingular service at all, other than how to “upgrade” my account to a Cingular account. I had to call Cingular sales, who also didn’t know the answer to how to prevent abuse; but they were able to transfer me to Cingular customer service, who confirmed that yes, I really do have the potential to get screwed if I don’t turn off E-Mail Messaging.

17 May 2006

Matt Brown: Playing With ZoomIn

I signed up for a ZoomIn API Key (not that it seems to be needed atm…) the other week and finally got a chance to have a play this past weekend. My test case was to build a map of all the CRCnet sites and the links between them to use as a plugin in the CRCnet Configuration System. Either as a dynamic status display (colouring links to show traffic loads and status etc) or as a network planning tool to get a feel for the relationship between existing sites and potential new locations. Obviously the lack of topographical information makes the second case far less useful than it could be, but I think even in 2D it would still be a useful tool. Getting the points onto the map was relatively straightforward, but adding any sort of hover event to them was another matter. The GEvent class currently only supports the click event and markers are not added with any other identifying attributes (such as an ID or Name) which could be used to hook an event into them. After a quick squiz at the Terms and Conditions, I grabbed a copy of the API javascript and after unobfuscating it (basically just adding back in line breaks and running in through indent(1)) started to have a squiz at what was happening. The API code is very nice and clean and it wasn’t at all hard to work out what was going on. Mozilla’s Venkman javascript debugger absolutely rocks for this sort of work. It allows you to step through all the scripts on the page line by line and quickly get a feel for the flow of the code. Adding support for the hover (onmouseover) event doesn’t look like it would be too hard, but the T&C didn’t explicitly mention whether I was allowed to actually modify the API code, so I choose to simply create a CRCnetMarker class (see below) that creates GMarker object and then pokes id attributes onto the internal objects of that class before returning it. Then once you’ve called addOverlay you can use the basic DOM functions to hook in an onmouseover event handler on the ID of the marker.
var CRCnetMarker = function (sitename, point, icon)
 
    var marker = new GMarker(point, icon);
    marker.icon.id = "crcnet_container_" + sitename;
    marker.icon.firstChild.id = "crcnet_icon_" + sitename;
    marker.addEventListener = function (eventname, handler)  
         b = document.getElementById(marker.icon.firstChild.id);
         b.addEventListener(eventname, handler, false);
     
     return marker;
 
var marker = new CRCnetMarker(new GPoint(2704685.21,6367057.51), "mph");
map.addOverlay(marker);
marker.addEventListener('mouseover', hoverHandler);
That worked like a charm and I now have nice little info boxes popping up next to each node when you hover over them. I also discovered in the process of implementing this that Prototype and ZoomIn do not play nicely together. It appears to be Prototype’s fault as it messes with the Array type by adding new methods (like each for enumeration) which break the builtin for (i in array) syntax when the array contains non-numeric keys (like each). This has been reported in the prototype bug tracker as breaking Yahoo Maps but the comments don’t seem to offer much hope for Prototype’s behaviour changing anytime soon which is a pity. The next roadblock was a lack of support for drawing lines! This put the kibosh on the whole animated network status idea. Trolling through the source again reveals a GPolyLine class that appears to be semi-implemented, so hopefully support for drawing lines is coming very soon. The only other thing I found slightly annoying was having to supply all the co-ordinates in NZGD49 format. Most of our GPS information for CRCnet is stored in WGS84 format (as that’s what our older GPS unit puts out). NZGD49 has been deprecated in favour of NZGD2000 (which is near enough to identical to WGS84 for normal use) so I’m not really sure why ZoomIn is still using NZGD49. Maybe that’s all TerraLink can supply? Some quick googling turned up the proj library (apt-get install proj in Debian) which provides the cs2cs utility which can convert from WGS84 (aka NZGD2000) to NZGD49 to feed to ZoomIn. The magic peice of information is the transformation parameters which LINZ helpfully provide. Punching those (I chose the 7 parameter version) into cs2cs via a command line like

echo "$lat $long" /usr/bin/cs2cs +proj=latlong +datum=WGS84 +ellps=WGS84 +towgs84=0,0,0 +nodefs +to +proj=nzmg +datum=nzgd49 +ellps=intl +towgs84=59.47,-5.04,187.44,-0.47,0.10,-1.024,-4.5993 awk ' print $1" "$2 '

performs the magic conversion. The conclusion?
Overall I think ZoomIn rocks and it’s really cool to see a small NZ company filling in where Google and friends have failed miserably. The biggest weakness at the moment is definitely the API, which doesn’t really allow you to do much more than add points at this stage. Given that ZoomIn is still relatively young the leanness off the API is understandable. Given the API a few more months to mature and fill out and I think we’ll be able to create some really cool applications on top of the ZoomIn platform. Screenshot:

16 May 2006

Benjamin Seidenberg: Hello, World!

So, thanks to Wouter Verhelst, I am now syndicated on Planet Debian, a site that aggregates the blogs of various people involved in Debian. To those who don’t know me yet, I am an 18 year old high school student (for a couple more weeks anyway) in the United States. I go by ‘astronut’ on IRC, and have completed my part of NM and am now patiently waiting for FD/DAM approval. I maintain easyh10 (manages the databases on the iRiver H10 music player), dav-text (simple ncurses based text editor), graphmonkey (a somewhat pointless graphing calculator that somehow has at least a few users according to popcon) and recently adopted pork (console AIM client). I also am an active member on the Debian Cyrus Packaging team (Cyrus is a pop/imap/nntp server). Comments are currently enabled, but moderated on the blog. I may have to go to some kind of turing test based system if planet opens me up to a flood of spam. So… Hello, to the word of Debian!

Barry Hawkins: A bit chilly in a hot place; a distributable Java JRE and JDK arrives

So it’s finally OK to mention it now; Java has made it explicitly possible (read legal) to distribute the Sun Java JRE/JDK on a GNU/Linux distrubtion. The new license is for Java SE 5 on Linux only, called the Operating System Distribution License for Java, or DLJ for short. You can read the license in text or pdf form. The FAQ for the DLJ is also available in text and pdf. Heck, go through the README for the JRE and JDK while you’re at it. So what does that mean? Well, GNU/Linux distrubtions like Debian can now package a Java runtime environment or Java development kit in their repositories. That was previously not possible due to restrictions present in Java licensing. Users still have to accept the Java SE 5 binary code license that is totally not free and has the same restrictions Java has always had, but this at least makes packaging and supporting Java less painful for distributions. Sun is coordinating the efforts via a java.net project, jdk-distros. This is an unprecedented level of cooperation from Sun with external parties in anything related to Java. I consider myself fortunate to have been a founding member of the project. It has been a pleasant and refreshing experience to meet a few optimistic and forward-thinking people from Sun who have a keen interest in Free Software; a big thanks to Simon Phipps and Tom Marble. I was encouraged that they allowed our contributions to be covered under the MIT license. If you would have told me that a month ago I would have laughed at you. The Debian announcment should be posted on the debian-devel-announce list today. I am sure this will draw both praise and ire from the Debian community. That’s cool, though; the rich diversity is part of what makes it such a vibrant organism.

15 May 2006

Christian Perrier: Debconf - day 1

So, day 1 started when I felt asleep in the plane, at some randome place over the ocean near Galicia. We actually had a good sleep as the other place people weren't noisy even though the plane was packed. Woke up at 03:00 (MEX time). After a few listening music, I found myself using the free time to read the huge Report of Findings about Gender in F/LOSS recently mentioned in the Debian-Women mailing list. This is a very deeply interesting document which is a quite complete picture about the "Women in F/LOSS" topic. The people interested in the Debian Women project should definitely have a look at it. We finally landed easily at 06:30 local time. No problem going thru the customs, even though 3 of us were carrying more cheese than needed to be considered a terrorist group trying to invade Mexico. Cab drive to Oaxteprc went fine. The scenery is quite impressive and the pass at 3100m on the highway is....a bit strange for all of us. When arriving the Oaxtepec center we soon met with Enrico who helped us to discover the place, which is good as is is BIG... Found my room, with Damog and Ana sleeping in it (sleeping drunk as I was told later...:-))). So, I gently left my luggage there and we moved to have some breakfast at the market. I ate some really good tasting stuff which names I've no idea of, but thanks to Magic Enrico and his incredible abilities to catch any language in the world, we managed to do it. Back to the Tower for the Introductory talk...it was hard to be there in time with all these people crossing my path and who I need to say "hi" and babble with again. Later in the afternoon, after lunch, I felt more and more tired, so I missed Enrico's talk (Enrico, apologies!) and just isolated self, listening to good old Hot Tuna stuff and working on my business mail (yeah, I know, it's Sunday). More energy retrieved helped to finish the afternoon by hanging around here and there, trying to set up two ad-hoc sessions aimed at gathering all people interested in i18n to have some brainstoriming about what we want for i18n infratructure and all similar topics. Finally, at the end of the day, I attended Meike's training session for speakers. Really interesting moment to share with Aigars Mahinovs, Neil Mc Govern (hope I got it right), Bruno (Barrera), Martin Krafft. OK, we all suck on some aspects of our presentation skills but we less suck now (I'm afraid I will still suck by talk unpreparation as you will all notice for the "State of the art of i18n" I share with Javier on Saturday). And, finally, yes, finally...bed at midnight. Not so bad to recover from jet lag. Now I'm ready for a full Debconf Day, full of energy. Be prepared to a lot of bubulle's babbling, dudes.

Sergio Talens-Oliag: ikiwiki

Since I first read that joeyh was going to write a wiki engine with a subversion back-end I thought it was a good idea and after the announce that it was going to be usable as a blogging system I was sure that it was going to be something worth looking at (and hopefully learn from). I have installed the Debian package, but I have not had the time to test it although I've put it on my TODO list, as I'd love to move my blog to use a system like the one ikiwiki uses; I have a lot of things under revision control and moving things like my blog seem a logical next step (probably moving all my home directory comes next, but I need some time to do it and I also need to decide if I will use a centralized or distributed control system or a mix of both). Anyway it has a couple of problems for me right now:
  • It uses MarkDown (looks like a good format, although it is too centred into HTML), but I usually use reStructuredText (all my blog entries are written on .rst files) as it is a good format for reusing text for different purposes and there are tools to generate output formats that cover all my current needs (HTML for web pages, LaTeX/PDF for printing and S5 for presentations).
  • It is written in perl. As a user that is not a problem, but I'm not a native speaker and to solve the previous problem I was thinking about adding an rst plug-in to the current code... I'll look at it and see how it can be done, maybe it is simpler than I imagine and it is just a matter of calling the rst2html script and I can do it while keeping my perl knowledge low... ;)
Well, I'll test the current system and to see if I have to fill a wishlist bug against ikiwiki asking for reStructuredText support.

14 May 2006

Pierre Habouzit: bugs['debian-qt-kde'] -= 200

Yeah, we did the past 10 days an extraordinary amazing job of triaging. almost 200 bugs that rot here since ages are now closed (hopefuly for good). Still a bit less than 1200 (non forwarded, non wontfix, non pending) bugs to triage, but still, it's a big step ! bts-link was of great help, to track bugs that were closed upstream since ages, and that we missed. Before, I rarely took the time to forward bugs upstream, because I though: what the heck, I won't have the courrage/time to follow its evolution upstream, and it will rot in the 1000 other bugs . bts-link put an end to that time.

Kenshi Muto: Triathlon in Debconf 6

Yeah, I arrived Mexico! Here is bit hot, but isn't so much than I imagined. Today, we, the party of 13:00-14:00 arrived members challenged the 'Debconf triathlon'. We took the subway method. Going up-down, up-down, up-down, ... the stairs with carrying heavy bag is really good exercise. I thank myself because I'd bought soft and light bag for this trip :)

Matthew Palmer: Curious Perversions in Software Engineering

I've been ill with flu the last few days, so I've been doing very little other than sitting huddled in my recliner, with a large, warm blanket over me, and my hot water bottle (AKA the laptop) to work on. As a result, I've been doing a fair amount of random coding, and I've come away with a larger-than-average amount of... weird shit. It maybe the flu, the strong drugs I've been taking to keep the symptoms under control, or maybe just the phase of the moon, but I haven't coded up this much madness in quite a while. Let me take you through them. The Proctologist I've been writing some software which has to talk to an XML-RPC server. Not so weird. However, because the system lacks any inherent security, the (strongly) preferred method of communicating with this server is via a Unix socket. That's right, I'm doing XML-RPC over HTTP over... a Unix socket. That, you may think, is weird. Well, it is, but it isn't the curious perversion in and of itself -- for a start, I didn't write that monster, and I'm only blowing my own trumpet in this article. No, the perversity is in how I wrote *my* software to deal with it. See, I'm using Ruby for this software, and the standard Ruby XML-RPC client uses the built-in Net::HTTP library that comes with Ruby (which is a killer little HTTP library, BTW). Because the authors of Net::HTTP were lacking in imagination (or crack pipes) they didn't think to include the native ability to talk to Unix sockets. I mean, really -- isn't that the most important feature in a HTTP library? I think we all know the answer to that. Anyway, despite the lack of forward planning (and crack pipes) on the part of the Net::HTTP authors, I needed to get it to talk to a Unix socket. I could have done the long-winded thing and spend a pile of time putting in handling of pipe:// (crack or otherwise) URLs, but then I would have also had to add support for it to the XML-RPC client library (which did URL validation before passing it on -- good for it). And really, I don't think I could have handled the guffaws of laughter when I attempted to submit the patch upstream. Instead, I put Ruby to it's perfectly-suited use. I simply created the XML-RPC client object (which created the Net::HTTP object internally), then inserted my gloved finger and replaced the default TCP socket object in the Net::HTTP object with a specially crafted Unix socket object pointing to the correct place. "Dear god almighty!" I hear the practitioners of good software engineering practice exclaim. "Doesn't Ruby have protection against such atrocities?" Why, yes, it does. All of the objects I had to play with are private instance variables of their parents, and I can't get access to them normally. However, classes in Ruby are never closed, so I just reopened them and added accessor methods (which, in Ruby, is as simple as attr_accessor :http) so I could do my nasty little thing. I'm quite happy to take the heat for doing what I did. It breaks encapsulation, and makes everything that little bit more complex. But, on the other hand, it let me get the job done -- the language gives you full protection until you say "may I?" and then it gets out of your way. Personally, I reckon that's a nice tradeoff between C-style full control (where even the best programmers blow their foot off on a regular basis) and B&D; languages where you'll never shoot yourself in the foot, but instead you'll gnaw your leg off in frustration. Russian Dolls I'm doing a bunch of interesting things with the Xen hypervisor for work. Of course, you need to have a way to test all this stuff, and despite a number of hints, work still hasn't gotten me that fully-kitted out dual-core Opteron that I want to test (and transcode all my video <grin>) on that I always wanted. So, instead I've installed Linux in a qemu image, and then put Xen on that. Surprisingly, it's worked really well -- I've got Xen running quite happily in the virtual machine, and I can create and run Xen domUs (the guest VMs) in the usual fashion. Now all I need to do is install UML in a Xen domU, and then run some vservers inside that UML, and I'll have the full collection...

Gustavo Noronha Silva: 13 May 2006

So, I just finished the first "working draft" of the TurboGears 0.9 packaging. I've uploaded a tarball with all the source and binary packages involved. They should work on unstable; please send comments and error reports to my email (look at the maintainer of the turbogears package). The packaging for TurboGears 0.8.9 is also available, and in need of comments and testing. I'm hoping to be able to upload turbogears 0.8.9 and the modules I packaged to unstable this week, and TG 0.9 to experimental. You can see many of the packages are already available in the python-modules team subversion repository.

12 May 2006

Erich Schubert: A bug in the UML 2.0 OCL spec?

I think I've found a bug in the UML 2.0 OCL spec. It's actually a well-known issue for C++, documented e.g. in the C++ FAQ. It's not so obvious in Java, since Java didn't have Templates for a long time. The UML 2.0 OCL spec says on page A-22, Definition A.27 (Type Hierarchy)
If t' ≤ t then Set(t') ≤ Set(t)
With ≤ having the meaning "conforms to" for types.
[Update: newer UML 2.0 OCL document, the latest I could find, page 38 still says the same] Any good C++ programmer should know that this doesn't work. From the C++ FAQ "Is a parking-lot-of-Car a kind-of parking-lot-of-Vehicle?":
"A Bag-of-Apple is not a kind-of Bag-of-Fruit." If a Bag-of-Apple could be passed as a Bag-of-Fruit, someone could put a Banana into the Bag, even though it is supposed to only contain Apples!
Note that the converse, Set(t) ≤ Set(t'), also doesn't hold. While you can put Apples into a Bag-of-Fruit just fine, you may still find a Banana in there. This has an obvious reason: when passing data to the object it can be "downcasted", and when retrieving data it can be "downcasted", too. But it can never be upcasted. This should occur in OCL, too. A "Set(Apple)" doesn't conform to "Set(Fruit)" by the usual interpretations that I can call "put(Banana)" on any "Set(Fruit)"! Can anyone enlight me, if this really is a bug in the OCL spec, maybe has already been corrected, or if there is some magic in OCLs definition of "conforms to" or interfaces that solves this problem? (Yes, I think there might be something in OCL that solves this problem, for example if this hierarchy is only used in condition checking, then in fact all operations are "get" operations... but I've just started reading on OCL, I don't know much about its expressiveness yet...) [Update: Onne Gorter has some good thoughts on this. He basically notes that this is not a problem if you don't have any references to the "uncasted" list. For example if the cast is a function like in a functional language that actually returns a new set. I'll have to consider this for OCL, but given that OCL and UML are somewhat designed for Java - and Java suffers from this problem, too - I'm not so sure about it.]

Uwe Hermann: OS Install Experiences - Introduction

Over the next few days or weeks I intend to install quite a bunch of free (as in beer) operating systems on one of my machines. This has several reasons and benefits: On the list I plan to install are most major (free) Unix-like operating systems, e.g. Debian, Ubuntu, Gentoo, Fedora Core, OpenSuSE, OpenBSD, FreeBSD, NetBSD, PC-BSD, OpenSolaris, and whatever else I can find out there. Basically, if I can download a CD image for free off the net, it's fine. I'll be writing one small blog article per OS, stating my experiences, gotchas, pros and cons I noticed etc. If you have any suggestions for OSes or distributions I should look at, or ideas about other aspects of the OSes I could compare, please leave a comment. [1] It has been pointed out that /usr/sbin/nologin or something similar is probably better than /bin/false, because it logs login attempts at these accounts (/bin/false doesn't).

Christian Perrier: Bad Windows admins more harmful than Windows

Erich, Windows is very often harmful but, moreover, bad Windows admins are even more harmful. What you reported is indeed a wrong setup for the Windows Automatic Update feature. This feature allows to automagically apply security updates to Windows machines (and everyone with a working brain certainly agree that this is mandatory and one should not rely on users for this). This is a very well documented feature and admins can set it up to avoid the behaviour you reported (allow users to delay automatic reboots or even never reboot). It just needs Windows admins to actually *read* documentation and understand it. *This* is where the Windows world sucks. Windows admins able to do this are a very rare resource. Update: and the location of nearly all stuff in Windows is known by the system, configurable and easy to access (well, registry...:-)...also system variables, though). Again, I know about 10% of Windows admin who really know how the location of the system files can be deduced safely. Bashing Windoze is certainly worth it but I really suggest doing it with the correct arguments and, indeed, when really knowing the system. In short, it's way better to really know what you're talking about. After all, I have very often heard that Unix systems suck because you never know where things are (/opt, /usr/local, /etc, /foo, /bar)...while we both know that only bad Unix systems administered by bad Unix admins suck this way...

Ben Hutchings: Slumming it

The magic switch for the Debconf wireless network is sharing its socket with a TV. When the TV is plugged in or unplugged, sometimes the switch's plug comes loose, and the whole wireless network goes down. Our Internet connection is dependent on an antenna on the roof of the local Internet caf that sometimes comes down in high wind, and which has a flaky power connection. And now the route from the airport is blocked too. (Maybe not any more.. we don't know.) On a more personal note, my laptop's power cable is now held together with insulating tape.

10 May 2006

Norbert Tretkowski: Daytrip to Teotihuacan

Today a small group of Debian developers (including me) went out for a daytrip to Teotihuacan. There are two Pyramides, the Pyramid of the Sun, and the Pyramid of the Moon. It was really nice, we had a lot of fun, and I took a lot of pictures of the Pyramids, the Street of the Dead, and geeky Debian developers. Thanks again to agi for organizing this great trip.

Jesus Climent: Permission to complain

On friday the 5th I started my trip to MX. I am assisting to Debconf 6 from the very first day, so that I can help the local team (at least with translations and such). I arrived to the airport early, so that I didnt have to suffer last minute stress if I see that the line is way too long and I have too little time to catch the plane. It all started fine (well, I forgot my keys at home when taking the dog for a walk, but I managed to reach my girlfriend and she came back to open the door for me). I must be the worst traveler in the world, since I seem to be causing only problems. Or maybe is that I question too many things that are the status quo and seem reasonable for other people. From the begining. It was check-in time, and the lady ask me about my hand luggage. I mentioned that since my friends were going to be waiting for me at the airport for almost 2 hours, I had prepared all my stuff so that I was not carrying anything dangerous in my two backpacks. Heck, I even left behind the regular tools that I carry with me, including the nail scissors,... The lady said it was not possible. "Sir, you can only carry 8 kilos of hand luggage". I looked around and saw people with lighter bags, but bulkier than mine. "Sorry, but, what is the reason? My luggage is smaller that the regular luggage, and I just need to get out asap". "Security reasons, sir". "Could you describe those reasons?". "... ... (surprise face) Security, sir. I would like to travel with my 20 kilos os luggage with me, sir". Yeah, sure. I am happy about that. I dont recall going away for such an extended period with such an small amount of things. When did all this madness start? Well, she did not manage to give me any reason why I could not take my things with me, but she got her sweet revenge. She put me on the back of the plane, with a guy who had at least 50k more on than I, although we both paid the same price for the ticket. I wonder where the security reasons are then, for those 50k... (Mental note: add to the travel checklist not to EVER forget deodorant and to take a shower before leaving home. Two showers. I had enough torture with the guy beside me...) The nice part of the flight was that for the first time i traveled on a Jet. Boy, is nice. Landed in Germany. The plane went to park on the backyard of the airport. We had a long 10min trip back to the terminal. The check-in for the plane to MX was a full hour set in advance, so that the HUGE amount of people that fits on one of those 747 had the time to show (for the 10th time) the passport. But looking aroung one wonders again where those security reasons not to let me carry my 8 kilos of luggage are: people around me had bought nearly their year salary on duty free stuff that wights more than 15k. Oh, boy, now I am confused. Is it so that someone has decided to add a rule in the name of security at some point after 11/9 and they forgot why? What difference does it make to get the luggage with 8 kilos from outside the terminal than from inside? As a side note, one can see that mexicans still keep much of the Spanish attitude. The speaker goes on, a man speaks in German and explains that people with children will board before anyone else. Nobody has understood anything, but they are already piling before the boarding gate. Once the man speaks in English, only the ones who dont understand English still await impatientily at the gate, mostly disturbing the check-in procedure for the flight, which will probably be delayed because of that. The second part of the trip was a bit more relaxed... I will skip the story about the looks-like-it-is-not-her-day flight attendant who could not understand a shit, and will only mention that when she served me a light coke and I handed her the empty can for dispossal, she gave me another full can with a face of "take-this-and-shut-up,dont-you-see-i-am-not-having-a-good-day?". I did not know Mexico was in the south hemisphere. At least that was the reason given for the satellite-linked internet only working the first three hours, although we were flying through Greenland, Canada, USA and Mexico's gulf for the 12h of flight, and Mexico IS on the (using the lonstanding critizised convention of not putting the map upside-down and say that is the right possition) north side. After landing it was a bit of rush, until I had to wait for my luggage, which of course came after waiting for almost 40min (Revenge of the Check-in Lady, take three... hi, if you read me). The people who create those inmigration forms MUST have short names. They have a big horizontal box with small vertical lines on the boxes to put your data trying to force you to put every character of your name in one small designated area. So there you go: "J E S U S _ D A N I E L _ C L I M E" That's right. Not even my first surname fits. Forget the second. This are the times that a friend of mine comes to mind: Enrique Garcia-Villarubia Gomez-Limon (Hi, if you read me). After all this I went out to find Amaya and h01ger waiting for me. We met Ganneff, Stockholm, Sam and Jeroen, and Damog, along with Agi, were coming right after picking up the van. We put Ganneff and Stockholm on a taxi and sent them to Oaxtepec, and left the airport for some dinner. Mexico is BIG, BIG, BIG. After driving for more than half an hour we got to a bridge from where you could see the city lights. And still, they were covering the horizon. HUGE. That realization is something I have not digested yet. Some local beers and tacos made the end of the night and we headed to Hector's place, where we were going to spend the night. From a not so negative point of view, the whole experience has been positive, and enlightening, to say it mildly. The food is mostly spicy. It could burn hell. Amaya is trying to get use to it by eating an insane amount of hot stuff but I refuse to do so. For the scared (hi, helix) I have not managed to get anything from the tap water. So nobody is dead, yet, although rumor has it that some are in comas. The net is here, although the roundtrip values are not very exciting. Mao has visited already the place, and said it is here to stay. Summary for the ones to come: this is HOT. I mean, really HOT. Forget your long jeans and bring shorts, even if you dont like to show your legs, sun screen cream, t-shirts, deodorant, swimming suit, and keep a bottle of water all the time with you. Food is served at a more sensible time than in Finland: 02:00h and 20:00h. See you in MX.

Next.

Previous.