Search Results: "tim"

22 October 2006

Clint Adams: I can make love disappear

Down by the river, there are people loudly playing soccer, oblivious to the overpowering stench wafting from the trees. Others stand on the pedestrian bridge, gawking at the smog-shrouded peak of Mount Peeweehockey to the south, or the climbing spires of Sturmdrangsturm to the north. On the left bank, there is naught but cobbles and stenchless trees. I walked along the quay for a time, and ducked into a cove wherein I saw a tavern called the Monkey's Door. Were I to give a complete account of what was therein, I would incur the wrath of the Monkey Girl, so I will refrain from so imparting. While supping on a m lange of blood and sour cream, I noticed an old skinhead with a backpack and a gym bag, both bursting at the seams. He was drinking hard sparkling cider and chain-smoking Camel Blues, while reading the smallest copy of Eldest that I have ever seen in my life. That is to say, it was the same thickness as the standard hardcover, but only a few inches long and wide. My favorite skinhead used to do a cover of Romeo and Juliet in a faux Filipina accent. Her cover was of the Indigo Girls cover, since she preferred it to the original. I guess if you're going to be a skinhead, your judgment has to be a bit suspect. Still, her rendition was hilarious. Hopefully she's still smoking sage, and not Camel Blues.

Florian Ragwitz: Audio::XMMSClient::XMLRPC

I just uploaded Audio::XMMSClient::XMLRPC 0.01 to the CPAN. It's basically an XMLRPC interface to the xmms2 daemon. It ties all Audio::XMMSClient functions except for the signal and broadcast stuff to an XMLRPC API which is quite similar to the Perl API of Audio::XMMSClient. It will be available from from CPAN in some hours and can be grabbed from the Pause incoming queue in the meantime.

Biella Coleman: Hunting and Gathering on the Internet

This morning I got back to an article that has been on and off my work-plate for a year now, one that I have to turn in to a discussant for my 4S panel as well for an edited collection of articles on the intersection between art, activism, and biopoltics. Part of my efforts meant attacking a virtual “stack” of articles and one of them was one of best journalistic articles I have read in a long time. Exceedingly clear prose is combined with good references, hard numbers and just the right amount of passionate verve to make reading actually fun and not just another nameless, faceless cog in the academic research wheel. The article mentioned a couple of interesting studies that while sadly not linked from the article (but I am going to take that was an editorial and not authorial decision), they were pretty much cake to find by doing a little poking and prodding on the Internet. So for example, one of them was published on PLoS Serotonin and Depression: A Disconnect between the Advertisements and the Scientific Literature and stands pretty strongly on its own right. But what is even better are the long list of citations (many with links) that would otherwise be frankly, a *total* time consuming bitch to find like the correspondence between the FDA and pharmaceutical companies: # Food and Drug Administration Division of Drug Marketing Advertising and Communications (1997) Effexor warning letter. Rockville (Maryland): Food and Drug Administration. Available: http://www.fda.gov/cder/warn/june97/effexor.pdf. Accessed 14 October 2005. Total gems given to you right there on a silver plate. That is what I love about Internet based research… On the other hand, this extreme access is not always so peachy. The amount of data now available can be experienced as a totally mind-numbing, frightening, chaotic infolanche (as one of my old adivsors liked to call it), which translates into a lot of academic hunting and gathering not to mention all the sorting, sifting, cataloging, and then of course trying to remember what the heck you have just amassed in the first place, even with the aid of tags and all I am not sure if things have gotten easier or harder because this is all I personally know but what I do know is that there are times when I just love the hunt, losing myself for hours, following links, gathering articles, enlivened, exicted about research and there are others when the woolly mammoth of infomartion gets the better of me.

David Welton: Ruby, Unicode and Tcl

Apparently Tim Bray gave a talk at RubyConf about "RubyConf: I18n, M17n, Unicode, and all that", which discussed the approaches other languages take. It's a pity that Tcl wasn't mentioned, as it basically gets things right. It is fully unicode aware, and generally "just works", because all strings are unicode strings, by default - there isn't a separate syntax, or commands to create and manipulate multibyte strings and characters.
% set c \u0065
e
% string bytelength $c
1
% string length $c
1
% set c \u2022
 
% string bytelength $c
3
% string length $c
1
That works for regular expressions, too.

Kenshi Muto: Tokyo Debian monthly meeting, October 2006

