Re: How to update DNS record

2007-03-01 Thread Andi Clemens
Martin P. Hellwig wrote: > I'll looked at the perl function you mentioned and it seems to me (but > I'm not a pearl coder) that it uses the dynamic update procedure, which > is explained by the RFC 2136 (Bjoern mentioned that already). > > So I googled for "Python DNS dynamic update" and in the r

Re: How to update DNS record

2007-03-01 Thread andi . clemens
Hi, I'm just a trainee working here and I don't really know how the old Perl script worked. But I can post the function, maybe you can recognize what is going on there: my $domain = "wiv-dom.com"; my $nameserver = "bldc01.wiv-dom.com"; sub makeDNSEntry { my $res = new Net::DNS::Resolver;

Re: How to update DNS record

2007-03-01 Thread andi . clemens
On Mar 1, 10:33 am, Bjoern Schliessmann wrote: > Read RFC 2136 (Dynamic updates in the DNS) and see if your server > can be configured to do this. If not, you'll have to change the > zone files manually and reload the DNS config. It worked before with a perl script, but now I'm using django for a

How to update DNS record

2007-02-28 Thread Andi Clemens
Hi, I want to update our DNS servers periodically with some IP addresses. But I don't know how to do this. I searched the Internet quite a while but I haven't found a good example how to do this. I want to change the A-Record for some IPs, this shouldn't be too hard. I looked at dnspython and twis

Logfile analysing with pyparsing

2006-09-25 Thread Andi Clemens
Hi, we had some problems in the last weeks with our mailserver. Some messages were not delivered and we wanted to know why. But looking through the logfile is a time consuming process. So I wanted to write a parser to analyse the logs and parse them as XML. But I have never written a parser befor

Re: Daemonizing python

2006-09-24 Thread Andi Clemens
Hi, what is the main difference of running a python program as a daemon or as a cronjob? I have written a program at work that checks all internet connections of our failover sites and saves the results in a MySQL-database. The whole program is made with django (a webframework) so I had to be

Re: matplotlib: TypeError: a float is required

2006-09-17 Thread Andi Clemens
Tim Heaney found out what the problem is, thanks for your help! ;-) Andi John Machin wrote: > Andi Clemens wrote: >> All examples were taken from the matplotlib-homepage but they won't work >> on my installation and I don't know why. >> You point out that &quo

Re: matplotlib: TypeError: a float is required

2006-09-17 Thread Andi Clemens
THATS IT! Thanks! But why are all the examples wrong? Maybe they changed the API? Andi Tim Heaney wrote: > Andi Clemens <[EMAIL PROTECTED]> writes: >> everytime I try to plot a bar with matplotlib I get the following >> error message: >> Traceback (most r

Re: matplotlib: TypeError: a float is required

2006-09-17 Thread Andi Clemens
Sorry but english isn't my native language so I don't really get what you are trying to tell me, it took me quite a long time to figure out what SFA means (I guess it is Sweet Fanny Adams => nothing at all). All examples were taken from the matplotlib-homepage but they won't work on my installa

Re: matplotlib: TypeError: a float is required

2006-09-17 Thread Andi Clemens
btw, these are the versions I'm using (Archlinux): Python: 2.4.3 (python-2.4.3-3) matplotlib: 0.87.4 (python-matplotlib-0.87.4-1) PyGTK: 2.8.6 (pygtk-2.8.6-3) Andi Andi Clemens wrote: > Hi, > > everytime I try to plot a bar with matplotlib I get the following error > mes

matplotlib: TypeError: a float is required

2006-09-17 Thread Andi Clemens
Hi, everytime I try to plot a bar with matplotlib I get the following error message: Traceback (most recent call last): File "bar_stacked.py", line 13, in ? p1 = bar(ind, menMeans, width, color='r', yerr=womenStd) File "/usr/lib/python2.4/site-packages/matplotlib/pylab.py", line 164