Re: python xml DOM? pulldom? SAX?

2005-08-29 Thread William Park
TACK[2]} in title.page.*) title=$1 ;; text.revision.page) text=$1 ;; esac } end() # Usage: end tag { case $1 in page) echo "title=$title text=$text" ;; esac } expat -s start -d data -e end < f

a list of Checkbuttons

2005-08-29 Thread William Gill
OK I'm tired, I've got a cold, and my brain isn't working very well. I have a result set ( a tuple of tuples) from a db. Each element has two elements; classification number, and classification heading. i.e. result=((001,'heading one'),(002,'heading two'),...) classification numbers may not

Re: File parser

2005-08-29 Thread William Park
Angelic Devil <[EMAIL PROTECTED]> wrote: > BAR > END BAR > > FOOBAR > END FOOBAR man csplit -- William Park <[EMAIL PROTECTED]>, Toronto, Canada ThinFlash: Linux thin-client on USB key (flash) drive http://home.eol.ca/~parkw/thinflash.html

graphical or flow charting design aid for python class development?

2005-08-31 Thread William Gill
Being somewhat new to Python, and having a tendency to over complicate things in my class design, I was wondering if anyone can suggest a simple graphical or flowcharting tool that they use to organize their class and program design? Because of a 55 mph head-on accident a few years back, I ha

Re: graphical or flow charting design aid for python class development?

2005-08-31 Thread William Gill
loring, thanks. Bill > > http://www.python.org/doc/2.0.1/lib/module-pyclbr.html > > William Gill wrote: > >>Being somewhat new to Python, and having a tendency to over complicate >>things in my class design, I was wondering if anyone can suggest a >>simple graphica

Re: graphical or flow charting design aid for python class development?

2005-08-31 Thread William Gill
On first glance Doxygen doesn't look like the ticket, but the screen shots of Eric3 look VERY promising. I have already downloaded it, and will try it. Thanks, Bill tooper wrote: > You may want to use Doxygen, which generates nice diagrams. It's > normally only for C++, but there are nice filt

scroll a frame to display several lines of widgets at a time

2005-09-01 Thread William Gill
I need to display a couple of labels and a checkbox from each entry in my database. Simple enough, but there are several hundred records, and I only want to display 5 or 10 at a time. Can this be accomplished by putting everything in a Frame(), using width, height, grid_propagate(0) , and a s

Re: graphical or flow charting design aid for python class development?

2005-09-01 Thread William Gill
Thanks everyone. I will explore all the suggestions, but it looks like SPE is the immediate answer. Bill William Gill wrote: > Being somewhat new to Python, and having a tendency to over complicate > things in my class design, I was wondering if anyone can suggest a > simple gra

Re: scroll a frame to display several lines of widgets at a time

2005-09-02 Thread William Gill
>yscroll = Tkinter.Scrollbar( , orient=Tkinter.VERTICAL) >yscroll.grid( ... ) >yscroll['command'] = canvas.yview >canvas['yscrollcommand'] = yscroll.set > Probably, not needed now that I have re-thought the situation, but I do have several occasio

Re: dual processor

2005-09-04 Thread William Park
might be info from people trying to make > Python run 64-bit, on multiple processors? Thanks! Break up your problem into 2 independent parts, and run 2 Python processes. Your kernel should be SMP kernel, though. -- William Park <[EMAIL PROTECTED]>, Toronto, Canada ThinFlash: Linux thi

Re: Sorting Unix mailboxes

2005-09-15 Thread William Park
hon script, perhaps, you should look at man procmailrc man formail and take the relevant process and implement that in Python. -- William Park <[EMAIL PROTECTED]>, Toronto, Canada ThinFlash: Linux thin-client on USB key (flash) drive http://home.eol.ca/~parkw/thinflash.html

Re: Python CSV writer confusion.

2005-09-15 Thread William Park
googleboy <[EMAIL PROTECTED]> wrote: > Hi. I am trying to write out a csv file with | instead of comma, > because I have a field that may have many commas in it. I read in a > csv file, sort it, and want to write it out again. CSV can handle comma within the field. -- Willi

Re: Converting HTML to ASCII

