Search Results: "ag"

21 November 2005

Ari Pollak: Dean Grey - American Edit

This (Full download here) is going to be the talk of the blogosphere for at least a good couple of hours.

Daniel Burrows: A type-system hack

WARNING: nothing in this post has been implemented or tested, except maybe at a minimal proof-of-concept level ("it compiles!"). It's just some musings on how you can make the computer do your work for you.

I was reading a defense of Hungarian notation when I started to get a familiar notion tickling the back of my brain. The author was explaining that the original idea behind Hungarian was not to replicate type information in variable names, but rather to include some sort of usage information: one example would be giving a string value holding a value that is untrusted the name utName. While it's more reasonable than lpschwzMyVariable, this suggesion made me suspicious that the author was really hacking around suckiness in the C language.

Tagging values with usWhatever and then verifying that you never mix usBlah with Blah isn't just tedious and error-prone, it smells a lot like doing work by hand that the computer ought to do for you. It seemed to me that it ought to be possible to "tag" unsafe values at the type level and let the language's type-checker sort things out. The simple approach is of course to define something like this:

newtype Unsafe t = Unsafe t


NB: I'm using Haskell because it was the first language that sprang to mind when I thought "type system hack".

This newtype declaration lets you attach an Unsafe tag to any type. Presumably the type signatures of routines that return untrusted data (such as a hypothetical getHTMLFormValue or a routine to retrieve previously entered form values from a database, if they aren't sanitized first) should be modified; for instance, if the signature of getHTMLFormValue was

getHTMLFormValue :: HTMLForm -> String -> String


it should instead read

getHTMLFormValue :: HTMLForm -> String -> Unsafe String


To create a new Unsafe value you simply apply the Unsafe constructor to the value:

getHTMLFormValue = Unsafe (oldGetHTMLFormValue)


To unwrap Unsafes you use pattern-matching:

let (Unsafe unwrapped) = wrapped in ...


So, this sort of works, but it's unsatisfying on several levels:



While it may not be perfect -- it only makes sure that you don't accidentally violate safety, and doesn't stop you from deliberately doing something dumb -- this approach feels a lot safer to me than ad-hoc mangling of variable names. I used Haskell because you can do type hacks fairly easily in it, but I don't see why you couldn't play a similar game (albeit much less conveniently) in C++, or even in a dynamic language like Python. Of course, Python would give you runtime errors about safety violations instead of static ones, but that still beats getting runtime security holes.

I would add as a hypothesis that it should be possible to express just about any variable-name-mangling technique whose goal is to "make wrong code look wrong" in the type system, provided your type system doesn't suck; and that doing so is preferable to doing it manually, since it means that a lot of repetitive error-checking can be handled by the computer. And since the computer is better than you are at verifying formal invariants, forcing it to handle them whenever possible is always a good idea.

Robert McQueen: When exactly is week 1 of 2006?

According to Jeff, I’ve become a smelly Nokia contractor (the reason he stayed with Luis instead of at Mako’s place in Boston, although I’m sure he was referring to Rob Taylor causing the smell). Part of this entails exchanging project schedules with various managers, where time is often talked about in terms of numbered weeks of the year, like: Foo task will be completed by week 42 of 2005. We ran into some problems with varying definitions of these numbers when exchanging schedules with people running on different platforms. Then we realised that even the software we’re using seems to have different ideas about what’s going on too… The result is a whole world of pain, and at best causes extreme confusion when we provide documents referring to both dates and week numbers which are inconsistent with each other in their minds, and at worst makes our managers think we’ll have things done a week sooner than we do. I’m not using Evolution at the moment for calendaring stuff, so I can manage if I remember to add one to all my 2006 week numbers when interacting with managers based on GtkCalendar and Planner, but this all seems to be horribly broken. I really don’t want to have to do this for the whole year.

Erich Schubert: Are social network services worth a dime?

Social network services (Wikipedia) such as Friendster, Linkedin, OpenBC are one of the top "web 2.0" hypes. I'm very sceptical about them, because I don't see the real benefits for me. (I'm referring to the pure "keep contact with your schoolmates" thing, not stuff which does much more such as serious blogging - e.g. livejournal - or planets such as planet.debian) The typical use case I've heard is much like "Imagine you have made a cool product, and want to sell it to some company. Now you can search for people at that company you know (or a friend of yours knows) and call them, this will help you get a feet in the door", as well as "you can use it for finding a job". I think that's bullshit, and to a large extend because I'd neither be willing to update my information in these services all the time, nor would I be willing to help just everybody here - most likely I'd just delete and ignore the email, and be really annoyed by a call (I'm annoyed by calls anyway)... It's not that I despise social networking per se. But I despise quantity instead of quality. I care a lot for my friends, and I'm in several groups grown around some technical issues; when someone is looking for a job I pay attention for suiteable offers around me; if someone needs something else I do try to help. But I'll only do that for people I'd really call friends. If you just want a quantitative number, last I checked my ranking was #36 in the global PGP keyring, meaning I have the 36th shortest average distance worldwide to verify a cryptographical key. So what? Of course I also tried one of the social networing services given above, joined a group for a university I was at. Even before the adminstrator of that group added me, I got an "invitation" by one "linkaholic". I rejected it, and even considered to report it as "spam" to the operator. I did indeed know that person, but all we had was a flamewar on a mailinglist, and I found him highly unsympatic. So why should I add him to my network? Where are the benefits for me (except that I'll maybe get an annoying call sometime in the future, when I could have forgotten about him)? No, in my opinion this social networking hype is built entirely on a hype, basically saying "look how well-connected I am, everybody knows me, and I know everybody", even when these relationships are only present on the computer, without anything worth being called a "relationship" behind. The flame-war I mentioned earlier was btw. on the topic of Resume/CV books. Which are even worse than this social networking thing, IMHO.

20 November 2005

Erich Schubert: Paul Graham on Web 2.0

I have high respect for his writings, all I read were worth it. He just wrote about Web 2.0, and I find this a very interesting read. I agree with him here, especially with the line "Web 2.0 means using the web the way it's meant to be used." Ajax is not fundamentally new. It's just JavaScript. It's still slow, has sometimes usability problems, and often just doesn't work right... And Ajax certainly isn't worth to be called "Web 2.0"... What has been reappearing this year are "third party hacks" on the net. That was also the biggest thing about Google Maps: the API - others could use it (for free) to make other cool stuff with it. This is part of what Graham calls "Democracy" and of what he calls "Don't maltreat users" (especially not "lead users" and developers if you want them to adopt your stuff!) But basically I still don't think we're at anything fundamentally new here. The API stuff for example makes me think of OpenSource vs. Freeware... getting stuff for free is nice, but being able to modify it to exactly fit your needs is priceless. ;-)

