Search Results: "ag"

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!

David Welton: indent-region-as

At times, when I'm working with an HTML file - an article about programming, for instance - I need to include a snippet of code inside a <pre> tag or a <code> tag. It's very annoying to have to indent that code by hand, and since the language may be anything from Hecl, to Erlang, to Java to C, I don't want to use something like two-mode-mode for Emacs, so I threw the following elisp together:
(defun indent-region-as (other-mode)
  "Indent selected region as some other mode.  Used in order to indent source code contained within HTML."
  (interactive "aMode to use: ")
  (save-excursion
(let ((old-mode major-mode))
  (narrow-to-region (region-beginning) (region-end))
  (funcall other-mode)
  (indent-region (region-beginning) (region-end) nil)
  (funcall old-mode)))
  (widen))
To use it:
  1. Put it in your .emacs file.
  2. Select the region to indent according to the other mode.
  3. M-x indent-region-as - which will prompt you for the other mode to use. You need to give the function for that mode, such as tcl-mode, java-mode, ruby-mode or whatever.
My elisp is a bit rusty, so I'm sure it's possible to improve the code above, but it does the job for me.

Lior Kaplan: I m not going to DebConf 8


After 3 years in a row, I’ll miss DebConf this year. Seems that I shouldn’t have filled the reimbrusment form too late in the night, as I mixed the the “unable to pay” amount with “able to pay”. That’s a 1500 USD difference… Flights across the planet (Israel -> Europe -> South America) are expensive. Further more, their costs went up, meaning that even if I got the all the reimbursement I asked for, I would still need to add money (which is a bit of a problem as I’m looking for a job). I hope I could virtually attend the conference thought the lectures’ video streams, but that can’t be compared to actually attend the conference.

Enrico Zini: Italian weather agencies

Italian weather agencies Most Italian regions have agencies providing good regional weather forecast. However, I could not find a useful national index of all their weather forecast pages. So I made one, tweaking an image map found on wikipedia. Abruzzo Basilicata Calabria Campania Emilia-Romagna Friuli-Venezia Giulia Lazio Liguria Lombardia Marche Molise Piemonte Puglia Sardegna Sicilia Toscana Trentino-Alto Adige Umbria Valle d'Aosta Veneto Italia suddivisa per regioni I only filled in those regions that I was checking to organise a specific trip. With time, if I'll keep using this map I'll add more regions. Of course, if you now of a weather forecast page of a regional, public funded agency that is missing here, send me an e-mail.

Kartik Mistry: Changes


… are good! * Place: Ahmedabad * Hair Color: Light Burgundy * Vehicle: Bicycle (upcoming soon) * ayttm new upstream version available! Debian package is on the way soon.. * Current mood: Happy!

Julien Blache: rEFIt finally updated in Debian

After nearly two years stuck with rEFIt 0.7 in Debian, I’ve uploaded rEFIt 0.11 to unstable today. There’s been a bit of work done on the package, on rEFIt itself and on the tools that come with rEFIt. I’ve also added some (useful, I hope) documentation. This version of rEFIt supports all Intel Macs to date. rEFIt in Debian comes with gptsync, both as a Unix command-line tool and as an EFI application. It’s the only tool shipped in the package. The other tools available in the rEFIt binary distribution by upstream (the EFI Shell and utilities) come from the TianoCore project and aren’t available in Debian. See the README.Debian in rEFIt if you want the full story. Also rEFIt in Debian lacks the machine shutdown feature for now; this feature is part of the EFI 1.10 spec which isn’t supported by gnu-efi yet, though I have also worked on updating gnu-efi for EFI 1.10 and sent this upstream. Filesystem drivers are also affected by this and, as such, are unavailable too. If you’re interested in the gory details, see the changelog and patches.

Tore S. Bekkedal: Vitel A/S: Reach out and punch someone.

