Search Results: "gio"

28 October 2005

Clint Adams: Plots against plots

Joey, in a hilarious exposition about thread patterns, mentions k00ks, which reminds me of movie adaptations. Every time good books get turned into movies or things one seems to call miniseries even when they aren't, deep, thoughtful critical analysis sparks discussions that I am somehow forced to endure. Oh my god, that was so wrong. The book was very specific about how many steps there were, and Peter Jackson just went and changed it for no reason. There was a book? That was good. It was exactly like the movie. No, it wasn't. The book didn't have Dumbledore crossdressing, Hermione being a dirty little slut, and Harry sodomizing Hagrid and all the animals. Well, it had the same feel. What you have to do is not think of it as having anything to do with the book. Then you might enjoy it. It's a movie. Enjoy the movie. It's a movie. I can't believe they didn't do anything about Sunny's teeth. It's like Even Cowgirls Get The Blues, only botched in the opposite way. Then there's the fun game of sitting around and arguing about which adaptation of Dune is the worst: some version of the movie, or the SCI Fi Channel miniseries. Who ever thought that hats would enter into a discussion like that? Not I. I still have some hope for the 18-hour Italian version featuring Salvador Dali, assuming they can resurrect Dali and start making the movie again. Speaking of the SCI Fi Channel and their high-quality programming, I made the mistake of watching Legend of Earthsea, a miniseries with two whole parts. Don't worry about this movie wrecking the books for you; it bears little resemblance to the Earthsea books by Ursula K. LeGuin. Apparently Ursula noticed this too, because she complained about the adaptation. It looks to me that she's being far too kind. My guess is that they took a a few of the books, ripped out some random pages, shuffled them, and gave them to the people who made the BeastMaster TV show, with instructions that didn't make sense in any language. The best part of this miniseries for me was the point at which I was screaming at the guy on the screen (who was obviously a Hampshire student at some point) to go back and get his hackeysack. Now I read that they're going to take religion out of the His Dark Materials adaptation. As Kaki would say histrionically, Kill me now.

25 October 2005

Sergio Talens-Oliag: Desktop Environments and Window Managers

