Search Results: "ean"

13 June 2007

Lucas Nussbaum: maintainer wanted for next generation tetrinet server!

You probably all know tetrinet - if you don’t, you should really try that game. There are several servers for that game out there, and one of them is tetrinetx. It is packaged in Debian, but it has several problems: A few years ago, I worked with a few friends on improving tetrinetx. This resulted in: This is hosted on sourceforge under the name tetrinetx-ng, but it hasn’t seen any activity for the last two years. It would really be great if a tetrinet fan could take over the project and start making it alive again. Then tetrinet.debian.net could support tetrifast ;) Also, I could try to setup a server with tetrinetx-ng. Someone wants to host tetrifast.debian.net for me ? Needed: MySQL DB + Apache (for the stats), + not being afraid of insecure code (doesn’t need to run as root)

Mario Iseli: Organize stuff and prepare for Debconf

Hello World :) Debconf (16.6.2007) is getting closer, in 77 hours I will take the train to the airport in Geneva and then fly to Edinburgh. I didn’t really organize anything yet so it becomes stressful.
* Today I organized a kilt from a friend, looks quite funny, I will wear it on Saturday.
* Wednesday I want to prepare my private notebook and maybe even my IBM x60s from the office.
* Wednesday I want to prepare my digital camera and clean the memory stick.
* Wednesday I’ll organize 95 for the LPI exams.
* Wednesday evening I’ll go out with some friends to have party (several of my friends go to the Greenfield festival Thursday evening and I go to Debconf, time to celebrate)
* Thursday evening I will leave work early and go to Biel to buy some clothes for me, cheese for madduck and the othere Cheese’n'Wine participiants, chocolate for ana, cookies for Joerg. (If you also want something from .ch, please ping me on IRC)
* Thursday after shopping I need to go to a business dinner in a Mongolian BBQ restaurant.
* Friday I need to organize some W-Lan cards for the airport in Geneva in a Swisscom-Shop.
* Friday I would like to bring a friend a birthday gift.
* Friday I would like to go to have a drink with my ex-girlfriend.
* Friday night I need to prepare my baggage including all technical stuff. So you see, several tasks I have to do (this weren’t all of them) and I hope to be able to do all of that ;) See you in Teviot, Saturday afternoon!

Jacobo Tarrío Barreiro: Bike sheds

I had prepared a modified version of this photo, making each bike shed door a different color, and with labels on them saying KB , MiB , Tb , Gib , etc. (It was in reference to this thread, in case you were wondering). But then I noticed that the original photo had a CC by-nc-nd license, which means that derivative works are forbidden without permission. I could have asked for it, but when/if I received it, it would already be too late for the joke. So, no modified photo for you. And how does something on which you cannot base your own work be a part of any sort of Creative Commons ?

12 June 2007

Bastian Venthur: 1 Kilobyte = 1000 24 bytes

Could you exactly say how big your hard disk has to be at least when the vendor claims it’s 500 Gigabytes big? Do you know how many bytes a file has when the filemanager says 2 Megabytes? Do you know what your DSL-provider actually means with 2 Megabit per second? Experienced users surely can since they know the meaning of “Kilobyte” depends on the context. Sometimes it’s 1000 bytes, sometimes it’s 1024. Non technical users will tend to assume that a 1 Kilobyte is 1000 bytes (which is correct, since k is the SI prefix for kilo) while users with technical background will tend to assume (depending on the context of course) it’s 1024. There is a solution for this ambiguity, but unfortunately it doesn’t come for free: First, it sounds really stupid (kibi-what?) and second it will add an extra character (kB -> kiB) and we all know how stuffed our 80 column terminals already are nowadays. If you have better arguments against the binary prefix notation please, join the discussion. Personally I’d find it very cool if we could use SI prefixes where we mean n * 10^3 and binary prefixes where we mean n * 2^10 in Debian consistently.

Antti-Juhani Kaijanaho: Benja on denotational semantics