Aigars Mahinovs: Another tiny note - why is it so that all the Pyth...

Another tiny note - why is it so that all the Python wrappers for Gnome and Freedesktop related things (GnomeVFS and DBus in my experience) have absolutely no API documentation !!! PyGTK has a nice set of documentation for GTK work, but it doesn't extend beyond that, sadly. When I was writing SBackup, I had to resort to using Python build-in function dir() to show me what names the gnomevfs module exported and guestimate my way from there. That was ugly as hell, but worked. Now I am trying to find any information about that "new" DBus thing that everyone was so excited about approximately a year ago - I can only find a few blog posts about rewrites of said API and a few simple programs that do not even work with the rewritten API. I mean - I can understand not having documentation for internal functions of a desktop program, but not having a public API document for a critical library of freedesktop.org desktop infrastructure - that is just plain dumb.

Edit: It seams that there is some kind of dbus tutorial with Python API section. I do not know, why it didn't appear on first 10 pages of Google search for "dbus python" or "dbus python API", but I hope this linking will help that a bit. Also, we will see, how useful it actually is - the rest of the document itself is quite cryptic to me.

Edit2: I am impressed, the Python chapter is definitely written by someone different from those that wrote the rest of the dbus tutorial - this part actually makes sense, is very detailed and hand-holding when it is needed. i got almost all my questions answered. Thanks to whoever wrote that!

Matthew Palmer: The Fun Never Stops With Ruby

Well, there's nothing like posting a really rubbish program to your blog to find out the right way to do it. Firstly, Philipp Kern has come up with another, even shorter version than his version I posted in the update to my original Ruby post, this time blowing me away with the strangeness of explicit casts in Ruby. Apparently, casting an input stream to an array produces an array with one-line-per-element, as in this example:
 STDIN.to_a.sort_by rand .each l puts l 
