Randomizing Strings In A Microservices World

2019-12-09 Thread Tim Daneliuk
I ran across a kind of fun problem today that I wanted to run past you Gentle Geniuses (tm): - Imagine an environment in which there may be multiple instances of a given microservice written in Python. - Each of these services needs to produce a string of ten digits guaranteed to be unique

Re: Randomizing Strings In A Microservices World

2019-12-09 Thread Tim Delaney
On Tue, 10 Dec 2019 at 12:12, Tim Daneliuk wrote: > - Each of these services needs to produce a string of ten digits > guaranteed to be unique > on a per service instance basis AND to not collide for - oh, let's say - > forever :)s > > Can anyone suggest a randomiz

Re: Randomizing Strings In A Microservices World

2019-12-09 Thread Tim Daneliuk
On 12/9/19 8:50 PM, Paul Rubin wrote: > Tim Daneliuk writes: >> - Imagine an environment in which there may be multiple instances of a given >> microservice written in Python. > > Decide the maximum number of microservice instances, say 1000. Chop up > the 10 digit ra

Re: Randomizing Strings In A Microservices World

2019-12-09 Thread Tim Daneliuk
On 12/9/19 8:54 PM, Dennis Lee Bieber wrote: > On Mon, 9 Dec 2019 18:52:11 -0600, Tim Daneliuk > declaimed the following: > >> >> - Each of these services needs to produce a string of ten digits guaranteed >> to be unique >> on a per service instance basis A

Re: Randomizing Strings In A Microservices World

2019-12-10 Thread Tim Daneliuk
On 12/10/19 10:36 AM, Peter Pearson wrote: > Just to be sure: you *are* aware that the "Birthday Paradox" says > that if you pick your 10-digit strings truly randomly, you'll probably > get a collision by the time of your 10**5th string . . . right? I did not consider this, but the point is taken.

Re: Randomizing Strings In A Microservices World

2019-12-15 Thread Tim Daneliuk
On 12/10/19 12:37 PM, Chris Angelico wrote: > On Wed, Dec 11, 2019 at 5:01 AM Tim Daneliuk wrote: >> >> On 12/10/19 10:36 AM, Peter Pearson wrote: >>> Just to be sure: you *are* aware that the "Birthday Paradox" says >>> that if you pick your 10-di

Re: Most elegant way to do something N times

2019-12-22 Thread Tim Chase
On 2019-12-22 23:34, Batuhan Taskaya wrote: > I encounter with cases like doing a function 6 time with no > argument, or same arguments over and over or doing some structral > thing N times and I dont know how elegant I can express that to the > code. I dont know why but I dont like this > > for _

Lists And Missing Commas

2019-12-23 Thread Tim Daneliuk
If I do this: foo = [ "bar", "baz" "slop", "crud" ] Python silently accepts that and makes the middle term "bazslop". BUT, if I do this: foo = [ "bar", "baz" 1, "crud" ] or this: foo = [ "bar", 2 1, "crud" ] The interpreter throws a syntax error. This is more of an intellectual

Re: Lists And Missing Commas

2019-12-23 Thread Tim Daneliuk
On 12/23/19 7:52 PM, DL Neil wrote: > > WebRef: https://docs.python.org/3/reference/lexical_analysis.html Yep, that explains it, but it still feels non-regular to me. From a pointy headed academic POV, I'd like to see behavior consistent across types. Again ... what do I know? -- https://mai

Re: Lists And Missing Commas

2019-12-23 Thread Tim Daneliuk
On 12/23/19 8:35 PM, Chris Angelico wrote: > On Tue, Dec 24, 2019 at 12:56 PM DL Neil via Python-list > wrote: >> However, your point involves the fact that whereas: >> >> 1 + 2 # 3 is *clearly* addition, and >> "a" + "b" # "ab" is *clearly* concatenation >> >> "a" "b" # al

Re: Lists And Missing Commas

2019-12-24 Thread Tim Daneliuk
On 12/24/19 6:37 AM, Stefan Ram wrote: > And you all are aware that this kind of string concatenation > happens in C and C++, too, aren't you? > > main.c > > #include > int main( void ){ puts( "a" "b" ); } > > transcript > > ab Noting that it has been a long time since I looked at the

Re: Friday Finking: Source code organisation

