Search Results: "bab"

4 February 2008

Sune Vuorela: libqt3-compat-headers

libqt3-compat-headers is a debian package containing headers from qt3 to help migrating from qt2 to qt3.
This is long ago. Qt people laughed at me when I asked about how long ago that would have been. Apparantly, this package is still build-depended upon by 66 different debian packages. A big bunch of them are probably just leftovers from the past. The rest is probably a 5 minute job (+build time) pr package. For me, it kind of makes the packages look kind of unmaintained. grep-dctrl -sPackage -FBuild-Depends libqt3-compat-headers /var/lib/apt/lists/ftp.de.debian.org_debian_dists_unstable_main_source_Sources to see the full list. I just filed bugs with patches on 3 random of them.

Pierre Habouzit: New git and CLI

Yes Junichi, this new release explicitely deprecates dashed form of git commands, as they will probably go away from the $PATH for many good reasons: So we gave our users a pretty good timeframe to adapt their scripts, hence the deprecation notice. Also note that best practices about scripting are now documented in the gitcli(5) man page I wrote.

3 February 2008

David Welton: Rails and Hype

Yoav Shapira wonders about the "rails backlash": http://yoavs.blogspot.com/2008/02/railsshudder.html I'm a big fan of Rails, and of course I realize that it has some flaws and is certainly not the optimal choice for all situations, but I don't buy into the bashing. Sure, Rails was hyped, but there is no way that it could have possible reached the level of popularity it has on hype alone. We're not talking about multi-million dollar marketing budgets commanded by the likes of Sun or Microsoft, but about a video and some nice dressings by DHH and 37signals. A small group like that just doesn't have the resources to push something like Rails as far as it's gone without some substance to back it up. Look at all the imitation. People realize that the basic idea is good, and even though the basic idea is nothing phenomenal, it hadn't really been done before. What is this idea? Take a bunch of components, and good (if not always the absolute best) practices, and integrate them nicely. Database, templating, testing, a clean application structure, ajax/javascript integration, with some code generation, all done with a language that's flexible enough to do all of the above pretty well. All those things existed, but Rails did a great job of tying them all together. And that's been imitated far and wide. That seems to indicate that, even though the imitators may change and improve bits and pieces, they're quite smitten with the idea itself. So much that they've dedicated a lot of time and effort to reproduce it. That's quite a tribute. Look at the adoption. Moving to a new language/platform is a big step, not one to be taken lightly, and for people with lots of existing code in some other language, perhaps simply not possible. Hype will take things only so far, but Rails has been taken up by a large number of people who certainly didn't do so because it was the safe, easy path to take. Perhaps some of those people have found that Rails really wasn't for them, but that's pretty normal. No one said it was perfect. However, when you look at what it takes to make people jump ship from what they know, and are comfortable with, you realize that it really must have been that much better to make people go out on a limb. Furthermore, it's easy to point out the failings and drawbacks of something after the fact, but much more difficult to do creative, innovative work of your own. Compounding that is the fact that criticizing others' work is often an easy and effective way of looking smart; there's an interesting study referenced here http://bobsutton.typepad.com/my_weblog/2006/08/brilliant_but_c.html that talks about this effect. It's something I've come to dislike over the years. Our field is so new, so dynamic, and so immature, that it's usually pretty easy to take a look at something and say that it "sucks". It is much harder to write something of your own and put it out there, knowing full well that lots of people who have never done much of anything will jump on it and bemoan its "copious failings". That's not to say that it's impolite to criticize, but - do it constructively please. Imagine that you were there in the same room, talking to the person who wrote the code in question. You would still say you don't like it, but you'd probably be much more polite and helpful in your commentary. I hope so, at least.

2 February 2008

Christian Perrier: Preparing lenny D-I beta 1: l10n status