As Philipp warns, however: "Ruby is full of fun and power; one must watch out that the scripts remain readable". For a fairly toy example, this solution is still fairly readable, however I can see hair growing on this thing if your program grows large. Next, Pierre-Charles David showed his qualifications for becoming a co-author of the next edition of the Pickaxe (AKA "Programming Ruby: The Pragmatic Programmers' Guide"), with his example and explanation. He's kindly given permission for me to reproduce his e-mail in it's entireity, since it's too good to chop up:
Here is the shortest and most readable version of your "randomize stdin" script I can think of:
  #!/usr/bin/env ruby
  print ARGF.readlines.sort_by   rand  
 
ARGF is a special variable representing either stdin or, in the case where file names are passed on the command line, the content of these files (think of Perl's <>). ARGF behaves like an IO object (although I think it is not one). In particular, it responds to the #readlines method which splits the receiver's content into lines and returns an array. In other words,
  lines = ARGF.readlines
 
is the idiomatic way of doing
  lines = []
  while line = gets() do
    lines << line
  end
 
in your example. The next part (sort_by) uses a new form of the sort method, which I think is not documented in the Pickaxe. It implements the Schwartzian transform technique. In essence, a random number is associated to each element of the array, which are then sorted based on this index. As a general style remark, note that although Ruby supports "while" and "for x in y" loops, they are rarely used, in favor of iterators and/or higher order methods. For example, to gather all the input lines in an array without using readlines, one might write
  lines = Array.new
  ARGF.each_line    l  lines << l  
 
or
  lines = ARGF.inject([])    lines, l  lines << l  
 
Hope it helps, and welcome to Ruby!
Pierre, your explanation definitely helped, and I hope it helps others too. The third person to help me out is Decklin Foster, through a post in his blog. What particularly caught me about his solution was the neat demonstration of another feature of Ruby which I think I will really learn to love: the ability to dynamically add methods to an existing class. "Aiee!" I hear all the purists scream -- and I can see the potential for severe misuse, too. But, since every good idea seems to get deeply perverted, we may as well have some real useful features to pervert while we're at it. Decklin has the clever idea of adding methods to the Array class that shuffle the elements of the array in a random fashion. His code is beautiful in it's simplicity:
 class Array
    def swap!(a, b)
        self[a], self[b] = self[b], self[a]
        self
    end
    def shuffle!
        each_index do  i 
            j = i + rand(length - i)
            swap!(i, j)
        end
        self
    end
 end
He then goes on to rewrite my bumbling example in probably the most comprehensible manner I've yet seen:
 STDIN.readlines.shuffle!.each    line  puts line  
Decklin writes, "Now that is cool.". I couldn't have put it better myself. My thanks to Philipp, Pierre-Charles, and Decklin, for helping me along the Ruby path. So, two new Ruby Rules for me to live by: Hmm, is it possible that Ruby is nothing more than Functional Programming by Stealth? Aiee!

Martin 'Joey' Schulze: R.I.P. Hubert Kaisser

I was told 90 minutes ago that a friend of mine, Hubert Kaisser, who helped support the projects and community at LinuxTag 2001 in Stuttgart and was present on IRC all the time until last week passed away yesterday.

Benjamin Mako Hill: Nimmer on Creative Commons

Seth Schoen pointed me to this article by Ray Nimmer (not to be confused with the (more) famous copyright scholar David Nimmer). Nimmer is an outspoken advocate of strong copyright and is very skeptical of free software. What is interesting about this article is the overlap between my argument in Toward a Standard of Freedom and the argument made by Nimmer . Nimmer 's subject is the free information movement and he argues against a principled position and a social movement toward freedom. He argues that part of Free Software's maturation can be seen in what he sees as the movement's tendency to look beyond its principles and standards. He positively describes a trend of putting aside core values and principles -- both in terms of the particular values in the FSD, OSD and DFSG and in terms of the method of building a movement around a defined standard of freedom -- as, "an assertion of productive and healthy individualism [that] arguably, reflects an expansion of the core ideas of open source outside the narrow confines of its own limiting doctrines." He holds up Creative Commons as a productive example of how the free information and culture movement is getting beyond their whole doctrine, principles and standards nonsense. If we look at CC as part of a larger free information movement that may eventually start influencing free software, he may be right. Open Source succeeded in separating the doctrine and definitions of Free Software from its principles and ethical arguments. Creative Commons, and others following their example, has now introduced a broader free information movement that has fully excised any fixed definitions of freedom and openness and has even abandoned the strategy of providing definitions at all. This of course, is precisely the argument I made in Toward a Standard of Freedom but it's a little disconcerting to see it made by someone on the other side who then comes to the opposite conclusions. As Seth put it, "Nimmer is saying that CC is doing exactly what you're saying it's doing, except that he thinks it's good because he doesn't like free software!"

Gunnar Wolf: ...So we did it!

Note: When reading this entry, please set your date to 2005-11-10. Delays in the system prevented me from posting this earlier.
I have lived together with Nadezhda for almost ten years - And this month (on November 1st, to be precise), it is ten years we first met on one of the few BBSes we had in Mexico by then - Thanks a lot, Mag, for setting it up - you changed my life in more ways I'd ever have thought!
Over the time, of course, our relation has changed a lot - the first step was telling to other people about each other's existence. The second was accepting we were not together only in between (long story... But I was about to leave the country for good. And I did. But then she followed. And we came back together). Then, little by little, we started settling down, we became a formal couple in the eyes of our families and friends.
We always thought social conventions were silly. We laughed about the prospect of marriage, of having to accept in front of others what we felt towards each other - But anyway, some months ago, we started talking it would be nice to make out of our nice, private relationship something serious and formal to commemorate our ten year anniversary.
Not much was told about it for some months... Until by mid-October we realized we would not make it in time if we didn't hurry - So we went to the Registro Civil at Coyoac n and asked for an appointment with the judge. November 1st is an official holiday, so it was not possible to make it right on the same date - We got the appointment for November 9.
Some people might be asking here why weren't they told about this - Well, first of all, as you can see, we didn't have much time to plan this. Second, we decided to take this formal step, but to have it privately. We went only with my father, my brother, Nadezhda's mother, sisters, our nephews and one long-time friend. We were summoned at 10:30AM, had to wait for the judge to marry some other couples until around 12:00PM, had some nice words from him for ~15 minutes, and went for a nice breakfast in a nearby restaurant with the whole gang.
Oh! Something interesting: We actually didn't know when we were formally getting married. We were called some 30 minutes before the official words to sign some papers, which the judge would later, and privately, certify as valid. The judge just talks, he does not sign anything with us present... But, well, it is a nice moment ;-)
And... Well, here is the proof. It took some days to receive the document, it took me some more days to finally post about it - But finally, our acquintances have been informed of our formal step towards a life together :)