(Playing Kraftwerk - The Telephone Call.) Warning: This is a long-wound complaint post. The only reason this is going to the Planet is because I have no method yet of disabling individual posts for syndication. Please skip, with my apologees for the noise, if you don’t want to listen to complaining. May contain nuts. May drive you nuts. Drove me nuts. Mmm, pistachio.My first cellphone! When I was around 11, I got my first cellphone. I was very proud. This was back when being 11 and having a cellphone was a real novelty; pagers were still being sold, and the NMT network was still running. Like many things I appreciate, I found it in a dumpster. It was ancient, even then: a Motorola MicroTAC brick, missing its antenna. I borrowed one of my grandmother’s hairpins, and voila, working phone - as long as you didn’t leave Oslo. It had a certain cyberpunk look to it, even then: I loved it. I remember that I first bought a NetCom pay-as-you-go card; I don’t quite remember the number, but it had “283″ in it at the end, if you want to wardial. For some reason, Dad needed a SIM card so I gave him mine. So I bought myself a new one, a Telenor card, pay-as-you-go, number 91 85 95 08. I must have been around 12 at the time. And that number served me very well. Fast-forward 6 years, to late March, 2006. I had just turned 18, and one of the first things I wanted to do was get a massively cheaper, proper subscription. I’d been procrastinating it for a bit - as I am wont to - but when a nice gentleman at the subway station told me about a nice new company called SEA Norway and their wonderful prices, I accepted. Big mistake. Here begins the saga of woe… Useless Vitel company logoFor a good while, I was very happy with their service - even though GPRS data never worked, I never used it anyway. Their name changed to Vitel somewhere along the way. I received a phone call from an enthusiastic salesman who told me how much cheaper Vitel’s power subscription is. It seemed very reasonable, so I went for it. One of the arguments he gave me was that I could collect all those utilities into one bill. I told him that I couldn’t have this: Since I’m a live-alone student, my power bill is covered entirely by the city council, so I need a proper bill to hand over every month. “Sure, that’s no problem”. I check and double-check that, and I stress it. Sure, no problem. OK, deal. Big, big mistake. They draw 2700 Kroner from my account, using the automated pay system (AvtaleGiro) that I had set up for the phone bill. 2700 Kroner (530 US Dollars) is a lot of money, especially when your monthly income, 5000 Kroner (1000 US Dollars) barely covers the necessities. So I cancel the autopay system. (I still have not received that money!) 23rd of January, my subscription is cut, since I hadn’t paid the bill. They hadn’t mailed it to me, and I’d told them I’d cut the AvtaleGiro, but I simply did not receive the bill. So I call them up in February some time and try to figure out a solution. “You didn’t pay the bill, so the subscription is closed.” -”So if I pay the bill, will you reopen it?” -”No, sorry. It is closed now.” -”So then I’ll have to transfer the number to another provider?” -”No, you can’t do that; it’s closed now.” -”You can’t refuse to transfer the number, that’s simply not legal.” -”Sure it is, the subscription’s been closed.” Urgh. So some time in the middle of March, before The Gathering, I call NetCom up: I want to transfer my number to them, please. Sure, no problem. No, this number is registered as active in our system. All is well. We’ll make the switchover on March 28th, and you will get your SIM card in the mail: It should be in your box by then. Fantastic! The 28th of March came and went with no great ceremony, not even a SIM card. No switchover occurred. I give them the benefit of the doubt for more than a fortnight. Some time in April, then, I get sufficiently annoyed to call them up and ask what had happened. “Oh, no, it seems Vitel is using the old transferral system”. -”OK?” -”Yes, you will have to send us a form with your signature by fax to carry this transfer out.” -”Sigh, alright. Where can I get this form?” -”I’ll email it to you.” Great. So I get the form. May was very busy, so I didn’t get an opportunity to fill the form out, and by now I was getting fairly tired of the whole thing anyway! The thing that finally got me, however, was a bill from Vitel - on the “closed” subscription - for not only the monthly fee, but also several kroner of SMS “content services” (Read: ring tones) and GPRS data (Which never even worked even when the subscription did!) So last Tuesday, June 3rd, I send them the damned fax. Wednesday, June 4th, I call NetCom up and ask what the status is of my subscription. “Oh, yes, this is now active with us.” -”Really?!” (I was happy in the way that only someone who’s gone 5 months without a working phone could be.) -”Sure, we’ve sent the SIM card to Bekkeveien (something).” -”…Bekkeveien? But I’ve never lived at any Bekkeveien. My last name is Bekkedal, but..” -”Alright, then that’s probably a mistake. What you can do, though, is go to a NetCom dealer and pick up a new SIM card.” -”Perfect! I’ll do that, then.” (I stress “pick up” for a reason which will later become apparent.) Goodie. I’ll get a working phone! I was very happy as I took the tram down to Aker Brygge and looked everywhere for the damned NetCom dealer. Having finally found it, I happily stride inside and ask for a SIM card for my subscription. “Sure. That’ll be 200 Kroner.” Argh! I hadn’t brought enough money! She did say pick up. Oh well. Aker Brygge is a center of business, I’m sure there are other shops. So I ask to use one of their phones to call NetCom. Sorry, no phones you can use. Sigh. Fine. Do you know of any phone booths around? They didn’t, but I found one anyway, finally. I deposit the necessary $1 for a local call (See, this is the problem with having a cellphone company run the phone booths!) and dial NetCom customer service. They take my number and - Sorry, that number isn’t yet active, it’s still registered to Vitel. ARGH! Fine. So what’s standing in the way? Well, Vitel can’t refuse it - (thanks, I know that already) - but the form that I was sent wasn’t the right form. The form I need to send is from Vitel to Vitel, authorizing the transfer.While I’m trying to hold a conversation with the customer support guy, some drunk guy is accusing me of stealing phones, and begins reading out loud the sponsor company names on the back of my DebConf T-shirt. But Vitel has already told me that I cannot transfer this number, under any circumstance! They consider it closed! “Yes, but you have to talk to Vitel.” -”I have!” -”Well, we can’t really do anything…” Alright. So I hang up and I try to call Vitel. But that doesn’t work: They closed at 3 PM!. So finally tired of Netcom failing to port my number for a while, I call Telenor. I talk to a very cheerful and helpful lady who admits to not knowing about the particulars of that situation. Fantastic! At least she isn’t going to fib it! She says that she has a vacation Thursday, but she can call me back on Friday after discussing the matter with the number transfers department. Wow! She’s actually going to confer with the relevant expertise! This is too good to be true! So she said she’d call me back Friday at 1PM with a status update. As I am writing, it is Friday at 11:01, I am anxiously awaiting the telephone call. But now I get a funny SMS message:
From: NetCom Message from NetCom: Your number has been ordered by another operator. We would like to remind you that violation of the commitment period will be billed to the order of 1500 kroner. For questions, call 05050.
My subscription with Vitel was made in 2006, more than the 12 months I and knowledgeable friends believe to be the maximum legal commitment period (I doubt I would have agreed to more anyway!). Besides, the text message keeps saying that it’s from NetCom. So my deduction is: It’s from NetCom, who I have registered an active subscription and are now complaining that I’ve moved the subscription I’ve opened with them (but which they have not successfully moved from Vitel), over to Telenor. I don’t think this is an unfair conclusion. So I call NetCom customer service - which to NetComs infinite credit is a number you always can call, almost like 112 (technically it’s accomplished completely differently, but you get my point. The number is never blocked in a blocked subscription.) And they say it’s not from NetCom, even though it says it’s from NetCom. So I’ll keep both of my readers posted on the developing situation. At least the text message indicates that something is happening with my subscription. I just want the dialtone!

