Search Results: "sto"

5 November 2006

Antti-Juhani Kaijanaho: If I were American

… which I certainly am not …
What American accent do you have?
Your Result: The Midland
“You have a Midland accent” is just another way of saying “you don’t have an accent.” You probably are from the Midland (Pennsylvania, southern Ohio, southern Indiana, southern Illinois, and Missouri) but then for all we know you could be from Florida or Charleston or one of those big southern cities like Atlanta or Dallas. You have a good voice for TV and radio.
The West
Boston
The South
Philadelphia
The Northeast
The Inland North
North Central
What American accent do you have?
Take More Quizzes

Stefano Zacchiroli: versioning etc w bzr

Versioning /etc with bzr for fun and profit Since mid October I rented a room to Godog, here in Bologna (erm ... Italy :-)). Living with another DD so far has been utterly fun: our lives proceed normally, but when we occasionally met it's like hack time: brainstorming and implementation of the first hackish ideas that come to mind. The first idea we deemed nice to be implemented has been versioning /etc of our server (which we co-administer) with bzr. The requirements we set forth where:
  1. who is changing stuff should be somehow forced to document and commit its changes;
  2. automatic changes performed by package upgrades should be automatically versioned.
Our current solution consists in a couple of hacks: What's next? Well, Enrico already set forth the idea of an housewarming bug squashing party with all DDs living in the Bologna area. Sounds cool!

Mike Hommey: Meme time: What american accent do you have ?

What American accent do you have?
Your Result: The Northeast
Judging by how you talk you are probably from north Jersey, New York City, Connecticut or Rhode Island. Chances are, if you are from New York City (and not those other places) people would probably be able to tell if they actually heard you speak.
Philadelphia
The Inland North
The Midland
The South
Boston
The West
North Central
What American accent do you have?

Paul Wise: 4 Nov 2006

[RV Heraclitus SE Asia voyage: blog photos] We arrived in Kupang (West Timor), will be heading off on Tues 7th to motor through Indonesia and towards Thailand, hopefully visiting Roti, Flores, Sumbawa and or other islands in the area along the way. We've seen the ever-changing iridescent colours of a dying mahi-mahi, tuna blood, misty hills of a strange new land looming on the horizon, the unfamiliarly shaped Indonesian fishing and other boats, dead-calm seas in the early morning, a bossy French warship, customs planes flying overhead and calling us every day, the eerie blue of the deep ocean with floating jellies at a swim stop, taking down the mainsail in the channel, shitter crabs, oil platforms in the distance, flocks of flying fish getting out of our way during a calm sunset, bird-stowaways, the amazing crystal goo of phosphorescence off the bow, zillions of mini-buses (taxis) in Kupang and many other things. The open-sea sailing has been mostly relaxing, although we motored a lot of the way from Thursday Island. I'm hoping there will be some more wind, but it looks like we'll be motoring to Thailand (to arrive after Christmas), maybe against the wind since the season has changed. I'm looking forward to finally doing some diving and snorkeling during the next leg of the journey. If there are any Indonesian Debian or Indymedia folk that would like to meet up with me for a keysigning and or bintang, please send me an email and I'll try to let you know if an opportunity arises.

4 November 2006

Andreas Metzler: recent mutt discovery - spam tags

While browsing through mutt's manual I stumbled upon this:
~H EXPR - messages with a spam attribute matching EXPR.
After reading up on the spam tags I have changed my configuration to include
spam "X-Spam-Score: .*\\(\\+\\+" sa2
set index_format="%4C %Z % %b %d %-15.15F (%4c) %?H?[%H] ?%s"
This improves my mail handling a lot. I can limit my view to ~H sa2 to bulk-move the spam in my inbox to the bayes-learn-spam folder. And false positives are easily discernable since possible spam (i.e. something marked with X-Spam-Score: 3.0 (+++)) is tagged with sa2 in the folder index:
  27     Nov 04 jetlik jetlik   (2,8K) [sa2] SpecMoney stock

Clint Adams: You promised me Broadway was waiting for me, a freeborn man of the U.S.A.