Yesterday, I had a chance to talk about Extremadura i18n meeting at Tokyo Debian monthly meeting. This meeting was organized by Junichi Uekawa and wonderfully 20 or more people came and filled the meeting room (awesome!), thanks! My paper is included in this PDF [in Japanese]. I picked up and spoke some themes from what we discussed at Extremadura; i18n task force, Pootle system, and language-pack/tdeb. PO-based translation has an advantage and a disadvantage. The tools support PO are mature and PO is very useful for the short messages. But using it for documents, such as manuals or Web pages is not so useful. Especially translating to Japanese sometimes add/delete/reform sentences. Some attendees suggested that we would always use the original XML (or something) format for translating/reviewing and have PO format in the central database. Masayuki Hatta pointed the license of translation. For example, Japanese is completely different from English, both words aren't always correspond 1 on 1... Translators use their creativity power. He said translators would have a copyright for their translation instead of original author. When I talked with Warren Togami was Fedora US leader last month at Tokyo, he said his project asked to agree "translation license agreement" to all translators. If we Debian or Debian-JP apply a central translation system like Pootle and use its translation memories, it's time to consider making similar license. Although current idea of Tdeb is still under the development, most attendees loved that idea rather than language-pack. For me, the goal of this meeting was not only speaking my experience report but recruiting more people for i18n/l10n working also. I'd like to recommend Nabetaro-san for next i18n meeting attendee instead of me, and Noritada Kobayashi for next of next. I strongly suggested attending next Debconf to them also. They are hardly working for Debian i18n/l10n in Japan. I hope attending such meetings expands their personal connections and motivations. There were two other sessions at the meeting. Matsuyama-san demonstrated creating Flash on Debian by using ming, and Junichi talked about profiling apt-get by oprofile tool. Both topics were interesting for me.

21 October 2006

Romain Francoise: The Crawl

I've now purged xmms and bmp from all the systems I use in favor of the all-singing, all-dancing Bongo, which I packaged for Debian a few weeks back. It's great to finally have a decent media player for Emacs, it fills a gap in my computing life I've had for a long time (no, I don't like EMMS, thank you). And Bongo's upstream author is very responsive to feature requests, having implemented all of my suggestions so far!

I also hacked together a logo for Bongo using letters from the Malayalam script, some of them are close enough to Latin letters to allow nice exotic looking logos at minimal cost.

In unrelated news, my productivity has surged upwards since I left all Debian IRC channels and unsubscribed from some Debian mailing lists a few weeks ago. Silence feels wonderful, sometimes.

Adam Rosi-Kessel: Everything Gives You Cancer

Recent health news: Does TV pull the trigger on autism? (suggesting that early childhood exposure to television may increase the chances of autism, but see this Time magazine rebuttal); White Bread increases cancer risk. I’m reminded of the old Joe Jackson song, Cancer:
Everything
Everything gives you cancer
Everything
Everything gives you cancer
There’s no cure, there’s no answer
Everything gives you cancer
…

Andreas Schuldei: Light at the end of the tunnel!

This seems to be a happy day for Debian. It certainly gave me the warm fuzzies when I read people's reactions to the Slashdot item, the steering committee, Madduck's and Joeyh's reflections on how things can work and some comments on IRC. It pleased me enough to get some new bloging infrastructure going in order to be able to chipe in.

There definitely is hope for Debian and change for the better is possible (and actually happens), as seen in the improved climate on IRC.

As with every change for the better, there is need of "positive crisis awareness" in order to reflect on possible changes, build momentum to overcome the status quo and implement changes in order to improve the situation step by step.

Crisis awareness is the awareness that there is a problem that needs solving. In contrast to negative crisis awareness, where one is paralyzed and unable to act on the danger and basically rolls over and dies, positive crisis awareness motivates to initiate change in order to avoid the crash and burn point and turn it into an opportunity of improvement, perhaps.

And exactly this is what I see emerge more and more: People who are no longer satisfied with the current situation and formulate thoughts on how to achieve improvement. A year ago we saw this with the hostile climate on mailing lists and IRC, now people realize that Debian has a lack of leadership, and that this is actually a problem.

We are still not the welcoming and friendly project we ought to be, but we are less hostile already and people know in what direction they want to move in the future (the more friendly one, thankfully). People have realized that hostility and pissing contests are evil and not a sign of l33tness, as some might have thought some time ago. But a culture change is happening, and if we stay on top of the issue we have a very good chance to not only omit the negative, hostile things we used to do but also come up with actively inviting and friendly things we can do.

