Strotmann.de
amForth Hex-Dateien für Arduino Boards
Eine komplette Toolchain zum Kompilieren von amForth aufzubauen ist eine grosse Einstiegshürde (wine, AvrStudio ...), speziell wenn, wie im Falle von amForth, nicht-freie Bestandteile aus dem ATMEL SDK besorgt werden müssen. Dies ist speziell unter Linux und MacOS X doch recht aufwendig.
Ich stelle die von mir erstellten Hex-Dateien des amForth für Arduino Duemilanove (und Uno) zur Verfügung. Diese Hex-Dateien können direkt per Programmer auf einen Arduino aufgespielt werden (siehe vorherige Posts zum Thema amForth).
Download: amForth Hexfiles für Arduino
Posted at 06:19PM Dec 28, 2011 by Carsten in Forth | Comments[1]
Terminal Emulatoren für Forth Systeme über serielle USB-Schnittstellen (amForth)
Eine Übersicht von Terminal-Programmen unter Unix/Linux für echte serielle Schnittstellen oder für USB-serielle Verbindungen. Damit kann man wunderbar Verbindungen zu amForth oder anderen Mikrokontroller-Forth-Systemen herstellen ...[Read More]
Posted at 08:30PM Dec 14, 2011 by Carsten in Forth | Comments[0]
amForth auf den Arduino Duemilanove aufspielen
Wie bekommt man das amForth auf den Arduino Duemilanove um das Morse-Programm laufen zu lassen. Dies sind die Schritte die ich für jedes Arduino-Board vor Beginn eines Workshops durchführe ...[Read More]
Posted at 05:58AM Dec 12, 2011 by Carsten in Forth | Comments[0]
amForth Morse Code
Der Quellcode des Morse-Programms auf dem Arduino mit dem Spark-Fun Dangershield[Read More]
Posted at 09:43AM Nov 06, 2011 by Carsten in Forth | Comments[0]
Vortrag BLIT Potsdam November 2011: amForth auf dem Arduino - Ausbruch aus dem Edit-Compile-Upload Kreislauf
Mein Vortrag vom 5. November 2011 auf den Brandenburger Linux Info Tagen 2011 zum Thema "amForth auf dem Arduino - Ausbruch aus dem Edit-Compile-Upload Kreislauf". Der komplette Quellcode findet sich im Posting vom Sonntag.[Read More]
Posted at 07:09PM Nov 05, 2011 by Carsten in Forth | Comments[3]
42 - there are no questions only answers ... ?
[...]
There are no answers, only questions
And we're all strangers to the truth
But in my mind's eye
I have found the reason why
And I carry the burden of the proof.
No Answers Only Questions/Alan Parsons Project
Posted at 09:39AM Oct 10, 2011 by Carsten in Personal | Comments[0]
Server on the road...
Have moved my servers from Frankfurt to Münster the last two days. All seems well so far, E-Mail is coming in and the blog is online again.
Thanks to the nice people from st-oneline the move has been smooth experience.
Posted at 09:10PM Sep 13, 2011 by Carsten in Personal | Comments[0]
Recovering Atari ST 1st Word+ Documents
I've been asked to recover some 1st Word+ Documents from 3½" disk drives. Before starting up one of my old Atari ST machines, I was trying to get the job done using Linux. And it worked quite well. Here is how:
Atari ST disk are formatted using a flavor of the FAT file system. Most of the time, it is possible to read this disks under Linux. The 'mtools' package contains tools to read and write FAT formatted floppy disks, without the need to rely on a file-system driver (the 'mtools' package is available in most Linux distributions. For Ubuntu Linux, execute "sudo apt-get install mtools" to install).
For reading old floppy disks, I recommended to use old style floppy disks, no modern USB-Floppy disks which can often only read standard PC formats. I've used a build-in 3½" floppy drive inside a trusty old IBM ThinkPad T20 running Ubuntu 11.04.
Before reading the files from an Atari ST disk, I configure 'mtools' to skip the check for the floppy format. The FAT format on Atari ST disks is somewhat non-standard, which can trick the 'mtools':
Add to /etc/mtools.conf
MTOOLS_SKIP_CHECK=1
The mtools manual page documents:
MTOOLS_SKIP_CHECK: If this is set to 1, mtools skips most of its sanity checks. This is needed to read some Atari disks which have been made with the earlier ROMs, and which would not be recognized otherwise.
Next, make sure that the floppy kernel driver module is loaded. It seems that modern Linux systems do not load the driver for floppy disk anymore:
# sudo lsmod | grep floppy # sudo modprobe floppy # sudo lsmod | grep floppy floppy 60032 0
Then I set the floppy drive parameters fixed for a 720kb floppy. The 'setfdprm' command is part of the 'fdutils' package:
# sudo setfdprm /dev/fd0 "720/720"
The command "mdir a:" should now show the directory content of the floppy disk. The floppy disk files can now be copies over to the Linux harddrive using 'mcopy':
# mkdir atari-st-floppy # cd atari-st-floppy # mcopy a:*.* .
Converting 1st Word+ documents into RTF
Rich Text Format (RTF) is a standard format for text documents. Using tools like UnRTF, RTF documents can be easly converted into other formats. RTF can be read my most modern text-processing packages such like LibreOffice and AbiWord.
'wpls2rtf' is a small commandline tools that can translate 1st Word+ files into RTF documents. The original source can be found at ftp://ftp.funet.fi/pub/atari/util/wpls2rtf.zip. Using this tool, I was able to convert the old Atari ST documents into files that can be read and edited on modern systems.
Posted at 04:13PM Aug 16, 2011 by Carsten in Atari | Comments[2]
batch rotate and image processing in GIMP
The GIMP Script-Fu scheme snippet will take a file wildcard pattern ("*.JPG") and an rotate-type value (0 = 90° / 1 = 180° / 2 = 270°), level out the colors in the picture and save the changed image as a PNG file.
(define (batch-rotate pattern rotate-type)
(let* ((filelist (cadr (file-glob pattern 1))))
(while (not (null? filelist))
(let* ((filename (car filelist))
(image (car (gimp-file-load RUN-NONINTERACTIVE
filename filename)))
(drawable (car (gimp-image-get-active-layer image))))
(set! filename (strbreakup filename "."))
(set! filename (butlast filename))
(set! filename (string-append (unbreakupstr filename ".") ".png"))
(gimp-image-rotate image rotate-type)
(gimp-levels-stretch drawable)
(gimp-file-save RUN-NONINTERACTIVE
image drawable filename filename)
(gimp-image-delete image))
(set! filelist (cdr filelist)))))
The scheme function above can be stored into the users GIMP scripting directory (~/.gimp-2.6/scripts/) as "rotate-and-level.scm".
The shell script below can be used to start the batch rotate process on a directory of JPEG pictures.
#!/bin/sh
# file rotate.sh
gimp -i -b "(batch-rotate \"${1}\" ${2})" -b '(gimp-quit 0)'
On a Unix shell, the glob file pattern needs to be quoted so that the shell will not expand it:
# ./rotate.sh "*.JPG" 0
Posted at 04:58PM Jun 15, 2011 by Carsten in Programming | Comments[0]
Changing the encoding in Emacs
From the 'note-to-myself' department: To change the text encoding of a file in Emacs, load the file and then press
CTRL+X RET f <encoding>
where <encoding> can be values like utf-8.
Posted at 12:45PM May 24, 2011 by Carsten in Emacs | Comments[0]
Talk on Forth Benchmarks from Vintage Computer Festival Europe 2011
My talk about Forth and the Forth Benchmark Project from the Vintage Computer Festival (VCFe 2011).[Read More]
Posted at 11:40AM May 12, 2011 by Carsten in Forth | Comments[0]
'strotmann.de' Blog on IPv6
The 'strotmann.de' Blog is now available on IPv6. The AAAA record for 'strotmann.de' will arrive shortly. I'm currently using a HE IPv6 tunnel, native IPv6 will be here after the summer.
Posted at 09:40AM May 12, 2011 by Carsten in Personal | Comments[0]
Video: SWIG Erweiterung für Forth (Gerald Wodni)
Video von der Forth Tagung 2011 in Goslar
Posted at 08:52PM Apr 21, 2011 by Carsten in Forth | Comments[0]
Spring cleaning MacPorts
The MacPorts projects offers a fine, easy way to install Unix tools and applications on MacOS X. Over time however, MacPorts can accumulate amounts of dead data, as when applications get updated, the old versions stay until they are removed manually. In addition, after compiling a port from source, both the source and the intermediate object code remains on the harddisk.
Two commands can spring clean the MacPorts installation.
sudo port clean --all installedwill run "make clean" on all installed ports, removing the temporary object code generated during compilation.
sudo port -f uninstall inactivewill remove 'inactive' ports, mainly older versions of applications that have been replaced by a more recent version.
Running these two commands can free up some gigabyte of space on a harddisk (depending on the amount of MacPort applications installed).
Posted at 10:23AM Apr 18, 2011 by Carsten in Operating Systems | Comments[0]
Managing the MacOS X IPv6 firewall
MacOS X (10.3 and up) contains an IPv6 firewall (ip6fw), which has been inherited from FreeBSD and the KAME project. However there are no configuration or startup scripts, nor any other support available in a stock MacOS X system to manage this firewall.
The script presented here will read a firewall configuration from '/etc/ip6fw.conf' and will apply the IPv6 firewall rules to the MacOS X firewall.
Posted at 01:58PM Apr 07, 2011 by Carsten in Operating Systems | Comments[3]