Andrea De Iacovo: Preparing to the freeze


I think you all know it: we’re going to freeze Lenny in a month so we’re all working to make really clean packages for the new stable release. I’m working to obtain this with wordpress too. At the moment I’m discussing the last issue opened against wordpress 2.5 with security team so I hope I’ll be able to provide a “stable” package within a week or so. I think it would be really good to reach the freeze with a package with no (opened) security issues. However wordpress it’s not as stable as we’d like it to be so I know I’ll have to work on it again before the release of Lenny. While working, however, I cross my fingers: I really like the idea of WordPress 2.5.1 in stable! p.s. I’m sorry about that but you all know what I’m going to say: I’m not going to upload new versions of wordpress in unstable/testing for some time. However I don’t think the wordpress develompent team is going to release something really important so don’t worry too much!

Adrian von Bidder: Blocking outgoing port 25

For once, the the action of an otherwise stupid ISP, namely blocking port 25 outgoing, was probably the right thing to do. Yes, in comcasts case, it apparently was communicated badly, and of course you have to be able to get it unblocked easily, but I think if all big providers would either block 25 outgoing alltogether for their consumer offerings or would block it for hosts they see spamming (pattern: smtp connections to more than 20 hosts within one minute perhaps?) the world would be a better place. OTOH spammers are already reacting: the percentage of spam I'm receiving through regular MXen (as per reverse DNS), including Yahoo and Google, (but not gmx so far, interestingly) is increasing markedly these months.