The same is happening now (on a lesser scale so far) with the leadership area. The great thing is that if Debian takes up its issues and continuously improves there is hardly a limit to its potential. Not the first and strongest, but be the most persistent and patient will win in the end. And if we have incentive and urge to change we might just manage to keep up a continuous improvement process.

I think *that* incentive is the greatest thing we have to thank Ubuntu for.

Andreas Schuldei: Future beach front property

Today I watched the "An Inconvenient Truth" film which was recommened to us at the foo camp preceeding Euro OSCon. Steve had already blogged about it shortly. While i enjoy the summer evenings at the end of september that I experienced this week, I think we are heading for very serious and even hard times. I would guess that we all will soon have to cut back on many areas of our compfortable lifes: less warm showers, more sweaters in winter, not keeping your computer on 24/7, no more car, no more flights. I have been thinking on where to move, given the delicate position that europe is in with its dependency on the gulf stream.

Incidently i also ran into this cool website today, which makes one consequence of global warming a little bit more realistic. If you are lucky your house in the middle of the city will be beach front property soon.

Yet another example of that positive crisis awareness is needed. Act today and we might just get a major global crisis. Don't act and we might get mass extinction.

Andreas Schuldei: Lazyweb: notebooks

This is the reverse lazyweb: I want to share what I learned, since many have similar considerations.

Some time ago I started to use the c't hotline to inform myself before buying computer stuff. Currently I am looking for a new notebook, since my wife poured tea into her old one and the keyboard stopped working.

So today I talked with one of the notebook experts at c't. My criteria were: "small", "long battery lifetime", "reliable", "good warranty", "excellent keyboard" and "works well with Linux".

He recommended that I should look at business notebooks as they came usually in higher quality and with better warranty. He pointed out a downward trend at Lenovo, which seems to produce lower quality machines nower days. Both warranty and technology seem to get reduced in quality. Asus machines break more often then average and their repair/warranty service is bad and improves only slowly. Dell machines break more frequently but their service is good. Linux compatibility seems good at Fujitsu-Siemens notebooks, which seems to have good service/warranty, too. Keyboards have improved a lot over the last few years and he encountered no bad keyboard at any decently priced notebook nower days.

I remember that joeyh and fabbe independently from each other picked a Fujitsu-Siemens. I will look into their offerings now.

Andreas Schuldei: North Korea's national anthem

An old friend who is a sucker for weird sounds (he listens to Heino) today sent me the North Korea's national anthem. Having read a bit about the country, I have a hard time imagining anyone there singing such a jubilous song. You can listen to it here.

Per Olofsson: acpi-support vs hibernate

I used to use the acpi-support package. It originally comes from Ubuntu. The problem is, it really does a *lot* of weird things when suspending and resuming. There are all sorts of workarounds for broken drivers and hardware. And in the end, all these hacks only made things worse: it actually worked better if I just did "echo mem >/sys/power/state" than if I used acpi-support.

I guess this is an Ubuntu thing, hack around everything and try to make it work. It gives fast results. In Debian, I think there's often a kind of opposite perspective: if the driver is broken, fix the driver, don't add ugly hacks. Both approaches of course have their pros and cons.

But now, I have switched to the hibernate package. I like it a lot better, because it isn't just a collection of shell scripts. You can actually configure which workarounds you want to enable, and how you want things to be done. I don't know why Ubuntu didn't simply use this package instead of inventing their own. Maybe hibernate wasn't around at the time.

In the long term, there really needs to be distribution-independent suspend/hibernate interface though. The current situation is less than ideal. Maybe pm-utils will fill this gap.

Update: Oh, I forgot. acpi-support is configurable, but not in a particularly intuitive way, at least not when compared with hibernate. Or maybe it's just my irrational taste.

Update: What I meant to say here actually, I think, is that hibernate is a lot easier to configure and much better documented. You can in a much easier way control exactly which workarounds/hacks you want to apply. And the options are described in the manpage for hibernate.conf. Editing /etc/default/acpi-support is a lot less flexible and a bit confusing.

Evan Prodromou: 28 Vend miaire CCXV

