Two days. Two days I'm working to find a bloody number. First I tried with brute force searching. But because that appeared not very feasible, I had to think of a more clever way to find it. Which I did. No brute force exhaustive search, just some matrix multiplication stuff …
-
-
Script for easier adding subversion ignore rules
It's possible to make Subversion ignore unversioned files, so they don't show up in the status overview and you get a better signal to noise ratio. The command line interface to add ignore rules this is however a bit clunky. First, you need to remember following command:
svn propedit svn …
-
LaTeX: promille/permille sign
I needed the LaTeX code for the sign that is called the "promille" sign in Dutch. It's the sign like the percent sign "%" ("procent" in Dutch), but with two circles at the bottom. Googling for "latex promille" was not very successful, so I thought this would be a good botsnack …
-
Blender: background rendering
Yesterday I had to render a 3d animation for a colleague working on 3D television. He needed a short street-view video with depth map. Because there were some problems with some real world footage he wanted to use, he asked me to create an artificial video in Blender. After I …
-
My experiences with hosting a Drupal website on One.com
Drupal didn't work out of the box and gave the following white screen of death:
500 Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.
After some research I found out that One.com hosting didn't like Drupal's default
.htaccess
file … -
Parsing the subversion Id keyword with python
Parsing a subversion Id keyword is just a matter of some regular expression magic:
# use the built in regular expression library import re # the subversion Id keyword svnid = '$Id: svnidparse.py 1234 2008-02-19 09:59:27Z joske $' # bow for the mighty regular expression svnidrep = r'^\$Id: (?P<filename>.+) (?P<revision …
-
Yay, I'm joining Krimson to DrupalCon Boston 2008
It's official now: I'm joining Krimson on their trip to DrupalCon Boston 2008!
Not more than a month ago, the nice people of Krimson offered to fund the trip and stay at DrupalCon Boston for someone from the Belgian/European Drupal community. At first I didn't really consider filling in …
-
LaTeX trick: putting the subversion revision number on every page
I mostly use LaTeX for writing documents (LyX actually, but that doesn't matter here) and use Subversion for version control. For managing the revision info of a source code file I use Subversion's built in feature Keyword Substitution which expands some special keyword (like
$Date$
or$Revision$
) in the source … -
LaTeX trick: customizing captions
Captions of floats (figures and tables) in LaTeX are by default typeset the same way as the body text. For better readability it could be appropriate to use a different font, font size or margin for the captions. This is possible with the LaTeX package caption.
For example, with the …
-
Extract images from a PDF document
When you want to extract a bitmap image from a PDF document, it is tempting to do the "print screen" trick. The drawback of this approach is that you'll inevitably lose quality: the image pixels will typically not map to your screen's pixels in a one to one fashion because …