5 June 2008

Dirk Eddelbuettel: Adventures with Comcast: Part ohbynowIhavelostcount in an ongoing series

Regular readers of this blog (ed: oxymoron alert) may recall tales of woe with our beloved (ha!) cable internet provider such as this; then there are of course minor tales like this or this or this or the other stories on on this page but I am probably forgetting others. Anyway, yesterday's highlight was initiated with a mail, seemingly sent to all customers, informing me that
ACTION REQUIRED: Comcast has determined that your computer(s) have been used to send unsolicited email ("spam"), which is generally an indicator of a virus. For your own protection and that of other Comcast customers, we have taken steps to prevent further transmission of spam from your computer(s).
and the email went on to recommend some Windows anti-spam measures, including a reference to a page I could only open with IE at work and one URL to a page that doesn't exist. Nice. Not. Needless to say, there are now Windows computers sending mail (via Comcast) here (as the lone windows box, my wife's work laptop goes straight to her university webmail). And obviously, they blocked port 25, so no more mail sending from home. So I grumpily logged a compaint having been on hold and in telephony menu hell for fifteen or twenty minutes. I was promised to hear back in 72 hours. Hasn't happened yet, naturally, but we're only half way through... Anyway, to make a long story short and this post constructive: Here is what you do on a Debian or Ubuntu system running exim as your mail transport: And it may pay to check /var/log/exim4/mainlog for any irregularities. Barring those, you should now be sending mail to you smarthost using authenticated transfer over port 587. In the meantime, it looks like they unblocked port 25 at some point today...

Russell Coker: SE Linux Support in GPG

In May 2002 I had an idea for securing access to GNUPG [1]. What I did was to write SE Linux policy to only permit the gpg program to access the secret key (and other files in ~/.gnupg). This meant that the most trivial ways of stealing the secret key would be prevented. However an attacker could still use gpg to encrypt it’s secret key and write the data to some place that is accessible, for example the command “gpg -c --output /tmp/foo.gpg ~/.gnupg/secring.gpg“. So what we needed was for gpg to either refuse to encrypt such files, or to spawn a child process for accessing such files (which could be granted different access to the filesystem). I filed the Debian bug report 146345 [2] requesting this feature. In March upstream added this feature, the Debian package is currently not built with --enable-selinux-support so this feature isn’t enabled yet, but hopefully it will be soon. Incidentally the feature as currently implemented is not really SE Linux specific, it seems to me that there are many potential situations where it could be useful without SE Linux. For example if you were using one of the path-name based MAC systems (which I dislike - see what my friend Joshua Brindle wrote about them for an explanation [3]) then you could gain some benefits from this. A situation where there is even smaller potential for benefit is in the case of an automated system which runs gpg which could allow an attacker to pass bogus commands to it. When exploiting a shell script it might be easier to specify the wrong file to encrypt than to perform more sophisticated attacks. When the feature in question is enabled the command “gpg -c --output /tmp/foo.gpg ~/.gnupg/secring.gpg” will abort with the following error:
gpg: can’t open /root/.gnupg/secring.gpg’: Operation not permitted
gpg: symmetric encryption of /root/.gnupg/secring.gpg’ failed: file open error Of course the command “gpg --export-secret-keys” will abort with the following error:
gpg: exporting secret keys not allowed
gpg: WARNING: nothing exported Now we need to determine the correct way of exporting secret keys and modifying the GPG configuration. It might be best to allow exporting the secret keys when not running SE Linux (or other supported MAC systems), or when running in permissive mode (as in those situations merely copying the files will work). Although we could have an option in gpg.conf for this for the case where we want to prevent shell-script quoting hacks. For editing the gpg.conf file and exporting the secret keys we could have a program similar in concept to crontab(1) which has PAM support to determine when it should perform it’s actions. Also it seems to me that crontab(1) could do with PAM support (I’ve filed Debian bug report 484743 [4] requesting this). Finally one thing that should be noted is that the targeted policy for SE Linux does not restrict GPG (which runs in the unconfined_t domain). Thus most people who use SE Linux at the moment aren’t getting any benefits from such things. This will change eventually.

Christian Perrier: [life] Barcelona rocks