Otavio is currently busy preparing the first release of D-I for lenny. He is still polishng the release schedule but, as part of the process, I sent a call for translation updates today. The starting point is: 59 activated languages (including English) but 'only' 18 of them are 100%. For others:
1 100% bg
   100% cs
   100% de
   100% es
   100% eu
   100% fr
   100% gl
   100% gu
   100% it
   100% ja
   100% ko
   100% nl
   100% pt
   100% ru
   100% sk
   100% sv
   100% vi
   100% zh_CN   18
 2 099% hu      1
 3 098% be
   098% ca
   098% dz
   098% eo
   098% he
   098% ml
   098% nb
   098% nn
   098% pl
   098% pt_BR
   098% ro
   098% sq
   098% ta
   098% th
   098% zh_TW   15
 4 097% bn
   097% lt
   097% ne
   097% pa      4
 5 094% ar      1
 6 093% bs
   093% da
   093% el
   093% et
   093% fi
   093% hi
   093% hr
   093% id
   093% ka
   093% km
   093% lv
   093% mk
   093% sl
   093% tl
   093% tr
   093% uk
   093% wo      17
 7 090% am      1
 8 085% ku      1
Languages at 93% had no single updates since Etch. For these, I have some worries and I fear we could 'lose' some if their translator disappeared. Amharic and Kurdish never reached 100% yet but they have translated the most important strings, so we'll probably keep them. So, in short, the message to translators is: *move*. You have about 2 weeks.

1 February 2008

Romain Francoise: Recent movies (5)

