Julien Danjou: Quarter
I've just turned up a quarter of century.
I've just turned up a quarter of century.
A lazy morning again, so you'll enjoy another short list of changes in the upcoming awesome 3.1 (first one is still here):
Digi released a new beta release of the dgap drivers a couple of days ago, notably fixing the build issue (TTY flip buffer) with newer kernels.
They now ship two versions of the driver, one suitable for 2.4 and 2.6 kernels up to and including 2.6.26, and one for kernels 2.6.27+. The appropriate version will be picked up automatically when the module is built, of course.
APT source line, unchanged:
deb http://debian.technologeek.org/ etch non-free
The packages are still built for Etch; Sarge users should stay with 1.3.6 (unless running a newer kernel, but then a rebuild of the userspace tools is required).
Feedback at the usual address.
I’ve just set up a poll on my site asking: what topics do you want to read here?
Since this July, when cycling and most local and political themes were split off into other blogs, this site has been mostly Web Development and GNU/Linux topics, with an SPI article appearing most weeks, and minor themes of Koha news and ideas and general internet/telecoms issues around ThePhoneCoop. Finally, Drupal, OSCommerce and general business topics appear less frequently.
By traffic, the SPI series seems by far the most popular (but at least one of those is heavily spam-attacked now, so I’d discount it), followed by other political themes, then the technical posts. I suspect that politics is getting a temporary boost because of the US and Canadian elections, even though I’ve not written about them much. But is there some other theme that people want to read about?
The poll box on the right column lets you tick as many or as few as you want. It requires javascript, but if you don’t have javascript, please leave a comment on my site. If you want to suggest a new topic which I should add, please leave that in a comment too.
Just some small thoughts about cyclic lists in Haskell. Every Haskell beginner knows that you can use infinite lists, as long as you don t fully evalute them. So, this is perfectly validendless = [0..] -- All natural numbers! main = print (endless !! 10)It will not crash, but print "10" as the list has not been fully used.What happens if we take a piece of the list further down, let s say at position 1000000000:
endles = [0..] main = print (endless !! (10^9) )If you try this at home, better run "ulimit -S -v 1000000" before, because then you ll get "test: out of memory (requested 1048576 bytes)" instead of a sluggishly swapping machine. What happened? The long list will be evaluated, and fills the memory. Does this mean that we can not use arbitrary long lists? Let s try a special case: A list that is infinitely long, but repeating the same values all over again:
list = "Oh, happy day! Oh, happy day. "We repeat the (finite) list endlessly, and then try to pick the 1000000000th element. We also pick the first element again, to make sure the compiler does not cheat by forgetting the first 999999999 elements (It s actually pretty nice that the compiler will forget these elements, but not what I want to demonstrate here). Running that code, sure enough, fills up the memory.But maybe I was coding badly. At least I have re-implemented a function that already exists, which is bad practice. Let s try with Haskell s own cycle:
cycle' list = list ++ cycle' list
main = do let rlist = cycle' list
print ( rlist !! (10^9), rlist !! 0 )
list = "Oh, happy day! Oh, happy day. "Now it takes a while, but surprisingly, the memory gauge does not skyrocket, and in the end I m told that the 1000000000th character in my infinite character string is 'd'. This leads me to the conclusion that the Haskell library uses black magic. Or does it? Here is the definition of cycle:
main = do let rlist = cycle list
print ( rlist !! (10^9), rlist !! 0 )
cycle xs = xs' where xs' = xs ++ xs'What is the difference to our cycle'? Here, the result is given a name (xs'), which is used again inside the function. So while our cycle' appends the list over and over again, filling up the RAM, their cycle ties a loop and makes the end of the list refer to it s beginning. And my list lookup will no longer evaluate the list up to infinity, but just run around in, well, cycles until it has counted down from 1000000000. I could even ask for the last element of this list, and it will not use any more RAM than a small, finite list, while endlessly searching for the end of the list.Despite Haskell being a very high level language, I sometimes wonder how my data will look like on the physical memory. And as you can see, it can make a difference. Some more thoughts on this were written down by Duncan Coutts.
One massive annoyance with last week’s trip to the L2SE conference was the terrible state of WiFi access in London. I’d actually paid a little extra for first class on the home trip because it gives access to Paddington’s Victorian Lounge which says “It also has workstations with access to the Internet”.
What it doesn’t say is that the workstations are desks not computers, there’s no wired ethernet and the wifi is Extortionate ISP The Cloud at the cost of 4.50 an hour. Alternatively, you can pay through Orange at 6/hour or more reasonably through O2 at 7.50/month. I was carrying two mobile phones, but not an O2. Why is Paddington so backwards? Bristol Temple Meads has U2com free wifi access through Dashi sushi bar (note it’s not National Rail or First Great Western) and fon which was about 3/day last time I used it. 4.50/hour seems a really terrible deal to me - I’ve used cheaper internet cafes than that and they have to maintain actual hardware. If that fee really reflects their costs, The Cloud must be a pretty wasteful operator.
So I finally got GPRS working on my phone. Essentially, it was the same as described on Dave Stevens site and davesource, with the exception that the k608i already knows the connection settings, so the AT+CGDCONT line can be removed completely, as mentioned on Of Linux, GPRS Phones, Serial Cable, Irda, Bluetooth and USB, by Mikko Rapeli - otherwise the phone replies ERROR and the connection fails. It also needs the guest * guest line in the pap-secrets file and a matching user guest in the gprs options file.
Another TTLLP member tells me that later phones offer NAP service and that pand is much simpler than pppd/gprs. I’ll find that out when I get a newer phone, I guess. Someone else suggested ip-over-dns to punish The Cloud for their silly fees, but is that legal?

Answer to anybody asking about the Lenny release.

I was sure it will be possible.
With current awesome git version it's possible to run a space invaders game.
With only 380 lines of Lua.
Is there any window manager capable of doing this ?
And don't say it's useless!
Thanks to Gregor "farhaven" Best for wasting his time with that.
Tuesday evening I was at the Olympia to see Nada Surf, the french New York guys, on tour. The show was very nice. I've already saw them 2 years ago, and it was already very cool, so nothing new.
They played lots of different songs from all albums. I really appreciated this since I'm not a big fan of their latest ones. That was funny to see most bitches fidgeting on their seats when they played some recent successful songs and becoming totally quiet and passive when they announced that they were going to play Telescope from Karmic (a EP from 1995 before their first album).
But well, that still was a great show and was pleasant to be there.
The original spec for today: Go out to Anna's. Run some cables.
I still don't know why but many GTK+ applications use something called eggtrayicon. As far as I know, eggtrayicon.c is a file written in 2002 by Anders Carlsson which implements the Freedesktop.org system tray procotol for GTK+ applications.
Problem is that this C file is used in dozens of programs and maybe more, and is a bit bugged. I've already send patches for mail-notification and Audacious. pidgin is the first fixed implementation I found and works quite well. Many other applications are probably affected.
That seems to me like a real problem. Multiple copy of bad code instead of using native GTK+ system tray implementation.
So please stop using this bad implementation
I'm lazy this morning, so I'll write a quick changelog about what's coming next in awesome 3.1, as of now.

Now that bug #500000 has been reported, let’s have a look at all our other bugs, using UDD.
Number of archived bugs:
select count(*) from archived_bugs; count -------- 402826Number of unarchived bugs marked done:
select count(*) from bugs where status = 'done'; count ------- 8267Status of unarchived bugs (”pending” doesn’t mean “tagged pending” here):
select status, count(*) from bugs group by status;
status count
---------------+-------
pending 53587
pending-fixed 1195
forwarded 6778
done 8267
fixed 167
The sum isn’t even close to 500000. That’s because quite a lot of bugs disappeared:
select id from bugs union select id from archived_bugs order by id limit 10; id ----- 563 660 710 725 740 773 775 783 817 819Now, let’s look at our open bugs.
select id, package, title, arrival from bugs where status != 'done' order by id limit 10; id package title arrival ------+----------------+----------------------------------------------------------------------------+--------------------- 825 trn trn warning messages corrupt thread selector display 1995-04-22 18:33:01 1555 dselect dselect per-screen-half focus request 1995-10-06 15:48:04 2297 xterm xterm: xterm sometimes gets mouse-paste and RETURN keypress in wrong order 1996-02-07 21:33:01 2298 trn trn bug with shell escaping 1996-02-07 21:48:01 3175 xonix xonix colors bad for colorblind 1996-05-31 23:18:04 3180 linuxdoc-tools linuxdoc-sgml semantics and formatting problems 1996-06-02 05:18:03 3251 acct accounting file corruption 1996-06-12 17:44:10 3773 xless xless default window too thin and won't go away when asked nicely 1996-07-14 00:03:09 4073 make make pattern rules delete intermediate files 1996-08-08 20:18:01 4448 dselect [PERF] dselect performance gripe (disk method doing dpkg -iGROEB) 1996-09-09 03:33:05Breakdown by severity:
select severity, count(*) from bugs where status != 'done' group by severity; severity count -----------+------- normal 27680 important 7606 minor 6921 wishlist 18898 critical 29 grave 209 serious 384Top 10 submitters for open bugs:
select submitter, count(*) from bugs where status != 'done' group by submitter order by count desc limit 10; submitter count ----------------------------------------------------+------- Dan Jacobson 1455 martin f krafft 667 Raphael Geissert 422 Joey Hess 392 Marc Haber 368 Julien Danjou 342 Josh Triplett 331 Vincent Lefevre 296 jidanni@jidanni.org 260 Justin Pryzby 245Top bugs reporters ever:
select submitter, count(*) from (select * from bugs union select * from archived_bugs) as all_bugs
group by submitter order by count desc limit 10;
submitter count
----------------------------------------------+-------
Martin Michlmayr 4279
Dan Jacobson 3652
Daniel Schepler 3045
Joey Hess 2836
Lucas Nussbaum 2701
Andreas Jochens 2605
Matthias Klose 2442
Christian Perrier 2302
James Troup 2198
Matt Zimmerman 2027
You want more data? Connect to UDD (from master.d.o or alioth.d.o, more info here), run your own queries, and post them with the results in the comments!
(semi-joke only fully understandable by French folks. Julien Blache used the same joke in the past)
My dear Genneff, "Valid-Until" is certainly a good idea and I have no doubt it's well implemented in our archive tools.
I'm less sure about this being implemented in apt, because of the loose resources of the APT maintenance "team" as of now.
And I'm damn sure that implementing that feature will add yet more work coordinating l10n. APT is currently fully translated to 18 languages and, of course, the warning message issued by APT when a user is directed to a faked security repository *has* to be translated for the user to really understand what's happening. It even has to be translated very carefully.
Contrary to popular belief, not all systems admins understand English easily. And we really want the important message that will be issued by APT in such case, to be understood and understood well.
So, good luck to /me dealing with a last minute l10n update that will
quite certainly happen, now.
I can't even use this in an attempt to get bug #500000, as #499897 is already reported against apt. Crap. I'm out of ideas for getting that bug report...
As a revenge, I propose that next time we all see Ganneff in a group, we all hug him to death for implementing that very good feature in our archive tools.
Next.