Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 6/11/2013 5:25 μμ, ο/η Νίκος Γκρ33κ έγραψε: Okey let the hacker try again to mess with my database!!! He is done it twice, lets see if he will make it again! I'am waiting! I'am pleased to see that various ppl have tried to mess my db by 1. submitted my webiste to netcraft.com for secuc

Re: To whoever hacked into my Database

2013-11-08 Thread Chris Angelico
On Fri, Nov 8, 2013 at 7:20 PM, Νίκος Αλεξόπουλος wrote: > Fortunately for me they have all failed. > That means that i have *actually* made security of my scripts stronger. > > Now whoever called me incompetent should think again before he accused me of > so. :-) https://en.wikipedia.org/wiki/Hu

Re: To whoever hacked into my Database

2013-11-08 Thread Larry Hudson
On 11/07/2013 03:32 PM, Chris Angelico wrote: On Fri, Nov 8, 2013 at 10:28 AM, Νίκος Αλεξόπουλος wrote: Also i don't have to explain my job or grant permission from Grant to start a business. I don't care if you think otherwise. You don't need Grant to grant permission for you to run a busine

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 8/11/2013 10:31 πμ, ο/η Chris Angelico έγραψε: On Fri, Nov 8, 2013 at 7:20 PM, Νίκος Αλεξόπουλος wrote: Fortunately for me they have all failed. That means that i have *actually* made security of my scripts stronger. Now whoever called me incompetent should think again before he accused m

Re: To whoever hacked into my Database

2013-11-08 Thread Mark Lawrence
On 07/11/2013 21:45, Joel Goldstick wrote: On Thu, Nov 7, 2013 at 4:39 PM, Ian Kelly wrote: On Thu, Nov 7, 2013 at 2:20 PM, Denis McMahon wrote: I think the hacker is a figment of Nick's imagination, or rather a consequence of his broken python code corrupting his data. Unless the Python in

Re: To whoever hacked into my Database

2013-11-08 Thread Mark Lawrence
On 07/11/2013 23:10, Νίκος Αλεξόπουλος wrote: I will improve on linux and python scripting over time, day by day No you won't!!! Everytime you're offered advice on best practice you state that you want to do it differently. -- Python is the second best programming language in the world

Re: To whoever hacked into my Database

2013-11-08 Thread Mark Lawrence
On 08/11/2013 08:59, Νίκος Αλεξόπουλος wrote: Στις 8/11/2013 10:31 πμ, ο/η Chris Angelico έγραψε: On Fri, Nov 8, 2013 at 7:20 PM, Νίκος Αλεξόπουλος wrote: Fortunately for me they have all failed. That means that i have *actually* made security of my scripts stronger. Now whoever called me inc

Re: To whoever hacked into my Database

2013-11-08 Thread Mark Lawrence
On 08/11/2013 01:32, alex23 wrote: On 8/11/2013 7:39 AM, Ian Kelly wrote: Unless the Python installation on Nikos' system has become self-aware and is actively objecting to his code, I think that messages like "Read a manual" and "Learn to code" inserted into a database (as seen in the images th

Re: Show off your Python chops and compete with others

2013-11-08 Thread Mark Lawrence
On 08/11/2013 02:18, Roy Smith wrote: In article , alex23 wrote: On 8/11/2013 11:54 AM, Roy Smith wrote: Dead code doesn't count. Neither do shifting goalposts. It's not a shifting goalpost. My original statement was that: def foo(): raise Exception defines a function which 1) has

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 8/11/2013 11:15 πμ, ο/η Mark Lawrence έγραψε: On 08/11/2013 01:32, alex23 wrote: On 8/11/2013 7:39 AM, Ian Kelly wrote: Unless the Python installation on Nikos' system has become self-aware and is actively objecting to his code, I think that messages like "Read a manual" and "Learn to code

Re: Algorithm that makes maximum compression of completly diffused data.

2013-11-08 Thread Chris Angelico
On Fri, Nov 8, 2013 at 6:09 PM, Gregory Ewing wrote: > You've got me thinking now about how viable a compression > scheme this would be, efficiency issues aside. I suppose > it would depend on things like the average density of primes > and the average number of prime factors a number has. > Any n

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 8/11/2013 11:19 πμ, ο/η Mark Lawrence έγραψε: On 08/11/2013 08:59, Νίκος Αλεξόπουλος wrote: Στις 8/11/2013 10:31 πμ, ο/η Chris Angelico έγραψε: On Fri, Nov 8, 2013 at 7:20 PM, Νίκος Αλεξόπουλος wrote: Fortunately for me they have all failed. That means that i have *actually* made securit

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 8/11/2013 11:19 πμ, ο/η Mark Lawrence έγραψε: On 08/11/2013 08:59, Νίκος Αλεξόπουλος wrote: Στις 8/11/2013 10:31 πμ, ο/η Chris Angelico έγραψε: On Fri, Nov 8, 2013 at 7:20 PM, Νίκος Αλεξόπουλος wrote: Fortunately for me they have all failed. That means that i have *actually* made securit

