Search Results: "bab"

16 November 2007

Russell Coker: Software vs Hardware RAID

Should you use software or hardware RAID? Many people claim that Hardware RAID is needed for performance (which can be true) but then claim that it’s because of the CPU use of the RAID calculations. Here is the data logged by the Linux kernel then the RAID-5 and RAID-6 drivers are loaded on a 1GHz Pentium-3 system: raid5: automatically using best checksumming function: pIII_sse
  pIII_sse  :  2044.000 MB/sec
raid5: using function: pIII_sse (2044.000 MB/sec)
raid6: int32×1    269 MB/s
raid6: int32×2    316 MB/s
raid6: int32×4    308 MB/s
raid6: int32×8    281 MB/s
raid6: mmxx1      914 MB/s
raid6: mmxx2    1000 MB/s
raid6: sse1×1    800 MB/s
raid6: sse1×2    1046 MB/s
raid6: using algorithm sse1×2 (1046 MB/s) There are few P3 systems that have enough IO capacity to support anywhere near 2000MB/s of disk IO and modern systems give even better CPU performance. The fastest disks available can sustain about 80MB/s when performing contiguous disk IO (which incidentally is a fairly rare operation). So if you had ten fast disks performing contiguous IO then you might be using 800MB/s of disk IO bandwidth, but that would hardly stretch your CPU performance. It’s obvious that CPU performance of the XOR calculations for RAID-5 (and the slightly more complex calculations for RAID-6) is not a bottleneck. Hardware RAID-5 often significantly outperforms software RAID-5 (in fact it should always outperform software RAID-5) even though in almost every case the RAID processor has significantly less CPU power than the main CPU. The benefit for hardware RAID-5 is in caching. A standard feature in a hardware RAID controller is a write-back disk cache in non-volatile RAM (RAM that has a battery backup and can typically keep it’s data for more than 24 hours without power). All RAID levels benefit from this but RAID-5 and RAID-6 gain particular benefits. In RAID-5 a small write (less than the stripe size) requires either that all the blocks other than the ones to be written are read or that the original content of the block to be written and the parity block are read - in either case writing less than a full stripe to a RAID-5 requires some reads. If the write-back cache can store the data for long enough that a second write is performed to the same stripe (EG to files being created in the same Inode block) then performance may double. There is one situation where software RAID will give better performance (often significantly better performance), that is for low-end hardware RAID devices. I suspect that some hardware RAID vendors deliberately cripple the performance of low-end RAID devices (by using an extremely under-powered CPU among other things) to drive sales of the more expensive devices. In 2001 I benchmarked one hardware RAID controller as being able to only sustain 10MB/s for contiguous read and write operations (software RAID on lesser hardware would deliver 100MB/s or more). But for random synchronous writes the performance was great and that’s what mattered for the application in question. Also there are reliability issues related to write-back caching. In a well designed system an update of an entire RAID-5 stripe (one block to each disk including the parity block) will first be performed to the cache and then the cache will be written back. If the power fails while the write is in progress then it will be attempted again when power is restored thus ensuring that all disks have the same data. With any RAID implementation without such a NVRAM cache a write to the entire stripe could be partially successful. This means that the parity block would not match the data! In such a situation the machine would probably work well (fsck would ensure that the filesystem state was consistent) until a disk failed. When the RAID-5 recovery procedure is used after a disk is failed it uses the parity block to re-generate the missing data, but if the parity doesn’t match then the re-generated data will be different. A disk failure may happen while the machine is online and this could potentially result in filesystem and/or database meta-data changing on a running system - this is a bad situation that most filesystems and databases will not handle well. A further benefit of a well designed NVRAM cache is that it can be used on multiple systems. For their servers HP makes some guarantees about which replacement machines will accept the NVRAM module. So if you have a HP server running RAID-5 with an NVRAM cache then you could have the entire motherboard die, have HP support provide a replacement server, then when the replacement machine is booted with the old hard drives and NVRAM module installed the data in the write-back cache will be written! This is a significant feature for improving reliability in bad corner cases. NB I’m not saying that HP is better than all other RAID vendors in this regard, merely that I know what HP equipment will do and don’t know about the rest. It would be good if there was a commodity standard for NVRAM on a PC motherboard. Perhaps a standard socket design that Intel could specify and that every motherboard manufacturer would eventually support. Then to implement such things on a typical PC all that would be required would be the NVRAM module, which while still being expensive would be significantly cheaper than current prices due to the increase in volume. If there was a significant quantity of PCs with such NVRAM (or which could be upgraded to it without excessive cost) then there would be an incentive for people to modify the Linux sotware RAID code to use it and thus give benefits for performance and reliability. Then it could be possible to install a NVRAM module and drives in a replacement server with Linux software RAID and have the data integrity preserved. But unless/until such things happen write-back caching that preserves the data integrity requires hardware RAID. Another limitation of Linux software RAID is expanding RAID groups. A HP server that I work on had two disks in a RAID-1 array, one of my colleagues added an extra disk and made it a RAID-5, the hardware RAID device moved the data around as appropriate while the machine was running and the disk space was expanded without any down-time. Some similar things can be done with Linux, for example here is documentation on converting RAID-1 to RAID-5 with Linux software RAID [1]. But that conversion operation requires some down-time and is not something that’s officially supported, while converting RAID-1 to RAID-5 with HP hardware RAID is a standard supported feature.