Junichi Uekawa: Hello ptrace, on ppc.

I've started playing with ptrace on my ibook.It is a bit different from what I have seen on x86 machines.First, the test sample that I have had hanging around in my source tree didn't build.It told me there was no PTRACE_GETREGS symbol.This means that I won't be able to read contents of a register,which sounds like a bad news when capturing system calls.I made a bit of research.Following the header files, by including linux/user.h, asm/user.h asm-ppc/user.hasm/page.hlinux/ptrace.hasm/ptrace.hasm-ppc/ptrace.h are included.PTRACE_GETREGS is not defined anywhere.Looking at ppc64 for comparison, it is different but also did not definePTRACE_GETREGS (PPC_PTRACE_GETREGS is defined, which is a bit of an added mystery).Kernel side source is at arch/ppc/kernel/ptrace.c functionsys_ptrace.Looking at that, PTRACE_GETREGS wasn't handled in the switch statement.In arch/ppc64/kernel/ptrace.c, PPC_PTRACE_GETREGS is definedand it seems to be implementing a PPC_PTRACE_GETREGS which looks like functionally what I'm looking for.Looking at that code, it looks really trivial to add that feature,I wonder why it's not there.I don't think ppc32 is overshadowed enough by ppc64 that developmentcould be halted.

Erich Schubert: Hunting the execmem issue on Debian sarge + SELinux

Ok, time to dive into the kernel and find out what "execmem" exactly means:
 /*
  * We are making executable an anonymous mapping or a
  * private file mapping that will also be writable.
  * This has an additional check.
  */
