published by dereine on 14. June 2011 - 14:59
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.
published by dereine on 12. September 2010 - 21:17
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
published by dereine on 12. September 2010 - 21:08
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