Re: pywin32 programming error on Win7 with shell.SHGetDesktopFolder, desktop.BindToObject, desktop.GetDisplayNameOf

2013-11-08 Thread Tim Golden
On 08/11/2013 03:30, iMath wrote: > > When running the following code on WinXP , all is fine , > -- > from win32com.shell import shell > > def launch_file_explorer(path, files): > > folder_pidl = shell.SHILCreateFromPath(path,0)[0]

Re: To whoever hacked into my Database

2013-11-08 Thread Chris Angelico
On Fri, Nov 8, 2013 at 8:34 PM, Νίκος Αλεξόπουλος wrote: > Στις 8/11/2013 11:15 πμ, ο/η Mark Lawrence έγραψε: >> Made my day :) > > And if you jump over a bridge it would make my day! Mar-Kal El-awrence! Able to leap tall bridges in a single bound, more powerful than a steaming (and fuming) Greek

Re: To whoever hacked into my Database

2013-11-08 Thread Mark Lawrence
On 08/11/2013 09:34, Νίκος Αλεξόπουλος wrote: Στις 8/11/2013 11:15 πμ, ο/η Mark Lawrence έγραψε: On 08/11/2013 01:32, alex23 wrote: On 8/11/2013 7:39 AM, Ian Kelly wrote: Unless the Python installation on Nikos' system has become self-aware and is actively objecting to his code, I think that m

Re: To whoever hacked into my Database

2013-11-08 Thread Mark Lawrence
On 08/11/2013 09:37, Νίκος Αλεξόπουλος wrote: You wouldn't be able to write the scripts i have written. All you do is criticize me, but you never ever have posted code to anything i have asked. Perhaps you can't even write a simpel script I may be drunk, Miss, but in the morning I will be sob

Re: To whoever hacked into my Database

2013-11-08 Thread Joel Goldstick
On Fri, Nov 8, 2013 at 4:58 AM, Mark Lawrence wrote: > On 08/11/2013 09:37, Νίκος Αλεξόπουλος wrote: >> >> >> You wouldn't be able to write the scripts i have written. >> All you do is criticize me, but you never ever have posted code to >> anything i have asked. >> >> Perhaps you can't even write

Re: To whoever hacked into my Database

2013-11-08 Thread Mark Lawrence
On 08/11/2013 09:39, Νίκος Αλεξόπουλος wrote: You wouldn't be able to write the scripts i have written. All you do is criticize me, but you never ever have posted code to anything i have asked. Perhaps you can't even write a simple script. That's again correct. Everytime a question gets aske

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 8/11/2013 11:52 πμ, ο/η Mark Lawrence έγραψε: On 08/11/2013 09:34, Νίκος Αλεξόπουλος wrote: Στις 8/11/2013 11:15 πμ, ο/η Mark Lawrence έγραψε: On 08/11/2013 01:32, alex23 wrote: On 8/11/2013 7:39 AM, Ian Kelly wrote: Unless the Python installation on Nikos' system has become self-aware a

Re: To whoever hacked into my Database

2013-11-08 Thread Mark Lawrence
On 08/11/2013 09:52, Chris Angelico wrote: On Fri, Nov 8, 2013 at 8:34 PM, Νίκος Αλεξόπουλος wrote: Στις 8/11/2013 11:15 πμ, ο/η Mark Lawrence έγραψε: Made my day :) And if you jump over a bridge it would make my day! Mar-Kal El-awrence! Able to leap tall bridges in a single bound, more po

Re: To whoever hacked into my Database

2013-11-08 Thread Chris Angelico
On Fri, Nov 8, 2013 at 9:00 PM, Mark Lawrence wrote: > On 08/11/2013 09:52, Chris Angelico wrote: >> Mar-Kal El-awrence! Able to leap tall bridges in a single bound, more >> powerful than a steaming (and fuming) Greek webmaster, the Man of >> Silicon, BREAMOREBOY! > > Thank you for shouting out th

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 8/11/2013 11:55 πμ, ο/η Mark Lawrence έγραψε: On 08/11/2013 09:39, Νίκος Αλεξόπουλος wrote: You wouldn't be able to write the scripts i have written. All you do is criticize me, but you never ever have posted code to anything i have asked. Perhaps you can't even write a simple script. T

Re: To whoever hacked into my Database

2013-11-08 Thread Chris Angelico
On Fri, Nov 8, 2013 at 9:05 PM, Νίκος Αλεξόπουλος wrote: > I never ignore advices. > I read all answers as carefully as i can. > But nevertheless sometimes i feel things should have been better implemented > using my way. > > Not of course that i know better, but thats better suited for me in the

Re: PyDev 3.0 Released

