Re: code review

2012-06-29 Thread Martin P. Hellwig
On Friday, 29 June 2012 20:41:11 UTC+1, Alister wrote: > On Fri, 29 Jun 2012 09:03:22 -0600, Littlefield, Tyler wrote: > > > On 6/29/2012 1:31 AM, Steven D'Aprano wrote: > >> On Thu, 28 Jun 2012 20:58:15 -0700, alex23 wrote: > >> > >>> On Jun 29, 12:57 pm, "Littlefield, Tyler" wrote: > I wa

Re: code review

2012-06-30 Thread Martin P. Hellwig
On Saturday, 30 June 2012 21:30:45 UTC+1, Alister wrote: > On Sat, 30 Jun 2012 21:38:58 +0200, Thomas Jollans wrote: > > > On 06/30/2012 08:39 PM, Thomas 'PointedEars' Lahn wrote: > >> Peter Otten wrote: > >> > >>> If you spell it > >>> > >>> def is_valid_password(password): > >>> return mud

Re: Writing a wrapper - any tips?

2012-07-13 Thread Martin P. Hellwig
On Friday, 13 July 2012 05:03:23 UTC+1, Temia Eszteri wrote: > I'm going to be looking into writing a wrapper for the Allegro 5 game > development libraries, either with ctypes or Cython. They technically > have a basic 1:1 ctypes wrapper currently, but I wanted to make > something more pythonic,

Re: simple client data base

2012-09-03 Thread Martin P. Hellwig
On Monday, 3 September 2012 15:12:21 UTC+1, Manatee wrote: > Hello all, I am learning to program in python. I have a need to make a > > program that can store, retrieve, add, and delete client data such as > > name, address, social, telephone number and similar information. This > > would be a

Re: Article on the future of Python

2012-09-25 Thread Martin P. Hellwig
On Tuesday, 25 September 2012 09:14:27 UTC+1, Mark Lawrence wrote: > Hi all, > > I though this might be of interest. > http://www.ironfroggy.com/software/i-am-worried-about-the-future-of-python > -- > > Cheers. > Mark Lawrence. I glanced over the article but it seems to me another 'I am afraid

Re: debugging in eclipse

2012-11-15 Thread Martin P. Hellwig
On Thursday, 15 November 2012 12:29:04 UTC, chip...@gmail.com wrote: > Hi all! > > > > I have a stupid problem, for which I cannot find a solution... > > > > I have a python module, lets call it debugTest.py. > > > > and it contains: > > def test(): > > a=1 > > b=2 > > c=a

Python-UK Community on google+

2012-12-07 Thread Martin P. Hellwig
of. You can find it here: https://plus.google.com/u/0/communities/109155400666012015869 Hope to see you soon :-) Martin P. Hellwig -- http://mail.python.org/mailman/listinfo/python-list

Re: The devolution of English language and slothful c.l.p behaviors exposed!

2012-01-24 Thread Martin P. Hellwig
On 24/01/2012 05:57, Rick Johnson wrote: I would wish that pedantic citizens of the British colony in America stopped calling whatever misinterpreted waffle they produce, English. -- mph -- http://mail.python.org/mailman/listinfo/python-list

Re: The devolution of English language and slothful c.l.p behaviors exposed!

2012-01-24 Thread Martin P. Hellwig
On 24/01/2012 14:51, J wrote: On Tue, Jan 24, 2012 at 09:05, Martin P. Hellwig wrote: On 24/01/2012 05:57, Rick Johnson wrote: I would wish that pedantic citizens of the British colony in America stopped calling whatever misinterpreted waffle they produce, English. I, sir, as a citizen of

Re: Where to put data

2012-01-26 Thread Martin P. Hellwig
On 25/01/2012 17:26, bvdp wrote: Well once you think about distributing, here is the guide line I use: - If it is meant as a library that can be 'imported' in python: > site-packages is the place to be, some linux distros are rather creative with them so be careful. - If it is a 'stand-alon

Re: speaking at PyCon

2012-01-31 Thread Martin P. Hellwig
On 29/01/2012 03:32, Eric Snow wrote: This is my first year speaking at PyCon, so I solicited speaking/preparation advice from a bunch of folks, particularly focusing on the PyCon speaking experience. I've compiled the results and put them online: http://ref.rtfd.org/speakers This is still rou

Re: Eclipse, C, and Python

2012-03-20 Thread Martin P. Hellwig
On 20/03/2012 06:00, Richard Medina Calderon wrote: Hello Forum. I have installed Python comnpiler in Eclipse Classic for Windows. After a while I have installed the C compiler. However, somehow now when I try to run my code in Python it shows me for default Ant Run -->Ant Build I switched my

