tips
27 May 2009 | 0 Comments
While Googling my way through the interwebs, I came across the 2008 Western Australian Certificate of Education sample examination for Stage 2 Biological Sciences. It contains this diagram: If you’re wondering, the entire hierarchy is drawn from Umberto Eco‘s novel Baudolino.
Tagged in Books, Odd, short, silly, umberto eco
code,tips
10 December 2008 | 0 Comments
Just a small tip on this: When you add an argument to a function that already exists you should check the existing usage of the function. Say you have this: f x y z = … … and you want: f x y z w = … First of all you should check the contexts [...]
Tagged in code, Functional programming, Haskell, Programming, refactoring, short, tips
code,tips
17 November 2008 | 0 Comments
Firefox 3 was running very slow for me, so I desperately tried this, thinking that it wouldn’t make much difference. I was wrong; there was a noticeable speed improvement. From a bash shell: find ~/.mozilla -iname ‘*.sqlite’ -execdir sqlite3 {} ‘vacuum;’ \;
Tagged in code, short, snippet, snippets, tips
tips
30 April 2008 | 0 Comments
Builds and displays your current LaTeX document, and removes all the temporary file spam. #!/bin/bash TMPDIR=$(mktemp -td) rubber -d –into "$TMPDIR" "$GEDIT_CURRENT_DOCUMENT_NAME" && mv "$TMPDIR/${GEDIT_CURRENT_DOCUMENT_NAME%tex}pdf" "$GEDIT_CURRENT_DOCUMENT_DIR" if [ $? -eq 0 ] then evince "${GEDIT_CURRENT_DOCUMENT_NAME%tex}pdf" & fi rm -rf "$TMPDIR"
Tagged in bash, gedit, latex, Linux, snippet, useful