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

2013-11-07 Thread Gregory Ewing
Mark Janssen wrote: Technically, the universe could expand temporarily or reconfigure to allow it; Oh, no! If Jonas ever succeeds in getting his algorithm to work, the Void will expand and swallow us all! http://en.wikipedia.org/wiki/The_Dreaming_Void -- Greg -- https://mail.python.org/mailma

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

2013-11-07 Thread Gregory Ewing
Steven D'Aprano wrote: Of course, to reverse the compression you need to keep a table of the prime numbers somewhere, That's not strictly necessary -- you could calculate them as needed. It wouldn't be *fast*, but it would work... You've got me thinking now about how viable a compression schem

Re: Show off your Python chops and compete with others

2013-11-07 Thread Omar Abou Mrad
On Thu, Nov 7, 2013 at 2:00 AM, Nathaniel Sokoll-Ward < nathanielsokollw...@gmail.com> wrote: > Thought this group would appreciate this: > www.metabright.com/challenges/python > > MetaBright makes skill assessments to measure how talented people are at > different skills. And recruiters use MetaB

Re: Show off your Python chops and compete with others

2013-11-07 Thread Gregory Ewing
alex23 wrote: In [2]: import dis In [3]: dis.dis(foo) 2 0 LOAD_GLOBAL 0 (Exception) 3 RAISE_VARARGS1 6 LOAD_CONST 0 (None) 9 RETURN_VALUE Seeing as we're being pedantic, the function *does* return None,

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

2013-11-07 Thread Steven D'Aprano
On Thu, 07 Nov 2013 18:25:18 -0800, jonas.thornvall wrote: > Please, you are he obnoxious, so fuck off Pot, meet kettle. > I am not sure if it is just stupidness or laziness that prevent you from > seeing that 4^8=65536. And what is it that prevents you from seeing that 4**8=65536 is irrelevan

Re: Show off your Python chops and compete with others

2013-11-07 Thread Steven D'Aprano
On Thu, 07 Nov 2013 22:05:14 -0600, Tim Chase wrote: > On 2013-11-07 21:18, Roy Smith wrote: >> It's not a shifting goalpost. My original statement was that: >> >> def foo(): >>raise Exception >> >> defines a function which 1) has no explicit return statement and 2) >> does not return None.

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

2013-11-07 Thread Steven D'Aprano
On Thu, 07 Nov 2013 18:43:17 -0800, Mark Janssen wrote: >>> 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 *any* number efficiently. Wh

Re: What to make of 'make test' for python3 install from source (beaglebone angstrom install).

2013-11-07 Thread Chris Angelico
On Fri, Nov 8, 2013 at 1:39 PM, Travis Griggs wrote: > I find this is a tricky topic to get help with. Most of the python > mailing list and irc channel is really about _python_ questions. Not the meta > aspect of building it. And the python-dev guys make it pretty clear (in a > nice way) that

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

2013-11-07 Thread Dave Angel
On Thu, 7 Nov 2013 18:43:17 -0800, Mark Janssen wrote: I think the idea would be to find the prime factorization for a given number, which has been proven to be available (and unique) for any and every number. Most numbers can compress given this technique. Prime numbers, of course, woul

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

2013-11-07 Thread Chris Angelico
On Fri, Nov 8, 2013 at 3:05 PM, R. Michael Weylandt wrote: > > > On Nov 7, 2013, at 22:24, Chris Angelico wrote: > >> On Fri, Nov 8, 2013 at 1:43 PM, R. Michael Weylandt >> wrote: >>> Chris's point is more subtle: the typical computer will store the number >>> 65536 in a single byte, but it w

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

2013-11-07 Thread R. Michael Weylandt
On Nov 7, 2013, at 22:24, Chris Angelico wrote: > On Fri, Nov 8, 2013 at 1:43 PM, R. Michael Weylandt > wrote: >> Chris's point is more subtle: the typical computer will store the number >> 65536 in a single byte, but it will also store 4 and 8 in one byte. > > Well, 65536 won't fit in a s

Re: Show off your Python chops and compete with others

2013-11-07 Thread Tim Chase
On 2013-11-07 21:18, Roy Smith wrote: > It's not a shifting goalpost. My original statement was that: > > def foo(): >raise Exception > > defines a function which 1) has no explicit return statement and 2) > does not return None. I stand by that statement. There is no > possible codepath,

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

2013-11-07 Thread iMath
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 = shell.SHGetDesktopFolder() shell

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

2013-11-07 Thread Chris Angelico
On Fri, Nov 8, 2013 at 1:43 PM, R. Michael Weylandt wrote: > Chris's point is more subtle: the typical computer will store the number > 65536 in a single byte, but it will also store 4 and 8 in one byte. So if > your choice is between sending "65536" and "(4,8)", you actually loose > efficienc

