Matlab/Simulink
Producing eps files from Simulink models
- Scenario
- Using Simulink for modelling dynamic systems.
- Writing reports about those systems (using LaTeX, for instance).
- Problem
- To automatically generate eps and pdf files from the model, all its subsystems, and any graphs produced during its simulation.
- Possible solution
- This simple matlab script, that uses ideas described across various websites and the Matlab/Simulink user documentation. The script is easily incorporated into a Makefile (see example).
Mutt
Querying evolution's address book
- Scenario
- Problem
- Get addresses from evolution when sending messages from mutt.
- Possible solution
- This simple python script,
that exploits the
evolution library,
using the ideas described
here.
(On Ubuntu:
sudo apt-get install python-evolution.)
Uppaal
Changing a system declaration
- Scenario
- Uppaal model-checker
- Problem
- Change a system declaration from the command line so as to automatically generate different verification tasks.
- Possible solution
- This xslt stylesheet.
It can be processed with xsltproc:
xsltproc --stringparam system 'system Train, Gate;' \ --novalid change_uppaal_system.xml inputmodel.xml \ > outputmodel.xml
Vim
Checking sender address
- Scenario
- Problem
- Emails are sometimes sent from an inappropriate address.
- Possible solution
- A simple vim plugin script that checks the sender address, a database of personal contacts and offers a choice of sender addresses if necessary. Further details are given inside the script.
Otl2draft
- Requirement
- Convert outlines written with The Vim Outliner into LaTeX drafts (or manipulate with Standard ML).
- Possible solution
- A small program, otl2draft, that performs the conversion:
- source package (in Standard ML)
- executable for Windows (MinGW)
- executable for Linux (x86)
- executable for FreeBSD 6 (x86)