Re: check if the values are prensent in a list of values

2008-09-09 Thread flit
On 9 set, 15:13, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > Matt Nordhoff a écrit : > (snip) > > > I'm not judging whether this is a good solution or not, but that's a > > silly use of a dict. > > Yeps, but a somewhat common one in code predating the apparition of sets > as builtin type. Tha

check if the values are prensent in a list of values

2008-09-09 Thread flit
Hello All, I will appreciate the help from the more skillfull pythonistas.. I have a small app that generates a sequence like 00341 01741 03254 This values I am putting in a list. So I have a list = [00341,01741,03254] after the programs find the sequence 03401 this sequence is "new" so it ap

Advice from senior Members

2008-05-23 Thread flit
Hello All, I am looking for some experience from the senior members. Now I am doing a simple desktop application, this application will have 3 main functions: 1- Read information about the desktop system; 2- Interact with the user; 3- Send information to a server. The first part, reading informa

Re: Simple search and Display system, no need for db?

2007-07-11 Thread flit
On Jul 11, 3:06 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > If the data is not too large, simple text files would do. Maybe in CSV > format. Either with building and department as columns in the files or > coded into the file name or path. That seems to be a good idea, but I am af

Simple search and Display system, no need for db?

2007-07-10 Thread flit
Hello All, I was discussing with a friend and we get in a hot debate. We have homepage that act like a name list. The user goes there: - Choose the building -- Department and the user receive an html table with all names . So the user gives two inputs and receive the names. Currently we are u

Re: way to extract only the message from pop3

2007-04-04 Thread flit
Yep you are right.. I made an filter to get the data in the message I want.. So it´s not the most beatiful code, but works. :) On Apr 4, 4:11 am, Tim Roberts <[EMAIL PROTECTED]> wrote: > "flit" <[EMAIL PROTECTED]> wrote: > > >Using poplib in python I can extra

way to extract only the message from pop3

2007-04-03 Thread flit
Hello All, Using poplib in python I can extract only the headers using the .top, there is a way to extract only the message text without the headers? like remove the fields below: " Return-Path: X-Original-To: Received: from [ by (Postfix) with ESMTP id B32382613C for Tue, 3 Apr

Re: Technical Answer - Protecting code in python

2007-03-21 Thread flit
I didn´t reply to the last D´Aprano reply just to avoid this kind of social war. And yes, I know that if I want 100% security I should not distribute my code. And there is a better way that is not doing any code to be more secure and bug-free (now I am using irony). And no, I am not supporter of so

Re: Technical Answer - Protecting code in python

2007-03-21 Thread flit
First I wanna thanks the all people who gives good contribution to this thread, thank you all.. Now I have something more to say: OK, that kind of answer is what I was trying to avoid.. On Mar 21, 1:23 pm, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Wed, 21 Mar 2007 06:36:

Technical Answer - Protecting code in python

2007-03-21 Thread flit
Hello All, I have a hard question, every time I look for this answer its get out from the technical domain and goes on in the moral/social domain. First, I live in third world with bad gov., bad education, bad police and a lot of taxes and bills to pay, and yes I live in a democratic "state" (corr

Re: Python development time is faster.

2006-11-13 Thread flit
One thing I really like, is making "prototypes" on python. Just to test some algorithm or procedure. It is very fast and easy to debug. So after, I make it in c++ (but not too much often, I leave it in python today.) Chris Brat wrote: > I've seen a few posts, columns and articles which state that

Elliptic Curve Simple Example

2006-11-13 Thread flit
Hello, I am trying the Python Cryptography Toolkit, but I didnt succeed, maybe I am not used to technical programming docs. WHat I succeed, using the the AES example to encrypt and decrypt. How Can I change it to use elliptic curves cryptography? Anyone has a working example, in python to use ell

Re: Simple python + html + from --> to python script

2006-10-24 Thread flit
; In this case, the python library reference would have been helpful: > > http://docs.python.org/lib/lib.html > > Cheers, > Cliff > > > flit wrote: > > Man > > Very thanks... > > I really try to find some source of good and simple and nothing.. >

Re: Simple python + html + from --> to python script

2006-10-24 Thread flit
Man Very thanks... I really try to find some source of good and simple and nothing.. Many thanks you are a great help! Steve Holden wrote: > flit wrote: > > Hello All, > > > > I am trying to get information from a form and send it to a python > > script witho

Simple python + html + from --> to python script

2006-10-24 Thread flit
Hello All, I am trying to get information from a form and send it to a python script without success.. Here is my objective: User enters data in form --> form send variables to python script --> script runs and output result. the form code Entre com os dados Entre com os dados Vai magraum

working with ldap files

2006-09-01 Thread flit
Hello All, I am struggling with some ldap files. I am using the csv module to work with this files (I exported the ldap to a csv file). I have this string on a field CN=pointhairedpeoplethatsux,OU=Groups,OU=Hatepeople,OU=HR,DC=fabrika,DC=com;CN=pointhairedboss,OU=Groups,OU=Hatepeople,OU=HR,DC=fab

What make a great community

2006-08-30 Thread flit
Hi all, I had one problem with csv files. And I put the message on 2 microsoft board and in this group. Results: No response from microsoft, and always 3 responses for posts on this lists. I just want to say thank you for all. And notice that this is a great community.. Flit The brazilian

looking for data on csv files

2006-08-28 Thread flit
Hi! I am using the csv modules.. when I use the command: if nome in row[rowcsv]: print "\n" print row[rowcsv] + "\n > " + row[11] + "\n" print "" there is this case: 1- data on file PUItar

Simple HTML display of a select query

2006-08-02 Thread flit
Hi all, How Can I do in the simplest way, display in html one table with the return of 3 collums? Like 1- consult mysql base 2- make the select query 3- show the values. I am a kind of lost in the frameworks, and modules. I think a lot of them with little documentation. Just a simple display in h

Re: Best way to read, and analyze a log file?

2006-08-01 Thread flit
Thanks for all input.. I think I should put all data on a mysql base.. The company will need this for reports and statistics for a year. [EMAIL PROTECTED] wrote: > [EMAIL PROTECTED]: > > > 1- Read the data and put all variables in a list > > 2- Read the data and put all the variables in dictionary

Re: Best way to read, and analyze a log file?

2006-08-01 Thread flit
Not exactly Wha I am looking, this seems to be a good project, but the way to parse the file I already have done that. I am looking in "desing pattern" advices, how to deal with the data. Must I use dbm? Must I make all the statistics and save in a dmf file? Any insights? Gregor Horvath wrote: > H