Search Results: "sto"

27 September 2006

Lars Wirzenius: Random thought: *MY* iPod works with Linux

ESR famously claims that iPods don't work with Linux. I beg to differ: I bought a used one yesterday from a friend, and it worked the first time. I put in some MP3s on it with gtkpod, no problems. I don't know what the level of automatic desktop integration, playlist syncing, and so on is, but it was quite easy to put music onto the device. I then put Rockbox on it. That process is not entirely streamlined; in fact, it is not something I'd encourage a normal user to attempt. It wasn't so difficult for me, I only managed to wipe out one other unrelated hard disk's first partition. Having said that, the process was pretty straightforward. Rockbox is ugly, and the font is too small, but it seems to work well enough, and it doesn't require using any special software to add or remove audio files, it's just a USB mass storage device.

Dirk Eddelbuettel: Announcing 'littler'

Earlier today, Jeff announced our new toy r (aka 'littler') with this post on the r-help list. What is 'littler'? We summarized it briefly in the post and on our respective or pages:
GNU R, a language and environment for statistical computing and graphics, provides a wonderful system for 'programming with data' as well as interactive exploratory analysis, often involving graphs. Sometimes, however, simple scripts are desired. While R can be used in batch mode, and while so-called 'here' documents can be crafted, a long-standing need for a scripting front-end has often been expressed by the R Community. littler (pronounced 'little R' and written 'r') aims to fill this need. It can be used directly on the command-line just like, say, bc(1):
	$ echo 'cat(pi^2,"\n")'   r
	9.869604
http://ftp-master.debian.org/new.html Equivalently, commands that are to be evaluated can be given on the command-line
	$ r -e 'cat(pi^2, "\n")'
	9.869604
But unlike bc(1), GNU R has a vast number of statistical functions. For example, we can quickly compute a summary() and show a stem-and-leaf plot for file sizes in a given directory via
	$ ls -l /boot   awk '!/^total/  print $5 '   \
		 r -e 'fsizes - as.integer(readLines());
			print(summary(fsizes)); stem(fsizes)'
	   Min. 1st Qu.  Median    Mean 3rd Qu.    Max.
	     13     512  110100  486900  768400 4735000
	Loading required package: grDevices
	  The decimal point is 6 digit(s) to the right of the  
	  0   00000000000000000011112223
	  0   5557778899
	  1   112233
	  1   5
	  2  
	  2  
	  3  
	  3  
	  4  
	  4   7		
And, last but not least, this (somewhat unwieldy) expression can be stored in a helper script:
	$ cat examples/fsizes.r
	#!/usr/bin/env r
	fsizes - as.integer(readLines())
	print(summary(fsizes))
	stem(fsizes)
(where calling /usr/bin/env is a trick from Python which allows one to forget whether r is installed in /usr/bin/r, /usr/local/bin/r, ~/bin/r, ...) A few examples are provided in the source directories examples/ and tests/.
At least one shortcoming already became apparent: by calling it r to not trample on the real R binary, we obviously overlooked that there are certain operating systems on which case is ignored -- ouch. So Mac users may have to install it as a littler binary. Other comments, as seen in the mailing list thread, are mostly supportive. littler can either be downloaded from either the Vanderbilt BioStat Wiki or my local archive. Also available is SVN access via
	svn  http://littler.googlecode.com/svn/trunk/ littler
Debian users shall get it via apt-get install littler as soon as it leaves Debian's NEW queue. In the meantime, the configure && make && make install three-step works for us under any of Debian testing, Ubuntu Dapper, OS X, and with both R 2.3.1 and the pre-releases of R 2.4.0.

26 September 2006

Evan Prodromou: 4 Vend miaire CCXV

