Giampiero Salvi :: Resources
Links
My friend Lisa's beautiful drawings
The Wirströms list
My blog at Blogspot
Downloads
wavesurfer_1.8.8p3-kth.deb: debian and ubuntu package for WaveSurfer that can be installed with either libsnack2 (OSS) or libsnack2-alsa. Derived from wavesurfer_1.8.8p3-1ubuntu1_all.deb (that is locked to libsnack2). To install (making sure libsnack2-alsa is pulled):
sudo apt-get install libsnack2-alsa
sudo dpkg -i wavesurfer_1.8.8p3-kth.deb
wavesurfer_sndfile.tgz: plug-in for Wavesurfer that adds sound file formats supported by libsndfile. Currently only available on GNU Linux. To install, unpack the file content into the directory .wavesurfer/_VERSION_/plugins/
LaTeX files to generate conference proceedings from PDF files: https://github.com/giampierosalvi/LaTeXProceedings
jatten_jorm.pdf, jatten_jorm.mid: guitar transcription of Tools Thielemans' Jätten Jorms sång from Dunderklumpen as played here
bm-unsrt.bst: a BibTeX style based on unsrt.bst ti add Bibliometric data to the reference list
par.pdf: illustration of some of the graphical parameters in R plot (work in progress, more will come, in the meantime check this).
phpwrap.cgi: a CGI wrapper for PHP (useful if the PHP server is different from the WEB/CGI server). This script is used in the TMH web pages.
qpsrcls.tgz: a LaTeX2e class for QPSR articles (internal publication at TMH).
tmhexjob.tgz: a LaTeX2e package for master thesis reports in the TMH style with an extended example. NOTE: the example might still be useful, but the style is deprecated. Use CSC's official style instead.
visitcard.tgz: how you can make your visit cards with LaTeX according to KTH rules.
Tables with IPA, SAMPA, HTK-SAMPA, STA phonetic symbols for British English and Swedish, and how to obtain them in LaTeX (requires the TIPA package, on our Linux site try 'module add tipa').
sampa_latex_it.pdf
sampa_latex_en.pdf
sampa_latex_sv.pdf
Useful one-liners
This is a collection of useful one-liners that come handy when you don't have time to read the program's man pages. I did this mostly for myself, see if you find it useful. All the tools described here are freely available on unix systems (on Ubuntu/Debian apt-gettable).
Images to PDF and viceversa (ImageMagick)
Convert many files and concatenate them into one pdf (works with any other image format supported by ImageMagick):
convert *.jpg file.pdf
PDF concatenation (pdftk)
Simple case: concatenate all pdf files in the current directory into one:
pdftk *.pdf cat output all.pdf
Slightly more complicated: substitute pages 13 and 14 of file1.pdf with the corresponding pages from file2.pdf (can be used also to cocatenate only a subset of pages from each file):
pdftk A=file1.pdf B=file2.pdf cat A1-12 B13-14 A15-16
output file3.pdf
Change file encoding (recode)
Change file encoding from ISO-8859-1 to UTF-8 (Unicode). Note that you
can achieve the same in emacs
by pressing C-x C-m f utf-8
or C-x RET f utf-8
:
recode ISO-8859-1..UTF-8 file
Emacs: Run external command on region (e.g. count words)
Start the selection with C-space
, move to the end of the region, press M-x shell-command-on-region
(the same with M-|
but didn't work for me), then type the command and Enter
. For example with 'wc -w'
you can count the words in the region. Put this in your .emacs
file to add the commands count-words-buffer
and count-words-region
Extract images from video (ffmpeg, from here)
ffmpeg -i input.avi images%05d.jpg
ffmpeg -i input.dv -r 25 -f image2 images%05d.png
Capture Webcam (MPlayer, ffmpeg)
mencoder tv:// -tv
driver=v4l:width=320:height=240:device=/dev/video0:forceaudio:adevice=/dev/dsp
-ovc lavc -oac mp3lame -lameopts cbr:br=64:mode=3 -o webcam.avi
or...
ffmpeg -vd /dev/video0 -ad /dev/audio1 -b 128 -r 15 -s 352x240 -target
Play SpeechDat files with SOX
play -t raw -c 1 -e a-law -r 8000 filename
more to come...