Re: Business issues regarding adapting Python

2009-09-28 Thread Martin P. Hellwig
Nash wrote: I think normal market rules will apply to Pakistan too, if your desired trade has not the quantity you wish, the price per item should get higher. Net result should be that more quantity will be available due to increased interest. -- MPH http://blog.dcuktec.com 'If consumed, bes

Re: user authorization (with one time login) in a Python desktop application ?

2009-09-27 Thread Martin P. Hellwig
Stef Mientki wrote: What you want is pretty hard as long as the data source is not centrally protected with a password. That is you have a database on a server you only access, there is a central db but access to it is restricted to the admin, everybody else has a unique login name and a 'per

Re: Business issues regarding adapting Python

2009-09-27 Thread Martin P. Hellwig
Nash wrote: If I rephrase the question: In an absense of steady Python Developers; can there be a viable strategy involving training? Or will it be much safer going with an already common developer pool. Please note that my goal is not to promote python but to make a sound business decision. Us

Re: custom data warehouse in python vs. out-of-the-box ETL tool

2009-09-23 Thread Martin P. Hellwig
Tony Schmidt wrote: So do you think it would be very beneficial for me to start with an Inman or Kimball book? Or do you think it would be just leisure reading and not very practical at best - fill my head with needless jargon and inflexible dogmas, at worst? You have an unique opportunity he

Re: custom data warehouse in python vs. out-of-the-box ETL tool

2009-09-23 Thread Martin P. Hellwig
snfctech wrote: @Martin: I originally thought that there was nothing "magical" about building a data warehouse, but then I did a little research and received all sorts of feedback about how data warehouse projects have notorious failure rates, that data warehouse design IS different than normal

Re: custom data warehouse in python vs. out-of-the-box ETL tool

2009-09-23 Thread Martin P. Hellwig
snfctech wrote: Thanks for your replies, Sean and Martin. I agree that the ETL tools are complex in themselves, and I may as well spend that learning curve on a lower-level tool-set that has the added value of greater flexibility. Can you suggest a good book or tutorial to help me build a data

Re: custom data warehouse in python vs. out-of-the-box ETL tool

2009-09-23 Thread Martin P. Hellwig
snfctech wrote: Does anyone have experience building a data warehouse in python? Any thoughts on custom vs using an out-of-the-box product like Talend or Informatica? I have an integrated system Dashboard project that I was going to build using cross-vendor joins on existing DBs, but I keep hea

Re: difficulty in understanding rsplit(None,1)[1]

2009-09-22 Thread Martin P. Hellwig
John Machin wrote: On Sep 22, 7:10 pm, hrishy wrote: Hi Martin Many thanks And by the way great way to explain that thing great way to find out for yourself faster than waiting for a response from the internet ;-) I have been called many things in the past but being labeled 'the internet'

Re: difficulty in understanding rsplit(None,1)[1]

2009-09-22 Thread Martin P. Hellwig
hrishy wrote: Hi What does rsplit(None,1)[1] accomplish. Can somebody please decompose that to me. regards Sure: >>> test = 'This is a test' >>> help(test.rsplit) Help on built-in function rsplit: rsplit(...) S.rsplit([sep [,maxsplit]]) -> list of strings Return a list of the word

Re: CPU usage while reading a named pipe

2009-09-12 Thread Miguel P
On Sep 12, 2:54 pm, Ned Deily wrote: > In article > , >  Miguel P wrote: > > > > > I've been working on parsing (tailing) a named pipe which is the > > syslog output of the traffic for a rather busy haproxy instance. It's > > a fair bit of traffic

CPU usage while reading a named pipe

2009-09-12 Thread Miguel P
Hey everyone, I've been working on parsing (tailing) a named pipe which is the syslog output of the traffic for a rather busy haproxy instance. It's a fair bit of traffic (upto 3k hits/s per server), but I am finding that simply tailing the file in python, without any processing, is taking up 15%

Re: How to access ODBC databases ?

2009-09-06 Thread Martin P. Hellwig
Timothy Madden wrote: Thank you. The precompiled psqlodbca.so driver from apt-get worked on one of the Ubuntu machines that I tried. I would still like o use the Unicode driver if possible. Do you know what the problem could be ? Or where ? pyodbc/unixODBC/psqlodbcw.so ? Thank you, Timot

Re: Support for Windows 7 ?

