Search Results: "joey"

25 April 2006

Joey Hess: html sanitisation

Now that I've finished adding email subscriptions to ikiwiki the only thing blocking me finally making an official release of it is html sanitization. This is the part I've put off till last because it's the part I hate. Somehow the web has evolved a backwards security model that wants sites with dynamic content to be responsible for policing that content for things that could cause security issues, instead of just making browsers actually secure so that no possible html can be a security issue. Which is of course absurd, but the various types of potential cross site scripting attacks that users of your wiki will be vulnerable to if it doesn't try to sanitise its html are nothing to laugh at. So everyone is left having to sanitise any untrusted content that they put up on the web. In my experience, almost everyone does it poorly, I've even found XSS holes in well-designed websites like Advogato. It doesn't help that browser coders are busy adding new features^Wholes to their web browsers, which everyone then has to update their sanitisers to block. I don't like participating in security arms races, so while I am evaluating various html sanitisers right now, adding html sanitisation to ikiwiki is not a pleasant idea, and I am tempted to punt on it, document the issue, and refer anyone experiencing problems to the authors of their web browsers. Sigh.

23 April 2006

Joey Hess: check your bugs day

This weekend Debian has had a BSP focusing on fixing release critical bugs. As that wraps up, I suggest that everyone use today as a day to check over the bugs you've filed yourself. Just go to http://bugs.debian.org/from:joeyh@debian.org, replacing my email address with yours. Some things to check: Even if you have reported a lot of bugs (I have 629 open :-( ), this should not take more than an hour, and is probably the absolute easiest way to close some bugs in the Debian BTS that there is.

Steve Kemp: I can t go back to yesterday, because I was a different person then.

