Although pgfplots supports discontinuities, the method described in the manual is only applicable for the zero crossing and is unable to handle data on both sides of the singularity. As I needed this functionality, I came up with this small hack. The code is rather ugly, the result is not. […]
Blog
As even the original publication on the TIP5P model does not include the exact definition of a kcal, the no-SI-unit-used-hell drives you crazy. The correct answer: the TIP5P model uses the thermochemical calorie which is exactly™ 4.184 J. Obviously, this conversion factor can be factored out easily as the total […]
C++ has great features. And dangerous ones. Consider this piece of code: #include <iostream> using namespace std; #define sizeof(x) __LINE__*4 int main(void) { cout << sizeof(int) << endl; cout << sizeof(int) << endl; } This code is perfectly valid and prints 32 and 36. This error should be extremely hard […]
Today I was asked to calculate the Franck-Condon factors (FC) for nitrogen using the harmonic approximation. As I won’t go into physical details, here’s a two-sentence description: FC factors give a hint on relative intensities of radiation from a molecule and vary from 0 (no radiation) to 1 (quite high […]
Just another issue with svn-merge-repos.pl: # ~/dump/svn-merge-repos.pl -t total ghp:ghp latex:latex foobar:foobar tt:tt snafu:snafu code:code svn: Unable to open an ra_local session to URL svn: Local URL 'file://code' contains only a hostname, no path Died at /root/dump/svn-merge-repos.pl line 274. Although the documentation of the script itself uses relative paths, svn […]
While merging multiple subversion repositories with svn-merge-repos.pl, I got a rather strange error: svnadmin: File not found: transaction 'yyy', path 'xxx' The last command issued by the perl script was svnadmin dump --revision 86 --incremental '/srv/svn/foobar' | svndumpfilter include '/projects/foobar' | svnadmin load --parent-dir 'foobar' '/srv/svn/total' Apparently, the error is […]
I really like emails. Unfortunately, most of them disturb me when working on a particular issue or talking to people. However, as I wish to be recieve an answer rather quickly, I am keen to answer emails quickly, as well. So how to combine the urge to be available all […]
For my bachelor’s thesis, I spend some time convincing LaTeX to create tables in a fashion I like. One part of this adventure was changing the color of the horizontal rulers and shading both headers as well as selected rows. The screenshot gives an example how this looks like. Do […]
Creating an image like this was my goal – but I didn’t take into account my “you-work-on-sunday-bad-luck”. To keep things simple: don’t try to use the spy module for documents you have to compile with latex. Use pdflatex instead. Otherwise you might get this For the sake of completeness, here’s […]
When updating LimeSurvey from version 1.92 to 2.0+, I ran into the following error message: CDbCommand failed to execute the SQL statement: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'limesurvey.lime_survey_links' doesn't exist There are some posts concerning the issue, that suggest starting from a fresh installation. As I […]
When preparing presentations with sozi, you define all frames, viewports and transitions with respect to one defined aspect ratio. Unfortunately, sometimes the aspect ratio of the screens or beamers actually used for the presentation is unknown at this stage. Moreover, if you’re supposed to repeat your talk, you might not […]
Currently, I’m interested in fitting data on some rather strange functions. Sometimes, I don’t even know the exact function, so I expected the solution to be easier in case I come up with a complicated function and sufficient free parameters and let the computer do the fitting. The sample data […]