My friend Benja Fallenstein got carried away in the comment section of my latest post on recursion and wrote a tutorial on how it all relates to denotational semantics. It’s a shame it is buried somewhere in the comments, so I am reposting the comment here with Benja’s permission. The tagline is, Denotational semantics tutorials. It s the new monad tutorials!
Benja Fallenstein writes: Having read and understood [the] entire post, I can now summarize Antti-Juhani s complaint in a way that programmers with no theoretical background will understand: The definition is an infinite recursion. Sure, it s self-referential, but since it recurses forever, it doesn t actually define what recursion is! :-) That said, I find it kind of a pity to introduce all this theory without talking about why it nicely models the real world. Antti-Juhani argues that this pretty much the definition of popularized science, but I have to admit that, as definitions go, I like recursion: see recursion better. :) So let me have a quick go. [UPDATE: Didn t turn out to be quick at all. This is, in fact, as long as Antti-Juhani s original post. Proceed at your own peril.] All of this comes from denotational semantics, which is concerned with what expressions in a programming language mean and which ones mean the same thing. For example, 7 denotes the number seven, 7+2 denotes the number nine, and 5+4 also denotes the number nine. Now, here s the knotty problem. If we have f(x) = if x = 0 then 1 else x*f(x-1) then f(4) denotes the number twenty-four, but what does f(-2) denote? So, denotational semantics introduces a new, special value, recurses forever. An expression of type integer either denotes an integer, or, like f(-2), it denotes recurses forever. Now, about these partial orders. (Reminder: A partial order says, for every pair (x,y) of elements of a certain set, that x is smaller than y, equal to y, larger than y, or incomparable to y.) Here is Benja s guide to what the partial orders of denotational semantics mean: Let s say that you write a program where, in one place, you can plug in either x or y. If you can write such a program that prints foo when you plug in x and prints bar when plug in y, then x and y are incomparable. If you can t do that, but you can write a program that prints foo when you plug in y, and recurses forever when you plug in x, then x is smaller than y. If every program you can write will do the same thing whether you plug in x or y, then x and y are equal. (We ignore details like out-of-memory errors and *how long* a program takes to do something.) Examples: - 5 and 7 are incomparable. Proof: if ___ == 5 then print foo else print bar . - f(-2) f(2). Proof: if ___ == 2 then print foo else print foo if you plug in f(-2), this will loop forever, if you plug in f(2), it ll print foo . - (5+2) = 7. Whatever program I write, it will do the same thing, no matter which of these expressions I plug in. Now, with expressions of type integer, the resulting partial order is: Recurses forever is smaller than everything else. All other values are incomparable. Recall from Antti-Juhani s post that the bottom element ( ) is defined to be the smallest element of a mathematical universe (if such a beast exists). Since recurses forever is smaller than everything else, it s the bottom element of this universe. That s what denotational semantics calls it. (Haskell, too.) Of course, this partial order is kind of boring (the technical term is flat ). It gets more interesting when we consider functions. In general, we can talk about functions from values of type S to values of type T, where we already know the partial orders of S and T. In particular, we can talk about functions from integers to integers. Now, if you can find an x and a program that prints foo when you plug in f(x) and bar if you plug in g(x), then you can write a program that prints foo when you plug in f, and bar when you plug in g. (Exercise! ;-) ) Further, denotational semantics wants applying a function to a parameter and then doing something with the result to be the *only* way you can get information about a function. No f.get_function_name, please. (If your programming language has that, you can t map the functions of your programming language 1:1 to the functions of denotational semantics.) By my rule above, this implies that f = g if and only if f(x) = g(x) for all x. Since formal theories can t have fuzzy stuff like my rule, denotational semantics takes this as the *definition* of the partial order on functions. The bottom element of this mathematical universe, then, is the function that always returns bottom, no matter what it is given or in other words, a function that recurses forever, no matter what parameter you pass to it. (Side note. Denotational semantics allows only monotone functions that is, if x = y, then f(x) = f(y) for all f, x, and y. That s an example of how all these definitions allow us to make formal statements about the real world. In the real world, if you can find a function f and a program that prints foo when given f(x) and bar when given f(y), then you have a program that prints foo when given x and bar when given y so if f(x) and f(y) are incomparable, then x and y must be incomparable, and the other way around, if x and y are comparable, then f(x) and f(y) must be comparable, too. (This reasoning doesn t exclude the case that x = y and f(x) >= f(y). If you really care, prove it yourself. :) ) This ends the side note.) Recall, now, Antti-Juhani s definition of recursion: An equation of the form x = some expression (which may contain x), interpreted as a recursive definition, defines x to be the smallest value satisfying this equation. The models constructed in denotational semantics have the property that for any equation of this form, the set of values satisfying it does have a smallest element, so x is well-defined no matter what the equation is. It s important to note that this does not mean that x has to be bottom, because there are equations to which bottom is not a solution. Let s look at a slightly simpler example than the one Antti-Juhani gave. f(x) = if x = 0 then 0 else f(x-1) We have f(0) = 1, but bottom(0) = bottom, so f can t be bottom. The equation has more than one solution, though. It is satisfied by a function that returns 0 for x >= 0 and returns bottom (recurses forever) for x 0; but it is also satisfied by a function that returns 0 for every input. And by an infinite number of functions that return 0 for some negative inputs and bottom for others. We want the first of these solutions, of course, because that s what we get if we interpret the equation as a computer program, and computer programs are what we re trying to model. But we re in luck: The first solution is smaller than all the other ones, because for all inputs, they either return the same value, or the solution we want returns bottom and the solution we don t want returns 0 (and bottom 0). The point of it all is, of course, that when we interpret an equation as a computer program, we always get the least value satisfying the equation (if we use a partial order that follows my rule, above). And that, my friend, is denotational semantics.