It's been days since I've blogged -- I've got a lot to write about Halifax and I've been putting it off, but I wanted to jump on one more time to put in a plug for tomorrow's BarCampMontreal. I keep forgetting how great this city is for interesting technical people. Simon Law is going to be talking about how Web 2.0 is destroying Open Source software, and Austin Hall will talk about how you can get billions of dollars (American) with Zero Knowledge. The full Horaire shows the proposed schedule, but... hey, it's BarCamp, right? Anything could happen. As little as I like being up and about at 9AM on a Saturday morning, I'm excited about the event tomorrow. Should be a good time. tags:

20 October 2006

Axel Beckert: The mouseless side of X

Although I like the idea of a tiling and completely keyboard focused window manager, I never fell in love with Ion because the default keybindings weren’t really intuïtive (to me). A few months ago I noticed, that ratpoison is also a tiling and completely keyboard focused window manager, only with much more intuitive usage: If you know screen and it’s keybindings, you also know ratpoison and it’s keybindings: Just exchange Ctrl-A with Ctrl-T. This sounds perfect for usage on my low performance laptops, where I have small screens and usually also no virtual desktops in use. There’s only one thing which annoys me in ratpoison: If I use a mostly mouse driven application like e.g. a webbrowser with ratpoison, I have no problems to click on links, even if the webbrowser is not in the so called “current frame”. But if e.g. click into an input field, I usually notice much too late that while the mouse works fine in the browser, keyboard focus is still in some other window. Currently they all use flwm, the Fast and Lite Window Manager. So what I would need is a tiling and keyboard focused window manager but with “focus follows mouse” politics. And since the laptops on which I intend to use such a window manager, all have a touchpad or thumbstick, the mouse there counts as keyboard focused, too somehow, doesn’t it? :-) I wonder, if an ion3 could be configured to use the same keybindings as ratpoison. That would probably fulfil this desire. On the other hand, there are browsers which are fine without mouse. lynx or links2 for example, so the focus problem I have with ratpoison wouldn’t occur. But what if I need or want a keyboard driven and full blown webbrowser? Ok, Firefox as well as Opera are not that bad in keyboard only use, but they still are focused on the mouse using user. But Gecko wouldn’t be Gecko, if there wasn’t some Gecko based browser with this features: On the ratpoison website I found a link to a very interesting Firefox plugin which makes Firefox a complete new browser, a keyboard driven webbrowser named Conkeror. It has no toolbars at all, no (visible) tabs, no menus, no nothing — it shows only the website in fullscreen, a status line and a multipurpose command line — exactly like the mini-buffer of GNU Emacs. But not only the layout, even the keybindings are very emacsish: C-x C-f opens an URL in a new buffer -eh- tab, C-x 5 C-f opens an URL in a new frame (window), C-x C-v opens a new URL in the current tab (buffer) with the current URL as editable default value, C-x b switches to another tab, C-x k kills -eh- closes a tab, C-x C-b lists all open tabs, l goes back (remember the Emacs info reader, eh?), C-g quits accidently requested dialogs or stops loading a web page, Ctrl-s and Ctrl-r give you forward and backward i-search, C-n, C-p, C-f and C-b scroll, etc. Even M-x works, e.g. will M-x revert-buffer reload the web page. (Unfortunately Esc-x doesn’t work. Yet.) And for vi freaks, there is even M-x use-vi-keys. There’s even one lynxish keybinding: \ lets you view the source. And although it’s one of the strangest webbrowsers I saw yet, I somehow like it and also would like to see it in Debian as package, since it is the perfect companion for ion or ratpoison. Looking through apt’s package cache as well as the wnpp bugs, I haven’t found any hint on somebody already packaging it, so I’ll have a look on it and on how to to package a Firefox extension for Debian. BTW: While looking through the wnpp bugs, I found bug #335459, which is the ITP flock, an also Gecko based browser with a lot of cool features for blogger who like social network tools. Another nice thing I found today in Debian was the xfonts-artwiz package whose small fonts are very suitable for small resolution screens, especially if a tiling window manager is used with a e.g. 800×600 resolution. Unfortunately they aren’t available in a charset with German umlauts. Apropos tiling window managers: Anyone tried pconsole with an automatically tiling and resizing window manager? I wonder if it’s usable. At least on MacOS X with its cascading window positioning algorithm, pconsole is a pain. — But even without cascading windows, MacOS X is a pain for keyboard users. Just think of its default behaviour when using the tab key inside a form mask: It will skip all buttons, all checkboxes, all radio buttons and all select boxes. Argh!

Martin F. Krafft: Freeing the primary IP address