Re: What to make of 'make test' for python3 install from source (beaglebone angstrom install).

2013-11-07 Thread Ned Deily
In article , Travis Griggs wrote: > One part of the recommended install is to 'make test'. In a perfect world, I > guess everything would pass. Since I'm running an embedded linux, on an arm > processor, I kind of expect some issues. As the tests run, I see that there > are indeed some errors

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

2013-11-07 Thread Roy Smith
In article , Chris Angelico wrote: > 2) How do you factor large numbers efficiently? Trust me, if you've > solved this one, there are a *LOT* of people who want to know. People > with money, like Visa. Not to mention the NSA. -- https://mail.python.org/mailman/listinfo/python-list

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

2013-11-07 Thread Chris Angelico
On Fri, Nov 8, 2013 at 1:43 PM, Mark Janssen wrote: >>> 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 *any* number efficiently. What

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

2013-11-07 Thread Mark Janssen
>> 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 *any* number efficiently. What you've > proven is that a small subset of numbers can be r

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

2013-11-07 Thread R. Michael Weylandt
On Nov 7, 2013, at 21:25, jonas.thornv...@gmail.com wrote: > Den fredagen den 8:e november 2013 kl. 03:17:36 UTC+1 skrev Chris Angelico: >> On Fri, Nov 8, 2013 at 1:05 PM, wrote: >> >>> I guess what matter is how fast an algorithm can encode and decode a big >>> number, at least if you want

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

2013-11-07 Thread rusi
On Friday, November 8, 2013 7:55:18 AM UTC+5:30, jonas wrote: > Den fredagen den 8:e november 2013 kl. 03:17:36 UTC+1 skrev Chris Angelico: > > On Fri, Nov 8, 2013 at 1:05 PM, jonas.thornvall wrote: > > > I guess what matter is how fast an algorithm can encode and decode a big > > > number, at le

What to make of 'make test' for python3 install from source (beaglebone angstrom install).

2013-11-07 Thread Travis Griggs
After hints here and there from different channels, and a pretty good StackOverflow post on the subject, I've concluded that "out of the box", the install from source utilities don't really provide many hooks for making a "custom/minimal" install. Best bet is basically to do the standard install

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

2013-11-07 Thread Chris Angelico
On Fri, Nov 8, 2013 at 1:25 PM, wrote: > Please, you are he obnoxious, so fuck off or go learn about reformulation of > problems. Every number has an infinite number of arithmetical solutions. So > every number do has a shortest arithmetical encoding. And that is not the > hard part to figure

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

2013-11-07 Thread jonas . thornvall
Den fredagen den 8:e november 2013 kl. 03:17:36 UTC+1 skrev Chris Angelico: > On Fri, Nov 8, 2013 at 1:05 PM, wrote: > > > I guess what matter is how fast an algorithm can encode and decode a big > > number, at least if you want to use it for very big sets of random data, or > > losless video

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

2013-11-07 Thread Chris Angelico
On Fri, Nov 8, 2013 at 1:24 PM, Mark Janssen wrote: > On Thu, Nov 7, 2013 at 6:17 PM, Chris Angelico wrote: >> On Fri, Nov 8, 2013 at 1:05 PM, wrote: >>> I guess what matter is how fast an algorithm can encode and decode a big >>> number, at least if you want to use it for very big sets of ran

Re: Show off your Python chops and compete with others

2013-11-07 Thread Chris Angelico
On Fri, Nov 8, 2013 at 1:18 PM, Roy Smith wrote: > It's not a shifting goalpost. My original statement was that: > > def foo(): >raise Exception > > defines a function which 1) has no explicit return statement and 2) does > not return None. I stand by that statement. There is no possible >

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

2013-11-07 Thread Mark Janssen
On Thu, Nov 7, 2013 at 6:17 PM, Chris Angelico wrote: > On Fri, Nov 8, 2013 at 1:05 PM, wrote: >> I guess what matter is how fast an algorithm can encode and decode a big >> number, at least if you want to use it for very big sets of random data, or >> losless video compression? > > I don't ca

Re: Show off your Python chops and compete with others

2013-11-07 Thread Roy Smith
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 no explicit return statement and 2

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

2013-11-07 Thread Chris Angelico
On Fri, Nov 8, 2013 at 1:05 PM, wrote: > I guess what matter is how fast an algorithm can encode and decode a big > number, at least if you want to use it for very big sets of random data, or > losless video compression? I don't care how fast. I care about the laws of physics :) You can't stuf

PyDev 3.0 Released