2019-12-28 Thread Tim Chase
On 2019-12-29 12:52, Greg Ewing wrote: > On 29/12/19 11:49 am, Chris Angelico wrote: > > "Define before use" is a broad principle that I try to follow, > > even when the code itself doesn't mandate this. > > I tend to do this too, although it's probably just a habit > carried over from languages

Re: Help on dictionaries...

2020-01-29 Thread Tim Chase
On 2020-01-30 06:44, Souvik Dutta wrote: > Hey I was thinking how I can save a dictionary in python(obviously) > so that the script is rerun it automatically loads the dictionary. This is almost exactly what the "dbm" (nee "anydbm") module does, but persisting the dictionary out to the disk: im

Re: Idiom for partial failures

2020-02-20 Thread Tim Chase
On 2020-02-20 13:30, David Wihl wrote: > I believe that it would be more idiomatic in Python (and other > languages like Ruby) to throw an exception when one of these > partial errors occur. That way there would be the same control flow > if a major or minor error occurred. There are a variety of

Installation of python

2020-03-09 Thread Tim Ko
Hello, I am trying to install a custom Python package but ran into an error. The error presumably associated with cython. I tried a different compiler since Intel compiler often crashes when using cython, but couldn't get it working. Attached is the installation error log. I have installed and

Error while installing a python code

2020-03-09 Thread Tim Ko
Hello, I am trying to install a custom Python code but ran into an error. The error presumably associated with cython. I tried a different compiler since Intel compiler often crashes when using cython, but couldn't get it working. Attached is the installation error log. I have installed and upd

Re: Python3 module with financial accounts?