Antti-Juhani Kaijanaho: On recursion

Note: This entry has been edited a couple of times (and might be edited in the future) to remove errors. Thanks to Benja Fallenstein for critique. My previous post about recursion drew some comments. This is a topic that frequently confuses me, and there is a lot of confusion (some of it mine) in the blog post and its comments. On reflection, it seems prudent to examine what recursion really is. Consider the following recursive definition: 0 is an expression; if T is an expression, then sT is an expression; nothing is an expression that doesn’t have one of these two forms. Now, it is clear that 0 is an expression. It is equally clear that sssssK is not an expression. In some applications, it makes sense to consider infinite expressions like “…ssssss0“; that is, an infinite number of ss before the final 0, and in others it doesn’t. Is that infinite utterance and expression? It does have one of the forms given in the definitions, so it is not forbidden from being an expression, but neither is there anything in the definition requiring that it is. It is helpful to do this a bit more formally. Let us translate the self-referential definition into a set equation: The set of expressions is the set E that satisfies the equation

E = 0 ∪ se e ∈ E

But this definition is bogus! There are more than one set E that satisfies the equation, as remarked above, and thus there is no “the set E”! We need to fix the definition in a way that makes the set E unique. The key question is, do we want to regard the infinite utterance discussed above as an expression. It is simplest to just say “the set of expressions is the smallest set E that …” if we want it to not be an expression, and if we want it to be an expression we should say “the set of expressions is the largest set E that …” Let us make the following definitions:
Consider the set equation S = … S …, in which the set S is alone on the left-hand side and occurs at least once on the right-hand side. This equation is a recursive definition of the smallest set S satisfying this equation, and a corecursive definition of the largest set S satisfying this equation.
Thus, a definition like

E = 0 ∪ se e ∈ E

is not recursive because of its form; it is self-referential. By itself, it is an ambiguous and thus bogus definition. We use the words “recursive” and “corecursive” to indicate the intended method of disambiguation. A rather nice example of this can be seen in the treatment of algebraic data types in strict (ML-style) and nonstrict (Haskell-style) functional programming languages. Consider the declaration (using Haskell syntax)
data IntList = Nil   Cons Int IntList
This can be read as a set equation as follows:

IntList = Nil ∪ Cons n x n ∈ Int ∧ x ∈ IntList

Now, as a recursive definition, it is restricted to finite lists as found in ML, but as a corecursive definition, it also allows infinite lists as found in Haskell. (It unfortunately fails to address the question of bottom-terminated lists, which also can be found in Haskell.) As it happens, the technique is not limited to set definitions; but to generalise it, we need to discuss a bit what we mean by the terms “smallest” and “largest”. In a set context, a set is smaller than another set if it is the other’s subset. Notice how this makes the ordering partial, that is, there are sets that are not comparable (for example 1 and 2 ; neither is smaller than the other, but neither are they equal). A collection of sets does not necessarily have a “smallest” set (that is, one of the sets that is a subset of all the others). However, we can always find the lowest upper bound (”lub” or “join”) of a collection of sets as the union of the sets, and the greatest lower bound (”glb” or “meet”) as the intersection of the sets, and if the lub or glb is itself a member of the collection, it is the smallest or largest set of the collection. Haskellists will find things instantly familiar when I say that the smallest element of a mathematical universe (if it exists) is called bottom and is denoted by ⊥; somewhat less familiar will be that the greatest element (if it exists) is called top and is denoted by ⊤. A partial function is any function that needs not be defined everywhere. For example, f(x) = 1/x is a partial function on the reals (it is not defined for x = 0). We can form a partial ordering of (partial) functions having the same domain and codomain by specifying that f is smaller than g if f(x) = g(x) for all such x that f(x) is defined. Sometimes it will make sense to specify that f is smaller than g if f(x) is smaller than g(x) for all such x that f(x) is defined. Now, it happens that all collections of functions have a lub; and in particular, the partial function that is defined nowhere is the smallest function (the bottom function). Now, with this definition of “ordering” of functions we can apply the definitions of recursion and corecursion to functions. For example, consider f(x) = f(x) + 1. The bottom function (defined nowhere) qualifies, since undefined + 1 is undefined; thus it is the smallest solution to the equation and thus this equation is a recursive definition of bottom. However, consider f(x) = if x = 0 then 1 else x*f(x-1): any solution to this equation must have f(0) = 1 and thus the bottom function is disqualified. In fact, the smallest solution is the factorial function, and thus the equation is a recursive definition of factorial. In the comments to my previous entry, I was asked whether the Haskell definition “ones = 1 : ones” is recursive. Of course, the question in itself is nonsensical; whether it is a recursive definition or something else (such as corecursive) depends on what the programmer intends. I will interpret this question as whether the equation is a recursive definition of the intended result, the infinite list of all ones. First, observe that we can order Haskell lists (including the special “undefined” list) partially as follows: l1 is smaller than l2 if l1 is undefined, if they both are empty lists or if a) the first element of l1 is smaller than the first element of l2 and b) the tail (the list with the first element removed) of l1 is smaller than the tail of l2. The undefined list does not qualify as a solution for “ones = 1 : ones”. No finite list qualifies either. The infinite list of all ones does qualify, and it is the only solution; hence, the equation is a recursive definition of the infinite list of all ones; it is also a corecursive definition of the same list. Finally, let us consider the question that started it all: what should we make of the definition “recursion: see recursion”. First, note that a equation x = x admits all elements of the universe as a solution; hence, the proper reading of “recursion: see recursion” as a definition is that it is ambiguous and hence bad. It is a recursive definition of the bottom element of the universe (whatever that might be for a dictionary), and a corecursive definition of the top element of the universe (whatever that might be). In any case, it does not define recursion (unless of course, the concept of recursion is the smallest or the largest concept in the universe of concepts).