2009-09-04 Thread Martin P. Hellwig
Michel Claveau - MVP wrote: Du coup, j'ai envie de déduire : - Que certains étudiants d'écoles de commerce françaises préfèrent travailler avec "l'étranger" plutôt qu'avec "le français". - Il faudra dire à d'autres étudiants d'écoles de commerce françaises que le fait de ne pas arriver/sav

Re: How to access ODBC databases ?

2009-09-04 Thread Martin P. Hellwig
Timothy Madden wrote: Martin P. Hellwig wrote: Timothy Madden wrote: >>> conn = pyodbc.connect('DRIVER={PostgreSQL Unicode};Servername=127.0.0.1;UID=pikantBlue;Database=pikantBlue') Traceback (most recent call last): File "", line 1, in pyodbc

Re: How to access ODBC databases ?

2009-09-04 Thread Martin P. Hellwig
Timothy Madden wrote: >>> conn = pyodbc.connect('DRIVER={PostgreSQL Unicode};Servername=127.0.0.1;UID=pikantBlue;Database=pikantBlue') Traceback (most recent call last): File "", line 1, in pyodbc.Error: ('0', '[0] [nxDC (202) (SQLDriverConnectW)') Not sure (i.e. wild guess) but that l

Re: python daemon - compress data and load data into MySQL by pyodbc

2009-09-03 Thread Martin P. Hellwig
MacRules wrote: What I am looking for is this. Oracle DB in data center 1 (LA, west coast) MSSQL DB in data center 2 (DC, east coast) So network bandwidth is an issue, I prefer to have gzip fist and deliver the data. If bandwidth is really an issue, you should send compressed delta's. I n

Re: [OT] evolution [was Re: An assessment of the Unicode standard]

2009-09-02 Thread Martin P. Hellwig
Steven D'Aprano wrote: I'd like to add the following: It is an intriguing human trade to attribute emotions and reasons to things that have none. Intriguing because I haven't observed yet that it provides an advantage, but it happens so often that I can't exclude it either. I find that evol

Re: why python got less developers ?

2009-08-28 Thread Martin P. Hellwig
Esam Qanadeely wrote: who cares if a language is compiled or interpreted as long as it runs and perform the function. second thing is : even if java is faster than python , unless you are making performance critical operations : who cares? computers are getting faster all the time and languages

Re: Python Processor

2009-08-26 Thread Martin P. Hellwig
John Nagle wrote: CPython's performance problems come from excessive dictionary lookups, not from instruction decode. John Nagle Could you please suggest some background information/links to this? I tried to Google for it but unsurprisingly any combination with 'cpython' and

Re: Need help with Python scoping rules

2009-08-26 Thread Martin P. Hellwig
kj wrote: First, one of the goals of OO is encapsulation, not only at the level of instances, but also at the level of classes. Who says? Anyway, you could be right (I am not capable to judge it) and Python should change on this issue but from what I gathered, Pythons OO is inspired by the fo

Re: Need help with Python scoping rules

2009-08-25 Thread Martin P. Hellwig
kj wrote: Here's a toy example illustrating what I mean. It's a simplification of a real-life coding situation, in which I need to initialize a "private" class variable by using a recursive helper function. eh? class Demo(object): def fact(n): if n < 2: return 1

Re: Python memory management <-> virtualized server environments

2009-08-25 Thread Martin P. Hellwig
gravityzoo-dmo wrote: On 24 aug, 20:35, "Martin P. Hellwig" wrote: gravityzoo-dmo wrote: Hello everyone, I was wondering if anyone here has had any experience in running Python in a virtualized server environment? The reason I'm asking is the recent thing I noticed when ru

Re: Python memory management <-> virtualized server environments

2009-08-24 Thread Martin P. Hellwig
gravityzoo-dmo wrote: Hello everyone, I was wondering if anyone here has had any experience in running Python in a virtualized server environment? The reason I'm asking is the recent thing I noticed when running my server application (written in Python + Twisted); The memory of the server applic

Re: can python make web applications?

2009-08-24 Thread Martin P. Hellwig
Deep_Feelings wrote: can python make powerfull database web applications that can replace desktop database applications? e.g: entrprise accounting programs,enterprise human resource management programs ...etc As the other replies already mentioned that these already exists, I would like to add t

Re: thread and win32com.client problem

