Search Results: "az"

28 October 2005

Rob Taylor: Crazy Brilliant Crazy

When investingating linux based mobile phones, I happened across this absolutely crazy flash anim from DoCoMo
Not only is it bonkers, the technology descriped (which appears to be rolling out in Japan) is very *very* cool, but also has some worrying security implications, especially given this Does anyone know more?

26 October 2005

Matthew Palmer: A Licence to Use Your Genes?

Science magazine (by way of Boing Boing) reports that "20 percent of human genes have been patented in the United States". As the Boing Boing article's title says, "20% of your genes are belong to them". So, it seems to me, that there are two reasonable courses of action:
  1. Attempt to get the USPTO to accept a claim of prior art, since you've been doing this gene thing for quite a bit longer than whoever filed the patent. This is probably doomed to failure, since the USPTO appears to be collectively sticking it's fingers in it's ears and singing "Mary had a little (cloned) lamb" any time anyone mentions such inconveniences as "prior art", "obviousness", or any of those other pesky impediments to granting a patent.
  2. Apply for a licence from the rightful (hah!) holder of the patent, to duplicate, use, and distribute (well, for some of us) the patented "technology". To be helpful, when you send your letter requesting a patent licence, you should also include a list of the names, addresses, and home telephone numbers of people in your local area who you honestly believe to also be infringing on the patent.
I wonder what the effect of a patent holder not responding to your request for a patent licence would be? In a fair world, I would expect the patent holder's ability to later enforce the patent (at least against you) would be diminished -- but in a fair world, this particular blog post wouldn't be written. So, what happens if the patent holder denies you a licence to use their patent? Well, I would imagine you must cease and desist from any use, reproduction, or distribution of the patented technology. I can see the headlines now: "$PHARMECEUTICAL_COMPANY demanded that I kill myself". Maybe a few people who would prefer the eternal sleep could do it, just to make the point. But even without that, the effect of a few thousand licence requests (received with local phone books attached) should be appropriately entertaining to watch. This whole "patenting the human genome" thing almost makes me want the whole "Intelligent Design" thing to come out in favour of the Christian Fundies. If courts were to rule that there is a reasonable belief that God (or some other convenient Deity) did in fact design us noisy bipeds, then that would, surely, count as a fairly obvious prior art claim. For that matter, what if these drug companies are infringing on a celestial patent on the human genome? An omnipotent being capable of changing the heavens and the earth isn't someone whose patents I'd want to infringe.

25 October 2005

Joey Hess: stove, eye & pc

The new stovepipe seems to work great, although something wants to burn off of it at "roaring blaze" setting. I'm disappointed that Anna's decided to avoid a wood stove. Yes, they're dangerous and dirty and a lot of work, but the warmth and general niceness of a fire and wood make up for it. Reflexes are amazing things. I can't remember seeing the branch coming up past my glasses to my eye, but apparently it got closed in time, since I didn't put it out when carrying brush from the line cut yesterday. It's been a bit weepy since, and after waking up with it nearly shut, I empathise with all those poor kittens with gummed up eyes. Oh yeah, I bought a used amd64 shuttle XPC on ebay. The idea is that it will hopefully be fast enough to run vmware on for some serious d-i development work, while also doing things like playing music and being a file server. And quiet enough to be in the same room with.

Joachim Breitner: International Journalsim and me

Sounds good, doesn’t it? And feels good, too: My article on the Cross-Site-Authentication Attack in the German Linux-Magazin (as previously blogged about) was chosen for translation and appeared in the world wide Linux Magazine, reaching audiences in over 100 countries (Linux Magzine number). I’m looking forward to even more comments on the subjects, and maybe even action by the web browser makers. Although I just notice that according to their website, the issue with my article (November 2005) is already out since 7th of octobre, and they just took some time to send me my copy, so I might not get much more comments...Also, someone created an XSA article in the German wikipedia. That’s cool, too!

Anthony Towns: Debugging Debootstrap

