Re: simple client data base

2012-09-03 Thread Dwight Hutto
If you're just starting to learn python/computer science, why not try setting up section fields in a file that you can parse, with your own database. Then you can parse through, append, delete, etc and this will show you the 'higher' level of db's. Plus, I don't think anyone has mentioned RDBM:

Re: Comparing strings from the back?

2012-09-03 Thread Dwight Hutto
On Mon, Sep 3, 2012 at 9:54 PM, Roy Smith r...@panix.com wrote: There's been a bunch of threads lately about string implementations, and that got me t On hinking (which is often a dangerous thing). Let's assume you're testing two strings for equality. You've already done the obvious

Re: is there history command in python?

2012-09-03 Thread Dwight Hutto
Google can help tremendously, if you use it correctly: Used search term 'python console remember history', and got https://www.google.com/search?client=ubuntuchannel=fsq=python+console+remember+historyie=utf-8oe=utf-8, and the first one listed is below:

Re: How to tell people to ask questions the smart way

2012-09-04 Thread Dwight Hutto
Just to play advocatus diaboli, what if some seemingly simple questions are asked just to jump in and start talking python? In other words, they just wanna talk shop, no matter what it is. An OT(off topic) so to speak, and have an enlightened, and evolutionary(via brain structured acceptance of

Re: python docs search for 'print'

2012-09-04 Thread Dwight Hutto
The generated code can be run without Python installed and does not embed Python. For example: print(Hello World to py2c!) would be translated to #include iostream using namespace std; //If you want you can make py2c not add this and use std::cout instead of cout int main() { coutHello

Re: HP Quality Center only works with ActiveState Python 2.5

2012-09-06 Thread Dwight Hutto
On Thu, Sep 6, 2012 at 6:12 PM, bbeac...@desanasystems.com wrote: Does anyone know why this is? I cannot find anything via Google about this, but HP says it is so. Of course it is now impossible to get ActiveState Python 2.5 for free. You can spend a $1000 for a copy. :) Anyway, it is

Re: os.stat() distorts filenames that end with period (nt.stat())

2012-09-06 Thread Dwight Hutto
On Thu, Sep 6, 2012 at 8:55 PM, ruck john.ruckst...@gmail.com wrote: (This with Python 2.7.2 on Windows 7) os.stat() won't recognize a filename ending in period. It will ignore trailing periods. If you ask it about file 'goo...' it will report on file 'goo' And if 'goo' doesn't exist,

Re: Comparing strings from the back?

2012-09-07 Thread Dwight Hutto
With unequal strings/lists to match, it would seem that one would regex through the larger string/list with the shorter string, and piece by piece begin to match for partial percentage matches in relation to the longer iterative item. -- Best Regards, David Hutto *CEO:*

Re: Comparing strings from the back?

2012-09-07 Thread Dwight Hutto
On Fri, Sep 7, 2012 at 5:59 PM, Dwight Hutto dwightdhu...@gmail.com wrote: With unequal strings/lists to match, it would seem that one would regex through the larger string/list with the shorter string, and piece by piece begin to match for partial percentage matches in relation to the longer

Re: Comparing strings from the back?

2012-09-07 Thread Dwight Hutto
Why don' you just time it,eit lops through incrementing thmax input/ -- Best Regards, David Hutto *CEO:* *http://www.hitwebdevelopment.com* -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking for download link for ArcPY

2012-09-08 Thread Dwight Hutto
Didn't see the download link, but a quick google search yielded this: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002z000800 It seems it's part of a larger program ArcGIS 10. These are the docs for it, and how to use it, so it should be in there somewhere. -- Best

Re: Initial pointers for web based LAMP installation

2012-09-08 Thread Dwight Hutto
On Sat, Sep 8, 2012 at 4:31 PM, Matteo Grämlin matte...@gmx.net wrote: Hi all This is what I want to do: On a LAMP server, people are able to request for an instance of a particular LAMP application by submitting a few options. That involves creating a couple of directories, getting the

Re: Initial pointers for web based LAMP installation

2012-09-08 Thread Dwight Hutto
On Sat, Sep 8, 2012 at 7:42 PM, Dwight Hutto dwightdhu...@gmail.com wrote: On Sat, Sep 8, 2012 at 4:31 PM, Matteo Grämlin matte...@gmx.net wrote: Hi all This is what I want to do: On a LAMP server, people are able to request for an instance of a particular LAMP application by submitting