2005-02-24 Thread William Park
dumped > the JavaScript as well. > > 2) Not embellish the text in any way - no asterisks, > no bracket links, no __ for underlines. > > Can anyone direct me to something which could help me > for this? man lynx man links man w3m -- William Park <[EMAIL PROTECTED

Re: Question of speed - Flat file DBMS

2005-03-06 Thread William Park
s to which language will be faster, python or C++?? GDBM. It's already flat file. -- William Park <[EMAIL PROTECTED]>, Toronto, Canada Slackware Linux -- because it works. -- http://mail.python.org/mailman/listinfo/python-list

Re: Help With Hiring Python Developers

2004-12-03 Thread William Park
e that you don't know what you are doing, so you're simply listing what any clueless HR would be doing. - Manhattan, New York is expensive place to live in, even you're paying Manhattan dollar. Instead of listing what I should know, why don't you list what I

Re: Parse XML using Python

2004-12-09 Thread William Park
e.eol.ca/~parkw/park-january.html on "Expat XML" section towards the end. Translating it to Python is left for homework. In essence, indent=.. start () { local "${@:2}" echo "${indent|*XML_ELEMENT_DEPTH-1}$label" } xml -s start &qu

Re: No acceptable C compiler was found in $PATH

2004-12-20 Thread William Allison
On Mon, 20 Dec 2004 03:58:20 +, banaticus wrote: > > What does this error message mean? What can I do to fix it? > > Here'e the command that I just tried running, and the messages that > I received. I just barely unpacked python. > > linux:/Python-2.4 # ./configure > checking MACHDE

Re: XML parsing per record

2005-04-16 Thread William Park
er to it. You can feed small piece at a time, say by lines or whatever. Of course, it all depends on what kind of parsing you have in mind. :-) Care to post more details? -- William Park <[EMAIL PROTECTED]>, Toronto, Canada Slackware Linux -- because it works. -- http://mail.python.org/mailman/listinfo/python-list

Re: XML parsing per record

2005-04-21 Thread William Park
Willem Ligtenberg <[EMAIL PROTECTED]> wrote: > On Sun, 17 Apr 2005 02:16:04 +, William Park wrote: > > Care to post more details? > > The XML file I need to parse contains information about genes. > So the first element is a gene and then there are a lot sub-element

Re: Fast plotting?

2005-04-27 Thread William Park
e (and well > integrated with most or all GUI toolkits). Unfortunately it is just too > slow -- at least when driving plots integrated with the Tkinter app. (It > is getting faster and so are computers, so at some point this will be a > great way to go. But for now...) > &g

Windows 10 and PYODBC

2015-12-09 Thread William Abdo
age file for product=NETWORK, facility=TNS ns secondary err code: 0 nt main err code: 530 TNS-00530: Message 530 not found; No message file for product=NETWORK, facility=TNS nt secondary err code: 126 nt OS err code: 0 Respectfully, William Abdo Software App Engineer II NTT A

RE: Windows 10 and PYODBC

2015-12-13 Thread William Abdo
Problem Resolved. I have fixed the Oracle connection issue under Windows 10 with cx_Oracle . PYODBC was only failing on the Oracle connection and worked fine on MS SQL under Windows 10. Thank You for your time in this matter. Respectfully, William Abdo Software App Engineer II NTT America, an

RE: Windows 10 and PYODBC

2015-12-15 Thread William Abdo
tchall() print "#rows=" + str(len(prows)) + '\n' tscnt = len(prows) Good Luck! If you have more questions just ask. Respectfully, William Abdo Software App Engineer II NTT America, an NTT Communications Company Office: +1 561.912.2434 Email:w.a...@ntta.com<mailto:w

RE: Windows 10 and PYODBC

2015-12-16 Thread William Abdo
Yes Paul Hermeneutic , that is correct. I tried everything I could however, I was unable to make PYODBC talk to Oracle under Windows 10. Maybe there are smarter than me that can make this work. For me it was easier to just use cx_Oracle for the Oracle connection. Respectfully, William

RE: Windows 10 and PYODBC

