Search Results: "bod"

23 June 2008

Steve Kemp: There is something evil there

So I've had a hectic few days, and I'm getting close to having caught up with the things that I've been sitting on whilst I've been away.
ObRandom: Several people, independantly, have told me within the past few days that "whilst" is not a real word. it is. End of ..
Some interesting things I've been working upon recently include a fun little firewall tool. Once upon a time I wrote a firewall script which worked like this:
firewall/
 -- incoming.d
     -- smtp
     -- ssh
     -- www
 -- outgoing.d
     -- ssh
     -- smtp
     -- dns
     -- icmp
When you executed the magic firewall script it would scan the incoming.d directory, and for each file it found lookup the relevant port in /etc/services. These port numbers would then be opened. And at the end you'd just have a "-j DROP". After a long phone conversation to a colleague on Thursday/Friday of last week I've now reworked this idea anew. There is still the notion of filenames referring to what is allowed for a pair of directories (incoming.d/ + outgoing.d/) but even more flexability and no hardwired use of /etc/servvices. I guess some ideas are just too simple to give up ..? Anyway there are a plethora of different firewall applications of varying sophistication and complexity in the world. I don't really want to go out of my way to promote this one - but at the same time it might be a useful idea for somebody? The next (work) job I have is determining how to make a "kernel" + "kernel-dev" RPM package based on Debian sources. Joy. Actually the more I look around the more fiddly, annoying, and troublesome I suspect this is going to be. Sigh. ObQuote: The Grudgy

Colin Watson: Don't use sshkeygen.com to generate keys!

