python

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.

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:

Subscribe to RSS - python