Contrary to expectations, last week’s AJ Market project turned out to be debootstrap, not dak. Just goes to show a single person can make a difference in today’s world: debootstrap popped into the lead from nearly the bottom thanks to a single contribution. (I wonder if it makes more sense to make contributions anonymous or not?) For those playing along at home, debootstrap is a tool to build a Debian system from (almost) nothing – it just requires some basic POSIX shell functionality, things like sed, grep, sort, ar, tar, gzip, and wget. So it’s useful when you’re initially installing Debian (or derived distros like Ubuntu), or if you’re creating a chroot environment for dedicated build environments. Anyway, the debootstrap changes were pretty much bugfixes only, so there’s no fancy new features (okay, there’s one: a --make-tarball option) but a few of the fixes are worth a quick look. Read the rest ...

Gerfried Fuchs: grml 0.5 released, some history

Yesterday night grml 0.5 - Codename Tokolytika was released. I can just repeat my last remarks: grml is a charm when it comes to restoring systems, or in other tricky situations where you need your sysadmin tools handy. Saved my day quite often so far, and I'm sure it won't stop. Get it now! I simply don't know any better live CD. For those who wonder what I was doing in the last time: I had been to the last Friday Night Skating of this year. The last hundred meters of the almost 2 hour lasting course I got pushed because my legs had finished early... Thank you very much, Conny!
All in all it was a great event and I'm sure to visit it more regularly next year. :) Workload both at work and private didn't really stop for quite some weeks, it was a horror. I wasn't even able to reasonably follow any mailing lists, left aside to do any real work. Though if you noticed my 1.2.2-16 upload of beep you might know that I also have invested quite much there. Furthermore I managed to get some people of our Debienna group interested in the g++ 4.0 transition. Greek0 wrote some scripts to bring the data of mfurr's page into one (for us) better suited to use and work from. In our wiki we write down our progress to keep us updated on who's working on getting what in.
I don't have real numbers, but from tracking mfurr's list of packages needing a recompile it went down quite a bit since we started, and we don't plan to stop soonish. And finally: I've written an article about jigdo-lite for my company's magazine. It's the 5th issue of the magazine, and my third article for it (first has been about gnupg and second about MUDs). I like writing, and from some of the feedback I received people like reading me, too. :)

Martin Michlmayr: Krak w, sightseeing

I spent a few days in Krak w, Poland for the CALIBRE workshop on Quality, Security and Safety and for KKIO 2005 and I used this opportunity to do some sightseeing. After the workshop on Tuesday, Matthijs den Besten and I wandered around the city for a a few hours, then went back to the hotel for a swim, just in time to go for dinner with the CALIBRE people. We went to a restaurant which served traditional food from the 17th century. It was a really amazing place with animal fur and carpets on the wall, big wooden tables and menus which had nice drawings on them. We had a selection of different food which we shared and it was really great. The following day, as part of KKIO, dinner was served in the Wieliczka salt mine after we went on a tour of it. It's pretty amazing what kind of art you can make out of salt. On Thursday, I did some more sightseeing, basically walking around the city center and looking at some of the nice attractions. Which turns out to be churches, given that this is Poland. I particularly liked the basilica of the holy trinity but many other sights, such as Wawel castle, were pretty impressive too.

Axel Beckert: Galeon is dead

According to an announcement of the Galeon developers on their website and the Galeon announcement mailing list, Galeon is more or less dead. It has been superseeded by the more actively developed Epiphany and most of the Galeon (1.3 to be correctly) features which are not already in Epiphany (can’t be that many *harhar*) will be either implemented as Epiphany plugin or — if impossible as plugin, like e.g. middle click in menus or similar things — shall be ported to Epiphany. The Galeon developer team will focus their work on the Epiphany plugins, but still plans to once release Galeon 2.0. (Somehow I always thought, Galeon 1.3 is what meant to be Galeon 2.0.) Having read this, I’m even more convinced that Kazehakase will fill the gap Galeon 1.2 has left behind. Oh, and btw Erich: plugins or extensions are the only thing I sometimes missed in Galeon, as well in 1.2 as in 1.3. :-) But having no turing-complete extension language is the drawback you have, if you want a fast and stable browser…

Axel Beckert: X on IBM ThinkPad 760ED