Re: f python?

2012-04-08 Thread Martin P. Hellwig
On 08/04/2012 12:11, Xah Lee wrote: Hi Xah, You clearly didn't want help on this subject, as you really now how to do it anyway. But having read your posts over the years, I'd like to give you an observation on your persona, free of charge! :-) You are actually a talented writer, some may fi

Re: Python randomly exits with Linux OS error -9 or -15

2012-04-09 Thread Martin P. Hellwig
On 09/04/2012 11:01, Janis wrote: My experience is that these kind of behaviors are observed when (from most to least likeliness): - Your kernel barfs on a limit, e.g. space/inodes/processes/memory/etc. - You have a linked library mismatch - You have bit rot on your system - You have a faulty l

Re: Open Source: you're doing it wrong - the Pyjamas hijack

2012-05-09 Thread Martin P. Hellwig
uably they are not mistakes at all, are not easy forgotten and can end up haunting you. I hope you will take these comments with you as a lesson learned, I do wish you all the best and look forward to the improvements you are going to contribute. -- Martin P. Hellwig (mph) -- http://mail.pytho

Re: Rant on web browsers

2011-06-14 Thread Martin P. Hellwig
On 14/06/2011 07:31, Chris Angelico wrote: But if anyone feels like writing an incompatible browser, please can you add Python scripting? You might find that Pyjamas already fill your needs python/javascript wise. It is truly great to just write python, translate it, and then have it work in

Re: Ten rules to becoming a Python community member.