2013-11-07 Thread flebber
I see the main difference between Liclipes and Eclipse+Pydev being lightweight and Loclipse preconfigured to a degree. Moving forward what advantages would I get by buying Liclipes over Eclipse? Sayh -- https://mail.python.org/mailman/listinfo/python-list

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

2013-11-07 Thread jonas . thornvall
Den torsdagen den 7:e november 2013 kl. 23:26:45 UTC+1 skrev Chris Angelico: > On Fri, Nov 8, 2013 at 5:59 AM, Mark Janssen > wrote: > > > I think the idea is that you could take any arbitrary input sequence, > > > view it as a large number, and then find what exponential equation can > > > pr

Re: Show off your Python chops and compete with others

2013-11-07 Thread alex23
On 8/11/2013 11:54 AM, Roy Smith wrote: Dead code doesn't count. Neither do shifting goalposts. -- https://mail.python.org/mailman/listinfo/python-list

Re: Show off your Python chops and compete with others

2013-11-07 Thread Roy Smith
In article , alex23 wrote: > On 8/11/2013 11:02 AM, Roy Smith wrote: > > Well, if you want to be truly pedantic about it (*), this defines a > > function without an explicit return and which does not return None: > > > > def foo(): > > raise Exception > > > In [2]: import dis > In [3]: dis

Re: Show off your Python chops and compete with others

2013-11-07 Thread alex23
On 8/11/2013 11:02 AM, Roy Smith wrote: Well, if you want to be truly pedantic about it (*), this defines a function without an explicit return and which does not return None: def foo(): raise Exception In [2]: import dis In [3]: dis.dis(foo) 2 0 LOAD_GLOBAL 0 (Ex

Re: To whoever hacked into my Database

2013-11-07 Thread alex23
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 that Nikos linked earlier) would norma

Re: To whoever hacked into my Database

2013-11-07 Thread Steve Simmons
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 installation on Nikos' system has become self-aware >and is actively obj

Re: To whoever hacked into my Database

2013-11-07 Thread ishish
Am 07.11.2013 21:29, schrieb Denis McMahon: On Thu, 07 Nov 2013 01:01:38 -0800, Ferrous Cranus wrote: Τη Πέμπτη, 7 Νοεμβρίου 2013 12:11:20 π.μ. UTC+2, ο χρήστης Mark Lawrence έγραψε: ... hope that this time she destroys ... So she is a SHE! How do you know that the person hacked into my D

Re: Show off your Python chops and compete with others

2013-11-07 Thread Roy Smith
In article , Alister wrote: > your sites answer is " defines a function that does nothing" > once you have defined the function try print (a(1,2,3)) > you will see that is does indeed return none, as do all functions without > an explicit return. Well, if you want to be truly pedantic about it

Re: Show off your Python chops and compete with others

2013-11-07 Thread 88888 Dihedral
On Friday, November 8, 2013 3:02:10 AM UTC+8, jsk...@gmail.com wrote: > We do not currently support cookieless or javascript-less browsing. We are > definitely looking at relying less and less on cookies, but it's unlikely > we'll ever be able to pull out javascript as it limits interactivity too

Re: To whoever hacked into my Database

2013-11-07 Thread Chris Angelico
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 business, but if you're running a business then you

Re: To whoever hacked into my Database

2013-11-07 Thread Νίκος Αλεξόπουλος
Στις 8/11/2013 1:18 πμ, ο/η Grant Edwards έγραψε: On 2013-11-07, ?? ?? wrote: 8/11/2013 1:04 , ??/?? Chris Angelico : On Fri, Nov 8, 2013 at 9:56 AM, ?? ?? wrote: Also i never claimed i was a professional cod

Re: To whoever hacked into my Database

2013-11-07 Thread Grant Edwards
On 2013-11-07, ?? ?? wrote: > 8/11/2013 1:04 , ??/?? Chris Angelico : >> On Fri, Nov 8, 2013 at 9:56 AM, ?? ?? >> wrote: >>> Also i never claimed i was a professional coder, > But my customers, If you have custom

Re: To whoever hacked into my Database

2013-11-07 Thread Νίκος Αλεξόπουλος
Στις 8/11/2013 1:04 πμ, ο/η Chris Angelico έγραψε: On Fri, Nov 8, 2013 at 9:56 AM, Νίκος Αλεξόπουλος wrote: Also i never claimed i was a professional coder, i am an amateur at a beginner level and i do it out of hobby. You've stated a number of times that your problems are critical because yo

Re: To whoever hacked into my Database

2013-11-07 Thread Chris Angelico
On Fri, Nov 8, 2013 at 9:56 AM, Νίκος Αλεξόπουλος wrote: > Also i never claimed i was a professional coder, i am an amateur at a > beginner level and i do it out of hobby. You've stated a number of times that your problems are critical because you're losing customers. In English, "professional" m