As many of my friends know, I installed Debian GNU/Linux 3.0 aka Woody on my IBM ThinkPad 760ED (Pentium 1, 133 MHz, 48 MB RAM, 1 GB HD) named bijou at Chemnitzer Linux-Tage this spring. Although many helped me trying to configure X, I didn’t get rid of the LCD “forgetting” more or less pixels each row so that the picture got blurred towards the right rim. During Berlinux, a not so convinced Linux user (he told me he likes the feeling of Windows, but got stick with Debian because his modem just didn’t work with Windows) told me that he had similar problems with a graphics card with similar chips as the ones in my ThinkPad. Since I never was sure, if my problem is a hardware defect, a driver or a configuration problem (but I tended to hardware defect or a not supported chipset, since I read about several Trident 96xx and 98xx chipsets to be unsupported under Linux), his comment was a ray of hope to me. He told me he found the solution on Werner Heuser’s TuxMobil website, whom I showed my X problem also Berlinux but who hadn’t an idea what it could be. He also told me, that XFree86 4.x doesn’t support this graphics chip, but XFree86 3.3.x does. But somehow I had forgotten that TuxMobil not only has informations about Linux on laptops but also a big bunch of links to pages which deal with specific models. I can’t remember, if I looked there already back in March, but it felt like I didn’t although my own small text about bijou is linked there, too. I looked through the other 760/770 ED/XD pages and on the second or third I found someone who seems to have had the same problem and also with a 760ED. He wrote, someone else has gone down that path already so he linked directly to the XF86Config he found elsewhere. That sounded like an easy earned money so I followed the link — 404. Shit! For luck a few lines down he linked also his own XF86Config, so I grabbed it, uncommented everything unnecessary and put in the essential parts of his XF86Config of which the most important parts probably were the modelines. The one for 1024×768 was commented as the only one working, those for 800×600 and 640×480 were commented out. Then I downgraded X to XFree86 3.3.6. It didn’t work as expected. The display stayed black which was less than I had accomplished before. Shit! But giving up is not my style. So first I reduced the color depth. No change. Then I started with reducing the resolution. With 800×600 and 16 bit color depth, it finally worked. No hardware defect, no unsupported graphics chip. Just not the right modelines. That was all. YESSS! I guess the guy whose XF86Config I used didn’t have a 760ED but a similar model with a LCD with higher resolution. because my 760ED definitely has no 1024×768 resolution because 800×600 fills the screen completely. Still leaves the problem with the svgalib: The system just freezes with a black screen if I start a svgalib application like e.g. zgv. First I found out, that svgalib indeed has a configuration file which (at least under Woody) can be found at /etc/vga/libvga.conf. Copied the modelines from the now working XF86Config, configured the mouse and tried again. Freeze. Hmmm, in the config there is mentioned that if svgalib doesn’t correctly recognise the graphics card’s chipset, you can hardcode it with a configuration directive, e.g. “chipset VGA” for otherwise unsupported chipsets. And that worked, although only with 640×480 yet. So I tried the only setting for Trident cards found in the list of supported chipsets. And what happend? Right, the system froze again. So svgalib probably recognised the card as Trident and used the only available Trident driver which was obviously the wrong one. So here are my XF86Config and my libvga.config working on the IBM ThinkPad 760ED. But nevertheless — this 0€ laptop has just proven that it can be even more useful than it already was with text mode only. I also already played Frozen Bubble up to level 25 or so on the train back from Berlin. Old hardware rules. But I now also have another problem (again): Since X works now, I can run Galeon 1.2 on the ThinkPad, but GTK 2 respective GNOME 2 are much slower than in the 1.x versions and also need much more ressources, which the laptop just does not have. And since I — as most of the people who read my blog or Planet Debian should know ;-) — don’t like Galeon 1.3, I probably won’t dist-upgrade my ThinkPad to Sarge that fast although I already thought about it. XFree86 3.x isn’t in Sarge either IIRC but this should be no problem since the Woody packages are said to work under Sarge, too. Well, still yet another reason for forwardports.org… ;-) Or maybe I can get Kazehakase running on Woody so I can drop at least the whole ballast GNOME 2 comes with. We’ll see…

Axel Beckert: Back from Berlinux 2005