2011-08-16 Thread Martin P. Hellwig
On 16/08/2011 18:51, Prasad, Ramit wrote: Incorrect past tense usage of "used to": """ I "used to" wear wooden shoes """ Incorrect description using "used to": """ I have become "used to" wearing wooden shoes """ Correct usage of "used to": """ Wooden shoes can be "used to" torture someone

Re: Syntactic sugar for assignment statements: one value to multiple targets?

2011-08-16 Thread Martin P. Hellwig
On 03/08/2011 02:45, gc wrote: a,b,c,d,e = *dict() where * in this context means something like "assign separately to all. Any thoughts? Thanks! Well got a thought but I am afraid it is the opposite of helpful in the direct sense. So if you don't want to hear it skip it :-) Although I c

Re: How to daemonize a HTTPServer

2011-09-01 Thread Martin P. Hellwig
On 01/09/2011 04:16, babbu Pehlwan wrote: I have written a http server using BaseHTTPServer module. Now I want to instantiate it through another python script. The issue here is after instantiate the control doesn't come back till the server is running. Please suggest. Sounds like something you

Re: Newbie...

2011-02-24 Thread Martin P. Hellwig
On 02/24/11 19:22, wisecrac...@tesco.net wrote: Hi all... I am new to this list so treat me gently... ;o) I for one welcome you :-) I use Python almost totally differently to the vast majority of people. I like "banging the metal". Well I can assure you that although you might be indeed i

Re: my computer is allergic to pickles

2011-03-07 Thread Martin P. Hellwig
On 05/03/2011 01:56, Bob Fnord wrote: Any comments, suggestions? No but I have a bunch of pseudo-questions :-) What version of python are you using? How about your OS and bitspace (32/64)? Have you also tried using the non-c pickle module? If the data is very simple in structure, perhaps s

Re: Development tools and practices for Pythonistas

2011-04-26 Thread Martin P. Hellwig
On 26/04/2011 14:39, snorble wrote: I would strongly advice to get familiar with: - Lint tools (like PyLint) - Refactoring - Source Control Systems (like Mercurial Hg) - Unit Testing with Code Coverage Followed by either writing your own toolset that integrates all of the above or start learnin

Re: py3k buffered IO - flush() required between read/write?

2011-05-11 Thread Martin P. Hellwig
On 11/05/2011 19:08, Genstein wrote: On 11/05/2011 19:24, Terry Reedy wrote: writing and reading. If you want others to look at this more, you should 1) produce a minimal* example that demonstrates the questionable behavior, and 2) show the comparative outputs that raise your question. Thanks

Re: English Idiom in Unix: Directory Recursively

2011-05-18 Thread Martin P. Hellwig
On 17/05/2011 23:20, Ian Kelly wrote: On Tue, May 17, 2011 at 4:26 PM, Xah Lee wrote: Though, if you think about it, it's not exactly a correct description. “Recursive”, or “recursion”, refers to a particular type of algorithm, or a implementation using that algorithm. Only when used as progr

Re: Daisy Daisy, give me your answer do

2005-10-09 Thread Martin P. Hellwig
Michael Goettsche wrote: > You're asking "tech geekers" and "morons" to do this job? Isn't that a task > for somebody more professional like you? I think he's doing a shot to the position of open-source leader, judging on the replies he has got till so far, that shot was not really effective.

Re: Microsoft Hatred FAQ

2005-10-15 Thread Martin P. Hellwig
Jeroen Wenting wrote: > > Without Microsoft 90% of us would never have seen a computer more powerful > than a ZX-81 and 90% of the rest of us would never have used only dumb > mainframe terminals. At the time you "PC" guys where hacking around monochrome green and a bit lighter green screens

Re: Microsoft Hatred FAQ

2005-10-15 Thread Martin P. Hellwig
John Bokma wrote: > You mean like the lamp that keeps burning forever, like Philips has? > No more like all the hydrogen technologies that shell has in their possession for the last decades and only recently has begun to restart those projects. >> Although Commodore where never serious compet

pyHook example.py brakes windows dead keys mechanisme

2005-10-22 Thread Martin P. Hellwig
Hi all, I noticed that the "dead keys"* mechanism (XPSP2 NL, keyboard map US, input language Dutch) doesn't work when running the pyHooks (python 241) example. Instead of ö ("o) I immediately get ""o. If I close the pyHooks example the expected behavior returns. Is there a way how I can get bot

Re: Microsoft Hatred FAQ

2005-10-25 Thread Martin P. Hellwig
Not Bill Gates wrote: > [EMAIL PROTECTED] wrote... >> On Tue, 25 Oct 2005 15:35:47 +, Not Bill Gates wrote: >> >>> Heck, I dunno. Like you, I don't even really care all that much. >> You don't care that innovation in desktop software has been crippled by >> the actions of the monopoly player

Re: Microsoft Hatred FAQ

2005-10-25 Thread Martin P. Hellwig
David Schwartz wrote: > It's easy to point to things you think are mistakes and claim that if > you had been in charge of the world, those mistakes would not have been > made. If you are trying to balance completely different possible paths the > universe might have taken, you need to make

Re: I need Motivation

2005-11-03 Thread Martin P. Hellwig
[EMAIL PROTECTED] wrote: > I m not a python Expert or anythin > i need help, i m losin my motivation to continue with python > can anyone inspire me again.??? Ooh that is easy, start learning other programming languages, you'll go back continuing with python very soon after that! ;-) -- mph --

Re: I need Motivation

2005-11-04 Thread Martin P. Hellwig
[EMAIL PROTECTED] wrote: > Martin P. Hellwig wrote: >> [EMAIL PROTECTED] wrote: >>> I m not a python Expert or anythin >>> i need help, i m losin my motivation to continue with python >>> can anyone inspire me again.??? >> Ooh that is easy, start learn

Re: wxPython Licence vs GPL

2005-11-24 Thread Martin P. Hellwig
Steven D'Aprano wrote: > I'm FREE to use the software, FREE to redistribute it, FREE to give it > away, FREE to make derivative works, FREE to transfer the licence, *and* > I got it FREE of cost as well, but that doesn't make it free. > Indeed, when I explain GPL to non-techies and what their (

Re: wxPython Licence vs GPL

2005-11-24 Thread Martin P. Hellwig
Mike Meyer wrote: > "Martin P. Hellwig" <[EMAIL PROTECTED]> writes: >> If the non-techie is still interested, I'll rave on about that I >> understand why GPL is a good way to ensure availability of IP >> especially if the software is a collaborated

Re: wxPython Licence vs GPL

2005-11-24 Thread Martin P. Hellwig
Mike Meyer wrote: > > Is that software really unavailable, or just unavailable for free? If > the latter, then it's not unavailabe. If the former, the it didn't > become unavailable, as it was never available in the first place. > In the latter case, you could also use those examples to similarly

Re: wxPython Licence vs GPL

2005-11-24 Thread Martin P. Hellwig
Mike Meyer wrote: > > Well, they chose to make it available to others for reuse. But > software "unavailable to those who can't afford it" is better than "no > software at all" That I do not agree with, I think it depends on which your side of the fence you are. For instance I have a specific

Re: wxPython Licence vs GPL

2005-11-26 Thread Martin P. Hellwig
Steven D'Aprano wrote: > On Thu, 24 Nov 2005 23:26:38 +0100, Martin P. Hellwig wrote: > >> BSD/MIT style license is a >> good substitute of no license at all. > > But that's not true: "no licence at all" means that nobody has the right > to u

Re: wxPython Licence vs GPL

2005-11-26 Thread Martin P. Hellwig
Steven D'Aprano wrote: > On Thu, 24 Nov 2005 17:43:22 +0100, Martin P. Hellwig wrote: > >> if I owned a company >> making profit on software sales (sale =! support) you sign a death wish >> for using GPL > > Apart from Microsoft, and possibly Quark (makers o

Re: wxPython Licence vs GPL

2005-11-26 Thread Martin P. Hellwig
Steven D'Aprano wrote: > > > I think you are over-estimating both the numbers and profitability of such > niche software distributors, and misunderstanding the business models of > them. Coincidently, I worked at a software company making a "standard" administration software for primary school

Re: wxPython Licence vs GPL

2005-11-27 Thread Martin P. Hellwig
Steven D'Aprano wrote: > On Sat, 26 Nov 2005 21:39:13 +0100, Martin P. Hellwig wrote: > >> The software was sold in 3 separates modules requiring a yearly renewal, > > The software is hardly sold if you have to renew that "sale" every year. > That's mo

Re: Detect character encoding

2005-12-04 Thread Martin P. Hellwig
Mike Meyer wrote: > "Diez B. Roggisch" <[EMAIL PROTECTED]> writes: >> Michal wrote: >>> is there any way how to detect string encoding in Python? >>> I need to proccess several files. Each of them could be encoded in >>> different charset (iso-8859-2, cp1250, etc). I want to detect it, >>> and enco

Re: Friend wants to learn python

2005-07-23 Thread Martin P. Hellwig
EnderLocke wrote: > I have a friend who wants to learn python programming. I learned off > the internet and have never used a book to learn it. What books do you > recommend? > > Any suggestions would be appreciated. > I recommend "Learning Python 2nd Edition" by Mark Lutz & David Ascher (O'Rei

Re: Secure email

2005-08-04 Thread Martin P. Hellwig
[EMAIL PROTECTED] wrote: > I need to write a .cgi that will take the content of an https GET or > POST and send it securely as email to an Outlook client. > > I think that OpenSSL is somewhere in this, but I'm not even sure how to > create the right certificate, how to use it to encrypt mail and

Re: pain

2005-08-04 Thread Martin P. Hellwig
Mage wrote: >> > Thank you, I will check this out. My company will switch to a jsp site. Well I don't know your company and how many developers there are but I know this; a manager telling me what tools to use to do my job is a bad manager by definition because he should realize that the peopl

Re: Secure email

2005-08-04 Thread Martin P. Hellwig
Michael Ströder wrote: > Martin P. Hellwig wrote: > >>I think you want this more common approach for mail encryption: >> >>server: >>https CGI form --> mail wrapper --> PGP encryption/signing --> send >> >>client: >>recieve mail --> pgp

Re: Secure email

2005-08-04 Thread Martin P. Hellwig
Michael Ströder wrote: >>>This would require an additional PGP-plugin for Outlook. Outlook can >>>decrypt S/MIME messages out-of-the-box. >> >>Yes indeed, although I personaly find pgp a bit more elegant your >>solution would be the best for the OP. > Whether S/MIME or PGP is used depends very mu

Re: The ONLY thing that prevents me from using Python

2005-08-05 Thread Martin P. Hellwig
Kevin wrote: Well, for some strange reason I have never found that to be a problem. But that is perhaps because I'm an administrator and I want full root access, install the OS as I see fit and don't want others on the same (virtual)box. So hosting doesn't work for me I need colo or dedicated.

Re: The ONLY thing that prevents me from using Python

2005-08-05 Thread Martin P. Hellwig
Magnus Lycka wrote: > Martin P. Hellwig wrote: > >> Kevin wrote: >> >> >> Well, for some strange reason I have never found that to be a problem. > > > If you develop software for an external customer, and they have > an existing web site run by some

Re: Python -- (just) a successful experiment?

2005-08-07 Thread Martin P. Hellwig
Kay Schluehr wrote: > Eric Pederson wrote: > >>Raise your hand if you think the best technology wins! > > > Who is interested in such a matter? Is this a forum dedicated to some > programming language or a popularity contest? > > If Python dies in a few years / looses attention but the Python Z

Re: What is Python?!

2005-08-12 Thread Martin P. Hellwig
Magnus Lycka wrote: > or what have you. How do you sell this without making it sound > like snake oil? (Particularly with that name! :) This *is* the languange you are looking for ... Stops the argument every time, although afterwards they look kind a funny at me. -- mph -- http://

Re: Should I move to Amsterdam?

2005-08-24 Thread Martin P. Hellwig
Wade wrote: > http://www.slate.com/id/2124561/entry/2124562/ > > Nice little series by Seth Stevenson for Americans daydreaming about > emigration. Somewhere, anywhere ... maybe Amsterdam? > > I've never been to the Netherlands myself, but it sounds very > civilized. > > Extra Python connection,

Re: Should I move to Amsterdam?

2005-08-26 Thread Martin P. Hellwig
Sybren Stuvel wrote: > Martin P. Hellwig enlightened us with: > >>Personal transportation sucks in the Netherlands, if you live in the >>Randstad (the area of the above mentioned cities) and you have to >>travel across the Randstad, you go with the bike and/or >>bus

Re: determine if os.system() is done

2005-09-07 Thread Martin P. Hellwig
Lars Gustäbel wrote: > [Fredrik Lundh] > >>han har försökt, men hans tourette tog överhanden: > > > IMHO it's more likely an Asperger's syndrome. > > http://en.wikipedia.org/wiki/Asperger_Syndrome > I disagree, in his writings I found no evidence of autisme. Actually most of it can be classif

Re: determine if os.system() is done

2005-09-07 Thread Martin P. Hellwig
Peter Hansen wrote: > Martin P. Hellwig wrote: > >> The only thing I am disappointed at his writing style, most likely he >> has a disrupted view on social acceptable behavior and communication. >> These skills might be still in development, so perhaps it is >> r

Re: Why do Pythoneers reinvent the wheel?

2005-09-10 Thread Martin P. Hellwig
Stefano Masini wrote: Although I'm not experienced enough to comment on python stuff itself I do know that in general there are 2 reasons that people reinvent the wheel: - They didn't know of the existence of the first wheel - They have different roads Those reasons can even be combined. The m

Re: Python without a tty

2011-09-29 Thread Martin P. Hellwig
On 29/09/2011 10:21, Steven D'Aprano wrote: I have a Python script which I would like to test without a tty attached to the process. I could run it as a cron job, but is there an easier way? I am running Linux. Well you could double fork and drop the parent, that would lose the tty which is

Language Enhancement Idea to help with multi-processing (your opinions please)

2011-10-13 Thread Martin P. Hellwig
First of all let me say that I have no authority or knowledge of language design or multi-processing except from a user point of view, having a decade or so experience. I would like your opinion and appreciate any feedback and value any hints to documentation, procedures or related ramblings :-)

Re: Language Enhancement Idea to help with multi-processing (your opinions please)

2011-10-13 Thread Martin P. Hellwig
On 13/10/2011 15:13, Stefan Behnel wrote: Martin P. Hellwig, 13.10.2011 14:35: I was wondering if there could be an advantage to add another control flow statement. Changes at that level must be very well justified, are often rejected for the reason of being not too complicated to write in

Re: webapp development in pure python

2011-10-25 Thread Martin P. Hellwig
On 10/25/11 15:13, Arnaud Delobelle wrote: On 25 October 2011 14:50, Laszlo Nagy wrote: Hi, Anyone knows a framework for webapp development? I'm not talking about javascript/html compilers and ajax frameworks. I need something that does not require javascript knowledge, just pure Python. (S

Re: Execute a command on remote machine in python

2011-11-15 Thread Martin P. Hellwig
On 11/15/11 12:04, Roark wrote: Hi, I am first time trying my hands on python scripting and would need some guidance from the experts on my problem. I want to execute a windows command within python script from a client machine on a remote target server, and would want the output of the command

Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7

2011-11-17 Thread Martin P. Hellwig
On 17/11/2011 23:54, W. eWatson wrote: My mistake above. I was talking about the previous 2.5.2 of install in Win7. Where I'm at is 2.7.2 now. However, I still find in very odd there is no Edit with IDLE when I right-click on junk.py. That's the way it worked on 2.5.2 on my XP and earlier, 2010,

Re: Clever hack or code abomination?

2011-12-01 Thread Martin P. Hellwig
On 01/12/2011 03:15, Roy Smith wrote: Well, I have seen much worse, so the WTFs/minute(*) count won't be too bad. However, as general rule for readability; If you think you have to ask, don't bother asking, spend that time rethinking and write a more readable solution. *) http://www.osnews

Re: icmp and raw sockets in python

2011-12-13 Thread Martin P. Hellwig
On 13/12/2011 16:50, Sagy Drucker wrote: hello Hi i am relatively new to python, so please be considerate... As I am only responding to one of your questions, perhaps it would be best if you don't get any other more helpful replies to split your questions up and post them separately. i'm im

Re: Xah's Edu Corner: Responsible Software Licensing

2005-12-18 Thread Martin P. Hellwig
Xah Lee wrote: Nice rant, btw in most EU countries the software creator can not withdraw the responsibility of his/her/it creation, regardless of what the disclaimer says. The law is the leading authority and not some Disclaimer/EULA, that's why most US EULA's are unauthoritative in the EU. --

Re: Xah's Edu Corner: Responsible Software Licensing

2005-12-18 Thread Martin P. Hellwig
Ulrich Hobelmann wrote: > > The piece that a European programmer can never withdraw responsibility > could be a big problem to open-source software, though. I'm not sure > I'd want to freely publish anything that could result in liability for me. > Not that big of a problem, in EU a user is s

Re: Guido at Google

2005-12-21 Thread Martin P. Hellwig
rbt wrote: > Alex Martelli wrote: >> I don't think there was any official announcement, but it's true -- he >> sits about 15 meters away from me;-). > > For Americans: 15 meters is roughly 50 feet. Well they could have used google for that ;-) http://www.google.com/search?hl=en&q=15+meter+in+feet

Re: [EVALUATION] - E04 - Leadership! Google, Guido van Rossum, PSF

2005-12-27 Thread Martin P. Hellwig
Ilias Lazaridis wrote: So I guess you volunteer http://www.python.org/psf/volunteer.html ? -- mph -- http://mail.python.org/mailman/listinfo/python-list

Re: [EVALUATION] - E04 - Leadership! Google, Guido van Rossum, PSF

2005-12-28 Thread Martin P. Hellwig
Ilias Lazaridis wrote: > Martin P. Hellwig wrote: >> Ilias Lazaridis wrote: >> >> So I guess you volunteer http://www.python.org/psf/volunteer.html ? > > I volunteer and contribute already (with a general validity and python > specific analysis) > > A medi

Re: [EVALUATION] - E04 - Leadership! Google, Guido van Rossum, PSF

2005-12-28 Thread Martin P. Hellwig
Ilias Lazaridis wrote: >> The only thing that holds "you" theoretically back is "acknowledged >> authority by the participating group _and_ yourself" and of course the >> resource for "restricted" information. > > what do you mean by "resource for "restricted" information"? > Well, I mean that

Re: [EVALUATION] - E04 - Leadership! Google, Guido van Rossum, PSF

2005-12-29 Thread Martin P. Hellwig
Ilias Lazaridis wrote: I'm suspecting that we have different definitions (or at least the implications of that) of used terms. I think it's important to first define these definition in a form acceptable to both of us. In the link you gave, the title was "Efficiency Management". Now I believe t

Re: [EVALUATION] - E04 - Leadership! Google, Guido van Rossum, PSF

2005-12-29 Thread Martin P. Hellwig
Ilias Lazaridis wrote: > Martin P. Hellwig wrote: >> Ilias Lazaridis wrote: >> >> I'm suspecting that we have different definitions (or at least the >> implications of that) of used terms. >> I think it's important to first define these definition in a

Re: Application architecture (long post - sorry)

2006-01-01 Thread Martin P. Hellwig
Mike Meyer wrote: > [EMAIL PROTECTED] writes: >> I have looked at the options for developing the client for these >> "electronic job sheets" and have decided upon Microsoft Pocket PC and >> the .net compact framework. It seems the easiest environment for >> developing and the PDA's can be obtained

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2006-01-02 Thread Martin P. Hellwig
Anton Vredegoor wrote: > > Most people can survive (without damaging their souls so to speak) when > working for corruption themselves in this way, but sooner or later one > is asked to corrupt others (defending one's title during a promotion, > leading a community and so on). This is the crucial

Re: Why it doesn't work?

2006-01-09 Thread Martin P. Hellwig
Lad wrote: > I have a list > L={} > Now I can assign the value > L['a']=1 > and I have > L={'a': 1} > > but I would like to have a dictionary like this > L={'a': {'b':2}} > > so I would expect I can do > L['a']['b']=2 > > but it does not work. Why? > > Thank you for reply > Rg, > L. > Hi, Pe

Re: How to get Windows system information?

2006-01-13 Thread Martin P. Hellwig
[EMAIL PROTECTED] wrote: > Does anybody know how to get the: > > Free hard disk space > Amount of CPU load > and Amount of RAM used > > on windows? I am making an artificial intelligence program that has > "moods" based on how much stress the system is under, based on these > param

Re: How to get Windows system information?

2006-01-14 Thread Martin P. Hellwig
[EMAIL PROTECTED] wrote: > thank you! > > from what I can see from the second website you listed, there is a way > to get harddisk space information, but is there any way to get CPU load > and RAM usage? > Have a look at the snippet: #>>> import wmi #>>> t = wmi.WMI() #>>> for i in t.Win32_Perf

ctypes wrapping libpam.so on FreeBSD 6.1 - Python Bus Error

2006-07-13 Thread Martin P. Hellwig
Hey all, I'd like to wrap libpam so that I can use that for authentication and password management. I build ctypes (0.9.9.6) on my platform via ports. Now according to OpenPAM documentation all sessions start with pam_start(). According to the man page it should contain this: pam_start(const cha

Re: ctypes wrapping libpam.so on FreeBSD 6.1 - Python Bus Error

2006-07-15 Thread Martin P. Hellwig
Frederik & Ganesan, Thanks for the explanation, it did me realize that I should learn some C first before I'm going to start wrapping something :-) At least I got a reason now to do something with C, though it should take me some time. But again, thanks! Martin -- http://mail.python.org/mail

Re: sysadmin -> python programmer

2006-07-19 Thread Martin P. Hellwig
Dan Stromberg wrote: > I've been a sysadmin for about 13 years, but I'm realizing that my > favorite part of being a sysadmin are those moments where there's a reason > to write some code - preferably in python. > > What might one do to make the transition from sysadmin to python > programmer, asi

Re: python under earthlink hosting?

2006-08-02 Thread Martin P. Hellwig
mbstevens wrote: > I keep chatting with the tech support people at Earthlink, asking where > the location of the Python interpreter is. They don't seem to know where > it is. They don't know if Python is running on my server, either. I know > Perl is at /usr/local/bin/perl ...but when I use a si

Re: Send to all clients using UDP in Twisted

2006-08-20 Thread Martin P. Hellwig
Elliot Hughes wrote: > Hi Everyone, I am trying to right a server that can receive a message > and send it to all clients using UDP on twisted. I have got it so far > that it can echo to the client that sent the message but not to the > rest. I tried using multicast but that requires almost total r

Re: secure xmlrpc server?

2006-06-07 Thread Martin P. Hellwig
Laszlo Nagy wrote: Have a look at: http://trevp.net/tlslite/ -- mph -- http://mail.python.org/mailman/listinfo/python-list

Re: secure xmlrpc server?

2006-06-07 Thread Martin P. Hellwig
Laszlo Nagy wrote: > Martin P. Hellwig wrote: >> Laszlo Nagy wrote: >> >> Have a look at: >> http://trevp.net/tlslite/ >> > C:\temp\ccc>python setup.py install > running install > running build > running build_py > running build_ext > erro

Re: secure xmlrpc server?

2006-06-07 Thread Martin P. Hellwig
Laszlo Nagy wrote: > http://trevp.net/tlslite/ - no exe installers. > http://sourceforge.net/projects/tlslite/ - no file packages to download > > :-( Download the zip and unpack it: http://trevp.net/tlslite/tlslite-0.3.8.zip Then there is an installers directory >> SimpleXMLRPCServer uses Simpl

Is there a python wrapper for OpenPAM?

2006-06-08 Thread Martin P. Hellwig
Hi all, I'm busy with a personal project that does password synchronization between NT and BSD. By using a password hook/filter/notifier when password is changed (on NT PasswdHk and on BSD a modified version of pam_exec*) I can retrieve a changed password, however when I want to check the valid

Re: Python 2.4 tutorial

2006-06-29 Thread Martin P. Hellwig
subramanian2003 wrote: > Hello All, > >From where I can get the detailed python 2.4 tutorial(other than > python.org). > > Thanks, > Subramanian. > > If you're willing to pay for it you can read many python books online at: http://safari.oreilly.com Although I like a paper version more (a

Re: why would anyone use python when java is there?

2006-11-28 Thread Martin P. Hellwig
Aahz wrote: > In article <[EMAIL PROTECTED]>, > gavino <[EMAIL PROTECTED]> wrote: >> wtf > > Because programming in Python makes me feel happy and contented, while > programming in Java just makes me want to scream in agony. Or in my case, Python made me code, Java made me brew java. ymmv -- mp

your opinion about psycopg vs pygresql

2006-12-20 Thread Martin P. Hellwig
Hi all, I'm playing a bit with PostgreSQL, in which I've set me the target to create a python script which with user input creates a new user role and a database with that owner (connecting to template1 since I know that at least that db exists). Ok so I installed PostGreSQL and pygresql since

Re: perl better than python for users with disabilities?

2006-12-20 Thread Martin P. Hellwig
Dan Jacobson wrote: > Can I feel even better about using perl vs. python, as apparently > python's dependence of formatting, indentation, etc. vs. perl's > "(){};" etc. makes writing python programs perhaps very device > dependent. Whereas perl can be written on a tiny tiny screen, and can > withst

Re: db access

2006-12-28 Thread Martin P. Hellwig
king kikapu wrote: > Hi to all, > > is there a way to use an RDBMS (in my case, SQL Server) from Python by > using some built-in module of the language (v. 2.5) and through ODBC ?? > I saw some samples that use statements like "import dbi" or "import > odbc" but neither modules (dbi, odbc) are pre

Re: db access

2006-12-28 Thread Martin P. Hellwig
king kikapu wrote: > Hey Martin, > > thanks for the fast reply! > > I have already seen that link and i just downloaded the pyodbc module > but isn't Python already containing a "built-in" odbc module so to > allow for db communication ?? > Not that I'm aware of, but it is possible to do odbc w

Re: find login name of user?

2006-12-30 Thread Martin P. Hellwig
Uwe Hoffmann wrote: > [EMAIL PROTECTED] schrieb: >> Is there a function/module to find the login name of the user under >> UNIX environment? > > > http://docs.python.org/lib/os-procinfo.html > > http://docs.python.org/lib/module-pwd.html Speaking of that, is there any reason why there isn't any

Re: Adding a directory to the Python System Path - Edit the registry?

2007-01-05 Thread Martin P. Hellwig
[EMAIL PROTECTED] wrote: > I have been trying to find a way to add a directory to Python's sytem > path on my MS Windows XP computer. I did some searching online, but the > only solution I found involved editing the MS Windows Registry. That > seemed a little to hard core. Is there another easier w

Re: Hi reliability files, writing,reading,maintaining

2006-02-09 Thread Martin P. Hellwig
John Pote wrote: > So my request: > 1. Are there any python modules 'out there' that might help in securely > writing such files. > 2. Can anyone suggest a book or two on this kind of file management. (These > kind of problems must have been solved in the financial world many times). > I can't a

Re: by reference

2006-02-09 Thread Martin P. Hellwig
Rene Pijlman wrote: > dirvine: >> I would like to create a dictionary based on a variable [...] > > And what seems to be the problem? > I think that this is his problem: >>> 'somename'={} SyntaxError: can't assign to literal But I'm puzzled why he wants that route, while I'm still pretty new t

Re: by reference

2006-02-13 Thread Martin P. Hellwig
dirvine wrote: > Yes I did > > I was trying to do something like (pseudo code) > > write: > get files in path > for each filename get size, type > create dic called filename assign size:xx,type:y > pickle to file > > read: > open pickled file > read dict name and contents (hoping unpickling file

Re: hard disk activity

2006-02-13 Thread Martin P. Hellwig
Paul Rubin wrote: > "VSmirk" <[EMAIL PROTECTED]> writes: >> I am needing to synchronize the file on a remote folder, and my current >> solution, which simply copies the file if a date comparison or a >> content comparison, becomes a bit unmanageable for very large files. >> Some of the files I'm wo

Re: how do you pronounce 'tuple'?

2006-02-14 Thread Martin P. Hellwig
Roy Smith wrote: > Erik Max Francis <[EMAIL PROTECTED]> wrote: >> (A 2-tuple is an "ordered pair" in mathematics.) If a 2-tuple is a >> pair, then it would seem to follow that a 1-tuple is a single. > > Yeah, but an *ordered* single :-) > > A more interesting question is what do you call ()? A

Re: Question about xmlrpc and threading

2006-02-15 Thread Martin P. Hellwig
David Hirschfield wrote: > An xmlrpc client/server app I'm writing used to be super-simple, but now > threading has gotten into the mix. > > On the server side, threads are used to process requests from a queue as > they come in. > On the client side, threads are used to wait on the results of r

Re: Question about xmlrpc and threading

2006-02-17 Thread Martin P. Hellwig
David Hirschfield wrote: > My question was whether this is allowed? Can two calls be made via the > same ServerProxy instance while a request is already underway? > > Clearer? > -Dave > Much, and my preliminary answer is, I have no clue :-) But knowing that python will throw an exceptions whe

  1   2   3   4   5   >