Search Results: "eric"

3 March 2007

John Goerzen: A better environment for shell scripting

Shell scripts are good for a lot of things. It's quick and easy to design shell scripts that take input from one program, pass it to another program, munge it for filenames, etc.

But there are a few drawbacks to shell scripts.

The #1 drawback, in my opinion, is that it is extremely difficult to get quoting and escaping right. I often see things like $@ in shell scripts (breaks if a parameter has a space in it). I also see people failing to check for errors properly (set -e helps that). It's also difficult to do a more modern style of exception handling (do a sequence of actions in a temporary directory, and always remove that directory, even if there's an error, but stop processing and propogate the error). Command-line parsing is esoteric and odd, even with getopt. That's not to say that it's impossible to make a secure shell script that handles filenames with spaces in them properly. Just that it's difficult, and makes using common operators like backticks difficult.

Awhile back, I toyed with the idea of making Haskell a shell scripting language. This week, I spent some time to make this a reality. I released HSH, a shell scripting environment for Haskell.

HSH makes it easy to run shell commands, set up pipelines, etc. straight from Haskell. You can either use simple strings to invoke commands (they'll be passed to sh -c), or you can specify arguments as a list (like exec...() takes), which eliminates the strange filename problems.

But the really cool thing is that HSH doesn't just let you pipe from one external program to another. It also lets you pipe to/from pure Haskell functions. Yes, you can pipe the output of ls -l straight into a Haskell version of grep. I've found it to be very nice, especially for more complex processing tasks.

I put these simple examples on the HSH homepage:

run $ "echo /etc/pass*" :: IO String
 -> "/etc/passwd /etc/passwd-"
runIO $ "ls -l" - - "wc -l" 
 -> 12
runIO $ "ls -l" - - wcL
 -> 12
In this example, wcL is a pure-Haskell line-counting function.


The results were surprising. According to SLOCCount, porting hg-buildpackage from a shell script to a HSH script achieved a 20% reduction in source lines of code. And at the same time, gained better error handling, better safety of filenames, better type safety (compile-time type checking), etc. Yet it does exactly the same thing in almost exactly the same way.

Even greater savings will occur too. I decided to reimplement a small part of sed just for fun, and that code is still in my tree. If I removed that and replaced it with a call to sed as in the shell version, that would probably buy another 5% savings.

I didn't really expect to achieve a reduction in lines of code. I thought that I'd be lucky to come close to breaking even. After all, who'd expect something other than the shell to be better at shell scripting?

I don't know if these results are generalizable, but I'm really excited about it.

Erich Schubert: SELinux policy updated

I have not been active with SELinux recently. I was seriously lacking motivation, and recently the old server I was using to test my SELinux stuff died because of a hardware failure. But these days I installed vmware, and in order to try it out, I decided to install a SELinux Debian etch system. Then I also updated my policy packages. I actually did quite some progress on the packages; I not only merged the latest upstream SVN version, I also fixed a couple of Debian policy issues (or worked around them), and added some new functionality. First of all, I extended the update tool (now called update-selinux-policy). It will not only install the current version of each module, but also rerun autodetection and install additional modules if you added software in the meantime (it won't do the relabeling for you, though). This should make system administration a lot easier. The packages now come with a -dev companion, which includes the interface files. The README.Debian file details how you can use this to build a custom policy module, and the policygentool included will actually generate a template for you. This should make the development of policy modules a lot easier. Grab the policy packages from my experimental refpolicy directory. Note: while they share the "refpolicy" source name with the packages in Debian main, they are packaged independently. Manoj is maintaining the official packages, and I never learned how his Makefiles work, so I'm sticking to my own packaging for my development stuff. Oh, and for me they don't work in enforcing strict mode at boot yet. Policy is still incomplete for Debian (but down to ~25 audit errors). Targeted mode works in enforcing at boot time. The main issue seems to be the way Debians init ramdisk is working and the /dev directory is populated. I don't think I'll keep the packages updated frequently, sorry, and I don't think I'll have time to get enforcing working for strict, either. :-(

Erich Schubert: Debian 'etch' GUI installer

Now that VMWare is actually working for me, I tried the GUI installer of Debian 'etch'; not that the installation in VMWare hasn't been tested often enough... I intend to use the VM for some SELinux tests; the server I was running SELinux on has died recently (likely a bad power supply), so I currently don't have any current SELinux system left. (I can probably still use rjc's SELinux test box, though). Anyway, I must say that I'm quite impressed with the GUI installer. It looks serious (not this wannabe-cool look that Vista has), but still welcoming and features the Debian colors. I like it. Fonts are good, smooth but crisp. Unlike the fonts of Vista, which were heavily blurred (did they stop using hinting?) Now we just need to get 'etch' released...

2 March 2007

Erich Schubert: VMWare doesn't work.

I tried to setup VMWare today, to be able to have some virtual machines to test random stuff. My laptop only has a small HD, so I want to have all the VM stuff on my huge external USB drive. Also I only use them occasionally, so that pretty much rules out Xen. So I decided to give VMWare a try. VMWare has always been a desaster installation-wise. It took me like 5 runs to get it installed properly; you need to apply some patches or it won't work with current kernels etc. After these tries it had installed without any further error messages and the GUI also came up easily. However none of the VMs I created did anything; apparently they're supposed to at least show some BIOS like screen. Instead I only get the error message "Unable to change virtual machine power state: The process exited with an error: End of error message." And of course it doesn't tell me which process or anything else that could help debugging it. Shutdown also doesn't work properly - stopping vmware leaves a vmware-serverd process running that needs to be killed with -9. As usual, commercial software is totally disappointing. [Update: so neither the vmmon shipped with VMWare nor the one from vmware-any-any-update108 worked; keep your eyes open for update109. I managed to patch vmmon myself, in include/compat_kernel.h move the if/else part up to the front, as it is in update108.]

Josselin Mouette: Social (and not technical) study

Based on important samples of data found on various reliable sources, like mailing lists, blogs and IRC channels, the CGMRS (Cabalistic Group for Mind-Reading Studies) has established a generic profile of Debian developers. Let me present you the result of 10 years of research in 12 academic laboratories. This study was sponsored by the National Agency for Troll-based Energies.

Biella Coleman: On Edmonton, Place, and State of Mind

Recently, I got a comment on an older blog post on Edmonton that basically agreed with another comment that Edmonton was so not the cat’s meow. Despite the winter and many months later, I guess I still do think it is, although in saying so, it is not I think their assessments are wrong, I think my take has as much to do as what has come before (like NJ, which was not the high point o my life), my experiences here, and what is to come in the future. I tend to like Edmonton because there is enough stuff to do but not too much to do. It is that whole freedom from choice that I like because I often shut down in the face of too much choice. What also colors my experience in a positive light is that generally, Canadian politics, social policy, and way of life, are a step up or two (or maybe three) than that of the United States. So the worst of Canada (if you are even to call Edmonton that, which I would not), in this regard, beats out the best of the United States. And I have lived most of my life in the US so that is my point of comparison. Even if you are living in a fantastic American city, you always face the possibility of struggling in ways that will *never* happen in Canada. It makes for a calmer, less aggressive society. For example, I recently learned that Edmonton has the highest murder rate in Canada, at a whopping …. 36 people per year (population of Edmonton = 1 million). I grew up in a place, Puerto Rico where the yearly murder rate hovers at about 700-800 per year (population = 4 million). And yet people here are freaking out over the high rate of murder, which is a good thing because hopefully they can bring it down but this fact should make the US pause and think about what they are doing up north to keep the murder rate so darn low (and the answer I think is pretty easy to find). But perhaps a lot of my love of the place has as much to do or more with my state of mind. After a grueling year of finishing a dissertation under pressure as I had deadline, and then living in NJ where I was on the job market (which meant spending so much time churning out application after application and then flying around interviews), in addition to flying 7 times in one year to visit my mom, my life here just feels so much more sane than it has been in years. What sealed it all was that right before I moved here in August I was lucky enough to be offered a permanent job (which means this summer I will be moving to NYC to join this department and I will be back to the land of overwhelming choice), so that for the first time in 5 years I did not have to apply for anything in the fall that would guarantee my livelihood for the next academic year. I was not faced with a year of lots of travel (and actually traveling in out out Edmonton is really one of my least favorite things). With that firmly in place, I could just concentrate on things like my work, my friends, brewing kombucha and do things routinely, like exercise, which I had not consistently done for years. There are things about Edmonton that I find totally obnoxious like the cities inability to plow roads leaving a thick glaze of black ice on the roads so that when you drive in the city, you basically are at real risk for an accident (and this is despite a 6.6 BILLION government surplus). There are a tad too many strip malls in the outlaying areas, and of course there is the infamous winter. We are still deep in it. The cold temperatures have been with us steadily for months now and according to folks, there are still two more months to look forward to. The cold and the constant layering of clothes are getting to me a little, although I do appreciate that the cold is just not as cold as one would think with the actual temperatures. The lack of wind, the dry conditions, the cute as chubby-as-anything- bunnies that run through the snow, and the overpowering sun all help to make -6 F much more mild, so it is not as bad as you would or I would think it was. So while I am thrilled to join the department where I am moving too, I will be sad when I leave, though perhaps not as sad as Edmontons “darling” hockey player, Ryan Smith, who was just traded by the Oilers to the NY Islanders. The day he left, he literally was shedding tears at the airport. And I have to say, even though I have no attachment to hockey, I found the pictures endearing because there is nothing like seeing a grown Canadian man cry over hockey! : )

1 March 2007

Erich Schubert: Pyroman update

I just uploaded a minor update of Pyroman to unstable and the pyroman download page on alioth. I added support for a complete interface wildcard, and added example configuration files for a single-host setup. Pyroman is a firewall configuration tool I wrote for managing the firewall of a small network consisting of four zones and servers with a dozen different tasks. It plays very well in setups with DMZ, wireless networks, intranet etc. and all kinds of different services. Key benefits are the very simple syntax, safeguards (extensive syntax checks, rollback on failure, safety timeout option for remote administration), scriptability in python and high performance, since it does not run dozens of iptables commands, but generates a script file for iptables-restore. For more benefits, see the pyroman homepage. The next version will probably feature an XML syntax additionally; while the current Python syntax is very powerful and readable, it's pretty much impossible to write a GUI for editing the policy when written this way. That's why I'd like to add an XML syntax (that can be intermixed with Python statements, but only the XML-defined parts will be editable in the GUI) that supports the key parts of configuration (if you want the rules to be generated on the fly from some database or whatever, you'll still be able to do that in Python!): making it easier to write a GUI for it.

28 February 2007

Evan Prodromou: 9 Vent se CCXV

Lots of short, sharp items today that I want to get down.

LinuxQuestions.org supports OpenID First, I'm psyched to see that LinuxQuestions Wiki now supports OpenID. Jeremy gave the scoop in The LQ Wiki Now Supports OpenID. I was glad to see that LQ's on the OpenID path. It's a really strong community site, and I think it'll benefit greatly from opening up the authentication process. tags:

Wikia and OpenID Angela Beesley had some comments on my Journal/7 Vent se CCXV posting about wikiHow's support of OpenID. In that posting, I said that I thought companies with lots of wikis, like Wikia or wiki farms, might have a disincentive to participate in the OpenID network. Angela put me straight on the issue in a post on WikiAngela about OpenID. I'm glad to hear that Wikia is considering supporting the protocol. Then again, it's hard to believe that an Open Content, Open Source company is really going to go out of its way to avoid open standards and open login. tags:

DemoCampMontreal1 I had a good time last night at DemoCampMontreal1. I gave the first demo -- on, of course, the MediaWiki OpenID extension -- and I had some technical difficulties that didn't let me show off all the functionality. Which was kind of a bummer, but there were lots of questions about it from the audience, so that kind of made up my time. The room was packed, by the way -- pretty much anyone who's anyone in Montreal tech was there. I'm looking forward to DemoCampMontreal2 on 29 March! tags:

certifi.ca One of the best ways to establish credentials on the Web is to use a signed SSL certificate in your browser. It's fast, incredibly secure, and once you get it set up you can just forget it. They're also practically immune to phishing. Unfortunately, most people don't even know what browser certificates are, how they work, or what to do with them. Consequently, most Web sites don't support browser certificate authentication. Vicious cycle. But, one of the cool things about OpenID is that you can disconnect the authentication method from the Web site you're using. Most OpenID identity providers still use username/password combos for authentication, which is why critics have said that the standard is vulnerable to phishing attacks. I wanted to see if it were possible to set up an OpenID identity provider that used browser certificates as the only authentication system. So, in my copious free time, I've hacked up certifi.ca. It's based on the cool PHP OpenID Server that JanRain made, but I've ripped out all the password stuff, and now it runs on luscious certificatey goodness. I'm going to be enhancing the service in the near future, but I wanted to get feedback from folks interested in OpenID as soon as possible. I'm using it for my primary OpenID delegate, and it seems to be working great. Please give it a try and let me know what you think (admin@certifi.ca). tags:

DemoCampMontreal1 on Montreal Poutine There's an article on DemoCampMontreal1 on Midnight Poutine. That's me up on the stage, in the photo! tags:

Nepean Hotspurs Selects win On Saturday, a Muslim girl named "Azzy" Mansour, from Ontario playing in a soccer tournament in Laval was ejected from the tournament (by a Muslim referee, notably) for wearing a hijab -- reportedly because it was a safety hazard. (Montreal Gazette story, registration required.) Admirably, her entire team forfeited the tournament in protest. I'm not excited about Quebec's reactionary activity around Muslim, Sikh, and other religious community's different clothing rules. However, I understand that Quebecois -- and French people -- have a different idea of personal freedom than Americans. I try to be understanding and put myself in the Quebec headspace for this kind of stuff. Mostly, though: I admire the soccer team, the Nepean Hotspurs Selects, for standing up for their teammate and their friend. A lot of teams might have gone ahead and played without her, and it took some courage to drop out of a tournament they'd had high hopes for. They're sixth-grade girls, but they've learned something about integrity that most adults never learn. Kudos to them. tags:

27 February 2007

Enrico Zini: only-one-way

Python: "There's Only One Way To Do It"
import array
import numarray
import numeric
import numpy
They're all almost the same, but not quite. When google gives you an online piece of documentation, it's hard to say what it refers to. And different scientific modules use one or the other, more or less unpredictably. Maybe in the future numpy will replace them all. In the meantime, if I hear someone saying "There's Only One Way To Do It", I will spank their cheeks with a wet fish.

Erich Schubert: Microsoft MSDNAA

From the acceptable use policy of Microsofts Anonymous Alcoholics^W^W academy alliance program: Interesting. Who would still be running a telnet server? Everybody I know uses SSH. And if it's just for telnet, there are no benefits from graphics or sound drivers that might not be available for Linux. If I'd ever use XP on "thin clients", I'd use NX or XDMCP or VNC, but never telnet... Also this explicitely only applies to XP, not to Vista?

Erich Schubert: Driver woes

I always liked pretending that nowadays, there are no driver issues with Linux (well, except for ATI and NVidia not releasing specifications, so for some of their product there are no good drivers available). Well, thats not entirely true. Just these days, I've been running into some driver issues with my Intel hardware; and Intel recently has been the favourite of Linux developers for actually publishing driver source code under a free license. Some details on the driver issues I had: IPW3945 wireless with WPA on dual core. Apparently, there is some kind of race condition in the dual core setup under load, when two interrupts end up being handled by different CPUs. The WPA path probably is a bit slower, I read that theoretically it should also happen with WEP. The effect is as this: when transferring data quickly, e.g. from a local machine on a WPA encrypted network (such as my parents wireless; basic WPA via the common AVM Fritz!Box), it will drop the connection every minute or so, and take another minute to reconnect. Obviously, that makes the wireless rather useless... This is what the errors looked like:
TKIP: ICV error detected: STA=...
N/A: Michael MIC verification failed for MSDU from ... keyidx=0
wifi0: MSDU decryption/MIC verification failed (SA=... keyidx=0)
TKIP: received packet without ExtIV flag from ...
Upgrading to Kernel 2.6.20 turned these errors into something like Firmware bug detected; reconnect already was a bit faster. Upgrading the firmware past the Debian-packaged (in non-free) version to a newer one change them again (I think the ICV error remained) and made the reconnects even faster; still large transfers don't work reliably with WPA. Another reason I upgraded to 2.6.20 was that the microphone didn't work on my Dell 640m. The upgrade helped here, I now can record from my microphone. Every now and then, my system kind of freezes on resume; it seems that some interrupts (especially the keyboard interrupt) remain disabled... I also tried the newer i810-modesetting driver, that should be able to handle the 1440x900 resolution without the aid of i915resolution (which basically overwrites part of the video BIOS to add the resolution to the supported resolutions list). The screen remained black (with both unstable and experimental versions of the driver). Another reason why I was trying this driver is that the current driver has like a default gamma 1.5 for XV, apparently - all XV using apps playback videos way too bright. Even if they don't have an XV gamma control. Well, on the other hand, thats what Windows users might be exposed to every day. 99% of the time, everything works fine for me, too. It just remains open whether 2.6.18 is actually the right kernel to use for the upcoming release... 2.6.20 improved on some of my issues. On the other hand, yaird failed to make a proper initrd for my computer, because CBC (cipher block chaining, a common choice if you encrypt your harddisk) became a module and wasn't added. There are just so many details to iron out when upgrading the kernel... that would pretty much mean an unfreeze, I guess. :-( If we would release more often, that wouldn't be as essential, but for a release interval of two years, we really should have a kernel with few driver issues. And even if we're going to ship newer kernels with "dot releases" of etch, we'll have to avoid issues such as the CBC-module being unknown to yaird.

26 February 2007

Martin F. Krafft: Nothing is as good as proper beer

Unlike pixie, I actually do not like Belgian beer at all, and definitely not after the past weekend of drinking the charts up and down whenever not at (and I guess even during) FOSDEM 2007. I really just prefer plain, crisp beer without added flavours or abusively high alcohol levels. My journalist self already had a go at writing up the event, and the other parts of me don't feel like writing a short story, so here are the important facts:
  • The Reve d'Asie restaurant is definitely worth a stop if you're into Thai and Vietnamese food.
  • If you are looking for a cute bar without too much background noise, try the L'Imaige de Notre Dame.
  • Our hotel was great: clean, affordable, within crawling distance from most anywhere, and with a decent breakfast. I won't write about it here or else it'll be run over next year. If you buy me a (real) beer, I might disclose information face to face.
  • FOSDEM was once again a very well-organised conference with a lot of interesting subjects and a busy hallway track. I would hope to reconvene in a bit of a larger venue next year though.
  • I cancelled the first of two talks I had proposed the day before due to a communications problem which had me find out that my paper was accepted only a week before the conference not enough to do the research I proposed. Since the research is at best tangential to my other research work, I had simply forgot about that part of FOSDEM during my recent stay in Limerick.
  • My other talk was about netconf and I think it was received well. It was definitely good to sit down and order the thoughts I had been cooking up for over than a year into a coherent collection of slides. If you are interested in this subject, please join the mailing list and contribute to the wiki page.
I am looking forward to next year, and another set of talks so interesting that I don't actually have to leave the Debian DevRoom at all. And I might bring my own beer next time. NP: Rocket Scientists / Oblivion Days

24 February 2007

Andrew Stribblehill: Laphroaig quarter-cask

We went to Scotland on a family holiday this week (brave or stupid, answers on a postcard). You would not believe the number of puns you can get from the simple town of Ayr. For example, R: “You should have turned right there!” Me: “Oh well. To Ayr is human.” I shall spare you the rest: if your mind isn’t already overflowing with similar appalling jokes, you’re no friend of mine. Whilst in Ayr, I came across a marvellous whisky shop, Robbie’s Drams, and bought a bottle of Laphroaig quarter-cask and another of Smokehead. This article, or what remains of it, is to describe the Laphroaig quarter-cask whisky. Should you wish to avoid the Flash-animated website, here’s a precis. Tales are told of a time when the business of Laphroaig was carried on less than legally and it was useful to carry away smaller casks when the Excise men were coming than the more conventional full-size casks. Over the past few years, they have tried their best to recreate the whisky that would have been drunk as Laphroaig a couple of centuries ago: quarter-sized casks, slightly higher strength and an older filtration model. The effect of the smaller barrels is to increase the surface area to volume ratio substantially, so more flavour will enter the whisky from the barrel. Thus, they bottle it much younger than their standard ten-year-old offering. To smell it, a sweet smell hits the nose — perhaps toffee apple. On the taste, there is an initial earthy sensation followed quickly by a brief flash of kedgeree, leaving the smoky aftertaste of turmeric at the back of the throat. This is a much more subtle whisky than Laphroaig’s ten-year-old: thinner and less oily, and with a much more delicate, though still substantial, peaty hit. Because it’s not chill-filtered, the whisky becomes delightfully cloudy when water is added. I recommend that you try it both with and without additional water: many of the flavours become more muted with water, but a creamy taste comes to the fore. In summary: if you can get your hands on a bottle or two of this, it’s well worth doing so. An excellent whisky. I should also say that even if you’ve disliked other Laphroaigs in the past, give this a shot. It may just be your way into the other delights from the Laphroaig distillery.

23 February 2007

Eric Dorland: A View to a Mountain

I'm nearly done my second week of four here in Mountain View. I think I've already become a traitor to my Canadian heritage because I'm really enjoying the no snow and the no cold in February. Mountain View is a pretty little town, but not that exciting in and of itself. I'll have to try to make it up to San Francisco.

Working at Google is the interesting part about being here. This is probably the only place where you'll see a car with a "UID EQ 0" license plate. Between the T-Rex statue, crazy Nerf Dart wars, lots of talks, toilet seats with warmers and a cleaning water spray (which is growing on me) there's a lot going on. There's too much to learn and not enough hours in the day.

Eric Warmenhoven: TiVo!

I’ve been seriously thinking about leaving Brocade for a few months now. They’ve always been great to me, and I’ve enjoyed working there. But I’ve been there for nearly five years, and it was my first real job out of college, so I’ve decided I want to try something different. I especially want to get out of the storage sector; even though Brocade is really a networking company, their primary business (and everything I’ve ever worked on here) has been Fibre Channel, which is really only used for storage. I’ve been monitoring jobs.joelonsoftware.com, and in early January (just after I had gotten Lisa a new Series 3 for Christmas) I saw a listing for TiVo. So I decided to apply. After a phone screen and two on-site interviews with a variety of people, they offered me a job, and last Wednesday, I accepted. My last day at Brocade will be next Friday, March 2, and my first day at TiVo will be Thursday, March 8. It’s finally been announced at Brocade; otherwise I would have posted this sooner. It’ll be nice to work on something that I actually use again. (I’ll be working on the TiVo service for Comcast DVRs.) It’s easier for me to be self-motivated when I’m working on something that is potentially going to benefit me, outside of just the usual compensation. That’s the whole motivating factor of open source, at least in theory, right? I know it’s why I worked on gaim. Also, it’s a lot easier to explain to people. Telling people I work on a Fibre Channel Router, if they don’t know anything about storage, is just gibberish, and trying to explain it is aggravatingly time-consuming. Anyway, wish me luck.

Gunnar Wolf: Talk submitted for YAPC::EU

I just submitted my talk proposal for YAPC::EU, which will be held in Vienna in late August. The topic? Integrating Perl in a wider distribution: The Debian pkg-perl group.
I took part in YAPC::NA (Yet Another Perl Conference - North America) in 2001, in Montreal, and YAPC::EU (you guessed right: Europe) in 2002, in Munich. While in Munich, I met Debian's Erich, Weasel and the late Jens. It is a very nice conference with all kinds of Perl-heads, apt for different experience levels. the talk I am proposing will be about what do we work for in Debian, how can we get a better synergy from our upstream group and (oh, this point is quite itchy - specially in strongly opinioned communities such as Ruby's! Perl people are quite nice to play with, however, but still...) what do we (as Debian maintainers) request from them in order for life to be smoother.
Of course, I only submitted the talk. The CFP has just been launched, and so far, mine is the fourth talk offered - It can still be rejected (as it is not really related to Perl development, the heart of YAPC), but I guess it will be deemed interesting by the Perl monks reviewing them.
In any case, hope to see you in Vienna as well!

21 February 2007

Erich Schubert: Who writes Linux?

Many people assume that Linux is a system written by a few geeks. Well, it's not just a few, as a recent statistic by LWN.net shows. It lists a mere 1961 developers being credited as authors of contributions to the Linux kernel over the last year. So if some 2000 people have actually got contributions into the Linux kernel (which in turn can be cooperative work, and many changes have been rejected), you can safely assume that the development community looking at the Linux kernel source code is a lot larger. Over 2000 developers. Thats quite some manpower, you know... and we're talking just kernel here. There are thousands of contributors to GNOME, KDE, Firefox, Openoffice.org, Gimp, ... and all the other, smaller opensource applications. The kernel is probably one of the opensource applications harderst to work with: you're working on the very guts of the operating system. Change something bad and your computer won't boot. It might lose some of your data etc. - if you are e.g. developing for firefox, the worst that can happen is pretty much that your browser crashes or you lose your bookmarks copy. Also these 2000 aren't just your random geeks. Many of them are working for large companies such as IBM, Intel, Nokia, Oracle, HP, SGI, Broadcom, just to name a few of the big contributing companies who are not known as being a "pure Linux company". But they're working hand in hand across company borders and also with small developers. This is how Linux development happens: distributed, global, across borders: open and with free speech.

Martin F. Krafft: Leaving Limerick

I have returned home after five weeks of Ph.D. research in Limerick. I've come a bit further on the way towards my thesis but still have not reached the critical mass moment when my inertia makes me go on and on until the work is done. But in all fairness, I've made a good deal of progress and now should have all I need to work on this in my spare time at home too. I also had a fabulous time outside of the office, being immersed into a wonderful circle of lads and ladies from the very start. I would not be able to capture all the fun in writing about it, so I won't and instead resort to looking forward to my return for a two-day workshop in a little less than three weeks, and another longer stay in April/May. This time, I won't lure my bike along. It was a good idea, but there was too much rain and mud to really enjoy it. Even though transport to and from Limerick (which isn't exactly well-connected to the rest of the world in terms of transport) was mostly painless (thanks to people like Ewan, who'd take me along to Dublin and drop me in front of my hotel), it's probably more trouble than worth especially since I doubt I could get bored around "109/110 Elm Park" (which is where I lived). Daren, Mel, Claire, Jonathan, Cliona, Cathal, Sarah, Caitriona, Lisa, James, Jerry, Karen, Jurij, Gary, Eoin, and everyone else whose name I didn't manage to store (forgive me), I miss y'all already NP: Amorphis / Elegy

Martin F. Krafft: Why we have not yet released my Skycon presentation

On Sunday, I gave a talk at the 1st Skycon titled "Debian etch: does that itch scratch yet" (it's far less funny now than I thought it was when I came up with it). I think it was a well-received talk and from first feedback, it provided a doog overview of our situation with etch to those who don't follow the project very closely. I would especially like to thank Steve Langasek, Sam Hocevar, Frans Pop, Brian May, Anthony Towns, Theodore Ts'o, Thomas Viehmann. and the other folks of #debian-devel for their input during preparation. And a big shout to everyone who showed up to the talk itself, which included a bunch of the chaps who showed me a "craic" time during my five week stay in Limerick ("craic" is an Irish way to vent enthusiasm). As I've come to expect, my (not-so-)lovely IBM laptop hardlocked whenever I tried to switch on the external VGA port, be it via ACPI, /proc, or the BIOS, even after a reboot. I also could not get a Wifi association and did not have a USB key on me, so I started to get comfortable with the fact that I'd be doing the talk based off an older set of slides. Fortunately, just when I was about to start, I restored the ACPI registers to proper working order using a uswsusp suspend cycle (of all things; did you hear that, Matthew?), even though Cathal's USB stick and Dave's laptop came to my rescue. Thanks guys, even though I ended up using my own laptop, mostly because of Firefox's Autohide extension. The slides are online under the CC by-sa-nc 2.5 licence. The source is a reStructured Text document (and a bunch of images), which rst2s5 translated for use with the sweet S5 presentation system (S6? Haha). Last but not least, I would like to thank everyone at Skynet and especially Laura for organising this event. It was very fun and the selection of talks as well as the attendants ranked above the likes of such "important" events like LinuxTag. I hope there will be another Skycon next year! NP: Amorphis / Elegy Update: Thanks, h01ger for pointing out that Sun Java is not actually in main, but in non-free. Slides updated.

Erich Schubert: Dojo WTF?

From Dojo Toolkit (a very powerful AJAX toolkit), but should probably go to The Daily WTF...
_getAdjustedDay: function(/*Date*/dateObj)
  //summary: used to adjust date.getDay() values to the new values based on the current first day of the week value
  var days = [0,1,2,3,4,5,6];
  if(this.weekStartsOn>0) 
    for(var i=0;i<this.weekStartsOn;i++) 
      days.unshift(days.pop());
     
   
  return days[dateObj.getDay()]; // Number: 0..6 where 0=Sunday
 
That code is inefficient and stupid on so many levels. For example the if statement... you might be aware that 0 < 0 is false. Yep. I'd prefer something along the lines of
  return (dateObj.getDay() - this.weekStartsOn) % 7;
No arrays were abused during the making of this function. I always thought PHP programmers were the worst, but apparently some JavaScript "coderz" are up to par.

Next.

Previous.