Julien Danjou: Some updates

I'd have liked to post some updates sooner, but theses days have been again very very busy. This morning I take a few minutes to do some stuff on my Debian TODO list (which only exists in my head, so since my memory is quite overloaded, this list is sometimes shortened accidentally), so I've myself thinking about Julien Delange status. He was my sponsee, but he sent me a mail some weeks ago telling he won't continue its Debian work. I already told dato to adopt amule, and then this morning I adopted one of this package, fixing a bug in the meantime, and finally orphaned the 4 others. Next weeks, I'll try to continue to follow at least my SRM tasks at least. I have for now abandonned my AM work, since I have finished with my previous NM. See you soon, and have fun at DC. ;-)

MJ Ray: Wide Roads and Redway Route Types

Floris Bruynooghe commented:
"My experience is that European (including UK) drivers can't cope with wide roads, resulting in even more dangerous behaviour. Wide roads with on-road cycling lanes are probably pretty good. But they need to be clearly separated by a double line sort of like in Belgium, combine that with UK quality road surface (on average) and you might have someting usable. The cycle lanes on UK A roads are a joke though, a very good example of how not to do it."
I assume this means the converted edge strips that you see on some fast roads (note: not all edge strips have been marked as cycle lanes and you especially shouldn't use unmarked ones). There's one of those in Milton Keynes, alongside the A5D dual carriageway. My main complaint against them is that they are too narrow and you get HGVs passing close enough to pull you around. Also, you have to cross every slip road/ramp which is a fairly unpleasant experience at busy times. Redway Route Types The unique Redway network was built in several phases. To be fair, I can't recommend the original network for anything other than low-speed connecting use, but the later, straighter additions (the "cross-city Redways" mentioned in the 1998 paper and my introduction a couple of posts ago) to the original plan early in the 1990s improved matters immensely. Although the different types are mentioned in the introductions, this difference seems entirely ignored by the accident data, which is my main complaint against the papers. There's no way of comparing like with like, as far as I can tell. You can split the accident data for 60/70mph grid roads from the 30/40mph link roads and 30mph estate roads, but you can't split the long-distance maybe-40kph cross-city Redways from the maybe-20kph estate Redways. Based on my years cycling around the city, I expect that the difference between grid Redways and grid roads is pretty small and that local Redways are far worse than local roads, but I can't prove or disprove that from his data. What's more, none of the studies I've seen differentiate between construction phases or route types, which is like only having combined accident figures for the Fosse Way and the M1. It suggests interesting topics for further studies, but how can anyone draw useful conclusions about cycle track design in general from it?

11 June 2007

Miriam Ruiz: Gnash 0.8.0 about to be released

The newer version of Gnash, that is 0.8.0, is about to be released. Though it has many improvements, it is still not modular (that’s a goal for the next release). That means that the decision about the backends have to be made at compilation time, not in runtime. As the backend for graphics, the most appealing options are AGG and OpenGL. While OpenGL might seem quite attractive for people who have graphics cards with hardware support for OpenGL, AGG seems to be the better option for those who doesn’t. In fact, AGG works quite good for me. The second problem is that KDE support only works with OpenGL for the moment. In fact, if some KDE Developer wants to help Gnash Developers about that, I think they would be really welcome. In any case, if I compile gnash with both OpenGL and KDE support, everything seems to depend on kdelibs, which is not reasonable for the diversity of users out there. Therefore, I had to build the whole stuff two times, once with AGG, and without KDE support, and another one with both OpenGL and KDE. The next problem would be that the generated libraries have the same places and the same directories in both of the configurations. I had to change its –release parameter from 0.8.0 to 0.8.0.agg and 0.8.0.gl. That seemed to do the trick. So, I have two set of packages for Gnash right now:

Biella Coleman: Blue Cross Blue Shield Chronicles: Blue Distinction, Not

A few weeks ago, I posted an account of my trials and tribulations with Blue Cross Blue Shield Horizon of New Jersey. Well now it is high time for an update, an update I think readers of this blog will be interested in because it tells a fascinating story about the Internet, blogging, and perhaps new uses of Google Alerts. My goal in writing the post was to inform readers of their options when faced with problems caused by their health insurance company. Well, I had no idea a response would arrive from Blue Cross Blue Shield, and so quickly. For within 2 hours of posting my blog entry, the Public Relations Director of Blue Cross Blue Shield of NJ wrote me an email, which basically said that he came across my blog posting and was offering his assistance. Needles to say, I was shocked. After months of getting some of the worst customer service I have ever received (when on the phone with Blue Cross, I always felt like I was talking to smarmy collection agency reps), I get an email from upper-level management, offering his assistance. At first, I thought some of my geek readers were playing a practical joke on me. While it seemed plausible that Blue Cross monitors links to their site, and probably do so with Google Alerts, I had a harder time believing that the Director of Public Relations would fire off an email to me, directly. Naturally, following the arrival of his message in my inbox, a small glimmer of hope flickered, especially after he had someone from the Appeals Department contact me. And this small intervention had a large noticeable effect: decent and transparent customer service became a reality, for the very first time. Instead of interactions that were opaque and frustrating, I finally had ones that were crystal clear and intelligible. According to the main Blue Cross Blue Shield Web Site, they pride themselves on Blue Distinction:
Blue DistinctionSM is the Blue Cross and Blue Shield companies’ nationwide program that will create an unprecedented level of transparency with two goals: engaging consumers to enable more informed healthcare decisions and collaborating with providers to improve quality outcomes and affordability.
The contrast of my service before and after having the Public Relations director contact me speaks volumes to the actual nature of Blue Distinction as it pertains to BCBS of NJ. For most of my interactions with Blue Cross Blue Shield, I encountered an unprecedented level of opaqueness and frustration until there was intervention from high-above. I actually appreciated the service I received and saw it as a laudable move. Unfortunately, the outcome has been far from my liking. I recently got word they are not paying up for any of the dermatological services. So perhaps the fact that a PR person contacted me was significant because in the end, it has panned out as a typical PR move: all gloss and lacking substance. What now? I am moving to an internal BCBS appeal process and if that does not work, I will move on to small claims court in NYC and perhaps a more organized web campaign. In the mean time I have basically have decided to blog about the process so look out for future updates!

David Welton: Pluto Meeting

The Pluto Meeting in Padova was fun to speak at. It was good to see people I haven't had a chance to see in a while, and I was very impressed that the organizers managed to put the whole thing together in under a month. That's no mean feat! I gave a talk on economics and free software, a subject that I find fascinating. I went there expecting to get a few more questions or people pushing back against what I had to say, given that a lot of the people present were "of the FSF persuasion" in terms of their beliefs, but for some reason that didn't really materialize. Too bad, because it could have been interesting. In any case, we had a great time back in Padova for a few days!

Gustavo Franco: debcamp updates - round I


Where's Vagrant? :)

Antti-Juhani Kaijanaho: Recursion that isn t

Joey’s recent post reminded me of the old joke about an entry in a dictionary:
recursion see recursion
Non-geeks can stop reading here: if you didn’t understand the joke, you won’t understand what’s coming next either. I mean, sure it’s a funny joke, but it doesn’t quite work. Technically, it’s not even an example of recursion, as the base case is missing. Perhaps it’s co-recursion? — but it isn’t, as it’s not progressing. Why can’t we say instead,
recursion if you do not understand it, see recursion
It would still be funny, and it might actually work.

Russell Coker: Prius vs small non-hybrid car

In response to my comment and post about the cost of driving to work there was a comment on the blog post I responded to suggesting that a small car is better value for money than a hybrid car. The claim was made regarding a Nissan Pulsar, but to investigate this I decided to compare the Prius with the Corolla Hatchback, as far as I can tell the Corolla Hatchback is the nearest non-hybrid car to the Prius that Toyota sells (being similar in size, weight, and performance). Comparing cars of different make adds extra variables into the equation. Unfortunately the Toyota web site fails to provide specifications for the Prius and only provides a PDF file with minimal information on the Corolla, but it is enough for some minimal calculations. A car company run by intelligent people would publish the specs on all their vehicles and provide a search form to compare selected models. The Standard Performance Evaluation Corporation has a good search method that allows easy comparison and ranking of items in their database (here is an example). It would be good if Toyota would permit us to compare models in their car range in a similar manner. According to the Toyota web site the Prius uses 4.4L/100Km when driving in the city and the manual transmission version of the Corolla Hatchback uses 7.4L/100Km (7.7 for the auto). For the average 16,000Km that an average Prius owner drives that would save 480L of petrol which would save about $700 at current petrol prices. The Corolla Ascent Hatchback (the cheapest of all Corollas) is $21,000 while the cheapest Prius is $37,400. If you compare the Prius with the cheapest Corolla then it’s a $16,400 price difference. If you save $700 per annum then it won’t cover the interest on a $16,400 loan or match the interest rates earned by a bank term-deposit if the $16,400 was invested. So it seems apparent that at current petrol prices (NB petrol prices are expected to increase) and with average Prius driving patterns a Prius will not be more economical than a cheap Corolla. Currently the Commonwealth Bank of Australia offers 6.05% interest on term deposits of between $10,000 and $25,000. This means that $700 per annum would be the interest on a term deposit of $11,500. If we compare the Corolla Ultima Sedan at $32,000 with the Prius at $37,400 the difference in price is less than $11,500 - but the cars have incomparable sets of luxury and safety features. The Prius i-tech appears to have a super-set of the luxury and safety features of the Corolla Ultima Sedan but at $46,900 is again going to cost more for the average Prius driver. The Prius is a very quiet car to drive, there is almost no engine noise (when driving at speeds where the Petrol engine is operating there is usually more noise from other vehicles) and no gear changes (handy if passengers are consuming hot or sticky drinks). It has a good set of safety and luxury features and is also a prestige car (no-one will say “oh wow, you’ve got a Corolla”). If you assign a dollar value to these features then a Prius may be the most economical car that meets your requirements! Finally, let’s keep in mind the fact that petrol prices are steadily increasing. If you save $700 by driving a Prius this year then you may save $1000 next year. There is also the option of converting a Prius to a plug-in hybrid which will be a useful option if petrol prices hit $10/L! Also the amount of money saved will depend on the use of the car. If you are running a courier or taxi business then a Prius will probably be a lot more economical than a Corolla due to the greater distances travelled and the travel in the slow city traffic that the Prius was designed for. PS All prices are in Australian dollars and concern products on offer in Australia, I would like to see comments from other people who perform the same calculations for their countries.

Joey Hess: unpacking boxes

A few people have asked what I meant in my "boxes" comic. Other just look at me strangely. Some hackers have enjoyed the comic, so I thought I'd try to unpack the meaning of it a bit for the layperson. Of course this will spoil the joke, but what the hey. A hacker who looks at the comic probably thinks about things like recursion, fractals, unicode, fonts, and bugs. fonts A font is how the computer knows how to draw the letters on its screen. Before computers, a font was a bunch of metal bits that could be arranged and fed into a printing press. As with most things involving drawing on a screen, font technology is much more complicated these days than you'd ever imagine. Fonts and the programs that draw them (font engines) are something of a mystery even to most hackers. unicode Unicode is an absurdly complicated version of the alphabet. Or rather, of every alphabet and similar thing used by anyone on earth or in Star Trek. It's not a font, it's a way for the computer to store text internally, by basically assigning a unique number to each letter. Since most hackers grew up in a world without unicode, and suffered through the (still continuing) transition to it, they're familiar with lots of quirks and weird and broken behaviors you get from it. One of these quicks is what to do when the computer wants to display a particular letter from unicode, but that letter is not available in the font. Since unicode contains effectively an infinite number of symbols, and each symbol in a font is carefully crafted by hand, this occurs pretty often. Handling of this situation varies, but often the computer will just display a little empty square box for the letter that it doesn't know how to draw. Some font engines go a step further and write the number of the unicode character in little tiny numbers inside the box. Presumably so that a hacker can look at it and tell what character is missing. The numbers are typically written one in each corner of the box, and you'd have to squint to see them. fractals A fractal is a special kind of picture, where parts of the picture repeat over and over at different scales. You've probably seen pictures of the most famous fractal, the Maldebrot set. That one is generated by a kind of formula, but there are much simpler ones, like the Koch snowflake. Hackers love fractals, because they're pretty, and complex, while based on very simple math. recursion "Recursion: See recursion." Ha! That's the best hacker joke ever, a true classic. Recursion is when the computer sees an instruction like that and mindlessly repeats it over and over. This actually turns out to be useful, and hackers see a kind of beauty in it. bugs Bugs are what happens when a computer program, which is supposed to be internally clear and simple, and have well-defined behavior, instead turns out to exhibit unintentional complexity. Kinda like a fractal. This begs the question of whether hackers like bugs, or not. Most of them spend most of their time creating more, so you be the judge. The bug I'm alluding to in the comic is this: What if the computer, when drawing some word, stumbled over a unicode character that was not in the font. And then say it went to draw the little box instead, and fill in the numbers to indicate what character it was. Except it turned out that its font didn't tell it how to draw the numbers either. And thanks to a really unlikely bug, it then proceeded to recurse, drawing smaller and smaller boxes for these characters that it didn't know how to draw. Until it drew a fractal instead. See: It's just hilarous once I've explained it. (And that explanation of the word "cat", by the way, is why I don't try to write most of the technical posts in my blog in a form that a layman could understand.)

