Mimsy Were the Borogoves

Hacks: Articles about programming in Python, Perl, PHP, and whatever else I happen to feel like hacking at.

42 Astoundingly Useful Scripts and Automations for the Macintosh

Work faster and more reliably. Add actions to the services menu and the menu bar, and create drag-and-drop apps to make your Macintosh play music, roll dice, and talk to you. Create ASCII art from your photos. There’s a script for all of that in my new book, 42 Astounding Scripts for the Macintosh.

New PHP Tutorial

Jerry Stratton, October 28, 2006

I’ve just uploaded a new version of my PHP tutorial. There are two major changes:

  1. I’ve converted all curly brackets (braces) to IF/ENDIF, WHILE/ENDWHILE, and FOREACH/ENDFOREACH. I’ve found this much easier for beginners to follow, especially in a web page where the ending of a block may be sitting on its own hidden in a bunch of HTML. I’ve added a section at the end discussing how to recognize curly brackets in other people’s code that they might see.
  2. I’ve replaced the ad-hoc MySQL section with a simple tutorial that follows seamlessly from the simple imaginary poll.

PHP for Dynamic Web Pages is available under the GNU Free Documentation License. If you have any comments, let me know.

  1. <- Smultron text editor
  2. AppleScript Web Browser ->