2009-08-20 Thread Martin P. Hellwig
Christian Heimes wrote: Ray wrote: I already find the way to fix it. :-) I consider it good style when people describe their solution to a problem, too. Other Python users may run into the same issue someday. :) Christian He probably used: pythoncom.CoInitialize() -- MPH http://blog.dcu

Re: Parallelization in Python 2.6

2009-08-19 Thread Martin P. Hellwig
sturlamolden wrote: The human brain is bad at detecting computational bottlenecks though. So it almost always pays off to write everything in Python first, and use the profiler to locate the worst offenders. +1 QOTW -- MPH http://blog.dcuktec.com 'If consumed, best digested with added seasoni

Re: zip codes

2009-08-17 Thread Martin P. Hellwig
Shailen wrote: Is there any Python module that helps with US and foreign zip-code lookups? I'm thinking of something that provides basic mappings of zip to cities, city to zips, etc. Since this kind of information is so often used for basic user-registration, I'm assuming functionality of this so

Re: A Exhibition Of Tech Geekers Incompetence: Emacs whitespace-mode

2009-08-15 Thread Martin P. Hellwig
Sounds like a bad case of STRIS http://blog.dcuktec.com/2009/08/stris.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Parsing Binary Structures; Is there a better way / What is your way?

2009-08-06 Thread Martin P. Hellwig
Thanks all for your insights and suggestions. It seems to me that there are a couple of ways to this bit manipulation and a couple of foreign modules to assist you with that. Would it be worth the while to do a PEP on this? Personally I think that it would be nice to have a standard module in

Re: Google sitemap generator in python gone?

2009-08-05 Thread Martin P. Hellwig
Jon Clements wrote: Now please piddle off... I am guessing west-midlands? :-) -- MPH http://blog.dcuktec.com 'If consumed, best digested with added seasoning to own preference.' -- http://mail.python.org/mailman/listinfo/python-list

Re: Parsing Binary Structures; Is there a better way / What is your way?

2009-08-05 Thread Martin P. Hellwig
Paul Rubin wrote: "Martin P. Hellwig" writes: Is there an advantage using shifts and masks over my kitchen type solution? Weren't you complaining about the 8-to-1 expansion from turning each bit to an ascii char? Yes you are (of course) right, my 'dream' solution

Re: Parsing Binary Structures; Is there a better way / What is your way?

2009-08-05 Thread Martin P. Hellwig
Paul Rubin wrote: "Martin P. Hellwig" writes: what I usually do is read the packet in binary mode, convert the output to a concatenated 'binary string'(i.e. '0101011000110') and Something wrong with reading the data words as an integer and using old fashioned

Re: Parsing Binary Structures; Is there a better way / What is your way?

2009-08-05 Thread Martin P. Hellwig
Jon Clements wrote: IIRC (and I have my doubts) the BitVector module may be of use, but it's been about 3 years since I had to look at it. I think it used the C equiv. of short ints to do its work. Otherwise, maybe the array module, the struct module or even possibly ctypes. Not much use, but m

Parsing Binary Structures; Is there a better way / What is your way?

2009-08-05 Thread Martin P. Hellwig
Hi List, On several occasions I have needed (and build) a parser that reads a binary piece of data with custom structure. For example (bogus one): BE +-+-+-+-+--++ | Version | Command | Instruction | Data Length | Data | Filler | +-+-

Re: Python docs disappointing

2009-07-31 Thread Martin P. Hellwig
kj wrote: Well to a level I agree with you. If you are totally new to programming _and_ you won't/can't invest in educational material _and_ have an adversity for looking up resources using a web browser _and_ don't have the patience for trial and error *then* getting proficient with the langua

Generators through the C API

2009-07-30 Thread Lucas P Melo
Hello, I'm a total noob about the C API. Is there any way to create a generator function using the C API? I couldn't find anything like the 'yield' keyword in it. Thanks in advance. -- http://mail.python.org/mailman/listinfo/python-list

Re: Does python have the capability for driver development ?

2009-07-30 Thread Martin P. Hellwig
Ben Finney wrote: "Martin P. Hellwig" writes: Machine Code: Whatever the machine executes, it could be that the CPU uses an abstraction of microcode to do this but from the perspective of the user, this is all done in the same 'black box' This requires, of course,

Re: Does python have the capability for driver development ?