I have a machine in Singapore and have been asked to switch it to another IP address (don't ask...). Due to numerous reasons, I do not want to reboot the machine, so I am faced with the task of switching the primary IP address of a remote host via SSH. Fun. In the following remote identifies the remote machine, local the workstation from where the SSH session originates. 1.2.3.150 is the old IP that I have to free, and 1.2.3.200 is the new IP. 1.2.3.129 is the router IP and since it's a /25 network, 1.2.3.128 is the network address. I'll be using the ip command from the iproute package exclusively. ifconfig must DIE! The first step of this endeavour is making sure that traffic to your new IP is not going to be caught by the packet filter. This is simple enough:
remote# ip addr add 1.2.3.200/25 dev eth0
local# nc 1.2.3.200 22
SSH-2.0-OpenSSH_4.3p2 Debian-3~bpo.1
We have thus added a secondary address and verified that it can communicate, at least receive packets on port 22. However, since it is a secondary address, it depends on the primary address and will be removed if you remove the primary from the interface. We thus need to get tricky:
remote# ip addr del 1.2.3.200/25 dev eth0
remote# ip addr add 1.2.3.200/32 dev eth0
Note how we're adding the address with a /32 netmask instead. This makes it independent of the current primary address. Now the fun begins. Close the SSH session and log in to the new IP:
remote# exit
local# ssh root@1.2.3.200
And remove the primary IP; yes, you heard me:
remote# ip route
1.2.3.128/25 dev eth0  proto kernel  scope link  src 1.2.3.150
default via 1.2.3.129 dev eth0
remote# ip addr del 1.2.3.150/25 dev eth0
remote# ip route
default via 1.2.3.129 dev eth0
Gotta love Linux: it saved the default route because it was still reachable from the 1.2.3.200/32 address, and only removed the link-local route. We could stop right here for there is no real reason why this machine should have a link-local route or even know about the network to which it is attached; but we won't... instead, we'll add the new address again (a second time), now with a proper netmask:
remote# ip addr add 1.2.3.200/25 brd 1.2.3.255 dev eth0
remote# ip addr del 1.2.3.200/32 dev eth0
remote# ip route
1.2.3.128/25 dev eth0  proto kernel  scope link  src 1.2.3.200
default via 1.2.3.129 dev eth0
After modifying /etc/network/interfaces, the deed is done. The next time I do this I might consider a safety net of the form:
remote# echo 'ifdown --force eth0; ifup eth0'   at now + 10 minutes
But that would only have been half as fun. Of course it goes without saying that the above comes without warranties, if you try it out, you do so at your own risk. :) NP: Neurosis / The Eye of every Storm Update: It's been proposed to just run:
remote# ip addr del 1.2.3.150/25 dev eth0; \
  ip addr add 1.2.3.200/25 dev eth0; \
  ip route add default via 1.2.3.128