Basically, this appears to be a mmap with PROT_EXEC and PROT_WRITE. Now lets see if I can find where this is used in pthreads, and if I can just remove either PROT_EXEC or PROT_WRITE there... Okay, most likely, this is the offending line:
nptl/allocatestack.c
static int allocate_stack (...
	mem = mmap (NULL, size, PROT_READ   PROT_WRITE   PROT_EXEC,
		MAP_PRIVATE   MAP_ANONYMOUS   ARCH_MAP_FLAGS, -1, 0);
So pthreads stacks are executeable memory by default... but disabling that sounds risky to me... :-(

Ross Burton: Eat And Two Veg

Last night Vicky and myself went to Eat And Two Veg, a vegetarian restaurant on Marylebone High Street, with Eva and Saadia. It's an excellent restaurant with a 100% vege menu, and along with the "pure" vegeterian dishes they also had some mock-meat dishes, such as Crispy Fried Luck for starters, burgers, and sausage and mash. The restaurant is in the style of a 60's diner, and we even got a booth which was great, as we had a bit more privacy. Saadia and Eva It was great to see Eva and Saadia again, it's been months since we've seen Saadia and the last time we saw Eva was in February... NP: Respect, Aretha Franklin

Philipp Kern: Lua Hype

Why is there such a hype around the Lua programming language when there are languages much more powerful around? It it small and beautiful? What makes it superior over something like Ruby? Comments would be much appreciated!

Matthew Palmer: The Other Ruby

One thing I neglected to mention about my recent forays into learning the programming language Ruby -- we've also very recently acquired a puppy by the name of Ruby. Our Cute Puppy The two are slightly interlinked. I've been planning on learning Ruby-the-language for a while, and we started planning on getting a puppy about a month ago. We were, of course, going through the name-picking, and it was my lovely wife who suggested the name Ruby. I thought it was a nice name, and we stuck with it. At the same time, I decided to dedicate my learning of this new language to our beautiful new pup. The only question we really have now is: what breed is she? The official word is "Staffordshire Bull Terrier Cross". But, of course, cross what? Anyone want to take a guess? We've put up a gallery of photos, and feel free to e-mail her and tell Ruby what breed she is.

Erinn Clark: quod libet

Joey Hess blogs about how nice Quod Libet is. In general, I agree with him. I use it at work now, though I've historically preferred cplay as it's nice and simple and does what I want. Due to the popularity of Audioscrobbler and my curiosity about it, I decided I'd try out some of the clients that support it. It was sort of a rude awakening to discover that QL won't actually work on AMD64, which I use at home. The reason for the bug not being fixed (or RC for that matter) is really sort of funny in a sad way. EDIT: Hmm, that didn't take long. The bug's now fixed (of course, not due to my whiny blogging, but rather due to Steve upgrading the bug to RC.) Something valuable to take away from this: amd64 bugs that qualify are RC and should be treated as such. I'd probably still hesitate to upgrade severities in the future without input from an RM, but at least now it's not a questionable situation. Also, yay, now I can use QL at home. Thanks for the quick fix, Joe. Thou ninja'st. :)

Andreas Metzler: things I did not know...

I have just learned that Linux imposes a limit not only on the lenght of the commandline (ARG_MAX) but also on the number of arguments. xargs in findutils 4.2.26 features a fix to respect this limit. I do hope this was the source of bug 313028 which I never managed to reproduce.

Jose Carlos Garcia Sogo: 20 years of MS Windows. 20 years of computers in my life.

One day like today, 20th November, 1985, Microsoft released its shiny new Windows 1.0 which was the first attempt to implement a graphical multi-task OS in a PC. Do you know how much it cost then? $100 for a license, more or less the same than a Windows XP license costs nowadays.

Microsoft logos. Old and new It is funny to see how things have evolved since then. Being 6 at that time, and PCs not being very common those days at home, I started using a computer at an age of 8 or so. It was an Amstrad PCW 8512, a TV box sized computer which integrated a green screen monitor, two "3" floppy bays and a 9-pin dot matrix printer. It was powered by a 8bit Z80 processor, running at 4MHz and had 512KB of RAM and no ROM at all. Main software was LocoScript, a powerful word processor. It could be controlled by drop down menus at a top toolbar, and initial screen was a file manager, in which you could manage those text files in the floppy you booted from or a floppy in the other bay. It had even support for some kind of multiuser support, as you could declare in each floppy up to 7 user areas, with area 0 being a common root. Also, it had support for limbo a place for deleted files. Although LocoScript didn't need a separate OS to work, CPW 8512 could also run CP/M OS, which added programming capabilities (Maillard BASIC) and support for spreadsheets and databases, along with some games as Batman. After using this system for a long time, my first PC was a 486, running the new Windows 3.1 and later 3.11 for Workgroups version. I even installed there a Windows 95 when it was released, and managed to create a partition in the only 170MB HDD it had to install a test copy of IBM's OS/2 Warp that came in a CD bundled with PC World magazine. Some time later my parents bought a Pentium 166MMX running Windows 95. I was 18 by then, it was 1997, Internet was starting to be widely spread and used, and after a couple of months at University I was installing my first Linux copy, which was a RedHat based version. During next three years I installed different distributions, as they were released with newer software and you could get them in a CD with a magazine. Installing Debian Slink and having an Internet connection available at my Student's Residence at the same time made me be able to participate in mailing lists, send bug reports and download upgrades. I discovered a new dimension in using Linux: collaboration.

Matthew Palmer: My First Time Mining Ruby

I'm not usually a grand fan of the latest and greatest fads'' in programming. The only C# I know is the black key next to D#, and I loathe coffee. An IDE in the hands of a poor programmer will still result in crap code. While I do think that agile methods (such as XP) can do well in certain development environments, I certainly don't subscribe to the notion that XP can solve all the world's software production ills. And so on. I do know quite a number of programming languages, and tend to pick up new ones out of intellectual curiousity (although Ada did put a severe dent in that habit) or because a bit of research tells me that the language might be particularly suitable for a particular task (although I've since learned that the actual purpose of PHP isn't dynamic websites so much as bringing the security levels of Linux boxes in line with Windows-led industry standards). I also learn languages because I want to hack on projects written in them, which is motivational, but not a particularly good way to get a deep understanding of a language. Why all of this introspection in a blog? So you have the background to understand how everything about Ruby is different for me, including how I'm getting started using it. I have no interest in hacking on a Ruby-implemented project, and -- although Rails proponents give me an impression similar to that of a horny teenager with a shiny new unlimited broadband account -- I don't have any particular use for Ruby at the moment (I want to write less webapps, FFS, not more!). So, why the hell did I fork out $90 hard-earned South Pacific pesos for a copy of "Programming Ruby: The Pragmatic Programmers' Guide"? A couple of reasons: I'm glad I got "Programming Ruby". The book is superbly organised, reads very easily, and gives you all of the love as and when you need it. Surprisingly for me and a technical book, I read the first section of the book "cover to cover". By the end of it, I came away with a real (if naturally superficial) understanding of the language, and a feeling that I was ready to tackle the world in Ruby. It is a sad state of affairs when the first piece of new programming you can sink your teeth into is some four days after finishing your initial studies into a language, but this afternoon I wrote my first Ruby program in anger. It's quite simple -- just take stdin and rewrite it all on stdout with the lines in a random order. But I wrote it in a new programming language, in about 3 minutes, with nothing more than ri (Ruby's answer to firing up python and typing help(xyzzy), more or less) and "Programming Ruby". I think I also produced a suitably reasonable result:
#!/usr/bin/env ruby
lines = []
while line = gets() do
	lines << line
end
	
while ! lines.empty? do
	idx = rand(lines.length)
	puts lines[idx]
	lines.delete_at(idx)
end
(Any Ruby afficionados out there, feel free to e-mail me and tell me what egregious sins I've committed). I think it looks reasonably neat and clean, it's certainly simple, and the use of real Object Orientation makes for a certain readability (I think the method call lines.empty? is particularly cute, although I did initially consider the use of a question mark in a method name to be a crime against humanity). So, will I be using Ruby more in the future? I think so. There are some features in Ruby which I'm hoping to get a lot more cosy with -- the idea of "blocks" looks particularly interesting, and I don't think the utility of languages that have been designed, top-to-bottom, to really live the OO ideal has been explored enough (you SmallTalk bigots can stop glaring at me now -- really, I mean it -- stop it!). It's far too early to tell whether Ruby will become my "go to" language for random development tasks, but anything that stops the nightmares (where I start thinking about using PHP as a general scripting language) cannot be all bad. And, if I continue to make new webapps, Rails will probably come in handy. Update: HTML <pre> tags don't like having < inside them unescaped. Also, Philipp Kern pointed out that the Ruby documentation browser is called ri (not ir as I originally wrote). Philipp was also kind enough to provide a much shorter version of my original script, which shows the power of Ruby so much better:
 lines = []
 STDIN.each_line    line  lines << line  
 lines.sort_by   rand  .each    line  puts line  
Now tell me that isn't a language worth using!

Andrew Pollock: [geek] Debian saves the day again

I'm already over punching in over thirty numbers to call people back home with the prepaid phone card I've bought, so I did a quick apt-cache search dtmf, happened upon dtmfdial, and in five minutes had a quick and dirty shell script making my laptop do all the button pushing for me. So as to not drive anyone in earshot insane, I just hold the cordless phone's microphone to my headphones. Of course, if the phone had a speed dial, all this would be unnecessary.

Next.

Previous.