Re: My son wants me to teach him Python

2013-06-13 Thread Jason Swails
On Thu, Jun 13, 2013 at 11:33 PM, Rick Johnson wrote: > On Thursday, June 13, 2013 3:18:57 PM UTC-5, Joshua Landau wrote: > > > [...] > > GUI is boring. I don't give a damn about that. If I had it > > my way, I'd never write any interfaces again (although > > designing them is fine). Console inte

Re: Wrong website loaded when other requested

2013-06-13 Thread Nick the Gr33k
On 13/6/2013 10:31 μμ, Grant Edwards wrote: On 2013-06-13, Nick the Gr33k wrote: On 13/6/2013 9:37 , Andreas Perstinger wrote: On 13.06.2013 20:10, Nick the Gr33k wrote: [nothing new] Could you please stop spamming the whole internet with your problems. Not only that you've posted two sim

Re: My son wants me to teach him Python

2013-06-13 Thread Steven D'Aprano
On Thu, 13 Jun 2013 20:33:40 -0700, Rick Johnson wrote: > On Thursday, June 13, 2013 3:18:57 PM UTC-5, Joshua Landau wrote: > >> [...] >> GUI is boring. I don't give a damn about that. If I had it my way, I'd >> never write any interfaces again (although designing them is fine). >> Console intera

Re: A few questiosn about encoding

2013-06-13 Thread Zero Piraeus
: On 14 June 2013 01:34, Nick the Gr33k wrote: > Why doesn't it work like this? > > leading 0 = 1 byte flag > leading 1 = 2 bytes flag > leading 00 = 3 bytes flag > leading 01 = 4 bytes flag > leading 10 = 5 bytes flag > leading 11 = 6 bytes flag > > Wouldn't it be more logical? Think about it.

Re: Having a hard time to 'get' bing api search results

2013-06-13 Thread Andreas Perstinger
On 14.06.2013 03:00, Yves S. Garret wrote: Thanks again Kevin. I'm deviating from the original thread, but I've got another issue. When I try to load the json file and then parse it, this is the error that I get: http://bin.cakephp.org/view/1329549559 1) Please don't top post. Put your answer

Re: Future standard GUI library

2013-06-13 Thread Frank Millman
"Chris Angelico" wrote in message news:CAPTjJmo+fWsCD3Lb6s+zmWspKzzk_JB=pbcvflbzjgcfxvm...@mail.gmail.com... > On Thu, Jun 13, 2013 at 7:32 PM, Frank Millman wrote: >> I am talking about what I call 'field-by-field validation'. Each field >> could >> have one or more checks to ensure that the

Re: A few questiosn about encoding

2013-06-13 Thread Nick the Gr33k
On 14/6/2013 1:46 πμ, Dennis Lee Bieber wrote: On Wed, 12 Jun 2013 09:09:05 + (UTC), ?? declaimed the following: (*) infact UTF8 also indicates the end of each character Up to a point. The initial byte encodes the length and the top few bits, but the subsequent octets aren

Re: How to get an integer from a sequence of bytes

2013-06-13 Thread Tim Roberts
Fábio Santos wrote: >On 5 Jun 2013 06:23, "Tim Roberts" wrote: >> A single machine word was 60 bits, so a single register read got you 10 >> characters. > >10 characters! Now that sounds like it's enough to actually store a word. >However long words can inadverten be cropped. Well, Cybers weren

Re: My son wants me to teach him Python

2013-06-13 Thread Joshua Landau
I don't normally respond to trolls, but I'll make an exception here. On 14 June 2013 04:33, Rick Johnson wrote: > On Thursday, June 13, 2013 3:18:57 PM UTC-5, Joshua Landau wrote: > >> [...] >> GUI is boring. I don't give a damn about that. If I had it >> my way, I'd never write any interfaces ag

Re: Creating a Super Simple WWW Link, Copy, & Paste into Spreadsheet Program

2013-06-13 Thread rusi
On Jun 14, 12:28 am, buford.lum...@gmail.com wrote: > Hi, I'm new to Python. Would someone be able to write me and/or to show me > how to write a simple program that: > > 1-follows a hyperlink from MS Excel to the internet (one of many links like > this,http://www.zipdatamaps.com/76180, for e.g.)

Re: My son wants me to teach him Python

2013-06-13 Thread Chris Angelico
On Fri, Jun 14, 2013 at 1:33 PM, Rick Johnson wrote: > On Thursday, June 13, 2013 3:18:57 PM UTC-5, Joshua Landau wrote: > >> [...] >> GUI is boring. I don't give a damn about that. If I had it >> my way, I'd never write any interfaces again (although >> designing them is fine). Console interactio

Re: My son wants me to teach him Python

2013-06-13 Thread Chris Angelico
On Fri, Jun 14, 2013 at 1:33 PM, Rick Johnson wrote: > For instance, if i want to > open a text file on my machine, i merely navigate to the > file via my file browser interface, using clicks along the > way, and then the final double click will open the text file > using it's default program. Ar

