Subversion keyword substitution is a nice concept, but the revision number refers to the revision the file was last changed, not the current version of the file. If you have for example a project with several files (e.g. main.c
, pol.c
, mol.s
) and in main.c
you …
-
-
Completion for Gnuplot under Ubuntu(/Debian) with rlwrap
The default install of gnuplot in Ubuntu/Debian does offer a crippled form of word completion, when compared to other distribution (Mandrake, Suse). For example, filenames can not be completed with pressing
tab
, which can be really annoying if you're used to have this sort of completion. The reason for … -
In-place string changing in files from the command line with "perl pie"
The standard unix/linux tools for filtering/changing strings (or patterns) in files from the commandline are
sed
andawk
. But what if you want to change strings in-place in the files without the burden of creating new files and replacing the old ones afterwards?The "perl pie" is a …
-
Non-root installation of lp_solve and its Python bindings
Howto install and use
lp_solve
and its Python extension module as non root on Linux?Compile and install the
lp_solve
shared library:-
Download
lp_solve_5.5.0.10_source.tar.gz
from SourceForge and untar so you get a directorylp_solve_5.5
with contents. -
Enter …
-
-
Awaken the post-lunch PhD that lives inside you.
-
Accessing a svn server behind a firewall
Disclaimer: this entry is mainly a reminder to myself (the stuff you would write on a post-it), but maybe it's useful to someone else.
The subversion server at my work is (currently) only accessible from within the LAN, not directly reachable from the outside evil internet. T his makes it …
-
Get name of current function and caller with Python
With the python module
inspect
, one can inspect (not kidding) the run-time python stack. Among other things, this makes it possible to get the name of the current function or callers. Handy for logging or debugging purposes. A simple script to illustrate:import inspect # functions def whoami(): return inspect.stack …
-
Download offline version of dynamic pages with Wget
Note to self: short list of useful options of wget for recursive downloading of dynamic (PHP, ASP, ...) webpages (because wget's man page is too long):
--no-clobber
: do not redownload pages that already exist locally.--html-extension
: append extension.html
to webpages of which the URL does not end on.html
or …
-
Rising spam level on my UGent email account
Almost two years ago, UGent implemented anti spam measures that reduced the amount of spam messages in my UGent email account considerably from 20 something each day to zero. But recently the daily amount of spam that reaches my inbox is growing again in an unfavorable way:
-
Using custom LaTeX document classes in LyX
For writing with LaTeX I prefer using LyX because it hides the ugliness of LaTeX source code behind a pseudo-WYSIWYG frontend (the developers call it WYSIWYM: what you see is what you mean ). Including mathematical expressions, however, is very LaTeX minded and comfortable: you type LaTeX math constructs (stuff with …