Vergeudete Zeit

Leider geschieht es von Zeit zu Zeit dass man nicht seine gewollte Produktivitaet erreichen kann.
Oft ist man selber daran schuld, aber wenn z.B. das System mit welchem man arbeiten, beziehungsweise deren Konfiguration
sich als das Hindernis erweist ist es schon sehr aergerlich.

Gerade passiert es mir dass ich etwa 10mal langsamer bin als ich sein koennte. Echt schade, aber auch wenn man Geld
dafuer bekommt, das ist eigentlich keine Arbeit, fuer die es sich lohnt.

So hoffentlich hilft das erstmal gegen den Frust.

Use gnuplot in python

Usually I use gnuplot to plot some data.
If you calculate things in c++ you have to see the output using gnuplot quite often, so there should be some automation
to generate the plots. python is perfect for it.

Let's assume you have "programm.dat" with your data.

# Import the gnuplot packages
import Gnuplot, Gnuplot.funcutils

plot = Gnuplot.Gnuplot()
plot('set terminal eps')
plot("set output 'programm.eps'")
plot("plot 'programm.dat' title 'Data'")
plot('quit')

That's it.

Ouput double data with scientic precision

If you don't use the c functions to output data you can use the following code
to write stuff into the output/file


std::cout << scientic << variable << std::endl;

Blog:

Pioneer-Anomalie gelöst

Seit langem war bekannt dass die beiden Sunden Pioneer 10[1] und Pioneer 11 [2] ein wenig von
ihrer Bahn abwichen. Die Sonden schienen von einer unbekannten Kraft abgebremst.

Dabei konnte man sich lange nicht erklären woher der Effekt kam, so dass diverse Theorien aufgebracht wurden

Compiler Optimisation

We are doing some numeric calculations for university directly in c++, so it's as fast as possible.

One thing which makes c++ such fast are the compiler optimisations which helps to reduce the amount of code and speed things up by applying some logic.

For example

if (a + b > b)

can be converted to

if (a > 0)

You think this is a good optimisation? Often yes but in general no. Here is an example which cost me more then one day of debugging/deassembling etc.

Numerik - Motivation

Bei verschiedenen Mathematischen/Physikalischen Problemen benutzt man die Numerische Mathematik
um eine Lösung zu erhalten.

Dabei gibt es zwei unterschiedliche Hauptgründe:

  • Es existiert keine analytische Lösung. Dies bedeutet man
    kann die Lösung nur annähern und nicht mehr exakt darstellen.

    Beispiele für solche Probleme gibt es sehr viele, z.B. fast jede Art von Simulation, wie z.B. mehr als 3 Teilchen.

  • Es existiert zwar eine Lösung nur ist sie nicht ausreichend schnell für eine schnelle Berechnung mit einem Computer.

Move a certain form element to any place you want via pre_render


/**
* Move form elements into fieldsets for presentation purposes.
*
* Many views forms use #tree = TRUE to keep their values in a hierarchy for
* easier storage. Moving the form elements into fieldsets during form building
* would break up that hierarchy. Therefore, we wait until the pre_render stage,
* where any changes we make affect presentation only and aren't reflected in
* $form_state['values'].
*/

using QWebElement with python

Inspired by http://drupal4hu.com/node/266 in started to write a small python script which fills out the cisco "network authentication system" on my home.

Therefore the script has to fill out a form and click a Login button. My connection drops every 8 hours so i thought it would be cool to automatically login every 8-N hours so i don't have to do it automatically any more.

So here is a small script

Inspired from http://drupal4hu.com/node/266

These lines will get us the modules we need.

from PyQt4.QtCore import QUrl, SIGNAL
from PyQt4.QtGui import QApplication

Blog:

using QWebElement with python

Inspired by http://drupal4hu.com/node/266 in started to write a small python script which fills out the cisco "network authentication system" on my home.

Therefore the script has to fill out a form and click a Login button. My connection drops every 8 hours so i thought it would be cool to automatically login every 8-N hours so i don't have to do it automatically any more.

So here is a small script

Inspired from http://drupal4hu.com/node/266

These lines will get us the modules we need.

from PyQt4.QtCore import QUrl, SIGNAL
from PyQt4.QtGui import QApplication

Blog:

drupal is unique

Drupal is indeed unique.

It's not the software, it's not the money, it's not the drupalcon itself, it's the community.

Every person i met here on drupalcon is so friendly that i cannot find words for this.
Sorry for everyone which had other experiences but you might do something wrong.

Drupalcon is the community!

Blog:

Pages

Subscribe to Daniel Wehner RSS