Re: Initial pointers for web based LAMP installation

2012-09-08 Thread Dwight Hutto
On Sat, Sep 8, 2012 at 7:42 PM, Dwight Hutto dwightdhu...@gmail.com wrote: On Sat, Sep 8, 2012 at 4:31 PM, Matteo Grämlin matte...@gmx.net wrote: Hi all This is what I want to do: On a LAMP server, people are able to request for an instance of a particular LAMP application by submitting

Re: Newbie: where's the new python gone?

2012-09-10 Thread Dwight Hutto
I have several installations on my windows, so I use c:\python27_64\python.exe module_file.py or c:\python26\python.exe module_file.py in the command line. Not to show that this shouldn't be a discussion, but usually it's searching. Here's search term a link, and some python docs: install

Re: Is there any difference between print 3 and print '3' in Python ?

2012-09-10 Thread Dwight Hutto
On Sun, Sep 9, 2012 at 10:41 AM, Ian Foote i...@feete.org wrote: On 09/09/12 14:23, iMath wrote: 在 2012年3月26日星期一UTC+8下午7时45分26秒,**iMath写道: I know the print statement produces the same result when both of these two instructions are executed ,I just want to know Is there any difference

Re: Beginner Q: What does the double underscore __ mean?

2012-09-10 Thread Dwight Hutto
The very first few steps, are help(any_module), and google. Try looking at this first then, the google search term I used(or any you might come up with_ : double underscore python 2.7 yielding:

Re: python CAD libraries?

2012-09-11 Thread Dwight Hutto
On Mon, Sep 10, 2012 at 5:50 PM, Jayden jayden.s...@gmail.com wrote: On Monday, September 10, 2012 5:30:08 PM UTC-4, Gary Herron wrote: On 09/10/2012 02:10 PM, Jayden wrote: Are there any python CAD libraries that can (1) build simple 3D primitives solids such as spheres,

Re: python CAD libraries?

2012-09-11 Thread Dwight Hutto
Are there any python CAD libraries that can (1) build simple 3D primitives solids such as spheres, cylinders and so on (2) perform bool operations on 3D solids (3) better if it has some transformations such has scaling, sweeping, and lofting Please recommend some

Re: python CAD libraries?

2012-09-11 Thread Dwight Hutto
I've used maya(I think that was the name), and matplotlib, but Blender.org(open source) is great for 3d rendering/game engine, etc, and has a nice python API, with great tutorials everywhere. If you checkout my homepage in my sig, you can see a roughdraft of somethings I was working on for it.

Re: python CAD libraries?

2012-09-11 Thread Dwight Hutto
On Mon, Sep 10, 2012 at 5:10 PM, Jayden jayden.s...@gmail.com wrote: Are there any python CAD libraries that can (1) build simple 3D primitives solids such as spheres, cylinders and so on (2) perform bool operations on 3D solids (3) better if it has some transformations such has scaling,

Re: python CAD libraries?

2012-09-11 Thread Dwight Hutto
Apologies for the multiple posts, it's been a long night, and I don't use the google groups that much I kept getting sent mail failure, I think because I didn't hit 'reply all'. -- Best Regards, David Hutto *CEO:* *http://www.hitwebdevelopment.com* --

Re: python CAD libraries?

2012-09-11 Thread Dwight Hutto
Apologies for the double posting. -- Best Regards, David Hutto *CEO:* *http://www.hitwebdevelopment.com* -- http://mail.python.org/mailman/listinfo/python-list

Re: python CAD libraries?

2012-09-11 Thread Dwight Hutto
https://www.google.com/search?q=python+cad+3d+examplesie=utf-8oe=utf-8aq=trls=org.mozilla:en-US:officialclient=firefox-a First listing looks good, might look later on at it myself: http://www.pythonocc.org/ -- Best Regards, David Hutto *CEO:* *http://www.hitwebdevelopment.com* --

Re: Compile python code into a dll

2012-09-11 Thread Dwight Hutto
Also, and sometimes google does kind of fail you, but straight from your question, I just type in this section of what you wrote: 'Python code that I would like to compile into a dll' Yours comes up as well within that search,but so do quite a few others related to it. -- Best Regards,

Re: python CAD libraries?

2012-09-11 Thread Dwight Hutto
And just a little more for you from: http://wiki.python.org/moin/Applications#A3D_CAD.2FCAM This looked interesting: http://free-cad.sourceforge.net/ but I have to get to a few other things, so I hope this helps. -- Best Regards, David Hutto *CEO:* *http://www.hitwebdevelopment.com* --

Re: python CAD libraries?

2012-09-11 Thread Dwight Hutto
On Tue, Sep 11, 2012 at 3:36 AM, Alec Taylor alec.tayl...@gmail.com wrote: Blender is definitely the most popular open-source CAD software; it has even forked its own version of Python to make things run neatly :P I heard that they were going to change a few things a while back with the

Re: python CAD libraries?

2012-09-11 Thread Dwight Hutto
Blender is definitely the most popular open-source CAD software; it has even forked its own version of Python to make things run neatly :P Plus it never hurts to look around at some of the other interfaces,some of which might have just altered Blender, or something else, just to see which is

Re: python CAD libraries?

2012-09-11 Thread Dwight Hutto
Hi, Marco, Thank you so much! This is what I exactly want. But I am a little concerned about its steep learning curve. Is it really hard to learn pythonOCC? Averagely, how long does it take to begin to program some practical code? Do you have any good advice for me to learn it? I deeply

Re: Which Version of Python?

2012-09-11 Thread Dwight Hutto
I try to usually use several versions to know the difference. You never know when a package might come along, and you want to try it out, and then version becomes compatibility. Alternatively, a client might come along and insist that a particular version be used. Do a little quick research on

Re: pythonOCC examples doesn't work?

2012-09-11 Thread Dwight Hutto
On Tue, Sep 11, 2012 at 11:58 PM, Jayden jayden.s...@gmail.com wrote: I installed (1) pythonxy2.7.2.3 (with python2.7) and (2) pythonOCC-0.5-all-in-one.win32.py26 on windows 7 64 bit computer. I try run pythonOCC examples in its example folder, such as the helloworld.py and got errors as

Re: pythonOCC examples doesn't work?

2012-09-11 Thread Dwight Hutto
I came up with this thread: http://techblog.ironfroggy.com/2007/01/python-on-windows-and-path.html But you might want to go to the pywin list for this one. http://mail.python.org/mailman/listinfo/python-win32 It says win32, but they should be able to help either way. -- Best Regards, David

Re: Single leading dash in member variable names?

2012-09-11 Thread Dwight Hutto
Not to jump in with another question(this seems somewhat relevant to the conversation, maybe not), but is this similar to a private,public, or protected class similar to the C type langs? -- Best Regards, David Hutto *CEO:* *http://www.hitwebdevelopment.com* --

Re: pythonOCC examples doesn't work?

2012-09-12 Thread Dwight Hutto
So used to google, forgot to check the python docs: http://docs.python.org/faq/windows.html and this should be useful as well, which is from: http://stackoverflow.com/questions/5030362/how-to-use-opencv-in-python I suspect you have the same problem I've run into. If you have a 64-bit version

Re: pythonOCC examples doesn't work?

2012-09-12 Thread Dwight Hutto
On Wed, Sep 12, 2012 at 3:37 AM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 12/09/2012 08:19, Dwight Hutto wrote: So used to google, forgot to check the python docs: http://docs.python.org/faq/windows.html and this should be useful as well, which is from: http://stackoverflow.com

Re: SAP MM Cupertino, CA

2012-09-12 Thread Dwight Hutto
Looks to me like someone recruiting experienced programmers, and there is a demographic here who would probably like a job like that. Definitely not considered SPAM by me. They're not selling, they're trying to gainfully employ a good programmer from a list meant to interact and learn. If I had

Re: SAP MM Cupertino, CA

2012-09-12 Thread Dwight Hutto
On Wed, Sep 12, 2012 at 6:58 AM, Diabolic Preacher pintoo...@gmail.com wrote: I really hoped for at least one mention of Python in there. It does seem like a blanketed letter to several groups, but maybe they're looking for any good programmer. Once you learn a language, and in my opinion learn

Re: equiv of perl regexp grammar?

2012-09-13 Thread Dwight Hutto
On Thu, Sep 13, 2012 at 7:30 AM, Neal Becker ndbeck...@gmail.com wrote: I noticed this and thought it looked interesting: http://search.cpan.org/~dconway/Regexp- Grammars-1.021/lib/Regexp/Grammars.pm#DESCRIPTION I'm wondering if python has something equivalent? If you mean regex, it's

Re: Comparing strings from the back?

2012-09-13 Thread Dwight Hutto
On Thu, Sep 13, 2012 at 2:39 PM, Prasad, Ramit ramit.pra...@jpmorgan.com wrote: Dwight Hutto wrote: Why don' you just time it,eit lops through incrementing thmax input/ What? Without context I have no idea what this means. Ramit Why don't you read the OP: Let's assume you're testing two

Re: Comparing strings from the back?

2012-09-13 Thread Dwight Hutto
On Thu, Sep 13, 2012 at 4:34 PM, Joshua Landau joshua.landau...@gmail.com wrote: On 13 September 2012 20:53, Mark Lawrence breamore...@yahoo.co.uk wrote: On 13/09/2012 19:39, Prasad, Ramit wrote: Dwight Hutto wrote: Why don' you just time it,eit lops through incrementing thmax input

Re: Comparing strings from the back?

2012-09-13 Thread Dwight Hutto
On Thu, Sep 13, 2012 at 5:17 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 13/09/2012 21:34, Joshua Landau wrote: On 13 September 2012 20:53, Mark Lawrence breamore...@yahoo.co.uk wrote:acci sequence On 13/09/2012 19:39, Prasad, Ramit wrote: Dwight Hutto wrote: Why don' you just

Re: pythonOCC examples doesn't work?

2012-09-13 Thread Dwight Hutto
On Thu, Sep 13, 2012 at 7:26 PM, Prasad, Ramit ramit.pra...@jpmorgan.com wrote: Dwight Hutto wrote: [snip] On Wed, Sep 12, 2012 at 3:37 AM, Mark Lawrence breamore...@yahoo.co.uk wrote: [snip] Others would be able to see this for themselves but you insist on sending email without

Re: pythonOCC examples doesn't work?

2012-09-13 Thread Dwight Hutto
On Thu, Sep 13, 2012 at 9:11 PM, Dwight Hutto dwightdhu...@gmail.com wrote: On Thu, Sep 13, 2012 at 7:26 PM, Prasad, Ramit ramit.pra...@jpmorgan.com wrote: Dwight Hutto wrote: [snip] On Wed, Sep 12, 2012 at 3:37 AM, Mark Lawrence breamore...@yahoo.co.uk wrote: [snip] Others would

Re: Comparing strings from the back?

2012-09-13 Thread Dwight Hutto
On Thu, Sep 13, 2012 at 11:48 PM, alex23 wuwe...@gmail.com wrote: On Sep 14, 5:37 am, Dwight Hutto dwightdhu...@gmail.com wrote: Why don't take the time to read the OP, and ramit in your head? Please, don't be a dick. For telling him to ramit into his head that you should read the OP

Re: hi

2012-09-13 Thread Dwight Hutto
Hey, how are you? -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list

Re: hi

2012-09-13 Thread Dwight Hutto
Wait, that was out of context. Subject: Hi On Fri, Sep 14, 2012 at 1:09 AM, genban tade tadegen...@gmail.com wrote: -- http://mail.python.org/mailman/listinfo/python-list Hey, how are you? -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com --

Re: Comparing strings from the back?

2012-09-13 Thread Dwight Hutto
On Fri, Sep 14, 2012 at 12:54 AM, alex23 wuwe...@gmail.com wrote: On Sep 14, 2:46 pm, Dwight Hutto dwightdhu...@gmail.com wrote: For telling him to ramit into his head that you should read the OP? Yes. I'm not sure if it was intentionally racist, but you come across as a bit of a dwight

Re: hi

2012-09-13 Thread Dwight Hutto
On Fri, Sep 14, 2012 at 1:09 AM, genban tade tadegenban@gm -- http://mail.python.org/mailman/listinfo/python-list ail.com wrote: -- http://mail.python.org/mailman/listinfo/python-list thank you for your reply,I'm new here You'll love it here. It's always amusing. But remember to hit reply

Re: hi

2012-09-13 Thread Dwight Hutto
You'll love it here. It's always amusing. But remember to hit reply all Unless you might want to contact someone personally. Some don't mind, and some may complain. Me I don't care either way. Great to meet you though. Hope you find the it educationally stimulating. -- Best Regards, David

Re: hi

2012-09-14 Thread Dwight Hutto
On Fri, Sep 14, 2012 at 2:09 AM, alex23 wuwe...@gmail.com wrote: On Sep 14, 3:44 pm, Dwight Hutto dwightdhu...@gmail.com wrote: CEO:http://www.hitwebdevelopment.com I don't know what gives more of a negative impression of your business, your acting like a tedious douchebag or the website

Re: hi

2012-09-14 Thread Dwight Hutto
On Fri, Sep 14, 2012 at 3:08 AM, Ian Kelly ian.g.ke...@gmail.com wrote: On Fri, Sep 14, 2012 at 12:09 AM, alex23 wuwe...@gmail.com wrote: On Sep 14, 3:44 pm, Dwight Hutto dwightdhu...@gmail.com wrote: CEO:http://www.hitwebdevelopment.com I don't know what gives more of a negative impression

Re: pythonOCC examples doesn't work?

2012-09-14 Thread Dwight Hutto
honest. How do you feel? Interesting... Um, I guess like an inconsiderate bandwidth hog, but from now on I'll trim more text. First it was too little, and now it's too much. I just tend to cut out some or all depending on the scope of the conversation. If I just hit reply all, and send it

Re: Comparing strings from the back?

2012-09-14 Thread Dwight Hutto
I think you're referring to a play on words(ramit). Using foreign names derogatively is a common tactic of the racist. Not really. But nice spin on my pun to make me look bad. Keep trying, and maybe you'll come up with an insult/ propaganda that's less obvious to the viewer that you're a

Re: Comparing strings from the back?

2012-09-14 Thread Dwight Hutto
On Fri, Sep 14, 2012 at 4:20 AM, alex23 wuwe...@gmail.com wrote: On Sep 14, 6:04 pm, Dwight Hutto dwightdhu...@gmail.com wrote: Using foreign names derogatively is a common tactic of the racist. Not really. But nice spin on my pun to make me look bad. It actually *is* common behaviour

Re: hi

2012-09-14 Thread Dwight Hutto
On Fri, Sep 14, 2012 at 4:16 AM, alex23 wuwe...@gmail.com wrote: On Sep 14, 5:22 pm, Dwight Hutto dwightdhu...@gmail.com wrote: Completely OT for this discussion. My apologies, I'll leave you to your thrashing around like a giant child then. Please explain that one. I usually keep

Re: Batching HTTP requests with httplib (Python 2.7)

2012-09-14 Thread Dwight Hutto
| The problem with most web services is that they require a list of | sequential commands to be executed in a certain order to complete a | given task (or at least the one I am using does) so having to manually | call each command is a bit of a pain. How would you go about the design | of a

Re: Comparing strings from the back?

2012-09-14 Thread Dwight Hutto
I'd recommend reading up on white privilege but I'm pretty sure it'd be a wasted suggestion. Not really, I tend to like interdisciplinary study. But I'm a little of everything if you like Darwin. It's similar to if I said, this is real 'queer' of you to do ya big pansy, and next you'll be

Re: Comparing strings from the back?

2012-09-14 Thread Dwight Hutto
[snip] Please don't feed the trolls. You're down here under the bridge with the rest of us trolls too, Steven. 24/7 -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Comparing strings from the back?

2012-09-14 Thread Dwight Hutto
On Fri, Sep 14, 2012 at 6:43 PM, Prasad, Ramit ramit.pra...@jpmorgan.com wrote: Dwight Hutto wrote: On Fri, Sep 14, 2012 at 4:20 AM, alex2find-work-home/3 wuwe...@gmail.com wrote: On Sep 14, 6:04 pm, Dwight Hutto dwightdhu...@gmail.com wrote: Using foreign names derogatively is a common

Re: unit test strategy

2012-09-14 Thread Dwight Hutto
On Fri, Sep 14, 2012 at 10:59 PM, Aaron Brady castiro...@gmail.com wrote: Hello, I've developing a test script. There's a lot of repetition. I want to introduce a strategy for approaching it, but I don't want the program to be discredited because of the test script. Therefore, I'd like

Re: unit test strategy

2012-09-14 Thread Dwight Hutto
On Fri, Sep 14, 2012 at 11:26 PM, Dwight Hutto dwightdhu...@gmail.com wrote: On Fri, Sep 14, 2012 at 10:59 PM, Aaron Brady castiro...@gmail.com wrote: Hello, I've developing a test script. There's a lot of repetition. I want to introduce a strategy for approaching it, but I don't want

Re: Decorators not worth the effort

2012-09-14 Thread Dwight Hutto
On Fri, Sep 14, 2012 at 2:40 AM, Dieter Maurer die...@handshake.de wrote: On Sep 14, 3:54 am, Jean-Michel Pichavant jeanmic...@sequans.com wrote: I don't like decorators, I think they're not worth the mental effort. Fine. I like them because they can vastly improve reusability and

Re: pythonOCC examples doesn't work?

2012-09-14 Thread Dwight Hutto
On Fri, Sep 14, 2012 at 6:51 PM, Prasad, Ramit ramit.pra...@jpmorgan.com wrote: Dwight Hutto wrote: Chris Angelico wrote: honest. How do you feel? Interesting... Um, I guess like an inconsiderate bandwidth hog, but from now on I'll trim more text. First it was too little, and now it's

Re: pythonOCC examples doesn't work?

2012-09-14 Thread Dwight Hutto
On Fri, Sep 14, 2012 at 11:53 PM, Chris Angelico ros...@gmail.com wrote: On Sat, Sep 15, 2012 at 1:47 PM, Dwight Hutto dwightdhu...@gmail.com wrote: That's no problem, But some suported ad some opposed, it's a democracy, but a dictatorship by the moderators. How much did I err in their opinion

Re: Decorators not worth the effort

2012-09-15 Thread Dwight Hutto
On Sat, Sep 15, 2012 at 5:45 AM, 8 Dihedral dihedral88...@googlemail.com wrote: Steven D'Aprano於 2012年9月15日星期六UTC+8上午7時39分28秒寫道: On Fri, 14 Sep 2012 15:16:47 -0600, Ian Kelly wrote: If only there were a conceptually simpler way to do this. Actually, there is. I give you: muman than

Re: pythonOCC examples doesn't work?

2012-09-17 Thread Dwight Hutto
Alan Gauld quotes, Putting on my moderator's hat, sometimes. is as you describe, a monarchy whose head but seldom exercises power; I think it's Rossenbom(or whoever the creator of the interpreter written in C is), who says benevolent dictator for life [snip] You don't know the name of

Re: Comparing strings from the back?

2012-09-18 Thread Dwight Hutto
feeling puzzled. Is there a guideline for this in basic netiquette? You're right, my apologies. Dwight Hutto is the one I plonked. His signal to noise ratio seems incredibly low. Is this just because of the lack of context, or because of the content of my response to the OP following

Re: Comparing strings from the back?

2012-09-18 Thread Dwight Hutto
sufficient context, you've left me feeling puzzled. Is there a guideline for this in basic netiquette? www.woodgate.org/FAQs/netiquette.html -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Comparing strings from the back?

2012-09-18 Thread Dwight Hutto
You're right, my apologies. Dwight Hutto is the one I plonked. You can call me David. I go by my middle name. And it seem to me I made some valid points about a few simple trimming of postings, that didn't seem necessary in the context of a small quick conversation. -- http://mail.python.org

Re: Comparing strings from the back?

2012-09-18 Thread Dwight Hutto
You're most often going to be addressed by the name that's given in your post headers. In this case David has been reduced to an initial, and is visible only in your email address, whereas Dwight My sig says David, but it was just to let him know he can call me by my used name. -- Best

Re: A little morning puzzle

2012-09-19 Thread Dwight Hutto
I have a list of dictionaries. They all have the same keys. I want to find the set of keys where all the dictionaries have the same values. Suggestions? Here is my solution: a = {} a['dict'] = 1 b = {} b['dict'] = 2 c = {} c['dict'] = 1 d = {} d['dict'] = 3 e = {} e['dict'] = 1 x =

Re: A little morning puzzle

2012-09-19 Thread Dwight Hutto
On Wed, Sep 19, 2012 at 8:01 AM, Dwight Hutto dwightdhu...@gmail.com wrote: I have a list of dictionaries. They all have the same keys. I want to find the set of keys where all the dictionaries have the same values. Suggestions? This one is better: a = {} a['dict'] = 1 b = {} b['dict

Re: One of my joomla webpages has been hacked. Please help.

2012-09-22 Thread Dwight Hutto
On Fri, Sep 21, 2012 at 2:45 PM, Νίκος Γκρεεκ nikos.gr...@gmail.com wrote: Hello, One webpage of mine, http://www.varsa.gr/ has been *hacked* 15 mins ago. The others are right, this is a joomla question, unless you're allowing execution of code by members and they utilize python. My

Re: How to limit CPU usage in Python

2012-09-22 Thread Dwight Hutto
rites: Is it possible for me to put a limit in the amount of processor usage (% CPU) that my current python script is using? Is there any module useful for this task? One way is check your cpu usage once in a while, compare with elapsed time, and if your % usage is above what you want, sleep

Re: How to limit CPU usage in Python

2012-09-22 Thread Dwight Hutto
Now also, just thinking theoretically with the knowledge I have, you could underclock(as opposed to overclocking, which is what gamers do), but have never seen that option in BIOS. And maybe there is an option in your OS, google search term 'limiting processes activity cpu usage':

Re: A little morning puzzle

2012-09-22 Thread Dwight Hutto
On Thu, Sep 20, 2012 at 12:28 PM, Tobiah t...@tobiah.org wrote: Here is my solution: ** Incredibly convoluted and maximally less concise solution than other offerings. ** Might be better ones though. Unlikely. Zing! Why don't you all look at the code(python and C), and tell me how

Re: One of my joomla webpages has been hacked. Please help.

2012-09-22 Thread Dwight Hutto
On Sun, Sep 23, 2012 at 12:06 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Sat, 22 Sep 2012 19:52:00 -0700, Νίκος Γκρεεκ wrote: Out of curiocity how would i used my python counter source code along with Joomla? This is not a Joomla forum. We do not know how to run code

Re: One of my joomla webpages has been hacked. Please help.

2012-09-22 Thread Dwight Hutto
On Sun, Sep 23, 2012 at 12:56 AM, Chris Angelico ros...@gmail.com wrote: On Sun, Sep 23, 2012 at 2:48 PM, Dwight Hutto dwightdhu...@gmail.com wrote: On Sun, Sep 23, 2012 at 12:06 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Sat, 22 Sep 2012 19:52:00 -0700, Νίκος Γκρεεκ

Re: One of my joomla webpages has been hacked. Please help.

2012-09-22 Thread Dwight Hutto
It would be nice if out python scripts can be used along with Joomla CMS, Drupal or even Wordpress. As long as the server side prerequisites has been met, then the code should execute as long as it is allowed in the plugins. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com

Re: Fastest web framework

2012-09-23 Thread Dwight Hutto
On Sun, Sep 23, 2012 at 5:19 AM, Andriy Kornatskyy andriy.kornats...@live.com wrote: I have run recently a benchmark of a trivial 'hello world' application for various python web frameworks (bottle, django, flask, pyramid, web.py, wheezy.web) hosted in uWSGI/cpython2.7 and gunicorn/pypy1.9

Re: Fastest web framework

2012-09-23 Thread Dwight Hutto
Hope I understood you correctly. Well, lets break down timing something in a more scientific method approach through questioning. What's your processor speed? What is the constant temperature of the internals of your system? What OS, and version? What other processes are running? There's

Re: keeping information about players around

2012-09-24 Thread Dwight Hutto
I have yet another design question. In my mud, zones are basically objects that manage a collection of rooms; For example, a town would be it's own zone. It holds information like maxRooms, the list of rooms as well as some other data like player owners and access flags. The access flags

Re: A little morning puzzle

2012-09-24 Thread Dwight Hutto
Ergo: 'enumerate(some_list)' is the correct suggestion over manually maintaining your own index, despite it ostensibly being more code due to its implementation. But, therefore, that doesn't mean that the coder can just USE a function, and not be able to design it themselves. So 'correct

Re: Anyone able to help on installing packages?

2012-09-24 Thread Dwight Hutto
You could just take the python code, and put it in the site packages file. Depends on the package. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list

Re: A little morning puzzle

2012-09-24 Thread Dwight Hutto
On Mon, Sep 24, 2012 at 5:18 PM, Ethan Furman et...@stoneleaf.us wrote: Ian Kelly wrote: On Sat, Sep 22, 2012 at 9:44 PM, Dwight Hutto dwightdhu...@gmail.com wrote: Why don't you all look at the code(python and C), and tell me how much code it took to write the functions the other's

Re: For Counter Variable

2012-09-24 Thread Dwight Hutto
On Mon, Sep 24, 2012 at 6:09 PM, Ethan Furman et...@stoneleaf.us wrote: jimbo1qaz wrote: On Sunday, September 23, 2012 9:36:19 AM UTC-7, jimbo1qaz wrote: Am I missing something obvious, or do I have to manually put in a counter in the for loops? That's a very basic request, but I couldn't

Re: keeping information about players around

2012-09-24 Thread Dwight Hutto
On Mon, Sep 24, 2012 at 6:19 PM, Chris Angelico ros...@gmail.com wrote: On Tue, Sep 25, 2012 at 7:14 AM, Dwight Hutto dwightdhu...@gmail.com wrote: Also, If this is a browser app I'd go with phpmyadmin, and MySQL If a tkinter/wxpython/etc app, then maybe sqlite. Out of curiosity, why? MySQL

Re: keeping information about players around

2012-09-24 Thread Dwight Hutto
Out of curiosity, why? MySQL isn't magically better for everything where data ends up displayed in a web browser. No, but phpmyadmin is a great GUI for MySQL Meaning, it gives a great web app, that sqlite doesn't have...yet. It's the tools around MySQL for me, that gives it the umph it needs

Re: For Counter Variable

2012-09-24 Thread Dwight Hutto
*How* would one implement this better, more simply (for the user, not the implementator) or in a more readable manner? Chose *any* one of those. Well if you're learning then the builtin might be more like how we answer students questions here, than those doing work. Write out the algorithmic

Re: keeping information about players around

2012-09-24 Thread Dwight Hutto
is just a way of generating that. Any language works on the back end... and PHP isn't the best :) Python does quite well at that task; I have a tiny little Python script that uses a web browser as its front ent. This stems from my limited usage of python in the browser(I usually use it for

Re: A little morning puzzle

2012-09-24 Thread Dwight Hutto
The posted code produces neither a set nor any keys; it prints out the same predetermined non-key value multiple times. This shows multiple dicts, with the same keys, and shows different values, and some with the same, and that is, in my opinion what the OP asked for: a = {} a['dict'] = 1 b =

Re: keeping information about players around

2012-09-24 Thread Dwight Hutto
On Mon, Sep 24, 2012 at 7:28 PM, alex23 wuwe...@gmail.com wrote: On Sep 25, 8:32 am, Dwight Hutto dwightdhu...@gmail.com wrote: No, but phpmyadmin is a great GUI for MySQL If you're recommending MySQL use on the basis of phpmyadmin, you should also make sure to mention: http

Re: For Counter Variable

2012-09-24 Thread Dwight Hutto
On Sep 25, 8:26 am, Dwight Hutto dwightdhu...@gmail.com wrote: It's a function usage. Not to be too serious, there are usually simpler solutions, and built in functions. `enumerate` _is_ a built-in function. Please provide an example of a simpler solution. It's not the simpler solution I'm

Re: For Counter Variable

2012-09-24 Thread Dwight Hutto
Well if you're learning then the builtin might be more like how we answer students questions here, than those doing work. STOP SAYING THIS NONSENSE. Using a pre-defined function is _not_ the student approach. What are talking about, I suggested they roll there own in several responses this

Re: which a is used?

2012-09-24 Thread Dwight Hutto
On Mon, Sep 24, 2012 at 7:43 PM, Jayden jayden.s...@gmail.com wrote: Dear All, I have a simple code as follows: # Begin a = 1 def f(): print a def g(): a = 20 f() g() #End I think the results should be 20, but it is 1. Would you please tell me why? Thanks a lot!

Re: For Counter Variable

2012-09-24 Thread Dwight Hutto
Propaganda over... -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list

Re: which a is used?

2012-09-24 Thread Dwight Hutto
On Mon, Sep 24, 2012 at 7:57 PM, Dwight Hutto dwightdhu...@gmail.com wrote: On Mon, Sep 24, 2012 at 7:43 PM, Jayden jayden.s...@gmail.com wrote: Dear All, I have a simple code as follows: # Begin a = 1 def f(): print a def g(): a = 20 f() this prints a from calling f

Re: For Counter Variable

2012-09-24 Thread Dwight Hutto
Is the animated GIF on your website under 60MB yet? yeah a command line called convert, and taking out a few jpegs used to convert, and I can reduce it to any size, what's the fucking point of that question other than ignorant rhetoric, that you know is easily fixable? -- Best Regards, David

Re: For Counter Variable

2012-09-24 Thread Dwight Hutto
To highlight the vast gulf between what you think you are and what you actually produce. I produce working code, and if it works, then I don't just think...I know. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list

Re: keeping information about players around

2012-09-24 Thread Dwight Hutto
On Mon, Sep 24, 2012 at 7:52 PM, alex23 wuwe...@gmail.com wrote: On Sep 25, 9:44 am, Dwight Hutto dwightdhu...@gmail.com wrote: What DB are you recommending, check out sqlite's: http://www.cvedetails.com/vulnerability-list/vendor_id-9237/Sqlite.html Are you _seriously_ comparing _four_

  1   2   >