My contribution to the programming contest held by the German FreiesMagazin got a third place out of 13 submissions. This is quite good, considering that I only wrote a small wrapper around the generic game-tree Haskell library by Colin Adams, and hardly gave any serious thought into the problem.All entires are available for download. I have annotated the table containing the results with the line count as given by ohcount:
| W | D | L | Points | Language | Code lines | ||
| 1. | Kroschinsky | 904 | 242 | 54 | 2954 | Python | 589 |
| 2. | Schulz | 858 | 263 | 79 | 2837 | Python | 544 |
| 3. | Breitner | 837 | 281 | 82 | 2792 | Haskell | 264 |
| 4. | Jackermeier | 754 | 306 | 140 | 2568 | Perl | 183 |
| 5. | Roth | 574 | 338 | 288 | 2060 | C++ | 1731 |
| 6. | Eitel | 567 | 355 | 278 | 2056 | Ruby | 352 |
| 7. | Reichel | 342 | 328 | 530 | 1354 | Python | 266 |
| 8. | Zimmermann | 303 | 400 | 497 | 1309 | Java | 1070 |
| 9. | Apensiv | 190 | 353 | 657 | 923 | Perl | 410 |
| 10. | Maraun | 150 | 300 | 750 | 750 | C++ | 690 |
| 11. | Golemo | 131 | 319 | 750 | 712 | Python | 104 |
| 12. | Ziegelwanger | 120 | 337 | 743 | 697 | C++ | 868 |
| 13. | Fuest | 32 | 254 | 914 | 350 | Python | 645 |
Someone recently asked me a few question about corporate participation
in open source communities and I thought I'd share my thoughts on this
topic here.
Are there differences between an open source project done for a
corporation and one done for personal reasons?
There are many different ways to run an open source project, led by a
corporation or by someone else. Some projects that are run by
corporations have few outside contributors. This is often the case with
projects that require copyright assignment (i.e. contributors have to
assign their copyright to the corporation). These projects may not gain
all the benefits of a true open source community, such as outside
contributions or high levels of peer review. However, they may still be
very successful projects and may have high levels of quality.
Projects done by a corporation may have better planning and may have
more resources than other projects. When a corporation, especially a
large one, starts or becomes involves in a project it can also give
credibility to the project and attract a lot of interest to the project.
This means that projects done by corporations may have a bigger impact
and might also be more visible in terms of publicity.
How do corporations successfully utilize an open source
community?
Corporations can benefit from an open source community in many ways.
For example, they can often find people who will review their code or
make code contributions. If people become excited about what the
corporation does, they might also spread the word and create viral
marketing for the corporation. Establishing a community around one's
project is often also a good way to identify people to hire since you
already have experience working with them and know their capabilities.
How do open source communities successfully utilize their corporate
relationships?
Corporations can make several unique contributions. For example, large
corporations can use their name to attract attention to a project and
give it credibility. Furthermore, corporations have some capabilities
that personal contributors often don't have access. They may have
special testing equipment (such as servers with thousands of CPUs or
hard drives) or access to a testing lab where a professional usability
test can be done. Finally, corporations can sponsor developer
conferences, which are typically very effective means for the community
to come together and work on activities together.
It is important for projects to remember that corporations are not
charities and that they will invest in an open source project for a
reason. Therefore, they have to ensure that the corporation will get
tangible outcomes from their involvement or sponsorship, otherwise they
may not stay involved in the long run.
What are the risks for a corporation when working with an open
source community?
One risk is that the code (or other form of contribution) is not
accepted. However, this is a risk any contributor to a project faces.
Before making any sort of contribution, it is therefore important to
become familiar with the project and its culture. Every project has
their own "do's" and "don'ts" that have to be followed.
Another risk is that a corporation will invest in a community project
that later on is abandoned by the community. However, in this case, the
corporation could take the lead and continue to maintain the project.
What are the risks for an open source community when working with a
corporation?
One potential risk is that the corporation will assert too much control
over the project. It's important for projects to ensure that the
community as a whole has influence over the direction of a project
rather than one particular player.
Are certain certifications needed in order for someone
to participate in open source projects for a corporation?
Certifications are not needed to get involved in or start a project.
However, it is important to become familiar with the open source
community and the project one wants to contribute to. A good first step
is to read the book Producing Open Source Software by Karl Fogel which
is available online. As a next
step, the community in which someone wants to get involved in should be
studied, for example by reading the mailing list archives. This will
help to become familiar with the culture of a project as well as the
mechanisms to contribute to the project.
How do open source communities communicate and collaborate with
corporations?
In the best case, employees from corporations would interact in the
project like any other contributor. That is, they should use the
existing communication channels, such as mailing lists, IRC or developer
gatherings. Many companies are good at working "with the community" but
the ideal scenario is for a company to be part of the community and to
work "in the community", just like other contributors. This is the most
effective way for them to make changes to the code and project.
Of course, not every corporation will get involved in a project
directly. That's why it makes sense for projects to collaborate with
corporations in other ways. For example, projects can talk directly to
companies to get samples of their hardware in order to add support for
them in their software. Projects can also work directly with
corporations to find out how their project can better meet the needs of
enterprise users.
I've had a few enquiries from my blog post
about trying to control dumb USB-powered lights.
I thought I'd just write something up to save myself replying to any more
emails.
Yes, it's doable. Finding a USB hub that will do it is another story. From
my own research, I found someone else who was doing something with
USB-powered devices (I can't remember what now), and he had been using
a what is now a Linksys
ProConnect USB 4-Port Hub USB 2.0
I'd first tried a couple of random cheap hubs from Fry's with no success
(fortunately I was able to return them) before I determined that the Linksys
one would definitely work. The downside of the Linksys hub is it requires
external power. It was also one of the more expensive USB hubs on the
market.
One of my co-workers, who is an Electrical Engineer by education, said that
the USB spec requires the functionality that I wanted, but most chip
manufacturers had cut a corner in the interests of cost saving. The Linksys
hub uses an NEC chipset. Every other hub that I could get my hands on had a
Genesys Logic chipset, and did not work. You can tell if you've got a winner
by the output of lsusb -v. If the hub characteristics include
"Per-port power switching", you're in business.
To do the actual port powering on and off, I'm using a setuid-root hub-ctrl,
wrapped with a small shell script, which has the USB ID of the hub and the
port number the lights are plugged into hard-coded in it.
In my searching, I found also that it may
be possible to do with Python, but I did not invest the time trying to
find out.
Chris,
Please note that the method you recommend for activating libpam-cracklib only
applies to lenny and earlier; it's obsolete for the upcoming squeeze release
(and in Ubuntu 8.10 and later), where libpam-cracklib is integrated with
pam-auth-update
and will be autoconfigured. Running your sed command on a squeeze system will
break pam-auth-update integration, and cause the admin headaches going
forward if they ever have occasion to use anything other than pam_unix for
authentication.
So for a squeeze system, this should be:
apt-get install libpam-cracklib
... and you're done!
Actually, the package defaults in squeeze are stronger than what you've
listed: libpam-cracklib will set minlen=8 by default (instead of the
uselessly-weak minlen=6), and coming soon, pam_unix should default to
sha512 instead of md5 for password hashing.
Hi! I ve been away, but as you might have seen from identi.ca, I m back but busy.
You may remember from posts such as Reject the Term Extension Directive and Improved Telecom Package Passed by EuroParl that MEPs can influence FOSS laws in many ways, because a lot of our copyright and patent laws are international now. Last time around, I compiled euroVote: copyright and patents but I ve not had time this year. Thankfully, others have summarised them.
Mote Prime: Technology: Letter to MEPs on Software Patents Legislation summarises positions on the old swpat chestnut. European Parliament elections, the Green Party and free stuff By tom introduces the Green position. VOTE 2009: Spot the difference Lib Dem shocked and angered special: The Bristol Blogger shows me getting annoyed with the LibDems.
If you re in the UK, you can look up your MEPs on the ORG EU Elections Site which looks pretty accurate to me.
Anywhere in Europe, you can try to find some MEPs on the Free Software Pact country listing.
The "Sense about Science" group have
written about a ridiculous lawsuit currently happening in the
UK. The British Chiropractic Association has sued Simon Singh for
libel, based on an article he wrote in the Guardian newspaper in
2008. There is a campaign to express support for Simon and call for an
urgent review of English law of libel, and I have signed
the petition myself. The right place for scientific debate is out
in the open, not shut down by cowards who refuse to show evidence for
their claims and instead pay for lawsuits.
In the spirit of Thomas Limoncelli's Time Management for System Administrators, this is my checklist for setting up a new Debian system. I have added a few notes to the original list to justify their existence and to provide some background information.
Whilst you should avoid performing repetitive interactive configuration and defer to the multitude of tools designed for this task, constructing and sharing a checklist can still be an instructive step. It can also be useful in situations where a machine has already been partly configured for you.
/etc/apt/sources.list
Disable installation of Recommends:
echo 'APT::Install-Recommends "0";' > /etc/apt/apt.conf.d/90recommends
Ensure we are up to date security-wise:
apt-get update && apt-get dist-upgrade
Setup and configure locales first to avoid annoying Perl warnings. Don't choose All locales; you almost certainly don't want that.
apt-get install locales dpkg-reconfigure -plow locales
Install some essential utilities:
apt-get install vim-nox ntp openssh-server screen most tree bzip2 unzip moreutils dnsutils htop pwgen telnet manpages manpages-dev vrms acl gawk strace curl tcpdump
Before we create any real users, we configure PAM to reject weak passwords. Custom banned passwords can be added to the dictionary by editing /usr/share/dict/cracklib and running update-cracklib.
apt-get install libpam-cracklib sed -i -e 's ^password # \0 ' /etc/pam.d/common-password echo 'password required pam_cracklib.so retry=3 minlen=6 difok=3' >> /etc/pam.d/common-password echo 'password required pam_unix.so use_authtok nullok md5' >> /etc/pam.d/common-password(Edit: Please read this response from Steve Langasek regarding this modification on squeeze and Ubuntu 8.10)
Configure sudo. I prefer to create a new group instead of re-using adm as that is already used by logfiles.
addgroup rootusers adduser myuser adduser myuser rootusers apt-get install sudo echo 'User_Alias ROOTUSERS = %rootusers' >> /etc/sudoers echo 'ROOTUSERS, root ALL=(ALL) ALL' >> /etc/sudoers
First, install the mail packages:
apt-get install exim4-daemon-light bsd-mailx dpkg-reconfigure exim4-config
During the Exim configuration, choose Internet site and follow all the defaults, ensuring that you only listen on 127.0.0.1 and you are not relaying mail for any other domains.
We then configure forwarding to another email address so we don't have to continually poll this machine for issues:
echo 'root: you@example.com' >> /etc/aliases newaliases
Finally, we test mail delivery:
echo "Test 1 from $(hostname)" mail root -s "Test 1 from $(hostname)"
Stop Emacs creating backup files everywhere:
mkdir -p /etc/emacs/site-start.d echo '(setq backup-inhibited t)' > /etc/emacs/site-start.d/10no-backup.el
Configure Munin:
apt-get install munin-node echo 'allow ^123\.123\.123\.123$' >> /etc/munin/munin-node.conf /etc/init.d/munin-node restartFor baroque network configurations, you can generate the regular expression line with this script.
Configure molly-guard, a tool for preventing accidental shutdowns. As molly-guard cannot detect shutdowns initiated within a combination of GNU screen and SSH, we configure it to always query the hostname:
apt-get install molly-guard echo "ALWAYS_QUERY_HOSTNAME=true" >> /etc/molly-guard/rc
Monitor disk S.M.A.R.T. attributes:
apt-get install hddtemp smartmontools sed -i 's ^#start_smartd=yes start_smartd=yes ' /etc/default/smartmontools /etc/init.d/smartmontools start
Setup backups - I'm quite partial to backupninja because it automates most of the tedious SSH configuration. I adjust the time of the backup to when I'm likely to be around to fix issues and cut down on email noise by not reporting successful backups:
apt-get install backupninja hwinfo debconf-utils rdiff-backup sed -i -e 's ^when = everyday at 01:00 when = everyday at 9:30 ' /etc/backupninja.conf sed -i -e 's ^reportsuccess = yes reportsuccess = no ' /etc/backupninja.conf ninjahelper
Filesystems
Reboot. You should be prompted by molly-guard before your computer restarts.
So, the latest buzz on the web is all about Google Wave. I would urge everyone developing stuff for the Internet and technological people depending on the Internet for their daily work, to watch that introductory video. The concept is frankly mind-blowing. If this is done right and embraced by all the right people, Google Wave could be the new platform concept that could be used to create new generation of email, instant messaging, collaboration software (CMS, wiki, Sharepoint, workflow, ), blogging software and forum software and do all that while integrating back with current technologies, like Twitter and RSS feeds.
It remains to be seen what parts will be open source and federated and what parts will remain Google-only services. For example, I am convinced that Spelly the spellchecker bot and Rozy the automatic translation bot will be hard to impossible to federate. This being Google, it is practically a given that the code will be good, but a bit hard to understand and contribute to. Management of the free software community and proprietary community relations will likely be the key to the success of this technology.
I love the technology itself - imagine that you have a web blog. The blog software makes each your blog post a wave. When people leave comments on the post, these comments show up in your email inbox. You can reply to people right from there. By default your replies will show up on your blog and also show up in the email inboxes of the commenter, but you also have the option to mark your reply private and only send it to the commenter. Also it looks to be possible to choose to host all the data yourself or to make Google host all your blog and comment data and make your blog just be a frame where this data is displayed in, possibly allowing you to use very, very minimal system resources to maintain the blog even in a case of Slashdotting. I hate blogs without comments, let s replace them all.
I would also love to see replacements to Microsoft Exchange and Microsoft Sharepoint be built using Wave technology with a full support to ODF if possible. Imagine collaborative document editing in OpenOffice using this technology in the backend. It would be one huge project, but it should be possible. Companies currently pay hundreds of thousands of dollars to set up MS Exchange+Sharepoint+Active Directory to be able to simply share documents in their Intranet and see who edited a document (no live editing, no change tracking). It is possible to make a much better product with ODF and Google Wave and it is possible to earn a bunch of money supporting such a product for companies that need support contracts. If it would be possible to licence spellchecking and translation services from Google in a way where a box is installed in customers data centre and the data to be spellchecked and translated never leaves that data centre, then I believe that people would be willing to pay for this superior spellchecking and translation experience.
We need open source products that people can depend on. We also need ways for business people to sell services with an easily visible added value so that they can make money and contribute their developer work hours back to the open source projects. We (the free software community) have great ways to get a positive feedback loop with users that can develop software, but when our users have no interest in developing anything, the feedback loop breaks and free software growth slows down. There is a lot of untapped potential in this area - we just need to find a way to convert needs and demands of non-developers into code.
I m gonna stop this rant before it diverges even further off topic, but the main point is - go watch the Google Wave demo, read the tech specs and think how you could integrate that into your free software project.
Useful wave discussions (will update as I find more):
During this past weekend I tried to get Windows XP, Windows 7, OSX, Debian, and Ubuntu all on one machine. Due to some mishaps, driver oddities with Windows 7, and other things, I had to install certain operating systems multiple times. Now, the problem is, each operating system has it's own peculiar way of loading. Linux uses GRUB, Windows XP has NTLDR, 7 has the Windows Boot Manager, etc. Most of these operating systems also decide it would be helpful for the end-user that when his computer reboots, it can actually load the new OS. That's great, but I already have a bootloader.
An old friend is ranting about localization.
I first considered not really reaction to Joey's post, mostly because
he has very true points...and particularly when he has about the same reaction than mine about a recent post in ou mailing lists.
So, I will stick to react to one part of Joey's post...the one I consider really inaccurate.
"everyone uses the software in English anyway"
Really, Joey, really, that's completely untrue.
Of course, I do live in a country that very well known (or at least that has the reputation) for being deeply ignorant in English language. But, really....*all* computers I see around me, both in my personal life *and in my professionnal life* are nearly completely localized.
It's probably now well know that I spend most of my professionnal
time....providing desktop systems (or managing the people who provide
them) to users in ONERA, "the French Aerospace Lab". That means about 2000 users in a scientific environment where the use of English is much more developed than the average environment. Most of these users speak a fairly decent English and are perfectly able to understand that language in some way.
About 80% of these systems are Windows-based and 20% are
Linux-based. Probably more than 95% of them are localized in
French. Even on Windows systems, we mostly integrate free
software. And for *each* of them, the most important feature we need,
besides software being free, is it to be localized in French.
I bet our friends from Extremadura can say the same. The success of Linux-based free systems there also happened because the software is available in Spanish. And, of course, there are tons of similar stories and counter-examples (M nchen, Bhutan, Venezuela, etc.).
So, really, please don't spread out that idea. Oh, yes, geeks *do* use their software in English (and, even here, I need to be convinced if I remember well what I saw at conferences in Germany or Spain, for instance). And, yes, it's very well widespread among geeks that using software in English is "better" or "easier". Which I indeed always fight and will fight until I die..:-).
We certainly agree that these l10n needs put a high load on
development and sometimes slow it down. and, for sure, we sometimes
need to make a balance and I really thank you for giving me the credit
to try doing that balance.
Anyway, all this (including your rant) had to be said and it's
interesting to have that small discussion (I just should not start writing down a blog entry at 23:00...:-))
See you soon, hopefully, Joey !
In this post I will say some things about localization that I've never felt
it was politic to say before. (It still isn't, but what the hey.) But I
first want to mention that one of the reasons Christian Perrier is awesome
is because he manages to steer projects in ways that avoid (most of) the
problems below, and because he has managed to scale rather impressively
far. But not far enough that these things haven't gotten under my skin.
So, I hate localization. Hate, hate, hate. I wish it would die. I wish
everyone spoke the same language. I hate that we have to be politically
correct about it, to the point that even if everyone does speak English
(hello, Denmark?), we still have to
worry about localization into their native language. I especially hate
that, after we waste time and resources doing that, everyone uses the
software in English anyway (hello, most of Europe).
I hate that the typical best effort localization of software is typically
so incomplete that it's not actually usable by people who really do need
the translation. Either because "best effort" == 80% translated, which is
sometimes worse than 0%, or because the documentation doesn't get
translated too. And that even with what we consider a complete translation,
there are still all sorts of English bits that nobody would ever consider
translating. Such as the names of commands, of command-line switches, of
markup keywords and configuration files.
I hate that translating software and documentation always involves bolting
an enormous, nasty build system onto its side, and that the bulk of
translations always greatly outweighs the size of the code. I hate that
these systems constantly produce deltas that I have to avoid cluttering my
commits with. I hate the expectation that every programmer somehow become
an expert in internationalization, rather than letting them devote their
time to something they're good at.
But none of that is what really bothers me about localization. What really,
really bothers me is that I often see the need to localize code inhibiting
that code becoming better. Just two examples:
For the past few days Edinburgh has been experiencing a mini-heatwave. This is mostly pleasant, but the downside is that I've become sunburnt and bitten by many insects.
Happily I've discovered that the mint plants I've got growing beneath my bedroom window are antipruritic ("anti-itch") which solves both problems.
Aside from the heat I've had a busy weekend wiring up some Lisp code to serve as an XML-RPC server, so that I can carry out some functions remotely.
I'm almost tempted to package the s-xml-rpc library if only locally, but I'm not confident I know what I'm doing. I mostly unpacked the source beneath /usr/share/common-lisp/source/s-xml-rpc and fiddled until things started working by magic.
In addition to getting more hooked upon Lisp I've spent a while tidying up obsolete pages on my websites, unifying services, and giving a minor overhaul to the appearance of things.
ObFilm: Terminator Salvation
I've been using (and recommending) geany for some time, it's a far nicer and far lighter editor than gedit and has excellent syntax highlighting and symbol browsing support. One feature it was lacking has now been fixed in 0.17 - clear, simple handling of debian/control files. It's a real bonus for packages that have lots of binaries built from a single source - each Package: stanza is a separate section in the symbol browser and makes it trivial to skip between stanzas. gedit doesn't have a symbol browser available, even as a plugin, the perl syntax highlighting in gedit is unusable to me and anjuta is just too heavyweight and bulky for perl packages.
This weekend I implemented an idea I had some weeks ago: sending regular mails with the translation status and the contents status of debian-edu-doc to the Debian Edu mailinglist, in the hope this would motivate people to finish the documentation and its translations. Currently the package contains four different manuals, translated in up to 6 languages: the old Debian Edu etch manual, the new Debian Edu lenny manual and manuals for teachers using Rosegarden and Audicity. All four are being written on wiki.debian.org, then exported to Docbook, then .po files are created with the great po4a tool suite. Those .po files are kept in svn of the the debian-edu-doc package, for translators to edit. Detecting missing or half finished content is done by putting the string "FIXME" plus a description what to fix in the wiki text. Then a small script is run by cron every 2nd and 4th sunday of the month, which outputs the translation status and greps for FIXME and formats this nicely. The result looks like this: The (translated) debian-edu-lenny manual as PDF or HTML is available at http://maintainer.skolelinux.org/debian-edu-doc/
To understand this mail better, please read /usr/share/doc/debian-edu-doc/README.
This mail is automatically send by a cronjob run by Holger Levsen every two weeks. Please send feedback, suggestions, flames and cookies via this list.
debian-edu-lenny-manual.de.po: 545 translated messages, 193 fuzzy translations, 220 untranslated messages.
debian-edu-lenny-manual.es.po: 85 translated messages, 204 fuzzy translations, 669 untranslated messages.
debian-edu-lenny-manual.fr.po: 447 translated messages, 279 fuzzy translations, 232 untranslated messages.
debian-edu-lenny-manual.it.po: debian-edu-lenny-manual.it.po:7683: end-of-line within string
debian-edu-lenny-manual.nb.po: 711 translated messages, 159 fuzzy translations, 88 untranslated messages.
----------------------------------
http://wiki.debian.org/DebianEdu/Documentation/Lenny//Features
FIXME: describe new features in 5.0.1+edu0 here.
----------------------------------
http://wiki.debian.org/DebianEdu/Documentation/Lenny//Requirements
FIXME: a description of main-server and thinclient-server is missing.
----------------------------------
http://wiki.debian.org/DebianEdu/Documentation/Lenny//Installation
FIXME: probably each paragraph on this page needs to be (slightly) rewritten for lenny.
FIXME: describe PXE installation here, if its only two sentences, then they should be here.
FIXME: path to preseed file location missing
----------------------------------
[...]
====================
24 FIXMEs left to fix
====================
Debconf9 is coming. I'll be there and will have a short trip to Coruna to visit my friend and to Madrid to visit some museums, before Debconf.

Next.