This may well work, especially if run within a screen session (I've had times when the shell did not execute subsequent commands after being cut off from the controlling tty). However, this method does not guard against typoes. Or did you spot the typo in the above set of commands? The method I provided above seems resilient to typos as no command ever affects the current connection.

Steve McIntyre: Morons

It seems that yet again Microsoft developers are incapable of keeping time correctly. Apparently there's a bloody stupid bug in Exchange Server which means it will get the date of the end of BST (British Summer Time) wrong this year. October is only supposed to have 4 Sundays, not 5. At least, that's the assumption their high-quality software makes. This is far from the first time that I've heard of silly bugs in Windows and Microsoft apps when it comes to handling time and date information. Still, it could be worse. At least they wouldn't try to bury this kind of insanity inside a programming language or inside an international "standard". Oh, wait...

Biella Coleman: The Law in Shambles

Many moons ago, when I started my project on F/OSS I imagined that it would stay within the purview of anthropology, hacking, science and technology studies to bleed only a little bit into legal studies and only because I was dealing with the fraught politics of intellectual property law. As it turned out, the Law, with a capital L, as on object of analysis and site for the production of cultural value, turned out not to be peripheral but utterly central… And since, I have pretty much stayed within the territory of legal studies, vastly interested in the more invisible cultural and political effects of the law. Recent obsessing on this topic has led to a nascent thesis about law, discrimination, politics , and civil rights that I am looking to substantiate (so if anyone has any citations or helpful hints, do pass along) and it is this: When there are positive changes made in the law, it can come with various political costs. And the one I am interested in, is how, given other conducive conditions, legal changes that look awesome on paper, can work to undermine its potential by breeding a type of complacency of (in)action, largely because it seems as if the worst of the problems have been fixed. So if we look to the American legal context of 1960s and 1970s as a prime example, it is clear there was a heck of a lot of turmoil in the arena of civil rights, much of which, many liberals and progressives would say, led to positive legal transformation. During this period the content of many laws were purged of overt discrimination that, for example, which led a lethal blow to segregation and started to dismantle some of the worst pieces of scaffolding of mental health law (just to cite a few examples). At one level while we may easily recognize these changes as laudable and even perhaps “progressive,” the effects of it may be less so. Once legal content is purged of the ugly, this can breed an ugly form of complacency, in which the problem seems (re)solved, so people no longer feel guilt and attention is diverted away from any number of things, like: 1) new problems not necessarily addressed in the law 2) the rise of new laws or 3) the fact that the law is empty unless actively applied. I have yet to read anything directly related to this theory or apply it myself but it is something that has been on my mind for a couple of years now. But after talking about this topic from a friend, I decided to finally take crack at The Law in Shambles a Prickly Paradigm Press pamphlet by Thomas Geogheghan, a labor lawyer from Chicago. While it did not specifically address the issue I am raising (though it got pretty close in a number of places) I got more than I had bargained for; it is truly incisive (though frighteningly depressing) look at the current state of the law, and also, like so many of the PPP’s, much more fun to read than any most academic book or articles. For those who don’t know the PPP publish a series of short pamphlets and it was started by the legendary anthropologist, Marshal Sahlins, who is also known to be a little prickly himself (but it softened by his humor). They are often written by academics on contemporary topics of political interest (read: very biased) in a manner that is a lot looser and free wheeling than any article or book that would come out of an academic journal or publishing house. The PPP allows its authors to unbuckle a few notches off the sometimes uptight, constraining academic belt of writing and the result is often impassioned, funny, and yet remarkably astute essays. If Montaigne were around today, he would surely be proud of his essayistic legacy. The title of the book sums up the the topic at hand. His explanation as to why the (American) law is in disarray has not to do with the law in the abstract but with the total disintegration of a certain class of institutions and a specific class of law (namely unions , the law of trusts etc.). As institutional supports from the New Deal have been thrown out the door, it is the individual, largely through tort law, who has had to wield the fury of the law, in defense of a slew of individual rights and to defend themselves against new forms of attack (the worst being lawsuits brought forth by “charitable institutions” like hospitals). While the law is conceived as something we are all equal under, of course, it is access to the law, which makes all the difference in terms of making it a viable (or not) as social tool. With the demise of the unions, he argues, came the death of certain type of contract law in employment, and the stellar rise of tort law, which conceives of wrongful acts not as breaches of contract (which would apply to all persons under the contract) but as matters of personal injury. Whereas in the past unions would arbitrate contract law, wielding the power of numbers so that individuals were not burdened and burned with the expense (of time and money) of the law, with tort the law becomes formalized, conceived, and imagined in highly individual terms (even when grouped into class actions, it becomes a matter of proving personal injury), the effect of which, he argues is meaner and more complex than contract for four reasons 1) The name of the legal game is to discover motive, which is about as confusing as it can get and thus more arbitrary 2) It is more expensive than old contract law 3) Cases rarely go to trial (didn’t really get the importance of this point) 4) Because its focus is on motive and intense and subjective states, everything is open to scrutiny, so that I can force you to tell me everything what is in your secret heart. Not to mention in your tax returns. The result is torts produced a bitter, dog-eats-dog Hobbesian, legal world, which in turn makes for experiencing the law as an arbitrary force. This individualization of the law through tort also intersects with many other changes such as the demise of regulatory power that add more fire to the disintegration of the law and the subsequent experience of law and life as arbitrary. And it is this chapter (From Administrative Law to No Law, The Rise of the Whistleblower and Trail Lawyer) which got me a little closer to my own point that I brought up above. For example, he writes:
Once, when I filed suite to get the Labor Department to enforce the child labor laws for 16- and 17-year olds, kids whom they do not even pretend to protect, I got nowhere. I met with the Solicitor who told me: Look, suppose I agree with you. How would I ever get the money to enforce it? He was right. If I had won and they had issued regulations, it would have only been worse. In Labor, as in agency after agency, we have a vast complex body of law which would take mandarin to learn that no one enforces.. The law is there. On paper. Indeed, it is a lot of paper. How much paper? Fifty volumes, in paperback in total. I know because I counted. But as to big chunks in these volumes, there is no one there to enforce it. p. 48
Lots of paper I think can make people comfortable in thinking that famous Virginia Slims Slogan, We’ve come a long way, Baby, when it fact, it can often just means what it literally looks like, “Damn, that’s a buttload of paper.” There is a lot more packed into this tiny book, covering the deep gulf between left and right, the stagnation of an old constitution that is impossible to revise, the loss of accountability in all branches of government, the redrawing of districts, and the slight expansion and curbing of of majoritarian voting in the last hundred years. It gets a little shrilly by the end, but you know, it is all pretty upsetting stuff and it is good to shrill from time to time. Though he never refers to neoliberalism, capitalism, or postmodernism, this book is also a great companion to a class of this literature on the rise of fragmentation and instability in social and cultural life brought forth by changes in the economic system (thinking here of David Harvey, Fredric Jameson, etc). In fact, I think it does a much better job than at relaying how it is that vast sectors of society experience fragmentation, instability, and frustration.