(Note: this post had been sitting in my drafts folder for some time so some of these are not so recent. I thought I'd mention them anyway.)

Ian Wienand: Compare and Swap with PIC

Our Dear Leader Sam Hocevar has previously blogged about PIC and inline ASM. Today I came across a sort of extension to this problem. Consider the following code, which implements a double word compare and swap using the x86 cmpxchg8b instruction (for a bonus you can lock it to make it atomic).
#include <stdio.h>
typedef struct double_word_t  
	int a;
	int b;
  double_word;
/* atomically compare old and mem, if they are the same then copy new
   back to mem */
int compare_and_swap(double_word *mem,
		     double_word old,
		     double_word new)  
	char result;
	__asm__ __volatile__("lock; cmpxchg8b %0; setz %1;"
			     : "=m"(*mem), "=q"(result)
			     : "m"(*mem), "d" (old.b), "a" (old.a),
			       "c" (new.b), "b" (new.a)
			     : "memory");
	return (int)result;
 
int main(void)
 
	double_word w =  .a = 0, .b = 0 ;
	double_word old =  .a = 17, .b = 42 ;
	double_word new =  .a = 12, .b = 13 ;
	/* old != w, therefore nothing happens */
	compare_and_swap(&w, old, new);
	printf("Should fail -> (%d,%d)\n", w.a, w.b);
	/* old == w, therefore w = new */
	old.a = 0; old.b = 0;
	compare_and_swap(&w, old, new);
	printf("Should work  -> (%d,%d)\n", w.a, w.b);
	return 0;
 
This type of CAS can be used to implement lock-free algorithms (I've previously blogged about that sort of thing). The problem is that the cmpxchg8b uses the ebx register, i.e. pseudo code looks like:
if(EDX:EAX == Destination)  
    ZF = 1;
    Destination = ECX:EBX;
 
else  
    ZF = 0;
    EDX:EAX = Destination;
 
PIC code reserves ebx for internal use, so if you try to compile that with -fPIC you will get an error about not being able to allocate ebx. A first attempt to create a PIC friendly version would simply save and restore ebx and not gcc anything about it, something like:
  __asm__ __volatile__("pushl %%ebx;"   /* save ebx used for PIC GOT ptr */
		       "movl %6,%%ebx;" /* move new_val2 to %ebx */
		       "lock; cmpxchg8b %0; setz %1;"
		       "pop %%ebx;"     /* restore %ebx */
	    	       : "=m"(*mem), "=q"(result)
		       : "m"(*mem), "d" (old.b), "a" (old.a),
		         "c" (new.b), "m" (new.a) : "memory");
Unfortunately, this isn't a generic solution. It works fine with the PIC case, because gcc will not allocate ebx for anything else. But in the non-PIC case, there is a chance that ebx will be used for addr. This would cause a probably fairly tricky bug to track down! The solution is to use the #if __PIC__ directive to either tell gcc you're clobbering ebx in the non-PIC case, or just keep two versions around; one that saves and restores ebx for PIC and one that doesn't.

31 January 2008

Frank Lichtenheld: Some packages. debian.org,ubuntu.com updates

Junichi Uekawa: I bought Nintendo DS.

I bought Nintendo DS. I booted Linux on it. It's an ARM machine, which apparently doesn't have an MMU and has only about 32Mbits of memory. I'd probably have a tough time with it. I have not yet told my girlfriend that I bought Nintendo DS for this purpose; I'm (still) pretending I wanted to play Mario Cart.

Lior Kaplan: The kernel evolution speed


Apc quotes Jonathan Corbet on his “The Kernel Report” talk in LCA 2008:
“We are adding about 2000 lines of code to the kernel every single day of the year, without exception,” Corbet said. “Nobody can really keep up with this [on their own] any more. It’s an amazing process, and it seems to be working.”
Although I didn’t (and probably can’t) contribute a single line to the kernel, reading this made me a prouder Linux user… you too ?

29 January 2008

Adam Rosi-Kessel: Security and Privacy

It’s probably impossible to get too much of Bruce Schneier, although I honestly wouldn’t mind if he stopped Friday Squid Blogging. His latest Wired.com article on the false dichotomy between security and privacy is an excellent counterpoint to a recent Lawrence Wright profile in the New Yorker on Director of National Intelligence Mike McConnell. The Lawrence Wright article was surprisingly uncritical, considering the New Yorker’s usual zealous approach. Check out, for example, his description of the “Clipper” chip:
In the nineties, new encryption software that could protect telephone conversations, faxes, and e-mails from unwarranted monitoring was coming on the market, but the programs could also block entirely legal efforts to eavesdrop on criminals or potential terrorists. Under McConnell s direction, the N.S.A. developed a sophisticated device, the Clipper Chip, with a superior ability to encrypt any electronic transmission; it also allowed law-enforcement officials, given the proper authority, to decipher and eavesdrop on the encrypted communications of others. Privacy advocates criticized the device, though, and the Clipper was abandoned by 1996. They convinced the folks on the Hill that they couldn t trust the government to do what it said it was going to do, Richard Wilhelm, who was in charge of information warfare under McConnell, says.
(emphasis added). Compare, for example, EPIC’s Clipper Chip information page. Schneier, by contrast, sees right through the core:
We’ve been told we have to trade off security and privacy so often — in debates on security versus privacy, writing contests, polls, reasoned essays and political rhetoric — that most of us don’t even question the fundamental dichotomy. But it’s a false one. Security and privacy are not opposite ends of a seesaw; you don’t have to accept less of one to get more of the other. Think of a door lock, a burglar alarm and a tall fence. Think of guns, anti-counterfeiting measures on currency and that dumb liquid ban at airports. Security affects privacy only when it’s based on identity, and there are limitations to that sort of approach. Since 9/11, approximately three things have potentially improved airline security: reinforcing the cockpit doors, passengers realizing they have to fight back and — possibly — sky marshals. Everything else — all the security measures that affect privacy — is just security theater and a waste of effort. By the same token, many of the anti-privacy “security” measures we’re seeing — national ID cards, warrantless eavesdropping, massive data mining and so on — do little to improve, and in some cases harm, security. And government claims of their success are either wrong, or against fake threats. The debate isn’t security versus privacy. It’s liberty versus control.
Read the whole essay. And send it to your mother, as well. Technorati Tags: , ,

Matthew Garrett

This article is kind of interesting - it's a claim from a conservation group that using PCs to perform climate modelling is preferable to leaving them idle. The figures they provide are based on this brouchure from Tufts University, which provides an average power consumption per computer of 120 Watts and CO2 production of 1500 pounds per year. That gives a figure of 12.5 pounds of CO2 per Watt year.

The brouchure also contains the obviously false claim that an idle computer draws approximately the same amount of power as an active one. Anyone who's ever actually used a computer will have noticed that they get hotter when they're under load, and the baby thermodynamics would be crying if that energy didn't come from somewhere. The difference between idle and full load can be up to 100 Watts, though that includes extra draw from the graphics card. Something like the Climate Prediction application aren't likely to push the hardware that hard, but you're still looking at at least 20 Watts difference between idle and loaded on any reasonably modern computer. Using the Tufts figures and assuming that this results in an extra 16 hours of load per computer, that's somewhere around 170 extra pounds of CO2 per computer running the application per year - or, using the Tufts figure for the quantity of CO2 absorbed per tree, around 15 extra trees worth of required CO2 sequestration.

Distributed computing isn't a free resource. Each machine running one of these clients overnight is using something like 130 Watts more than a machine that's suspended instead. Deciding whether that's worth it is going to depend on your beliefs about how useful climate modelling is going to be in avoiding climate change. I'm leaning towards it being more of a political issue than a scientific one at this point, so my recommendation is to turn the things off.

(And please don't talk to me about the amount of energy wasted on demonstrating that cryptography can be broken when you've got enough processors to throw at it. The level to which anyone should be surprised at this result can be expressed in very few words)

Julien Blache: A release goal a day keeps the release away

http://lists.debian.org/debian-devel-announce/2008/01/msg00006.html I fear it’s a little bit too late to introduce a release goal such as this one, which will probably have quite a few (tricky) side effects. I think it’s time to stop piling release goals, or we’re never going to release.

David Welton: Munich Android Mobile Meeting Report

I'm a bit tired after driving up to Munich for the Android developer meeting, hosted by Google, and being "on" all day, but it was worth it. I was a bit apprehensive that it might be too 'introductory' in the sense of the Google guys telling you in person things that you could have easily looked up on the web, without spending a bunch of time driving around Austria and Bavaria. Fortunately, that wasn't the case. There was some of that, but also plenty of unstructured time to chat with Dan Morrill and Jason Chen, the two Google "Developer Advocates", who are both very friendly, informative and informed, approachable and put a lot of energy into what they do, despite being a bit tired from flying over from the US. It was nice to get a chance to talk with them, and considering that the platform is still changing, useful as well, because they were definitely listening to what people had to say to them. My thanks to them for a job well done. Here are some "impressions" I took away - note that they're not what anyone said, just ideas I got about what they said: There's still really a sense of Android continuing to evolve, in a true spirit of openness. I liked that, as it means there is space for people to tell Google what they want, rather than simply being given a finished product and told that that's that... but then again, I would, being the open source guy that I am. I didn't get to show off Hecl quite as much as I would have liked to, but I did get to mention it a few times, so I guess I did ok.

Christian Perrier: Want people to stop at your Debian booth?

...install a Babelbox, de-activate the "db_info babelbox/info" line in preseed_early and put the following in big capitals on a sheet of paper attached to the monitor:
BABELBOX CONTEST
Guess what language is used to install
that Debian system.
...and wait for the crowd to slowly gather around the box and start guessing. If you can offer stickers pins CDs to winners, that's even better. Hint: do not activate easy to guess languages. Good candidates (apart from all non Latin ones which are all *very* hard to recognize for the regular French geek, except maybe Japanese) are Hungarian, Basque, Slovenian. Arabic is too easy to recognize and so is Greek. Indic languages are a great success but Dzongkha is generally the winner. Hint 2: do not sort languages alphabetically by locales. Geeks are too smart and the geeks manning the booth will learn too quickly. Watch also people trying to switch to a console during the D-I runs and typing "cat /proc/cmdline". Hint 3: train yourself to recognize the languages before the contest so that you look clever... That worked pretty well during 1st day of Solutions Linux.

Simon Richter: Milestone 0.9

The not-yet-so-mighty project build tool I'm writing (codenamed "dammit") just compiled itself for the first time (took 40 seconds :-P ). It is probably not that usable yet, as it lacks dependency checking and thus always recompiles everything -- fixing that is the plan for tonight. So far, all it does is compile everything it can find and recognise in a directory and link it to a program; the plan for the future is not to add too much to that, mainly new project types like libraries and new input languages.

Stefano Zacchiroli: pts dehs integration

PTS now sports DEHS information During the last week I've started again doing some PTS hacking. Mostly it has been bug triaging and squashing ... I'll probably blog a summary of that sooner or later. In the meantime however an interesting mini-announcement is due: the PTS is now integrated with DEHS to help maintainers in knowing where a newer upstream version of their packages is available. The integration is twofold:
  1. if you are subscribed (via the PTS mail interface) to the "summary" keyword for a given package you will be notified of the availability of newer upstream versions. Kudos to Raphael Geissert for the work on the DEHS side of this
  2. in the PTS page related to a given source package you can now see a TODO item about the need to package a newer upstream version and a problem item if the last uscan attempt on your package failed
There is an entry about that in the forthcoming DeveloperNews, it will eventually flow to d-d-a.

28 January 2008

Ian Wienand: A cool laptop

Or, a modern guide to CPU frequency scaling with Linux. Having setup my laptop long ago, I had a strange hybrid of daemons running all trying to scale the frequency of my laptop periodically based on a myriad of different situations. Having decided to fix this, it appears the simplest approach is, as usual, the best. The way of the future appears to be to let the kernel do all the work with the ondemand govener. The cpufrequtils Debian package will arrange this for you on boot and by default should just work, although you can of course tweak parameters like minimum speed to decrease to and so forth. You can use the cpufreq-set utility to fiddle with settings, or just go into /sys/devices/system/cpu/cpuN/cpufreq/ to tweak them by hand. The many available daemons (cpufreqd, powernowd, etc.) appear to be largely redundant and are probably best removed. This dropped the temperature of my laptop about 10 degrees C and, apart from a much cooler lap, is so far imperceptible.

Colin Watson: UTF-8 manual pages

See Encodings in man-db for context. Yesterday, I uploaded man-db 2.5.1-1 to unstable. With this version, not only is it possible to install manual pages in UTF-8 (as with 2.5.0, although with fewer bugs), but it's also possible to ask man to produce a version of an arbitrary page in the encoding of your choice, and have it guess the source encoding for you fairly reliably. This finally provides enough support to have debhelper automatically recode manual pages to UTF-8. It'll probably take a little while to shake out the corner-case bugs, but I'm generally pretty happy with this. Once the new man-db and debhelper land in testing, I'll send a note to debian-devel-announce and push harder on my policy amendment. Considering the historical state of man-db when it comes to localisation, and all of the dependencies and general yak-shaving that had to be tackled to get here, this represents the end of probably several hundred hours of work, so I'm pretty happy that this is out the door. The only remaining step is to add UTF-8 input support to groff, which fortunately Brian M. Carlson is working on. After that, we can reasonably claim to have dragged manual pages kicking and screaming into the 21st century.

Axel Beckert: I finally ordered

After a three and a half week test drive during my last year’s summer holidays and much consideration about the configuration, I finally ordered a Brompton folding bike at Velofix. Since the apple green was much nicer in the catalogue than in real life, I decided that I need a bike in colours that clearly mark it as my bike: Orange frame and black front and rear swinging fork. ;-) It will have 6 gears (a 3-gear internal hub and a 2-gear dérailleur, both at the rear axle), a lowered transmission ratio for hilly Zurich and sprints in the city, a SON axle dynamo, Kevlar reinforced, reflecting tyres, and a bicycle luggage rack which also serves as kick stand when (partially) folded. Options I thought about but then dismissed for miscellaneous reasons: Schlumpf MountainDrive (can’t say if will be really worthwile) and Rohloff Speedhub (not available although I already saw a Brompton with a red Speedhub — funnily just in front of the place I live, and probably also more expensive than I remembered).

Wouter Verhelst: FOSDEM schedule for the Debian Devroom

I spent a good few hours today on creating a preliminary schedule for the Debian Developer's room at FOSDEM 2008. Just as I had finished it and sent it to the speakers to get their feedback before declaring it final, I received a reminder from the FOSDEM organizers that the schedule is due by the end of this week. My timing is impeccable :-) Having said that, the schedule is full. If you wanted to do a talk at FOSDEM, you're probably too late by now. Try again next year. Time to start focusing on the booth now, I guess...

Next.

Previous.