Useful Python books and Web sites for system administrators

2013-06-13 Thread Richard Zinar
Hi, If anyone has some favorite books or Web sites which explore using Python for various system administration tasks, I'd be interested in hearing about them. I'm primarily interested in resources which focus on Linux, but since I work in a multi-platform environment, pointers to sites which dis

Re: My son wants me to teach him Python

2013-06-13 Thread Rick Johnson
On Thursday, June 13, 2013 3:18:57 PM UTC-5, Joshua Landau wrote: > [...] > GUI is boring. I don't give a damn about that. If I had it > my way, I'd never write any interfaces again (although > designing them is fine). Console interaction is faster to > do and it lets me do the stuff I *want* to d

Re: Python biases [was Re: My son wants me to teach him Python]

2013-06-13 Thread rusi
On Jun 14, 5:44 am, Steven D'Aprano wrote: > On Thu, 13 Jun 2013 06:37:34 -0700, rusi wrote: > > Python-the-language has strengths that are undermined by the biases in > > the culture of Python. > > This implies that there are strengths in Python-the-language which are > not just missed or ignored

RFD: rename comp.lang.python to comp.support.superhost

2013-06-13 Thread alex23
On Jun 14, 2:24 am, Νικόλαος Κούρας wrote: > iam researchign a solution to this as we speak. Spamming endless "ZOMG HELP ME I'M INCOMPETENT" posts isn't "research". -- http://mail.python.org/mailman/listinfo/python-list

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-13 Thread Steven D'Aprano
On Thu, 13 Jun 2013 19:20:06 +0300, Νικόλαος Κούρας wrote: > But iam not offering Steven full root access, but restricted user level > access. Are you implying that for example one could elevate his > privileges to root level access form within a normal restricted user > account? Me personally? P

Re: Creating a Super Simple WWW Link, Copy, & Paste into Spreadsheet Program

2013-06-13 Thread Steven D'Aprano
On Thu, 13 Jun 2013 12:28:09 -0700, buford.lumbar wrote: > Hi, I'm new to Python. Would someone be able to write me and/or to show > me how to write a simple program that: [snip directions] Cannot be done. What you describe is not "simple", and it certainly is not "super simple" like you have in

Re: Debugging memory leaks

2013-06-13 Thread Steven D'Aprano
On Thu, 13 Jun 2013 20:15:42 +, Giorgos Tzampanakis wrote: >> Therefore: if the leak seems to be small, it may be much more advicable >> to restart your process periodically (during times where a restart does >> not hurt much) rather than try to find (and fix) the leaks. Only when >> the leak

Re: My son wants me to teach him Python