10 June 2007

MJ Ray: Please Stop Abusing the Redways

There are 1988 and 1989 papers by Cyclecraft Author John Franklin about poor accident records of the Milton Keynes Redways which are often cited by cyclists as showing why cycle facilities are dangerous or "farcilities". But I grew up riding the Redways and I think the closest I came to seeing a Redway-caused injury was when we accidentally rode onto an under-construction stretch by mistake and met a road roller. I journeyed to work all the way along the north-west edge when I was employed in MK one summer. (The cross-city Redway I used was fairly quiet on the journey to work around 0700 but quite busy on the return - looked like "school run" traffic.) I lived three miles from the MK boundary for a decade and so I've had some time to think about this. I think condemning the Milton Keynes Redways as dangerous farcilities is simplistic and misguided. Here's why: Milton Keynes was one of the first English cities to have cycle routes designed in from the start. This means that there are cycle tracks of types and in spaces that we hadn't seen before. Where else did you get a network of both low-friction surface high-speed cycle routes with sweeping bends and grade-seperated junctions and connecting routes to every estate? How many places have that added since? Almost nowhere. Milton Keynes is a massive cycle track experiment. In the 1989 paper, Franklin comments that it was "constructed with few limitations of space or finance" which simply doesn't ring true - the experiment didn't go completely to plan and the "secondary grid" of Redways between district centres mentioned in the 1998 paper has simply never appeared. Nevertheless, there are things that work amazingly well, but there are others which are now obviously stupid, like not protecting the sight lines at some junctions and putting late-80s estate routes alongside feeder roads, where they have more frequent and busier level junctions. I believe some of the London data also suggests that the non-separated junctions are one of the three most dangerous places, which suggests that Milton Keynes is not a cycle track advocate's perfect design in the first place. I'll continue to explain what else I disagree and agree with from the Franklin articles over a few more posts. If you have comments about the Redways or these articles, I'd like to hear them: please use the comments form at the bottom of my page.