Last week I began again my classes at the University of Valencia, where I work part time. Since I started there I teach Operating Systems' laboratory lessons of the Second and Fourth years of the Computer Science Degree and fortunately all lessons but two are taught using Linux and the ones that are not given in Linux can be done using a DOS emulator like dosbox, so I don't have to use Windows ;) My fist day at the Lab I found out that the Suse version they are using was updated (it's version 9.3); I noticed something weird when I saw the KDM theme, but it was absolutely obvious that it was a newer version when I logged in using my KDE session, as it was absolutely broken. I was using the KDE session because it was the default one there and I used it only to open terminal windows and sometimes a graphical www browser. As I was not interested in fixing my KDE environment I looked at the session options provided by KDM to see if I could use another desktop environment or a window manager and I found some options available, but neither GNOME (my current desktop) nor icewm (the Window Manager I used before) were between them. After trying the available window managers I've decided to use openbox and I'm seriously thinking about getting rid of GNOME and use it as my default for graphical sessions at home. I understand that users might like Desktop Environments, but I don't use them since I started to use Linux, which is funny because I was mostly a Macintosh user, but since I discovered the power of the command line what I want is a graphical environment that can be run using only the keyboard with minimal configuration, something I was able to do with icewm and I currently do with GNOME (although I under use the desktop facilities) and seems I will be able to do with openbox with the added bonus that the default key bindings are almost the same as the GNOME ones.

23 October 2005

Martin 'Joey' Schulze: Berlinux 2005

On Friday and Saturday this year's Berlinux event took place in Berlin, Germany. It's a regional event with a small exhibition and a conference program. The Debian project took part with three talks and a booth, plus Skolelinux, and two companies that demonstrated their Debian-based distribution. On Friday a lot of students visited the exhibition area since it was built more or less in the middle of the usual university maze. The entire exhibition had to be dismantled during the night if the equipment shouldn't get lost in the morning. That way we had the fortune to see more of the building of the Technical University of Berlin that is quite impressive. The building was old, with huge walls and a very high ceiling, paired with wide and voluminous stairs and hallways. A very classical and very nice building. On Saturday there were more visitors and more parallel tracks. It was a bit unfortunate that the exhibition was split into two levels of the building and that the conference rooms were farer away from the exhibition. Getting there meant to walk through the usual University maze since Berlinux was embedded there and not separated from it.

19 October 2005

Scott James Remnant: Parallel Peer Programming

Here at Canonical Towers we have several staff who worship at the altar of Extreme Programming, and as such many of the methodologies and rituals prescribed by that religion find their way into our day-to-day working practices. A few of these came together in an interesting way a few weeks ago, and it was suggested by a cow-orker that I blog about it so he could give the URL to people. The first ritual is that of the sprint, I don’t think this is orthodox XP but rather something inspired from it that we picked up from the Python community. With all of the Canonical developers scattered across the globe mostly working from their own homes, it’s become a useful tool; particularly for the Launchpad team. The basic idea for those that haven’t heard of it is simple, and perhaps obvious; you get a selection of the team together in one place, sit them around the same table with particular goals to complete. In effect it’s highly compressed facetime and high bandwidth interaction to nail those tasks that need it, before you head off again and work at a more sedate pace. The second is directly from XP doctrine and is that peculiar observance known as pair programming, something that is often coupled with sprints. For anybody who hasn’t encountered this before, it’s something I’ve always found rather odd. You get two programmers together, both itching to code, and you take one of them’s laptop away; and you don’t just force them to fight over the keyboard either, the laptop-less soul isn’t allowed to touch it. The theory here is that it frees the deprived individual of the hassle of coding and allows them to direct the programmer in ways that may not be immediately obbious, or alternately think about the next bit of work that needs doing. Another interesting side-effect is it can be an interesting way to learn code you’ve not worked with before, if you’re the one doing the coding and you’re being guided what to do by a sage who already knows it. I have a funny story here, so I’m going to digress from the main stream for a moment to tell it. A few months ago I was working in the London office, Mark had been up all night coding and had then given me responsibility to get his changes landed onto the Launchpad mainline. I’m not that hot on quite a bit of Launchpad, and fade to utterly clueless the nearer the code gets to the web application itself; and when trying to merge the two there were conflicts which I needed Mark’s help to resolve. Now as anybody who’s met Mark knows, he’s a pretty good example of a Type-A personality, yet he suggested that we do a spot of pair programming to get the code in and I’d be the one with the laptop as it’d help me get to grips with the affected parts. This hilighted something I’ve always seen as a problem with pair programming, dealing with it when the a person with the keyboard has a totally different way of working to you. In particular, I’m an emacs user, whereas Mark is a die-hard vim user; but also right down to the working directory I would work from, how I test results, etc. When you’re the one without the laptop, this can be quite infuriating, as you know exactly how to solve a problem and the idiot with the keyboard is dithering about doing things you don’t understand just to get there. If you’re a Type-A personality, you generally snatch the laptop away at this point and do it yourself; or at least you would, if you could drive the strange editor the other person uses. I swear Mark was sulking as he gave the laptop back and let me do it. Anyway, there is some relevance to that and we’ll come to it in a moment. The third and final methodology is the concept of unit tests and more specifically test driven development. For anyone who hasn’t come across this before, I highly recommend it; I was suspicious too when Robert Collins took it upon himself to teach me the true way, but now I’m sold. Simply the idea is that if you have any code that doesn’t have another piece of code in a test suite that checks that it’s working correctly, that code is broken. More particularly unit testing involves checking just one feature or requirement at a time, and stacking them together to test all of the code paths. I’ve actually found that this improves the APIs I design, as I write the code in small blocks and functions to make them easier to test. Test driven development takes it even further, you write the unit tests first, before you write the code they’re supposed to test; usually one or two at a time. Obviously these tests will fail at first, it’s then your job to write as little code as possible to make them pass. If your code isn’t right, you add a unit test that will fail, and modify the code to make it pass. This really comes into its own when you’re fixing bugs later, once you’ve identified the bug you write a test case or two that cause the problem; these will of course fail. You can then modify the code to make them pass, and at the same time be sure you’ve not broken other functionality because of the existing test suite. I’ve also found it really useful for particularly complicated or tricky pieces of code, especially those intricate algorithms that do particularly heavy lifting. So onto the event itself, this was a sprint in our London office to indoctrinate Gustavo Niemeyer with the various projects he’d be working on. The goal for this sprint was decided to start the conversion of HCT to Bazaar-NG, and to do this Gustavo and I would pair program. Now my last experience of pair programming had been that story with Mark (see, it had some relevance) and I knew I’d be just as bad if I wasn’t allowed to have the keyboard. I was also acutely aware that if Gustavo was just sitting by and watching, he wouldn’t get much benefit from it either, so he needed to be actively involved in the coding so he could learn the things he’d be working on. I came to what I thought was a pretty neat, and obvious, solution to these problems. We set up my laptop with the code we’d be working on, and on my display were two side-by-side terminals both running screen sessions. Gustavo then set up two same-sized terminals on his, ssh’d into my laptop from both of them and joined the screen sessions. In the left-hand one he ran vi, and in the right-hand one I ran emacs. Thus we both had keyboards, and both had editors, yet could see each other working and even steal the keyboard without danger of violence. We didn’t just sit side-by-side and code on different things though, that’s not pair programming and is just ordinary programming with a bit of a voyeuristic twist. What we did was: in my terminal I started writing the test cases for the code we needed, it was Gustavo’s job to write the code that would make them pass. We actually added a third terminal in which we could run the test cases themselves; so I could run them when I’d added something that would fail, and Gustavo could run them when he thought he’d made them pass again. This turned out to be a rather fun way to work, and at one point I was almost able to try and convince myself that the code was writing itself to pass the test cases I was writing. It also got me thinking that it’d be really neat to use genetic algorithms to breed code to pass test cases.

Martin 'Joey' Schulze: Oldenburger GNU/Linux-Information-Tag

A small regional event covering Free Software and GNU/Linux took place here in Oldenburg on Saturday. It comprised a Debian installations party, two tracks of interesting talks and a small exhibition. There were about 500 visitors, I guess. Circa 40 people listened to the Debian talk in which I presented the goals of the Debian project, its internal structure, explained how the distribution is developed and by whom and demonstrated why well defined dependencies are so important. Several visitors came to our booth which was located in a classroom together with 9 other small booths. The exhibition room wasn't crowded ever, but it wasn't too boring either. Even during the talks there were always a couple of visitors lingering around in the exhibition.

18 October 2005

Scott James Remnant: live-f1

And while I’m briefly in the blogging mood, I thought I may as well wax lyrical about another of my recent weekend projects. As anybody who vaugely knows me is aware, I’m a bit of an F1-nut and watch every Grand Prix religiously. For a couple of years now the official Formula 1 website has had a Java applet that recieves the live timing data from the races and displays it on your screen. Obviously this depended on Java, which is a bad thing. But curiously the main thing that inspired this project was that the applet uses pretty small fonts, and isn’t resizable; so you can’t stick your laptop on the table and glance at it during the race. So a race weekend a couple of weeks back, the one where FERNANDO ALONSO was busy winning the World Championship, in fact I tcpdumped the network traffic while running the Java applet and set about figuring out exactly how it worked. The result a nice curses C application that does much the same thing: I don’t plan on releasing it properly until the start of the 2006 season, when I hope to have added some useful features into it that the Java applet lacks, but it’s coming along nicely. Update: I didn’t actually intend to live you all hanging quite like that… you can play with the code today (though there’s obviously no race to watch) by grabbing it with bzr from http://www.netsplit.com/bzr/live-f1. It’s written in C and you’ll need libncurses5-dev and libneon24-dev to build it.

Next.

Previous.