Joey My problem was user error - I wasn’t passing the output I intended to into debconf-set-selections… I’ve got debconf selections working now. The ultimate goal was do remotely install cfengine2 via a process similar to this:
#!/bin/sh
host=$1
debconf-get-selections   grep cfengine2/   ssh root@$host debconf-set-selections
ssh root@$host DEBIAN_FRONTEND=noninteractive apt-get install --yes --force-yes install cfengine2
scp /var/lib/cfengine/masterfiles/inputs/*.conf root@$host:/etc/cfengine
ssh root@$host cfagent -q

Joey Hess: ouch!

I've added a sigprogs page listing some of the signature programs I've written over the years. As I was researching that, I discovered pictures of one of my programs, a variant of the RSA in 3 lines of perl, that two people have gotten tatooed onto themselves. tattoo2.jpg tattoo3.jpg
#!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_= echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp" dc ;s/\W//g;$_=pack('H*',/((..)*)$/)
I remember sending that in, but until today I hadn't realised that my keystrokes had actually translated into needle sticks for two people, Youch! (The history of why a few people did things like getting programs tattoed on their bodies as a form of political protest is pretty interesting, if you're not familiar with it, the basics is that this tiny 3 line program was considered a dangerous "munition" by the US government, and was thus illegal to export. Nowadays you just have to mail a copy to the CIA or someone before exporting it; OTOH I think my DVD decoder T-shirt is still illegal.) Anyway, I wonder how to represent this acheivement in my resume? "Munitions tattoo artist"?

22 April 2006

Joey Hess: re: automating debconf setup

Steve:
joey@dragon:~>sudo debconf-get-selections  grep debconf/
debconf debconf/priority        select  high
debconf debconf/frontend        select  Readline
debconf-get-selections is the tool you are looking for. If it doesn't seem to work, might I suggest a bug report or email, or at least some example of how it doesn't work rather than a vague, hard to reply to blog post about it? Argh.

Joey Hess: ugh&#44; mailman

Just wasted 3 hours fighting with my mailman installation, which had, unnoticed to me, stopped processing any mail two weeks ago. It seemed to be either getting completly stuck on some messages in the outgoing mail queue -- strace and ltrace showed it was in some kind of tight loop processing their contents. So I solved that by removing some 900 of the 1000 queued messages (the ones that were messages about bounces, held messages, and spam), then it processed the rest of the actual important messages quite quickly. I think I've had enough of mailman. The web user interface is great for letting nontechnical users admin their own mailing lists, but every time the package upgrades I seem to have to manually delete cruft out of the queue; the spamassassin integration sucks, it doesn't allow configuring it on a per-list basis; its mail archiving is sucky, especially its attachment handling; it seems to shunt random messages constantly for no apparent reason; mailing list admin is unending drudgery of processing mails that it thinks are spam; this is at least the third time in the past year that it's just died for no apparent reason; and in general it seems the be designed with the idea that there will be a human constantly in the loop babysitting things. Oh and it still defaults to sending stupid monthly password reminders in cleartext. Guess I should try Enemies of Carlotta or something, ezmlm used to work fine w/o handholding back when I used qmail.

20 April 2006

Joey Hess: going to debconf

Well, I finally bought my plane tickets for DebConf6, I'll be there from May 11th-23rd. Yeah, I put this off a bit too late, prices are still reasonable to Mexico from the US though.

18 April 2006

Andreas Barth: Sarge r2: Done

The point release of sarge is done. Wow. Thanks to all the people who helped much to make the transition from Joey Schulze to Martin and me easier, and thanks to Joey for his long service as Stable Release Manager. An official announcement about the point release will follow.

14 April 2006

Amaya Rodrigo: English Muffins

During the weekend, while I was in Mallorca, Joey Hess wrote an email to me in quite a hurry, he was coming to one of the Extremadura Sessions and needed a place to sleep at in Madrid. So, of course, due to my legendary hospitality, I happily accepted having him over. Franzi, Simon Richter s GF joined us, and so did tbm, who we had not welcomed to Spain yet. We set up a nice little dinner in order to properly celebrate Joey s 30th Birthday. OMG, I am also older than Joey Hess! Bummer.

I just asked him to bring some English Muffins, I got the standard answer:
> Please bring English muffins with you :)
You like (American) English muffins? :-)


Same as Erinn told me on IRC when I asked her to bring some to Mexico in exchange for vegan Allioli.
<Amaya> helix: english muffins!
<helix> Amaya: I don t think US english muffins are any good, but I could be wrong


WTF is wrong with English Muffins? They are my favourite breakfast, but I must acknowledge that not having an oven to slightly roast them into sucks :(

Anyway, I will take a bus really early in the morning tomorrow to join the Extremadura crowd. And I will start a little Staying at Amaya s HOWTO . It has been Holger, Miriam, Mooch, Hanna, Tuukka, Lars, Joey Hess, Franzi and Simon so far since I rented this small, run down attic that I call $HOME. That s less than a year :)

Joey Hess: debian nslu2 improvements

Here at Extremadura I've been using tbm's serial-console equipped nslu2 to improve Debian's nslu2 support. I've just uploaded version 0.10+r58-2 of nslu2-utils, which amoung other things supports generating usable initramfs images, and flashing the debian kernel and initramfs to the slug when the kernel package is upgraded. Once integrated into debian-installer, this will improve the installation precedure described here, avoiding the need for the second upslug2 run.

13 April 2006

Joey Hess: peahens

There are some peahens in a pen in the little park by the university here in Jarandilla. Why sit at home in the sun at home and watch a peahen when I can do the same in Spain eh? Oh well, back to work..

12 April 2006

Joey Hess: a random thought

If you base any opinon about something in Debian on the presence of a cabal, your conclusion will be fundamentally incorrect.

Joey Hess: 30

Well, this will be one birthday I'm sure to remember. After all the rigors of transatlantic flight I arrived in Madrid just as my clock rolled over, spent a scarce hour and a half trying to finally get some sleep and then out into the evening to see the city. I had less than a day in Madrid, but I feel I've met my tourism quota walking thru the park and all around downtown: Fountians, drums, monuments, boats in the lake, famous steets, robot dancers and the jugglers in the square, strange cricket-sound balls. Amaya's hospitality is a force to be reckoned with (as are her cats), and there's a great group of debianistas here. Dinner ran late into the night, and I was lucid for most of it despite lack of sleep, and thanks to their brilliant jet lag amangement, woke up bright and early for the next leg of the trip. In the bus to Extremadura now.

10 April 2006

Joey Hess: libacpi

Hmm, is there still no good general-purpose C library for pulling info out of /proc/acpi easily? I'd have thought we'd have one by now, but currently the closest thing I know of is my own acpi.c not-quite-a-library. Seems weird that there's a libapm, but no libacpi when the acpi info in /proc is so much harder to parse than /proc/apm (especially if you want to be somewhat efficient about doing so). My acpi.c kinda wants to turn into libacpi, but I kinda don't want it to. (Maybe something like HAL is how we're supposed to deal with this stuff these days?)

4 April 2006

Gunnar Wolf: On Daylight Savings Time

Joey Hess blogs about possible dangerous ways to exploit the daylight savings time. Well, for the tenth year in a row (if I am not mistaken), we central-Mexicans can proudly announce we are GMT-5. When I was a kid, we were always told that daylight savings are a very important way to save energy in non-tropical areas, such as the North-Western states, USA, Canada and Europe. We understood that, as tropical beings, we didn't have to worry about that, as it would have neglegible effects for us.
Ten years (eleven?) ago, this changed, and we became first-class world citizens, together with the emotion of shifting the clock's hands twice a year. Of course, we all did stupid things once or thrice - The first time we got back to GMT-6, I moved to GMT-4 instead. We were laughing at the fools who forgot to move the watch. I went to the movies with Nadezhda, and was confronted by a less-than-amused clerk that had to explain the same to too many people along the day. At least he smiled when he noticed we were stupider than most.
Well, today I am a big fan of daylight savings. I simply like having sunlight up to 20:00, sometimes even 21:00 - But I have reversed the old logic I was taught at school. We Mexicans have very little variation in our clocks - We go from maybe 11 to maybe 13 hours of daylight comparing Summer and Winter. Ok, make it 10 and 14, to make it sound more dramatic. Having the sun raise at 6AM makes sense, no matter what time of year it is. Most electricity is spent in the early night (8-10PM)... So it makes a lot of sense. Even for the people in the USA, maybe even Canada, and most of Europe. But...
Why do Nordic countries adhere to daylight savings? I mean... You vary from 4 to 20 hours of sunlight a day - What difference does one hour make anyway? Why follow the hassle we all regular humans have to go through? I can't imagine people in Narvik and Rovaniemi trying to squeeze that little glimpse of sun they have during the winter, and trying to align their sleeping time to the exact the sun is only half-visible in Summer.

2 April 2006

Joey Hess: daylight savings crime

(Hmm, it's time for my bi-yearly DST rant. Here goes.) One of the many lame excuses given for daylight savings time is that it cuts down on crime, since more crime occurs after dark. This might be true of violent crime, since fewer people will be out after dark, but what about other crimes? It's interesting to think about ways that criminals could exploit possible confusion, broken data-keeping, etc around the discontinuity caused by daylight saving time changes. Q: Where were you on the night of October 30th 2005 between 1 and 2 am?
A: Well, I was at this bar with my friends that whole hour, I have an alibi. Ok, that's a bit easy to catch (although there's a real life story of a similar trick being used to avoid manslaughter charges), but what about more subtle cheats? All-night workers last night could pretty easily cheat their employer out of an hour's pay, for 2 am to 3 am. Conversely, if they're not careful, their employer might cheat them next fall. The only people I've ever heard discuss this are all-night radio jockies, but those guys love to hear themselves talk enough that an extra hour to do it in is not a problem to them. I'll bet that a fry cook would rather get some extra sleep. But this is still small, er, potatoes. For really nice exploits you have to take advantage of explicit failures of technology. One such failure is in the way Windows manages daylight savings changes. Unlike Unix, which elegantly flips between two time zones, such as EST and EDT, but still keeps counting each second from Jan 1st 1970, Windows actually changes the clock. Despite a brainwashed nation that has been taught that moving the hands back or forward is the right thing to do, in the world of computers, it's bloody stupid. A google for "daylight savings windows bug" turns up a million or so hits caused by this behavior, describing problems like this:
Windows reports erroneous file modification times, which change according to daylight savings.
And this:
When Windows NT automatically adjusts for daylight savings time, the times on files on Windows NT file system (NTFS) partitions and the events in the event logs are retroactively shifted by one hour, even though the files and event records were created before the daylight savings time change.
Now, I think there's all kinds of potential for criminal fun in file modification timestamps being wrong, and log files having innaccurate times. Throw in the odd backup that fails to run due to being scheduled to run at a time that never exists, and the time slip begins to seem like an ideal time for shady activities. (And a very poor time to be in a hospital hooked up to windows-controlled life-support equipment. Double-dose of morphine, anyone?) True story: A year ago I was at a fancy hotel, which was burgalarised. This hotel had electronic locks on the doors, which logged when the doors were opened, and by whom. The techies whose possessions were stolen were able to use this information, plus what they knew about when the theft must to have occurred, to narrow down the suspects to one or two hotel employees who opened the door at the right time. If those logs went to a machine running windows and the theft occurred during England's change to DST, it's quite possible the logs would have been useless. It's not too far from this kind of scenario to something suitable as an entry in Schneier's movie-plot terrorist threats contest. Although it's worth noting that the airline industry deals with timezone changes all the time, so if they have any sense, the DST change is not an exceptional event for them. One of the interesting things about plane travel to me is the way a plane in flight between timezones is a space in which no defined time zone exists. But I digress.. I suspect that the real source of fetile bugs related to DST is in the interstices between operating systems where programs have to deal with the peculuarities of multiple OSes to behave correctly. Such as this unison/linux/windows bug. Put different systems together and they fail in myriad ways, and there's room in the cracks for criminal activity. Thing is, I don't have a very good criminal mind, at all, so if any of the slightly weak approaches I've detailed above is feasable, it seems to me there must be some terrific scams, techniques, etc, that people who are good at thinking that way, and have the right motivation can use.

Joey Hess: lightning talks update

Well, we have enough lightning talks now to fill the space without anyone having to speak for more than ten minutes. I know I said you have until the 15th to make proposals, but I sorta forgot that I have to come up with something resembling a paper for this, which will probably be a list of the talks that will be given. And it's due on the 6th. So if you have been thinking about proposing a lightning talk, I suggest at least emailing me soon even if you're not ready to add it to the wiki page yet, so that I can pencil it into the schedule. I've marked the talks that I am currently planning on accepting as "accepted" on the wiki, but this is still tenative until the 15th.

30 March 2006

Joey Hess: package news feeds

I've added news feeds for moreutils, debhelper, alien, wmbattery, Words2Nums, sleepd, pdmenu and filters. New releases will be automatically posted to them using a wikiannounce program I threw together, which generates a markdown file that is fed to ikiwiki. Other news will be posted as I see fit.

29 March 2006

Joey Hess: css

I realise this is a bit late in the game, but I've finally "learned" CSS. In quotes because I don't know an appreciable number of the available elements and, like probably a lot of people, I just cargo-cult around until I find something that works. My use of CSS is intentionally very miminal (see html version of this page). It's amazing how easy it is to find bad docs about CSS still that encourage using absolute positioning, per-pixel layout, fixed page size, etc, and how hard it is to find answers to simple questions like "how do you embed a simple form in a horizontal list-based CSS navbar". Oh well.. I really hope that I'm about done with the web features side of ikiwiki, now that it uses CSS, is valid XHTML 1.0, and even has full text search thanks to Hyper Estraier.

26 March 2006

Joey Hess: blog moved

I've now moved my blog into ikiwiki. I think that I've managed to do this without breaking (many) permalinks to old blog posts, and without flooding any aggregators. .. Well, almost. Some of you may have seen a double post, which was due to me not having an url set right the first time.

Next.

Previous.