(update with right spellings for Catalan names, thanks Guillem) So, we (Elizabeth and /me) spent four days in May-end in Barcelona...without my laptop. That was already 2 weeks ago but it took me time to cook this blog entry..:-) Indeed, we enjoyed that a lot. That city is deeply appealing and friendly, and welcoming, and etc. Elizabeth found a good, though expensive, hotel in the city center, close to La Rambla (career Junta de Comer for those who care)....but far enough from La Rambla's noise..:-) The city is of course full of tourists...just like us...but, in some way, it absorbs the "load" very well and it doesn't look like the Touristorama that Paris turns into from May to September, for instance. It probably comes from the city having several interesting places to go without hard "hot spots" where all international buses of hurried folks run around like a sheep cattle...:-) Of course, we went to the "famous" places and, well, we enjoyed them a lot. For instance, the city hot spot, namely La Sagrada Familia... I wouldn't really have guessed that I would enjoy it that much. I was expecting something crazy and full of religious crap, just like Paris' "Sacre Coeur". I actually found a marvel of modern architecture. The portal of Passion is....astonishing and its modern sculpture framework is full of emotion. The inside, though still under huge work left me thrilled. That forest of pilars, the size of the ceiling and the elegance of all this is....wonderful. Really, I hope I'll live enough to see the end of this. We spent more than 4 hours there... La Rambla is as well somethign one has to enjoy. Of course full of crappy tourist-oriented stuff....but also a really living place and a place where one just want to "ramble on". We visited Park G ell on Friday with the best weather we had. Just sitting there on the terrace and enjoy the sun and some music by a quite good trumpetist was a great first introduction to the week-end. We wandered a long time around Montjuich hill, enjoying the view on the city. Definitely a place I would love running in if I was a Catalan. We also wandered through Gr cia which was a separate village in the past, though close to city's center. Nice walk in small places. Go there on evenings. The Musuem of the City's history is also a place to go. Great visit of remainings of the Roman and post-Roman city, under places just near to the cathedral. We were also lucky to see the Corpus Christi procession with Giants and related things (interrupted by rain, unfortunately) as well as attend a local "sardane" contest on a small place close to the cathedral on Saturday. Just friendly and nice being sitting there. We also went on some event I have no idea about, which featured some kinds of "fratenities" of people in a procession, with many giant flags (I mean *really giant*: about 5-8 meters high and held by one single person). We followed them for 1-2 kms in the avenues around the University after seeing them from the bus...:-) Barcelona's transport system is great. We had the great idea to buy "Barcelona cards" which just give you free access to bus, trains, metro, tram and several reduced fees to museums and such other places. This way, we could go around the city without walking too much and be too tired... If you do so some day, just use busses. They go everywhere, are very fast and they come often, even on Sundays. The metro is faster but you don't see the city. My favourite bus line is 24. Another option is the bicycle rental system. It seems fairly easy to use and, just like Paris V'lib, you find bicycles everywhere. Just remember that you'll ride in Spain (the same stands for Paris...) so buy eyes for all around your head. I still have so many things to say about Barcelona, but I want to complete that blog entry. In short, go there and enjoy. It deserves it. Ah, and if you live in Barcelona (and are not veg'), just try the "Biblioteca" restaurant in Junta de Comer o (I hope I remember the name well...anyway there are not that many restaurants in that street). We went there two nights in a row just because we wanted to try more stuff from their great menu..:-).

Joerg Jaspert: FTP assistants

Some days ago I wrote a little mail asking for volunteers for the FTP assistant role. Right now we got 4 people mailing us with some kind of volunteer offer and the same amount of replies talking about total different topics. From those 4 volunteers I think we are doing step two - handing out tasks to check the knowledge of the volunteers with two of them. The other two seem to want to limit themselves too much in what work they want to do. I will look and hand out tasks / reply to the mails somewhere soon, like this Saturday/Sunday. In case you want to volunteer too, please read the mail I linked to, it contains a description of what you would volunteer for and then maybe mail us. Comments: 0

John Goerzen: Obama, RFK, and Making History

I think that for the first time, when I go to vote this November, I will probably not have to hold my nose as I make a selection for president. I don't agree with Obama on everything, of course, but the core of what he stands for -- that it is time to enter a post-racial, post-partisan time -- and that putting the interests of the people before those of the corporation -- is a powerful message.