I was at Berlinux 2005 this weekend and though the very chaotic — because understaffed — organisation it was interesting and also funny. Thursday I arrived around 20:15 in Berlin, met Klaus Knopper and others at the train station, headed to Sven Guckes’ appartment for dropping all my luggage, then going back to meet with Klaus and the others for a theremin concert with Dorit Chrysler. No wonder that it sounded sometimes like one of my favourite musicians, Jean Michel Jarre, since — according to the Wikipedia theremin article — he also plays this instrument. On Friday I held my talk about WML in front of a — for that topic — surprisingly high number of auditors (around 30, maybe 35). In comparision to my WML talk at OscomTag 2005 all people who asked questions had understood about what the talk was, so the questions were most time interesting and justified. As usual I held the talk using Lynx with LSS support (picture by Sven Guckes) on my nine year old Pentium 1 ThinkPad bijou running Debian GNU/Linux 3.0 aka Woody. Before and after the talk I helped out at Werner Heuser’s xtops booth (another picture by Sven) and the booth of the Debian Project (yet another picture by Sven :-) directly beside Frank Ronneburg’s Debian powered model railway. (picture by you-know-who ;-) In the evening I was at the social event, hanging around with alphascorpii, Tolimar and Joey and being surprised that Joey studies biology — as I did as minor to computer science. On Saturday I was on alphascorpii’s talk about why being a BOFH is not funny, hung around at the same booths as the day before, fixed the X configuration on my laptop after hints on a unknown Debian booth visitor. Before the exhibition closed I heard a very interesting talk about web accessibility held by Sebastian who is blind himself. Although or maybe because I’m interested in that subject, the talk opened my eyes regarding two things: First Captchas are evil and Blind HTML tables aren’t as evil as all the priests of web accessibility are always preaching . They are easier than frames for blinds and seem to have only little disadvantages against a CSS based layout for blinds nowadays if used the right way. Oh, and btw. — nested tables are still evil. :-) Saturday evening I had dinner together with Stefan Gerdelbracht, Frank Hofmann, Klaus Knopper and Manfred Krejcik. Later Thomas Winde joined us. It was very interesting evening, especially talking with Klaus and Manfred. On Sunday, after having brunch with Stefan and Manfred, we met with Sven (who was our host at Berlin, thanks again!) and shortly after that, Stefan left for visiting some other friends in Berlin. Sven, Manfred and I visited C-Base where Sven stumbled over a sound editing seminar while Manfred was preparing his zipFM show for Monday which mainly consisted of an interview with Klaus. After that we headed to a small but fine birthday party of a friend of Sven and were back home around 2:30. My train left Monday morning at 8:56 and I was at home around 14:30. And on Friday I’ll go to Dresden for the Linux-Info-Tag by train just to go back to Berlin afterwards, where I meet my parents for a two week baltic sea holiday in Mecklenburg-Western Pomerania near Rügen. But due to the Systems fair at Munich and autumn holidays I have to stay at work this week. And yes, I wrote this and the other postings posted today offline, so they’re dated quite close together. :-)

24 October 2005

Clint Adams: Pork or pork

Scat
Ululation
Cavorting with no respect for brevity
Plight of the Native Americans
Plight of the Congolese
The relevance
Jazz spam
Spam jazz
Slightly gothy
pseudo-French
cabaret
parody
oom-pah-pah
carnival
revue
Where's the calliope?
Tiny violin with a big sound
Teeth aglow
A tiny boy who had just learned to kiss without affection
To kiss as a form of payment
Magically pissed at loss
Ephemera or pretentious hot air?

MJ Ray: Scary world

Last week, I read that the bird flu drugs problem is partly caused by our governments (after pressure from big pharmaceutical developers), Xerox DocuColor printers put tracking codes on all printouts, an Australian farmer is being sued after GMOs infected his crop, there's an amazing claim that XML is patent infingement and ATM fraud nearly killed British banking. More amusingly, Granada's annoying copyright screens had the opposite effect on Rob Myers:
"I've never wanted to copy a DVD before. But if there was an easy way of copying this particular DVD to strip this amateurish mood-breaker off of the beginning I'd be sorely tempted."

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.

Baruch Even: The making of a Planet