In all the fuss over the last few days I haven't mentioned that our friend Jani Patokallio has been in town this week. Jani is a longtime, dedicated Wikitraveller who's been instrumental in the success of the site; his dad is the Finnish ambassador to Canada so he gets the occasion once in a while to be in our neck of the woods. It was great to have him here. First, it was good because we finally managed to go out to Maamm Bolduc, the fantastic nearby diner/restaurant with the great poutine that I mentioned in Journal/20 Prairial CCXIV. Great according to montrealpoutine.com, that is. And I have to confess: it was an incredibly good poutine. Maj and I got the v g , which was rich with fried mushrooms and peppers, and Jani got the bourgignon, full of wine and beef. I think we all left satisfied. We also managed to head out to Chu Chai, the Thai restaurant on rue St Denis with all the fake meat. Jani brought his brother Miko who's at McGill right now, and they didn't seem to mind the tofu and seitan and stuff, so it must be good. I also had showed Maj the Debian:HugAFinn game, and we resolved to earn some points while we had two Finns in a relatively captive situation. I think both J & M were nonplussed by our hugging advances, but once they learned that it was in the interest of gaining points, they acquiesced stoically. Fine people, the Finns! tags:

Thanks Matt Matt Brubeck pointed out a 7-line shell script to fix the ssh UI problem I pointed out on Journal/2 Vend miaire CCXV. At least I think it was Matt -- he didn't sign his comment. This makes the second time in the last week or so that someone else has edited my WikiBlog. I guess it's a good thing, but it's making me think I need to work out some formal way to do commenting. tags:

Biella Coleman: The Long Fire Of Political Action

All the soarings of my mind begin in my blood.
-Rainer Maria Rilke I have made it back from NYC after a pretty intense few days spent at the Open Minds Conference and Icarus-hosted workshops, Get Your Freak On. Both were incredibly interesting and I felt the ambivalent rush of excitement and fear that follows the prospect of working on a new project. While I have spent some time researching critiques of psychiatry, I have not spent all that much time with the people involved, academically and personally, in the various movements. And there is nothing like seeing in the flesh and blood some very passionate political work to get the intellectual excitement brewing. The first time I went to a survivor conference and protest I was living in San Francisco, deeply involved in my hacker research. I learned about the movement from a civil libertarian John Gilmore, who drew inspiration from psychiatric survivors to develop his free speech arguments for drug legalization. I had never heard of them and was intrigued so I naturally poked around the web. And I was fortunate to find out that their conference was being held the following weekend less than 10 blocks from where I was living at the time. I made time to go and unsurprisingly, it was a powerful event, perhaps the most stunning conference I had ever been to. There was something awfully inspiring about a political movement in which the members had experienced heavy doses of trauma, often through heavy doses of “treatment” and yet found the energy, will, and life to engage in political action, and in a society that does most everything to dampen the fire of politics. This weekend was no less inspirational. Even at the academic conference, the personal stories of trauma, survival, and the complex ethical decisions of choice in a landscape dominated by one medical model, erupted frequently. These were important eruptions that sometimes probably for some felt out of place in an academic setting where such outpourings are discouraged, buried deep away never to disturb the calm and rationality of talks. But without them, the conference would have felt dry, staid, and sterile, which would precisely have been the most disappointing atmosphere to have created for this environment. All the talks were engaging and illuminating and it was great to see and hear many folks working on these topics and especially working to carve out a different political and somatic reality. For me, the talks by David Oaks and Jackie Orr were the most electric and hopefully I will soon get the videos of them as well as most others (as I (tried) to tape most of the conference) up for those who are interested. In the meantime, David Oaks has already
released his talk, which is worth checking out. One of the more interesting parts of the conference was that it gave a clear indication of one of the great successes and strengths of the mad movement, which is its staying power, its ability to survive (even if not necessarily known to wider publics) generation after generation, which is more surprising given that the vitality of so many of the political movements of the 1960s and 1970s, vanished or languished. This continuity was marked by David Oaks keynote speech entitled “Unite for a Nonviolent Revolution in the Mental Health System: What 30 Years in the Mad Movement Have Taught Me” and just by the fact that he and Celia Brown were there, both who have been involved for decades. Beyond that, it was also the new faces, the new groups, that include Icarus, and the
Freedom Center, that attest to the ability for this Mad Movement to thus far escape the cruel ravages of time and its intervention, often causing rifts within and across generations. Sasha Dubrul who gave a talk during the activist panel and founded Icarus four years ago talked about the deep alienation he felt when he first had encountered the rhetoric of psychiatric survivors and, even despite his deeply critical stance against psychiatry. He wanted to create an organization and a message and a place that resonates with our actual experiences of mental illness rather than trying to fit out lives into a conventional framework. It is a message that swoops into many territories that includes a stiff, unrelenting critique of psychiatry and the pharma industry all the while admitting that not everyone can survive without pharmaceutical drugs (and being deeply grateful for this), all the while also providing pathways to alternatives. It is not easy territories to navigate, due to the and cracks and crevices between positions but then again, most of life is filled with these bumpy textures and not a smooth plane free contradictions. If Icarus was born in part because existing organizations did not adequately address existing needs and desires, it did not grow and move away from existing organization but moved closer to them and is now is in alliance with
MindFreedom. And this is key. Difference in a political movement adds vitality, depth, opportunity but this can only be brought into healthy fruition with alliances. Otherwise, deep fragmentation follows, which given the already deeply fragmented nature of our lives, and of the political landscape, can end in political stasis. But so far, the Mad Movement has over years taken “mad anger” to fight a mad system, and given the last 30 years, I am sure will provide many more decadesof mad pride.