Chris Lamb: Sudoku solver in PostScript

There seems to have been a bit of fuss over this Sudoku solver implemented in SQL. In Easter 2005, when Sudoku fever kicked off in a big way in England, my Dad started writing a solver implemented in PostScript which I then modified so that it could perform backtracking. I also wrote a C# solver for my phone around the same time and later sneakily won a competition with it - I am now barred from entering competitions in that paper. Anyway, here is an example PostScript board (PDF version). It was labelled “Fiendish” in The Times. The board can be easily changed at the top of the PostScript file. NB. Best results are achieved if you view the PostScript directly in a viewer such as gv or GSview as you actually see the process of backtracking in solving the puzzle, the recursion depth and the set of possible symbols for each square — most PDF viewers are terrible at displaying the process as they seem to render inside the wrong thread. (In terms of solving the puzzle, we both found that by enforcing the simplest constraints and then ‘guessing’ was far easier and more efficient than performing any of the complicated constraints typically employed by human solvers. I’m certain I am not the first to notice that attempting to emulate the brain’s method of solving a problem is usually a short-sighted approach for a computer.) There are few other goodies in the file: replacing the final autotest with autotestR will recurse using the right-most possible symbol - if you get the same board with both of these then the initial board has a unique solution. Also, if you can get your hands on a true PostScript printer, printing the file will mean the puzzle is solved in hardware. Enjoy :) . I’m looking forward to DebConf7! UPDATE: Added PDF version.