2009-07-30 Thread Martin P. Hellwig
Dave Angel wrote: Ah yes, we thread on the territory of word definition and difference in interpretation. Any argument is doomed to fail if not agreed or at least taken in perspective of the terminology used by users. I could be (well it is quite likely) wrong in my interpretation of the ter

Re: Does python have the capability for driver development ?

2009-07-30 Thread Martin P. Hellwig
Michel Claveau - MVP wrote: Hi! Python is interpreted No. Python is compiled (--> .pyc) But the term "to compile" is not always unambiguous... And the notion of "compiler" is not attached to Python (the language), but is attached to the implementation. @+ MCI Well the pyc, which I though

Re: Does python have the capability for driver development ?

2009-07-30 Thread Martin P. Hellwig
Marcus Wanner wrote: Look for example to libusb, which provides a userspace environment and pyusb which uses that and provides an interface to Python. iicr pyusb uses a c interface to libusb, not python... According to them they use ctypes indeed. Sorry if I was misleading in my explanati

Re: Does python have the capability for driver development ?

2009-07-29 Thread Martin P. Hellwig
Rodrigo S Wanderley wrote: What about user level device drivers? Think the Python VM could communicate with the driver through the user space API. Is there a Python module for that? Sure why not? Look for example to libusb, which provides a userspace environment and pyusb which uses that

Re: Does python have the capability for driver development ?

2009-07-29 Thread Martin P. Hellwig
MalC0de wrote: hello there, I've a question : I want to know does python have any capability for using Ring0 and kernel functions for driver and device development stuff . if there's such a feature it is very good, and if there something for this kind that you know please refer me to some referen

Re: simple splash screen?

2009-07-29 Thread Martin P. Hellwig
NighterNet wrote: Thanks it help. Sorry about that, I was just wander what kind of answer and if there are other methods to learn it. Is there a way to position image to the center screen? Yes there is, just start reading from here: http://effbot.org/tkinterbook/ Though because Python 3 has

Re: simple splash screen?

2009-07-29 Thread Martin P. Hellwig
NighterNet wrote: I am trying to make a simple splash screen from python 3.1.Not sure where to start looking for it. Can any one help? Sure, almost the same as with Python 2 :-) But to be a bit more specific: """Only works if you got Python 3 installed with tkinter""" import tkinter IMAGE

Re: M2Crypto hangs on this URL

2009-07-28 Thread Martin P. Hellwig
John Nagle wrote: Martin P. Hellwig wrote: John Nagle wrote: John Nagle wrote: John Nagle wrote: There's something strange about this URL: "https://sagar310.pontins.com/sraep/"; ... It looks to me like the SSL handshake is not done properly from the server side. Compar

Re: M2Crypto hangs on this URL

2009-07-27 Thread Martin P. Hellwig
John Nagle wrote: John Nagle wrote: John Nagle wrote: There's something strange about this URL: "https://sagar310.pontins.com/sraep/"; It hangs Firefox 2; there's no short timeout, the web page just gets stuck in initial load for about ten minutes. Then "The connection to sagar310.pontins.co

Re: Ideas for problem with chat server application!

2009-07-23 Thread Martin P. Hellwig
David Adamo Jr. wrote: My attempt was to create a windows service that start automatically and runs this batch file using a Network Service account on the server system. Although, I'm having a hard time with this (temporarily), I would love to ask if there are any alternatives to using a windows

Re: challenging problem for changing to a dedicated non-privileged user within a script.

2009-07-22 Thread Martin P. Hellwig
Krishnakant wrote: I've seen a method before in a MS cmd script (MakeMeAdmin.cmd) for the purpose of temporarily elevating your rights but remaining the same user. There was a need trick in that the script checks itself on what credentials it runs, if it is not the appropriate one it will ca

Balanced binary tree implementation

2009-07-21 Thread Lucas P Melo
Hello, I would like to use a balanced binary tree implementation (preferably within some API). Any hints about where I could find it? I am looking for something that implements insertion, deletion, search and a special search that returns the lesser element bigger than a given key [1]. A n

Re: List insertion cost

2009-07-21 Thread Lucas P Melo
Robert Kern wrote: O(n). Python lists are contiguous arrays in memory, and everything after the insertion point needs to be moved. Raymond Hettinger has a good talk about the implementation of Python lists and other container objects. http://www.youtube.com/watch?v=hYUsssClE94 http://www.pyco