14 November 2007

Romain Francoise: RFC: vi, the Esc key, and Ctrl-[

As many of you probably know, the vi editor has two main modes, and switching back to command mode requires sending the Escape character. This can be achieved either by using the Esc key (the top left key on most keyboards) or by using CTRL-[. The latter has the advantage that the [ key is much closer to the home row than the Esc key, and is thus faster to type. Despite that, pretty much all the vi users I know still use Esc, and I wonder why. I've heard that on some keyboard layouts (like the French azerty), CTRL-[ is actually impossible to type, but in my experience many Free Software people (like me) use the US layout even though it's not their local layout.

So if you have a few seconds, I'd appreciate your feedback (via a comment on this post, or an email). You have the following options:Thanks!

Eddy Petrișor: Linux: plain weird network behaviour; Windows is OK

Update: problem fixed, thanks for the comments; it was MTU related issues.

Note: This is a long post, but I expect it to bring in some questions for many Linux people; I advise you to read this when you have enough time.


After the last events related to connectivity at home which have been lasting since Thursday evening and the weird fact that it seems that NAT doesn't work at home, but does at work for the same setup, I called the ISP's support and wasted 15 minutes trying to convince them at least to send a technical team with another modem just to test if that is the reason for the breakage.

Of course, talking to the ISP support and trying to convince them that there might be a problem on their side since NAT works with another provider but doesn't with them, was fruitless.

Tonight I was stuck and tried another approach, convinced I would confirm my suspicion that there is something wrong on ISP's side. Still I am not yet sure what to conclude from what happened.


So, to get a better view of what is going on, I'll describe the setup I have and what are its limitations and characteristics. People in a hurry can skip to the paragraph starting with "I tested" and stare in wonder at will.


So the connection I have is done through a DSL modem which gets the MAC of the network card connected to it and exposes that as its own to the ISP's network. This MAC seems to be quite persistent and special measures must be taken in order to be able to use another NIC to connect. The modem (or probably some machine in ISP's; the IP is 10.10.0.1) offers a DHCP address and everything should work fine.

Because of this "your MAC is my MAC" issue, when I connected the first time, I used an USB NIC since a broken router or some temporary failure would have allowed me to use the Internet connection directly from my laptop. I can say this decision has proven in time to be wise.

The router I used until now is a NSLU2 with Debian installed on it. The built in network interface always faced the internal network.

The router (which I call ritter) served as a NAT router for two machines inside the network, my laptop and my apartment mate's laptop. All until last Thursday, after which it never got back properly.



I tested (doing NAT on my laptop; the laptop shouldn't have been affected by the power problems):

Of course, I have n-checked that /proc/sys/net/ipv4/ip_forward was set to 1, the tables had policy ACCEPT and there were no extra rules, except the basic NAT-ting stuff, the routes were correctly set on both the clients and the machine doing the NAT.


All I could see is that:
  1. the machine doing the NAT was always working fine
  2. at work all NAT clients worked fine
  3. at home any of the NAT "clients" were
    1. able to resolve addresses while the DNS server was in ISP territory and another LAN
    2. ping the outside world (if ping was available - in D-I is not)
    3. hanging when trying to get a http page
    4. telnet-ting directly to the port 80 was ok (but I didn't try to "GET / HTTP/1.0")

So after all of this, I was thinking of trying to see if a new client (the laptop of my apartment mate, a Windows XP machine) would work using the connection at home. It didn't work.

Then I thought of trying to do "Internet Connection Sharing" as is called in Windows. Of course, there was some pain to find Windows XP drivers for the ASIX AX88172 network card (remember, the modem needed to see the MAC of that NIC), but I managed to find the proper one.


And, almost sure the NAT wouldn't work for this case either, I configured the new connection as a shared one. I didn't even disabled the firewall, as I was thinking I could take those down gradually.

I wasn't expecting this, not even by pure chance, but my laptop which was a NAT "client" now was able to browse, ping and do whatever was normal through NAT, while the Windows machine was doing the "Connection sharing".

I was utterly flabbergasted. And that was just the beginning.


I was expecting that the problem coincidentally went away, but after a minute I was proven otherwise. It still didn't work with Linux as the NAT-ting machine. I connected back the USB NIC to the Windows machine and I saw the same thing. NAT was just working.


At that point I was to observe an even more shocking fact: the IP that the Windows machine got was different from the one the Linux machine received, in spite of the fact that the network card was the same, so it would have made sense to get the same one. More than that, the IP that the Windows machine got was from an entirely different network, although it was a valid IP belonging to my ISP.

I was thinking that one reason why it works with Windows might be that there could be some TCP protocol twist that is differently implemented in Windows and the equipment from my ISP gets along better with the Windows network stack.


As a way to test that, I am thinking of forcing somehow the IP on the Linux machine to see if anything changes. But before doing that, I felt the urge to post these, maybe some kind soul will shed some light on this issue for me or drop a hint.

Another reason might be different DHCP servers answering, but I don't know how I can see in Windows who offered the lease.


If anyone has any clue why these weird things happen, please drop a line. I would greatly appreciate it. TIA.

Ross Burton: Calibrated At Last

Today I finally got a Spyder2 Express monitor calibration kit, and calibrated my ThinkPad's laptop. I've known it to be shockingly badly calibrated (although it is an improvement over the X20), but was curious as to how much it can be corrected. One word: wow. Thanks to Graeme Gill et al of ArgyllCMS fame for reverse-engineering how the Spyder2 works, and making calibrating displays reasonably easy to do. I'll probably write up what I did at some point, because if you are like me and don't read the documentation there are a number of stumbling points. I also blame Jakub entirely for making me think ArgyllCMS was broken by picking slightly warm grey tones for Darkilouche. My freshly calibrated screen looked a little warm instead of the usual very cool, and it took me a good ten minutes to think about checking that the theme is actually pure grey. NP: Blue Skied An' Clear - A Morr Music Compilation

Michael Janssen: On happiness

I was viewing one of my most favorite speakers today, Lawrence Lessig, talk about copyright, giving a speech that is very similar to one that I have heard a few times online, but Lessig presents it so well that I end up watching it over and over again. This particular speech was given at TED. The nice thing about coming across a TED talk is that it is almost always enlightening in some way. Lessig's speech is enlightening enough, and it reminded me that I should watch something of his since he has switched to fighting corruption instead of copyright.

Another nice thing about the TED talks is that they are all sitting on the same site - so they are all interlinked with similar topics and they also include the new videos which are being posted fairly often. Sometimes I don't have time to watch more than one talk, but today I was blessed with a surfeit of time, so I clicked on another link which interested me. This talk was from Dan Gilbert and was coarsely about happiness, and more importantly synthetic happiness and how our brains work. It started with talk about the foundation of our evolved brains, of which the most important fact was considered the Impact Bias. Gilbert talked about the Impact bias as a primary result of the evolution of the mind from earlier man to modern man - it is the ability of our mind to predict the future without actually trying it. It is the reason why you have an aversion to a food that you haven't even eaten or don't think you will like a movie that isn't even released, or the opposite. I believe that the impact bias is very important to the psychology of human beings - while it may not actually be very important to the state of the world that you eat a pastrami sandwich today instead of a salad, it must mean something to you, or your life will end up seeming meaningless and insignificant. Gilbert focuses on the impact bias in the dual - that choices that we are given to make ourselves will eventually have an effect on our overall happiness. The experiments explained in the video show that, if a choice has been made, the user is more likely to be happy with that choice later, especially if the choice is an irreversible decision. In the talk he talks about simulated happiness and actual happiness, and that the mind is incredible at simulating happiness when placed in a situation where it did not come out for the better - some famous examples include people who are in jail for long times feeling that they are better for their incarceration after being released (or even while incarcerated). One important part which I think wasn't really touched upon by Gilbert was the fact that while the mind can produce synthetic happiness, in the long run the difference between synthetic and "real" happiness is actually rather small - over the long run all the happiness produced tends to even out, and the mind doesn't distinguish about really being happy or not. For a third point, it is a very interesting conclusion (and probably a significant jump) that most people strive to be happy overall, and most people succeed. This means that even though there are people in many different levels of happiness from an outside perspective, it is worthless to look at someone who is rich and happy and someone who is poor and happy and say that one must be happier than the other because they have more of the "real" and less of the synthetic happiness. Happiness is not a zero-sum game - everyone can be happy all of the time, and noone loses out. This may be an interesting ideal to reach for and may seem impossible to achieve considering all of the hate and rage which exists in the world today, but I believe that it is even possible yet - especially considering this "Happiness Bias" which seems to exist within everyone.

Clint Adams: Sad pandas

I'm not a fan of Fryderyk Franciszek Chopin, but this morning I was thinking that if I had to do the soundtrack for Light by M. John Harrison (and let us hope that they do not make it into a movie, because they would probably remove the brother, sister, and Tom Bombadil; make Ender's daemon a polar bear, and replace any subversive elements with a 25-minute tap-dancing rendition of Hamlet, without even bothering to cast Christopher Walken or Christian Bale; I mean, seriously ), I would include 2 Nocturnes No. 8 in D-flat major, Op. 27: II. There are people in this world who believe that mediocrity is a sin, and that it is incumbent upon them to push and prod others into realizing their full potential, that potency above all else which will transform one from an unremarkable nobody into someone quite remarkable, for no higher purpose than the remarkability itself. There are other people who believe that these people are overbearing authoritarian morons guilty of child abuse and worse, that being normal and average is fine and dandy, and that whiling one's days away without ever accomplishing anything is perfectly acceptable, since it won't make a lick of difference when one is rotting in the ground. Then there are people who are themselves motivated to do things like spend 16 hours a day playing Wii Boxing, becoming the best in the world, and achieving remarkability for nothing more than an ego boost, only to be attacked by the first two groups of people for having priorities completely out of wack. A long time ago, a bunch of possibly crazy people sang Free to Be You and Me in my general direction, while cavorting and being otherwise scarily insane all around me. They did not explicitly instruct me to be myself , and if they had, I was far too young to know to distrust them. Somewhere by a weeping willow near Charles's special homo friend who was mistaken for Charlie Chaplin in the redneck bar, a bent-out-of-shape mechanical arm smolders in a chemical fire, and the guy with the red leather topcoat doesn't care one whit.

Petr Rockai: looking back

Looking Back The past year has very much changed my life. A long time ago (around the beginning of this year) I have written that I have met Lucy. That happened over a year ago. In fact, it is just few weeks since it was a year. Lucy wrote me a beautiful letter at that time, picturing some of the moments in our life. I am very grateful for that letter. I am also much happier ever since I met her. Of course, there were problems (and there are problems)… None the less, life is fairly easy, and I am staggering on the path to becoming a better person. Lucy is a great help in that respect. Many things have straightened out over that year. A few got a little more wrinkled, but often due to smiles and seldom due to frowns. I have also mostly fixed the long-standing issue of a place to sleep and live in Brno, having recently moved in. I now live near the school (~15 minute walk, maybe less when in a little hurry), more or less in the city centre, with great connectivity to most of the places I need to visit. The previous place is just too remote for me. The new one is also a better building, or so I think, not a concrete-and-iron from-a-single-template building so typical of the socialist era, but solid brick building with high ceilings and thick walls. And it gives a much homelier feeling too. And what am I doing lately? Well, day job and school (both study and TA and research) take a fair amount of time, the rest I divide among Lucy, friends, learning to play the recorder, reading, writing and the many other things I (try to) do. I have even started to practice embouchure and breathing with an oboe (double) reed (and also with Lucy’s instrument). The idea is that i have the intention to get a bassoon (which is a double-reed as well) and start to learn and practice. And I also hope, that the practice from oboe will give me a head start to that. Maybe even that I could play both. I know that I won’t ever become a very good player, but I want to at least try. And I want to have some fun with it, too (it is great to be able to play an instrument, however impractical the woodwinds are, e.g. compared to guitar, which is probably much more social… one day, I may learn that too, though; wink). I still believe that with enough determination, i could become a semi-decent amateur. Call me foolish if you like, that is how I am. I have also considered blogging technicalities, and I probably will, if i find the time for that. It may also help me sorting things out. Probably need to consult the various people I work with, what they think about that, though.

13 November 2007

Sune Vuorela: Debianized splashscreens #2 - brave testers wanted

I have created a couple of packages trying to implement a way to have debian themed splash screens and other images for a group of applications. I have tested it a couple of times in different computers, trying to make it break and such - and I think it is more or less working now. So - I am looking for brave test persons wanting to test it/screw up their systems. Requirements: As the average reader probably have guessed it involves dpkg-diverts and alternatives. To be a bit more detailed, I have a list of splash screens, divert them, set up alternatives and register the new images. Comments? Testers? feel free to speak up.

Russell Coker: More About Living in Hotels

In the past I have spent about 18 months living in hotels with a couple of months of breaks in between. I have previously written about it in terms of living in London hotels [1], but I have been asked for more generic advice. Firstly the amount of possessions that you may have when living in hotels is seriously limited. For ease of travel you want to restrict yourself to one suitcase for checked luggage and one for carry-on luggage. Hotels often have short-term storage space for possessions of guests, so having a second suitcase of items that are not worth stealing (clothes and books) may be an option. But consumer electronics devices other than a single laptop computer are not an option. I read an interesting blog post on ZenHabits.net titled Minimalist Fun: The 100 Things Challenge [2] which advocates counting and limiting the number of possessions you own. When living in hotels if I considered my books as one collection and my clothes as another (having never been interested in trendy clothes they count as utilitarian items for work or leisure not objects that I seek to own) and as my mobile phone was a tool for work and my computer gear was strictly limited to items that were needed for work (and thus “tools”) my only possessions were a digital camera and some bottles of liquor! The lack of ability to accumulate possessions may be considered as an advantage or a disadvantage depending on what your aims are. If you are moving to another country for work there are three ways of doing it. The easiest is to be a permanent employee of a company that assigns you to work there - in which case they will probably pay to transport your stuff when you buy or rent a house. If you are a looking for new employment (either contract or permanent) in another country then you can either find the work before moving or after arriving there. Finding work before arriving in the country is difficult and generally only works for short-term contracts. So it’s most likely that you will either be looking for work immediately after arriving or after a short contract. In either case having better mobility increases your employment options - why restrict yourself to one city or region when you can choose from all jobs in an entire country or (in the case of the EU) half of a continent! The career benefits of being able to accept any job anywhere in the world at short notice are significant! There are situations where an employer will pay hotel bills. One example was when I was working for a London based company and they assigned us to work at the other side of London. My colleagues complained and the company paid for hotel bills for everyone Sunday night to Thursday night inclusive as well as an extra hour of pay per day as compensation for the inconvenience. For me of course one hotel was as good as another so it just meant that my employer was covering 5/7 of my living expenses. Then I had a meeting with the hotel manager and pointed out that having me check out every Friday would be bad for them as the hotel was mostly empty on the weekend and suggested that they make me a deal for the other two days - I ended up paying something like one night of hotel fees per week! If I had rented an apartment I would have still been paying the full rent (which while less than 30 days hotel fees per month would have been considerably more than 4 or 5 days of hotel fees per month). If you live in a hotel then there is always some sort of deal that can be arranged. Apart from certain busy days (such as around the Christmas and new-year time) they always want long-term guests and will be willing to reduce the price, give free dinner or drinks from the bar, etc. The cost of living in a hotel at times such as Christmas may be as much as five times the regular rate. That is a further incentive to visit friends or relatives at Christmas. If you can’t visit your family (which may be difficult if they live on the other side of the world) then finding a friend who has a spare room might be an option.

12 November 2007

Benjamin Mako Hill: Code of Conduct

The Ubuntu Code of Conduct is probably the most widely read document I've written. Agreement to it is prerequisite to participation in the Ubuntu community in all official and many unofficial capacities. It is has successfully set a positive tone and helped turn Ubuntu into what is probably the most friendly and civil free software project I've worked in. Over time, quite a few free software projects have copied or adapted the CoC. Tired of giving folks permission, the project went ahead and licensed the CoC under the Creative Commons Attribution-Sharealike license to explicitly allow reuse as long as attribution to the Ubuntu project is given and derivatives are similarly modifiable. In a recent development, it was adapted by the Fort Erie, Ontario town council for use government interactions of their business improvement areas! It's amazing to see the document gain so much traction! Unfortunately, the person who repurposed the CoC did not attribute the document correctly and was publicly accused of plagiarism by another council member! Ubuntu is happy to have Fort Erie, and anyone else, use or adapt the CoC. Folks should just take care to be honest about where it came from and maintain the BY-SA license.

Theodore Ts'o: I love it when things Just Work

I am currently in the Hilton Portland & Executive Tower hotel, and since I fly entirely too much, I got upgraded into a room which contains a printer. Thinking that I would try using it, I hooked it up to my laptop (running Ubuntu Gutsy), selected System->Administration->Printing on the desktop, and then clicked on New Printer. To my astonishment, when the dialog box came up, the system had already autodetected the fact that I had an HP OfficeJet KX60xi printer connected to the parallel port, had recommended which driver I should use, and a few “next” and “continue” clicks later, the printer was installed, and 15 seconds later I was able to print to it. Users of MacOS systems are probably used to such things, but this was faster and easier than what Windows asks of users who want to install a new printer. Coming from a Unix background, I would have been quite pleased if I was able to set up the printer after manually select the printer type and driver from a dialog box. Simply not having to su to root, edit some config files, and then restart some daemons, would be a major advance. But this completely exceeded my expectations. Well done to everyone in the CUPS and GNOME community who worked to make this possible!

Ross Burton: Gypsy Packages

So now that Iain has finally released his baby to the world, I should release my Debian packages too. Now, they work for me, but there is a huge disclaimer around them. gypsy-daemon runs as root. I plan on fixing this shortly and it should be fairly simple, but I wanted to get these packages out there for early testers quickly. Brave Debian Sid and Ubuntu Feisty users can grab them from my repository. Gutsy users who moan about me not building packages and can't rebuild them on their own are not hardcore enough for this, so don't bother asking. NP: Untrue, Burial

Erich Schubert: Memory died

Yesterday, my laptop locked up hard. So hard, it wouldn't turn on afterwards, but flash an error code. Unfortunately, Dell hides the relevant information very well - it took me some time to find in the forums that the error code means bad memory.After removing the memory module from slot B, I could turn my computer back on again. So either the module is dead or the mainboard part related to it.I bought my laptop second-hand in the US last year, and warranty probably is just over. Still I wanted to make sure that this isn't covered by warranty anymore, so I tried contacting Dell support.What a pain. No reply yet to my mail inquiry; and the "support chat" doesn't work right. Their support agent always asks for my phone number (WTF?) and then after some minutes says he's going to disconnect because I don't reply.I wonder if they ever tested their support chat with Gecko-based browsers.0 out of 5 stars for Dell support so far. Important information is inaccessible and the support doesn't reply in either email nor chat. It's not even giving bad replies.

11 November 2007

Joey Hess: random tip: per-port naming for identical USB devices

This is another case of a udev rule that took over an hour to figure out, and now seems very clear and obvious. Which probably means it won't next time I need it. I have a bunch of USB to serial adapters, all using pl2303, all so cheap that there's no product ID or any way to tell them apart. This is cheaper than buying actual console server hardware nowadays. So how to know which ttyUSB* device is hooked up to what? The solution is to use the USB bus ID, which corresponds to the usb port the device is plugged into. My /etc/udev/rules.d/z25_persistent_usb_serial.rules:
SUBSYSTEMS=="usb", ID=="3-2", KERNEL=="ttyUSB*", NAME="ttyUSB_front_upper"
SUBSYSTEMS=="usb", ID=="2-2", KERNEL=="ttyUSB*", NAME="ttyUSB_front_lower"
The ID numbers can be found in dmesg.

10 November 2007

Christian Perrier: Old pending bugs

A stupid idea that popped up in my head this morning (actually reading the backlog of #debian-devel-fr and a remark by Lucas Nussbaum): it would be interesting to list bugs tagged as "pending" more than, say, one year ago and report them somewhere (-devel or a web page). I think that in the majority of cases, there is probably something broken when a bug is marked pending for more than one year..:-)

9 November 2007

Russell Coker: SecureCon Lecture

On Thursday at Secure Con [1] I gave a lecture about SE Linux that went according to plan, and they gave me a nice bottle of Penfolds Shiraz afterwards (thanks to the sponsors). During my lecture I announced my plan to run the hands-on training session over the net. The idea is that the Debian and CentOS images from jailtime.org with minor modifications will be put online somewhere for anyone to download. Anyone can then run the images on their own Xen server, go through the exercises, and ask questions on IRC at the same time. If you are interested in such training then please indicate in a comment what times would be good for the IRC discussion. Note that I’m only available between 7AM and 10PM starts in time zone +1100 (that is 20:00 to 11:00UTC for the starting time), the finishing time would be two hours later - and it would be possible to do the training in multiple sessions. One interesting thing was that at the end the moderator of the session offered a box of lollies to the first person who could tell him my user-name (which was included in ls output on one of the slides). Afterwards I was in idle conversation with some delegates and the topic of the Mac Mini [2] machines came up. Those machines are smaller than the Cobalt Qube (that I have in the past lugged around for portable SE Linux demonstrations), quite powerful (1G of RAM with an 80G hard drive seems to be the minimum for buying new at the moment), and they have keyboard and video ports which is often more convenient than sys-admin by serial port. I am now patiently waiting for Intel-based Mac Mini’s to start selling cheaply on eBay. Such a machine with 1G of RAM would make a nice SE Linux demo machine, I could run at least 7 Xen DomU’s for different users! Of course a second-hand laptop would do just as well, but laptops seem to hold their value better than most other machines. One thing that disappointed me was the small turn-out for the conference dinner. It seemed that as there was a gap in the program between the official end of the conference at 5PM and dinner at 6PM most people decided to go home. One thing to note for future events is that leaving gaps in this way is probably a bad idea. Maybe if they had said “drinks at the restaurant from 5PM and dinner at 6PM” then the turn-out would have been better.

7 November 2007

Christian Perrier: 10 years of public transportation

On Sept 30th 1997, alternated traffic regulation was decided in Paris for the day, because of a pollution peak. As of now, this has been the one and only time this decision was applied and it won't probably happen again because of many (stupid) limitations: Anyway, when this happened, I was, like dozens of millions of moron^W people in the Paris area, driving from my home to my work place (the same home and workplace than now): 30km one way, between 30 and 120 minutes (most of the time 45-60). I then decided to try using public transportation for one full month and then see if I can survive it (as many people who seldom use public transportation, I had horror stories in mind, such as full trains, no respect of schedules and of course, the horrific FRENCH STRIKES). This was 10 years ago and I never stopped. Since then, my daily trip is: So, about 75 minutes from my home to my work place. 30-60 minutes "lost" per day? Not really. In the train, I can read, sleep (funnily an internal system always wakes me up at the right moment) and of course, hack on my laptop (which is my most common activity there). This, quite comfortably with enough room for my arms, feet. The same goes for the bus rides (I don't suffer from car sickness). I still haven't found a way to hack while walking (but I found some free Wifi spots at some bus stops). So, in my opinion, I *won* 90 minutes a day. And, indeed, Debian benefits it a lot as this moment is my privileged moment to work on my packages, or write stupid things in my blog, or just hack around and look for things to improve in our favourite distribution. In 10 years, I of course have a few "horror stories" about crazy schedules, missed busses and of course the awful FRENCH STRIKES. About the latter, the reality is that I just have to look at the special schedules on strike days...and spot the few trains that are schedules (either 1 every 30 minutes or, at worst, 1 every hour....when the usual schedule is 1 every 15 minutes)...and then I reach my home/work pretty safely, while many moron^W other peopl suffer from awful traffic jams on highways. So, in short, here am I, ready for 10 more years of public transportation use and being seen as an ET in my neighbourhood because I leave home by WALKING even if I am not a high school teenager. Strange person, indeed? Not to forget: from my records, I saved about EUR41,700 by doing this, assuming a cost of 0.4EUR/km, 60km/day, 200days/year for the car trips....and EUR623/year for my transportation card. I should buy a brand new SUV..:-)

David Welton: YUI Compressor

One of the things I love about programming is that you are always learning new things. You have to learn new things to keep up. One of the benefits of using the Plotr Javascript library for the language popularity stats I did is that instead of having to download separate images for each statistic, a user just fetches the library once and then a few small bits of data for each chart, which is probably a net savings, especially when I start to add more statistics. However, Plotr, plus its various supporting libraries, is fairly hefty, so I needed to find a way to compress it. One of the helpful people on the freenode IRC network's #javascript channel pointed me at Yahoo's YUI Compressor, which is a nicely done project that squeezes quite a bit out of Javascript files. I would recommend it to anyone else who needs to pare down their production JS files to the bare minimum. Best of all, it's available under a very liberal open source license! Incidentally, over the course of the language stats project, I was surprised at how much helpful stuff Yahoo provides, first and foremost, a real API for their search engine, something that Google no longer has. Hopefully, it's a sign of better things to come for them (if for no other reason than to keep Google on their toes!). By the way, for those interested in the language stats project, I set up a forum with RSS feeds, where I will be posting updates, and accepting suggestions for further improvements.

6 November 2007

Russell Coker: Xen for Training

I’m setting up a training environment based on Xen. The configuration will probably be of use to some people so I’m including it below the fold. Please let me know if you have any ideas for improvements. The interface for the user has the following documentation:
(more…)

Wouter Verhelst: Programming languages suck?

Bruno De Wolf blogs about programming languages. His statement: "all programming languages suck". Not sure whether I agree. But's let look at his arguments. In his words, a good programming language, among others, is readable by a guy who didn't write the original program and who doesn't know all the language details or libraries. Personally, I don't agree. Code readability, above all, depends on the programmer. Programming languages that impose structure can probably help, but it's possible to create unreadable code in any language—that doesn't need goto. Since I went to the 'karel de grote' institute of higher education, I learned quite a number of programming languages. Hairy code is possible with all of them. Unreadable code is easy with some of them, and some of those I do consider good programming languages. I guess my criteria are different: That's it, I guess. In my book, a programming language is a tool to get a job done. A good tool is flexible, not too unwieldly, and somewhat intuitive. Like a hammer. If you want to build a table, you probably need a hammer, among other things. The better the hammer, the more likely it is that you'll get a nice table. But even the best hammer won't get you a wonderfully crafted table if your carpenter sucks at his craft. And so it is with programming languages: it might help if you use a proper language, but any good programmer can write readable code in any programming language.

Next.

Previous.