2015-12-16 Thread William Abdo
As you wish, [issue577] PYODBC will not talk to Oracle under Windows 10. Respectfully, William Abdo Software App Engineer II NTT America, an NTT Communications Company Office: +1 561.912.2434 Email:w.a...@ntta.com<mailto:w.a...@ntta.com> [https://rvip.team-center.net/externals/images

RE: Windows 10 and PYODBC

2015-12-16 Thread William Abdo
issue 25875 created I put it in the wrong area the first time. First time bug tracker user errors. Respectfully, William Abdo Software App Engineer II NTT America, an NTT Communications Company Office: +1 561.912.2434 Email:w.a...@ntta.com<mailto:w.a...@ntta.com> [https://rvi

Help please, why doesn't it show the next input?

2013-09-10 Thread William Bryant
Hey, I am very new to python, I am 13 years old. I want to be able to make a program the caculates the mean, meadian and mode. When i run the program, an input field pops up and says 'Does your list contain, a number or a string?' like I want it to, but when I type in something that is not one o

Re: Help please, why doesn't it show the next input?

2013-09-10 Thread William Bryant
On Wednesday, September 11, 2013 5:11:23 PM UTC+12, John Gordon wrote: > In William Bryant > writes: > > > > > Hey, I am very new to python, I am 13 years old. I want to be able to make = > > > a program the caculates the mean, meadian and mode. When i run

Re: Help please, why doesn't it show the next input?

2013-09-11 Thread William Bryant
@Dave Angel What is .lower() ? -- https://mail.python.org/mailman/listinfo/python-list

Re: Help please, why doesn't it show the next input?

2013-09-11 Thread William Bryant
@Jugurtha Hadjar What does user_input.lower() mean/do? -- https://mail.python.org/mailman/listinfo/python-list

Re: Help please, why doesn't it show the next input?

2013-09-11 Thread William Bryant
and the mode of a list of strings because that is what we are *# #* learning in math atm in school :P *# #*

Re: Help please, why doesn't it show the next input?

2013-09-13 Thread William Bryant
On Thursday, September 12, 2013 9:39:33 PM UTC+12, Oscar Benjamin wrote: > On 12 September 2013 07:04, William Bryant wrote: > > > Thanks everyone for helping but I did listen to you :3 Sorry. This is my > > code, it works, I know it's not the best way to do it and it&#x

Re: Help please, why doesn't it show the next input?

2013-09-13 Thread William Bryant
Thanks for the contructive critisism - :D I'll try fix it up! -- https://mail.python.org/mailman/listinfo/python-list

How do I calculate a mean with python?

2013-09-16 Thread William Bryant
Hey I am new to python so go easy, but I wanted to know how to make a program that calculates the maen. List = [15, 6, 6, 7, 8, 9, 40] def mean(): global themean, thesum for i in List: thecount = List.count(i) thesum = sum(List) themean = thesum / thecount Why doesn't

Re: How do I calculate a mean with python?

2013-09-17 Thread William Bryant
late the mode, median and mean of a list of numbers *# #* and the mode of a list of strings because that is what we are *# #* learning in math atm in school :P *# #* *#

Re: How do I calculate a mean with python?

2013-09-17 Thread William Bryant
learning in math atm in school :P *# #* *# #* Author: William Bryant*# #*

Re: How do I calculate a mean with python?

2013-09-17 Thread William Bryant
Sorry guys, I didn't read anything u said. Because I just figured it out on my own :) I'll read it now. But u can check out my program I have done so far (It works but I think it needs some tidying up.) :) Thanks! -- https://mail.python.org/mailman/listinfo/python-list

Re: How do I calculate a mean with python?

2013-09-17 Thread William Bryant
Thanks to all and @Joel Goldstick, I am learning python through youtube. They explained Global and Local variables to me. :) Thanks for that critisism, it really helps. I am 13 years old and I am looking forward to studing programming in University! :DD -- https://mail.python.org/mailman/l

Why does it have red squiggly lines under it if it works perfectly fine and no errors happen when I run it?

