Technology

Release early and release often: Last.fm Drupal Module

Over the last few weeks I've been working on a Last.fm module for Drupal. I started with some code by an English programmer. I'd hope to polish it up before sharing my modifications with him, but since I see that he's back at work on it I'm posting it here and sending him this message:


The Wikified Todo List

Todo Wiki Full

I abandoned the previously blogged phpWiki in favor of the much more
user friendly and elegant MediaWiki
application. MediaWiki, another Apache-MySQL-PHP application, is the
workhorse behind Wikipedia, among other great wikis. One of the most annoying problems that I quickly ran into with phpWiki was that the application began complaining about "conflicting" edits as I made subsequent edits to the same page. Leveraging my programmer impatience, I did minimal troubleshooting and began searching for a different wiki solution.

Getting ispell working in GNU Emacs for Windows

  1. I already had Cygwin installed. http://cygwin.com/
  2. Grabbed these Cygwin ispell binaries: ftp://ftp.franken.de/pub/win32/develop/gnuwin32/cygwin/porters/Humblet_Pierre_A/V1.1/ispell-3.2.06-cygwin-1.3-bin.tar.gz (Here's the README.)
  3. From the Cygwin shell:
     cd / #change to cygwin root dir impt!
    tar zxvf [path/to/tarball/]cygwin-1.3-bin.tar.gz
    
  4. At the Windows desktop right-click My Computer and choose Properties, click the Advanced tab and then the Environment Variables button.

Spawning Emacs with Thunderbird

2006-08-17: I just followed these directions using Thunderbird 1.5.0.5 for Windows, External Editor v.072 and emacs 21.3. Everything works.

On the subject of using external editors with Mozilla products, I discovered that there is a very nice extension for Thunderbird: External Editor. Thanks to Philip Nilsson maintainer of the (now defunct?) extension Editus Externus for referencing this extension.

Note: External Editor (Globs.org) works with Thunderbird. To get the same functionality with Firefox textareas, the best thing that I've found is Mozex 1.07.1 mentioned in How to have a qwiki at work: Mozdev, Emacs and PHPWiki.

How to have a qwiki at work: Mozdev, Emacs and <strike>PHPWiki</strike> MediaWiki

As a one-time English major, I celebrate some twisted
pride in documenting my code and projects. In my zeal I've created a slew of text files, many with similar names,
many with deprecated info. How I could organize this
mess in such a way that it would be intelligible to another?
Moreover, how can I improve my own ability to quickly locate
information (full text searching) and deftly navigate related documents?

My problem seemed a perfect excuse to learn more about wikis and how I could tweek my familiar tools to make authoring a wiki quick and convenient.

clean_dir.php: A php shell script

Purpose: Clean out a directory tree without deleting the directories or destroying their permissions. Don't delete files with certain extensions no matter where they are encountered. This is used to clean out a directory tree before using cvs export to publish new code.

clean_dir.php is pretty hastily hacked together - I'm sure others have written similar routines more gracefully - but it presented some interesting challenges:

  • I han't written php for the shell for a while. Had to review how to take user input from STDIN. Had to use ob_flush() to get win32 to display preliminary text before waiting for input .