Rodrigo Gallardo: Cookies!
Debian makes inroads in Mexican bakeries:
Debian makes inroads in Mexican bakeries:
How often have you said to yourself "this programming language's if
statement is too flexible, I need to make it more rigid, and with a
syntax nobody else understands"?
If you've ever said that to yourself, then take a look at this Rails plugin.
From the brief description of the plugin:
Allows developers to execute or not execute given code block depending on a set of conditions, written in intuitive manner. Especially useful within view templates, where it can eliminate the need for multiple if ... else ... statements.That screams "overkill" to me, but for the sake of my morbid curiousity (and on the very, very off chance that it's something not entirely ridiculous) I took a look at the detailed documentation. At least there is detailed documentation for this plugin. I didn't get any further than the first example, though. Take a look at this monster:
How often do you find yourself writing something like that in your views:Hopefully, most people out there answered a resounding "no" to that last question. A plugin which causes you to write just as many lines and very nearly as many characters, whilst using a completely different minilanguage to what every Ruby programmer already knows, does not sound "much better" to me. Ruby people tend to love little minilanguages to get things done, but this... I just don't have the words to properly describe it. I'm going to start a list of "poison plugins" -- ones that, if I see any of them in or around the code of a Rails project I'm looking at working on, immediately doubles the hourly rate and the time estimates. Stupidity is toxic, and working with hazardous substances is always more expensive. Other current candidates include the old-world auth generator I gutted while I was at Vquence, and annotate_models -- the former because it's shocking code, and the latter because anyone who uses it has some seriously scary ideas about what constitutes acceptable documentation and development practices.<% if current_user != :false && (current_user.administrator? current_user == @profile.user) %> <%= button_to('Big Red Button', destroy_everything_path) %> <% else %> <%= button_to('Hands off!!!', access_denied_path) %> <% end %>It works, but, you know, it's not what you would call beautiful, is it? What about something like that:<% access.to_administrator.or_user_of(@profile) do %> <%= button_to('Big Red Button', destroy_everything_path) %> <% end.else do %> <%= button_to('Hands off!!!', access_denied_path) %> <% end %>At least conditions are looking much better, aren't they?
Zack's pam-hooks
module got me thinking that the whole "start stuff at user login/logout" thing
should be simplified a huge lot. Currently, there are just too many mechanisms
depending on the user's shell, ?dm, distribution, session manager/desktop
environment etc. Should this be a topic for the freedesktop.org people (or is it already
- it might fit into Portland in
some way)?
A standardized way to hook into session setup/teardown might also be good
for security: if there's only few ways to get stuff started at login, that
means fewer places to look where malware could be hiding. Of course, it also
means that said malware can spread more easily, being more independent of the
user's desktop environment.
Chris,
buildd hosts keep those time and space usage statistics in a database,
which can be queried...
Script started on Sat Jan 5 19:54:15 2008 wouter@country:~$ ssh kiivi.cyber.ee Linux kiivi 2.6.18-4-mac #1 Fri Mar 30 23:05:11 CEST 2007 m68k No mail. Last login: Sat Jan 5 20:41:16 2008 from d51532c45.access.telenet.be wouter@kiivi:~$ avg-pkg-build-time -s -t head -n 20 boost: 2015312k (2015312k lastest) iceweasel: 1846628k (1846628k lastest) iceape: 1674172k (1674416k lastest) icedove: 1624848k (1624848k lastest) xulrunner: 1611880k (1611880k lastest) mesa: 1230432k (1230432k lastest) koffice: 1208062k (2115156k lastest) gcc-snapshot: 1191866k (1207164k lastest) gcc-4.1: 1185620k (1185620k lastest) gtk+2.0: 1148634k (1208684k lastest) k3d: 1145580k (1145580k lastest) ardour: 1077800k (1077800k lastest) lyx: 924876k (924876k lastest) gcc-4.2: 909488k (909488k lastest) gcc-3.4: 892015k (571084k lastest) glibc: 891408k (891408k lastest) linux-2.6: 725961k (744700k lastest) kdebase: 720618k (1106804k lastest) kdelibs: 716376k (1150372k lastest) kdepim: 711858k (784356k lastest) wouter@kiivi:~$ avg-pkg-build-time -t head -n 20 gcc-snapshot: 220:52:14 (2 entries, sigma 27:38:21) axiom: 216:27:57 (1 entry, sigma 00:00:00) gcc-4.1: 193:47:30 (1 entry, sigma 00:00:00) k3d: 177:22:10 (1 entry, sigma 00:00:00) gcc-3.4: 171:40:28 (4 entries, sigma 25:10:55) boost: 141:13:38 (1 entry, sigma 00:00:00) koffice: 140:40:23 (2 entries, sigma 53:48:58) ace: 130:04:14 (1 entry, sigma 00:00:00) linux-2.6: 129:36:19 (3 entries, sigma 10:12:24) qt-x11-free: 105:00:32 (1 entry, sigma 00:00:00) xulrunner: 97:03:38 (1 entry, sigma 00:00:00) iceape: 96:23:13 (2 entries, sigma 03:12:58) kdepim: 96:06:54 (2 entries, sigma 19:09:39) icedove: 94:35:48 (1 entry, sigma 00:00:00) iceweasel: 93:56:26 (1 entry, sigma 00:00:00) gcc-4.2: 91:08:32 (1 entry, sigma 00:00:00) glibc: 91:01:58 (1 entry, sigma 00:00:00) kdevelop3: 84:27:21 (2 entries, sigma 02:47:35) kdeedu: 82:09:55 (3 entries, sigma 10:59:18) vtk: 81:44:20 (3 entries, sigma 00:46:32) wouter@kiivi:~$ logout Connection to kiivi.cyber.ee closed. wouter@country:~$ ssh arrakis Linux arrakis 2.6.12-1-amiga #1 Sat Aug 13 22:59:59 CEST 2005 m68k The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Please read "links2 http://nefud/info.txt" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ No mail. Last login: Sat Jan 5 18:48:58 2008 from hahn.os.localnet on pts/5 wouter@arrakis:~$ avg-pkg-build-time -s -t head -n 20 wxwidgets2.6: 1648020k (1648020k lastest) qt4-x11: 1601086k (1753532k lastest) gcj-4.1: 1135772k (1135772k lastest) k3d: 1094345k (1159204k lastest) kdebase: 1087375k (1087368k lastest) python-kde3: 1018144k (1018144k lastest) ghc6: 991524k (991524k lastest) gcc-3.3: 988690k (990244k lastest) glibc: 814536k (855720k lastest) lyx: 804672k (804672k lastest) bouml: 729888k (729888k lastest) kdelibs: 685565k (1142304k lastest) freedroidrpg: 673988k (673988k lastest) mozilla: 663066k (636896k lastest) ardour: 647580k (691128k lastest) mozilla-thunderbird: 591384k (591384k lastest) omniorb4: 576288k (576288k lastest) subversion: 568764k (624768k lastest) xorg-server: 527520k (527520k lastest) mozilla-firebird: 498896k (502692k lastest) wouter@arrakis:~$ avg-pkg-build-time -t head -n 20 enlightenment: 198842:37:14 (3 entries, sigma 344403:17:35) axiom: 164:43:54 (1 entry, sigma 00:00:00) ghc6: 159:20:15 (1 entry, sigma 00:00:00) k3d: 145:18:35 (3 entries, sigma 57:08:46) python-kde3: 126:39:34 (1 entry, sigma 00:00:00) qt4-x11: 121:26:11 (2 entries, sigma 03:07:35) gcj-4.1: 116:05:34 (1 entry, sigma 00:00:00) gcc-3.3: 108:45:19 (3 entries, sigma 02:01:50) qt-x11-free: 99:12:17 (4 entries, sigma 14:12:32) wxwindows2.4: 90:26:51 (1 entry, sigma 00:00:00) openscenegraph: 74:37:21 (1 entry, sigma 00:00:00) ardour: 63:44:55 (2 entries, sigma 07:23:05) bouml: 62:01:16 (1 entry, sigma 00:00:00) gcc-snapshot: 61:10:07 (1 entry, sigma 00:00:00) mozilla-thunderbird: 60:47:29 (1 entry, sigma 00:00:00) mico: 60:15:15 (1 entry, sigma 00:00:00) kdebase: 58:41:04 (5 entries, sigma 08:00:17) glibc: 58:04:26 (6 entries, sigma 40:01:12) mozilla-firebird: 52:47:13 (2 entries, sigma 11:31:07) zeroc-ice: 52:34:03 (2 entries, sigma 28:12:19) wouter@arrakis:~$ logout Connection to fremen-os.dyndns.org closed. wouter@country:~$ exit Script done on Sat Jan 5 22:28:46 2008"avg-pkg-build-time" is a script that queries the statistics database. It's quite CPU-intensive, so I don't like to run it too often (certainly not from cron); but, hey, here you go. In case you didn't know, "arrakis" and "kiivi" are both official m68k/unstable buildd hosts, and especially arrakis has been for quite a long time, although it's been reinstalled once or twice since. Oh, and yes, it does appear as though some bits of the data are invalid, but most of the idea should be alright. (oh, and before you ask, no, it didn't take two and a half hours to run those commands -- I just needed to go while the last one was running, and had only come back several hours later)
Liferea’s upstream has decided to stop puting Debian Planet as a default example feed for new installs. I agree with that change for the upstream distribution, but I’m still going to revert it for the Debian package. And, of course, that gives us the chance to do even better. I’ve added Planeta Debian to the Spanish default feed list and Planet Debian-FR to the French one. I wanted to add Debian Brasil to pt_BR, but their feed returns a 404.
So, do you know about Debian planets in other languages? Please open a wishlist bug against liferea with the name, URL, the URL of the feed, the language it’s in, as well as some way I can verify the site is “official”, where that means it’s mostly published to by developers and heavy users.
The languages which currently have a customized list are bg, es, nl, pt_BR, sk, ca, eu, pt, sv, de, fr, pl, ru and tr. If your language is not one of those, you’d do better to start by contributing a non-Debian specific feed list for your language, directly to upstream (and maybe translating the whole program, while you’re at it
Has Debian Planet been acting up? I’ve been getting old entries shown again and again, but I don’t know if it’s the planet or a bug in Liferea I ought to find out about.
My @debian.org account’s now been created. Thanks santiago, anibal and kapil for your sponsorships during all this time. I learned quite a lot from you all. Thanks are also due my AM, myon and my advocate, gwolf.
This week I ought to have posted about how Gunnar and I met somewhere along the Ciclotón and had amazing amounts of fun. But I can’t, because we didn’t, because I was stuck in bed, with a 39C fever, all through Sunday and Monday and half of Tuesday. And weak and tired and with a big, nasty, unsuferable headache the other half of Tuesday and Wednesday and half of yesterday. So, instead, all I can do is apologize to santiago, who nominated me for DM, and damog, who seconded the nomination, and anibal who caught my silly mistake of not mentioning that I (of course) love and accept the DFSG in my response, for being silent and unresponsive. And to the people who reported bugs in my packages and got no response. And to oliver, for whom I was supposed to fix some JavaScript issues yesterday.
I hate viruses.
A curiously interesting thread has sprung up on the Xorg mailing list recently regarding the lack of bandwidth the developers might have for accepting patches. Bernardo Innocenti, who hacks on OLPC stuff amongst other things, wants to get some patches reviewed for acceptance, but there aren't enough people around with the time and inclination to review and accept his work.
He did a quick and dirty analysis of Xorg LoC vs Linux LoC, to give a "X codebase is roughly 1/2 Linux codebase" (which surprised me, actually, I'd always thought it was larger) and then a similarly rough analysis that suggests that Xorg has roughly 1/20th of the developer base.
To some extent Bernardo's metrics are arguable, but the basic facts are that Linux gets the lions share of the developers. Is this what we should expect? Is this a healthy way for the free and open source software community to support the development of what I personally would like to see as the future desktop base?
Linux does a fantastic job as an OS, right now. It's been doing it for years, really, but we still need to get behind some of the differential further up the stack. And all credit to those stalwarts of X development who are shouldering more than their fair share of the burden.
So if you were looking for an open source software project where you can be appreciated, don't overlook X.
We had a nice trip the rest of the way home from our Thanksgiving in New Jersey today. This morning we had breakfast in the Holiday Inn Express that we stayed in (very nice, new, clean, good pool and exercise room -- a good value for $109/night dual queens).
We then spent the rest of our morning shopping at the Whole Foods Market. It's the closest Whole Foods to our house in Montreal -- hold it, no, it looks like the one in Portland (Maine) is closer. Who knew? We picked up a lot of hippy-dippy personal hygiene items that we can't seem to find in Montreal, and I also got a few bottles of wine to take across the border.
I got a bottle of 2003 Andrew Will Cellars Champoux Vineyard -- an interesting Columbia Valley red blend, mostly Cabernet Sauvignon that I think will cellar nicely for a couple of years, but not too urgent. And I also picked up a 2004 Hanzell Vineyards Chardonnay, Sonoma Valley, which I also think will sit nicely for a year or so. We'll see -- I'm not really big on cellaring yet, but I'd like to give a few wines a try.
We stopped in Amherst (Massachusetts) for lunch at the Amherst Brewing Company, which has good pub grub, generous portions, and really nice house brews available. We also dropped into a few bookstores. Books are a great cross-border purchase for Canadian residents, since their cover price is usually ridiculously skewed. For example: I got a Paul Auster hardback that was labeled at $22 US, $28 Canada. That's with the loonie trading at US$1.01!
Our drive up to Montreal was pretty decent, although we had a ton of rain and snow that made the actual driving kind of sucky. We stopped in a cruddy gas station in Sharon, Vermont that didn't have a bathroom (doh!) and didn't stop much afterwards until Burlington. We got dinner at a great place in downtown Burlington, Burlington Hearth (AKA American Flatbread). Great oven-fired pizza, organic ingredients, nice atmosphere, more microbrew. Fabulous.
We got across the border all right, although I needed some time to get my new work permit for 2008. Then a long snowy drive back home, where my friend Damien from Austin is staying with us for this week during MIGS. Should be a fun week -- we have lots to catch up on.
tags: travel massachusetts wine vermont burlington amherst montreal
N810 maemo submission acceptedAs the title says i have to thanks maemo and nokia for giving me this chance. I can't wait to put my hands on my new toy!
Congratulations! You have been accepted to the N810 maemo device
program. We will send your discount and instructions as soon as the
device is available in your selected shop (soon).
I'm pondering adding more RAM to
my workstation. 128Mb is enough for most
of my work, but OpenOffice swaps a lot.
I couldn't remember what RAM is currently
in it (one stick or two?) so I was very
happy to find
dmidecode
in the comments on
as days pass by, by Stuart Langridge: Memory scanner for Linux.
dmidecode says I
have a free slot and
another 512Mb stick is surprisingly cheap.
Actually,
whole Ubuntu-ready-to-use computers are surprisingly cheap, according to lkcl.
I hope they don't contain
toxic e-waste.
I must be getting old. [Antti-Juhani Kaijanaho]
Hey, Gunnar, what do you say next month we try to meet during the ciclotón?
I’ve been 3 times to it and it really is a lot of fun! Even in weather like yesterday’s! I very nearly decided to stay in bed sipping chocolate, but in the end the shame at seing my brother getting all ready to go was too much.
The webkit rendering plugin for liferea is now available in unstable. It has missing features and crashes not-so-rarely. But it renders properly (and I rather like how it loks, actually) everything I’ve tested with it so far. Please help us get it into a releasable shape by testing and reporting bugs, but do be kind to us and try to see if the bugs are in liferea or in webkit itself, by using /usr/lib/WebKit/GdkLauncher on the relevant URL.
Many thanks are due to Lars, our very excelent upstream.
superimposing the Last Supper with its mirror-image throws up another picture containing a figure who looks like a Templar knight and another holding a small baby.Apparently all the websites showing the resulting image were heavily slashdotted, but superimposing a mirrored image is not rocket science, so I gave it a try. The result has nothing to do with Templar knights, but is shows very clearly that Jesus becomes Chtulhu:
Excited by this finding, I looked for more. I could not find much in the Mona
Lisa:
But indeed the Vitruvian
Man after
superimposing a mirror image shows incredibly large balls:
Leonardo was Italian, and in Italy "growing big balls" means "getting very
tired and sick of something". This is clearly a very deep message from
Leonardo.
But why stop at Lenoardo?
Absolutely wonderful.
Next.