2013-09-19 Thread William Bryant
the word 'def' has squiggily lines but the program works fine. It says: Syntax Error: expected an indented block. - why? def restart(): print(""" Cacluation DONE! """) restart = input("\nEnter yes if you want to make a new list and no

Re: Why does it have red squiggly lines under it if it works perfectly fine and no errors happen when I run it?

2013-09-20 Thread William Bryant
On Friday, September 20, 2013 11:09:03 AM UTC+12, Ian wrote: > On Thu, Sep 19, 2013 at 1:22 PM, William Bryant wrote: > > > It was the other functions above it. Thanks. but I tried to do the while > > > loop - I don't think I did it right, I am novice in python an

Re: Why does it have red squiggly lines under it if it works perfectly fine and no errors happen when I run it?

2013-09-20 Thread William Bryant
On Saturday, September 21, 2013 1:39:41 AM UTC+12, Duncan Booth wrote: > William Bryant wrote: > > > > > Thanks a lot! I have one more question, is there any way I can make my > > > program work on android tablets and ipads? Because I'd like to use it > &g

Re: Why does it have red squiggly lines under it if it works perfectly fine and no errors happen when I run it?

2013-09-20 Thread William Bryant
On Saturday, September 21, 2013 1:39:41 AM UTC+12, Duncan Booth wrote: > William Bryant wrote: > > > > > Thanks a lot! I have one more question, is there any way I can make my > > > program work on android tablets and ipads? Because I'd like to use it > &g

Re: Returning Values from Bash Scripts

2006-01-07 Thread William Park
text, GDBM, Python source format, etc) and read it back in Python. -- William Park <[EMAIL PROTECTED]>, Toronto, Canada ThinFlash: Linux thin-client on USB key (flash) drive http://home.eol.ca/~parkw/thinflash.html BashDiff: Super Bash shell http://freshmeat.net/pro

Re: Windows vs. Linux

2006-07-30 Thread William Witteman
home, on a completely different platform, and then take it to work and I know it'll Just Work(TM). As a Linux zealot, I'd say use Linux :-) As a pragmatist, use what you find more comfortable, and enjoy yourself. -- yours, William woolgathering.cx -- http://mail.python.org/mailman/listinfo/python-list

Re: Windows vs. Linux

2006-07-31 Thread William Witteman
>You might also like to look at running Cygwin under Windows. It's a >Unix-like command shell that provides nearly every command-line Unix >tool you could want on a Windows box. Can be a little awkward at times, >but it's a huge advantage over raw Windows. Ditto. -- yours, William woolgathering.cx -- http://mail.python.org/mailman/listinfo/python-list

Re: Best IDE?

2006-10-13 Thread William Heymann
On Friday 13 October 2006 08:29, Ahmer wrote: > What do you guys use? Kdevelop 3 > Why? It has good project management, good highlighting and since it is a kde app it supports ioslaves (means I can work with a resource from any location trasnparently like opening up files via sftp) > What do you

Re: Python memory usage

2006-11-07 Thread William Heymann
On Tuesday 07 November 2006 22:42, placid wrote: > Hi All, > > Just wondering when i run the following code; > > for i in range(100): > print i > > the memory usage of Python spikes and when the range(..) block finishes > execution the memory usage does not drop down. Is there a way of > f

Re: Barry Warsaw giving Python talk at NASA

2006-11-08 Thread William Allison
A.M. Kuchling wrote: > This is at the Goddard campus: > > > --amk Thanks for the heads up on this. I managed to get escorted in to see it. Thought it was quite good. I was also informed that the webcast will be made available to

Re: The Nature of the “Unix Philosophy”

2006-06-08 Thread William Ahern
On Thu, 08 Jun 2006 13:41:13 +, Richard Bos wrote: > Frank Silvermann <[EMAIL PROTECTED]> wrote: > >> Nils O. Selåsdal wrote: >> > Xah Lee wrote: >> >> The Nature of the “Unix Philosophy” >> >> > Perhaps you should take a peek at the ideas in Plan 9 from Bell Labs, >> > which is a cont

BeautifulSoup error