Re: To whoever hacked into my Database

2013-11-07 Thread Νίκος Αλεξόπουλος
Στις 8/11/2013 12:46 πμ, ο/η Tim Delaney έγραψε: On 8 November 2013 09:45, Tim Delaney mailto:timothy.c.dela...@gmail.com>> wrote: On 8 November 2013 09:18, Νίκος Αλεξόπουλος mailto:nikos.gr...@gmail.com>> wrote: I feel a bit proud because as it seems i have manages to secure

Re: Show off your Python chops and compete with others

2013-11-07 Thread Chris Angelico
On Fri, Nov 8, 2013 at 5:38 AM, Nathaniel Sokoll-Ward wrote: > Wow! Thanks for all the feedback everyone. This content is fresh so I > appreciate everyone's comments. As opposed to responding to each post > individually, I'll just lump everything in here... Best way, I think :) > I believe tha

Re: To whoever hacked into my Database

2013-11-07 Thread Tim Delaney
On 8 November 2013 09:45, Tim Delaney wrote: > On 8 November 2013 09:18, Νίκος Αλεξόπουλος wrote: > >> I feel a bit proud because as it seems i have manages to secure it more >> tight. All i need to do was to validate user input data, so the hacker >> won't be able again to pass bogus values to

Re: To whoever hacked into my Database

2013-11-07 Thread Tim Delaney
On 8 November 2013 09:18, Νίκος Αλεξόπουλος wrote: > I feel a bit proud because as it seems i have manages to secure it more > tight. All i need to do was to validate user input data, so the hacker > won't be able again to pass bogus values to specific variables that my > script was using. > So

Re: To whoever hacked into my Database

2013-11-07 Thread Νίκος Αλεξόπουλος
Στις 7/11/2013 11:29 μμ, ο/η Denis McMahon έγραψε: On Thu, 07 Nov 2013 01:01:38 -0800, Ferrous Cranus wrote: Τη Πέμπτη, 7 Νοεμβρίου 2013 12:11:20 π.μ. UTC+2, ο χρήστης Mark Lawrence έγραψε: ... hope that this time she destroys ... So she is a SHE! How do you know that the person hacked in

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

2013-11-07 Thread Chris Angelico
On Fri, Nov 8, 2013 at 5:59 AM, Mark Janssen wrote: > I think the idea is that you could take any arbitrary input sequence, > view it as a large number, and then find what exponential equation can > produce that result. The equation becomes the "compression". Interesting idea, but I don't see ho

Re: To whoever hacked into my Database

2013-11-07 Thread Νίκος Αλεξόπουλος
Στις 7/11/2013 11:45 μμ, ο/η Joel Goldstick έγραψε: 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

Re: To whoever hacked into my Database

2013-11-07 Thread Joel Goldstick
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 installation on Nikos' system has be

Re: To whoever hacked into my Database

2013-11-07 Thread Ian Kelly
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 installation on Nikos' system has become self-aware and is actively objecting to his code, I thi

Re: To whoever hacked into my Database

2013-11-07 Thread Denis McMahon
On Thu, 07 Nov 2013 01:01:38 -0800, Ferrous Cranus wrote: > Τη Πέμπτη, 7 Νοεμβρίου 2013 12:11:20 π.μ. UTC+2, ο χρήστης Mark Lawrence > έγραψε: >> ... hope that this time she destroys ... > So she is a SHE! How do you know that the person hacked into my DB is a > female? How do you know he isn't

Re: To whoever hacked into my Database

2013-11-07 Thread Denis McMahon
On Wed, 06 Nov 2013 10:34:34 -0500, Joel Goldstick wrote: >> Okey let the hacker try again to mess with my database!!! > Nothing like a good challenge. I think the hacker is a figment of Nick's imagination, or rather a consequence of his broken python code corrupting his data. -- Denis McMaho

Re: Accessing the Taskbar icons

2013-11-07 Thread Mark Lawrence
On 07/11/2013 18:15, Krishnan Shankar wrote: Hi All, I am automating an application in windows using python. After installation i need to check if the applications icon has appeared in Taskbar or not. If yes i need to right click the application. I had been using pywinauto for the same but cou

Re: Python 3.3.2 Shell Message‏