List insertion cost

2009-07-21 Thread Lucas P Melo
Hello, I would like to know how much it costs to insert an element into a list using this operation: a[2:2] = [ 1 ] i. e, what is the complexity of the operation above (given that len(a) = n)? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Running a Python Service under the LocalService or NetworkService Account

2009-07-21 Thread Martin P. Hellwig
David Adamo Jr. wrote: On Jul 21, 10:40 am, "Martin P. Hellwig" wrote: sightseer wrote: Error Installing Service: Access is Denied. (5) Are you trying to do this on windows vista? -- MPHhttp://blog.dcuktec.com 'If consumed, best digested with added seasoning to own pref

Re: Running a Python Service under the LocalService or NetworkService Account

2009-07-21 Thread Martin P. Hellwig
sightseer wrote: Error Installing Service: Access is Denied. (5) Are you trying to do this on windows vista? -- MPH http://blog.dcuktec.com 'If consumed, best digested with added seasoning to own preference.' -- http://mail.python.org/mailman/listinfo/python-list

Re: why did you choose the programming language(s)you currently use?

2009-07-14 Thread Martin P. Hellwig
Aahz wrote: In article <4a5ccdd6$0$32679$9b4e6...@newsspool2.arcor-online.net>, Stefan Behnel wrote: Deep_Feelings wrote: So you have chosen programming language "x" so shall you tell us why you did so , and what negatives or positives it has ? *duck* Where do you get the duck programming

ANN: RuPy '09 Conference

2009-07-14 Thread Jakub P. Nowak
y.eu Best regards, -- Jakub P. Nowak RuPy Committee -- http://mail.python.org/mailman/listinfo/python-list

Re: Python code for testing well parenthesized expression

2009-07-14 Thread Martin P. Hellwig
Martin P. Hellwig wrote: candide wrote: To add to your implementations; a readable version: +++file parantheses.py+++ """Parentheses Module Test""" def parentheses_are_paired(input_string): "Check if 'input_string' contains paired parentheses

Re: Python code for testing well parenthesized expression

2009-07-14 Thread Martin P. Hellwig
candide wrote: To add to your implementations; a readable version: +++file parantheses.py+++ """Parentheses Module Test""" def parentheses_are_paired(input_string): "Check if 'input_string' contains paired parentheses, if so return True." parenthesis_count = 0 parenthesis_open = '(

Psyco 64 bits

2009-07-09 Thread Luis P. Mendes
Hi, I used Psyco to speed up my Python code. Due to the great amount of data I have to proccess, I moved my Linux system to a 64 bits version with more RAM. It seems that Psyco cannot be used in such platforms. Or is there another version of Psyco for 64 bits platform? I googled and arrived to

Is Psyco good for Python 2.6.1?

2009-07-02 Thread Russ P.
I need to speed up some Python code, and I discovered Psyco. However, the Psyco web page has not been updated since December 2007. Before I go to the trouble of installing it, does anyone know if it is still good for Python 2.6.1? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Fast Dictionary Access

2009-06-27 Thread Rachel P
[Thomas Lehmann] > In C++, programming STL you will use the insert method which always > provides a position and a flag which indicates whether the position > results from a new insertion or an exisiting element. Idea is to have > one search only. > > > if  data.has_key(key): >    value = data[key

Re: I need a dict that inherits its mappings

2009-06-25 Thread Rachel P
On Jun 25, 5:31 am, samwyse wrote: > I need a dict-like object that, if it doesn't contain a key, will > return the value from a "parent" object.   See: http://code.activestate.com/recipes/305268/ Also try subclassing dict and implementing a __missing__() method. Raymond -- http://mail.pytho

Re: IMPORTANT: I NEED TO HELP WITH ONE OF THE CORE DEVELOPERS

2009-06-25 Thread Martin P. Hellwig
Chris Rebert wrote: In the future, also NOTE THAT SHOUTING TYPICALLY DOES NOT EARN ONE SYMPATHY. Cheers, Chris Let me demonstrate: Chris, I have no sympathy for you :-) -- MPH http://blog.dcuktec.com 'If consumed, best digested with added seasoning to own preference.' -- http://mail.python.

Re: MemoryError c/vcompiler.h:745: Fatal Python error (Psycopg2)