Planets are a fairly common method to aggregate blogs. They are especially pervasive in the FOSS world, with planets for Debian, Gnome, KDE, and many others. I find planets as a useful resource for a community to give a single place for the communication and to check for updates. The usual method of communication in blogs is a reply in a post, the planet makes the replies come in the same page for the reader with little context loss. For this reason I'm also fond of setting up planets myself for those communities that lack them, and so I setup planets for FOSS-IL for Israeli blogs about FOSS issues (mostly in Hebrew), Planet (former) Advogato for former Advogato bloggers and the latest one is Planet MicroISV for MicroISVs. I was asked to provide some (tutorial help something) on setting up a planet, and this post is the answer to that request.
The PlanetPlanet program is a very common RSS feed aggregator, it works with most feeds and is fairly tolerant to non-standard-conforming feeds. It is also relatively low maintenance, which is why I chose it for my aggregators. Prerequisites The first thing you'll need is to make sure you have Python 2.2 or better installed. If you're on a sane OS, you can just do apt-get install python2.3 otherwise you are left to fend for yourself. For the Windows folks there is ActivePython. Another would be prerequisite is GNU Arch or GNU Arch or Bazaar, two implementations for the Distributed Revision Control algorithm which was pioneered in GNU Arch. Bazaar would be more user friendly, but both IMNSHO are horrendous user-interface wise. Which is why I provide a snapshot of the latest revision for your benefit. Install Installation would be fairly simple, just unpack the tar.gz and it's installed, nothing else needs to be done, except configuring it. The snapshot I provided is just a raw dump of the arch repository, it is useful as is since you can update the installation as needed by just updating and merging with Arch/Bazaar. This will not be covered here. Too much of a trouble for now, and the PlanetPlanet development is at the pace of a snail carrying an elephant, don't expect updates in the near future. Configure I assume you have in mind the list of blogs you want to put on the planet. It need not be comprehensive, a few blogs to start would be good enough. It's trivial to add more as you go. In the planet directory you should copy the examples directory to a new one, say myplanet, copy the output directory to myplanet-output and edit the myplanet/config.ini file. At the minimum you should change the following variables: The next stage would be to replace the existing blog listed in the config.ini file with your own list. The example is there and is trivial to follow, the entry for a blog looks like:
[http://baruch.ev-en.org/blog/index.rss2]
name = Baruch Even
Where the feed URL is in square brackets and the name of the blog is the name. There are various games that are possible with the templates but we'll ignore them for now and let you learn them from the examples provided by the authors. The next stage is just to run the planet on the new files, we will use the defaults for the rest.
python planet.py myplanet/config.ini
The planet will work for a while, churn out various uninteresting messages and generate the files we asked it for in the myplanet-output. You can now inspect the files in the output directory, load them in a browser and enjoy. Tweaks So you haven't left yet? Want some more info? One obvious question is now that we have the files, how do we serve them to the world so everyone can enjoy our creation? First, you should ask yourself if the world really cares... you do, ah?! OK. If the world cares enough it will find a way to show you how to do it. Since it depends on your OS, web server and various configurations, I can't help you on this. This is left as an exercise to the reader. The configuration in config.ini should be fairly obvious and is well commented. The look of the site depends on two factors, the HTML that is generated, which is a clean HTML version 4.01 and has all formatting controlled by the CSS file which was kindly provided in the outputs directory. The templating code is very simple, it has two operations, TMPL_LOOP and TMPL_VAR. TMPL_LOOP will loop over a variable, usually the Channels variable. And the TMPL_VAR operator will emit that variable, there are the global vars and the loop vars. The best way to figure it out is to use the existing templates as a building block, they are fairly easy to understand. Enjoy your new Planet!

22 October 2005

Andreas Rottmann: Scheme48 fork update

Mike Sperber finally reviewed my patches; they unfortunatly were not deemed appropriate for the Scheme48 distribution, see this thread. Hopefully these issues can be sorted out in the not-to-far future. If you also need the one or other features from my hacks so far, and are adventurous, you can conact me on #scheme on freenode for help with getting and building my fork. Writing portable Scheme programs with scmxlate and spells For the conjure project, we are using scmxlate to make it portable across multiple Schemes. For that purpose, I slightly extended scmxlate and built a kind of meta-module system on top of it. Here is how that looks like: You write a description of the modules your application or library is made of; this is done in a sightly extended subset of the Scheme48 configuration language. For example (from this page, see there for more details):
 (define-structure conjure.foo.bar (export qux baz
					  ((froboz fribnitz)
					  :syntax))
  (open scheme srfi-1 srfi-13 conjure.util.files)
  (dialect (guile (open ice-9.syncase))
           (scheme48 (open extended-ports)))
  (files (foo basic-bar)
         (foo bar)))
This defines the module conjure.foo.bar, which exports the identifiers qux and baz, as well as the macros froboz and fribnitz. The open clause means: this module is written in R5RS Scheme (scheme), plus additionally using srfi-1, srfi-13 and the conjure.util.files module. The dialect clause can be used for specifiying additional modules needed for the dialect-specific code for the module. Finally, the files clause tells us that this module consists of the files foo/basic-bar.scm and foo/bar.scm. This file then gets processed by scmxlate, generating a file with the right module definitions for the selected target dialect, e.g.:
(define-module (conjure foo bar)
  #:use-module (srfi srfi-1)
  #:use-module (srfi srfi-13)
  #:use-module (conjure util files)
  #:use-module (ice-9 syncase)
	
   #:export (qux baz)
  #:export-syntax (froboz fribnitz))
	
 ;; code for foo/basic-bar.scm and foo/bar.scm follows
will be generated for Guile. We recently split scmxlate and the meta-module systeem out of conjure, see the scmxlate category in the conjure archive, so it is available for other projects. Now the split-out of the general purpose modules into a separate project — SPELLS, (S)pell’s a (P)ortability (E)nvironment (L)ibrary for (L)ots of (S)chemes — is in preparation. This library will further aid writing portable code, by providing a consistent interface to functionality that has different APIs in different Schemes. These modules are already there: All of those are implemented for all of mzscheme, Guile, Scheme48 and Gauche, using native functionality where available. Other modules will surely follow, a project has been requested at Gna! to facilitate contribution. The spells library will also be used by my upcoming port of G-Wrap to Scheme48.

Andreas Rottmann: A Guile rant

I began to program in Scheme using the Guile interpreter. While I knew that its not blazingly fast, its the official GNU extension language, and as feeling quite close to the goals of the GNU project and the FSF, I felt confident it was the right choice, also considering the supreme quality of other GNU software, such as the GNU toolchain (GCC, binutils, gas) and the Gimp, to name just a few. So, feeling confident with my choice, I started to crank out code and eventually even took over maintainership over a Guile application, namely G-Wrap, after giving it a complete brush-up code-wise. When Tom Lord, of GNU Arch fame (and coincidently a former Guile maintainer), announced the Pika project (a from-scratch Scheme implementation, with ambitous goals), I decided to get on the mailing list and lurk, and later got opportunities to contribute a bit. Unfortunatly that project stalled due to time constraints on Tom’s side. Anyway it was a very valuable experience, as it opened my eyes to other Scheme implementations, foremost Scheme 48. Looking at its code base was a real eye-opener: as opposed to Guile, it was, except for a tiny amount of glue code, written in Scheme; its virtual machine is written in a subset of Scheme called Pre-Scheme that can be compiled to efficient C code, so you get most of the benefits of Scheme and the speed of C. Around the same time I discovered Scheme 48, I got involved in conjure, a make replacement being written in portable Scheme. I split off the library code from it to form a separate project, spells. As spells is basically a layer above the individual Scheme implementations which hides away their differences and presents their features (foremost the module system, but also hash tables, file system access, …) in a portable way, I gained some experience regarding the different module systems and how they compare, and I honstly must say that Guile’s is basically unusable with macros. Here’s why: A decent module system allows for macro code to refer to bindings in the module they are defined in, without requiring these bindings to be also exported; imagine a macro that expands to a call to some helper procedure that should itself should not be visible from outside the module. A real-life example are the reference implementations of SRFI-34 and SRFI-35, which define the helper procedures guard-aux and type-field-alist->condition, respectively. This deficiency (which is not present in Scheme 48, PLT Scheme, Gauche and probably most other Schemes) is really unfortunate, as it makes modules, when used with macros, a lot less usable. This, besides the total orientation toward interpretation and the codebase that is mostly in C are reasons why I’d recommend Scheme newbies also looking at other options before settling on Guile because it’s the “official GNU extension language”, as I did ;) .

21 October 2005

Wouter Verhelst: More buildd work

I've gone from managing two buildd machines a few months ago, to five now, six or seven soon. Whew. New machines are bob and wendy (armeb), and ska/kiivi (ska was set up around the time kiivi broke down; kiivi's been fixed now, so that means one extra box too). Future ones may be jazz (m68k; Quadra950) and a third armeb box. Getting pretty crowdy—but nothing I can't handle. Yet. Though it is the highest number of buildd machines I've ever managed before. Since Christian Steigies is back from holiday, he had a look at garkin, his atari-with-CT60-board. It had lost its serial connection while he was away, so it didn't build anymore. But other than that the connection was gone, the box was still alive and kicking -- just needed to download a few megabytes of updates, which takes rather long through serial. In case you wonder: there's no ethernet connection, because the ethernet boards haven't been manufactured yet (they've been designed and ordered at the factory which will create them, but that hasn't happened yet). So with kiivi and garkin now both building again, the graph is going in the right direction again since a day or two. It's even more visible on the second graph; if you have a look at the new quarter graph, you'll see that the level of up-to-dateness is currently at its highest level in weeks; I count 28 days between now and the previous peak that is at approximately the same level as today. Which is good, of course. I'm quite happy about that quarter graph, BTW. The usefullness of the other two graphs (one with all information since the statistics were being gathered, one with the information of the last two weeks only) was seriously deteriorating. What this graph shows is way more useful... now if only there'd be a quarter version for the other graph as well...