Mario Iseli: A lot of things to do

Finally, my relocation is now finished, and I’m “back on to the world”. The world? The whole world? No! I’m definetly not because my DSL-Connection is not yet activated by Swisscom. :-( First of all I would like to do more for Debian, this is poorwise more or less impossible now, except some activity on the mailinglists during work. Then I’m moving a server from a private customer from Switzerland to Germany and setting up VHCS. Then I have also a stack of books I should read, maybe about Squid, Kerberos and Postfix. I have also to prepare a little Website for my grandfather (I will speak to him about it on thursday) and last but not least I should help my parents with relocating their office. This all is a never ending chain -> I wish the day would have some hours more or I wouldn’t need to sleep, I would like best to have more time for all my friends and just to relax. Here in the office it’s sometimes also a hurry, one person has gone and we’re only 3 persons now, and an “administrative officeman” would be very helpful. By the way I’m also preparing my trip to Berlin in December and preparing for my LPI test. Yeah, that’s life, sorry for my inactivity in Debian and other placesm there will be better times in the future where I have more time.

Amaya Rodrigo: Yay memes...

In short: I leech and I sponsor.

amaya@aenima>history awk ' print $2 ' awk 'BEGIN  FS=" "   print $1 ' sort uniq -c sort -rn head -10
    151 ls
     65 cd
     50 mv
     23 debsign
     19 btshowmetainfo
     17 cat
     15 rm
     14 vi
     13 dupload
      9 attach
amaya@aenima>alias   grep attach
alias attach='screen -UxA'

MJ Ray: A note on phone numbers and forms

It sucks that despite (and apparently maybe because of) not being a BT customer any more, they can still delay my new phone line and broadband until a fortnight after moving in. (Ask not how I am online at the moment, for it is truly evil.) It sucks more that online forms for some essential services won't let you register a change of address if you don't have a telephone number. Bad Anglian Water. Bad North Somerset Council. It sucks even more that online forms for Wessex Water try to make you agree to even more restrictive terms than if you use the equivalent paper forms - I'm pretty sure their online terms break the Unfair Terms in Consumer Contracts Regs, but I'm not starting that fight just now.

MJ Ray: That history meme

; history awk ' print $2 ' awk 'BEGIN FS=" " print $1 ' sort uniq -c sort -rn head -10
history not found
Yes, I'm so paranoid/simple that my shell has no external command history store... go rc!

Florian Ragwitz: My most often executed shell commands

$ history 1 awk ' print $2 ' awk 'BEGIN  FS=" "   print $1 ' sort uniq -c   sort -r  head -10
On my laptop:
   1557 vi
    710 perl
    692 man
    661 cd
    648 ac
    513 sudo
    510 grep
    499 rm
    388 ls
    180 wajig
On weedy.perldition.org, my server:
   1967 sudo
   1052 vi
    810 cd
    766 l
    352 screen
    316 perl
    250 ..
    213 wajig
    212 find
    194 rm
.. expands to cd .., l is shorthand for ls and ac is my alias for apt-cache.

Florian Ragwitz: My most often executed shell commands

$ history 1 awk ' print $2 ' awk 'BEGIN  FS=" "   print $1 ' \
   sort uniq -c   sort -r  head -10
On my laptop:
   1557 vi
    710 perl
    692 man
    661 cd
    648 ac
    513 sudo
    510 grep
    499 rm
    388 ls
    180 wajig
On weedy.perldition.org, my server:
   1967 sudo
   1052 vi
    810 cd
    766 l
    352 screen
    316 perl
    250 ..
    213 wajig
    212 find
    194 rm
.. expands to cd .., l is shorthand for ls and ac is my alias for apt-cache.

25 September 2006

Clint Adams: Better than a train galloping across your keyboard

This is no good if you have HIST_IGNORE_DUPS or HIST_IGNORE_ALL_DUPS set.
precmd ()  
  [[ $ #$ (M)$ $ (v)history [1,20] :%w  -gt 10 ]] && figlet Stop typing w
 

Rodrigo Gallardo: Geeky meme

This looks like a ‘planet-acceptable’ meme. My most often executed commands:
$ history awk ' print $2 ' awk 'BEGIN FS=" " print $1 ' sort uniq -c sort -rn head -10 56 cd
49 ls
37 less
35 gnuclient
33 man
32 find
28 apt-cache
25 sudo
24 nice
13 dpkg
So, it seems I spend my time moving from place to place and seeing what’s there. Maybe I should play nethack more often.

Russell Coker: Ethernet bonding

Bonding is one of the terms used to describe multiple Ethernet cables used to form a single virtual network link. This can be done for performance or reliability.

Bonding for performance used to be common when 100baseT was the fastest network technology that was commonly available. In 1999 servers could usually sustain considerably more than 10MB/s so a single 100baseT network interface was a performance bottleneck. At that time I worked with Cisco switches and Solaris machines that had up to four 100baseT links bonded for performance.

Nowadays Gigabit Ethernet is commonly available, most laptops have Gigabit Ethernet on the motherboard. Gigabit PCI cards are as cheap as $35, and Gigabit switches can be purchased for as little as $139. Server hardware is a little more expensive, but it's still quite cheap and commonly available.

Most people don't need more than Gigabit speed, in fact most systems can not saturate a Gigabit link due to poor application design, a slow operating system, or slow disks used to provide the data. So at this time there is little speed for bonded Gigabit networking for performance.

There is still the issue of reliability. Often you want to have two ethernet cards and cables configured so that if one breaks the network won't go down.

One annoying thing about bonding in Linux (in 2.6.x kernels) is that the module has to be loaded separately for each bond interface, and the parameters for an interface can't be changed without unloading and loading the driver (very painful if you log in to the machine via ssh over the bonded interface to do sys-admin work).

The parameters I have in /etc/modprobe.conf for bonding are:

alias bond0 bonding
options bond0 mode=1 arp_interval=500 arp_ip_target=192.168.0.1

This means that if there is no traffic on the link then every 500ms an ARP request will be sent for the address 127.128.129.130 (I used the address of my router but substituted a different value for this blog entry). An ARP request for a machine on the local LAN is a request that will always be satisfied if the machine in question and the network link are working.

The idea is that you have two switches and every computer that matters has two ethernet ports. If one port stops working (broken Ethernet card, cable, or router) then the other takes over.

The special file /proc/net/bonding/bond0 can be used to view the current configuration of the bond0 device.

Below are sample configuration files for Fedora and Red Hat Enterprise Linux to configure bonding:


/etc/sysconfig/networking/devices/ifcfg-bond0:
DEVICE=bond0
IPADDR=192.168.0.2
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
ONBOOT=yes
BOOTPROTO=static
# GATEWAY should be the IP address to ARP ping
GATEWAY=192.168.0.1
TYPE=Ethernet

/etc/sysconfig/networking/devices/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
HWADDR=xx:xx:xx:xx:xx:xx
ONBOOT=yes
SLAVE=yes
MASTER=bond0
TYPE=Ethernet

/etc/sysconfig/networking/devices/ifcfg-eth1
DEVICE=eth1
BOOTPROTO=none
HWADDR=xx:xx:xx:xx:xx:xx
ONBOOT=yes
SLAVE=yes
MASTER=bond0
TYPE=Ethernet


Note that there is nothing preventing you from having more than two devices bonded together for reliability, but I doubt that you really need that.

Adam Rosi-Kessel: Philadelphia Orchestra

The Philadelphia Orchestra just announced the launch of an online store, where they are selling tracks directly from their own website. Following in the tentative steps of MySpace, eMusic, and Yahoo!, the Orchestra is selling unencumbered (i.e., DRM-free) MP3’s. Even better, for a slightly higher price, you can download content in the higher quality (lossless) FLAC format. Performances currently seemed to be priced at approximately $5 for the MP3 version and $6 for the FLAC version. This seems just about right to me. As an added bonus, they’re offering Beethoven’s Fifth in C minor for free. I’d love to see more of the industry move in this direction, particularly for longer-tail type cultural content like classical and world music. These recent developments are certainly a good start. It will be interesting to see if the iTunes Store eventually is forced to respond to these pressures.

Wouter Verhelst: Command frequency

nice one-liner to find out what the highest number of commands is that you use. For me, the output is:
wouter@country:~$ history awk ' print $2 ' awk 'BEGIN  FS=" "   print $1 ' sort uniq -c sort -rn head 10
     98 ls
     71 cd
     25 mutt
     24 sudo
     18 ssh
     18 killall
     17 xine
     17 apt-cache
     11 less
     10 man
Having ls be number one isn't something that surprises me, at all. I have this silly habit of typing "ls" in my terminal window when I forget what I was about to do. Obviously that doesn't help me remember, and sometimes I do it two or three times in the same terminal window without anything in between—as if anything would've changed... However, having killall in the top ten is something that does surprise me. It appears I tend to get pretty impatient when things don't do what I expect them to... Then again, the output of 'history' doesn't seem to be very complete, having only 500 entries...

Evan Prodromou: 2 Vend miaire CCXV

Happy new year, everyone! I was away over the weekend, working hard on Ignition 2006, and I missed the big day here in front of the computer. Instead I was out under the stars with Montreal Burners, having Burning Man fun out in the wt:Eastern Townships. I'm not sure if it happened this year, but I think next year it would be great to have a Debian:BSP in wt:Black Rock City. OK, sure, it'd be super-nerdy, and the connectivity is pretty spotty, but there are some long, hot afternoons out there and I know that there are at least two DDs that are on the Playa pretty regularly (me and Don Armstrong). I wonder if there are more? I wonder if we had a BSP, if lots more would show up? tags:

Usability So, my current computer usability problem has to do with the rockin' secure shell program OpenSSH. Here's what happens: I'm on a box and I have a new login goin' on. And I have to ssh to another box, and I get the message:
Enter passphrase for /home/evan/.ssh/id_rsa: 
This happens because I haven't run ssh-add when I logged in, to store the passphrase for the key with the current ssh-agent. So now I have two options:
  1. enter my password and then possibly forget to run ssh-add before running ssh again
  2. kill the current ssh instance, run ssh-add, then run ssh again
Both options suck. What would be nice is if I could enter my passphrase, and have that count as if I had run ssh-add. Like, after I enter it, the ssh client could say:
Add this key to your current ssh-agent session [Y/n]?
...and then ssh would add the key, like ssh-add does, and continue with the login. Wouldn't that be great? I think this is the biggest usability problem I run up against in my daily work life. Which, y'know, is pretty good. [You might want to look into libpam-ssh] [See also http://advogato.org/person/mbrubeck/diary.html?start=90 ] tags:

Wikimania 2007 in Taipei I have to say that I'm a little wistful that wt:Alexandria wasn't chosen for Wikimania 2007. We had a really good bid to hold the event in Alexandria at the Bibliotheca Alexandrina, the "new" Library of Alexandria. I was getting pretty excited about going to the Mediterranean next year. But I think that Taipei is going to be a fantastic place to hold Wikimania, too. Holding the event in wt:East Asia will make it much easier for people there , in wt:Southeast Asia, and in wt:Australia or wt:New Zealand to come to the event. A Wikimania in East Asia will focus attention on the non-English-language and non-European efforts of the Wikimedia Foundation. Taiwan also has a really strong local Wikimedian group, with Wikimedia Taiwan soon on its way. Finally, a Wikimania in wt:Taiwan will re-emphasize the wp:Blocking of Wikipedia in mainland China. Jimmy Wales has said on the record that Wikimedia will not censor its Chinese-language projects to comply with the PRC's firewall (the so-called wp:Great Firewall of China), and I'm sure an official event in the ROC will further highlight that point. Personally, I'm looking forward to a trip to Taipei, which will be a good excuse for some more exploration of Taiwan. And I want to congratulate the Taipei bid team. I was impressed by the amount of work that went into the Alexandria bid, and I'm sure they did a lot of work for Taipei, too. I know the Alexandria crew is optimistic for next year: starting the steps for making a Wikimedia local chapter in Egypt, and continuing to develop relationships with the local technology companies as sponsors. Should be interesting... it might be worth a trip after all! tags:

24 September 2006

Benjamin Mako Hill: PyBlosxom and Comment Spam

Over the past few months, I've dealt with something of a blog spam nightmare on Copyrighteous: my blog running the PyBlosxom weblog software. Wiser and less stubborn individuals might given up on either PyBlosxom or the ability to receive public comments. However, I find PyBlosxom unique in its flexibility and great ReStructured Text support and am always frustrated with others' blogs that don't accept comments. At the end of the day, I couldn't bring myself to part with either. Historically, my blogspam protection has been to use a simple weak CAPTCHA and to have my blog software email me each time a comment is successfully submitted so that I can (with a built-in macro in mutt) delete each spam comment that slips in. This has worked well for the last couple years. This summer, Mika pointed out that my blog was full of Chinese link spam that I had not noticed or been notified about. Around the same time, I realized that my website had been dealt a massive spam penalty by Google and was basically not showing up in any search results. I have spent a significant amount of time over the last month repairing the damage and working to prevent it from reoccuring. I'm documenting this process here in the hopes that it might save other time and energy. Upon reflection, the situation could have been prevented the in three relatively easy ways -- all of which I have now implemented.
  • Had the PyBlosxom comment.py plugin's mail function been working properly, I would have known that I was being spammed.
  • Had PyBlosxom been configured to only make blog entries (and not comments) indexable by search engines, Google and others never would have seen the link spam.
  • Had I installed a stronger CAPTCHA, I might have blocked the spam from being submitted in the first place (although at the expense of the participation in comments by visually impaired users).
A month or so, hours of work, and a Google reinclusion request later, my website is beginning to show up in search entries again. Hopefully this message will help save others from a similar fate. Fixing PyBlosxom's Comment Notification The most critical problem was a bug in PyBlosxom's contributed comment.py plugin and its comment notification system. In short, the email based comment notification system failed silently if the body of the email -- which included the full text of the comment -- included any non-ASCII UTF-8 encoded text. I've filed a bug against PyBlosxom and included a patch that fixes this issue. However, since this is a rather critical problem and because PyBlosxom releases tend to be few and far between, it might be worth patching your system now. My patch is against version 1.3 but can easily be modified and applied to version 1.2. Hiding Comments from Search Engines The major reason that the successful spam became a problem was that it triggered Google's abuse detector, resulted in a spam penalty, and made all of the (non-spam) material on my website more difficult for others to find. A simple way to prevent this is to hide all comments from the search engines. I've done this by creating a new PyBlosxom flavor that shows comments (and allows them to be input) which is not indexed by search Engines and to remove comments altogether from the default indexable flavors. To do this, I removed all of the comment-* templates from html flavor and created a new flavor called comment.flav that included the comment templates. I also had to make the comment submit action point to the new flavor and to change the "Comments: N" link to point instead to .comment flavor rather than the .html. The rest of the template is simply symbolic links to the the HTML template. The next step is to ensure that the comment flavor is not indexed by search engines. I found two ways of doing this and did both. The first was to add a "no index" meta tag to the header of each .comment page. It looked like this:
<meta name="robots" content="noindex, nofollow">
This is necessary because the robots.txt standard, the normal way to tell search engines not to index a page, does not support wildcards. Luckily, Google (and others I imagine) do support an extension to Robots.txt that allows you to use wildcards. To take advantage of this, I created a robots.txt for mako.cc that blocks indexing all of the comment flavor. The following robot.txt did the trick for me:
User-agent: Googlebot
Disallow: /copyrighteous/*.comment$
An Improved CAPTCHA Ultimately, the best solution would be to keep the spam from showing up on the blog at all. The only decent PyBlosxom CAPTCHA is the "nospam" plugin by Steven Armstrong. It is a simple image-based CAPTCHA and I was running it when I was spammed. It uses PIL but generates purely number-based strings and does some minimum obfuscation. Basically, spambots were able to break the CAPTCHA and toward the end, I was receiving thousands of pieces of a blog spam a day. I've incorporated the PIL image generation code from Mediawiki's ConfirmEdit/FancyCaptcha extension into nospam.py with this patch which I have also sent to Steven Armstrong -- nospam.py's original author. It's much stronger. Apologies, of course, go to all of my vision impaired users. Image-based CAPTCHAs really are evil. In this situation though with many thousands of attempts of a day, the alternative is that I will turn off comments altogether -- the standard (and poor) lesser of two evils argument. Ultimately, I will write a python implementation of a new strong text-based CAPTCHA I've invented that uses commonsense knowledge and pulls off some cool data acquisition in the process. I presented this project at the Wikimania Hacking Days and at a Media Lab open house for AAAI 2006 where I got universally positive and useful feedback. CAPTCHA inventor and recent genius-grantee Luis von Ahn seemed to like the idea too. I'll write more about this on another day though.

Martin-&#201;ric Racine: meme: top ten UNIX shell commands

My results for this meme: history awk ' print $2 ' awk 'BEGIN FS=" " print $1 ' sort uniq -c sort -nr head -10
     73 sudo
     67 update-web
     53 ssh
     51 nano
     44 ls
     25 dir
     21 upgrade-daily.sh
     17 cd
     13 requestsync
     13 more
Among the more unusual sightings, update-web is a Bourne shell script to update my APT repository and synchronize my homepage, and upgrade-daily.sh is another one to upgrade my whole cluster in a semi-automated way. Meanwhile, requestsync is a really neat Python script by Martin Pitt to request the synchronisation of Debian packages into Ubuntu, automatically fetching Debian changelogs and other relevant information to justify the request.

23 September 2006

Simon Richter: Efficiency

I've mentioned democracyplayer a few times now. I really think the platform has quite some potential, however a number of things have to be addressed. For example, the system load while a download is active is between three and four. I have a certain feeling that this is related to the threads that paint the wonderful spinning arrows. Unfortunately, the load does not decrease when I put another window in front. Or play a movie. Seriously, what happened to the art of stopping pointless threads?

Clint Adams: Boring m me

I am only doing this because Erich horrified me with a two-awk pipeline. So one system for each invocation of awk:
% print -l -- $ (o)history%%[  ]*    uniq -c   sort -nr   head -n 10
    271 cd
    233 sudo
    221 rm
    215 more
    185 ls
    163 dict
    151 apt-cache
    128 vi
    110 tla
    108 grep
% print -l -- $ (o)history%%[  ]*    uniq -c   sort -nr   head -n 10
    124 sudo
    112 cd
     97 ls
     73 zomg
     33 man
     32 apt-cache
     26 rmadison
     22 grep
     21 vi
     18 tla

Next.

Previous.