Daniel Burrows: Closing bugs just because they're old is not cool

Two bug reports that I wrote were recently closed with the following explanation:

Last message was posted nearly three years ago. Considering abandoned and closing.


Whoops, I thought, I must have missed a request for more information. So I went to the bug page and, nope, the only message on the bug was my initial report.

Let me repeat that: the total sequence of interactions on these bugs was:


  1. I report a bug in 2004
  2. Someone closes it in 2007 because it's "too old".


Now, there are times when it's at least somewhat excusable to close old bugs without verifying that they're fixed (or even knowing that they might not be). When a package has hundreds of bug reports, closing old bugs that can't be reproduced can be a good thing: even if the reports are valid, keeping reports that can't contribute towards a fix around is arguably less useful than cleaning out the bug list so it's usable.

In my case, though, the package in question has only 20 or so bug reports, an easily managed number. Worse, both bugs I reported could be trivially reproduced. One of them was arguably not a bug, but the guy who closed my bugs did not argue that; as far as I can tell, he didn't even look at my bug report.


Notice that I haven't mentioned the maintainer of the package? That's because he didn't close the bug. In fact, the person who closed the bug is not a member of Debian, nor is he in the NM process. Evidently he's just a random user who decided that old bugs offend him, so they should be closed.

So please, everyone, exercise a modicum of common sense when it comes to closing bug reports. This will keep the BTS useful for all of us and keep blood pressures at a reasonable level. :)