2020-04-01 Thread Tim Chase
On 2020-04-01 19:27, Peter Wiehe wrote: > Is there a Python3 module with financial accounts? You'd have to be more specific. For interacting with online accounts with financial institutions? For tracking financial data locally? There's beancount (http://furius.ca/beancount/ and written in Pytho

Creating a curses app that interacts with the terminal, yet reads from stdin?

2020-04-18 Thread Tim Chase
I know that vim lets me do things like $ ls | vim - where it will read the data from stdin, but then take over the screen TUI curses-style, and interact directly with the keyboard input without being limited to input from stdin. I've played around with something like import sys import

Re: Strings: double versus single quotes

2020-05-19 Thread Tim Chase
On 2020-05-19 20:10, Manfred Lotz wrote: > Hi there, > I am asking myself if I should preferably use single or double > quotes for strings? I'd say your consistency matters more than which one you choose. According to a recent observation by Raymond H. """ Over time, the #python world has show

Re: Strings: double versus single quotes

2020-05-23 Thread Tim Chase
On 2020-05-24 01:40, Chris Angelico wrote: > On Sat, May 23, 2020 at 10:52 PM Abdur-Rahmaan Janhangeer > wrote: > > > > The interpreter prefers single-quotes > > > > >>> "single or double" > > 'single or double' > > > >>> 'not all that strongly, it doesn\'t' > "not all that strongly, it do

Re: Strings: double versus single quotes

2020-05-23 Thread Tim Chase
On 2020-05-23 14:46, Dennis Lee Bieber wrote: > On Sat, 23 May 2020 11:03:09 -0500, Tim Chase > >But when a string contains both, it biases towards single quotes: > > > > >>> "You said \"No it doesn't\"" > > 'You said &q

Re: Friday Finking: Imports, Namespaces, Poisoning, Readability

2020-06-04 Thread Tim Chase
On 2020-06-05 12:15, DL Neil via Python-list wrote: > Finking/discussion: > > - how do you like to balance these three (and any other criteria)? For most of what I do, I only ever have one such module so I'm not trying keep multiple short-names in my head concurrently. For me, it's usually tkint

Re: New to python - Just a question

2020-07-03 Thread Tim Chase
On 2020-07-03 10:09, Daley Okuwa via Python-list wrote: > Write an algorithm (choose the language you prefer) that given a > character string, for instance {‘c’,’a’,’i’,’o’,’p’,’a’}, will > print out the list of characters appearing at least 2 times. In > this specific example, it would return {‘a’

True is True / False is False?

2020-07-21 Thread Tim Chase
I know for ints, cpython caches something like -127 to 255 where `is` works by happenstance based on the implementation but not the spec (so I don't use `is` for comparison there because it's not guaranteed by the language spec). On the other hand, I know that None is a single object that can (and

Re: True is True / False is False?

2020-07-22 Thread Tim Chase
On 2020-07-22 11:54, Oscar Benjamin wrote: >> On Wed, Jul 22, 2020 at 11:04 AM Tim Chase wrote: >>> reading through the language specs and didn't encounter >>> anything about booleans returned from comparisons-operators, >>> guaranteeing that they always ret

3.8.5 Failing To Install With pythonz

2020-08-09 Thread Tim Daneliuk
I have a weird problem I could use a bit of help with ... I have successfully installed 3.8.5 using pew/pythonz on a BSD FreeBSD system. But when I attempt to install it on a Linux system I get the traceback below. In this case, pew/pythonz were installed locally in my own account using system nat

Re: Final statement from Steering Council on politically-charged commit messages

2020-08-18 Thread Tim Daneliuk
On 8/17/20 1:26 PM, Chris Angelico wrote: > For context, see this commit: > > https://github.com/python/peps/commit/0c6427dcec1e98ca0bd46a876a7219ee4a9347f4 > > The commit message is highly politically charged and is now a > permanent part of the Python commit history. The Python Steering > Counc

Re: Final statement from Steering Council on politically-charged commit messages

2020-08-18 Thread Tim Daneliuk
On 8/18/20 12:28 PM, justin walters wrote: > I apologize for being ageist earlier as well. That was out of line. I am likely older than you and there is no reason to apologise. Only the profoundly undeveloped psyche takes every opportunity to find offense when none is intended. It is the sign of

Re: Final statement from Steering Council on politically-charged commit messages

2020-08-18 Thread Tim Daneliuk
On 8/18/20 6:34 PM, [email protected] wrote: > I would kindly recommend that folks just educate themselves on what I would also like to help you become educated. Be sure to check out these literary treasures - they are the foundation of the worldview you are espousing: The_Origin of the Famil

Re: Final statement from Steering Council on politically-charged commit messages

2020-08-18 Thread Tim Daneliuk
On 8/18/20 6:34 PM, [email protected] wrote: > I would kindly recommend that folks just educate themselves on what Speaking of being educated ... Could you please do an exposition for all us ignorant types on the books that really animate your worldview: The_Origin of the Family, Private P

Re: Final statement from Steering Council on politically-charged commit messages

2020-08-19 Thread Tim Daneliuk
On 8/19/20 8:35 AM, Alexandre Brault wrote: > I've not seen anyone objecting to the idea of removing the reference to > Strunk and White in favour of the underlying message of "be understandable by > others who may read your comments" (there were at most a few philosophical > "what is understand

Re: Final statement from Steering Council on politically-charged commit messages

2020-08-19 Thread Tim Daneliuk
On 8/18/20 12:18 PM, gia wrote: > That's why I picked Math, it is also universally accepted, it's very > strict, and it leaves the reader to decide its color based on themselves > (it's not white btw :) Sorry, but when it comes to the demands of the woke, you are not immune. Reported widely ear

Re: Final statement from Steering Council on politically-charged commit messages

2020-08-19 Thread Tim Daneliuk
On 8/19/20 2:00 PM, Karen Shaeffer wrote: > Where you conclude with: "Methinks there is an ideological skunk in the > parlor …” > > Considering all your posts on this thread, it is reasonable to infer you have > some ideological motivations. My motivation was to demonstrate that if people of yo

Re: Final statement from Steering Council on politically-charged commit messages

2020-08-19 Thread Tim Daneliuk
On 8/19/20 1:10 PM, J. Pic wrote: > Tim, don't you also think that statements should be backed by > evidence, even more if they are particularly accusatory ? > > We'll be lucky if S&W's editor doesn't sue the PSF for slandering for > publishing that S&W

Re: Final statement from Steering Council on politically-charged commit messages

2020-08-19 Thread Tim Daneliuk
On 8/19/20 3:29 PM, Ethan Furman wrote: > On 8/19/20 12:40 PM, Tim Daneliuk wrote: >> On 8/19/20 2:00 PM, Karen Shaeffer wrote: > >>> Considering all your posts on this thread, it is reasonable to infer you >>> have some ideological motivations. >> >>

Re: Python Pandas split Date in day month year and hour

2020-08-19 Thread Tim Williams
etter place to ask a pandas question is StackOverflow. Here's a link that may answer your question. Convert timestamp to day, month, year and hour <https://stackoverflow.com/questions/57515291/convert-timestamp-to-day-month-year-and-hour> Tim Williams -- https://mail.python.org/mailman/listinfo/python-list

Re: Regex to change multiple lines

2020-09-03 Thread Tim Chase
e others that are following Should be able to use :%s/%%\(\_.\{-}\)%%/\1<\/del>/g It simplifies slightly if you use a different delimiter :%s@%%\(\_.\{-}\)%%@\1@g -tim -- https://mail.python.org/mailman/listinfo/python-list

Re: Regex to change multiple lines

2020-09-03 Thread Tim Chase
Derp, sorry about the noise. I mistook this message for a similar dialog over on the Vim mailing list. For Python, you want re.sub(r"%%(.*?)%%", r"\1", s, flags=re.S) or put the flag inline re.sub(r"(?s)%%(.*?)%%", r"\1", s) -tim On 2020-09-03 09

Re: Pythonic style

2020-09-21 Thread Tim Chase
a can be hard to spot, so I usually draw a little extra attention to it with either (x, ) = iterable or x, = iterable # unpack one value I'm not sure it qualifies as Pythonic, but it uses Pythonic features like tuple unpacking and the code is a lot more concise. -tim -- https://mail.python.org/mailman/listinfo/python-list

Re: Pythonic style

2020-09-21 Thread Tim Chase
On 2020-09-21 09:48, Stavros Macrakis wrote: >> def fn(iterable): >> x, = iterable >> return x > > Thanks, Tim! I didn't realize that you could write (x,) on the LHS! > Very nice, very Pythonic! It also expands nicely for other cases, so you want th

Re: ValueError: arrays must all be same length

2020-10-04 Thread Tim Williams
On Fri, Oct 2, 2020 at 11:00 AM Shaozhong SHI wrote: > Hello, > > I got a json response from an API and tried to use pandas to put data into > a dataframe. > > However, I kept getting this ValueError: arrays must all be same length. > > Can anyone help? > > The following is the json text. Regard

Re: ValueError: arrays must all be same length

2020-10-04 Thread Tim Williams
On Sun, Oct 4, 2020 at 8:39 AM Tim Williams wrote: > > > On Fri, Oct 2, 2020 at 11:00 AM Shaozhong SHI > wrote: > >> Hello, >> >> I got a json response from an API and tried to use pandas to put data into >> a dataframe. >> >> However, I ke

Re: ValueError: arrays must all be same length

2020-10-05 Thread Tim Williams
data is another table. > > Regards, > > Shao > > > I'm fairly new to pandas myself. Can't help there. You may want to post this on Stackoverflow, or look for a similar issue on github. https://stackoverflow.com/questions/tagged/pandas+json https://github.com/pandas-de

Re: Python's carbon guilt

2020-10-10 Thread Tim Daneliuk
On 10/10/20 2:35 PM, Marco Sulla wrote: > He should also calculate the carbon dioxide emitted by brains that > works in C++ only. I omit other sources. > yes, methane is an alleged greenhouse gas as well -- https://mail.python.org/mailman/listinfo/python-list

Re: Best way to determine user's screensize?

2020-10-31 Thread Tim Chase
On 2020-10-31 15:22, Grant Edwards wrote: > > A MUA may have to display hundreds of mailboxes, and maybe tens of > > thousands of mails in a single mailbox. > > No. It doesn't. It has to display a tree widget that shows N items > and holds tens of thousands of items, or a scrolling list widget >

Re: Any better way for this removal?

2020-11-07 Thread Tim Chase
On 2020-11-07 13:46, Bischoop wrote: > text = "This is string, remove text after second comma, to be > removed." > > k= (text.find(",")) #find "," in a string > m = (text.find(",", k+1)) #Find second "," in a string > new_string = text[:m] > > print(new_string) How about: new_string = text.r

Re: Any better way for this removal? [typo correction]

2020-11-07 Thread Tim Chase
On 2020-11-07 10:51, Tim Chase wrote: > from string import ascii_lowercase > text = ",".join(ascii_lowercase) > to_throw_away = 5 [derp] For obvious reasons, these should be s/\/to_throw_away/g To throw away the trailing N delimited portions: > new_string =

Re: Returning from a multiple stacked call at once

2020-12-12 Thread Tim Chase
On 2020-12-12 07:39, ast wrote: > In case a function recursively calls itself many times, > is there a way to return a data immediately without > unstacking all functions ? Not that I'm aware of. If you use recursion (and AFAIK, Python doesn't support tail-recursion), you pay all the pushes & pa

Re: To check if number is in range(x,y)

2020-12-12 Thread Tim Chase
On 2020-12-12 15:12, Bischoop wrote: > I need to check if input number is 1-5. Whatever I try it's not > working. Here are my aproaches to the problem: https://bpa.st/H62A > > What I'm doing wrong and how I should do it? A range is similar to a list in that it contains just the numbers listed:

Re: To check if number is in range(x,y)

2020-12-14 Thread Tim Chase
On 2020-12-14 21:21, Schachner, Joseph wrote: > >>> r = range(10) > So r is a list containing 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 In Python 3.x, r is *not* a list. It is a custom object/class. > >>> 2 in r > True > As expected. I'm not sure what your replies are suggesting here. I demonstrate

Re: list() strange behaviour

2020-12-20 Thread Tim Chase
On 2020-12-20 21:00, danilob wrote: > b = ((x[0] for x in a)) here you create a generator > print(list(b)) > [1, 0, 7, 2, 0] and then you consume all the things it generates here which means that when you go to do this a second time > print(list(b)) the generator is already empty/exhausted so

Re: Dynamic character substitution.

2005-09-26 Thread Tim Roberts
ements. For example: data = {} for n in range(3): data[n] = read_from( 'filename%d' % n ) It IS possible to create variables on the fly, but except in very special situations, it is almost never the right way to do things. -- - Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: 1 Million users.. I can't Scale!!

2005-09-28 Thread Tim Daneliuk
y for these kinds of problems. We're always looking for a great new customer. Always-Developing-New-Business-ly Yours, ---- Tim Daneliuk [EMAIL PROTECTED] PGP Key: http://www.tundraware.com/PGP/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Rollover/wraparound time of time.clock() under win32?

2005-09-28 Thread Tim Peters
[Russell Warren, playing w/ time.clock() on Windows] > ... > Based on this code and some quick math it confirms that not only will > the rollover be a looong way out, but that there will not be any loss > in precision until ~ 30 years down the road. Checking my math: > > (float(10**16 + 1) - floa

Re: A Moronicity of Guido van Rossum

2005-09-29 Thread Tim Leslie
On 29 Sep 2005 07:24:17 -0700, Xah Lee <[EMAIL PROTECTED]> wrote: Of course, you begin to write things like Java, in three thousand wordsjust to state you are a moron. +1 QOTW. Tim -- http://mail.python.org/mailman/listinfo/python-list

Re: Straight line detection

2005-09-29 Thread Tim Roberts
, [1,1,1,1,1], [1,1,1,1,1], [1,1,1,1,1], [1,1,1,1,1]] Would you say there were 12 lines there? -- - Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: New Python chess module

2005-09-30 Thread Tim Churches
Will McGugan wrote: > There is a new version if anyone is interested... > > http://www.willmcgugan.com/chess.py > > It contains optimizations and bugfixes. > > Can anyone suggest a name for this module? pyChess is already taken... Pyawn??? Tim C -- http://mail.python

Re: PyWin SendMessage

2005-10-01 Thread Tim Roberts
his use case -- interprocess communication. The WM_USER range is only if you are inventing a custom message for some new purpose. -- - Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: What encoding is used when initializing sys.argv?

2005-10-01 Thread Tim Roberts
ed >as the "mbcs" codec. > >import sys >print repr(sys.argv[1]) >print repr(unicode(sys.argv[1], "mbcs")) > >C:\bin>python glurp.py abcߕ >'abc\xdf\x95' >u'abc\xdf\u2022' There's another entry in my "keep this post

Re: Recursive Property of Octal Numbers

2005-10-03 Thread Tim Roberts
;\xb6' 8 doesn't have anything to do with it. What you have there is hexadecimal. 0377 is an example of an octal number. However, as was pointed out elsewhere, the same thing would be true even if you used 'z'. -- - Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: question about smtplib

2005-10-03 Thread Tim Roberts
[EMAIL PROTECTED] wrote: >cool. so this line >server = smtplib.SMTP(localhost) >is when i connect ? Use the source, Luke. Source code for every standard module is included on your hard disk. If you look in the __init__ for "class SMTP", your question will be answered. -- -

Re: question about smtplib

2005-10-05 Thread Tim Roberts
Piet van Oostrum <[EMAIL PROTECTED]> wrote: >>>>>> Tim Roberts <[EMAIL PROTECTED]> (TR) wrote: > >>TR> [EMAIL PROTECTED] wrote: >>>> cool. so this line >>>> server = smtplib.SMTP(localhost) >>>> is when i connect ? &g

Re: Absolultely confused...

2005-10-06 Thread Tim Peters
[Jeremy Moles] > ... > I may be missing something critical here, but I don't exactly grok what > you're saying; how is it even possible to have two instances of > PyType_vector3d? It is (like all the examples show and all the extension > modules I've done in the past) a static structure declared an

Re: Merging sorted lists/iterators/generators into one stream of values...

2005-10-08 Thread Tim Peters
[Alex Martelli] >>> try it (and read the Timbot's article included in Python's sources, and the >>> sources themselves)... [Kay Schluehr] >> Just a reading advise. The translated PyPy source >> pypy/objectspace/listsort.py might be more accessible than the >> corresponding C code. [cfbolz] > inde

Re: Jargons of Info Tech industry

2005-10-08 Thread Tim Tyler
Alan Balmer <[EMAIL PROTECTED]> wrote or quoted: > On Tue, 04 Oct 2005 17:14:45 GMT, Roedy Green > >I try to explain Java each day both on my website on the plaintext > >only newsgroups. It is so much easier to get my point across in HTML. > > > >Program listings are much more readable on my websi

Re: Using command line args on Windows

2005-10-09 Thread Tim Roberts
;echo 123 | x.py The process tried to write to a nonexistent pipe. C:\Tmp>python x.py < x.py import sys C:\Tmp>x.py < x.py C:\Tmp> -- - Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Matching zero only once using RE

2005-10-09 Thread Tim Roberts
rld is a string, and every operation is a regular expression match upon that string. -- - Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-10-09 Thread Tim Tyler
In comp.lang.java.programmer Steven D'Aprano <[EMAIL PROTECTED]> wrote or quoted: > On Sun, 09 Oct 2005 07:19:29 +, Roedy Green wrote: > > Rich Teer <[EMAIL PROTECTED]>: > >>WHat the hell has that got to do with HTML email? Sending photos > >>is an example of what attachments are for. > > >

Re: Jargons of Info Tech industry

2005-10-09 Thread Tim Tyler
In comp.lang.java.programmer Mike Meyer <[EMAIL PROTECTED]> wrote or quoted: > The technial problems have been solved for over a decade. NeXT shipped > systems that used text/richtext, which has none of the problems that > HTML has. The problems are *social* - you've got to arrange for > people t

Re: Jargons of Info Tech industry

2005-10-09 Thread Tim Tyler
In comp.lang.java.programmer Mike Meyer <[EMAIL PROTECTED]> wrote or quoted: > Roedy Green <[EMAIL PROTECTED]> writes: > > Read my essay. > > http://mindprod.com/projects.html/mailreadernewsreader.html > > > > I talk around those problems. > > Actually, you present a design that forces a solution

Re: Jargons of Info Tech industry

2005-10-09 Thread Tim Tyler
In comp.lang.java.programmer Roedy Green <[EMAIL PROTECTED]> wrote or quoted: > Read my essay. > http://mindprod.com/projects.html/mailreadernewsreader.html FYI, this bit: ``Like ICQ, someone cannot send you mail without your prior permission. They can't send you mail because they don't have

Re: Jargons of Info Tech industry

2005-10-09 Thread Tim Tyler
In comp.lang.java.programmer Paul Boddie <[EMAIL PROTECTED]> wrote or quoted: > Roedy Green wrote: > > Just how long do you want to stall evolution? Do you imagine people > > 200 years from now will be still be using pure ASCII text unable to > > find a solution to JavaScript viruses (turn off JS

Re: Jargons of Info Tech industry

2005-10-09 Thread Tim Tyler
In comp.lang.java.programmer Mike Meyer <[EMAIL PROTECTED]> wrote or quoted: > Roedy Green <[EMAIL PROTECTED]> writes: > > On Sat, 08 Oct 2005 19:56:50 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote > >>Show us *examples*! Do you create a style sheet for every site you > >>visit that overrides there

Re: Jargons of Info Tech industry

2005-10-09 Thread Tim Tyler
In comp.lang.java.programmer Mike Meyer <[EMAIL PROTECTED]> wrote or quoted: > Roedy Green <[EMAIL PROTECTED]> writes: > > On Sat, 08 Oct 2005 17:41:38 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote: > >>If you've got a browser with a better solution, what's the browser, > >>and what's the solution?

Re: how to capture key pressing

2005-10-10 Thread Tim Roberts
SC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import msvcrt >>> msvcrt.getch() '\x1b' >>> (I pressed "escape" after the second "enter".) -- - Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

RE: WMI - Restore Setting in Python

2005-10-11 Thread Tim Golden
[saw huan chng] > I am beginner in Python. I have some questions on WMI Service in Python. > I was able to use properties of Class Restore in WMI, but not able to > use the method. Here is the sample code that I done, anyone can help me? [... snip code ...] OK, I don't actually use XP (and the

Re: Best way to share a python list of objects

2005-10-11 Thread Tim Arnold
Any other ideas? What would work the best > > Relational database are useful for sharing data in a controlled way. > A better option for arbirary Python objects might be ZODB with ZEO. > > http://www.zope.org/Wikis/ZODB/FrontPage > http://www.zope.org/Wikis/ZODB/FrontPage

RE: Listen for directory events

2005-10-12 Thread Tim Golden
[Bell, Kevin] | Anyone have any advice on listening for directory events? Would this be of any use? http://tgolden.sc.sabren.com/python/win32_how_do_i/watch_directory_for_changes.html TJG This e-mail has been scanned fo

Re: Jargons of Info Tech industry

2005-10-12 Thread Tim Tyler
In comp.lang.java.programmer Mike Meyer <[EMAIL PROTECTED]> wrote or quoted: > Tim Tyler <[EMAIL PROTECTED]> writes: > > In comp.lang.java.programmer Mike Meyer <[EMAIL PROTECTED]> wrote or quoted: > >> Roedy Green <[EMAIL PROTECTED]> writes: > &

Re: Hidden string formatting bug

2005-10-13 Thread Tim Peters
[Echo] > I have been trying to figure out the problem with this string formatting: [monstrous statement snipped] > when it executes, I get this error: "inv argument required". That shoud be "int", not "inv". > I have checked and rechecked both the string and the tuple. I cant figure > out what

Re: Jargons of Info Tech industry

2005-10-14 Thread Tim Tyler
In comp.lang.java.programmer Mike Meyer <[EMAIL PROTECTED]> wrote or quoted: > Tim Tyler <[EMAIL PROTECTED]> writes: > > In comp.lang.java.programmer Mike Meyer <[EMAIL PROTECTED]> wrote or quoted: > >> The technial problems have been solved for over a decade.

Re: Microsoft Hatred FAQ

2005-10-14 Thread Tim Hammerquist
t... and he never left? IAC, I've had enough. I don't killfile many people... but Mr. Lee seems to have gone above and beyond. His arguments are nothing but incendiary, and he doesn't even know Perl well enough to bash it as he does. *plonk* Tim -- http://mail.python.org/mailman/listinfo/python-list

Re: Here I am again, same old arguments

2005-10-15 Thread Tim Roberts
beginning programmers, this would definitely need to be tacked up to it. Nice work. -- - Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Perl-Python-a-Day: Sorting

2005-10-15 Thread Tim Roberts
-optimized that the Schwartzian transform is almost always faster than passing a custom comparator to the sort function. -- - Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft Hatred FAQ

2005-10-15 Thread Tim Roberts
silly to credit Microsoft with the ubiquity of powerful computers. -- - Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft Hatred FAQ

2005-10-16 Thread Tim Hammerquist
I will, however, say that they have engaged in immoral[*], unethical, and illegal practices to artificially maintain and augment their position in the industry and has not yet provided products/services to back it up. [*] Yeah, I know. What place do morals have in the business world. I'm a

Re: Microsoft Hatred FAQ

2005-10-16 Thread Tim Hammerquist
home, are you legally prevented from being able to remove the engine, or replace/upgrade parts? Tim -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft Hatred FAQ

2005-10-16 Thread Tim Hammerquist
little CoCo! I had the original CoCo, upgraded with the 5 1/4" floppy drive, and later upgraded the whole system to CoCo 3 with OS9. <3 <3 <3 Of course, it all went downhill from there. MS-DOS 3.1, Pascal, Windows 3.1... *sigh* 10 years later, things picked up. Huzzah! Tim Hammerqui

Re: Microsoft Hatred FAQ

2005-10-16 Thread Tim Tyler
In comp.lang.java.programmer Peter T. Breuer <[EMAIL PROTECTED]> wrote or quoted: > Uh - when microsoft produced dos 1.0, or whatever it was, I was sitting > at my Sun 360 workstation (with 4M of RAM, later upgraded to 8M), > running SunOS 3.8 or thereabouts. > > And a mean game of tetris it pla

Re: Microsoft Hatred FAQ

2005-10-16 Thread Tim Tyler
In comp.lang.java.programmer Steven D'Aprano <[EMAIL PROTECTED]> wrote or quoted: > I'm aware of talk that Dell is selling Linux PCs at Walmart for less than > the same hardware plus Windows. Talk is cheap -- I'm not aware of anyone > who has actually seen these Linux PCs. I'd love to know either

Re: Microsoft Hatred FAQ

2005-10-17 Thread Tim Tyler
In comp.lang.java.programmer Richard Gration <[EMAIL PROTECTED]> wrote or quoted: > On Sun, 16 Oct 2005 11:51:16 +, Tim Tyler wrote: > > Acorn computers. Manufacturers of the best computer I ever owned. > > I'm willing to bet that was an Arc ... ? I never used on

Re: Microsoft Hatred FAQ

2005-10-17 Thread Tim Tyler
In comp.lang.java.programmer Jeroen Wenting wrote or quoted: > "Mike Meyer" <[EMAIL PROTECTED]> wrote in message > > "Jeroen Wenting" writes: [Microsoft] > >> no, they got their by clever marketing [snip] > > > > What you call "clever marketing" the DOJ calls "monopolistic > > practices". The

Re: Microsoft Hatred FAQ

2005-10-17 Thread Tim Tyler
Tim Roberts <[EMAIL PROTECTED]> wrote or quoted: [Microsoft] > Part of their behavior really escape me. The whole thing about browser > wars confuses me. Web browsers represent a zero billion dollar a year > market. Why would you risk anything to own it? Power. Minshare.

Re: Microsoft Hatred FAQ

2005-10-17 Thread Tim Tyler
In comp.lang.java.programmer Roedy Green <[EMAIL PROTECTED]> wrote or quoted: > MS has held BACK computer evolution by tying their OS so heavily to > the Pentium architecture. The chip architecture has nowhere near > enough registers. MS refused to believe the Internet was more than a > passing f

Re: Queue question

2005-10-17 Thread Tim Peters
[Alex Martelli] > ... > not_empty and not_full are not methods but rather instances of the > threading.Condition class, which gets waited on and notified > appropriately. I'm not entirely sure exactly WHAT one is supposed to do > with the Condition instances in question (I'm sure there is some des

Re: Jargons of Info Tech industry

2005-10-18 Thread Tim Tyler
In comp.lang.java.programmer Paul Rubin <http://[EMAIL PROTECTED]> wrote or quoted: > Tim Tyler <[EMAIL PROTECTED]> writes: > > Are there any examples of HTML email causing security problems - outside > > of Microsoft's software? > > There was a pr

Re: Jargons of Info Tech industry

2005-10-18 Thread Tim Tyler
In comp.lang.java.programmer Ross Bamford <[EMAIL PROTECTED]> wrote or quoted: > Roedy, I would just _love_ to see the response from the industry when you > tell them they should dump their whole mail infrastructure, and switch > over to a whole new system (new protocols, new security holes, n

Re: Jargons of Info Tech industry

2005-10-18 Thread Tim Tyler
Gordon Burditt <[EMAIL PROTECTED]> wrote or quoted: > Before worrying about the possible bugs in the implementations, > worry about security issues present in the *DESIGN*. Email ought > to be usable to carry out a conversation *SAFELY* with some person out > to get you. Thus features like this

Re: wierd threading behavior

2005-10-18 Thread Tim Peters
[Qun Cao] >> import thread >> def main(): >> thread.start_new(test.()) >> >> def test(): >> print 'hello' >> >> main() >> " >> this program doesn't print out 'hello' as it is supposed to do. >> while if I change main() [Neil Hodgson] >The program has exited before the thread has manage

Re: Would there be support for a more general cmp/__cmp__

2005-10-20 Thread Tim Peters
[Toby Dickenson] > ... > ZODB's BTrees work in a similar way but use the regular python comparison > function, and the lack of a guarantee of a total ordering can be a liability. > Described here in 2002, but I think same is true today: > http://mail.zope.org/pipermail/zodb-dev/2002-February/002304

<    7   8   9   10   11   12   13   14   15   16   >