20 October 2005

Jose Carlos Garcia Sogo: Homer is Omar

Making an arab version of The Simpsons can be nice to introduce them in Arab world. Renaming Homer as Omar, or Bart as Badr, can be good if those names are going to help people understood better the roles. Calling them Al Shamshoon is a bit too much. But of course, changing chapters to susbtitute Duff beer by soft drinks and doughnuts by Arab kahk cookies is completely crazy. I strongly think that our world is not going to be better by givin each group just what they want, but by making everyone understand and respect other cultures. And sorry, Homer is a pig.

19 October 2005

Raphaël Hertzog: Serial overrun on Linux

Working with serial lines can sometimes give you big headaches. I have an embedded PC based on 386 SX 40 processor. This PC doesn’t make much but it has programs using the serial line intensively. Things didn’t work as well as expected so I looked carefully what was going on … the beast was loosing bytes ! My information has been promptly confirmed by the /proc/tty/driver/serial entry. If you have “oe: X” (where X is a positive number) there, it means that one of your UART detected overrun errors. So what’s an overrun ? An overrun happens when the UART receives data while its FIFO buffer is full. Why is the FIFO full ? Because Linux didn’t treat the serial interruption quickly enough. Why is Linux so slow ? Linux is not a real time OS and it doesn’t guarantee any response time to interruption, so Linux is not so slow but my PC really is … what happens is that interruption related to the network are treated before serial interruptions. Furthermore IDE disk interruptions can take too long too. Worst case is of course, you’re treating a disk interruption, then you have to treat the network interruption and only after that you can treat the serial interruption which in fact happened right after the beginning of the disk interruption So fixing serial overrun is a rather complex problem since it’s really a kernel related problem. Googling on the subject I have found several ideas to explore : Using hdparm -u wasn’t enough to solve my problem… so I continued to look for a solution and I found one ! I recompiled my kernel with the low latency patch and the preemptible kernel patch. Those are usually used for multimedia applications where you need good responsiveness in order to deliver content in real-time but the fact is that they do work for my purpose too ! My serial overruns are completely gone at 9600 bauds. However I can still have some when running at 115200 bauds. Moreover I can create serial overrun by running a find / -type f grep -v /proc/ xargs md5sum in the background… I can’t make miracles with this slow processor… if you have more ideas to further improve the situation, I’m willing to try !

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.

Next.

Previous.