2013-11-07 Thread MRAB
On 07/11/2013 20:02, Bart Montgomery wrote: My thanks to Ned Deily for his timely response. IDLE is now stable, and I’m at the next step which is to run the file I created called hello.py. I get this message from the shell: Python 3.3.2 (v3.3.2:d047928ae3f6, May 13 2013, 13:52:24) [GCC 4.2.1 (A

Re: Immediate requirement - Sr. Business Analyst for Pricewaterhouse Coopers (PwC) in Tampa, FL.

2013-11-07 Thread Joel Goldstick
This message is even more offensive than it seems. I went to the website to write to their contact email address about this email. And that address fails. i...@svksystems.com On Thu, Nov 7, 2013 at 2:45 PM, wrote: > Hi, > > Immediate requirement - Sr. Business Analyst for Pricewaterhouse Co

Python 3.3.2 Shell Message‏

2013-11-07 Thread Bart Montgomery
My thanks to Ned Deily for his timely response. IDLE is now stable, and I’m at the next step which is to run the file I created called hello.py. I get this message from the shell: Python 3.3.2 (v3.3.2:d047928ae3f6, May 13 2013, 13:52:24) [GCC 4.2.1 (Apple Inc. build 5666) (d

Re: Immediate requirement - Sr. Business Analyst for Pricewaterhouse Coopers (PwC) in Tampa, FL.

2013-11-07 Thread unknown
On Thu, 07 Nov 2013 11:45:24 -0800, parker.svksystems wrote: > Hi, > > Immediate requirement - Sr. Business Analyst for Pricewaterhouse Coopers > (PwC) in Tampa, FL. > > Sr. Business Analyst – BA - # 900663 > > Start: Immediate Duration: 9 - 12 Months > > >

Re: Immediate requirement - Sr. Business Analyst for Pricewaterhouse Coopers (PwC) in Tampa, FL.

2013-11-07 Thread Chris “Kwpolska” Warrick
On Thu, Nov 7, 2013 at 8:45 PM, wrote: > Hi, > > Immediate requirement - Sr. Business Analyst for Pricewaterhouse Coopers > (PwC) in Tampa, FL. > [snip] > https://mail.python.org/mailman/listinfo/python-list This is a Python list. You ARE NOT hiring Python programmers. Moreover, this list/news

Immediate requirement - Sr. Business Analyst for Pricewaterhouse Coopers (PwC) in Tampa, FL.

2013-11-07 Thread parker . svksystems
Hi, Immediate requirement - Sr. Business Analyst for Pricewaterhouse Coopers (PwC) in Tampa, FL. Sr. Business Analyst – BA - # 900663 Start: Immediate Duration: 9 - 12 Months Here is the job description for the new position at PwC in Tampa, FL. This role

Re: Show off your Python chops and compete with others

2013-11-07 Thread Tim Chase
On 2013-11-07 11:02, jski...@gmail.com wrote: > it's unlikely we'll ever be able to pull out javascript as it > limits interactivity too much. It was mostly in jest as it's one of the things I test when doing web development. That said, the quizzes are mostly just HTML forms where you pick the an

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

2013-11-07 Thread Tim Roberts
Mark Janssen wrote: >>> Well let me try to explain why it is working and i have implemented one. >>> I only need to refresh my memory it was almost 15 years ago. >>> This is not the solution but this is why it is working. >>> 65536=256^2=16^4=***4^8***=2^16 >> >> I think the idea is that you could

Re: Show off your Python chops and compete with others

2013-11-07 Thread Alister
On Thu, 07 Nov 2013 10:38:40 -0800, Nathaniel Sokoll-Ward wrote: > Wow! Thanks for all the feedback everyone. This content is fresh so I > appreciate everyone's comments. As opposed to responding to each post > individually, I'll just lump everything in here... > > >> >> My answer: "Defines a fu

Re: Show off your Python chops and compete with others

2013-11-07 Thread jskirst
We do not currently support cookieless or javascript-less browsing. We are definitely looking at relying less and less on cookies, but it's unlikely we'll ever be able to pull out javascript as it limits interactivity too much. Its definitely possible to do, and maybe something we can look at in

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

2013-11-07 Thread Mark Janssen
>>Well let me try to explain why it is working and i have implemented one. >>I only need to refresh my memory it was almost 15 years ago. >>This is not the solution but this is why it is working. >>65536=256^2=16^4=***4^8***=2^16 > > All of those values are indeed the same, and yet that is complete

Re: Show off your Python chops and compete with others

2013-11-07 Thread Mark Lawrence
On 07/11/2013 18:38, Nathaniel Sokoll-Ward wrote: My answer: "Defines a function which returns None", but that isn't one of the choices. Roy, thanks for your note. When I run this code, the function just gets defined and nothing happens. None isn't returned. Do you recall why you found the o

Re: splitting file/content into lines based on regex termination

2013-11-07 Thread bruce
hi. thanks for the reply. tried what you suggested. what I see now, is that I print out the lines, but not the regex data at all. my initial try, gave me the line, and then the next items , followed by the next line, etc... what I then tried, was to do a capture/findall of the regex, and combine

Re: Show off your Python chops and compete with others

2013-11-07 Thread Nathaniel Sokoll-Ward
Wow! Thanks for all the feedback everyone. This content is fresh so I appreciate everyone's comments. As opposed to responding to each post individually, I'll just lump everything in here... Andrew, big thanks for your comments: > "What is the correct number of spaces for indentation in Python?

Re: To whoever hacked into my Database

2013-11-07 Thread MRAB
On 07/11/2013 18:11, Mark Lawrence wrote: On 07/11/2013 17:42, Νίκος Αλεξόπουλος wrote: Στις 7/11/2013 6:34 μμ, ο/η Mark Lawrence έγραψε: On 07/11/2013 13:47, Νίκος Αλεξόπουλος wrote: Στις 7/11/2013 11:31 πμ, ο/η Ferrous Cranus έγραψε: Τη Πέμπτη, 7 Νοεμβρίου 2013 11:15:02 π.μ. UTC+2, ο χρήστη

Re: Adding 'download' column to existing 'visitors' table (as requested)

2013-11-07 Thread Νίκος Αλεξόπουλος
Στις 7/11/2013 8:08 μμ, ο/η Neil Cerutti έγραψε: On 2013-11-07, ?? ?? wrote: I called you an idiot, because in your previous and current message you called me too. I know that splitting information across tables and maintain foreign keys for retain relationships bet

Re: Python 3.3.2 Shell Message

2013-11-07 Thread Ned Deily
In article , Bart Montgomery wrote: > I just starting out and am using the Python For Kids book. > I have an 2.4 GHz Intel Core 2 Duo iMac running OS X 10.6.8, and I¹m getting > this message when I open IDLE: Warning: The version of Tcl/Tk (8.5.7) in > use may be unstabl

Accessing the Taskbar icons

2013-11-07 Thread Krishnan Shankar
Hi All, I am automating an application in windows using python. After installation i need to check if the applications icon has appeared in Taskbar or not. If yes i need to right click the application. I had been using pywinauto for the same but could not get the job done till now. I did the fo

Re: splitting file/content into lines based on regex termination

2013-11-07 Thread MRAB
On 07/11/2013 17:45, bruce wrote: update... dat=re.compile("#(\d+) / (\d+)#(\d+)#").split(s) almost works.. except i get m = 10116#000#C S#S#100##001##DAY#Fund of Computing#Barrett, William#3#MWF#08:00am#08:50am#3718 HBLL m = 45 m = 58 m = 0 m = 10116#000#C S#S#100##002##DAY#Fund of Computi

Re: To whoever hacked into my Database

2013-11-07 Thread Mark Lawrence
On 07/11/2013 17:42, Νίκος Αλεξόπουλος wrote: Στις 7/11/2013 6:34 μμ, ο/η Mark Lawrence έγραψε: On 07/11/2013 13:47, Νίκος Αλεξόπουλος wrote: Στις 7/11/2013 11:31 πμ, ο/η Ferrous Cranus έγραψε: Τη Πέμπτη, 7 Νοεμβρίου 2013 11:15:02 π.μ. UTC+2, ο χρήστης Steve Simmons έγραψε: Please tell me yo

Re: Adding 'download' column to existing 'visitors' table (as requested)

2013-11-07 Thread Neil Cerutti
On 2013-11-07, ?? ?? wrote: > I called you an idiot, because in your previous and current > message you called me too. > > I know that splitting information across tables and maintain > foreign keys for retain relationships between them is a > necessary thing but in my

Re: Adding 'download' column to existing 'visitors' table (as requested)

2013-11-07 Thread Νίκος Αλεξόπουλος
Στις 7/11/2013 5:11 μμ, ο/η Joel Goldstick έγραψε: On Thu, Nov 7, 2013 at 9:37 AM, Chris Angelico wrote: On Fri, Nov 8, 2013 at 1:09 AM, Νίκος Αλεξόπουλος wrote: Why create a whole new 'downloads' table and associate it with the with a foreign key with the 'visitors' table you idiot when you

Re: To whoever hacked into my Database

2013-11-07 Thread Νίκος Αλεξόπουλος
Στις 7/11/2013 6:45 μμ, ο/η Joel Goldstick έγραψε: On Thu, Nov 7, 2013 at 11:34 AM, Mark Lawrence wrote: On 07/11/2013 13:47, Νίκος Αλεξόπουλος wrote: Στις 7/11/2013 11:31 πμ, ο/η Ferrous Cranus έγραψε: Τη Πέμπτη, 7 Νοεμβρίου 2013 11:15:02 π.μ. UTC+2, ο χρήστης Steve Simmons έγραψε: Pleas

Re: splitting file/content into lines based on regex termination

2013-11-07 Thread bruce
update... dat=re.compile("#(\d+) / (\d+)#(\d+)#").split(s) almost works.. except i get m = 10116#000#C S#S#100##001##DAY#Fund of Computing#Barrett, William#3#MWF#08:00am#08:50am#3718 HBLL m = 45 m = 58 m = 0 m = 10116#000#C S#S#100##002##DAY#Fund of Computing#Barrett, William#3#MWF#09:00am#09:

Re: To whoever hacked into my Database

2013-11-07 Thread Νίκος Αλεξόπουλος
Στις 7/11/2013 6:34 μμ, ο/η Mark Lawrence έγραψε: On 07/11/2013 13:47, Νίκος Αλεξόπουλος wrote: Στις 7/11/2013 11:31 πμ, ο/η Ferrous Cranus έγραψε: Τη Πέμπτη, 7 Νοεμβρίου 2013 11:15:02 π.μ. UTC+2, ο χρήστης Steve Simmons έγραψε: Please tell me you aren't storing details of customers and payme

Python 3.3.2 Shell Message

2013-11-07 Thread Bart Montgomery
I just starting out and am using the Python For Kids book. I have an 2.4 GHz Intel Core 2 Duo iMac running OS X 10.6.8, and I’m getting this message when I open IDLE: Warning: The version of Tcl/Tk (8.5.7) in use may be unstable. Visit http://www.python.org/download/mac/tclt

Re: Finance: Mean-Variance Efficient Frontier - Portfolio Optimization - Markowitz

2013-11-07 Thread Joel Goldstick
On Thu, Nov 7, 2013 at 12:01 PM, Davide Dalmasso wrote: > Hi, > is there anyone that have some reliable tool, package or website that can > help me to solve a financial portfolio optimization problem in Python? > Many thanks in advance > > Davide Dalmasso > -- > https://mail.python.org/mailman/li

splitting file/content into lines based on regex termination

2013-11-07 Thread bruce
hi. got a test file with the sample content listed below: the content is one long string, and needs to be split into separate lines I'm thinking the pattern to split on should be a kind of regex like:: #45 / 58#0# or #9 / 58#0 but i have no idea how to make this happen!! if i read the content i

Re: How to parse JSON passed on the command line?

2013-11-07 Thread donarb
On Wednesday, November 6, 2013 10:09:49 PM UTC-8, yupeng zhang wrote: > > Hi Anthony Papillion. > > I'm fresh to Python, but I do love its short simple and graceful. > I've solved your problem. You could try the code below: > > getargfromcli.py "\"{'url':'http://www.google.com'}\"" > > AS comma

Finance: Mean-Variance Efficient Frontier - Portfolio Optimization - Markowitz

2013-11-07 Thread Davide Dalmasso
Hi, is there anyone that have some reliable tool, package or website that can help me to solve a financial portfolio optimization problem in Python? Many thanks in advance Davide Dalmasso -- https://mail.python.org/mailman/listinfo/python-list

Re: Adding 'download' column to existing 'visitors' table (as requested)

2013-11-07 Thread Tim Chase
On 2013-11-07 17:03, Sibylle Koczian wrote: > > Nikos, you are an excellent member of the Greek society. > > Listening to you makes it so much easier to understand the > > problems that your country has. > > Is there any reason at all to insult all other Greek readers of > this newsgroup? Greec

Re: To whoever hacked into my Database

2013-11-07 Thread Joel Goldstick
On Thu, Nov 7, 2013 at 11:34 AM, Mark Lawrence wrote: > On 07/11/2013 13:47, Νίκος Αλεξόπουλος wrote: >> >> Στις 7/11/2013 11:31 πμ, ο/η Ferrous Cranus έγραψε: >>> >>> Τη Πέμπτη, 7 Νοεμβρίου 2013 11:15:02 π.μ. UTC+2, ο χρήστης Steve >>> Simmons έγραψε: >>> Please tell me you aren't storing de

Re: To whoever hacked into my Database

2013-11-07 Thread Mark Lawrence
On 07/11/2013 13:47, Νίκος Αλεξόπουλος wrote: Στις 7/11/2013 11:31 πμ, ο/η Ferrous Cranus έγραψε: Τη Πέμπτη, 7 Νοεμβρίου 2013 11:15:02 π.μ. UTC+2, ο χρήστης Steve Simmons έγραψε: Please tell me you aren't storing details of customers and payments on your Web > server. Oh but i do! I need th

Re: To whoever hacked into my Database

2013-11-07 Thread Mark Lawrence
On 07/11/2013 12:09, Tim Chase wrote: On 2013-11-06 23:06, Dennis Lee Bieber wrote: Waving red flags at female bulls is rarely dangerous. ;) though I still wouldn't recommend it if you're COWardly :-) Well, maybe the issue is MOOt. Ugh, if only these puns were like CALF-way funny... I he

Re: Adding 'download' column to existing 'visitors' table (as requested)

2013-11-07 Thread Sibylle Koczian
Am 07.11.2013 14:14, schrieb Piet van Oostrum: Nick the Gr33k writes: I have decided to take your advice. I wasn't able to fit those 'lists' of mine into MySQL's varchar() datatype after converting them to long strings and that sads me. My implementation is like the following. I do not use an

Re: Adding 'download' column to existing 'visitors' table (as requested)

2013-11-07 Thread Grant Edwards
On 2013-11-07, ?? ?? wrote: > [nothing my newsreader cared to keep] OK, so when posting a follow-up, Nikos is now putting his entire posting into his signature? This guy's a hoot-and-a-half! -- Grant Edwards grant.b.edwardsYow! Somewhere in Te

Re: To whoever hacked into my Database

2013-11-07 Thread Chris “Kwpolska” Warrick
On Thu, Nov 7, 2013 at 3:58 PM, Neil Cerutti wrote: > On 2013-11-07, Chris Angelico wrote: >> (Please don't start your text with a double-hyphen - that's a common >> convention for the start of your signature, and many people and UAs >> will ignore text after it.) > > It's '-- ', with a space aft

Re: Adding 'download' column to existing 'visitors' table (as requested)

2013-11-07 Thread Joel Goldstick
On Thu, Nov 7, 2013 at 9:37 AM, Chris Angelico wrote: > On Fri, Nov 8, 2013 at 1:09 AM, Νίκος Αλεξόπουλος > wrote: >> Why create a whole new 'downloads' table and associate it with the with a >> foreign key with the 'visitors' table you idiot when you can just have an >> extra column at the end

Re: To whoever hacked into my Database

2013-11-07 Thread Neil Cerutti
On 2013-11-07, Chris Angelico wrote: > On Fri, Nov 8, 2013 at 1:16 AM, ? ??? > wrote: >> 100 bucks per hour? Oh My, i cant afford this at all. >> All i can give is 20 euros for the conversions of the script to framework >> style. >> >> Its not like you are going to create the script

Re: Adding 'download' column to existing 'visitors' table (as requested)

2013-11-07 Thread Chris Angelico
On Fri, Nov 8, 2013 at 1:09 AM, Νίκος Αλεξόπουλος wrote: > Why create a whole new 'downloads' table and associate it with the with a > foreign key with the 'visitors' table you idiot when you can just have an > extra column at the end of the current 'visitor's table? > > Both 'downloader' and 'dow

Re: To whoever hacked into my Database

2013-11-07 Thread Chris Angelico
On Fri, Nov 8, 2013 at 1:16 AM, Νίκος Αλεξόπουλος wrote: > 100 bucks per hour? Oh My, i cant afford this at all. > All i can give is 20 euros for the conversions of the script to framework > style. > > Its not like you are going to create the script from scratch, you will just > need to modify it

Re: To whoever hacked into my Database

2013-11-07 Thread Νίκος Αλεξόπουλος
Στις 7/11/2013 3:59 μμ, ο/η Chris Angelico έγραψε: On Fri, Nov 8, 2013 at 12:46 AM, Νίκος Αλεξόπουλος wrote: How much will it cost to take to convert my current 'counters.py' script to a 'webpy' framework style? Please make a really good price. We are talking about a small script. My rates s

Re: Basic Python Questions - Oct. 31, 2013

2013-11-07 Thread 88888 Dihedral
On Tuesday, November 5, 2013 1:22:05 PM UTC+8, E.D.G. wrote: > "Jim Gibson" wrote in message > > news:031120131018099327%jimsgib...@gmail.com... > > > > > One way to generate plot within a CGI program is this: > > > >To start off with, I am not a CGI expert. Also, I have several

Re: Adding 'download' column to existing 'visitors' table (as requested)

2013-11-07 Thread Νίκος Αλεξόπουλος
Στις 7/11/2013 3:52 μμ, ο/η Joel Goldstick έγραψε: 2. the download is remained associated with the person that made the download since all this info is placed in the same record. just think, all those folks who figured out databases were wrong. Nikos has shown that you just need to put everythin

Re: To whoever hacked into my Database

2013-11-07 Thread Chris Angelico
On Fri, Nov 8, 2013 at 12:46 AM, Νίκος Αλεξόπουλος wrote: > How much will it cost to take to convert my current 'counters.py' script to > a 'webpy' framework style? > > Please make a really good price. > We are talking about a small script. My rates start at $100/hr and come with the requirement

  1   2   >