I used to write shareware. Some people would just send money with a brief thank-you note. Some people would adopt the attitude that I was beholden to them once I cashed their checks. Since the customer is always right, I was faced with the pressure of customer-directed development. For that and other reasons, I stopped writing shareware. My next mistake was to release everything as postcardware. I did not immediately realize that this was wrong, and I enjoyed the influx of postcards from various places. Never underestimate the power of a simple 53-byte executable to make random people happy. In time, I stopped writing postcardware. Many years later, someone offered me something, with the condition that I do something in Debian that I would have not done otherwise. Another individual was offered the exact same inducement with the exact same condition. We both accepted. I kept my end of the bargain. The other guy reneged. Sometimes I wonder if he inadvertantly did the right thing. Since then I have been paid to work on free software, but never directly on Debian.

John Goerzen: Desktop Linux Opinions?

I'm brainstorming about ways of setting up Linux desktops machines for people used to Window users on a LAN. It could be any size of LAN.

I'd like people to be able to sit down at any Linux machine on the LAN and log in -- probably use a LDAP directory for that, and NFS-mounted home directories. I wouldn't want to NFS-mount the entire thing for performance reasons.

So, some of the things I'm thinking about are:


3 November 2006

Christine Spang: Boston November

Sailboats on the Charles River

Simon Richter: Optimisation

The correctness of an optimiser in a conforming C++ implementation is defined by the "volatile" keyword, that is, an optimisation is correct if it does not reorder, add or remove volatile accesses. However, people have come to rely on non-volatile accesses to be finished before a call to a function in another translation unit, even if you hand over a buffer which is then passed on to some external entity (syscall or hardware). Technically, this is undefined behaviour, since the compiler is free to identify the writes to the buffer space as dead stores and optimise them away. The correct way to fix the program is to declare the buffer volatile, but in a lot of cases, this requirement is too strong, for example in the case of TCP checksumming, where it is neither desired to force reading back the data, nor to build up the data in a temporary buffer and write in one go. What we'd need is something in between, that is ordered with respect to volatile accesses, but not internally.

Stefano Zacchiroli: my life wo caps lock