Matthew Garrett

Modern Intel SATA chipsets (anything from the ICH6m onwards) can be driven in two modes - one that looks awfully like an old-fashioned PATA controller, and one that conforms to the AHCI specification. Windows deals badly with AHCI, so BIOS authors tend to program them to PIIX mode. Some BIOSes have an option to let you choose which is used, but most don't so you end up stuck with PIIX mode.

This is a bit of a shame, since AHCI supports functionality that isn't really present in PIIX mode. For laptop users, one of the more interesting features is AHCI's link-level power saving. At the cost of some performance, it's possible to save 0.5W or so. There are patches beginning to appear for this, but it's no help to people stuck with PIIX support. Over the past couple of days I've been looking into what's necessary to reprogram the chipset into AHCI mode. The biggest issue is finding some MMIO space for the AHCI registers. Most BIOS authors don't program the AHCI base address register, which means trying to find some spare address space to map it. I've hacked support for this into the PCI layer and added a quirk that attempts to reprogram chips into AHCI mode. It's not really ready for proper use yet, but it'd be good to get some amount of testing to see if there are obvious issues. The code is here and ought to apply to current git. Obviously, you'll need ahci support in your kernel.

Evan Prodromou: 20 Prairial CCXV

What a great day. The weather in Montreal has been fantastic the last few days -- we've had sunny, hot, clear days with showers at night to clean up the air. It's been really spectacular to be out. Of course, this is the time of year that Montreal really shines -- festival season. It kicks off this weekend with the Grand Prix du Canada, which includes a giant party in the downtown area, on St. Laurent, and in the rest of the city as well. In my neighborhood (old and new), we have the Nuit Blanche sur Tableau Noir, a street fair that closes down av. Mont-Royal for auto traffic from June 7 to June 10th. There are huge murals painted on the street itself, and every business, retail outlet and restaurant expands onto the street, while people rove up and down all day and all night. And soon we get the International Fireworks Festival, which kicks off in only two weeks. One of the hallmarks of summer in this city is that just about every Wednesday and Saturday there's a gigantic fireworks show on le Ste. H l ne, at La Ronde amusement park. You can see the lights all over the city, and feel the thumping in every house and bar. It's disconcerting and awe-inspiring. We've already started having Piknic lectronik events, with another going tomorrow. Wow. tags:

SXSW talk online So, my talk at South by Southwest 2007 is now available online as a podcast. You can get the audio at the sxsw.com site and you can follow along on the OpenOffice.org or Powerpoint slides at Talks/SXSW07. I liked listening to this recording, although I realize that I need to do some speech practice for future talks. I say "ummmmm..." after every sentence in this talk, which would probably drive me crazy if I were listening to it. I'm surprised that the applause at the end is so strong -- I'd probably have thrown food at this guy. tags:

Wikimania On that note, I'm glad to point out that my and Maj's talk for Wikimania 2007 was accepted. I guess that means we'll be going to deliver it in Taipei. The subject is Extending wikis with social networking tools. We're going to cover Wikitravel Extra: our motivations for it, implementation issues, and results. It's going to be pretty interesting. tags:

Next.

Previous.