2013-11-08 Thread Fabio Zadrozny
Hi, What you get from LiClipse which you don't have on Eclipse+PyDev is: - Lightweight support for other languages (i.e.: there's an editor which provides highlighting, outline and other goodies which supports multiple languages such as Django Templates, Mako, Javascript, Html, etc. -- and it sho

Re: To whoever hacked into my Database

2013-11-08 Thread Maarten
On Friday, November 8, 2013 11:00:54 AM UTC+1, Ferrous Cranus wrote: > I have never exposed my client's data. Prove otherwise. 'Hackers' enter your database. How is that not exposing client's data? Or is this just your development machine? That would prove you learnt at least something here. J

Re: To whoever hacked into my Database

2013-11-08 Thread Tim Delaney
On 8 November 2013 21:00, Νίκος Αλεξόπουλος wrote: > I have never exposed my client's data. Prove otherwise. > https://mail.python.org/pipermail/python-list/2013-June/648550.html Or don't you consider giving the root password for a server containing client data to a complete stranger to be "exp

Re: To whoever hacked into my Database

2013-11-08 Thread Antoon Pardon
Op 08-11-13 11:05, Νίκος Αλεξόπουλος schreef: > > I never ignore advices. I doubt that. You have too often come back with the same question some time after it was answered a previous time for this to be credible. > I read all answers as carefully as i can. Then your reading skills leave much to

Re: To whoever hacked into my Database

2013-11-08 Thread Mark Lawrence
On 08/11/2013 10:00, Νίκος Αλεξόπουλος wrote: I have never exposed my client's data. Prove otherwise. If your site has successfully been hacked *TWICE* then by definition your clients data has been exposed. Didn't you also hand out your password, that's really secure, isn't it? The onl

Re: To whoever hacked into my Database

2013-11-08 Thread Mark Lawrence
On 08/11/2013 10:05, Νίκος Αλεξόπουλος wrote: I never ignore advices. I read all answers as carefully as i can. But nevertheless sometimes i feel things should have been better implemented using my way. The only relational database that has no relationships as effectively there's only one tab

Re: To whoever hacked into my Database

2013-11-08 Thread Mark Lawrence
On 08/11/2013 10:09, Chris Angelico wrote: On Fri, Nov 8, 2013 at 9:00 PM, Mark Lawrence wrote: On 08/11/2013 09:52, Chris Angelico wrote: Mar-Kal El-awrence! Able to leap tall bridges in a single bound, more powerful than a steaming (and fuming) Greek webmaster, the Man of Silicon, BREAMOREBO

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 8/11/2013 3:12 μμ, ο/η Tim Delaney έγραψε: On 8 November 2013 21:00, Νίκος Αλεξόπουλος mailto:nikos.gr...@gmail.com>> wrote: I have never exposed my client's data. Prove otherwise. https://mail.python.org/pipermail/python-list/2013-June/648550.html Or don't you consider giving the ro

Re: To whoever hacked into my Database

2013-11-08 Thread Antoon Pardon
Op 08-11-13 14:31, Mark Lawrence schreef: > On 08/11/2013 10:05, Νίκος Αλεξόπουλος wrote: >> >> I never ignore advices. >> I read all answers as carefully as i can. >> But nevertheless sometimes i feel things should have been better >> implemented using my way. > > The only relational database tha

Re: To whoever hacked into my Database

2013-11-08 Thread Antoon Pardon
Op 08-11-13 14:48, Νίκος Αλεξόπουλος schreef: > Στις 8/11/2013 3:12 μμ, ο/η Tim Delaney έγραψε: >> On 8 November 2013 21:00, Νίκος Αλεξόπουλος > > wrote: >> >> I have never exposed my client's data. Prove otherwise. >> >> >> https://mail.python.org/pipermail/python

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 8/11/2013 3:30 μμ, ο/η Mark Lawrence έγραψε: On 08/11/2013 10:00, Νίκος Αλεξόπουλος wrote: I have never exposed my client's data. Prove otherwise. If your site has successfully been hacked *TWICE* then by definition your clients data has been exposed. Didn't you also hand out your pass

Re: To whoever hacked into my Database

2013-11-08 Thread Mark Lawrence
On 08/11/2013 10:09, Chris Angelico wrote: On Fri, Nov 8, 2013 at 9:00 PM, Mark Lawrence wrote: On 08/11/2013 09:52, Chris Angelico wrote: Mar-Kal El-awrence! Able to leap tall bridges in a single bound, more powerful than a steaming (and fuming) Greek webmaster, the Man of Silicon, BREAMOREBO

Re: To whoever hacked into my Database

2013-11-08 Thread Aurélien DESBRIÈRES
Mark Lawrence writes: > On 08/11/2013 10:09, Chris Angelico wrote: >> On Fri, Nov 8, 2013 at 9:00 PM, Mark Lawrence >> wrote: >>> On 08/11/2013 09:52, Chris Angelico wrote: Mar-Kal El-awrence! Able to leap tall bridges in a single bound, more powerful than a steaming (and fuming) Gree