Martin F. Krafft: Shopping for computer parts in Z rich

Here in Z rich, I miss Munich for numerous reasons; one of those is that I can't just go to nb Computer for all my computer part needs. At that store, you get top quality stuff with excellent advice for competitive prices. There is no comparable store in Z rich, only "discounters" without any chance of receiving advice or being able to look at/touch/try things before you buy them. While no sensible mind would purchase e.g. a harddrive at Media Markt, Interdiscount, or Rediffusion (no links, they're not worth it), digitec looks more promising. However, I am no longer their customer. Yesterday, a drive I had bought from them in February failed, so I tried to get information on the warranty exchange procedure. I have since sent 3 mails, filled out the contact form, and tried 14 times to call their (expensive) hotline, where I'd usually be kicked out after 10 minutes or so. At their branch, they told me I had to get in touch with customer service first. This is not acceptable. Screw you, Digitec. Another store, PCP.ch is a totally different story. Unlike Digitec, I cannot just walk to the store and pick up stuff I preordered online, I'd have to drive about 40 minutes. However, their product line is very attractive, the prices seem alright, and I've never had a problem getting in touch with them. The current tendency in central Europe is "cheaper cheaper", the commercials promoting stinginess all over the place. Obviously, as the margin decreases for the shops who are trying to keep up with the downward trend, they cannot engage in any fair dealing or obligingness any longer. What people in Z rich do not seem to realise and it surprises me, especially in Z rich is that some folks, including myself, would be all too happy to pay a little more if in return we'd get reliable service. I am not even going to ask for a shop like nb Computer, who manages to give reliable service and keeps the prices down at the same time. If your reputation is widely known to be exactly that, you can also earn a living. NP: Emiliana Torrini / Love in the Time of Science Update: Adrian replied with two pointers to stores I'll have to check out. Thanks!

Martin F. Krafft: Loop-mounting partitions from a disk image

Every now and then, I have a disk image (as produced by cat, pv, or dd) and I need to access separate partitions. Unfortunately, the patch allowing partitions on loop devices to be accessed via their own device nodes does not appear to be in the latest (Debian) 2.6.18 kernels the loop module does not have a max_part parameter, according to modinfo. So this time I sat down to come up with a recipe on how to access the partitions, and after some arithmetic and much swearing at disk manufacturers, and especially the designers of the msdos partition table type, I think I have found the solution, and the urge to document it for posterity. It's all about the -o parameter to losetup, which specifies how many bytes into the disk a given partition starts. Getting this number isn't straight forward. Well, it is, if you know how, which is why I am writing this. Let's take a look at a partition table, with sectors as units:
$ /sbin/fdisk -lu disk.img
You must set cylinders.
You can do this from the extra functions menu.
Disk disk.img: 0 MB, 0 bytes
255 heads, 63 sectors/track, 0 cylinders, total 0 sectors
Units = sectors of 1 * 512 = 512 bytes
      Device Boot      Start         End      Blocks   Id  System