And I'm not the only one that thinks so. One interesting read is Why This 55-Year-Old White Lifelong Republican Wants Obama To Win by Frank Schaeffer. He's a pro-life, pro-military Republican that actually campaigned for McCain in 2000, and this year he's supporting Obama. He pointed out another key point: Obama does not play on our fears.

Then there's A Transformational Moment by Jim Wallis, who grew up in a time when white people that supported civil rights were literally putting their lives on the line. He ends with:

This morning I heard several interviews on NPR with black Americans about their response to Obama's nomination. One older woman said, "A black man running for president, did you hear what just I said? A black man running for president of the United States ...." She just kept repeating the words, and succinctly captured my own personal feelings.

Yes, it is truly historic, and the U.K. newspaper headlines captured that sentiment as did papers around the world. Nothing could change the image of America around the world more than this. But it is more than historic; it is very personal for many of my generation. A new generation just sees this as natural -- he's an inspirational leader who happens to be black, which matters little to them. But for my generation -- I'm dating myself now -- this is a transformational moment, one we didn't think would come in our lifetimes. Race was the issue that changed us, shaped us, determined our path, and even defined the meaning of our faith. Now a black man is running for president of the United States. Amazing grace.


Tom Hayden reflects on the similarities between Obama and RFK, another interesting read. He concludes with:

Those who denounce Obama -- and the possibilities of all electoral politics- - should ponder the effectiveness of sitting judgmentally on the sidelines while an Unexpected Future arrives through the sheer will of a new generation. They should consider whether politics and history can be reduced to a fixed determinism that is endlessly repeated, as if there are no surprises. We can have our differences with Obama's specific policies, as I certainly do, but those should be measured against the prospect that a movement might transform him even as his very rise continues to transform the rest of us.


And now for something less inspiring. If you go look over at the latest blog entry at hillaryclinton.com and read the comments, these readers frankly sound more than a little loony. There are rampant accusations that Obama "stole the election" with the help of the DNC. That makes no sense to me; he followed the rules, and the DNC gave Clinton more delegates than she should have had with the rules as they were at the start of the game (which she supported then). The Obama campaign even rejected a plan that was less favorable to Clinton at the DNC rules committee meeting on Saturday. They also go on and on about how Obama has had so many scandals (though the Clinton real estate scandals really are far more serious than a former pastor). It all looks so very petty, and I wonder why Clinton has whipped up her supporters to such a fervent extent. Perhaps it was an accident, but you'd think things like this are rarely an accident with her.

Sandro Tosi: PyProcessing will be in Python!

I'm just bouncing the news from Jesse Noller blog about Guido van Rossum accepting the PEP for pyprocessing.
There were a lot of discussions about pyprocessing inclusion in Python (here a couple of blog posts and the mail to python-dev), and now it finally made it! I'm really happy since Richard is a very prepared and responsive guy.

Well, it's just by chance I co-maintain python-processing in Debian :)

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?

Russell Coker: I Just Joined SAGE

I’ve just joined SAGE AU - the System Administrators Guild of Australia [1] . I’ve known about SAGE for a long time, in 2006 I presented a paper at their conference [2] (here is the paper [3] - there are still some outstanding issues from that one, I’ll have to revisit it). They have been doing good things for a long time, but I haven’t felt that there was enough benefit to make it worth spending money (there are a huge variety of free things that I can do related to Linux which I don’t have time to do). But now Matt Bottrell has been promoting Internode and SAGE, SAGE members get a 15% discount [4]. As I’ve got one home connection through Internode and will soon get another it seems like time to join SAGE.

Amaya Rodrigo: 42

What was the question again? 42 is just the answer to Life, the Universe, and Everything.

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.

Lior Kaplan: Oracle and ncompress


I’ve been approached by someone installing Oracle Enterprise Manager with a problem of the installation fails due to not finding the compress binary. It seems that some of the Oracle products relay on the ncompress package for compressing. While compress might be the UNIX standard for compressing, I’m curious why didn’t they changed the product to use gzip. Or at least to check whether ncompress is available and than use it. But failing because of that seems to much to me. This isn’t the first time I’ve challenged Oracle’s dependencies, which I think sometimes aren’t minimal as they should be or complaint with common distribution standards.

Next.

Previous.