Re: To whoever hacked into my Database

2013-11-08 Thread Mark Lawrence
On 08/11/2013 13:57, Νίκος Αλεξόπουλος wrote: It was more of a supreise that it didn't return back any data. You're still surprised that *YOUR* crap code doesn't return data, funnier by the minute. "Here Nikos have some code and a database design that works". "No I'm doing it my way". Your

Talking to a 'C' program

2013-11-08 Thread John Pote
Hi all, I have the task of testing some embedded 'C' code for a small micro-controller. Thought it would be a good idea to test it on the PC first to make sure the algorithm is correct then perhaps test it on the controller via RS232 and an appropriate wrapper round the 'C' functions. On the P

Re: Talking to a 'C' program

2013-11-08 Thread Mark Barton
On 11/8/13 9:23 AM, John Pote wrote: Hi all, I have the task of testing some embedded 'C' code for a small micro-controller. Thought it would be a good idea to test it on the PC first to make sure the algorithm is correct then perhaps test it on the controller via RS232 and an appropriate wra

Re: To whoever hacked into my Database

2013-11-08 Thread Antoon Pardon
Op 08-11-13 14:57, Νίκος Αλεξόπουλος schreef: > Στις 8/11/2013 3:30 μμ, ο/η Mark Lawrence έγραψε: >> On 08/11/2013 10:00, Νίκος Αλεξόπουλος wrote: >>> >>> >>> I have never exposed my client's data. Prove otherwise. >> >> If your site has successfully been hacked *TWICE* then by definition >> your c

Re: Talking to a 'C' program

2013-11-08 Thread Mark Lawrence
On 08/11/2013 14:23, John Pote wrote: Hi all, Also as I don't have any microsoft offerings of a C compiler any suggestions as to a suitable C compiler for a PC appreciated as well. llvm? mingw? gcc? Thanks a lot everyone, John Visual Express C++ is fine, provided that its version matches yo

Re: Talking to a 'C' program

2013-11-08 Thread Grant Edwards
On 2013-11-08, John Pote wrote: > Hi all, > > I have the task of testing some embedded 'C' code for a small > micro-controller. Thought it would be a good idea to test it on the > PC first to make sure the algorithm is correct then perhaps test it > on the controller via RS232 and an appropriate w

Re: Talking to a 'C' program

