How to Debug mex files in Matlab
January 6th, 2010
I always have to look up the procedure for debugging code in compiled mex extensions in Matlab, so here it is:
shell> matlab -Dgdb
gdb> run -nodesktop -nojvm
matlab> dbmex on
matlab> foo() % Execute the mex function being debugged
gdb> break foo.cpp:17 # Set up breakpoints
gdb> continue
Mounting truecrypt partitions on boot
January 9th, 2007
TrueCrypt is a handy utility for encryption entire partitions. The encryption is transparent, so everything works like normal but that data on the disk is encrypted. As a first line of defense one might want to have everything encrypted and mount it upon booting the computer, without having to type the commands every time the computer boots. This is a guide on how to set that up.
Making an index in LaTeX
December 19th, 2006
Making an index in LaTeX is far easier than I thought. MakeIndex does most of the work.
Setting up AWStats
December 15th, 2006
I recently set up AWStats version 6.5 as a static report generator. So far I’m quite pleased with AWStats, but I ran into some undocumented problems during the setup. Nothing major, but it takes a few extra minutes of debugging.
Custom google maps
December 10th, 2006
Some site use a slightly customised google map. Few use the more advanced functionality such as replacing the map with a custom map and making it more interactive.
There’s a really good site that covers pretty much everything that’s possible to do with google maps. It’s a handy link to keep around as one never quite know when one might need it.
How to make a webcomic
December 9th, 2006
Cheshire crossing has a nice guide to how the comic is created. I think it’s interesting to see the low number of tools that are actually required, basically anyone with interest should be able to start a webcomic.
Setting up dovecot and sendmail
December 8th, 2006
Dovecot is my current POP3 server of choice. I recently found a guide on how to set up dovecot with sendmail which also covers some basic spam and virus filtering of the email.
Self signed SSL certificates
December 6th, 2006
Using SSL for encryption is a nice way to avoid people sniffing passwords when one for instance logs into admin panels. However there’s a non-trivial prerequisite to setting up SSL: obtaining a SSL certificate .