2006-06-15 Thread William Xu
565: ordinal not in range(128) >>> Any ideas to solve this? version info: Python 2.3.5 (#2, Mar 7 2006, 12:43:17) [GCC 4.0.3 20060212 (prerelease) (Debian 4.0.2-9)] on linux2 python-beautifulsoup: 3.0.1-1 -- William "I'd love to go out with you, but I have to floss my cat." -- http://mail.python.org/mailman/listinfo/python-list

Re: BeautifulSoup error

2006-06-15 Thread William Xu
"Serge Orlov" <[EMAIL PROTECTED]> writes: [...] > Upgrading python-beautifulsoup is a good idea, since there were two bug > fix releases after 3.0.1 I just downloaded latest version 3.0.3 from its homepage, seems it still has the same problem. -- William PL/I

Re: BeautifulSoup error

2006-06-16 Thread William Xu
Ben Finney <[EMAIL PROTECTED]> writes: > William Xu <[EMAIL PROTECTED]> writes: > >> >>> import urllib >> >>> from BeautifulSoup import BeautifulSoup >> >>> url = 'http://www.google.com' >> >>> port = urllib.

Parsing Digits in Strings, using RE

2006-06-26 Thread William Cellich
nt, then I get   XXX_XXX = 123456789000     When I use non-greedy ? or ., I get errors such as unscriptable, or other.   Any suggestions???   I am able to do this as two separate progs, but have been unsuccessful at getting it all together as a one-pass code.   Thanks!   William      

Re: A Sort Optimization Technique: decorate-sort-dedecorate

2006-08-28 Thread William James
[EMAIL PROTECTED] wrote: > I would be interested in comments about how Common Lisp, Scheme, and > Haskell deal with the decorate-sort-dedecorate technique. %w(FORTRAN LISP COBOL).sort_by{|s| s.reverse} ==>["COBOL", "FORTRAN", "LISP"] -- Common Lisp did kill Lisp. Period. ... It is to Lisp

Re: PATCH: Speed up direct string concatenation by 20+%!

2006-09-29 Thread William Heymann
On Friday 29 September 2006 08:34, Larry Hastings wrote: > It would still blow up if you ran > s = "" > for i in range(1000): > s = "a" + s This is a pretty small change but I would suggest xrange instead of range. That way you don't allocate that large list just to throw all the ite

Monitoring number of smtp bytes sent through python e-mail socket

2006-12-04 Thread William Connery
using basic python sockets whilst having access to the number of bytes that have already been sent through the socket? Many thanks. William Connery #!/usr/bin/python import wx import smtplib from email import Encoders from email.MIMEMultipart import MIMEMultipart from email.Utils import COMMA

Monitoring number of smtp bytes sent through python e-mail socket

2006-12-09 Thread William Connery
basic python sockets whilst having access to the number of bytes that have already been sent through the socket? Many thanks. William Connery #!/usr/bin/python import wx import smtplib from email import Encoders from email.MIMEMultipart import MIMEMultipart from email.Utils import COMMASPACE, forma

Re: SPE website down?

2006-12-14 Thread William Allison
Laszlo Nagy wrote: > The home page of SPE (Stani's editor) is not available. > > http://pythonide.stani.be/ > > Is there a mailing list for this editor? > Where should I ask questions about it? > Where can I report bugs and make suggestions? > > Thanks, > > Laszlo > I seem to remember he was

Re: merits of Lisp vs Python

2006-12-15 Thread William James
André Thieme wrote: > greg schrieb: > > Ken Tilton wrote: > > > >> The reason I post macro expansions along with examples of the macro > >> being applied is so that one can see what code would have to be > >> written if I did not have the defskill macro to "write" them for me. > > > > It seems to m

Re: merits of Lisp vs Python

2006-12-15 Thread William James
André Thieme wrote: > William James schrieb: > > > def nif num, pos, zero, neg > > send( num>0 ? pos : (num==0 ? zero : neg) ) > > end > > btw, your nif body is built out of 13 tokens, so more > complicated than the Python version. > > > André

Re: merits of Lisp vs Python

2006-12-15 Thread William James
André Thieme wrote: > Paul Rubin schrieb: > > André Thieme <[EMAIL PROTECTED]> writes: > >> and the Lisp version has only 9: > >> nth, 1+, truncate, signum, num, list, pos, zero, neg > > > > Oh come on, you have to count the parentheses too. > > We could define hundreds of way how to count tok

Re: merits of Lisp vs Python

2006-12-15 Thread William James
André Thieme wrote: > William James schrieb: > > André Thieme wrote: > >> William James schrieb: > >> > >>> def nif num, pos, zero, neg > >>> send( num>0 ? pos : (num==0 ? zero : neg) ) > >>> end > >> btw, your nif body

Re: merits of Lisp vs Python

2006-12-15 Thread William James
André Thieme wrote: > [EMAIL PROTECTED] schrieb: > William James schrieb: > >>> How would you solve this in Python? > >>> You could embed it inside a lambda and must somehow make the > >>> variable "it" visible in it, because in the context

Re: I want to learn

2007-01-07 Thread William Allison
Thomas Ploch wrote: > [EMAIL PROTECTED] schrieb: >> Hi, >> >> I have been "programming" in the .net environment and ide for a few >> years and I am looking to make the switch over to python. I have >> absolutely no python experience whatsoever. I am looking for a python >> guru who has instant mess

Re: batch tiff to jpeg conversion script

2006-01-29 Thread William Park
you tried ImageMagick utilities. For example, man convert -- William Park <[EMAIL PROTECTED]>, Toronto, Canada ThinFlash: Linux thin-client on USB key (flash) drive http://home.eol.ca/~parkw/thinflash.html BashDiff: Super Bash shell http://freshmeat.net/projects/bashdiff/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Xah's Edu Corner: Unix damage: color names

2006-02-08 Thread William James
[EMAIL PROTECTED] wrote: > On AIX and Linux (SuSE 9.3) each color name which contains "gray" is > also aliased as "grey" for the benefit of both Yanks and Brits. Thus, Yankee, n. In Europe, an American. In the Northern States of our Union, a New Englander. In the Southern States the word is un

comple list slices

2006-02-28 Thread William Meyer
Hi, I have a list of rows which contains a list of cells (from a html table), and I want to create an array of logical row groups (ie group rows by the rowspan). I am only concerned with checking the rowspan of specific columns, so that makes it easier, but I am having trouble implementing it in p

Re: comple list slices

2006-02-28 Thread William Meyer
gmail.com> writes: > > A couple questions: > > 1- what is j? > 2- what does the rows[x][y] object look like? I assume it's a dict > that has a "rowspan" key. Can rows[x][y]["rowspan"] sometimes be 0? > > Perhaps you're looking for something like this: > rowgroups = [] > rowspan = 0 > for i

Re: comple list slices

2006-02-28 Thread William Meyer
gmail.com> writes: > > Python lets you iterate through a list using an integer index, too, > although if you do so we will make fun of you. You can accomplish it > with a while loop, as in: > > i = 0 > while i < len(rows): >if rows[i] == "This code looks like BASIC without the WEND, doesn

Re: comple list slices

2006-02-28 Thread William Meyer
gmail.com> writes: > Although I don't know if this is faster or more efficient than your > current solution, it does look cooler: > > def grouprows(inrows): > rows = [] > rows[:] = inrows # makes a copy because we're going to be > deleting > while len(rows) > 0: > rowspan

Shell Navigation

2006-03-02 Thread William Meyer
I am having trouble with the python interactive shell. The arrow keys render as ^[[D, ^[[A, etc making line editing impossible. The arrow keys (and function keys) work fine in bash, but in the python shell they are printed. Any ideas what is going on? -- http://mail.python.org/mailman/listinfo/py

Re: Shell Navigation

2006-03-02 Thread William Meyer
Simon Brunning brunningonline.net> writes: > Sounds like a readline problem. Your OS? How did you install Python? Yea, that was it. I just had to copy readline.so from another installation. Thanks for the quick reply -- http://mail.python.org/mailman/listinfo/python-list

object's list index

2006-03-03 Thread William Meyer
hi, I need to get the index of an object in a list. I know that no two objects in the list are the same, but objects might evaluate as equal. for example list = [obj1, obj2, obj3, obj4, obj5] for object in list: objectIndex = list.index(object) print objectIndex prints 0, 1, 2, 3, 2

Re: object's list index

2006-03-03 Thread William Meyer
Iain King gmail.com> writes: > what's wrong with: > > i = 0 > for object in list: > objectIndex = i > print objectIndex > i += 1 > > Iain > The issues with that is you might have a complex structure below the for object in list: with lots of continues or breaks and you don't want

Re: object's list index

2006-03-03 Thread William Meyer
Kent Johnson kentsjohnson.com> writes: > In either case enumerate() is your friend. To find an > item by identity: > > def index_by_id(lst, o): >for i, item in enumerate(lst): > if item is o: >return i >raise ValueError, "%s not in list" % o > > If you just want the index

Re: Strip white spaces from source

2005-05-10 Thread William Park
em), > the problem is instead caused by the reserved words (like 'and'). > > Can you help me? Thanks. Perhaps, you can make indent(1) do what you want. It's designed for C program, but... -- William Park <[EMAIL PROTECTED]>, Toronto, Canada ThinFlash: Linux thin-c

Comparing 2 similar strings?

2005-05-18 Thread William Park
e sequence --> 85% max But, for qawerty qwerbty max correlation is - 3 chars out of 7 are the same sequence --> 42% max (Crossposted to 3 of my favourite newsgroup.) -- William Park <[EMAIL PROTECTED]>, Toronto, Canada ThinFlash: Linux thin-client on USB key (flash)

Re: Parsing bash_history and inputting into mysql (Intrusion Detection)

2005-05-20 Thread William Park
it. That > said > > Could any one tell me how exactly to go abt all this? > > Any tools or code that would make my life easier? > > Suggestions (which modules to use etc) ? -- William Park <[EMAIL PROTECTED]>, Toronto, Canada ThinFlash: Linux thin-client on U

Re: moving from c++ to python

2005-05-21 Thread William Heymann
On Saturday 21 May 2005 03:19 am, Michael wrote: Yeah this tutorial is aimed at people that already know how to program. http://www.diveintopython.org/ It would still be a good idea though to go through the basic python tutorial at http://docs.python.org/tut/tut.html For someone already exp

Fw: evidence john bokma al jazeera connection ?

2005-05-21 Thread William Baker
law agents will look at john bokma. he may work for al jazeera, on the computer webs and tv. concerned, william > p.s. i ran a cross reference on john bokma whereabouts, like he >just admits <[EMAIL PROTECTED]> . > >look for the words "al-jazeera&q

MySQL newsgroup proposal.

2005-06-06 Thread William Drew
ANNOUNCEMENT: A RFD (REQUEST FOR DISCUSSION) has been posted for the creation of a new Usenet newsgroup: comp.databases.mysql The proposal and related discussion can be read in the Usenet group news.groups ... feel free to weigh in and make any suggestions you may have. Message-ID: <[EMAI

Capture close window button in Tkinter

2005-06-12 Thread William Gill
I am trying to make a simple data editor in Tkinter where each data element has a corresponding Entry widget. I have tried to use the FocusIn/FocusOut events to set a 'hasChanged' flag (if a record has not changed, the db doesn’t need updating). This seems to work fine except that when the

Re: Capture close window button in Tkinter

2005-06-12 Thread William Gill
Jonathan Ellis wrote: > William Gill wrote: > >>I am trying to make a simple data editor in Tkinter where each data >>element has a corresponding Entry widget. I have tried to use the >>FocusIn/FocusOut events to set a 'hasChanged' flag (if a record has

Re: count string replace occurances

2005-06-13 Thread William Park
erence between length of 'a' and 'b'. If they are same length, - Split 'mytext', and count items. -- William Park <[EMAIL PROTECTED]>, Toronto, Canada ThinFlash: Linux thin-client on USB key (flash) drive http://home.eol.ca/~parkw/thinflash.html -- http://mail.python.org/mailman/listinfo/python-list

string formatting using the % operator

2005-06-13 Thread William Gill
I am using the % operator to create queries for a db app. It works fine when exact strings, or numbers are used, but some queries need partial matching that use the '%' as a wildcards. So for example the resultant string should be 'WHERE name LIKE %smith%' (would match silversmith, smithy, an

Re: string formatting using the % operator

2005-06-13 Thread William Gill
Dan Sommers wrote: > On Mon, 13 Jun 2005 15:12:54 GMT, > William Gill <[EMAIL PROTECTED]> wrote: > > >>I am using the % operator to create queries for a db app. It works fine >>when exact strings, or numbers are used, but some queries need partial >>matching

access properties of parent widget in Tkinter

2005-06-15 Thread William Gill
I am trying to get & set the properties of a widget's parent widget. What I have works, but seems like a long way around the block. First I get the widget name using w.winfo_parent(), then i convert the name to a reference using nametowidget(). self.nametowidget(event.widget.winfo_parent())

Re: access properties of parent widget in Tkinter

2005-06-16 Thread William Gill
Kent Johnson wrote: > William Gill wrote: > >> I am trying to get & set the properties of a widget's parent widget. >> What I have works, but seems like a long way around the block. First >> I get the widget name using w.winfo_parent(), then i convert

Re: access properties of parent widget in Tkinter

2005-06-16 Thread William Gill
Kent Johnson wrote: > William Gill wrote: > >> I am trying to get & set the properties of a widget's parent widget. >> What I have works, but seems like a long way around the block. First >> I get the widget name using w.winfo_parent(), then i convert

Re: access properties of parent widget in Tkinter

2005-06-16 Thread William Gill
Kent Johnson wrote: > William Gill wrote: > >> I am trying to get & set the properties of a widget's parent widget. >> What I have works, but seems like a long way around the block. First >> I get the widget name using w.winfo_parent(), then i convert

Re: access properties of parent widget in Tkinter

2005-06-16 Thread William Gill
Kent Johnson wrote: > William Gill wrote: > >> Kent Johnson wrote: >> >> If I change the area code in one record only the phonenumber table >> needs to be updated, but since areaCode is a child of phones, >> phones.hasChanged needs to be set to True by th

Excel file interface for Python 2.3?

2007-06-12 Thread Hamilton, William
I'm in need of a module that will let me create Excel workbooks from within Python. Something like PyExcelerator, but it needs to work with Python 2.3. (A third-party limitation that I have no control over.) Can anyone point me to what I need? All my searches keep leading back to PyExcelerator.

smtp server simulation using Python

2007-06-17 Thread William Gill
I have a (web) development computer w/o an SMTP server and want to test form generated e-mail using a dummy SMTP server that delivers the mail message to a file, or better yet, to a text editor instead of actually sending it. Is it possible to extend the DebuggingServer class,and override the

Re: Python IDE

2007-06-19 Thread William Allison
Bjoern Schliessmann wrote: > BartlebyScrivener wrote: >> VIM > > *clap-clap* > > BTW, are there tutorials on the more arcane vim functions that come > in handy with Python? > > Regards, > > > Björn > Not a tutorial, but I found this little snippet: http://www.ibiblio.org/obp/pyBiblio/tips/e

Re: smtp server simulation using Python

2007-06-24 Thread William Gill
Dave Borne wrote: >> I have a (web) development computer w/o an SMTP server and want to test >> form generated e-mail using a dummy SMTP server that delivers the mail >> message to a file, or better yet, to a text editor instead of actually >> sending it. > > Here's a quick and dirty script I us

RE: Collections of non-arbitrary objects ?

2007-06-26 Thread Hamilton, William
> From: walterbyrd > > > Yes, but those languages also have the notion of structures that do > not allow arbitrary collections. That is what I was wondering about > when I started the thread. It's fine that python has four different > ways of creating collections of arbitrary data types, but I th

Re: Looking for an interpreter that does not request internet access

2007-06-28 Thread William Allison
James Alan Farrell wrote: > At the risk of sounding clueless, what is "the regular interpreter"? > I've now read several python books, and they all recommend IDLE. > By typing "python" at your command prompt you'll also get an interactive interpreter. -- http://mail.python.org/mailman/listinfo

Re: Vista 64 + Python2.5 + wxpython 28 issue

2007-06-29 Thread William Heymann
On Friday 29 June 2007, Martin v. Löwis wrote: > > There was no need for me to use 64 so I have switched back to 32 and > > works fine. > > > > Python is not ready for the 64 world yet ;) > > It's a matter of standpoint. 64 bit is not ready for the world, yet. > > Regards, > Martin I think you mea

RE: PEP 3107 and stronger typing (note: probably a newbie question)

2007-07-05 Thread Hamilton, William
> From: Paul Rubin > > greg <[EMAIL PROTECTED]> writes: > > > E.g. your program might pass its test and run properly for years > > > before some weird piece of input data causes some regexp to not quite > > > work. > > > > Then you get a bug report, you fix it, and you add a test > > for it so tha

RE: Tutorial creates confusion about slices

2007-04-23 Thread Hamilton, William
> -Original Message- > From: [EMAIL PROTECTED] [mailto:python- > [EMAIL PROTECTED] On Behalf Of Antoon Pardon > Sent: Monday, April 23, 2007 7:38 AM > To: python-list@python.org > Subject: Tutorial creates confusion about slices > > The following is part of the explanation on slices in the

<    1   2   3   4   5   6   >