Creating Atari ST disks from disk image files on Linux

Steps taken from article here.

Check disk geometry of disk image file – copy this to a .sh file and run it against a .st disk image:

#!/bin/sh od -v -Ad -t u1 -w1 $1 | awk 'NR==20 {sl=$2} NR==21 {sh=$2}
 NR==25 {spt=$2} NR==27 {s=$2; 
print "Sides: " s " Sectors: " spt " Tracks: " (sh * 256 + sl) / spt / s; exit}'

Format a 720k floppy using the sector and cylinder numbers from the prior step:

superformat /dev/fd0 dd ds sect=10 cyl=80

Copy the image to the disk:

cp image.st /dev/fd0

MySQL install on Mac OS X

I haven’t used my MySQL install on Mac OS X for a while and I’d forgotten where it was located  🙂

By default, it gets installed to /usr/local/mysql-versionnumber, with a symlink /usr/local/mysql pointing to this dir.

JSF 2.0 namespaces

Here’s the namespace declarations for the JSF 2.0 tags:

<!DOCTYPE HTML>
<h:html lang="en" xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets">

For JSF 2.2 the URLs have changed. See post here.