Search Results: "ean"

6 February 2006

Enrico Zini: Italian screen reading

So far, it has been a fairly happy hacking day. I wanted to see how far I could go to make a Linux desktop accessible for the blind. Platform of choice is Breezy because:
  • it uses gnome, which is the most accessible stuff at the moment;
  • it's the distribution with the least amount of raw edges at the moment;
  • its gnome accessibility stuff is more up to date than the stuff in sid (I got in touch with Mario Lang and I'll see if I can help)
Step number 1: installing a fully working Breezy chroot inside my sid
  1. lvcreate -L2G -n breezy vg
  2. mkfs.jfs /dev/vg/breezy
  3. mount /dev/vg/breezy /chroot/breezy
  4. debootstrap --arch i386 breezy /chroot/breezy http://archive.ubuntu.com/ubuntu/
  5. chroot /chroot/breezy
  6. dpkg-reconfigure locales
  7. tzconfig
  8. base-config new
  9. fixed gdm configuration to work along with the sid X server
  10. fixed /etc/fstab, resolv.conf and /etc/hosts
  11. reduced the lart-delay of /etc/rcS.d/S04udev from 60 to 5 seconds
  12. "booted" the Breezy system running /etc/rcS and /etc/rc 2
Believe it or not, it works. I have another gdm login screen, I login and I hear the Ubuntu startup music. A couple of warnings about ACPI and HAL not working... well, I can imagine why. gnome-panel would refuse to show the menus. It turned out to be connected to Gnome bug #323064 (debian bug #338438) and I found out that Alt+F2 (run) and then killall gam_server would be enough to stay displayed.
Step number 2: getting the screen reader to work Note: the menu names might be incorrect as my system is localised in Italian and I'm now translating back to English.
  1. Install gnopernicus
  2. Go into Desktop/Preferences/Audio and disable the sound server
  3. Go into Desktop/Preferences/Assistive technology, enable assistive technology and screen reader
  4. Logout and in again
Now, coolness ubercoolness, the desktop starts to speak with the voice of a depressed 40 years old dude from the USA. Thanks to Luke Yelavich of ubuntu-accessibility for supporting me and for explaining me that if esd is running then the voice tends to disappear because esd steals the sound device to festival. He also explained me that if one tries to run festival through esd then it works, but since esd is a mixer then one starts hearing various voices for different events all mixed together. Now, the English speech engine often mentions the "barra dei sacramenti". In local Italian it means "toolbar for blaspheme curses". Time to move on to step 3.
Step number 3: getting the screen reader to work in Italian I'm very proud of the Italian speech engine that recently entered Debian thanks to Riccardo Vestrini and the Debian Italian Maintainers Task Force, I've already put it to good use in the past and have great plans about it for the future. It's now a good moment to turn the knowledge previously acquired with creative timewasting into something serious. So, on to work:
  1. get the italian festival voice packages from sid (the packages are festlex-ifd, festvox-itapc16k and festvox-italp16k)
  2. install them all in Breezy
  3. sudo patch /usr/share/festival/languages.scm /usr/share/doc/festlex-ifd/languages.scm.patch (and ping again Matthias Urlichs for a fix for bug#335845)
  4. log out
  5. kill all the festival servers, drivers and whatnot (need to do it when logged out, but one can just install the voices before starting gnopernicus for the first time)
  6. log in again
  7. go into gnopernicus configuration and select the new voices.
It SO WORKS! I configured some voices a bit at random, so now according to what I do the desktop speaks like the depressed dude, Adriano Celentano or the Italian dubbing of the Enterprise computer (without reverb effect). An extra cool unexpected side effect of this chroot setup is that now I can go back to my Sid X session and the Breezy X session will keep talking in the background, so I can even keep an ear on what happens in the other Virtual Console. Now, on to the applications. The menus, work. Abiword works, but I couldn't find out how to read the things I type on the editing area (not so useful until that one is solved). OpenOffice2 does not work. Firefox 1.5 works. gnome-terminal works. gedit works. It could be better, but I was fearing much worse. Now, gnopernicus has various powerful features accessible using the numeric keypad, but I haven't found a way to activate them in my laptop. It may be that with the keypad functions abiword becomes readable. I'm quite satisfied today.

Michael Koch: https works out of the box with GNU classpath CVS

In order to debug/solve Debian bug #341818 I tried to run gcjappletviewer.jar with jamvm 1.4.2-1, classpath 2:0.20-2 and libjessie-java 1.0.1-2. Everything I tried failed. Then I updated my classpath packages to a current CVS snapshot and it worked out of the box. libjessie-java is not needed anymore as Jessie is merged into GNU classpath in upstream. This means we can access HTTPS urls with free runtimes for Java in the near future. This will also help gcjwebplugin to access applets on HTTPS sites.

Martin F. Krafft: Counting peas in Switzerland

Switzerland is bloody expensive, you surely don't want to be shopping here. For instance, I wanted to get myself the Lonely Planet Guide for Laos and Myanmar, both of which have had new editions released in 2005. Their price is a little more than 20 each, including the German VAT of 7%. If you buy the book in Switzerland, it's between 40 and 50 CHF (incl. 7.6% VAT), which is almost 10 more than the German price. Despite the fact that I cannot find the 2005 editions neither in Swiss stores nor on amazon.de, I'd be looking at a slight problem. Either, I can pay the higher price in Switzerland (in addition to shipping), or I can order with amazon.de (or the like) in Germany, who will subtract the VAT and ship it to Switzerland for free. Sounds great, huh? Well, it isn't really, because in Switzerland, receiving packages might mean you have to pay VAT, and not only that, they also make it unnecessarily complicated: If the goods you receive are valued less than 75 CHF, you do not have to pay VAT. However, if you do have to pay VAT, the VAT and a nominal service charge of 10 CHF count towards those 75 CHF, which means you effectively have to stay below (75 - 10 - VAT) CHF, which is 60 CHF or thereabout. Translate that to Euros, we're talking about 38 . Thus, if you want free shipping and no VAT, you have to place orders between 20 and 38 -- 20 is the minimum price to get free delivery if your order is not entirely made of books, in which case delivery would be free even below 20 . You do not want to place orders higher than 38 ever, because VAT in Switzerland is higher than the VAT for books in Germany, and the additional 10 CHF charge is not going to make up for it. So the only way for me to obtain the two books is either through the overpriced Swiss bookstores, or via two separate orders to amazon.de so as to not exceed the 38 limit. The maths gets more fun when you get away from books. For normal goods, VAT in Switzerland is still 7.6%, but 16% (and maybe soon 19%) in Germany. Thus, you will want to stay below 38 , unless the total value of the goods exceeds an amount where the cheaper 7.6% VAT + 10CHF service fee is lower than 16% VAT. This drives the limit up to 121 CHF, or about 77 . Now, if you think this is complicated, stay put. I am looking to buy myself the DrayTek Vigor 2900VG router, for which is around 265 in Germany including the 16% VAT, and 421 CHF including the 7.6% VAT in Switzerland. These prices square, but they're not including shipping, and if I would order the German product for delivery to Switzerland (which they are not willing to do, but anyway), I'd have to add the 10 CHF service charge and the 7.6% VAT. I also would not be able to claim the 16% VAT paid in Germany with EU customs because I am not a full resident of Switzerland. Man, no wonder taxes have had a long history of violence. Now I also received a 35% rebate offer from the Swiss distributor, driving the price down to 274 CHF, which is clearly a hell of a lot cheaper than the German product. So what am I waiting for? Well, Germany being an EU state and all, the German shop has to give you a 30 day return warranty and a 2 year product warranty. In Switzerland, you get no return warranty and only 1 year of product warranty. My dilemma thus becomes: are 30 days return warranty and an addition year of product warranty worth the difference of roughly 150 CHF? Seems like the answer must be "no". But I know that if I order it in Switzerland, it will break after 366 days, by the laws of Murphy. I have now asked the German distributor to match the 35% rebate. If they will, I'll order the device to my parents house in Germany. If they don't, I'll take it up with Mr. Murphy. PS: If you think the DrayTek Vigor 2900VG is not a good choice, speak up now!

Uwe Hermann: HOWTO: Encrypted USB thumb drives and (USB) hard disks using loop-AES

Yet another thing that has been on my TODO list for quite a while: encrypted USB thumb drives and/or encrypted external USB hard drives. I have finally tried this over the weekend using loop-AES. This is very useful for securing your USB thumb drive contents in case you lose it or it gets stolen. Also, I use an external USB hard drive for backups (previously unencrypted). This is encryped now, too. Here's a quick HOWTO:
  1. Get the loop-AES kernel patches, apply them, enable "AES encrypted loop device support" in "Device Drivers -> Block Devices -> Loopback device support", and recompile the kernel.
    I also enabled "loop encryption key scrubbing support" as it seems to promise higher security (can anybody confirm that?).
    If you're using the Debian kernel packages, apt-get install loop-aes-2.6-686 (or a similar package) should suffice.
  2. Get a loop-aes enabled losetup, mount etc.:
    apt-get install loop-aes-utils
  3. Securely delete the target partition: shred -n 1 -v /dev/sda3.
    Use -n 25 or higher if you want more security and have a few days time to wait for the thing to finish...
  4. Setup the loopback device: losetup -e aes256 -C 3 -S 'seed' /dev/loop0 /dev/sda3.
    Notes:
    • I used AES-256 as cipher, but others are possible.
    • The -C 3 means "run hashed password through 3000 iterations of AES-256 before using it for loop encryption. This consumes lots of CPU cycles at loop setup/mount time but not thereafter." (see losetup(8)). This is supposed to be more secure.
    • Using -S 'seed' (replace "seed" with a secret string like "g7sN4" or something) should make brute force attacks a bit harder. Don't forget the seed!
    • You'll be asked for a passphrase > 20 characters. Choose a good one. Don't forget it!
  5. Create the filesystem (I used ext3): mke2fs -j /dev/loop0
  6. Detach the loopback device: losetup -d /dev/loop0
  7. Add this to /etc/fstab:
    /dev/sda3 /mnt/crypted_sda3 ext3 noauto,loop=/dev/loop0,encryption=AES256,itercountk=3 0 0
  8. Mount the (now encrypted) partition by supplying the seed and entering the chosen password: mount -o pseed=seed /mnt/crypted_sda3
  9. Done. You can now copy stuff to /mnt/crypted_sda3 which will be encrypted automatically.
For a more detailed guide read the Encrypted-Root-Filesystem-HOWTO. A performance comparison of different ciphers is available, but in general I didn't notice too much of a slow-down because of the encryption...

Andrew Pollock: [tech] Holy broken blog feeds, Batman!

Gack, what a mess my blog feed has been in. It's still not 100% okay, but at least Firefox now parses it without complaint. Maybe someone with more XML-fu than me will read this and tell me how to fix the rest... I've always gone to a fair bit of trouble to ensure that my blog's HTML is syntactically correct, at least in terms of HTML, and everything is spelt correctly. To achieve this I use a fairly involved script to perform a bunch of sanity checks when I make a new post. Unfortunately, I've been neglecting the state of my blog's feed, and as I've recently discovered, it's been in quite a bad way for quite some time. Given that more people probably read by blog via the feed than the HTML, I've probably been focussing my attention disproportionately. It seems that whilst the native HTML I'm writing may be valid 4.01 Transitional, the XML that Blosxom generates from it isn't valid XML, mainly in terms of tag closure. So I guess this is going to mean that I need to go for a stricter and/or newer standard. I might need to move to XHTML or something. I've also found that a lot of the HTML generated by the various blog meme generators is utter crap.

5 February 2006

Joey Hess: unix tools, vidir

I'm a fan of the unix tools philosophy, but I sometimes wonder if there's much room for new tools to be added to that toolbox. New programs that fully partake of the philosophy (like rename, netcat, par, bloxsom, grepmail, and xwit) are fairly few and far between compared to all the new programs that don't. I've always wanted to come up with my own general-purpose new unix tool. vidir doesn't quite qualify as a real unix tool, since it doesn't (normally) operate on stdio, but it's as close as I've gotten, and it does seem to fill in a nice hole in the toolbox. The idea is very simple, it just displays the files that are in a directory as lines in a text editor, then you can make any changes you like, and when you quit the editor it renames and/or deletes files to match your changes. No need to worry about quoting issues and the full ad-hoc editing power of a good text editor make cleaning up messy directories fun. Like any good utility, there is plenty of obvious room for improvement, it would be nice if it had a --recursive switch to edit whole directory trees at a time. And it needs to have some support added for swapping pairs of filenames. I challange others to try to make general purpose unix tools..

David Pashley: SQL::Translator

Today, I discovered SQL::Translator, which seems to have some very interesting use cases. Basically, it is a perl module for translating a database schema from one of a number of formats and turning it into another format. Parsers include: Output formats include: Several things spring to mind with this:
  1. Defining your Schema in XML and using SQL::Translator to convert it into SQL for several databases and a set of classes for Class::DBI, which would make your application immediately target any of the supported databases.
  2. Documenting an existing database for which you've lost existing documentation by pointing it at a running database instance and outputting HTML page and, thanks to the Diagram output module, visual representation of the structure.
  3. Convert one database from product to another. Point it at a MySQL database and generate SQL for postgresql. If you generated some Class::DBI stuff you could possibly quickly write a script to copy data too.
  4. Using the sqlt-diff script, compare you current SQL to what is running on the database and generate a SQL script to upgrade the database structure using ALTER TABLE etc. Presumably you'd need to convert any data yourself, but is still a time saver for large databases.
I'm sure other people could think of some interesting uses for this. Having looked at the Class::DBI stuff, I think it could do with some improvements. I can't see a way to set the class names, although I haven't spent that much time looking and it insists on having all the classes in one file. Also the XML and YAML formats generated are rather verbose and I haven't looked to see how much I could cut them down to use as the source definition. I suspect that I can make it a lot shorter and rely on sensible defaults. My initial reason for wanting to use SQL::Translator is that Class::DBI::Pg has a large start up time and isn't really suitable for CGI use if you have a complex database. This might be mitigated by using mod_perl, but in the mean time I was hoping I could speed up startup by telling Class::DBI my column names, rather than it querying the database. SQL::Translator should allow me to save duplicating the database structure, whilst allowing me to support multiple backend databases. If I get this working, I'll write up a short HOWTO.

Adam Rosi-Kessel: Pit Bulls and Profiling

Malcolm Gladwell· (probably best known as the pop-sociologist author of The Tipping Point·) has an excellent piece in this week’s New Yorker· on what pit bulls can teach us about profiling·. The argument boils down to one about common tendencies in misinterpreting data and drawing the wrong (or “unstable”) generalizations from apparently recurrent phenomena. Everyone’s favorite security guru Bruce Schneier· has made similar arguments in the past·, but Gladwell’s style in this case is more compelling. I particularly liked this passage about The Godfather:
In July of last year, following the transit bombings in London, the New York City Police Department announced that it would send officers into the subways to conduct random searches of passengers’ bags. On the face of it, doing random searches in the hunt for terrorists — as opposed to being guided by generalizations — seems like a silly idea. As a columnist in New York wrote at the time, “Not just ‘most’ but nearly every jihadi who has attacked a Western European or American target is a young Arab or Pakistani man. In other words, you can predict with a fair degree of certainty what an Al Qaeda terrorist looks like. Just as we have always known what Mafiosi look like — even as we understand that only an infinitesimal fraction of Italian-Americans are members of the mob.” But wait: do we really know what mafiosi look like? In “The Godfather,” where most of us get our knowledge of the Mafia, the male members of the Corleone family were played by Marlon Brando, who was of Irish and French ancestry, James Caan, who is Jewish, and two Italian-Americans, Al Pacino and John Cazale. To go by “The Godfather,” mafiosi look like white men of European descent, which, as generalizations go, isn’t terribly helpful. Figuring out what an Islamic terrorist looks like isn’t any easier. Muslims are not like the Amish: they don’t come dressed in identifiable costumes. And they don’t look like basketball players; they don’t come in predictable shapes and sizes. Islam is a religion that spans the globe.

Junichi Uekawa: Re-checking that dvipdfmx mess.

I've motivated myself to check how it is possible to make dvipdfmx working from a clean environment. It's pretty hard, really.It's not written anywhere in the dependency, but to create a Japanese PDF file from DVI file, ptex-base, cmap-adobe-japan1, and gs-esp are required.After installing these three, I can get a basic document build inside chroot.

4 February 2006

Wouter Verhelst: New waffle iron

I was baking waffles today, using my not-so-secret recepy. I needed about fifteen of them, and murphy helped me let it take far longer than initially expected. I had already made some errors in creating the dough (though nothing that I couldn't fix), and when I had eventually finished it and was halfway through baking those waffles, my waffle iron broke down. Which wasn't totally unexpected, given how this is a waffle iron that was part of the inheritance of an aunt of my dad's who had died even before I was born, which must have been approximately fourty years ago. Still, it had me sitting there with a broken waffle iron, a promise that I'd be baking waffles for a fundraising activity, and only half the number of waffles that I needed. I had found myself a slight little problem. So, I went to a local shop, had a look at the waffle irons that they had for sale, and chose one that looked OK to me. I hadn't taken a close look at the box, but the saleswoman had shown me the device and it looked well suited for my needs. Once home, I showed it to my brother. Who promptly exclaimed that 'it is the same as the old one'. At first, I wanted to protest; but on close examination of the picture on the box, I had to agree that he was right! They had restyled the one inside the box—given it a different colour, and used a temperature dial with a more modern look—but it was, indeed, the same model. And this redesign must have happened fairly recently; the illustratory pictures in the user manual still show the 'old' style design, which is identical to the old waffle iron, modulo approximately fourty years of technical evolution. In fact, the single most drastic change between the old device and the pictures in the manual of the new one would seem to be the fact that the company producing these devices changed names in the mean time. They also appear to be having a website, which contains pictures of yet another design of the same appliance. I was baffled. I mean, sure, home appliances are not computers, and I could imagine how a waffle iron, designed five years ago, would still be in sale today. But after that long? What I haven't checked yet, for lack of time, is whether the irons of the old device would fit in the new device. I'll do that tomorrow, because the old device had a 4x6 "Brussels waffles" iron, whereas the new only came with a double 4x7 "Home-made waffles" iron, and an iron for six heart-shaped biscuit waffles. If that would fit, then that would save me an expense of 32 euros—I love baking Brussels waffles, so any waffle iron I use needs to be able to do those. Even if it can only do so one waffle at a time. The ability to use the iron of that 40-year-old thing in the new device would be... great.

Benjamin Mako Hill: The News Makes You Stupid

I've been spending what is increasingly clearly too much time reading the news lately and think it might have a negative impact on my intelligence. Here's one example of why I think this, taken from local news:
A teenager accused of going on a rampage at a gay bar with a hatchet and a gun sometimes glorified Nazism and had a swastika tattoo but never previously expressed any prejudice toward gays, friends say.
I'm sure he was the tolerant, sensitive, pro-gay-rights, secure-in-his-own sexuality kind of Nazi. Thanks Forbes for filling us in. Even if his friends are in fact ignorant enough to believe this, I'm don't see how this is newsworthy. Here's another bit from international news
The United States is expelling a Venezuelan diplomat after the Caracas government Thursday ordered an American naval attach to depart for alleged spying. ... State Department Spokesman Sean McCormack did not accuse Figueredo of any wrongdoing and did not explain why she was designated for expulsion other than to say she was the "most appropriate" choice. McCormack said the United States does not like to engage in what he termed "tit-for-tat diplomatic games," but said that Venezuela initiated the action and U.S. officials were forced to respond.
Copyrighteous spokesman Benjamin Mako Hill reminds McCormack of the definition of "tit-for-tat diplomatic games."

Daniel Stone: [tech] i am too elite to understand your design process

Usually I try not to get involved in the mind-numbingly pointless desktop wars, but Benjamin produces one of the most flawed arguments I can remember having seen.

Fair enough that you want to use the keyboard. I'm much quicker on the keyboard than on the mouse, and presumably so are you. After a long time using computers, and CLIs in particular, this is no surprise.

Most people are not this way. I can assure you that my mother is not this way, and prefers the comfort of the mouse whne navigating around. I don't see what your assertion that 'stating that a typical Gnome user does not want keyboard is simply false' is grounded in. Have you done studies? Do you know the exact breakdown of geeks vs normal people using GNOME? Remember that it's not just for the cool kids who can write their own code anymore -- I know plenty of 'normal' people using Linux now, typically with a GNOME-based desktop.

But, it's 'but don't say it is for users sake' that really throws me. Why do you think they do it? For fun? To see how many people bitch on blogs about it when they do it? Because they hate people and this is the best practical way to take out their anger on the world? They've done studies on their userbase (e.g. the Sun usability study), and they're doing what they believe is best. This is true of every desktop: they simply do what they believe will produce the best desktop for their userbase. Sometimes this results in decisions which people think are bad. Fine then, so be it. This is what's happened here, as opposed to your suggestion of a deep-seated hate for all their users, individually and collectively, or something.

Your claim to be a normal user is simply false. I can't claim the same thing. A good rule of thumb is that if you're capable of writing the application you're using, then you're not a normal user. In some cases, this means you're not its target userbase (not always: this holds more true for, say, Evolution, than mutt).

If you have truly constructive suggestions (not using the words 'crap' and 'simply false'), then provide feedback to the developers through the appropriate channels. If you don't think GNOME is for you, try some of the many excellent other desktops (KDE, XFce, GNUstep, whatever else is around). If you like GNOME otherwise and would like to make a concrete improvement, then submit patches.

Daniel Burrows's point was simple: you are probably not GNOME's target audience (this is not specific to benj; if you are reading my blog, then odds are you aren't GNOME's target audience). So, assertions that they've got it all wrong and they should listen to you on matters of interface design aren't really going to be helpful, because you just aren't the primary target market.

PS: Just because you write it in Latin, doesn't make someone else's argument a logical fallacy.
PPS: If you're still having trouble wrestling with this entry, imagine instead someone bitching about Debian being crap because they don't include the proprietary Flash plugin, a bunch of closed-source games, VMware, etc. That's not what Debian's about. Make sense now?

David Pashley: Trading_A ert starting 01-25-06

EVER-GL0RY_INTERNATI0NAL_GR0UP_INC. (E.G.L.Y) WE CALLED IT AT .38 CENTS NOW ITS AT $2.00! WITH ALOT MORE ROOM TO MOVE! WE EXPECT IT TO BE TRADING AROUND 5-6 D0 ARS BY EARLY NEXT MONTH! A MAJOR PR CAMPAIGN IS STARTING WEDNESDAY FOR THE REST OF THIS WEEK INTO THE NEXT!! THIS ONE IS GOING BACK ON THE MOVE! GET IN EARLY!! ** ACT QUICK AND TRADE OUT THE TOP ** About the Company: Shares issued and outstanding: 10.5mi i0n Profits for the 9 months ended Sept, 30 2005: $1.1mil This means that this company is earning over 10 cents per share in only nine months! In our view, this in itself is reason to buy. About the Company: EVER-GL0RY_INTERNATI0NAL_GR0UP_INC(E.G.L.Y) is an American public company engaged in international business and garment manufacturing mainly for high grade well-known casual wear, outwear and sportswear brands such as Reebok, North Face, Levi's and many more. It has a wholly-owned subsidiary company in mainland China-Nanjing Goldenway Garment Company Ltd. The company has over 700 team members, total assets near US$7.5 mi i0n, and annual revenue of approx. US$8 mi i0n. We here at Smart Money feel that the fundamentals of this company and the hot market sector make it a winner. But what is really going to make this company take off is expected BIG NEWS! Please go read the latest news now!! We all know it's the big announcements that make these gems move. We believe the time to get in is now. Watch this one go higher and higher all MONTH! **GOOD LUCK AND TRADE AT THE TOP**

3 February 2006

Jonathan McDowell: Friday fun with consumer routers

I'm such a funster. It's Friday night and I've spent it fighting with consumer routers in an attempt to get my home setup sorted out a bit. And I've made some progress, but it's taken a while. My old setup was an Asus WL-500g with a USB Speedtouch attached. This was running a hacked up version of Oleg's firmware, with kernel 2.4.20 (ewwwww) and the userland Speedtouch pppoa3 driver. It's been up 253 days as I type, which is quite impressive IMO. The plan was to get something else doing the same job so that I could try and get more up to date firmware on the Asus (probably OpenWRT) and give it to my parents as a wireless access point / print server. First try was my Netgear DG834G. Unfortunately the ADSL interface on it doesn't want to sync to the line for any length of time. I don't really want to faff with it at present, so I gave up on that. I do want to try and get this sorted, as it has a native ADSL interface, but the AR7Port appears to have stagnated a bit. Next was the Netgear WGT634U. I'd built an OpenWRT image for this and tried to flash it earlier in the week, but messed it up and bricked the router. So opened it up, hooked a serial console up and managed to restore it easily enough. A little bit of frobbing and I had it recognising the Speedtouch. Result. This has a 2.6.15.1 kernel, which means in kernel driver goodness and nice and up to date. Plus OpenWRT makes it easy to add various nicities like radvd and dnsmasq. I'm currently using this solution and will keep an eye on it over the weekend before reinstalling the Asus. Of course my home network has become simplified a bit by the fact I no longer factor the NTL connection into it. That's always just been a backup thing since getting ADSL from Black Cat (mmmm, IPv6 goodness) and I've decided to finally ditch it soon. However I might want to add a modem to the WGT634U at some point - probably using a USB serial dongle I guess, as I don't think the internal ports do hardware flow control. That's a battle for another day though. I also managed to get rid of a whole load of computer junk that was working but unused, thanks to Norfolk FreeCycle. Kathy will be pleased when she comes back from London tomorrow. :)

Lars Wirzenius: Rant: Secrets of Successful Programmers

The Seven Secrets of Successful Programmers article was on reddit today. I found it to be simplistic enough to be inane. Also not particularly good advice in all parts. For example, the article says that "[m]ost compilers will strip the comments from the executable program". Strictly speakig this is true: there is probably one or two compilers out there that retain comments in the binary code they put out. They're so rare, though, that it is quite utterly pointless to say anything about it. Anyone who needs to be told that comments don't impact performance or executable code size needs a course in basic programming, not secrets about being successful. "A good indication that you have got the level of comment right: could someone understand what your program does if all but the comments were removed?" I disagree with this: better advice would be "could someone understand the code if you remove all the comments?" It's the code that gets executed and so it is the code that should be used to communicate and not comments, except when code can't be made clear enough. For example: if you write a wrapper around malloc to check that it succeeds, a comment explaining why it is acceptable to just kill the application on failure would be good, and very hard to express with code. "In particular any code branch (an IF..THEN...ELSE construction) and any code repetition (a WHILE...END WHILE construction) should be indented so that it is easy to see where they start and end." Gee, that surely is a big secret that only successful programmers know about. "Expect the unexpected and deal with it. Before you open a file, make sure that the file is present." That's not a good way to deal with it. It's a race condition just waiting to blow in your face. The correct way is to attempt opening a file and then deal with an error if it failed. "Name your variables to aid readability. - - - The key is to be consistent and to be as informative as possible." Packing as much information as possible into a variable name can be a hindrance to readability. Too many people read advice like this given in well-meaning but misguided articles and then go on to name loop variables nElementIndex. The loop gets more readable if you name your loop variable just plain i. The loop variable is not significant enough to warrant all the attention from a reader that a long name requires. A short name in this context makes it much faster and easier to glance at the loop and see what it is doing. Obviously names with scopes longer than a (fairly short) loop need to be more descriptive. Here's my seven secrets of being a successful programmer.
  1. Learn to worship the goddess of simplicity. KISS a lot. This is much harder than it seems: it's more difficult to be simple and good than to be complicated and adequate. Simplicity starts with the specification of the program or system, and needs to permeate the design, and the implementation, at every step.
  2. Pick good tools, and learn them well. You need to know many tools, and know them well, or you'll waste time on doing unecessary things. Tools include software programs, books, algorithms, data structures, and mental models. Learn editors, programming languages, Unix command line tools, and so on. Learn at least three different paradigms for programming.
  3. Learn how to learn and keep on learning. New stuff is invented daily, and you need to keep up with it, or you'll end up as useless as a COBOL programmer doing a web shop.
  4. Develop debugging muscles. This is perhaps the hardest thing to learn, since no-body seems to be teaching it. You'll be spending most of your time doing it.
  5. Learn how to do testing well. Unit tests, test driven development, black-box testing, integration testing, regression testing, test automation, ... There's lots of ways of reducing the likelyhood that code escapes your hands with bugs still in it. It will inevitably happen, but if you know what you do, you can be better than most everyone else. The industry standard for commercial, proprietary code seems to be around 20 to 30 bugs per thousand lines of code; the Linux kernel has less than 1, and is known as a cesspool of bug-infested muck, so surely you can do better?
  6. Learn to write prose well. Then write a lot. If you can't write a README, a manual page, or the specification for your next work project, who's going to know about your great programming?
  7. Oh, you need to learn how to program well as well, and that isn't so easy either. Knowing how to program well merely isn't enough to be a successful programmer.

Decklin Foster: New blog

Okay, I m putting this blog on Planet Debian... now. The old one is not gone yet, because I m tired and I don t think I ll do it until tomorrow. In a fit of hubris, I wrote some software to run this blog (which is just a bunch of generated static files), called Mnemosyne. I was bored of PyBlosxom and it was slow. I believe Erinn said something like, now it s only a matter of time until I write my own RCS... If I get to that point I will really start worrying. If anyone is looking for something along these lines, please tell me what sucks and/or what is broken. Anyway, rather than categorizing things (ugh), I m just putting anything tagged planet in the feed that goes here. I think this will work better. Oh, and I almost forgot: my blog now has automatic flooding-prevention. Nothing older than a day gets in this feed. I don t know why feeds in general don t have some sort of time limit.

2 February 2006

Uwe Hermann: The new German digital identity card, and what the government plans to do with your data...

What kind of sick joke is this? The German government seems to want to sell the personal information of 80 million German citizens to interested companies. They wanted to introduce a new digital identity card with biometric data and possibly also an RFID chip on it for quite a while now (you know, all those evil terrorists out there, blah blah blah). And now they dream about selling the data records stored on that card for 40-50 cents per record to interested companies? WTF? I don't think I have to elaborate on the abuse-potential this can have, and on what this means for the privacy of all 80 million citizens affected... The above article and also another article are a bit fuzzy on the exact details so we'll have to wait until more info is published/leaked, but this is definately an alarming trend/discussion... (via Anarchaia, Fefe, netzpolitik.org)

David Welton: 30th Anniversary of "An Open Letter To Hobbyists"

Bill Gates wrote his famous letter thirty years ago, tomorrow: http://www.blinkenlights.com/classiccmp/gateswhine.html In the meantime, people are still missappropriating software, the "hobbyists" have returned with a vengeance and have built software that rivals or bests Mr. Gates', and the economics of the industry still aren't entirely clear. What economist would have ever predicted the success of Open Source? They're certainly fascinated by it now that it's here.

Pablo Lorenzzoni: My girlfriend enters, I leave

Since January 13th I am on my last vacation-time of my last year as a Radiology resident. I've received my certificate and have already been hired to work as a radiologist! Things are going fine and I even enjoyed some summer days on the beach. Pictures for these will be posted to my gallery soon.

Yesterday was my girlfriend first day as a Public Health-Social Worker resident and we gave her a "surprise party" both in celebration for this and for her birthday (that was on Jan 26th). We've planned this party this whole month, and since she is "too aware of everything around" it was not an easy task. She was really surprised and have not suspected anything. Pictures are already in my gallery. So, for the next two years, it's her turn to be somebody's slave. My residency took me three years (since radiology program is a bit longer than public health), and in the exact moment I finally stepped out, she steps in. All the patience that the last three years demanded from her are now my task, since I'll be demanded the same.

I am just too happy for her. Being a social worker without a residency in Brazil is living with an unfair sallary and a whole lot of poverty around. After these two years, things will be better for her (and for us), at least wrt the sallary.

Meanwhile, I've been working in flumotion and icecast2 for the Free Software Television - thanks wingo and karlH, for your patience -, watched the launch of another free software based internet TV called YSTV, released more videos from fisl6.0, and helped the Program Committee of fisl7.0.

WRT this last, we've closed the papers review process which is mainly driven by a computer calculated score based on reviews given by selected people. We do not interfere with the process, except that some of us were reviewers also for some tracks. We've notified the chosen and within this week they have to confirm, then we'll start publishing a partial program... We're using a home made free software we keep in our subversion called papers.

1 February 2006

Erinn Clark: Standby passengers love me

Usually waking up an hour after your flight has left is a bad sign -- like, a sign of imminent doom, that things are about to get horribly worse. At least, that's how it usually feels and this being the third 6:25am flight I missed in 2005, I was well-accustomed to that feeling. Luckily I got re-routed through Tampa, then Los Angeles, and I finally ended up in my San Jose, CA destination with a lovely Val awaiting me. She seemed shocked; said I was far shorter than she expected, then she realized I was walking with a group of Stanford basketball players and that, though they dwarfed me, I still managed to have at least an inch on her. (Val is "5'9 and three quarters!", according to her.) A lot of the visit was a bit of a blur. After arriving, I quickly showered, and was promptly told by Val that my skater rat apparel just wouldn't do and that our New Year's Eve party was meant to be dressy. A black shirt and some funky necklace managed to placate her, luckily, as well as my excuse of having just flown in from out of town with no instructions to dress pretty. Off to the party, where I met a load of brilliant and entertaining people, including Lina who was positively heartbroken by the lack of fireworks.
Lina and me in the ballpit The next day included eating vegan duck for breakfast, visiting Google offices for fun (not profit), getting lost with Val in some frightening redwood forest, Indian food in SF with Janet, Jen, and Val. Actually, the Indian food might deserve an entry of its own -- the owner of the restaurant actually spoonfed me, which was bizarre and funny. Afterwards, we went to visit Kristal and laughed at various things, including the most hilarious website ever. "Oh yeah baby, check out my throughput." Of course, that feeling of imminent doom was not entirely wrong. I contracted some kind of California Plague while there and spent my flight back doubled over with body aches, fever, and chills. Overall, well worth it. Happy New Year, everyone!

Next.

Previous.