My life without CAPSLOCK Yesterday I spotted the option "Make CapsLock an additional Ctrl" in the Gnome keyboard preferences (Desktop > Preferences > Keyboard > Layout Options > Ctrl key position). I enabled it, obtaining the end of errors due to erroneous enabling of Caps Lock (as suggested to me by several people at DebConf6, but so far I've been too lazy to learn how to do it with xmodmap). In addition to feeling more relaxed when using Vim (we all know how dangerous can be Caps Lock in Vim!), using Caps Lock as CTRL is actually really handy, since key combinations involving CTRL can be formed moving the left pinky way less: probably a dream of all Emacs users out there :-) Now it is just a matter of training my left pinky to stop going in the bottom left corner of the keyboard ...

Adrian von Bidder: Microsoft and Novell

Joint press release from Novell and Microsoft. Took me by surprise, thanks for the link, Dani. Diagnosis: Microsoft is very afraid. It lost Massachusetts on the Office front, it lost M nchen on the Desktop front (financially, both cases are no big deal. But they created quite a media stir.), and Xen is the big buzzword in the server rooms, while I can't even remember if Microsoft has a similar offering... What will happen? Microsoft will remember that selling MS Office licenses, even if they run on their arch-enemy-OS, is better than not selling MS Office licenses. Dito for Xen. If played right, I think Novell might be in a very good position here. On the other hand, there are many, many companies who did business with Microsoft once and don't exist anymore. And probably Novell needs the money. Disclaimer: I can call myself Industry Analyst if I want to. Others do, and probably know less than I. Others don't but know a lot more. Update: After reading the coverage on Groklaw: Novell is a business, and it's their business decision. Maybe they end up as roadkill. And I'm not talking about the Linux market, but about Linux as a piece of software. And Microsoft officially investing in Linux technology (even with the goal to embrace and extend it) will still lead to wider Linux adaptation and the eventual breaking of the Microsoft monopoly.

Adrian von Bidder: Microsoft and Novell

Joint press release from Novell and Microsoft. Took me by surprise, thanks for the link, Dani. Diagnosis: Microsoft is very afraid. It lost Massachusetts on the Office front, it lost M nchen on the Desktop front (financially, both cases are no big deal. But they created quite a media stir.), and Xen is the big buzzword in the server rooms, while I can't even remember if Microsoft has a similar offering... What will happen? Microsoft will remember that selling MS Office licenses, even if they run on their arch-enemy-OS, is better than not selling MS Office licenses. Dito for Xen. If played right, I think Novell might be in a very good position here. On the other hand, there are many, many companies who did business with Microsoft once and don't exist anymore. And probably Novell needs the money. Disclaimer: I can call myself Industry Analyst if I want to. Others do, and probably know less than I. Others don't but know a lot more. Update: After reading the coverage on Groklaw: Novell is a business, and it's their business decision. Maybe they end up as roadkill. And I'm not talking about the Linux market, but about Linux as a piece of software. And Microsoft officially investing in Linux technology (even with the goal to embrace and extend it) will still lead to wider Linux adaptation and the eventual breaking of the Microsoft monopoly.

Maximilian Attems: Early Userspace Fun

History
For the sarge release official kernel-images from the newly formed Debian kernel team came together with initrd-tools. initrd-tools Maintainer was jbailey. It saw some care from tbm, vorlon and me before the actual release. Remembering the flow of bugs and installation-reports it accounted for a huge number of install failures plus lacked many features the Red Hat mkinitrd had. Ubuntu got hit more directly as hoary released with a newer kernel than 2.6.8 and due to the initrd-tools devfs requirement.
initramfs-tools originated out of the need of a direct replacement. Inspired by an initramfs OLS talk jbailey had the goals of boot-time hardware detection using the nice and neat features the Linux 2.5 branch incorporated: The sysfs support of the Linux drivers allows an neat userspace daemon aka udev to coldplug them. udev is the replacement of a maze of slow shell scripts called hotplug package. The second big feature is the new initramfs format (the curious may want to read Documentation/filesystems/ramfs-rootfs-initramfs.txt of any current linux-2.6 source). For a boot loader initramfs or initrd is the same fish. The smaller and more efficient in kernel code makes the difference. The initramfs gets loaded much earlier, due to being only an cpio archive and not an fs allowing it to completely rule the rootfs search and mount. One initial assigned spec had the name "easy NFS root". The LTSP guys joined in and showed interest in incorporating their work.
Technology
initramfs-tools got default in Debian together when the first common linux-2.6 (2.6.15) package reached etch, powered all the Ubuntu releases from Breezy on and is used by the grml live-cd. Since archive inclusion almost a year ago it got much better support of all the various linux boot parameters (see man initramfs-tools or the "official" Documentation/kernel-parameters.txt), keeps an backup initrd around and has better block-based bootloader support (lilo, ..). klibc has been ported to _all_ the Debian release archs where it is in use and compiles fine on m68k and sh.
The initramfs-tools early userspace is very flexible based on it's hooks for initramfs build and boot. Thanks to alphix for the help on shaping the building blocks. There are initramfs hooks in cryptsetup, evms, dmraid, firmware-qlogic, lvm2 multipath, mdadm, usplash, .. Reviewers, uploaders and sponsors included fs, jbailey and Sesse. Most of the time it is sufficient and easy to test changes in qemu images (See slides workshop early userspace). The best wish of an early userspace is not to be remarked - aka happy booting. Nevertheless thanks a lot for the public support: Achieving Xen Disk encryption support in Etch, Popping my initramfs cherry, ..
Future
The latest initramfs-tools release seems almost ready for the upcoming etch release. The bug reports coming over from installation-reports are happily rare. Although the uuid based fstab generation solution is not yet integrated in the debian-installer. There are one or two known nitpicks left-over in the bts plus one bugger: udevsettle may exit to early, when not all the discs are ready for use. For grub there is a fail-over net, but which does not account for a to early md or lvm2 boot hook. Future initramfs-tools development will focus on an optional small klibc based Modules=dep hand walking /sys initramfs generation allowing better embedded support. grub2 will present run-time assembly challenges for the initramfs.

2 November 2006

Joey Hess: embedded linux: the long road from GPL code release to Debian release

The redoubtable Harald Welte recently blogged some thoughts about lack of value contributed back to linux from embedded system vendors:
How many times have you seen some code coming out of a "GPL code release" from one of the many (mostly embedded) vendors that was acutally useful to be contributed back to an existing Free Software project, or even that spawned a new Free Software project? I for my part am certain to say: Zero. The actual number might be close to zero, but very small anyways.
I was thinking about this in the context of my nslu2 box, which just a few days ago passed an important milestone -- full support in the Debian kernel, including a free, rewritten ethernet driver, a fixed RTC, a free boot loader, and hopefully soon, even working LED support. The perfect embedded system. nslu2.jpg This is an embedded linux box that started out running a typically awful special-purpose, dead-end linux distro, and which has been rescued to be a general-purpose linux box running a standard linux distro thanks to the work of a great many people. The road from the original firmware to the current system has been long, complex, and hard; you can see glimpses of parts of it here and here. Here's the thing: This box is a computer designed from the ground up to run linux. Working code was made available by Linksys. As Harald notes, this code was probably "throw-away software", but if the box hadn't been running hacked up Linux in the first place, I dare say we'd not be running stock Debian GNU/Linux on it now. So there is a value in a vendor deciding to use Linux on their embedded system, even if it's only as a proof of concept that it works, as a first step along the long road to doing it right.

Gunnar Wolf: Oaxaca on fire

Before anything else: Please excuse some grammatical mistakes I've made in this post. You should understand the topic is really upsetting, and typing while searching for links, listening to news, and gathering the basic information for a five month old conflict is not exactly compatible with me spewing out proper English ;-)
Just to re-state the obvious: Mexico is, once again, on fire. This posting is mainly written with the Debian people in mind - An important number of them, after Debconf 6, went to visit Oaxaca - In late May, during the first weeks of this incredible, stupid and scary conflict we are now facing.
I've written in my blog every now and then about our political situation. Many of us had high hopes on our current government. We thought that the authoritarian regimes were a thing of the past, we hoped for real democracy, we hoped for a government that would honor human rights and solve long-standing topics for our society - Yes, we all knew president Fox came from a right-wing party, and didn't expect much advance in the social agenda -which many of us perceive as the real problem in Mexico- but still, hoped for openness and reconciliation with the past.
I won't repeat what I've extensively said over and over - The thing is, Fox's government continues to amaze us with its stupidity, with its near-sightedness, with its hypocresy. Fox's term is really close to an end - In one more month, the govt. will change hands to the first de-facto president since Carlos Salinas (going over another story we hoped to forget).
As some of you wittnessed, there was a popular protest taking place mainly in Oaxaca - Basically, the State's public elementary school teachers demanding better payment for their work. Such a protest is already a common occurrence in Mexico, as public school teachers are among the worstly paid workers (no wonder, then, our country is still undeveloped - Make public education worse, and you have the warranty of an unprepared, ignorant population). The teachers went on strike in early May, briefly returned to classes on late June to properly close the 2005-2006 lective year, but went back on strike afterwards.
Of course, the local government (Mexico is a federative republic, each state is autonomous and makes decisions independently) took a very long time to act - and acted the worst way possible: By sending policemen to forcefully throw the teachers from their camps in the downtown streets, with no negotiation, no answer, not a drop of common sense.
That led to the formation of the (pleonasmicaly named) APPO: Popular Assembly of Oaxaca's People - A group of people, partly formed by the unhappy teachers, mainly demanding the Oaxaca state governor to step down, after he proved he is inept for his office. And yes, I'm oversimplifying here, but I don't want to dig too much - There is fortunately plenty of available information in this regard.
That happened over four months ago. APPO kept control of the city. Nobody denies that this has caused Oaxaca, a city that attracts national and international tourism like few others in the country, a great deal of economic damage - Oaxacan people are, however, still sympathetic to APPO's demands. Governor Ulises Ruiz (from PRI, the party that ruled the country for over 70 years) has not been able to be seen in public in his state for some months already. The legislative power has also been unable to work properly, and the judicial power is half-dead, doing only its most basic tasks. Renowned jurists, such as Miguel ngel Granados Chapa, have repeatedly stated that this is enough for the Federal Senate to declare the governing powers in Oaxaca have disappeared - This would put an end to the conflict, leading to immediate elections, but the Senate has denied taking this course of action. Not only that, but the Federal government took the command of the local security forces, tacitly recognizing the local government is unable to coherently excersise their authority. After almost five months, last week they issued an unanymous -but mild- exhort, asking Ulises Ruiz to consider stepping down.
So far, 15 people have been killed in the different represive actions taken, first by the local police under local command, later by the local police under federal command, and starting last week, by the federal police. Today, it seems the army is getting in the conflict as well, despite promises of not doing so by the federal authorities - Of course, they have become masters in the art of breaking promises.
Why is the federal government upholding Ulises Ruiz? Simple: After the undeniable electoral fraud we had some months ago, there are too many indicatives pointing out that our (supposedly) elected president Felipe Calder n (FeCal, as he is better known as) will have a hard time becoming the president, and many people doubt he will be able to hold the authority for the six years. So far, he has shown no better aptitude as a statesman than Vicente Fox: Instead of boldly facing the claims of fraud, he just chickened out and has spent many months hiding from the public, appearing only for selected, friendly audiences. For many months already we have heard "Ulises ya cay , le sigue Calder n" (Ulises has fallen, Calder n is next). This country has not been so badly shaken in decades - Of course, Great Statesman Vicente Fox insists the country is in peace and there are no red spots. Fox even was stupid/blind enough to state that the problems in Oaxaca would be dealt with easily and successfully, just as the problems in Chiapas and Atenco were doing his term. During Fox's campaign, he promised to solve the centuries-old Chiapas problem (that resulted in the EZLN uprising in 1994) in just 15 minutes - He just has not had time to do so. Atenco? Yes, in 2002 an angry people made him step back from the most important project of his term (a new airport for Mexico City). In May 2006, Atenco sprang again to the news because of a massive repression - I'm not going into details on Atenco right now, as it would be off-topic, but you can look at my article in FeCal.org.mx or watch a very strong video by Canal Seis de Julio (both in Spanish only) for further details.
Last Friday, however, something was different. In a repressive action, a USA citizen, the Indymedia reporter and cameraman Brad Will was killed by a paramilitary group. Even more, he was killed while doing his work, and we can clearly see this evidence on his last tape. Of course, the US ambassador issued a warning, asking the US citizens not to go to Oaxaca. And, as Lorenzo Mayer says, hay de muertos and muertos - There are different categories of dead people. A highly visible US citizen is more important than the other 14 dead Mexicans, and now the Federal Preventive Police is clashing in Oaxaca.
What should be shocking, but is not so much to those of us who know this beaten country, is the attitude of the authority when taking the city. After five months of occupation, the Oaxacan people have got used to living with APPO - be it for good or for bad. Tourism has diminished, but the people's living sources have not been attacked. Of course, as soon as the Federal Police took the downtown areas, all sorts of reports of looting have been reported. The policemen are robbing even sodas and chips, and up to TVs and microwaves. As many people state, this is a very Kafkian country.
Of course, we don't know what will come next. Most of the city has been "freed", and the APPO is holding at the University. The University is autonomous, and the PFP commands have promised not to break its autonomy - but we don't believe that. There are fights very close to the University. The Rector himself spoke a couple of hours ago at Radio Universidad, the main broadcasting point for real news on this subject (I am following on the news thanks to KeHuelga, 102.9MHz FM in Southern Mexico City, or at their webpage, from where they link to many other underground or Internet radio stations joining in the broadcast), and the reports are dramatic. Dramatic, as well, is the way all of the commercial news sources are ignoring the facts.
I want to keep you updated, as one of the very few reasons things are not worse is the public opinion and, even more, the international pressure. I'm sorry I'm not giving more links right now, but I will soon. I don't want, of course, to flood people that read my blog through the different syndications with a technical profile, so updates via my blog will be quite sparse. If you can read Spanish, we have posted many articles at FeCal, and many other individual sites are also joining in. A couple of links, and I'm off for now.

Daniel Stone: automake beautification

(Please note, I didn't write this: I just fixed a couple of bugs and put it in a patch. All credit to the original author, Tommie Gannert.)

Tired of the sucktitude of automake command lines? Find it incredible that people could seriously claim to prefer command output so verbose that you actually miss all the warnings?

if /bin/bash ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../../GL/mesa/swrast -I../../../include -I../../../include -I../../../include -I../../../include -I../../../include -I../../../include -I../../../include -I../../../include -I../../../include -I/home/daniels/x/mesa/Mesa/include -I../X -I../array_cache -I../glapi -I../main -I../math -I../shader -I../shader/slang -I../shader/slang -I../swrast -I../swrast_setup -I../tnl -I.. -I../../../../hw/xfree86/os-support -DHAVE_DIX_CONFIG_H -DXFree86Server -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I../../../../include -I../../../include -I../../../../Xext -I../../../../composite -I../../../../damageext -I../../../../xfixes -I../../../../Xi -I../../../../mi -I../../../../miext/shadow -I../../../../miext/damage -I../../../../render -I../../../../randr -I../../../../fb -g -O2 -MT s_masking.lo -MD -MP -MF ".deps/s_masking.Tpo" -c -o s_masking.lo s_masking.c; \
then mv -f ".deps/s_masking.Tpo" ".deps/s_masking.Plo"; else rm -f ".deps/s_masking.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I../../../../GL/mesa/swrast -I../../../include -I../../../include -I../../../include -I../../../include -I../../../include -I../../../include -I../../../include -I../../../include -I../../../include -I/home/daniels/x/mesa/Mesa/include -I../X -I../array_cache -I../glapi -I../main -I../math -I../shader -I../shader/slang -I../shader/slang -I../swrast -I../swrast_setup -I../tnl -I.. -I../../../../hw/xfree86/os-support -DHAVE_DIX_CONFIG_H -DXFree86Server -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I../../../../include -I../../../include -I../../../../Xext -I../../../../composite -I../../../../damageext -I../../../../xfixes -I../../../../Xi -I../../../../mi -I../../../../miext/shadow -I../../../../miext/damage -I../../../../render -I../../../../randr -I../../../../fb -g -O2 -MT s_masking.lo -MD -MP -MF .deps/s_masking.Tpo -c s_masking.c -fPIC -DPIC -o .libs/s_masking.o


Prettify Automake finally fixes this. I've put up a deb that at least works on Edgy (but has some pretty shady changes; getting it to build was, um, interesting) here; re-autoreconf with that, then run configure with --enable-pretty-cmds to get much more sensible output:

  [C ] fbbits.c
  [C ] fbblt.c
  [C ] fbbltone.c
../../fb/fbbltone.c: In function "fbBltOne":
../../fb/fbbltone.c:354: warning: left-hand operand of comma expression has no effect
  [C ] fbbstore.c


Warnings! Visible! Amazing!

Edd Dumbill: XTech 2007 is go!

I've just published the call for participation for XTech 2007.The theme for this year’s conference is “The Ubiquitous Web”. As the web reaches further into our lives, we will consider the increasing ubiquity of connectivity, what it means for real world objects to be connected with the web, and the increasing blurring of the lines between virtual worlds and our own.XTech will have its usual four tracks: Applications, Browser Technologies, Core Technology, Open Data. Keynotes addresses will be given by Adam Greenfield, author of “Everyware: The Dawning Age of Ubiquitous Computing”, Gavin Starks of Global Cool and designers of the future Matt Webb and Jack Schulze.Head over to the call pages and submit your proposal. The deadline is 15 December 2006. The conference itself is in Paris, France, 15-18 May 2007.
ExpectnationThe publication of the XTech call is doubly exciting for me. XTech 2007 will be the first conference to be managed completely from Expectnation, the software I've been building over the course of the last year.Expectnation is a web-based system for managing conferences and training events. Right now we're conducting tests with some customers, and are working hard on readying the system for a public trial.The particular strengths of Expectnation include the management of speakers, proposals and delegates. If you would like to stay informed of our progress, there's a place to sign up for news on the Expectnation home page.

Norbert Tretkowski: Top 10 shell commands

tretkowski@moonlight:~% print -l -- $ (o)history%% * uniq -c sort -nr head -n 10
    241 cd
    193 cat
    146 vim
    134 rm
    120 sudo
    113 ssh
     83 rsync
     68 ll
     59 nc
     41 wget

Daniel Stone: input hotplug merged to master

So, I finally merged the input-hotplug branches on master. Basically, this means that instead of attempting to hide behind one device (/dev/input/mice, the console keyboard), and hacking around it with gash and tape when we actually expose multiple devices[0], we finally expose multiple devices in a useful way. This is consistent through out the Xorg and KDrive servers; Xnest and Xvfb also have support, but that's not the most useful thing ever.

This required a huge overhaul of the old input code, much of which dates back to the mid-80s; the bits that don't were sticky-taped on the side, working more in spite of our core input code than with it. So, in addition to being generally useful and providing things like multiple keymaps on different keyboards and different acceleration (and so) on different pointer devices, it also actually caused a net removal of code.

So, once you've set yourself using evdev for the drivers, you can also now dynamically add and remove devices. Last night, not long before I released all the components, I removed all the input devices from my configuration file, told X not to add any, and added 'respeclaration --daemon' to my session: completely dynamic input. I've been using the core bits (the whole input API rework) for quite a long time, along with Zepheniah's evdev driver, but this is the first time I've been using a session with completely hotplugged input, as opposed to adding and removing devices every now and then to test the hotplug capabilities, which was actually a piece of cake, compared to reworking all our core input code to deal with devices appearing and disappearing.

Still, this all needs good desktop integration. Keyboard and mouse applets need to become aware of multiple devices[1], and allow people to configure them separately. The desktop should also take over the role currently filled by respeclaration, which works perfectly well, but shouldn't be generally deployed; management of input devices thus turns into a session management issue, which leaves the desktop to dictate policy.

There are still some nits in the D-BUS policy to sort out (right now, only root can reconfigure the devices), but I believe it's fundamentally the right model: it's machine-oriented, rather than session-oriented. There are still some minor changes that need to be made, but working out who should be trusted to add input devices was more or less impossible in the X security model.

xserver 1.3 (for Xorg 7.3) should be good fun.

[0]: Key presses/releases from your second device will just magically appear from your first device. Useful, huh?
[1]: In brief: check for inputproto 1.4 at build time, check DEVICE_CORE on whatever appears as the core pointer, and if 'iscore' is 1, then you have a virtual core pointer. Anything that sets status to 1 for DEVICE_CORE will also generate core events. Setting controls on the core keyboard or pointer will propagate those changes down to all the devices which also send core events. I'm going to document this soon.

1 November 2006

Antti-Juhani Kaijanaho: 035 years old

I was born on 19771102T2018+0200. Thus, it is now almost an hour into my 29th, that is, 035th, that is, 0×1Dth birthday. And what am I doing right now? Celebrating? No, actually I am writing a novel. This is the fourth time I participate in the interNational Novel Writing Month. The MissionImpossible is to write 50 000 words of fiction, a single story, in thirty days. That makes about 1667 words a day, roughly half a dozen pages of manuscript for each 24 hours of this month. I won last year, but whether I cheated or not only $DEITY can tell. I certainly can’t. This year, I want to finish with flying colors. Yesterday (the first day of the hellride) I learned a valuable lesson. If my writing slows to a crawl, then I am writing something I should not be writing. Rethinking the scene in question, to include some sort of jeopardy, usually helps. Not that my writing is anything close to stellar when it flows; but in NaNoWriMo it doesn’t matter. Quantity is the only thing that matters, quality is left as an exercise to the reader. Um. No. Quality is the worry of the National Novel Editing Month, in March. Last year I cat-vacuumed by writing blog posts about the Finnish judicial system. This time I wised up and made it a topic of my novel. It is a sf story, set in a future colony world populated by Finns. Who have refrigerated the Finnish system. Well, almost. They have changed it enough that I can call it fiction. Um. Also to be able to write about things that cannot be written. If it is fiction (in fact, not just in fiction), I am not breaking my oath to keep the deliberations secret. Because it’s fiction, I am not actually writing any court case I have sat in. Setting it in a different world allows me to create court cases that would not exist in the real world. Like trying someone for a murder they are alleged to have committed fifty years ago on another planet, with no physical evidence. Oh wait, almost sounds like the Lake Bodom murders. Damn. Oh right, I forgot. I didn’t sit in that panel of judges. Here is a bit of infodump I wrote two hours ago:
Some of the first-generation boardmen had told him stories about grand courthouses with metal detectors at the doors, a dozen courtrooms, the same number of judges and hundreds of boardmen. That was in Finland on Old Earth, of course. Not so here. The courthouse was really a modified small apartment building. There were no metal detectors; the technology was hellishly expensive and wasteful. There were no guns on the planet (except in the Old Earth Museum) and knives were not a problem. There were only eight thousand people, so one judge was quite enough, and twenty boardmen. Well, four judges, one at the Thing’s Court and three at the Apellate court. And occasionally a new graduate from the university doing their clerking to obtain their attorney status. The courthouse had two large courtrooms. The larger generally hosted criminal trials of the Thing’s Court; the smaller was used by the Apellate court when they wanted to hear evidence themselves. Which was not very often. Civil cases sometimes used both rooms at the same time; the wall separating them could be easily removed and put back. The old-timers did approve of the layout and furnishing of the big room. Apparently they did much resemble the Old Earth system. Riku went in, said hello to the janitor and used the ultra secret boardman access hatch to reach the back room. He was the first boardman there, so he took his time to check his appearance, took a crap and made coffee. Justice must not only be just, it must also look just and stay sharp.
Wish me luck in this insane journey, would you? (Notice how I cleverly avoided asking for conga rats for the birthday. Tee hee. Or something.)

Next.

Previous.