2013-06-13 Thread Ben Finney
Steven D'Aprano writes: > I consider IDEs to be an attractive nuisance. It's like learning to be a > chef by putting food in a microwave and pushing the pre-set buttons. +1 QotW -- \“With Lisp or Forth, a master programmer has unlimited power | `\ and expressiveness. With Pyth

Re: My son wants me to teach him Python

2013-06-13 Thread Ethan Furman
On 06/13/2013 06:23 PM, Steven D'Aprano wrote: I consider IDEs to be an attractive nuisance. It's like learning to be a chef by putting food in a microwave and pushing the pre-set buttons. +1 QOTW -- http://mail.python.org/mailman/listinfo/python-list

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-13 Thread Steven D'Aprano
On Thu, 13 Jun 2013 10:16:42 -0400, Zero Piraeus wrote: > : > >> Steven, i can create a normal user account for you and copy files.py >> into your home folder if you want to take a look from within. > > Nikos, please, DO NOT DO THIS. > > It must be clear to you that Steven is *much* more experi

Re: My son wants me to teach him Python

2013-06-13 Thread Steven D'Aprano
On Thu, 13 Jun 2013 17:37:34 +0200, Tomasz Rola wrote: > If he (son) learns Haskell, he may as well stay with it, because it's > quite decent lang as far as I can tell. And it's compiled, too. So is Python. > I would also consider Racket, which is a Scheme superset. It too, comes > with compile

Re: A certainl part of an if() structure never gets executed.

2013-06-13 Thread Steven D'Aprano
On Thu, 13 Jun 2013 17:26:18 +0300, Νικόλαος Κούρας wrote: > i just want 4 cases to examine so correct execute to be run: > > i'm reading and reading and reading this all over: > > if '-' not in ( name and month and year ): > > and i cant comprehend it. Don't just read it. Open the interactive

Re: My son wants me to teach him Python

2013-06-13 Thread Cameron Simpson
On 12Jun2013 21:47, Rick Johnson wrote: | On Wednesday, June 12, 2013 11:08:44 PM UTC-5, Chris Angelico wrote: | > No. Definitely not. Programming does NOT begin with a GUI. It begins | > with something *simple*, so you're not stuck fiddling around with the | > unnecessary. On today's computers, t

Re: A few questiosn about encoding

2013-06-13 Thread Cameron Simpson
On 13Jun2013 17:19, Nikos as SuperHost Support wrote: | A code-point and the code-point's ordinal value are associated into | a Unicode charset. They have the so called 1:1 mapping. | | So, i was under the impression that by encoding the code-point into | utf-8 was the same as encoding the code-p

Re: Having a hard time to 'get' bing api search results

2013-06-13 Thread Yves S. Garret
Thanks again Kevin. I'm deviating from the original thread, but I've got another issue. When I try to load the json file and then parse it, this is the error that I get: http://bin.cakephp.org/view/1329549559 On Thu, Jun 13, 2013 at 6:57 PM, Kevin LaTona wrote: > > > Your welcome. > > > To be

Python biases [was Re: My son wants me to teach him Python]

2013-06-13 Thread Steven D'Aprano
On Thu, 13 Jun 2013 06:37:34 -0700, rusi wrote: > Python-the-language has strengths that are undermined by the biases in > the culture of Python. This implies that there are strengths in Python-the-language which are not just missed or ignored by Python programmers immersed in the culture, but

Re: Version Control Software

2013-06-13 Thread Terry Reedy
On 6/13/2013 6:20 PM, Zero Piraeus wrote: : On 13 June 2013 17:53, Grant Edwards wrote: Unfortunately, something that requires typing commands would not fly. I haven't used it (very rarely use GUI dev tools), but Tortoise Hg seems to have a decent reputati

Re: Version Control Software

2013-06-13 Thread Neil Hodgson
Grant Edwards: The last time we made the choice (4-5 years ago), Windows support for get, bzr, and hg was definitely lacking compared to svn. The lack of something like tortoisesvn for hg/git/bzr was a killer. It looks like the situation has improved since then, but I'd be curious to hear from

Re: Having a hard time to 'get' bing api search results

2013-06-13 Thread Yves S. Garret
That works beautifully! Thank you! I do have one question, what are urllib and urllib2 then? I figured that urllib2 is a newer version of the previous library (and one that I should be using). Am I missing something? On Thu, Jun 13, 2013 at 6:45 PM, Kevin LaTona wrote: > > I did a quick tes

Re: Debugging memory leaks

2013-06-13 Thread Chris Angelico
On Fri, Jun 14, 2013 at 6:15 AM, Giorgos Tzampanakis wrote: > On 2013-06-13, dieter wrote: >> Therefore: if the leak seems to be small, it may be much more advicable >> to restart your process periodically (during times where a restart does >> not hurt much) rather than try to find (and fix) the l

Re: Version Control Software

2013-06-13 Thread Benjamin Kaplan
On Jun 13, 2013 10:17 AM, "Grant Edwards" wrote: > > On 2013-06-13, Ben Finney wrote: > > cutems93 writes: > > > >> I am looking for an appropriate version control software for python > >> development, and need professionals' help to make a good decision. > > > >> Currently I am considering four

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-13 Thread Dave Angel
On 06/13/2013 05:46 PM, Chris Angelico wrote: On Fri, Jun 14, 2013 at 3:48 AM, Νικόλαος Κούρας wrote: You are right, but i still believe Stevn would not act maliciously in the server. He proved himself very helpfull already. You thought that about me, too. (And you were still correct.

Re: Version Control Software

2013-06-13 Thread Zero Piraeus
: On 13 June 2013 17:53, Grant Edwards wrote: > > Unfortunately, something that requires typing commands would not fly. I haven't used it (very rarely use GUI dev tools), but Tortoise Hg seems to have a decent reputation for Mercurial (and is at least somewhat

Re: Debugging memory leaks

2013-06-13 Thread Steve Simmons
Giorgos Tzampanakis wrote: >On 2013-06-13, dieter wrote: > >>> ... Anyway, my real question is how to go about debugging memory >leak >>> problems in Python, particularly for a long running server process >>> written with Twisted. I'm not sure how to use heapy or guppy, and >>> objgraph doesn't

Re: Version Control Software

2013-06-13 Thread Chris Angelico
On Fri, Jun 14, 2013 at 8:15 AM, Fábio Santos wrote: > I must disagree. I used git a lot on windows this past year, on a Console > shell (which is basically a CMD.EXE shell with tabs and appropriate > select/copy/paste) and it was quite useful. Maybe that's changed since the last time I installed

Re: Version Control Software

2013-06-13 Thread Fábio Santos
On 13 Jun 2013 22:34, "Chris Angelico" wrote: > [...] > It's > possible to get git for Windows, including gitk and 'git gui' (not > sure about any other graphical tools, they're the only two I use), but > the most convenient way to use them is from a ported bash. I must disagree. I used git a lot

Re: Version Control Software

2013-06-13 Thread Chris Angelico
On Fri, Jun 14, 2013 at 7:53 AM, Grant Edwards wrote: > On 2013-06-13, Chris Angelico wrote: >> On Fri, Jun 14, 2013 at 3:06 AM, Grant Edwards >> wrote: >> I do almost exclusively Linux dev, but occasionally nip onto Windows >> for one reason or another (possibly inside a virtual machine). It's

Re: Version Control Software

2013-06-13 Thread Grant Edwards
On 2013-06-13, Chris Angelico wrote: > On Fri, Jun 14, 2013 at 3:06 AM, Grant Edwards > wrote: > >> The last time we made the choice (4-5 years ago), Windows support for >> get, bzr, and hg was definitely lacking compared to svn. The lack of >> something like tortoisesvn for hg/git/bzr was a ki

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-13 Thread Chris Angelico
On Fri, Jun 14, 2013 at 3:48 AM, Νικόλαος Κούρας wrote: > On 13/6/2013 8:27 μμ, Zero Piraeus wrote: >> >> : >> >>> But iam not offering Steven full root access, but restricted user level >>> access. Are you implying that for example one could elevate his >>> privileges >>> to root level access for

Re: Having a hard time to 'get' bing api search results

2013-06-13 Thread Yves S. Garret
This is the format that I've been following: http://gavinmhackeling.com/blog/2012/05/using-the-bing-search-api-in-python/ If I execute the specified query from a browser, the JSON file shows up without a problem. Now, I'd like to do that programmatically. On Thu, Jun 13, 2013 at 4:57 PM, Yves S

Re: Version Control Software

2013-06-13 Thread Chris Angelico
On Fri, Jun 14, 2013 at 3:06 AM, Grant Edwards wrote: > The last time we made the choice (4-5 years ago), Windows support for > get, bzr, and hg was definitely lacking compared to svn. The lack of > something like tortoisesvn for hg/git/bzr was a killer. It looks like > the situation has improve

RE: Creating a Super Simple WWW Link, Copy, & Paste into Spreadsheet Program

2013-06-13 Thread Nick Cash
>> there is a python module that reads and writes to excel files. look >> for that >More than one, actually, and which to use depends on whether "Excel files" >means the .xls or .xlsx >format. On Windows, the most flexible solution is going to be to just use COM >to control the Excel >applic

Re: Having a hard time to 'get' bing api search results

2013-06-13 Thread j...@studiosola.com
> Web?Query=%27xbox%20one%27& Plus do you really want to be sending in a %27 (which is a [ ) vs maybe a %20 (which is a space ) or even a %29 ( which is a ] ) Cross check your URL encoding is correct. -Kevin On Jun 13, 2013, at 2:09 PM, John Gordon wrote: > In "Yves

[ANNC] pynguin-0.15 python turtle graphics application

2013-06-13 Thread Lee Harr
Pynguin is a python-based turtle graphics application.     It combines an editor, interactive interpreter, and     graphics display area. It is meant to be an easy environment for introducing     some programming concepts to beginning programmers. http://pynguin.googlecode.com/ This release ma

Re: Having a hard time to 'get' bing api search results

2013-06-13 Thread John Gordon
In "Yves S. Garret" writes: > Hello all, > This is my dilemma, I'm trying to get the generated JSON file using the > bing api search. > This is the code that I'm executing from inside the shell: > http://bin.cakephp.org/view/460660617 > The port doesn't matter to me. Thoughts? It looks lik

Having a hard time to 'get' bing api search results

2013-06-13 Thread Yves S. Garret
Hello all, This is my dilemma, I'm trying to get the generated JSON file using the bing api search. This is the code that I'm executing from inside the shell: http://bin.cakephp.org/view/460660617 The port doesn't matter to me. Thoughts? -- http://mail.python.org/mailman/listinfo/python-list

Re: Creating a Super Simple WWW Link, Copy, & Paste into Spreadsheet Program

2013-06-13 Thread Ian Kelly
On Thu, Jun 13, 2013 at 1:41 PM, Joel Goldstick wrote: > there is a python module that reads and writes to excel files. look for > that More than one, actually, and which to use depends on whether "Excel files" means the .xls or .xlsx format. On Windows, the most flexible solution is going to b

Re: My son wants me to teach him Python

2013-06-13 Thread Joshua Landau
On 13 June 2013 14:01, rusi wrote: > Some views of mine (controversial!). > > Python is at least two things, a language and a culture. > As a language its exceptionally dogma-neutral. > You can do OO or FP, throwaway one-off scripts or long-term system > building etc > > However as a culture it se

Re: Debugging memory leaks

2013-06-13 Thread Giorgos Tzampanakis
On 2013-06-13, dieter wrote: >> ... Anyway, my real question is how to go about debugging memory leak >> problems in Python, particularly for a long running server process >> written with Twisted. I'm not sure how to use heapy or guppy, and >> objgraph doesn't tell me enough to locate the problem

Re: Creating a Super Simple WWW Link, Copy, & Paste into Spreadsheet Program

2013-06-13 Thread buford . lumbar
On Thursday, June 13, 2013 3:41:24 PM UTC-4, Joel Goldstick wrote: > there is a python module that reads and writes to excel files.  look for that > > > > > On Thu, Jun 13, 2013 at 3:28 PM, wrote: > > Hi, I'm new to Python. Would someone be able to write me and/or to show me > how to write

Re: My son wants me to teach him Python

2013-06-13 Thread Joshua Landau
On 13 June 2013 17:50, Tomasz Rola wrote: > Of course kids are more interesting in things painted on > screen, especially if they are colorful, move and make > sounds at that. The next step would be a simple, > interactive game. > > Which is why I would synthesize something neat yet > simple from

Re: Creating a Super Simple WWW Link, Copy, & Paste into Spreadsheet Program

2013-06-13 Thread Dave Angel
On 06/13/2013 03:28 PM, buford.lum...@gmail.com wrote: Hi, I'm new to Python. Would someone be able to write me and/or to show me how to write a simple program that: Hi, welcome to Python, and to the Python-list It's NOT a simple program, except by a very constrained definition of simple.

Re: Creating a Super Simple WWW Link, Copy, & Paste into Spreadsheet Program

2013-06-13 Thread Joel Goldstick
there is a python module that reads and writes to excel files. look for that On Thu, Jun 13, 2013 at 3:28 PM, wrote: > Hi, I'm new to Python. Would someone be able to write me and/or to show me > how to write a simple program that: > > 1-follows a hyperlink from MS Excel to the internet (one o

Re: Wrong website loaded when other requested

2013-06-13 Thread Grant Edwards
On 2013-06-13, Nick the Gr33k wrote: > On 13/6/2013 9:37 , Andreas Perstinger wrote: >> On 13.06.2013 20:10, Nick the Gr33k wrote: >> [nothing new] >> >> Could you please stop spamming the whole internet with your problems. >> Not only that you've posted two similar offtopic messages within on

Creating a Super Simple WWW Link, Copy, & Paste into Spreadsheet Program

2013-06-13 Thread buford . lumbar
Hi, I'm new to Python. Would someone be able to write me and/or to show me how to write a simple program that: 1-follows a hyperlink from MS Excel to the internet (one of many links like this, http://www.zipdatamaps.com/76180, for e.g.) and then, 2-copies some data (a population number, e.g. 54

Re: My son wants me to teach him Python

2013-06-13 Thread russ . pobox
I couldn't read every post here so don't know if this has been suggested, or if there is perhaps a better suggestion which I haven't read in this thread, but in as far as I've read I feel the need to recommend: learnpythonthehardway.org Knowing a little JavaScript and even allot of HTML doesn't

Re: Wrong website loaded when other requested

2013-06-13 Thread Nick the Gr33k
On 13/6/2013 9:37 μμ, Andreas Perstinger wrote: On 13.06.2013 20:10, Nick the Gr33k wrote: [nothing new] Could you please stop spamming the whole internet with your problems. Not only that you've posted two similar offtopic messages within only 6 minutes to this list, you've also crossposted to

Re: Wrong website loaded when other requested

2013-06-13 Thread Nick the Gr33k
On 13/6/2013 9:28 μμ, Joel Goldstick wrote: On Thu, Jun 13, 2013 at 2:10 PM, Nick the Gr33k mailto:supp...@superhost.gr>> wrote: Τη Πέμπτη, 13 Ιουνίου 2013 7:52:27 μ.μ. UTC+3, ο χρήστης Νικόλαος Κούρας έγραψε: > On 13/6/2013 6:35 μμ, Joel Goldstick wrote: > >> [Tue Ju

Re: Debugging memory leaks

2013-06-13 Thread Dave Angel
On 06/13/2013 02:07 PM, writeson wrote: Dieter, Thanks for the response, and you're correct, debugging memory leaks is tough! So far I haven't had much luck other than determining I have a leak. I've used objgraph to see that objects are being created that don't seem to get cleaned up. What I

Re: Any speech to text conversation python library for Linux and mac box

2013-06-13 Thread Miki Tebeka
On Wednesday, June 12, 2013 8:59:44 PM UTC-7, Ranjith Kumar wrote: > I'm looking for speech to text conversation python library for linux and mac Not a Python library, but maybe you can work with http://cmusphinx.sourceforge.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Wrong website loaded when other requested

2013-06-13 Thread Andreas Perstinger
On 13.06.2013 20:10, Nick the Gr33k wrote: [nothing new] Could you please stop spamming the whole internet with your problems. Not only that you've posted two similar offtopic messages within only 6 minutes to this list, you've also crossposted to alt.os.linux (where it is offtopic too) and to

Re: Wrong website loaded when other requested

2013-06-13 Thread Joel Goldstick
On Thu, Jun 13, 2013 at 2:10 PM, Nick the Gr33k wrote: > > > Τη Πέμπτη, 13 Ιουνίου 2013 7:52:27 μ.μ. UTC+3, ο χρήστης Νικόλαος Κούρας > έγραψε: > > On 13/6/2013 6:35 μμ, Joel Goldstick wrote: > > > >> [Tue Jun 11 21:59:31 2013] [error] [client 79.103.41.173] > > > >> FileNotFoundError: [Errno 2] \

Re: Newbie: question regarding references and class relationships

2013-06-13 Thread Rui Maciel
Chris Angelico wrote: > Just FYI, Rick Johnson (aka Ranting Rick) is a known troll. Don't let > him goad you :) > > Follow other people's advice, and take Rick's posts with a grain of > salt. Sometimes he has a good point to make (more often when he's > talking about tkinter, which is his area of

Re: Wrong website loaded when other requested

2013-06-13 Thread Nick the Gr33k
Τη Πέμπτη, 13 Ιουνίου 2013 7:52:27 μ.μ. UTC+3, ο χρήστης Νικόλαος Κούρας έγραψε: > On 13/6/2013 6:35 μμ, Joel Goldstick wrote: > >> [Tue Jun 11 21:59:31 2013] [error] [client 79.103.41.173] > >> FileNotFoundError: [Errno 2] \\u0394\\u03b5\\u03bd > >> \\u03c5\\u03c0\\u03ac\\u03c1\\ > >> > >>

Re: Debugging memory leaks

2013-06-13 Thread writeson
Dieter, Thanks for the response, and you're correct, debugging memory leaks is tough! So far I haven't had much luck other than determining I have a leak. I've used objgraph to see that objects are being created that don't seem to get cleaned up. What I can't figure out so far is why, they are

Re: Wrong website loaded when other requested

2013-06-13 Thread Νικόλαος Κούρας
Τη Πέμπτη, 13 Ιουνίου 2013 7:52:27 μ.μ. UTC+3, ο χρήστης Νικόλαος Κούρας έγραψε: > On 13/6/2013 6:35 μμ, Joel Goldstick wrote: > > > [Tue Jun 11 21:59:31 2013] [error] [client 79.103.41.173] > > > FileNotFoundError: [Errno 2] \\u0394\\u03b5\\u03bd > > > \\u03c5\\u03c0\\u03ac\\u03c1\\ > > > > >

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-13 Thread Grant Edwards
On 2013-06-13, wrote: > On 13/6/2013 8:27 , Zero Piraeus wrote: > >> Then you need to contract with paid, professional support to solve >> your problems. > > Or receive some free help, to solve this single detail i'am missing. "single detail I am missing" Seri

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-13 Thread Νικόλαος Κούρας
On 13/6/2013 8:27 μμ, Zero Piraeus wrote: : But iam not offering Steven full root access, but restricted user level access. Are you implying that for example one could elevate his privileges to root level access form within a normal restricted user account? I am implying that your demonstrate

Re: My son wants me to teach him Python

2013-06-13 Thread rusi
On Jun 13, 9:50 pm, Tomasz Rola wrote: > I've reposted on another list and got this reply. At first I was sceptic > a bit, but for the sake of completeness, here goes. Processing language > seems to be interesting in its own right. Examples are Java-flavoured, > images are ok. > > Regards, > Tomas

Re: My son wants me to teach him Python

2013-06-13 Thread Mark Janssen
> Despite not want to RTFM as you say, you might set him in front of > VPython, type I totally forgot PyGame -- another likely source of self-motivated learning for a teen programmer. -- MarkJ Tacoma, Washington -- http://mail.python.org/mailman/listinfo/python-list

Re: My son wants me to teach him Python

2013-06-13 Thread Paul Rubin
Tomasz Rola writes: > I've reposted on another list and got this reply. At first I was sceptic > a bit, but for the sake of completeness, here goes. Processing language > seems to be interesting in its own right. Examples are Java-flavoured, > images are ok. There is a book "Python for Kids" t

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-13 Thread Zero Piraeus
: > But iam not offering Steven full root access, but restricted user level > access. Are you implying that for example one could elevate his privileges > to root level access form within a normal restricted user account? I am implying that your demonstrated lack of ability means that *you don't

Re: My son wants me to teach him Python

2013-06-13 Thread Tomasz Rola
I've reposted on another list and got this reply. At first I was sceptic a bit, but for the sake of completeness, here goes. Processing language seems to be interesting in its own right. Examples are Java-flavoured, images are ok. Regards, Tomasz Rola -- ** A C programmer asked whether comput

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-13 Thread Grant Edwards
On 2013-06-13, wrote: > On 13/6/2013 5:16 , Zero Piraeus wrote: >> : >> >>> Steven, i can create a normal user account for you and copy files.py into >>> your home folder if you want to take a look from within. >> >> Nikos, please, DO NOT DO THIS. >> >> It must be

Re: Version Control Software

2013-06-13 Thread Grant Edwards
On 2013-06-13, Ben Finney wrote: > cutems93 writes: > >> I am looking for an appropriate version control software for python >> development, and need professionals' help to make a good decision. > >> Currently I am considering four software: git, SVN, CVS, and >> Mercurial. > > These days there i

Re: Wrong website loaded when other requested

2013-06-13 Thread Νικόλαος Κούρας
On 13/6/2013 7:28 μμ, Chris Angelico wrote: On Fri, Jun 14, 2013 at 2:23 AM, �� wrote: Oh my God, i'll find an httpd.conf directive ot .htaccess directive that prohibits display of source code of cgi scripts please tell me if you know of such a directive. Yes. This will majorly

Re: A certainl part of an if() structure never gets executed.

2013-06-13 Thread Νικόλαος Κούρας
if '-' not in name + month + year: cur.execute( '''SELECT * FROM works WHERE clientsID = (SELECT id FROM clients WHERE name = %s) and MONTH(lastvisit) = %s and YEAR(lastvisit) = %s ORDER BY lastvisit ASC''', (name, month, year) ) elif '-' not in name + year:

Re: Wrong website loaded when other requested

2013-06-13 Thread Νικόλαος Κούρας
On 13/6/2013 6:35 μμ, Joel Goldstick wrote: [Tue Jun 11 21:59:31 2013] [error] [client 79.103.41.173] FileNotFoundError: [Errno 2] \\u0394\\u03b5\\u03bd \\u03c5\\u03c0\\u03ac\\u03c1\\ u03c7\\u03b5\\u03b9 \\u03c4\\u03ad\\u03c4\\u03bf\\u03b9\\u03bf \\u03b1\\u03c1\\u03c7\\u03b5\\u03af\\u03b

Re: Wrong website loaded when other requested

2013-06-13 Thread rusi
On Jun 13, 7:28 pm, Chris Angelico wrote: > On Fri, Jun 14, 2013 at 12:23 AM, Íéêüëáïò Êïýñáò > wrote: > > Please suggest something of why this happnes. > > You remind me of George. > > http://www.chroniclesofgeorge.com/ > > ChrisA HA! You are evil -- Chris! -- http://mail.python.org/mailman/l

Re: Wrong website loaded when other requested

2013-06-13 Thread Νικόλαος Κούρας
On 13/6/2013 6:11 μμ, Chris Angelico wrote: On Fri, Jun 14, 2013 at 12:54 AM, Andreas Perstinger wrote: On 13.06.2013 16:23, �� wrote: Please suggest something of why this happnes. That's not a Python problem. BTW both scripts at http://superhost.gr/~dauwin/metrites.py and at

Re: Wrong website loaded when other requested

2013-06-13 Thread Chris Angelico
On Fri, Jun 14, 2013 at 2:23 AM, Νικόλαος Κούρας wrote: > Oh my God, i'll find an httpd.conf directive ot .htaccess directive that > prohibits display of source code of cgi scripts > > please tell me if you know of such a directive. Yes. This will majorly improve your security. It goes in your ht

Re: Wrong website loaded when other requested

2013-06-13 Thread Νικόλαος Κούρας
On 13/6/2013 5:54 μμ, Andreas Perstinger wrote: That's not a Python problem. BTW both scripts at http://superhost.gr/~dauwin/metrites.py and at http://superhost.gr/~dauwin/cgi-bin/metrites.py show the world the passwords to your databases in plain text. Oh my God, i'll find an httpd.conf dire

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-13 Thread Νικόλαος Κούρας
On 13/6/2013 5:16 μμ, Zero Piraeus wrote: : Steven, i can create a normal user account for you and copy files.py into your home folder if you want to take a look from within. Nikos, please, DO NOT DO THIS. It must be clear to you that Steven is *much* more experienced than you. Your presumpt

Re: My son wants me to teach him Python

2013-06-13 Thread Tomasz Rola
On Thu, 13 Jun 2013, rusi wrote: > On Jun 13, 12:46 am, John Ladasky wrote: > > Hi folks, > > > > My son is 17 years old.  He just took a one-year course in web page > > design at his high school.  HTML is worth knowing, I suppose, and I > > think he has also done a little Javascript.  He has e

Re: Performance of list.index - how to speed up a silly algorithm?

2013-06-13 Thread Dave Angel
On 06/13/2013 10:55 AM, Onyxx wrote: I would convert your list to a pandas dataframe. You're leaving a message on a public forum without any context in the message, using a title that was apparently last used in 2010. Are you really trying to reply to a message from over 3 years ago??? --

Re: Wrong website loaded when other requested

2013-06-13 Thread Joel Goldstick
So Nick, I am top posting because I don't think you read your replies. I replied yesterday. Read this line below. Read the line below. READ it. READ IT.. each letter. READ it: [Tue Jun 11 21:59:31 2013] [error] [client 79.103.41.173] FileNotFoundError: [Errno 2] \\u0394\\u03b5\\u03bd \\u03c5

Re: Problem creating a regular expression to parse open-iscsi, iscsiadm output (help?)

2013-06-13 Thread Kevin LaTona
On Jun 12, 2013, at 5:59 PM, rice.cr...@gmail.com wrote: > I am parsing the output of an open-iscsi command that contains several blocks > of data for each data set. Each block has the format: > Lastly, a version of this regex as a non-VERBOSE expression works as > expected.. Something about

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-13 Thread Zero Piraeus
: > Steven, i can create a normal user account for you and copy files.py into > your home folder if you want to take a look from within. Nikos, please, DO NOT DO THIS. It must be clear to you that Steven is *much* more experienced than you. Your presumptions about what he can and can't do with t

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-13 Thread Chris Angelico
On Thu, Jun 13, 2013 at 7:43 PM, Νικόλαος Κούρας wrote: > On 13/6/2013 12:25 μμ, Chris Angelico wrote: >> >> On Thu, Jun 13, 2013 at 6:15 PM, �� >> wrote: >>> >>> I host no "e-shop" websites, hence into my system there is no credit card >>> info stored, no id photos, no SSN, nothing.

Re: Wrong website loaded when other requested

2013-06-13 Thread Chris Angelico
On Fri, Jun 14, 2013 at 12:54 AM, Andreas Perstinger wrote: > On 13.06.2013 16:23, Νικόλαος Κούρας wrote: >> >> Please suggest something of why this happnes. > > > That's not a Python problem. > > BTW both scripts at > http://superhost.gr/~dauwin/metrites.py > and at > http://superhost.gr/~dauwin/

Re: Performance of list.index - how to speed up a silly algorithm?

2013-06-13 Thread Onyxx
I would convert your list to a pandas dataframe. -- http://mail.python.org/mailman/listinfo/python-list

Re: Wrong website loaded when other requested

2013-06-13 Thread Andreas Perstinger
On 13.06.2013 16:23, Νικόλαος Κούρας wrote: Please suggest something of why this happnes. That's not a Python problem. BTW both scripts at http://superhost.gr/~dauwin/metrites.py and at http://superhost.gr/~dauwin/cgi-bin/metrites.py show the world the passwords to your databases in plain text

Re: A certainl part of an if() structure never gets executed.

2013-06-13 Thread Νικόλαος Κούρας
On 13/6/2013 12:16 πμ, Sibylle Koczian wrote: Am 12.06.2013 22:00, schrieb Νικόλαος Κούρας: On 12/6/2013 10:48 μμ, Sibylle Koczian wrote: if '=' not in ( name and month and year ): i understand: if '=' not in name AND '=' not in month AND '=' not in year Wrong. The "'=' not in (...)" first ev

Re: Wrong website loaded when other requested

2013-06-13 Thread Thomas Murphy
Chris, I had never encountered George before today, and now my life is a little bit better. This and "help vampires" in one morning, today's shaping up well! (now if this JSON would serialize with this #*@$ing angularJS Controller, but that's for another list) On Thu, Jun 13, 2013 at 10:28 AM,

Re: A certainl part of an if() structure never gets executed.

2013-06-13 Thread Νικόλαος Κούρας
On 13/6/2013 3:22 μμ, Sibylle Koczian wrote: Am 13.06.2013 09:11, schrieb Νικόλαος Κούρας: On 13/6/2013 4:55 πμ, Steven D'Aprano wrote: The "and" operator works in a similar fashion. Experiment with it and see how it works for yourself. I read yours psots many times,all of them, tryign to un

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-13 Thread Νικόλαος Κούρας
On 13/6/2013 9:49 πμ, Νικόλαος Κούρας wrote: On 12/6/2013 1:40 μμ, Νικόλαος Κούρας wrote: Thanks Steven , i made some alternations to the variables names and at the end of the way that i check a database filename against and hdd filename. Here is the code: #

Re: Wrong website loaded when other requested

2013-06-13 Thread Chris Angelico
On Fri, Jun 14, 2013 at 12:23 AM, Νικόλαος Κούρας wrote: > Please suggest something of why this happnes. You remind me of George. http://www.chroniclesofgeorge.com/ ChrisA -- http://mail.python.org/mailman/listinfo/python-list

Re: Wrong website loaded when other requested

2013-06-13 Thread Νικόλαος Κούρας
On 13/6/2013 9:41 πμ, Νικόλαος Κούρας wrote: On 12/6/2013 11:35 μμ, Joel Goldstick wrote: On Wed, Jun 12, 2013 at 1:33 PM, Νικόλαος Κούρας mailto:supp...@superhost.gr>> wrote: == RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^/?(.+\.html)

  1   2   >