2013-11-08 Thread Grant Edwards
On 2013-11-08, Oscar Benjamin wrote: > On 8 November 2013 14:23, John Pote wrote: >> Hi all, >> >> I have the task of testing some embedded 'C' code for a small >> micro-controller. Thought it would be a good idea to test it on the >> PC first to make sure the algorithm is correct then perhaps te

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 8/11/2013 4:02 μμ, ο/η Mark Lawrence έγραψε: On 08/11/2013 10:09, Chris Angelico wrote: On Fri, Nov 8, 2013 at 9:00 PM, Mark Lawrence wrote: On 08/11/2013 09:52, Chris Angelico wrote: Mar-Kal El-awrence! Able to leap tall bridges in a single bound, more powerful than a steaming (and fumi

Re: Talking to a 'C' program

2013-11-08 Thread Oscar Benjamin
On 8 November 2013 14:23, John Pote wrote: > Hi all, > > I have the task of testing some embedded 'C' code for a small > micro-controller. Thought it would be a good idea to test it on the PC first > to make sure the algorithm is correct then perhaps test it on the controller > via RS232 and an

Re: pywin32 programming error on Win7 with shell.SHGetDesktopFolder, desktop.BindToObject, desktop.GetDisplayNameOf

2013-11-08 Thread iMath
在 2013年11月8日星期五UTC+8下午5时47分43秒,Tim Golden写道: > On 08/11/2013 03:30, iMath wrote: > > > > > > When running the following code on WinXP , all is fine , > > > -- > > > from win32com.shell import shell > > > > > > def launch_file_explo

Re: pywin32 programming error on Win7 with shell.SHGetDesktopFolder, desktop.BindToObject, desktop.GetDisplayNameOf

2013-11-08 Thread iMath
在 2013年11月8日星期五UTC+8下午5时47分43秒,Tim Golden写道: > On 08/11/2013 03:30, iMath wrote: > > > > > > When running the following code on WinXP , all is fine , > > > -- > > > from win32com.shell import shell > > > > > > def launch_file_explo

Re: Algorithm that makes maximum compression of completly diffused data.

2013-11-08 Thread jonas . thornvall
Den fredagen den 8:e november 2013 kl. 03:43:17 UTC+1 skrev zipher: > >> I am not sure if it is just stupidness or laziness that prevent you from > >> seeing that 4^8=65536. > > > > > > I can see that 4^8 = 65536. Now how are you going to render 65537? You > > > claimed that you could render *a

Re: Algorithm that makes maximum compression of completly diffused data.

2013-11-08 Thread rusi
On Friday, November 8, 2013 9:18:05 PM UTC+5:30, jonas.t...@gmail.com wrote: > Den fredagen den 8:e november 2013 kl. 03:43:17 UTC+1 skrev zipher: > > >> I am not sure if it is just stupidness or laziness that prevent you from > > >> seeing that 4^8=65536. > > > I can see that 4^8 = 65536. Now how

Re: To whoever hacked into my Database

2013-11-08 Thread Mark Lawrence
On 08/11/2013 15:15, Νίκος Αλεξόπουλος wrote: Στις 8/11/2013 4:02 μμ, ο/η Mark Lawrence έγραψε: On 08/11/2013 10:09, Chris Angelico wrote: On Fri, Nov 8, 2013 at 9:00 PM, Mark Lawrence wrote: On 08/11/2013 09:52, Chris Angelico wrote: Mar-Kal El-awrence! Able to leap tall bridges in a single

Re: Talking to a 'C' program

2013-11-08 Thread John Pote
Thanks everyone for the advice, some good ideas to keep me busy. Will try and look at over weekend/next week as tied up the rest of today. I've used pyserial several times - many thanks to Chris Liechti for that module Hm must be loosing it, forgot about stdin/out! I've also used CUnit bef

Re: To whoever hacked into my Database

2013-11-08 Thread Antoon Pardon
Op 08-11-13 16:15, Νίκος Αλεξόπουλος schreef: > Στις 8/11/2013 4:02 μμ, ο/η Mark Lawrence έγραψε: >> On 08/11/2013 10:09, Chris Angelico wrote: >>> On Fri, Nov 8, 2013 at 9:00 PM, Mark Lawrence >>> wrote: On 08/11/2013 09:52, Chris Angelico wrote: > Mar-Kal El-awrence! Able to leap tall b

Re: To whoever hacked into my Database

2013-11-08 Thread unknown
> > You have demonstrated significant difficulties in social interaction and > behavior. Pot - Kettle -- https://mail.python.org/mailman/listinfo/python-list

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 8/11/2013 6:06 μμ, ο/η Mark Lawrence έγραψε: But let's not waste any more time on this. Please get back to checking your web site. She might have been hacking again. Or little fingers from one of my highly paid contractors might have been up to no good. Oh but I forgot, you've made it ha

Re: To whoever hacked into my Database

2013-11-08 Thread unknown
On Fri, 08 Nov 2013 18:28:39 +0200, Νίκος Αλεξόπουλος wrote: > Στις 8/11/2013 6:06 μμ, ο/η Mark Lawrence έγραψε: > >> But let's not waste any more time on this. Please get back to checking >> your web site. She might have been hacking again. Or little fingers >> from one of my highly paid cont

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 8/11/2013 6:48 μμ, ο/η unknown έγραψε: On Fri, 08 Nov 2013 18:28:39 +0200, Νίκος Αλεξόπουλος wrote: Στις 8/11/2013 6:06 μμ, ο/η Mark Lawrence έγραψε: But let's not waste any more time on this. Please get back to checking your web site. She might have been hacking again. Or little fing

Re: To whoever hacked into my Database

2013-11-08 Thread unknown
On Fri, 08 Nov 2013 18:57:21 +0200, Νίκος Αλεξόπουλος wrote: > Στις 8/11/2013 6:48 μμ, ο/η unknown έγραψε: >> On Fri, 08 Nov 2013 18:28:39 +0200, Νίκος Αλεξόπουλος wrote: >> >>> Στις 8/11/2013 6:06 μμ, ο/η Mark Lawrence έγραψε: >>> But let's not waste any more time on this. Please get back t

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 8/11/2013 7:01 μμ, ο/η unknown έγραψε: On Fri, 08 Nov 2013 18:57:21 +0200, Νίκος Αλεξόπουλος wrote: Στις 8/11/2013 6:48 μμ, ο/η unknown έγραψε: On Fri, 08 Nov 2013 18:28:39 +0200, Νίκος Αλεξόπουλος wrote: Στις 8/11/2013 6:06 μμ, ο/η Mark Lawrence έγραψε: But let's not waste any more t

Re: To whoever hacked into my Database

2013-11-08 Thread Joel Goldstick
On Fri, Nov 8, 2013 at 8:48 AM, Νίκος Αλεξόπουλος wrote: > Στις 8/11/2013 3:12 μμ, ο/η Tim Delaney έγραψε: >> >> On 8 November 2013 21:00, Νίκος Αλεξόπουλος > > wrote: >> >> I have never exposed my client's data. Prove otherwise. >> >> >> https://mail.python.org/p

Re: To whoever hacked into my Database

2013-11-08 Thread rurpy
On 11/08/2013 03:05 AM, Νίκος Αλεξόπουλος wrote: > I never ignore advices. > I read all answers as carefully as i can. > But nevertheless sometimes i feel things should have been better > implemented using my way. > > Not of course that i know better, but thats better suited for me in the > leve

Re: To whoever hacked into my Database

2013-11-08 Thread Joel Goldstick
twit is I think ok to say. The other word is pretty rude On Fri, Nov 8, 2013 at 12:09 PM, Νίκος Αλεξόπουλος wrote: > Στις 8/11/2013 7:01 μμ, ο/η unknown έγραψε: >> >> On Fri, 08 Nov 2013 18:57:21 +0200, Νίκος Αλεξόπουλος wrote: >> >>> Στις 8/11/2013 6:48 μμ, ο/η unknown έγραψε: On Fri,

Re: To whoever hacked into my Database

2013-11-08 Thread Ned Deily
Please! Everyone! Take this discussion elsewhere. It is way off-topic and the negative energy is damaging this forum for everyone else. "The Python Software Foundation and the global Python community welcome and encourage participation by everyone. Our community is based on mutual respect, t

OT: How to tell an HTTP client to limit parallel connections?

2013-11-08 Thread Grant Edwards
Yes, this off-topic, but after a fair amount of Googling and searching in the "right" places, I'm running out of ideas. I've got a very feeble web server. The crypto handshaking involved in opening an https: connection takes 2-3 seconds. That would be fine if a browser opened a single connection

Re: OT: How to tell an HTTP client to limit parallel connections?

2013-11-08 Thread donarb
On Friday, November 8, 2013 9:25:30 AM UTC-8, Grant Edwards wrote: > Yes, this off-topic, but after a fair amount of Googling and searching > in the "right" places, I'm running out of ideas. > > I've got a very feeble web server. The crypto handshaking involved in > opening an https: connection t

Re: OT: How to tell an HTTP client to limit parallel connections?

2013-11-08 Thread Skip Montanaro
> What I really need is an HTTP header or meta-tag or something that I > can use to tell clients to limit themselves to a single connection. > > I haven't been able to find such a thing, but I'm hoping I've > overlooked something... That will only go so far. Suppose you tell web browsers "no more

chunking a long string?

2013-11-08 Thread Roy Smith
I have a long string (several Mbytes). I want to iterate over it in manageable chunks (say, 1 kbyte each). For (a small) example, if I started with "this is a very long string", and I wanted 10 character chunks, I should get: "this is a " "very long " "string" This seems like something iterto

Re: pywin32 programming error on Win7 with shell.SHGetDesktopFolder, desktop.BindToObject, desktop.GetDisplayNameOf

2013-11-08 Thread MRAB
On 08/11/2013 03:30, iMath wrote: When running the following code on WinXP , all is fine , -- from win32com.shell import shell def launch_file_explorer(path, files): folder_pidl = shell.SHILCreateFromPath(path,0)[0] desktop

Re: chunking a long string?

2013-11-08 Thread Mark Lawrence
On 08/11/2013 17:48, Roy Smith wrote: I have a long string (several Mbytes). I want to iterate over it in manageable chunks (say, 1 kbyte each). For (a small) example, if I started with "this is a very long string", and I wanted 10 character chunks, I should get: "this is a" "very long" "str

Re: chunking a long string?

2013-11-08 Thread Peter Otten
Roy Smith wrote: > I have a long string (several Mbytes). I want to iterate over it in > manageable chunks (say, 1 kbyte each). For (a small) example, if I > started with "this is a very long string", and I wanted 10 character > chunks, I should get: > > "this is a " > "very long " > "string" >

Re: chunking a long string?

2013-11-08 Thread Skip Montanaro
> I have a long string (several Mbytes). I want to iterate over it in > manageable chunks (say, 1 kbyte each). You don't mention if the string is in memory or on disk. If it's in memory: >>> for i in range(0, len(s), 10): ... print repr(s[i:i+10]) ... 'this is a ' 'very long ' 'string' If yo

Re: OT: How to tell an HTTP client to limit parallel connections?

2013-11-08 Thread Grant Edwards
On 2013-11-08, Skip Montanaro wrote: >> What I really need is an HTTP header or meta-tag or something that I >> can use to tell clients to limit themselves to a single connection. >> >> I haven't been able to find such a thing, but I'm hoping I've >> overlooked something... > > That will only go s

RE: chunking a long string?

2013-11-08 Thread Nick Cash
> I have a long string (several Mbytes). I want to iterate over it in > manageable chunks This is a weirdly common question. See http://stackoverflow.com/questions/312443/how-do-you-split-a-list-into-evenly-sized-chunks-in-python for several solutions. It's been proposed to be added to iterto

Re: To whoever hacked into my Database

2013-11-08 Thread Chris Angelico
On Sat, Nov 9, 2013 at 4:11 AM, wrote: > On 11/08/2013 03:05 AM, Νίκος Αλεξόπουλος wrote: >> I never ignore advices. >> I read all answers as carefully as i can. >> But nevertheless sometimes i feel things should have been better >> implemented using my way. >> >> Not of course that i know better

Re: OT: How to tell an HTTP client to limit parallel connections?

2013-11-08 Thread Chris Angelico
On Sat, Nov 9, 2013 at 4:25 AM, Grant Edwards wrote: > I've got a very feeble web server. The crypto handshaking involved in > opening an https: connection takes 2-3 seconds. That would be fine if > a browser opened a single connection and then sent a series of > requests on that connection to l

Re: To whoever hacked into my Database

2013-11-08 Thread Denis McMahon
On Fri, 08 Nov 2013 01:28:19 +0200, Νίκος Αλεξόπουλος wrote: > If i was completely incompetent i wouldn't had a working website and i > wasn't able to design my customers' webpages. If your website is working, why do you keep posting here asking us how to fix it? -- Denis McMahon, denismfmcma.

Re: chunking a long string?

2013-11-08 Thread Zero Piraeus
: On Fri, Nov 08, 2013 at 12:48:12PM -0500, Roy Smith wrote: > I have a long string (several Mbytes). I want to iterate over it in > manageable chunks (say, 1 kbyte each). > > "this is a " > "very long " > "string" > > This seems like something itertools would do, but I don't see anything. You

Re: chunking a long string?

2013-11-08 Thread Roy Smith
Oh my, it turns out I don't really need to do this after all, due to previously undiscovered uber-coolness in the tools I'm using! My use case is that from inside of a Django view, I needed to retrieve a large file via a HTTP GET, and serve that back up, with some time delays inserted into the

Re: To whoever hacked into my Database

2013-11-08 Thread Denis McMahon
On Fri, 08 Nov 2013 01:10:37 +, Steve Simmons wrote: > I must say that I kinda like the idea of Nick's computer gagging on his > code and sending him messages pleading that he educated himself. It's a more likely scenario that Nick learning to code properly. -- Denis McMahon, denismfmcma...

Re: Algorithm that makes maximum compression of completly diffused data.

2013-11-08 Thread Ian Kelly
On Fri, Nov 8, 2013 at 8:48 AM, wrote: > 3^2-2^2=5 How do you intend to encode 3**2 - 2**2 in such a way that it is more compact than simply encoding 5? If you actually have an algorithm, you should share it instead of dropping these cryptic one-line non-explanations and leaving us guessing abo

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 8/11/2013 8:19 μμ, ο/η Denis McMahon έγραψε: On Fri, 08 Nov 2013 01:28:19 +0200, Νίκος Αλεξόπουλος wrote: If i was completely incompetent i wouldn't had a working website and i wasn't able to design my customers' webpages. If your website is working, why do you keep posting here asking u

Re: OT: How to tell an HTTP client to limit parallel connections?

2013-11-08 Thread Grant Edwards
On 2013-11-08, Chris Angelico wrote: > On Sat, Nov 9, 2013 at 4:25 AM, Grant Edwards wrote: >> I've got a very feeble web server. The crypto handshaking involved in >> opening an https: connection takes 2-3 seconds. That would be fine if >> a browser opened a single connection and then sent a s

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 8/11/2013 7:11 μμ, ο/η ru...@yahoo.com έγραψε: On 11/08/2013 03:05 AM, Νίκος Αλεξόπουλος wrote: I never ignore advices. I read all answers as carefully as i can. But nevertheless sometimes i feel things should have been better implemented using my way. Not of course that i know better, but

Count each unique element in list of lists

2013-11-08 Thread Yaşar Arabacı
Hi, I have a function that returns something like this; [[[1, 5, 9], [2, 6, 7], [3, 4, 8]], [[1, 6, 8], [2, 4, 9], [3, 5, 7]]] It is a list of list of lists. Each uppermost list is called a result. I want to write a code that shows that each elem in sublists of result on appears once in whole su

Automate Google Drive SDK Authorization

2013-11-08 Thread Pratik Mehta
Guys, I am stuck with a problem. #!/usr/bin/python import httplib2 import pprint from apiclient.discovery import build from apiclient.http import MediaFileUpload from oauth2client.client import OAuth2WebServerFlow # Copy your credentials from the co

Re: Count each unique element in list of lists

2013-11-08 Thread yasar11732
This works; >>> for result in results: flat = list(item for group in result for item in group) print [sum([1 for el in flat if el==current]) for current in flat] [1, 1, 1, 1, 1, 1, 1, 1, 1] [1, 1, 1, 1, 1, 1, 1, 1, 1] But I am still open to suggestions if anyone thinks t

Re: Count each unique element in list of lists

2013-11-08 Thread Chris Angelico
On Sat, Nov 9, 2013 at 6:28 AM, Yaşar Arabacı wrote: > I want to write a code that > shows that each elem in sublists of result on appears once in whole > sublist in order to add it to > my doctest. So, to clarify the problem: You want to ensure that every element occurs exactly once, neither mor

Re: OT: How to tell an HTTP client to limit parallel connections?

2013-11-08 Thread Chris Angelico
On Sat, Nov 9, 2013 at 6:20 AM, Grant Edwards wrote: > On 2013-11-08, Chris Angelico wrote: >> Are you using HTTP 1.1 with connection reuse? > > Yes. And several years ago when I first enabled that feature in the > server, I verified that some browsers were sending multiple requests > per connec

RE: How to tell an HTTP client to limit parallel connections?

2013-11-08 Thread Nick Cash
>What I really need is an HTTP header or meta-tag or something that I can use >to tell clients to limit themselves to a single connection. I don't think such a thing exists... but you may be able to solve this creatively: A) Set up a proxy server that multiplexes all of the connections into a s

Re: OT: How to tell an HTTP client to limit parallel connections?

2013-11-08 Thread Ian Kelly
On Fri, Nov 8, 2013 at 10:25 AM, Grant Edwards wrote: > Yes, this off-topic, but after a fair amount of Googling and searching > in the "right" places, I'm running out of ideas. > > I've got a very feeble web server. The crypto handshaking involved in > opening an https: connection takes 2-3 seco

Code with random module faster on the vm than the vm host...

2013-11-08 Thread Pascal Bit
Here's the code: from random import random from time import clock s = clock() for i in (1, 2, 3, 6, 8): M = 0 N = 10**i for n in xrange(N): r = random() if 0.5 < r < 0.6: M += 1 k = (N, float(M)/N) print (clock()-s) Running on win7 python 2.7 32 b

Programa no modo gráfico

2013-11-08 Thread Guitar Men
Como faço para fazer um programa no modo gráfico sem usar o prompt? -- https://mail.python.org/mailman/listinfo/python-list

Twisted 13.2.0 Release Announcement

2013-11-08 Thread HawkOwl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On behalf of Twisted Matrix Laboratories, I am honoured to announce the release of Twisted 13.2! The highlights of this release are: * Twisted now includes a HostnameEndpoint implementation which uses IPv4 and IPv6 in parallel, speeding up the conne

Re: To whoever hacked into my Database

2013-11-08 Thread Antoon Pardon
Op 08-11-13 18:26, Ned Deily schreef: > Please! Everyone! Take this discussion elsewhere. It is way off-topic and > the negative energy is damaging this forum for everyone else. > > "The Python Software Foundation and the global Python community welcome and > encourage participation by everyo

Re: To whoever hacked into my Database

2013-11-08 Thread Neil Cerutti
On 2013-11-08, ru...@yahoo.com wrote: > Just wanted to let you know that not everybody here is an > asshole. It is just that assholes, by their nature, are the > loudest. Hey man, pass that over! -- Neil Cerutti -- https://mail.python.org/mailman/listinfo/python-list

Re: Programa no modo gráfico

2013-11-08 Thread Chris Angelico
2013/11/9 Guitar Men : > Como faço para fazer um programa no modo gráfico sem usar o prompt? My apologies, I don't speak Portuguese. Hopefully you can use an automated translation tool to understand this. On Windows, you can run a program with pythonw.exe rather than python.exe to hide the conso

Re: Programa no modo gráfico

2013-11-08 Thread Izar Tarandach
You can find many resources for GUI programming in Python here: https://wiki.python.org/moin/GuiProgramming I believe you'll have better results with this list if you post your queries in English. --izar 2013/11/8 Guitar Men > Como faço para fazer um programa no modo gráfico sem usar o prom

Re: chunking a long string?

2013-11-08 Thread wxjmfauth
"(say, 1 kbyte each)": one "kilo" of characters or bytes? Glad to read some users are still living in an ascii world, at the "Unicode time" where an encoded code point size may vary between 1-4 bytes. Oops, sorry, I'm wrong, it can be much more. >>> sys.getsizeof('ab') 27 >>> sys.getsizeof('a\

Re: OT: How to tell an HTTP client to limit parallel connections?

2013-11-08 Thread Grant Edwards
On 2013-11-08, Chris Angelico wrote: > On Sat, Nov 9, 2013 at 6:20 AM, Grant Edwards wrote: >> On 2013-11-08, Chris Angelico wrote: >>> Are you using HTTP 1.1 with connection reuse? >> >> Yes. And several years ago when I first enabled that feature in the >> server, I verified that some browser

Re: chunking a long string?

2013-11-08 Thread Chris Angelico
On Sat, Nov 9, 2013 at 7:43 AM, wrote: > Oops, sorry, I'm wrong, it can be much more. > sys.getsizeof('ab') > 27 sys.getsizeof('a\U0001d11e') > 48 I know, overhead sucks doesn't it. Python is really abysmal at that; look how big a single bit is: >>> sys.getsizeof(1) 14 >>> sys.ge

  1   2   >