2009-06-21 Thread Luis P. Mendes
Sun, 21 Jun 2009 13:04:59 +, Lie Ryan escreveu: > Luis P. Mendes wrote: >> Hi, >> >> I have a program that uses a lot of resources: memory and cpu but it >> never returned this error before with other loads: >> >> """ >> Memory

MemoryError c/vcompiler.h:745: Fatal Python error (Psycopg2)

2009-06-21 Thread Luis P. Mendes
Hi, I have a program that uses a lot of resources: memory and cpu but it never returned this error before with other loads: """ MemoryError c/vcompiler.h:745: Fatal Python error: psyco cannot recover from the error above Aborted """ The last time I checked physical RAM while the script was run

Re: Decorator question (how to test if decorated function is in a class)

2009-06-20 Thread Martin P. Hellwig
Bruno Desthuilliers wrote: Short answer: this makes no sense. Absolutely right, took me a while to figure that out though :-) Lesson learned (again): If it really seems impossible to do something in Python, it is likely the proposed solution is flawed. -- MPH http://blog.dcuktec.com 'If con

Decorator question (how to test if decorated function is in a class)

2009-06-19 Thread Martin P. Hellwig
Hi all, I have been trying out to wrap my mind around the advantages of decorators and thought I found a use in one of my experiments. (see code after my sig). Although it works, I think it should be able to do it better. My particular problem is that I want to remove an argument (say always

Re: first full alpha release of PyLab_Works v0.3

2009-06-17 Thread Martin P. Hellwig
edexter wrote: it says I am missing msvcp71.dll installing Microsoft Visual C++ 2005 Redistributable Package did not help.. I had simular problems with alot of installers I had saved (from installing on xp) but when I grabbed newer installers they all worked, could be the manifast I was

Re: UDP queue size

2009-06-17 Thread Martin P. Hellwig
Scott David Daniels wrote: > 找尋自己的一片天 wrote: >> I got a problem about UDP. >> >> How do I get the UDP buffer size? >> >> When the server had some delay in handling incoming UDP, it will lost >> some package. I wonder it's because the system buffer size, is there any >> ways to find

Re: Regarding Python is scripting language or not

2009-06-17 Thread Martin P. Hellwig
Jochen Schulz wrote: abhishek goswami: Can anyone Guide me that Python is Oject oriented programming language or Script language In my opinion, Python is both. But an "objective" answer would require you to define what you means by these terms. If, by "object-oriented" you mean "everything ha

Re: first full alpha release of PyLab_Works v0.3

2009-06-16 Thread Martin P. Hellwig
PyLab_Works on http://pic.flappie.nl Most of these pages are also collected in a single pdf document, which can be found here: http://pylab-works.googlecode.com/files/pw_manual.pdf The source code and a one-button-Windows-Installer can be found on codegoogle: http://code.google.com/p/pylab-works

Tool for browsing python code

2009-06-16 Thread Lucas P Melo
Is there any tool for browsing python code? (I'm having a hard time trying to figure this out) Anything like cscope with vim would be great. -- http://mail.python.org/mailman/listinfo/python-list

Re: easiest way to check python version?

2009-06-10 Thread Martin P. Hellwig
dmitrey wrote: hi all, what is easiest way to check python version (to obtain values like 2.4, 2.5, 2.6, 3.0 etc) from Python env? I don't mean "python -V" from command prompt. Thank you in advance, D. You don't mean: >>> sys.version either? -- MPH http://blog.dcuktec.com 'If consumed, best

Re: openhook

2009-06-06 Thread Martin P. Hellwig
Steven D'Aprano wrote: On Sat, 06 Jun 2009 06:47:34 -0700, Scott David Daniels wrote: Gaudha wrote: Can anybody tell me what is meant by 'openhook' ? Certainly someone can. It's just like closehook, only different. Just like the flipflophook, the quantumhook and captain hook. -- MPH ht

Re: subprocess and win32security.ImpersonateLoggedOnUser

2009-06-01 Thread Martin P. Hellwig
Emin.shopper Martinian.shopper wrote: The source for subprocess just uses CreateProcess. Which means that, short of monkey-patching it, you're going to have to roll your own subprocess-like code (I think). Basically, you'll need to run CreateProcessAsUser or CreateProcessAsLogonW. They're both a

Re: automated web with python?

2009-06-01 Thread P. Kaminski
OK, I found a solution -- Selenium, from http://selenium.org. I downloaded Selenium RC and this works fantastic! I'll get the job done by tomorrow ;) -- http://mail.python.org/mailman/listinfo/python-list

Re: automated web with python?

2009-06-01 Thread P. Kaminski
Ech... The problem is that mechanize doesn't support JavaScript, and these web forms are full of various JS functions... Maybe someone knows a way out of this? Doesn't have to be Python... -- http://mail.python.org/mailman/listinfo/python-list

Re: automated web with python?

2009-05-31 Thread P. Kaminski
OK, thanks, I'll give it a try, -- http://mail.python.org/mailman/listinfo/python-list

Re: How to ask smart questions question

2009-05-26 Thread Martin P. Hellwig
Martin P. Hellwig wrote: I can do a quick one albeit without citation: - Have you googled/searched? - No really, have you? - Are you really, really sure? - So what did you 'search for|tried before' which didn't returned a result you can work with? - What does that tell you

Re: How to ask smart questions question

2009-05-26 Thread Martin P. Hellwig
Carl Banks wrote: On May 26, 7:48 am, Gary Herron wrote: John wrote: I'm okay with init, but it seems to me that enter is redundant since it appears that anything you want to execute in enter can be done in init. The proper response to a question like this has to be http://www.catb.org/~es

Re: making a python program in windows

2009-05-21 Thread Martin P. Hellwig
Rustom Mody wrote: I know how to make a python script behave like a (standalone) program in unix -- 1. put a #! path/to/python as the first line 2. make the file executable The closest I know how to do this in windows is: r-click the file in win-explorer goto properties goto open with change pyt

Re: SimpleXMLRPCServer and creating a new object on for each new client request.

2009-05-10 Thread Martin P. Hellwig
Piet van Oostrum wrote: goo...@smetj.net (g) wrote: g> Well, I think Martin's example will suit my needs. g> Thanks for the explanation! His client code is unnecessarily complicated with 3 session variables. The following code does the same: SESSION = xmlrpclib.ServerProxy(URL_PORT)

Re: SimpleXMLRPCServer and creating a new object on for each new client request.

2009-05-06 Thread Martin P. Hellwig
Jelle Smet wrote: Hi list, My goals is to have concurrent and separated client sessions using xmlrpc. Initially my though was that SimpleXMLRPCServer was able to create a new object instance for each incoming request. But this doesn't appear to be the case, unless I'm overlooking something, if s

Re: Is it better to use threads or fork in the following case

2009-05-03 Thread Martin P. Hellwig
grocery_stocker wrote: Let's say there is a new zip file with updated information every 30 minutes on a remote website. Now, I wanna connect to this website every 30 minutes, download the file, extract the information, and then have the program search the file search for certain items. Would it

Re: web access through vpn client

2009-05-02 Thread Martin P. Hellwig
mark.sea...@gmail.com wrote: On May 1, 5:57 pm, "Martin P. Hellwig" wrote: mark.sea...@gmail.com wrote: Hi; I am trying to retrieve financial data off website for stock market analysis. Just hobby not for pay. I actually am impressed that urllib2 and BeautifulSoup work pretty

Re: web access through vpn client

2009-05-01 Thread Martin P. Hellwig
mark.sea...@gmail.com wrote: Hi; I am trying to retrieve financial data off website for stock market analysis. Just hobby not for pay. I actually am impressed that urllib2 and BeautifulSoup work pretty well to do what I want, and the first little routine actually gets the data from the web pag

Re: Silent install of Python software(2.5) for windows.

2009-04-29 Thread Martin P. Hellwig
kc.pyt...@gmail.com wrote: Hi All, Is it possible to "automate" the installation of python software(2.5) without the need of pressing "Next" so many times? Below is the platform in which it should be installed. OS : windows Thanks & Regards, Kalyan. Distribute the msi using Active Directories

Re: Is there a maximum size to a Python program?

2009-04-27 Thread Martin P. Hellwig
Carbon Man wrote: I have a program that is generated from a generic process. It's job is to check to see whether records (replicated from another system) exist in a local table, and if it doesn't, to add them. To answer the topic question, it would be limited to the memory your platform can

Re: DigitalSigner in Python

2009-04-25 Thread Martin P. Hellwig
Marco Bizzarri wrote: On Fri, Apr 24, 2009 at 7:57 AM, Good Z wrote: Hello All, I need to digitally sign a document in python. Is there any equivalent directory in Python like the DigitalSigner we have in Java. Best Regards, Mike Maybe you could take a look at M2Crypto? http://chandlerp

Re: Learning Python the quick way

2009-04-25 Thread Martin P. Hellwig
mercur...@googlemail.com wrote: Hi guys, I have decided to learn Python a little more than I already do. Very good! But I found few problems, I am not sure what will happen if I do the programing in python the find the program doesn't deliver the desired performance due to lack of a good com

Re: The Python standard library and PEP8

2009-04-19 Thread Martin P. Hellwig
Emmanuel Surleau wrote: What makes you think Python is "an OO language"? Python is a dynamic object-oriented programming language that can be used for many kinds of software development. First line on the Python official website. Was this a trick question? What kind of OO language allows y

Re: Can some1 review my code?

2009-04-19 Thread Martin P. Hellwig
zaheer.ag...@gmail.com wrote: hi I am from java background, I have written some code that actually works :) Need to some one to look at it and tell me if there are better ways of doing same things Will some one help? Thanks My crystal ball is a bit cloudy today so forgive me if my suggestion

Re: [OT] large db question about no joins

2009-04-18 Thread Martin P. Hellwig
Daniel Fetchinson wrote: Thanks, this wikipedia entry was actually very useful as well as your other comments. Thanks again, Daniel Your welcome, I usually take quite a lot of effort into designing before I start coding. One tool I found very helpful was DIA, especially the UML section. Ha

Re: Is there a programming language that is combination of Python and Basic?

2009-04-17 Thread Martin P. Hellwig
Michael Torrie wrote: Aahz wrote: Why do you want to do that? Before you answer, make sure to read this: http://www.u.arizona.edu/~rubinson/copyright_violations/Go_To_Considered_Harmful.html Somebody better tell the Linux kernel developers about that! They apparently haven't read that yet.

Re: [OT] large db question about no joins

2009-04-17 Thread Martin P. Hellwig
Daniel Fetchinson wrote: In an relational database setting you would have a table for artists, a table for cd's and a table for songs and a table for comments where people can comment on songs. All of this with obvious foreign keys. Now you want to display on your website the total number of cd'

Re: [OT] large db question about no joins

2009-04-17 Thread Martin P. Hellwig
Daniel Fetchinson wrote: Well, I gave the concrete example of zoo/cage/animal/leg because this *is* the business logic. I need to know for example the total number of animals, this is pretty understandable if you have a zoo. Or you mean that I should give another example? It might be the busin

Re: [OT] large db question about no joins

2009-04-16 Thread Martin P. Hellwig
Daniel Fetchinson wrote: [off but interesting topic] What would be the corresponding database layout that would scale and I could get the total number of legs in the zoo or total number of animals in the zoo without join(s)? Cheers, Daniel [/off but interesting topic] That all comes down

Re: iPython help, Docstring [source file open failed]

2009-04-15 Thread P. Kaminski
On 15 Kwi, 03:27, alex23 wrote: > On Apr 15, 5:35 am, Przemyslaw Kaminski wrote: > > > You may want to try: > > import pydoc > > b = pydoc.render_doc(timedelta) > > print b > > Isn't this exactly the same output you get from typing 'help > (timedelta)' though? Well, from this: Lets say I want m

Re: cx_Oracle - DLL load failed

2009-04-13 Thread Martin P. Hellwig
cwurld wrote: Hi, I am having some trouble getting cx_Oracle to work. When I try to import cx_Oracle, I get the following error message: ImportError: DLL load failed: %1 is not a valid Win32 application. I am using Python 2.6 on WIndows. Oracle Client 10g. Any ideas? Thanks Hmm some time a

Re: Python3: to add, remove and change

2009-04-05 Thread Joe P. Cool
ouce public-money- > funded vaporwere that has tried to do too much). How about moving these lines to a separate message with a matching header? Regards, Joe. P. Cool -- http://mail.python.org/mailman/listinfo/python-list

Re: Testing dynamic languages

2009-04-04 Thread Martin P. Hellwig
grkunt...@gmail.com wrote: If I am writing in Python, since it is dynamically, but strongly typed, I really should check that each parameter is of the expected type, or at least can respond to the method I plan on calling ("duck" typing). Every call should be wrapped in a try/except statement to

<    5   6   7   8   9   10   11   12   13   14   >