To my horror, I recently saw this online SSH key generator. I hope nobody reading this needs to be told why this is a bad idea. However, in case you do, here are a few reasons: I think this is probably being done in innocent seriousness (although I kind of hope it's a joke in poor taste), and have e-mailed the contact address offering to explain why it's a bad idea.

22 June 2008

Christian Perrier: Console stuff not a secret, just neglected

Marc, from my experience, there is no 'secret' in the console-tools/kbd migration work. Just low involvment of all parties. I have watched the work on console handling stuff in Debian for a few years now, and my conclusion is just that nearly nobody cares about it now. I do maintain console-data that provides console fonts and keymaps. I took it over slowly from Alastair McKinstry (the console-tools maintainer mentioned in Marc's blog entry) because that involved maintaining localization of keymap names....that are used and visible in the installer. Ideas to switch the installer to console-setup and related tools are floating around. Just not achieved...because of lack of motivated manpower. Progress was made because of Anton Zinoviev and Colin Watson's work, but the project is currently hosed on a quite critical choice: About console-tools being installed by default: this is the consequence of it being Important while kbd is Extra. I think it should be up to kbd maintainers to push the change up. But this brings us back to the initial remark: indeed, now nobody cares about console handling, particularly when it comes at handling non-English environments. Those who still use the console in Linux environments apparently all do it with US keyboards and an English locale. For sure, kbd is more maintained than console-tools so, at least, we should switch to it. Funnily, our installer (even the graphical version) *still* relies on console keymaps during the installation process and, therefore, we rely on mostly unmaintained stuff here (people who think that I maintain console-data are plain wrong: I just keep it surviving...:-))

18 June 2008

Edd Dumbill: Low-tech SSL certificate maintenance

I maintain a bunch of SSL certificates, mostly signed by my own site authority. Too many not to automate, but not enough to warrant heavy machinery. Here's how I do it. The configuration files Each certificate needs a config to describe what's in it. I create each of these and name it with a .cnf suffix. Here's an example:
[ req ]
prompt                  = no
distinguished_name      = server_distinguished_name
[ server_distinguished_name ]
commonName              = server.usefulinc.com
stateOrProvinceName     = England
countryName             = GB
emailAddress            = edd@usefulinc.com
organizationName        = Useful Information Company
organizationalUnitName  = Hosting
[ req_extensions ]
subjectAltName=edd@usefulinc.com
issuerAltName=issuer:copy
nsCertType            = server
[ x509_extensions ]
subjectAltName=edd@usefulinc.com
issuerAltName=issuer:copy
nsCertType            = server
Let's say this config is server.cnf. I then just type make server.pem to generate the corresponding certificate and key, signed by my local certificate authority. As I don't want to attend the startup of every service, I ensure the key is password-less. The Makefile rules Here are the makefile steps I use to generate and sign keys.
.SUFFIXES: .pem .cnf
.cnf.pem:
        OPENSSL_CONF=$< openssl req -newkey rsa:1024 -keyout tempkey.pem -keyform PEM -out tempreq.pem -outform PEM
        openssl rsa <tempkey.pem >  basename $< .cnf _key.pem
        chmod 400  basename $< .cnf _key.pem
        OPENSSL_CONF=./usefulCA/openssl.cnf openssl ca -in tempreq.pem -out  basename $< .cnf _crt.pem
        rm -f tempkey.pem tempreq.pem
        cat  basename $< .cnf _key.pem  basename $< .cnf _crt.pem > $@
        chmod 400 $@
        ln -sf $@  openssl x509 -noout -hash < $@ .0
The resultant files are: Some notes on these steps: my site-local certificate authority is in the directory usefulCA, along with an OpenSSL config which describes my preferences. This config was created by copying and making appropriate adjustments to the default /etc/ssl/openssl.cnf which ships with Debian. For generating certificate signing requests to ship to a commercial certificate authority, it's a bit simpler. I save the config files with a .reqcnf suffix instead, and use this rule:
.SUFFIXES: .pem .cnf .reqcnf .csr
.reqcnf.csr:
        OPENSSL_CONF=$< openssl req -newkey rsa:1024 -keyout  basename $< .reqcnf .key -keyform PEM -out  basename $< .reqcnf .csr -outform PEM
And finally, a rule I use to sign incoming certificate requests from other systems:
.csr.pem:
        OPENSSL_CONF=./usefulCA/openssl.cnf openssl ca -in $< -out  basename $< .csr _crt.pem
I offer these without warranty in the hope they might be useful to somebody. They're not much more than a transcription of a how-to into a makefile, but it's just enough technology to ensure creating certificates isn't a big nuisance. Further reading Notes Why do I bother with a site-local CA, rather than just self-sign? It lets me bypass the annoyance of SSL warnings on clients once I've installed my own CA certificate, and gives me a coarse grained level of access control: for instance, only clients with certificates signed by my CA are allowed to access the site's LDAP server. My personal next step with this is to integrate the certificate production process with my emerging Puppet recipes for managing local infrastructure.Join the conversation about this post

Mike Hommey: Setting a world record

Josselin thinks it’s the most stupid world record, my take is that it is only a useless one. World records are interesting when they are challenged, not when they are set. And the fact is Firefox will become the world most downloaded software in a day in the world because nobody else tried to set this record before. Most Guinness records are such records, by the way: they’re set, not challenged. Speaking of stupid records, and how they are set (… or not), I quite like the following story, which happened live on french television. Some years ago, a guy wanted to set the record for spitting a greenpea as far as he could (*that* is a stupid record). The Guinness records guy was there, obviously, so that the record could be homologated. I don’t remember the numbers, but it’s not very important after all. Anyways, the guy sets his record, he is happy, and for fun, the TV show host tries. First try, first win, he broke the record that had been set a few seconds before ; without even trying to beat it. Coming back to the Firefox record, it’s useless to set a record you already know is not an absolute record. Microsoft service packs and affiliated are downloaded massively the day they are released, Microsoft just never considered submitting it to the Guinness book. And if they’d have tried, they would have set it at least an order of magnitude higher than Firefox will set it. Then Firefox would have needed to come up with a catch phrase like “the most downloaded free (as in free speech, because a MS service pack is free as in free beer) software” to get its moment of fame. So, how long before Microsoft tries to break it, with, say, IE8 ? And what will be the new marketing trick for Firefox 4.0 (after a full page in NYT for 1.0, “get your name in Firefox” for 2.0 and a Guinness record for 3.0) ?

16 June 2008

Ingo Juergensmann: Information Policy

Well, during the weekend some Debian machines were unreachable as MJ Ray wrote on debian-devel:

gluck, merkel, samosa and raff uncontactable (192.25.206.* network problem?)

I don't know anything more at this time, but wanted to push a small
message out so that others know it isn't just them and lists and IRC
are both still up, as far as I can see so far.


Except the topic on #debian-devel channel there was no other official notice, afaik.

I think handling of such issues can be improved. Although nobody apparently seemed to know what happened or when the problem will be solved, it would have been nice to publish information that actually were available:


  1. What happened?

  2. When did it happen?

  3. What services are affected?

  4. What is done to solve the problem?

  5. When will the problem be solved most likely (ETA)?

  6. Is there an alternative for the services affected by the problem?

  7. Where can I inform myself about any progress?



A webpage similar to that one for DSA-1571 would be a very nice idea, IMHO.

MJ Ray: Forthcoming (and past) Events News: LUGoG, BikeWeek, HacktionLab, SPI

LUG of Glastonbury meets at Tor Leisure in Glastonbury at 7pm tonight (Monday). It will be a general planning meeting, maybe with some GPG-key-signing and other tasks. If you want the LUG to show you something in particular, this will be a good event to attend. This week is BikeWeek 2008 and there's a free cyclists breakfast at the Victorian Cafe on the Weston-super-Mare seafront about 8am Wednesday morning. For events in other areas, stick a partial postcode into the BikeWeek event search. Someone from The Doon Of May was at Hacktionlab 2008 @ Highbury Farm this last weekend, as were Bristol Wireless, who were running the wifi. I've not seen an official announcement, but SPI's board meeting will be on Wednesday at 8pm UK time (1900 UTC), according to my last meeting report. I've heard through BBLUG that the notorious Shevek is co-organising an event called "An Adventure in Technology" at Trinity Community Arts in Bristol on 28 June 2008. It's a follow-up event to the 2003 Bristol Linux and will be an all-inclusive event where everybody is encouraged to bring something along, talk about it, swap ideas, and build things on site. It doesn't have to be Linux-based, but a lot of things will be. The event web site is http://www.techadventure.org/ and you should post there if you have an idea or want to run a session. There will also be a list for people who decide on the day that they want to give a talk.

15 June 2008

Clint Adams: Grapes and honeydew

I'm in Manitoba, drinking port and eating Jarlsberg and fontina. This is not a pleasant combination, yet I have no intention of aborting the mission. Robert DeNiro is wearing a rubber fat suit and shouting belligerently about carpentry. I still have never been to Winnipeg. Throughout the years, people have informed me that various animals are unable to swim. In the first Diplomacy game I ever played, it was frequently mentioned that sheep cannot swim. At the Parade of the Flailing Clowns, it was observed that chimps cannot swim. The chimpanzee cannot swim, apparently, because of a total lack of body fat. That's right; chimps have absolutely 0 body fat. Not a single gram. Tell someone obsessed with eating low-fat meat this factoid. You shall observe an order for potted chimp meat being placed immediately. On the other hand, if you point out that goat is lower in fat than chicken, this person will appear nonplussed, and continue to maintain the same diet, because even though goat is a leaner meat, it is red meat and therefore higher in fat than chicken, which is higher in fat than goat. You can witness the same sort of behavior when pointing out the farmed nature of farm-raised fish to a free-ranger. There is a classification for this kind of interplay between faith, logic, and rationality. It is either insanity or religion; I forget the difference.

Neil Williams: Emdebian cross-buildd running for ARM

http://www.emdebian.org/buildd/

The scripts are in emdebian-tools 1.1.6 and with a few more fixes and tweaks, that will be the main body of v1.2.0 for Debian unstable.

A few issues with ssh and sudo passphrase caching vs running buildd scripts as root - I'll need to improve the documentation of the process before any other buildds can be set up. The need to have emdebian-tools and subversion installed inside the buildd chroot does make things a little more complicated than a standard wanna-build implementation - as does the need to download, build, install and clean-up cross dependencies.

This autobuilder is the Emdebian target package buildd - Hector Oron has another to build the cross-building toolchains. The toolchain autobuilder has fewer packages but each package is larger and is built for more architectures. Adding more architectures to the target autobuilder is quite difficult - packages that use cache files will need new cache files with different values for certain cache values. See the wiki for info on how to fix cache files. Each solves a different problem within the overall design of any buildd. In each case, instead of listening to email from incoming.debian.org, each buildd picks up the incoming data from the apt cache - a useful little time delay that gives me time to head-off certain problematic updates.

The target package autobuilder runs incrementally - a package is repeatedly rebuilt until it works and is then left alone until the next Debian release. There's lots of work available on the frontend if anyone fancies helping with the PHP. (See Emdebian SVN).

The advantage now is that as more packages fix their cross building bugs, more packages will autobuild without intervention which frees up more of my time to fix the more complicated problems. Equally, I can refer to the buildd logs in bug reports, helping everyone see what is going on.

14 June 2008

Brice Goglin: Debian X.org notes - X.org in Lenny (and more)

Xserver 1.4.2 for Lenny We originally planned to ship Xorg 7.4 and Xserver 1.5 since they were expected in February. However, Xserver 1.5 (and Mesa 7.1) are not released yet, so we are going to keep some updated X.org 7.3 for Lenny. A new Xserver 1.4 snapshot with some security fixes will enter testing soon. Once this is done, the final Xserver 1.4.2 will be uploaded. It is not perfect but it is the one you will get for Lenny. Many people suffered from Xserver 1.4 bugs in the last months, especially on the input side. Fortunately, many of them have been fixed. Lots of them were also caused by obsolete config files (that have to be manually fixes unfortunately). So we hope this Xserver 1.4.2 will be good enough for Lenny. XaaNoOffscreenPixmaps by default It is worth noting that XaaNoOffscreenPixmaps will now be the default (when XAA is enabled, i.e. by default for all drivers but Intel). It helps Compiz and seems to prevent various rendering problems from happening. Ubuntu and Fedora have been running such a patch for a while, so it looks like we are going to do the same for Lenny. To revert to the old behavior, use Option XaaOffscreenPixmaps in the Device section of your xorg.conf. ATI 6.8.191, Intel 2.3.2, Mesa 7.0.3++ Apart from the server, some big components are getting updated these days: A new Mesa has been uploaded so that it enters testing before the libs are frozen. It contains the latest Mesa 7.0.x git snapshot, including lots of bugfixes, especially for Intel hardware. Mesa 7.0.3 was already pretty solid, this new one (7.0.3-2) will be even better. ATI is still getting a lot of work upstream as usual. 6.8.191 (aka 6.9-rc1) has been released this week. It brings r6xx support, acceleration for r5xx, EXA Composite for r3xx/r4xx/r500, textured video support, ... It also fixes many bugs everywhere. Given the big testing that we had in experimental in the last months, I consider it much better than 6.8.0, so I decided to put it in unstable even if it's only a release candidate. This new ATI does not include the r128 and mach64 drivers anymore. So the new xserver-xorg-video-r128 and -mach64 packages finally entered unstable as well. Due to unexpected upstream version numbers for mach64 and r128 and me messing up with epochs, they have a lower version number (6.8.0-1) than the previous snapshots from experimental (1:6.8.1~git...). There's almost no code difference though, but people might want to install the unstable packages anyway. The old snapshots will be removed from experimental soon. On the Intel side, a new 2.3.2 is expected soon, without many big improvements from what I have seen. X.org post-Lenny Future Xorg 7.4/Xserver 1.5 prereleases should arrive in experimental soon. It requires Mesa 7.1, which still needs some build fix and requires a new yet-to-be-released libdrm. Once all these are properly fixed and released, you should for instance be able to experience some interesting improvement in EXA. It may finally make XAA useless for real. Also, Xorg 7.4 will simplify the Xserver package maintenance since its build won't need the whole Mesa source anymore (the GLcore module that AIGLX uses will be built/shipped within Mesa). Stop build-depending on xutils! Also, we've been trying to cleanup the dependency mess in many X packages for a while. We removed the obsolete dependency from xutils to xutils-dev which was only needed for Sarge->Etch upgrade (xutils-dev was split out of xutils). However, many packages still wrongly build-depend on xutils. Lucas reported that removing this useless dependency in the latest Xorg upload caused 84 FTBFS. So, we're going to revert the change to avoid adding 84 RC bugs. However, everybody build-depending on xutils, please check whether you actually need xutils or xutils-dev so that we can quickly fix this after Lenny.
(Permanent link) 

13 June 2008

Russell Coker: I m Skeptical about Robotic Nanotech

There has been a lot of fear-mongering about nanotech. The idea is that little robots will eat people (or maybe eat things that we depend on such as essential food crops). It’s unfortunate that fear-mongering has replaced thought and there seems to have been little serious discussion about the issues. If (as some people believe) nanotech has the potential to be more destructive than nuclear weapons then it’s an issue that needs to be discussed in debates before elections and government actions to alleviate the threat need to be reported on the news - as suggested in the Accelerating Future blog [0]. I predict that there will be three things which could be called nanotech in the future:

  1. Artifical life forms as described by Craig Venter in his talk for ted.com [1]. I believe that these should be considered along with nanotech because the boundary between creatures and machines can get fuzzy when you talk about self-replicating things devised by humans which are based on biological processes.
    I believe that artificial life forms and tweaked versions of current life forms have significant potential for harm. The BBC has an interesting article on health risks of GM food which suggests that such foods should be given the same level of testing as pharmaceuticals [2]. But that’s only the tip of the iceberg, the potential use of Terminator Gene technology [3] in biological warfare seems obvious.
But generally this form of nanotech has the same potential as bio-warfare (which currently has significantly under-performed when compared to other WMDs) and needs to be handled in the same way.
  • The more commonly discussed robotic nanotech, self-replicating and which can run around to do things (EG work inside a human body). I doubt that tiny robots can ever be as effective at adapting to their environment as animals, I also doubt that they can self-replicate in the wild. Currently we create CPU cores (the most intricate devices created by humans) from very pure materials in “clean rooms”. Making tiny machines in clean-rooms is not easy, making them in dirty environments is going to be almost impossible. Robots as we know them are based around environments that are artificially clean not natural environments. Robots that can self-replicate in a clean-room when provided with pure supplies of the necessary raw materials is a solvable problem. I predict that this will remain in science-fiction.

  • Tiny robots manufactured in factories to work as parts of larger machines. This is something that we are getting to today. It’s not going to cause any harm as long as the nano-bots can’t be manufactured on their own and can’t survive in the wild.

  • In summary, I think that the main area that we should be concerned about in regard to nano-bot technology is as a new development on the biological warfare theme. This seems to be a serious threat which deserves the attention of major governments.

    12 June 2008

    Tollef Fog Heen: Zombie meme

    Various people have been posting about what to do when the zombies attack.
    You are in a mall when zombies attack. You have:
    1. One weapon
    2. One song blasting on the speakers
    3. One famous person to fight along side you.
    
    1. Katana. Doesn't run out of ammo and should slice up those zombies quite nicely.
    2. One of the songs from the soundtrack of "The Rock". I can't remember which right now, since it seems to have disappeared from my music collection.
    3. Given I'm facing undeads, somebody holy. I suppose Jesus might work well.

    10 June 2008

    Adrian von Bidder: Movies

    Watched De Gr nne slagtere (great black comedy even if it moves a bit slowly. I think if you have to chose you'd better watch Adams bler with which it shares writer/director Anders Thomas Jensen and a big part of the cast). And this just has to be said: I can't believe anybody could call eXistenZ “quite a good see”. One of the worst movies I've ever seen, on a level with “Tweed” (a late 90s Bond parody I distinctly remember having seen but can't find on imdb right now.) I agree with Adeodato's assessment of Billy Elliot, though.

    9 June 2008

    MJ Ray: Fixing things the wrong way

    For some reason (maybe related to upgrading openssl recently), my Jabber client became unstable. Instead of fixing it the right way, I simply upgraded to Emacs 22.2 (which also got me the emacsclient --eval option mentioned on this blog previously). It still wouldn't make SSL connections at first, but a quick application of [jabber.el] Anybody using emacs-jabber with Emacs 22.2? fixed it. That's the wrong way to fix that bug, but it's not quite as wrong as misusing computers to try to fix copyright infringement. MediaDefender denial-of-service attacked a TV production company, as described in Inside the Attack that Crippled Revision3 on May 29th, 2008 at 07:49 am by Jim Louderback in Polemics MediaDefender or MediaDestroyer? That's the wrong way to fix that bug, but it's not quite as wrong as making treaties mostly in secret, under NDAs to try to evade local copyright law-makers. The US government, the European Commission, Japan, Switzerland, Australia and a handful of other countries are meeting in a secret negotiation on a new treaty
    "that undermines civil rights and privacy, and which many say will change the substantive rights the public has to use copyrighted works or inventions."
    Read more at Act On ACTA and then contact your law-making representatives.

    David Pashley: Compiled Regexes in Spamassassin 3.2

    Spamassassin 3.2, which is available in Gutsy and Lenny, comes with a new feature to increase performance by compiling its regular expressions using re2c. It's very quick to enable. First, you need to install the required packages:
    apt-get install re2c libc6-dev gcc make
    Next, edit /etc/spamassassin/v320.pre and uncomment the line that says:
    loadplugin Mail::SpamAssassin::Plugin::Rule2XSBody
    Next pre-compile the regular expressions using sa-compile:
    femme:/etc/logcheck# sa-compile
    [18741] info: generic: base extraction starting. this can take a while...
    [18741] info: generic: extracting from rules of type body_0
    100% [===========================] 3293.83 rules/sec 00m00s DONE
    100% [===========================] 650.12 bases/sec 00m01s DONE
    [18741] info: body_0: 647 base strings extracted in 2 seconds
    [snip compiler output]
    make install
    Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
    Installing /var/lib/spamassassin/compiled/3.002004/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.so
    Installing /tmp/.spamassassin18741hDrlUQtmp/ignored/man/man3/Mail::SpamAssassin::CompiledRegexps::body_0.3pm
    Writing /var/lib/spamassassin/compiled/3.002004/auto/Mail/SpamAssassin/CompiledRegexps/body_0/.packlist
    Appending installation info to /var/lib/spamassassin/compiled/3.002004/perllocal.pod
    cp /tmp/.spamassassin18741hDrlUQtmp/bases_body_0.pl /var/lib/spamassassin/compiled/3.002004/bases_body_0.pl
    cd /
    rm -rf /tmp/.spamassassin18741hDrlUQtmp
    
    Finally, restart spamassassin, and you should find it runs faster. You will need to run sa-compile every time you update your rules, or they won't take effect. If you get the following warning:
    Can't locate Mail/SpamAssassin/CompiledRegexps/body_0.pm in @INC
    you forgot to run sa-compile; re-run it and the error should go away.
    Read Comments (0)

    7 June 2008

    Julien Blache: HAL is crap, film at 11

    Joey, I think your whole post only applies to HAL. Fact is, DBus lets you know through a dedicated signal that you’ve been disconnected from the DBus server; at that point, you cleanup the connection and try to reconnect. Works for me. Now, the fact that HAL (and/or libhal, it seems) provides no way of handling this situation cleanly is obviously a major bug. I’m not a great fan of all the desktop crap that’s being promoted and hyped lately, but I am positive about DBus. DBus provides the mechanisms to handle a DBus restart properly, HAL (and pretty much everything else) doesn’t use them, blame HAL, not DBus, for this one. As for the “DBus should never be restarted”… I have no idea why the DBus upstreams would think that, but that also wouldn’t be the first time distributions disagree with upstreams about what is good and what isn’t. The good news is, this is all free software and we can fix it without upstream’s blessing. If somebody out there really believes that it is OK for applications to crash/exit when DBus is restarted, then I don’t have the words. I won’t even mention the new behaviour of the DBus init script in Sid.

    Jeff Bailey: Oil, Technology, Inevitability

    So apparently we hit $138/barrel on oil futures on Friday. Reading a CBC Post on the subject I think there are a couple interesting quotes:
    Matt Simmons, chairman of an energy financing company in Houston, believes oil prices are still too low. He told CBC News there are "very strong signs" that the global supply of crude oil has leveled out and is probably now in a gentle decline.
    Simmons said he finds it interesting that so many people blame speculators and a weak U.S. dollar for rising prices. "These same lame excuses have been going on for the last nine years, since [the price of oil] has gone up 13-fold," he said
    I commented earlier that I'm looking forward to $10/litre (The CBC article shows petrol in Montr al at $1.40). A number of commenters brought up economic accessibility - which is a real concern. So, dear lazyweb: I remember seeing once that there were orgs doing carbon offsets by going into low-income areas and doing volunteer work on houses to fix up insulation, replace aging furnaces and major appliances. I haven't been able to find a reference to it again, though. Given that $10/litre seems inevitable (Heya Brits! Any of you still driving cars at ~ 1.15 according to the Daily Mail), what do we do to prepare for it? We got Angie's bike up and running yesterday, and she went to her day's visits that way. I'm finally cleared to ride a bike, but am not yet up to tackling Rengstorff. I'm practicing by biking around the campus at work and getting used to the changes in my body. The biggest disappointment in going back to Vancouver is just the apathy about smog and fuel consumption there. We saw a total of 2 Prius' (Prii?) on the road across the entire 12 days versus a half-dozen Hummers. I remember in the early 90's being downtown and everyone being shocked when there was a bit of brown haze in the air around the Sears Tower (Sorry, I can never remember WTH it's called now). Now the city is not only permanently like that, but people just expect it to get worse without any real feeling that they could do anything about it. I find myself starting to think again about hacking and what differences I can make. It's unexpected but logical that efficiency results in greater consumption: You can afford to do more, and have time to do more. Is the trick, then, to develop something efficient that takes up time? (Should I work on a text adventure?) Or perhaps the answer is to get away from computers for entertainment. Jim Morrison (Phython) and I have been talking about taking up bagpipes as a fun pre-work activity in the field by the office. But now he's moved to the San Francisco office. Anyone else at in Mountain View interested? =)

    6 June 2008

    Benjamin Mako Hill: Stumping for Revealing Errors

    Over the past couple months, I gave a couple talks on Revealing Errors -- my project to try and use errors to teach non-technical people about technology, the effects it has on our lives, and the ways in which we (as users) might want to control it. The first version was at LUG Radio Live USA and went off reasonably well. A couple weeks later, I gave a version of the talk again at PenguiCon which went great. Unfortunately, neither recording seems to have worked out. I'll be giving talks on the subject at least twice more this summer. The first will be on June 18th at Boston Linux Unix at 19:00 at MIT in E51-315. It will be my first talk to BLU in something like three years. I'm also currently scheduled to give an abbreviated version of the talk as a keynote at OSCON under the title Advocating Software Freedom by Revealing Errors. In addition to all that, I'm having a whole lot of fun updating the Revealing Errors blog (although not as often as I'd like) and am currently in discussions about publishing a longer version of the Revealing Errors article as a book chapter at some point in the next year. Thanks to everybody who has been supportive of the project and read the blog, has told their friends, and who has told me about telling technological errors they've seen around. Please keep it up!

    5 June 2008

    Gunnar Wolf: I've fallen and I can't get up!

    I think I should follow up on Victor's lament. Yes, we have a Rails application which works fine most of the time... But quite often, throws out a segmentation fault I just have been unable to pin-point. It might be related to rmagick, the only non-pure-Ruby component I am using (and I'm tempted to try minimagick instead, even if I prefer in-memory operations than on-disk, piping an image and slurping it again).
    Victor came up with an easy script to check the server - but to reduce the impact it has (I was running a single Mongrel instance, which meant, whenever it dies the whole system becomes inaccessible for everybody; I replaced it with a mongrel_cluster of five processes, plus pound as a easy-to-use balancer which looks quite nice), the very simplistic and to-the-point script did no longer work.
    Anyway... Ruby rocks ;-) I'm sharing this with you mostly because I am sure some readers will find more than one useful construct, not because it is precisely beautiful code. And besides, we should work on fixing the cause, not the consequence, of the bug! :)
    1. #!/usr/bin/ruby
    2. require 'yaml'
    3. confdir = '/etc/mongrel-cluster/sites-enabled'
    4. restart_cmd = '/etc/init.d/mongrel-cluster restart'
    5. needs_restart = false
    6.  
    7. (Dir.open(confdir).entries - ['.', '..']).each do site
    8. conf = YAML.load_file "# confdir /# site "
    9. pid_location = [conf['cwd'], conf['pid_file']].join('/').gsub(/\.pid$/, '*.pid')
    10. pid_files = Dir.glob(pid_location)
    11.  
    12. pid_files.each do pidf
    13. pid = File.read(pidf)
    14. begin
    15. Process.getpgid(pid.to_i)
    16. rescue Errno::ESRCH
    17. warn "Process # pid (cluster # site ) is dead!"
    18. File.unlink pidf
    19. needs_restart = true
    20. end
    21. end
    22. end
    23.  
    24. system(restart_cmd) if needs_restart

    Works out of the box for any Debian-packaged mongrel-cluster. Sadly, mongrel-cluster does not provide a way to restart individual servers - Of course, I could (should, even) work it out to build the specific command-line... but at least, it works for now.
    Uh-oh... Does that mean it's permanent?

    Adeodato Sim : Credits

    Managing a transition is not always easy, because many times they are bigger than you, and have parts you can’t directly take care of yourself because it’s not your area of expertise, you don’t have access, or whatever else. You end up, then, nagging people to do stuff for you, which for types like me is slightly uneasy. It is a pleasure, though, when you find supportive fellow developers on the other side, just willing to help you, even if you always have more work for them. Thomas and Michael, thank you! (And thanks, in general, to everybody who helps the release team, past and future. We just can’t do everything!) On reflection, I notice that I also find very gratifying to do stuff for others myself (particularly if I enjoy the task, of course), because it has an immediate payoff. Highly recommended.

    Next.

    Previous.