NEW: For a prettier blog interface, see the Wordpress version!

~/.diary schedule
Tasks
Priorities - A: high, B: medium, C: low; Status - _: unfinished, X: finished, C: cancelled, P: pending, o: in progress, >: delegated. Covey quadrants - Q1 & Q3: urgent, Q1 & Q2: important
B1XSet up Emacs on Windows (TaskPool)
B2XCheck out EmacsWiki#RecentChanges from 2004.11.07
BXSet up automatic timestamping and thumbnailing for my pictures
Notes

1. My timestamping/thumbnailing script: 09:50

Categories: None -- Permalink
#!/bin/bash
while [ -n "$1" ]; do
  if [ -f $1 ]; then
    DATE=$(date +"%Y%m%d-%H%M%S" --reference="$1")
    EXT=$(echo "$1" | sed 's/.*\././')
    DEST="$DATE$EXT"
    echo $1
    cp $1 "$DEST"
    cp "$DEST" "thumb-$DEST"
    touch --reference="$1" "$DEST"
    if [ "$EXT" == ".jpg" ]; then
       convert -size 640x480 -resize 640x480 "$DEST" "thumb-$DEST"
       touch --reference="$1" "thumb-$DEST"
    fi
  fi
  shift
done

Must write

../../bin/process-media

Previous day | Next day

I'd love to hear about any questions, comments, suggestions or links that you might have. Your comments will not be posted on this website immediately, but will be e-mailed to me first. You can use this form to get in touch with me, or e-mail me at sacha@sachachua.com .

Page: 2004.11.09
Updated: 2005-06-1812:17:1212:17:12-0400
NOTE: ANTI-SPAM MEASURE NOW IN PLACE. Please answer the following question with the right number in order to send me your comment.
What is two minus one? (hint: one ;) )
Name:
E-mail:
URL:
Comments: