Christoph Berg: Mouseover titles
Best(*) Firefox extension ever: Long Titles
(Spotted on http://xkcd.org/about/)
(*) PS: Of course Open in browser and
Generic URL creator are also way cool.
Best(*) Firefox extension ever: Long Titles
(Spotted on http://xkcd.org/about/)
(*) PS: Of course Open in browser and
Generic URL creator are also way cool.
In the past I was not blogging small things if they were not worth a full blog entry on their own (or if I did not have the time to make up a full entry of it :). Inspired by the example of Raphaël Hertzog <hertzog@debian.org> with "News for Debian developers" for <debian-devel-announce@lists.debian.org>, I am intending to do the same on a monthly basis about my own Debian related work. This first entry about January 2008 also covers a few things from the last month of 2007.
General News
icedove-l10n-*) which was an outstanding issue since August 2006.
Guess what happens if you recommend free software in Yahoo! forums? Your message might just be deleted for violating their Community Guidelines or Terms of Service. Someone got a computer from a friend that had some serious problems with Windows. They had none of the disks (XP or restore) and were asking for recommendations. Amanda Kerik’s suggestion was to install Ubuntu or Kubuntu instead. It seems that they didn’t like that suggestion in Yahoo! Answers, as they simply deleted it. Might it be that Yahoo! simply loves Microsoft too much?
Recently I've been debugging a SQL Server 2005 replication setup, where the "Distribution clean up" job for the distributor database was failing. The error message in the agent history was:
Executed as user: <sqlagent_serviceuser>. Could not remove directory <UNC_path_to_snapshot_directory>. Check the security context of xp_cmdshell and close other processes that may be accessing the directory. [SQLSTATE 42000] (Error 20015). The step failed.The “<sqlagent_serviceuser>” was the Windows user that the SQL Server Agent service was running under, while the “<UNC_path_to_snapshot_directory>” was the network path to the directory where snapshots where created.
xp_cmdshell procedure mentioned in the error, and how it would require certain configuration at the server end.
If a publication is dropped, replication attempts to remove the snapshot folder under the security context of the SQL Server service account. [...]
I'm really pleased to announce here that one of the projects Maj and I have been working on for a long time has finally come to fruition. Today Wikitravel Press launched its first two Open Content printed guidebooks -- Wikitravel Chicago and Wikitravel Singapore.
When we started Wikitravel back in 2003 (!), our sincere hope was that at some point in the future, people would be able to carry Wikitravel guidebooks with them on a trip. I think that mobile technology is excellent, and it's amazing how much you can read on a cell phone or PDA these days. But there's still something so convenient about a printed guidebook: it never runs out of batteries; you don't need an uplink to read it; you don't have to worry about it getting stolen because you flashed it out in the wrong caf or restaurant.
To be honest, I thought that one of the "traditional" guidebook publishers would step in and use Wikitravel content in their guides. But that didn't happen, and along with our partner Jani Patokallio, Maj and I decided to start a publishing company ourselves. Thus Wikitravel Press, and our first two books.
We have a number of other books in the pipeline, and our hope is to have a few dozen available by the end of the year, and a few hundred by the end of the following year. I'm working on the Wikitravel guide to Montreal, and Maj and I are collaborating on Buenos Aires. We're taking a 6-week trip to Argentina in February/March, so this should be a great time for research.
I heartily encourage any writers or editors who are interested in working on travel books to contact Wikitravel Press about your ideas of bringing Wikitravel content to print. I think this is a great opportunity for people who want to encourage Open Content, or who want to get into the travel writing field, or who just love the idea of wikis-to-books.
tags: wikitravel wikitravelpress travel guidebook singapore chicago
#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;
if(EDX:EAX == Destination)
ZF = 1;
Destination = ECX:EBX;
else
ZF = 0;
EDX:EAX = Destination;
__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");
With pristine-tar version 0.5, I've added a new feature: The
ability to easily inject enough information into a git repository so that
a pristine tarball can later be regenerated from that repository.
If a package's upstream branch contains the upstream source
corresponding to the tarball to be imported, it's very simple
to use.
joey@kodama:~/src/fbreader> pristine-tar commit ~/lib/debian/unstable/fbreader_0.8.12.orig.tar.gz
pristine-tar: committed fbreader_0.8.12.orig.tar.gz.delta to branch pristine-tar
Otherwise, you also have to specify a tag (or any tree-ish really)
where the upstream source can be found.
joey@kodama:~/src/fbreader> pristine-tar commit ~/fbreader_0.8.9.orig.tar.gz upstream/0.8.9
pristine-tar: committed fbreader_0.8.9.orig.tar.gz.delta to branch pristine-tar
Here's what it puts in the pristine-tar branch that it creates. In this
example, the delta files are 40-some kilobytes, which is much nicer than if I'd
had to check the 2 megabyte tarballs into git directly.
joey@kodama:~/src/fbreader> git checkout pristine-tar
Switched to branch "pristine-tar"
joey@kodama:~/src/fbreader> ls -l
total 104
-rw-r--r-- 1 joey joey 46583 Jan 31 21:26 fbreader_0.8.12.orig.tar.gz.delta
-rw-r--r-- 1 joey joey 40 Jan 31 21:26 fbreader_0.8.12.orig.tar.gz.id
-rw-r--r-- 1 joey joey 45267 Jan 31 21:26 fbreader_0.8.9.orig.tar.gz.delta
-rw-r--r-- 1 joey joey 40 Jan 31 21:26 fbreader_0.8.9.orig.tar.gz.id
Don't forget to push the pristine-tar branch to your server for safekeeping.
joey@kodama:~/src/fbreader> git push origin pristine-tar
Once a tarball's delta is checked in, you can easily and quickly regenerate
the original tarball.
joey@kodama:~/src/fbreader> pristine-tar checkout ../fbreader_0.8.12.orig.tar.gz
pristine-tar: successfully generated ../fbreader_0.8.12.orig.tar.gz
Yes, it's really the same file. :-)
joey@kodama:~/src/fbreader> md5sum ~/lib/debian/unstable/fbreader_0.8.12.orig.tar.gz ../fbreader_0.8.12.orig.tar.gz
8045abe1acc75dbdd220400df541f23f /home/joey/lib/debian/unstable/fbreader_0.8.12.orig.tar.gz
8045abe1acc75dbdd220400df541f23f ../fbreader_0.8.12.orig.tar.gz
The above example is from the perspective of a maintainer of a Debian package.
But this can also be used by the authors who generate the pristine tarballs in
the first place. Check them into git using pristine-tar. Then you can
regenerate any tarball you've ever released using just your project's git
repository.
joey@kodama:~/src/pristine-tar> pristine-tar commit ../pristine-tar_0.5.tar.gz tags/0.5
pristine-tar: committed pristine-tar_0.5.tar.gz.delta to branch pristine-tar
One word of warning: For pristine-tar to check out the tarball, git needs to be
able to check out the tree that you referred to when you committed it in the
first place. If that was a tag that you've told git to delete, you're SOL. If
it was a branch and the branch has changed in the meantime, that's fine, so
long as git can find the original id that is stored in the .tar.gz.id file.
git-import-orig and git-debimport can get
support for automatically calling pristine-tar commit when importing
tarballs into git, and that tools like git-buildpackage and gitpkg can
use it to check out the tarballs.
Following on from AMD's announcement at XDS 2007, Intel have just released
documentation on their graphics
hardware, without NDA, available to the public. There's also a mirror at X.Org. Cheers, Intel!
I have this USB hard drive enclosure that can also share the files on the local network (LAN DRIVE HD9-U2LA, vendor id - 05e3:0702). Due to that it has an operating system and some other software inside. Unfortunately this software is rather slow to start and that cause the following kernel error when trying to mount this enclosure:
[90459.236000] usb 5-5: new high speed USB device using ehci_hcd and address 9
[90459.368000] usb 5-5: configuration #1 chosen from 1 choice
[90459.368000] scsi4 : SCSI emulation for USB Mass Storage devices
[90459.368000] usb-storage: device found at 9
[90459.368000] usb-storage: waiting for device to settle before scanning
[90464.368000] usb-storage: device scan complete
[90470.148000] usb 5-5: USB disconnect, address 9
[90470.148000] scsi 4:0:0:0: scsi: Device offlined - not ready after error recovery
The device is fine, it is just slow to start. To work around this bug you can change /sys/module/usb_storage/parameters/delay_use from a default 5 second delay to something larger. 60 seconds worked fine in my case.
echo 60 sudo tee /sys/module/usb_storage/parameters/delay_use
Anyone know what a proper solution could be?
On Sunday, the day before LCA
2008 officially started, Kelly and Rusty asked us first-timers
to blog about events, specifically about what we liked and
disliked. So far, this conference has been really enjoyable and
busy, and I have not found the time to write about its content. The
talk I just heard leaves me without an excuse, so there:
I have recently had a very interesting and enlightening
discussion with a blind Debian developer. When I saw on the
conference schedule that Jason White would talk about using Linux with
speech and Braille output interfaces, I passed up my
opportunity to hear Andrew Tridgell talk about clustered
Samba and attended his lecture instead.
Jason covered a great number of aspects: from the history of the
Braille system, and current, Free implementations thereof, via
speech output, to strategies of integrating these techniques into
existing programmes which are generally not designed with
visually-impaired users in mind. He has a collection of
references on his webpage, to which I shall refer for the
technical content.
His presentation left me very excited and impressed. Excited to
see him giving a presentation with such enthusiasm and energy, and
impressed because his talk (without notes or slides) was by
far better than the job of the average presenter with access
to notes and slides to display. Jason conveyed a lot of information
in a very well-structured, capitivating report. I think he left
most of the audience speechless (figuratively speaking; there
were good questions).
I feel uneasy with thanking Jason explicitly, or even writing
this blog post. If you bear with me for a minute, then let me
bridge to women involvement in open-source software. My position on
this topic is quite clear: I make no distinctions where they are
not obvious, and simultaneously I think it s awesome that more and
more women are joining the predominantly male crowd (and their
influence undeniably makes the community a more comfortable place).
Every now and then, I would like to comment on that, such as I
think it s awesome that you are working on this, being a
woman (an oversimplified example). What I am trying to say is
given how few women are involved with OSS, I appreciate all the
more what you are doing. This is non-judgemental, I don t say this
because I am trying to highlight someone s gender or sex. It s a
communication issue, and I am learning, but I d also rather not
limit what I say by making absolutely sure never to offend
anyone. But when I utter such a comment, it might still
greatly annoy someone or yield vicious returns. This is not always
the case in fact, less than it used to be but I ve encountered
it here and there, which made me more careful.
So when I write about Jason s presentation and how great it was,
I want to highlight how it s a greater achievement for him than it
would be for me, because he is blind and I am not. I don t mean to
single him out or put him on the spot. I am simply impressed, very
impressed. And being who I am, I d like to say so.
Thanks, Jason.
Update: David
Schmitt makes an interesting point:
The important question is now, why are we blind people doing great presentations more impressing than people with working eyes doing a great presentation? My personal answer isn t so great: because I didn t expect it. No wonder people get offended if you tell em to their face that I m impressed with his achievements, because I wouldn t have expected it.I don t agree, or at least I fail to see it. I was impressed, I did not expect it (which isn t to say that I came in to Jason s talk expecting it to be any less than a good talk, I had no expectation! Please think for a second if this isn t immediately clear!) is that offensive? I didn t know Jason, had no way to know whether his presentations are great or less so, but then he pretty much blew me away. The presentation was better than what I am used to (from anyone), and the achievement is all the more greater because it seems to me that he has had to put much more effort into it, purely for accessibility reasons. I guess I should know better, but I still, after all these years, have a problem seeing through the end of it, understanding it. Kant to the rescue, my intentions are good (I claim), but this goes both ways regardless: in any communication, one ought to try hard never to offend. At the same time, one ought to try hard not to be offended until one can be reasonably sure that offence was intended. When I brought this up in Adaora Oniya s miniconf talk on communication challenges, Bdale Garbee recalled the policy in use when he was involved in protocol design work groups: send politely, receive with an open mind. I don t remember his exact words, but I think I got the gist. Update: I just talked to Jason and got his feedback on the issue. It boils down to a quote I ll transcribe: I want my work to be judged by its merit and not by who I am. It only leaves me wondering about the situation at hand: I was impressed by his very well-structured and presented talk and by the fact that he did such a good job given his visual impairment. In any case, I ll close the issue. Jason told me he d happily engage in further discussion and I stated that he is not offended. There is another lesson I learnt: the next time I blog about someone else in such a way, I should really get his/her clearance before publishing! Just to be sure
The Phone Coop (agent link) will hold its workshop and annual meeting on Saturday. If anyone is going and wants to car-share from the N.Somerset/Bristol area, let me know (new comments form follows this post). I can't quite afford a 5h train trip instead of a 2h car trip, but I'd quite like to reduce the damage. Also, we've just finished and sent the official reports for TTLLP yesterday. We've also various projects which I want to get finished, including the IPC::Open3 for Koha. If I'm a bit hard to reach this week, this might be why. We are still returning calls in batches in our breaks, though, so please please please leave a voicemail. Social Source South West is next Tuesday in Bristol. I'll be there. Will you?
On January 26th 2008, the OCaml community has its first meeting in Europe. There was 5 different talks, including one from me. The meeting was pretty constructive and i think some great things should come out of it. In this post, i will focus on the Debian maintainer point of view.
The meeting was organized by me, with the help of Garbriel Kerneis and Vincent Balat. I wish to thank Mme Turgis from ENST/ParisTech who has made possible all this to happen.
Introduction:
I announce the creation of OCamlCore, a SS2L. It will provide commercial support for OCaml and related products. It will also provide community with some resources (including a GForge, a planet, some SCM repository...)
For now, i will open administration to Debian people who wish to help (for root rights) and from the whole community for other task (gforge and general administration). For now, i will choose alone who can administrate and who cannot... This is not a very open position, but this server is also for my company.
Xavier Leroy give us a nice talk that has let us see some future direction:
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: Schneier, Privacy, Security
Next.