I would like to analyze a maillog. The maillog is automatically generated
and every mail sent is added to the log. I would like to check if someone
send more than 5 mails pr minute (spams) and if so, get Python to send a
warningmail to the mailmaster.
How would I in the best way read the log? To o
Hello.
I need to query the whois at Ripe.net. It tells me to connect to port 43.
I have found a description how to connect with .Net.
http://www.aspheute.com/english/2825.asp I am not very familiar with
network protocols, but assume this will be no big problem with Python. Can
someone point me
I have opened an FTP connection, and use the following to download a logfile:
f = open('c:///web.log','w')
ftp.retrlines('RETR ex050202.log', f.write)
I have also tried with f.writelines.
It works, but not as well as I would like. All the \n's are removed. How
can I download an exact copy, so th
I am creating a little application that demonstrates some tasks on the
screen for the user, but cannot seem to click the left mousebutton.
I have moved the cursor to the correct position by
>>> from ctypes import *
>>> windll.user32.SetCursorPos(100, 400)
and would like to click the left mousebu
Hello.
I am trying to make a loginbox for a program, and need to make a somewhat
safe passwordroutine.
Will this work?
import md5
h = md5.new()
h.update(password)
h.hexdigest()
The user enters a password first. These lines will create a string:
'12c0faae657b3d068c0f19b71f5b43bc' This string wil
Hello.
I have created a program that automatically downloads some files I need.
It can be .zip, .jpg, .mpg or .txt. However, a lot of the time urlretrieve
downloads the file, gives no error, but the downloaded file is corrupted.
I use a simple check for the size of the file. If it is way too small
Hello.
I am trying to write a gui that has a lot of checkboxes. It is over 200
different ones. I use a for statement to generate:
ver = 200
for i in ['Car','House','Boat','Plane']:
self.fra26_che01p = Checkbutton (self.fra26)
self.fra26_che01p.place(in_=sel
even more.
Does anyone have any suggestions of what I should do? Is Stackless Python
an option? Is there some other steps I could take? Some basic steps?
Thanks in advance,
Øyvind
class start:
filles = open("var.txt","r") into memory
def oppned(self):
ret
Hello.
I need to run a program
(http://www.microsoft.com/ntserver/nts/downloads/management/uptime/default.asp)
thru Python. It is normally run such as "uptime AUTO-SRV-001 /s
/d:04/01/2005" in the command prompt. Is it possible to run a already
compiled exe file in Python and thereafter get the re
> import commands
>>>> commands.getoutput("uptime AUTO-SRV-001 /s /d:04/01/2005")
>
> that should do it
>
> On 8/9/05, Øyvind <[EMAIL PROTECTED]> wrote:
>>
>> Hello.
>>
>> I need to run a program
>> (
>> http://www.microso
Hello.
I have been reading the
http://wiki.wxpython.org/index.cgi/Getting_20Started manual and are
running the program there. (Enclosed below).
When I run it, it works fine. But, when I run it again, I get the error
PyNoAppError: The wx.App object must be created first! I assume I have
killed the
Sorry... Forgot all about that.
Using WinXP, ActiveState Python 2.3 and wx-version 2.6.1.0.
I run it in ActiveStates Interactive Window, which is IDLE (I think).
Thanks in advance
http://mail.python.org/mailman/listinfo/tutor
Hello.
I am writing a program that reads in a text file, extracts each of the
words and replaces a different document with the words. It works great
until it encounter a non-english letter.
I have tried the following:
self.f = codecs.open(ordliste, 'r', 'utf-8')
where I open the first file.
And
>Where are you getting these errors (what line of the program)? Do you
know >what kind of strings objSelection.Find.Execute() is expecting?
>
>Kent
The program stops working and gives me these errors when I try to run it
when it encounters a non-english letter.
This is the full error:
Traceback
Øyvind wrote:
>
>>Where are you getting these errors (what line of the program)? Do you
>
> know >what kind of strings objSelection.Find.Execute() is expecting?
>
>>Kent
>
>
>> The program stops working and gives me these errors when I try to run it
>
Michael Lange wrote:
>> I haven't read all of this thread, but maybe you are trying to pass a
>> non-utf8 string to the utf8 codec?
>Yes, I guess that much is pretty clear - there is some data in the source
>file that is not valid utf-8.
I tried the error='replace' as you suggested and the progr
>The important question is, what is actual encoding of your source data?
>>
>> Is there anything else I could try?
>Understand why the above question is important, then answer it. Until you
do >you are just thrashing around in the dark.
The source is a text-document that as far as I know only co
>> Might the problem only be related to Win32com, not Python since Python
>> prints it without trouble?
>That's another issue. First you need to know what you are starting with.
>You really should read this:
>The Absolute Minimum Every Software Developer Absolutely, Positively Must
>Know About U
Hello.
I need to get some whois-info from whois.ripe.net. I have been able to
connect and get the info that I need, but I would like to know what is the
most 'polite' way of doing so. I need to do quite a few whois lookups
(from my server logs) and don't want to risk creating more hassle for
their
I have one function that finds some values. Then I want that function to
find new values based on the values it found first. However, by just
looping, it starts on an eternal job.
As illustrated in:
>>> list = [1,2,3]
>>> list2 = list
>>> list2
[1, 2, 3]
>>> for i in list:
... print i
...
Hello.
I am trying to find some Pythonmodules to work with some webserver logs. I
have found http://www.mnot.net/python/WebLog/, but it is very old (from
1999). And when I try to serach in Google and so forth, all I get is
Python weblogs as in blogs. Do you have some suggestions of other sites
a
Hello.
I am trying to write a module that lets me check whois-info of ip-adresses:
import socket
class whois:
pass
def ip(self, adresse):
self.s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.s.connect(('whois.ripe.net', 43))
#self.s.connect(('whois.nor
Hello.
I have made some programs using wxPython (PythonCard). They all seem to
have one common nominator. When the program are doing something unrelated
unrelated to the graphics (for example, ftp's, works with a document or a
file), the graphics freezes. It does unfreeze afterwards, but since the
Hello.
Is it possible to read the bits (the 0's and 1's) of a string or a file
with Python? What module would I use?
Thanks in advance,
Øyvind
--
This email has been scanned for viruses & spam by Decna as - www.decna.no
Denne e-posten er sjekket for virus & spam av Decna
pened in a new tab in Firefox regardless. Any suggestions?
Thanks in advance,
Øyvind
--
This email has been scanned for viruses & spam by Decna as - www.decna.no
Denne e-posten er sjekket for virus & spam av Decna as - www.decna.no
___
T
Try to rephrase that question. I don't think I was the only one not
understanding what you are asking?
>how do i clear the scseer ??
>suppose i have two pages to display one
>after the other ,how should i do it ?
--
This email has been scanned for viruses & spam by Decna as - www.decna.no
De
be a more efficient way of writing it without writing it
several times?
Thanks in advance,
Øyvind
--
This email has been scanned for viruses & spam by Decna as - www.decna.no
Denne e-posten er sjekket for virus & spam av Decna as - www.decna.no
_
k' is, as most all sites assumes one should. So, the simpler
the better...
Thanks in advance,
Øyvind
--
This email has been scanned for viruses & spam by Decna as - www.decna.no
Denne e-posten er sjekket for virus & spam av Decna as - www.decna.no
___
Hello.
I have a database where I have some IP-ranges. Then I have some logs over
IPs from customers and need to connect the two.
So, for example:
Range 1:
123.132.122.4-123.132.122.255
How do I check if IP 123.132.122.58 is a part of that? I have thought
about 4 if statements:
split(.)
if ip[0
Hello.
I need to access SMTP with SSL and found this patch:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1567274&group_id=5470
But, I cannot find anything with Google or in the Python documentation
about how to apply a patch.
Ok, one slight modification. I did find something:
5.
Hello.
I am trying to fill in a webform, and have tried using
Clientform/mechanize, but cannot seem to get it right. Here is the code:
from urllib2 import urlopen
import ClientForm
from ClientForm import ParseResponse
response =
urlopen("http://www.datateam.no/boc/bocadresse.nsf/wMedlemsoek?Open
Hello.
I have been writing some scripts that gets data from a MSSQL-database.
However, it is very slow. If I use the script, the retrieving of data and
displaying in html takes close to 30 seconds. If I use the SQL Server
Management Query, the same query takes a second or two. Why this enormous
di
>One question is whats the best GUI library to build from?
WxPython is a very good one. However, you should look into Pythoncard
(http://pythoncard.sourceforge.net/) which lets you build WxPython even
easier.
--
This email has been scanned for viruses & spam by Domenebutikken -
www.domenebutik
Hello.
I am trying to gather some information from a webpage:
side = urlopen("http://www.website.no";)
rawstr = r"""spy.target="_top">(.*?)$"""
rawstr2 = r"""spy.target2="_top">(.*?)$"""
compile_obj = re.compile(rawstr, re.IGNORECASE| re.MULTILINE| re.VERBOSE
| re.UNICODE)
compile_obj2 = re.com
Hello and thank you
for your help.
Scratchy seems like
a really good product...
Have a nice
day,
Øyvind
Øyvind wrote:
> Hello.
>
> I am trying to find some Pythonmodules to work with some webserver logs. I
> have found http://www.mnot.net/python/WebLog/, but it is ve
Hello.
I need to get the mailbox size out from Exchange. I have been googling and
all I have found is how to get the size from my personal mailbox. But,
that is not what I need. I need to find the sizes of the mailboxes for all
users.
Does anyone know of any modules that works towards the central
36 matches
Mail list logo