Matthew Garrett
Partial OLPC unboxing:
Please plug adult into electricity supply before use

Warning: OLPC may make children cry
Partial OLPC unboxing:

Finally making the last release of libqof1 before the imminent transition to libqof2. v0.7.4 includes a new pkg-config file that will become the default for libqof2 and later releases - qof.pc. In 0.7.4, this is installed alongside qof-1.pc to make it easier for packages to transition to the new file and to libqof2. (The transition itself simply consists of removing all the deprecated code in 0.7.4 in a single operation - use --disable-deprecated-qof to ./configure to see the effect.)pkg-config --libs qof call in ./configure (and a minimum requirement for QOF v0.7.4). GnoTime also needs to make this change (other changes for libqof2 have already been made - thanks Linas.)
In Brazilian Portuguese, "bombeiro" is the word for both a fireman and a
plumber. If someone asks you to call a "bombeiro," their statement is
usually unambiguous due to context. Usually.
Both SVG source and t-shirts are available at cost.
2.6.24 has been uploaded on Saturday and passed NEW on Monday. It will be soonest available for all archs. If we don't get enough test coverage or things go bad 2.6.22 will be the fallback for Etch+half. The images install in Lenny/testing just fine. So please give it a spin.
Known Issues are still missing VServer and Xen images, bnx2 + snd-cs46xx disabled due to firmware issue and ACPI userland still relying on old interfaces (for example #462305).
For more adventurous souls the kernel buildserver will continue to track latest Linus git daily snapshot (enhanced ext4 should land soon).
2.6.24 will also soon be pushed to Testing. I repeat this is not the real Etch+half kernel yet as there will be some config changes for it, but it is pretty close. Thanks for your 2.6.24-rc7 feedback.
As I mentioned I would a month or so ago, I attended a workshop on
Computing in the Cloud organized by Ed Felton's Center for
Information Technology Policy at Princeton University. The
conference aimed to discuss the policy issues that are raised by the
shift from computing on machines we own and have direct control over to
computing on servers owned by others. Think Google, Facebook, MySpace,
and that lot.
I talked about what all this might mean for free software and for open
source and our communities, a bit about the AGPL, and discussed some
ideas of how might proceed as a community. Princeton has been organized
enough to post audio and video of the whole conference, including
recordings of my talk, in a variety of formats and qualities (although
unfortunately not in Vorbis and Theora).
As I said in my FSF membership appeal last month, I think
complications raised by "cloud computing" are one of the most important
sets of challenges facing free software this year.
As written earlier, I'm switching build system for one of my projects.
In the end, I decided to roll my own. Yes, another build system out there. The general idea is to combine the strengths of automake and MSBuild, and take them to new extremes by not compromising where they have (that makes my build system a tad inflexible though).
Automake's biggest strength is that it is descriptive, rather than imperative, and while it allows for rules to be entered directly to allow for some flexibility, this is usually the point where the Makefiles that are produced become unportable. But in general, the idea of having a tool deduce what exactly should be done to transform a set of input files into a set of output files is a good one, I think.
From MSBuild, I stole the idea of making an explicit distinction between higher-level integration projects ("solutions" in their lingo) and actual build projects. Build projects only have one (main) output, which usually is a program or a library, and several auxiliary outputs (development files, translation templates, ...), while integration projects coordinate the build process (for example, if one of the build projects builds a tool, all projects using that need to be re-run if the tool is rebuilt, but only then.
Automake's biggest downfall is stuff that is not explicitly supported. One of my projects uses IDL extensively, which leads to quite a lot of explicit rules supporting different ORBs. If I wanted to teach automake about that, I'd have to understand lots of perl code that emits code fragments that, when combined, will do the right thing. In a way, automake is a compiler, but based around the idea that since we start out from a Makefile compatible syntax, just adding things will magically work. Where it doesn't, special cases are invented, such as for libtool support, but stacking special cases is really difficult.
MSBuild, on the other hand, leaves a lot to be desired when it comes to project-to-project integration. There is no way to tell it "publish these include files under the such-and-such directory for use by other projects", rather, you are expected to have the project using them explicitly reference your project in the include directories. If a project uses includes that reference includes from yet another project, it gets worse.
Milestone 1 is going to be when the main binary can build itself on Windows and Linux.
As during previous keysigning events, such as DebConf7 and
DebConf6, I
turned up to the LCA 2008 keysigning
event with my ID card issued by the Transnational
Republic.
Previously, this act has caused people to to get
rather upset. I
have explained my motivation and rationale in response to the
thread; yet, my reputation as keysigning subverter precedes
me. I maintain that I am not subverting the web of trust in any
way.
I conduct this experiment mainly out of interest, and to
sensibilise participants of the web of trust. Even though I stated previously
that I would no longer attend keysigning events, I couldn t pass up
this opportunity on the other side of the planet.
Fifty-seven people exchanged data and glances at ID cards with
me. In total, 9 people asked about this ID card, mostly out of
curiosity, but only one person flat out refused to sign my key.
This leaves 47 who apparently accepted it.
If you disagree with my approach, please do not sign my keys,
0x330c4a75 and 0x667c7088 (but do read my arguments, please). I
will not import signatures I receive for a while, so if you have
already sent your signatures by the time you read this, send me a note
and I ll delete them.
Keep in mind that you are not authenticating the ID. You are
authenticating my identity. And unless we ve interacted or you
otherwise know who I am and that I am the same person as
is using this key for the work through which you know me, you
should not sign my key.
Also note that I continue to stick to my policy and will only
sign keys of people that I know . Thus, if you want my signature
and we have not previously interacted, you have four more days
until the conference is over.
Update: a couple of people replied, including
Paul Wayper. I ve since had an interesting discussion with him
but still want to address two points in his post here:
The ID presented is not fake , it is simply issued by an entity
that is not considered official . Its data are all correct, which
I am happy to prove to anyone who cares.
Second: if the web of trust were to die if everyone did what I
was doing, would it live forever and improve continuously if we
continue such mass signings based entirely on IDs? Noone can know
how to verify IDs from all countries that issue them, introducing
fakes is trivial (as my experiment and this
message hopefully show). I think it s a case of quality versus
quantity. Whether you buy my point that you need to ask yourself
what you are actually proving to the web of trust with your
signature (and sign (or not) accordingly), or whether you are
signing an identity (what is identity?), I would suggest
to concentrate more on educating people. At the keysigning at
DebConf7 in Edinburgh, we split people into
smaller groups around well-connected keys. Within each group,
prior to the keysigning, experienced key owners would take a short
time to talk about the process and explain its goals. Specifically,
they would make it explicit that there is no obligation to sign
ones key, similar to
what Jonathan said in this message prior to the LCA
keysigning.
My experiment yielded
a small discussion on the LCA chat mailing list, which is worth
a read if you haven t seen it yet.
apt-get update after upgrading so that
the torrents can be restarted.
There was also some changes in the statistics reporting. In the client,
the uploaded and downloaded statistics will now persist over restarts so
that you can see how much you've done over a longer period. The tracker
status page also got an update, and now shows the total uploaded
and downloaded bytes for each torrent, as well as some more descriptive
names for some of the torrents.
Due to the large changes in this release, I opted for uploading to
experimental (and my repository) for now, so that it can be tested a
bit. Please do test it, and let me know of any bugs, problems or
concerns that you may have.
Here is the changelog:
Maybe someone can shed some light on these outstanding questions
about airplane safety. The Thai steward earlier made it perfectly
clear, with a straight face, that our safety is their priority, but
so far, no-one of the crew could give me the answers:
Your new door to the world the slogan for Bangkok s new
Suvarnabhumi airport tries to get people to stop-over on their
trips between Europe and Asia. The airport s webpage claims that
the airport currently handles 45 million passengers per year, but
that it would scale up to 110 million.
I don t see this happening, at all. Today, leaving for
Melbourne, I waited for an hour in the security queue, as four
flights were leaving concourse E (which has 10 gates) at once:
around 500 passengers were queueing to be scrutinised for
explosive liquids and other stuff a real terrorist would
never consider smuggling on a plane via the standard passenger
processing theatre in four lines behind four security checkpoints
(in fact, that s how I confirmed my estimate: around 30 seconds per
passenger (I timed it), it took me one hour, that s 120 passengers
per queue, so about 500 total, at once).
Four lines, one hour? 45 million passengers. 110 million
passengers? Six lines (there isn t much more space), so 200
passengers per line, 1:40 hours? My new door to the world?
Bangkok?
Of course, this is in large part because of idiot passengers.
While I was waiting in line, they came three times (every 20
minutes) to empty the garbage can where potential terrorists have
to dump their drinkable explosive fluids. We ve had this ban for
over 1 years, for crying out loud! Sure, some people don t (get
to) fly a lot and a few may really not have heard about dangerous
liquids yet (I felt really sorry for an elderly couple who had to
ditch pretty much all their toiletries leaving Zurich for Madrid
and wondering how they would survive there), but then at least
open your eyes and turn on your brain, please.
Unfortunately, the typical Bangkok/Southern Thailand tourist
probably hasn t got brain cycles left between walking and carrying
luggage. If you don t believe me, stop-over in Bangkok and look
around: anything with legs in shorts and flip-flops probably fits
right in, any obscenely and annoyingly loud group as well. For
instance, this circus of 10 en route to London, who joined the end
of the queue (read: about 1 hour to go) after their flight s final
call with millions of shopping bags. They furiously tried to raise
hell, but failed and probably missed their flight.
Observing all such episodes around me made the hour go by fast
I also had ample time left before my gate would close. There was
one situation, however, that made walk over and complain to the
supervisor (the one with the walkie-talkie): a couple from Canada
were similarly faced with the final call for their flight to
Toronto and walked straight up to the top of the lines outside
the ropes. After a short discussion, one of the security attendants
escorted them to the gate without subjecting either their
bags or bodies to the ever-secure screening process.
The supervisor (the one with the walkie-talkie) didn t speak
English. All she did was smile and make motions with her hands
which suggested that I should join the end of the queue.
As I said before, I don t believe that the (minimal) added
security we have at airports today corresponds to or justifies in
the slightest bit the shit we have to go through these days to be
airborne. However, if you make rules, then stick to them and don t
open gaping (= inviting) security holes.
Fortunately, the Canadians later had to surrender their weapons
of plane destruction since, on every gate, another party
of security attendants glove-hand-searched every bag a second
time, with the previous security checkpoint no 100 metres
behind.
I don t see Suvarnabhumi as a successful or scalable airport. If
Bangkok wasn t such a great place
?to kill a few hours (especially compared to e.g.
Singapore), or the (best) entrance to Southeast Asia, I d probably
avoid it in the future.
Russel blogs
about write intent bitmaps, which are an option in the Linux Software
RAID subsystem, which works somewhat like a journal on the RAID level:
every time you write to the array, you first mark the bits you're going
to write to as dirty, then write them, and then mark them as clean
again. This allows the RAID subsystem to have to check much less in case
of a system crash, where normally the system would have to run a full
array rebuild.
He'd suggested this before on the debian-boot mailinglist, and when I
read that post, it seemed to make sense. However, after reading his blog
post, I'm not so sure anymore. In his words:
The down-side to this feature is that it will slightly reduce performance. But when comparing the possibility of a few percent performance loss all the time and the possibility of a massive performance loss for an hour or two after a crash it seems that losing a few percent all the time is almost always the desired option.I vehemently disagree there. Performance is irrelevant in case you have a large server park; in that case, adding another server to the park is relatively cheap—you don't run hundreds of servers on a small budget, and besides in these days of virtualization, often migrating a service from one physical server to another isn't very hard. However, this isn't true when you're talking about small businesses, or (especially) home servers. When I have a choice between high loss of performance in case of something which happens only rarely (in my experience, the Software RAID subsystem is pretty good in recovering from a power loss without having to go through the RAID rebuild, leaving only kernel crashes and similar) or a small but continuous performance loss on my home server, there is no doubt in my mind that I will choose the former. First, my home server is a Thecus N2100, which, while powerful enough to run a number of services for my home network, is not a very fast system with somewhat low resources in comparison to some other systems; and even a small loss of performance is probably noticeable. Second, the speed of recovery which the RAID subsystem uses (and, hence, its performance impact) is manageable through the files /proc/sys/dev/raid/speed_limit_max and /proc/sys/dev/raid/speed_limit_min. Obviously lowering the speed of the RAID rebuild will make the process take longer; but if performance matters that much to you, then lowering the rebuild speed can be an option. Finally, sometimes the RAID subsystem chooses to go through a lengthy check of the entire array; it would be interesting to know whether using the write intent bitmap feature disables this too. I suspect this is not the case, and if so it would seem as if enabling this feature would cost some performance for little benefit: in normal situations these checks happen far more often than actual RAID rebuilds; so the most important source of performance loss would not be handled at the cost of extra performance loss. In closing, I guess the right answer to this question is that it's a trade-off; that choosing the right defaults should be done by upstream (to avoid confusion), and that the user should be given the possibility (somehow) of enabling or disabling this option in defiance of the defaults at install time (perhaps only in d-i's expert mode)
This weekend has been an interesting mix of activities. Mostly I've been tweaking my mail filtering service now that it has more users it is more interesting to do that.
The basic process of mail-scanning is pretty simple, but there are some fun things in the mix which make it slightly more fiddly than I'd like.
The basic recipe goes something like this:
CSS is a lovely principle, but between browser bugs and an insanely
complex standard in practice, it's not nearly so fun.
Today's case in point: I want three images stuck right next to each
other. I've got an example
of the sort of thing I want to do -- in that example, I want the three
coloured squares to be adjacent, not separated by several pixels of
whitespace, and for there to be no white between the boxes and the bottom
border.
In order to make this happen, at the moment, I've got to set negative
right and bottom margins, which to me is just completely screwed up --
negative margins, to me, means overlap, not adjacency. What makes it
even worse is that different browsers need different pixel counts. So
far I've tested on IE6 and Firefox 1.5.
The thing that really does my head in, though, is that fact if I
change the font size the gap changes. So somewhere inside of both IE6
and Firefox 1.5, there's some relative size getting in the way of just
sticking pictures next to each other.
Update: I've been given the solution. Thanks to the 50 or so people who responded; it's great to know there's so many helpful people out there.
Quick link to ClearStationery.bas
I don’t have much (any?) history of posting tips for the Windows platform, but I’m currently stuck with it for daily work use, so I figured I might as well share some tips that my readers who happen to be in the same predicament will find useful. (Planet Debian readers please have mercy.)
One of the worst things you that Microsoft Outlook allows a user to do is select a “stationery” for email. Stationery goes beyond regular old HTML mail (e.g., fonts, colors, and bullet lists) to add a patterned background, invariably rendering the content much less readable than it would be with a white (or even any other color) background. What’s worse is every reply to an email with stationery also adopts the original sender’s stationery!
I searched quite a bit for a solution that does not involve sending a nastygram to the original sender. Of course you can convert the email to plain text (or set Outlook to only display the plain text version) and then convert back to HTML or Rich Text, but you’ll also lose other formatting that you might want to retain. You could cut and paste the text into a new email, but what is really needed is a simple VBA macro that will strip the stationery but not other formatting.
Strangely, I don’t think that macro already exists. So I wrote one, to some extent cribbing from related code snippets (mostly from here). I now present to the world ClearStationery.bas, my best contribution to date to the Outlook ecosystem. Simply paste it into your Outlook Visual Basic Editor (ALT-F11) and then map the macro ClearStationeryFormatting() onto a toolbar with a hotkey, and you can instantly remove stationery from any email, whether it is in the “preview” pane or the full message view.
Comments, bug reports, and improvements are welcome:
Sub ClearStationeryFormatting()
On Error GoTo ClearStationeryFormatting_Error
Dim strEmbeddedImageTag As String
Dim strStyle As String
Dim strReplaceThis As String
Dim intX As Integer, intY As Integer
Dim myMessage As Outlook.MailItem
' First, check to see if we are in preview-pane mode or message-view mode
' If neither, quit out
Select Case TypeName(Outlook.Application.ActiveWindow)
Case "Explorer"
Set myMessage = ActiveExplorer.Selection.Item(1)
Case "Inspector"
Set myMessage = ActiveInspector.CurrentItem
Case Else
MsgBox ("No message selected.")
Exit Sub
End Select
' Sanity check to make sure selected message is actually a mail item
If TypeName(myMessage) <> "MailItem" Then
MsgBox ("No message selected.")
Exit Sub
End If
' Remove attributes from <BODY> tag
intX = InStr(1, myMessage.HTMLBody, "<BODY", vbTextCompare)
If intX > 0 Then
intY = InStr(intX, myMessage.HTMLBody, ">", vbTextCompare)
strReplaceThis = Mid(myMessage.HTMLBody, intX, intY - intX + 1)
End If
If strReplaceThis <> "" Then
myMessage.HTMLBody = Replace(myMessage.HTMLBody, strReplaceThis, "<BODY>")
strReplaceThis = ""
Else
Err.Raise vbObjectError + 7, , "An unexpected error occurred searching for the BODY tag in the e-mail message."
Exit Sub
End If
' Find and replace <STYLE> tag
intX = InStr(1, myMessage.HTMLBody, "<STYLE>", vbTextCompare)
If intX > 0 Then
intY = InStr(8, myMessage.HTMLBody, "</STYLE>", vbTextCompare)
strReplaceThis = Mid(myMessage.HTMLBody, intX, ((intY + 8) - intX))
End If
If strReplaceThis <> "" Then
myMessage.HTMLBody = Replace(myMessage.HTMLBody, strReplaceThis, "")
End If
If InStr(1, myMessage.HTMLBody, "<center><img id=", vbTextCompare) > 0 Then
strEmbeddedImageTag = "<center><img id="
'"<center><img id=""ridImg"" src="citbannA.gif align=bottom></center>"
intX = InStr(1, myMessage.HTMLBody, strEmbeddedImageTag, vbTextCompare)
If intX = 0 Then
Err.Raise vbObjectError + 8, , "An unexpected error occurred searching for the embedded image file name start tag in the e-mail message."
Exit Sub
End If
intY = InStr(intX + Len(strEmbeddedImageTag), myMessage.HTMLBody, " align=bottom></center>", vbTextCompare)
If intY = 0 Then
Err.Raise vbObjectError + 9, , "An unexpected error occurred searching for the embedded image file name end tag in the e-mail message."
Exit Sub
End If
strEmbeddedImageTag = Mid(myMessage.HTMLBody, intX, intY - intX)
intX = InStr(1, myMessage.HTMLBody, "<CENTER>", vbTextCompare)
intY = InStr(intX, myMessage.HTMLBody, "</CENTER>", vbTextCompare)
strReplaceThis = Mid(myMessage.HTMLBody, intX, intY - intX) & "</CENTER>"
myMessage.HTMLBody = Replace(myMessage.HTMLBody, strReplaceThis, "", , , vbTextCompare)
End If
' Finally, saved modified message
myMessage.Save
On Error GoTo 0
Exit Sub
ClearStationeryFormatting_Error:
MsgBox "Error " & Err.Number & " (" & Err.Description & ")"
Resume Next
End Sub
Stationery-B-Gone!
Today is H ctor s birthday. We celebrated with his family and a couple of close friends. He cooked a wonderful meal for us (he is a great cook) and we had a very nice afternoon, despite having a flu (again!) and a very runny nose. I am at this very moment preparing a sponsored upload for Carlos, one of the close friends who attended. He will become an excellent Debian contributor some day. ls --color is useful. It can show you which items in your directory listing are directories, symlinks, broken symlinks, device nodes, named pipes, whatever. I am glad that it exists.
However, let’s consider the basic action of ls. It is, of course, to display which files and directories exist in a directory. This is really quick and easy in Unix. Simply use the libc function opendir() then just readdir() till it returns NULL and errno is 0. In terms of syscalls, this is an open(), one or two read()s and a close().
When you turn on the color option, every directory item incurs the weight of an extra stat() call to see what it is.
Worse still, if it’s a symlink, ls will obligingly bound across to the thing linked to, to check it exists. If this causes your automounter to wake up and mount something remote, that’s quite an overhead. If your mount hangs because the remote filesystem is unavailable, you can say goodbye to that process; it'll be stuck blocking on a syscall that will never return.
A partial solution
To fix the symlink problem, here’s what you do. ls was written to avoid chasing symlinks if configured not to. Check your environment variables for the LS_COLORS variable with:
$ env grep ^LS_COLORS
If it exists, you have a config file for colour ls: you should edit /etc/DIR_COLORS* or copy it to $HOME/.dircolors and edit it there. Otherwise, type:
$ dircolors --print-database > $HOME/.dircolors
The edit you need to do is to remove or comment out the ORPHAN line from the file.
Unless you were able to edit the file in /etc, you now need to make sure that this new $HOME/.dircolors file is used. In your shell login script (.bash_login for bash and .login for (t)csh, put the line:
eval dircolors $HOME/.dircolors
(Note that these are backticks, not apostrophes.)
Next time you log in, you'll be able to use colourful ls without fear of a remote filesystem freezing your directory listings.
In conclusion
Use ls --color when you need it, but as with all powerful tools, use it with care.
Corrections: James pointed out that to dump the default config it is –print-database not –print-directory.
Next.