Globals are not global in Python

Well, the title already says it. Globals are module wide, not global global…. This means, that if you do The global would not change. This is because the global keyword only makes variables accessible to the module level – not beyond. So if you instead of importing the module execute the file, it will run …
Continue reading Globals are not global in Python

Running a Jupyter Notebook remotely in single line

In order to run a Jupyter Notebook on a remote server (here: SERVER), one usually first opens a shell, logs in on the remote server, starts the jupyter notebook server. Then usually you open a new shell, and forward a local port using ssh. And finally you open the notebook webpage in your browser (here: Firefox). …
Continue reading Running a Jupyter Notebook remotely in single line

Eclipse/Texlipse: bibtex file in different directory

I recently ran into the problem that I have a common library where i store all my Bibtex references, but Eclipse/Texlipse refused to find it, although I linked the library file from within the project folder. The solution is rather simple, as it just requires setting the BIBINPUTS evironment variable, so Bibtex can find the …
Continue reading Eclipse/Texlipse: bibtex file in different directory

Eclipse/Subversive: DH keypair issues

I recently had the issue that one of the SVN servers that I regularly use refused to connect anymore. In the command line, everything wored as intended, but using Subversive within Eclipse did not work. I got a popup window, containing the following information: java.lang.RuntimeException: Could not generate DH keypair The problem was, that the …
Continue reading Eclipse/Subversive: DH keypair issues

Python autocompletion in VIM

Having autocompletion (and some other nice stuff) for Python in VIM is not only a nice feature, but something allowing you to be more efficient when programming Python. First see the result: Youtube: http://www.youtube.com/watch?v=TNMjbaimk9g To make the functionality (and color scheme) available, download the tarball (pythonVim.tar.gz) and extract it in your home directory (i.e. /home/your_user_name), …
Continue reading Python autocompletion in VIM

Linux: use SSH with X11 forwarding and compression for better performance

To get better performance when using X11 forwarding (either with the -X or -Y option) with a SSH connection, one should enable data compression: $ ssh -X -C -c blowfish-cbc,arcfour to avoid enabling compression with each command, one could enable it permanently in the configuration file ($HOME/.ssh/config):   Cipher blowfish Ciphers blowfish-cbc,aes128-cbc,3des-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc Compression yes …
Continue reading Linux: use SSH with X11 forwarding and compression for better performance

Scrum mit Redmine und Eclipse

Nachdem ich heute Redmine aktualisiert, den Eclipse Redmine-Mylyn-Connector neu eingerichtet und auch das Redmine ‘Backlogs’ Plugin aktualisiert habe, möche ich an dieser Stelle einen kurzen Erfahrungsbericht liefern. Zwar setzte ich nicht direkt Scrum als Entwicklungsprozess ein (dazu ist die Anzahl der beteiligten Personen zu gering), jedoch verwende ich einige der in Scrum enthaltenen Methoden. Ein …
Continue reading Scrum mit Redmine und Eclipse