disk.imgp1   *          63       96389       48163+  83  Linux
disk.imgp2           96390     2056319      979965   82  Linux swap / Solaris
disk.imgp3         2056320    78140159    38041920    5  Extended
disk.imgp5         2056383     3052349      497983+  83  Linux
disk.imgp6         3052413    10859939     3903763+  83  Linux
disk.imgp7        10860003    68372639    28756318+  83  Linux
disk.imgp8        68372703    76180229     3903763+  83  Linux
disk.imgp9        76180293    78140159      979933+  83  Linux
The first few lines is fdisk complaining not being able to extract the number of cylinders, since it has to operate on a file which does not provide an ioctl interface. The first important data are the units, which are stated to be 512 bytes per sector. We take note of this value as the factor for use in the next operation. Let's say we want to access the 7th partition, which is 10860003 sectors into the disk, according to the fdisk output. We know that each sector is 512 bytes, so:
10860003 * 512 = 5560321536
Passing this number to losetup produces the desired result:
# losetup /dev/loop0 disk.img -o $((10860003 * 512))
# file -s /dev/loop0
/dev/loop0: Linux rev 1.0 ext3 filesystem data
# mount /dev/loop0 /mnt
[...]
# umount /mnt
# losetup -d /dev/loop0
If the partition really holds a normal filesystem, you can also let mount set up the loop device, and manage it automatically:
# mount -o loop,offset=$((10860003 * 512)) disk.img /mnt
[...]
# umount /mnt
And since there's aparently no means to automate the whole process for an entire disk, I hacked up plosetup. Enjoy:
# plosetup lapse.hda .
I: partition 1 of lapse.hda will become ./lapse.hda_p1 (/dev/loop0)...
I: plosetup: skipping partition 2 of type 82...
I: plosetup: skipping partition 3 of type 5...
I: partition 5 of lapse.hda will become ./lapse.hda_p5 (/dev/loop1)...
I: partition 6 of lapse.hda will become ./lapse.hda_p6 (/dev/loop2)...
I: partition 7 of lapse.hda will become ./lapse.hda_p7 (/dev/loop3)...
I: partition 8 of lapse.hda will become ./lapse.hda_p8 (/dev/loop4)...
I: partition 9 of lapse.hda will become ./lapse.hda_p9 (/dev/loop5)...
# ls -l
total 0
lrwxrwxrwx 1 root root 10 2006-10-20 13:25 lapse.hda_p1 -> /dev/loop0
lrwxrwxrwx 1 root root 10 2006-10-20 13:25 lapse.hda_p5 -> /dev/loop1
lrwxrwxrwx 1 root root 10 2006-10-20 13:25 lapse.hda_p6 -> /dev/loop2
lrwxrwxrwx 1 root root 10 2006-10-20 13:25 lapse.hda_p7 -> /dev/loop3
lrwxrwxrwx 1 root root 10 2006-10-20 13:25 lapse.hda_p8 -> /dev/loop4
lrwxrwxrwx 1 root root 10 2006-10-20 13:25 lapse.hda_p9 -> /dev/loop5
# plosetup -c .
# ls -l
total 0
(this post is dedicated to Penny for no other reason than the tunes I am listening to right now) NP: Fly My Pretties / The Return of Fly My Pretties Update: Be careful about the $((...)) style arithmetic. dash manages to overflow at 32bit. zsh and bash seem to get it right. If in doubt, use perl or a calculator.

19 October 2006

Joachim Breitner: Turnkey Linux for Internet Caf s

While thinking how to spread Free Software in Ghana more effectively I noticed some important factor: Internet caf s. On the one hand they are for most people the first contact to comuters (in contrast to Europe or US, where it's probably the family or school computer), so getting Linux on there would make a difference. On the other hand, for them a Linux system is a very viable choice: Cheap per computer (although in Ghana the argument reads legal , not cheap ), provides good software for the usual internet caf s user s needs (browsing, word processing, chatting) and is very suitable to be locked down and run safely.There are a lot of internet caf s in Ghana, at least in the Accra Region, but most of the people that run these are not he most advanced computer users, so they just go the seemingly simple road: Windows on clients and servers, and probably some software like CyberCafe, also pirated, for the accounting and the computer lockdown.My idea this evening was: Would it be possible to create something like Skolelinux, just for internet caf s? A CD that the owner of the caf just puts in what s meant to be the server and boots, answers a few questions, and a second CD for the clients where he does not have to answer any questions, and what he gets is a complete system with approximately these features:If such a distribution already exists, I d like to hear about it. If not, it might be an interesting project for the Linux Accra User Group or OpenGhana.org. If successful, this might help Free Software gaining mind share in developing countries big time. Of course I m also very interested in comments from those who read this through planet.openghana.org.

Next.

Previous.