Tutorials and code

This section of the site contains various tutorials I’ve written to help out or code snippets that I’ve found useful. Hope you find something that is useful for you.

Code snippets

Basic CGI example – python
A very very very basic CGI example
Convert binary and decimal number representation – python
Can be useful in some cases
Create new msg in Mailsmith – applescript
A handler for creating a new email message in Mailsmith
Get time and date – python
Get a formatted version of the current time
New MacJournal entry – applescript
Create a new entry in MacJournal
Send email – python
Simple, basic send email script
Split document – python
Split text string on first empty line
Using PIL to read IPTC – python
Use the PIL library to read IPTC info from a photo
Creating new entry in MarsEdit – applescript
Handler for creating new entries in the blog editor MarsEdit
An applescript for making it easy to use photos from SmugMug on your blog – applescript
This script use Smugin for Aperture, Aperture and MarsEdit to make it easy to use photos hosted at SmugMug on your blog.

Tutorials

A subversion mini-tutorial
If you have never used subversion before this short tutorial can get you up and running in a few minutes.
What is a “text editor”?
Quick description on the difference between a text editor and a word processor
Python tutorial 01
An introduction
Python tutorial 02
Basic file operations
Python tutorial 03
String operations
Python tutorial 04
A first example – attempt one
Python tutorial 05
A first example – attempt two
Python tutorial 06
A first example – attempt three
RapidWeaver and Greybox
How to use Greybox on pages in RapidWeaver

Comments are closed.

blog comments powered by Disqus