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

2013-11-07 Thread Tim Roberts
jonas.thornv...@gmail.com 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

All of those values are indeed the same, and yet that is completely
unrelated to compression.  Did you honestly believe this was actually
explaining anything?

Yes i am aware that 256 is a single byte 8 bits, but the approach is valid 
anyway.

This whole post is a most amazing collection of non sequiturs.  If you
would like to describe your compression scheme, there really are people
here who would be interested in reading it (although that number gets less
and less as this thread goes on).
-- 
Tim Roberts, t...@probo.com
Providenza  Boekelheide, Inc.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: To whoever hacked into my Database

2013-11-07 Thread Ferrous Cranus
Τη Πέμπτη, 7 Νοεμβρίου 2013 12:11:20 π.μ. UTC+2, ο χρήστης Mark Lawrence έγραψε:
 On 06/11/2013 21:26, Νίκος Γκρ33κ wrote:
 
  Στις 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!
 
 
 
  No luck yet mighty one? :)
 
 
 
 So you're proud of the fact that you've only been hacked twice (that you 
 
 know of)?  You think you've prevented this happening again.  Pride comes 
 
 before a fall!  Unfortunately for you I suspect that you've so irritated 
 
 someone here by your behaviour that your latest comment is like waving a 
 
 red flag at a bull.  I sincerely hope that this time she destroys your 
 
 site, as it seems likely that this is the only way in which you will 
 
 learn.  Cruel to be kind.

So she is a SHE! How do you know that the person hacked into my DB is a female?

As for the state of my databases:

1. Hacker wasnt able to mess with my first database so to add bogus webpages 
into it as it can be seen from here:  http://superhost.gr/?show=stats

2. Unfortunately though he did manage to add arbitrary information to my other 
database that i store my clients, the tasks i made for them and the payment.

Well done i have to say! but i think i know how she(if indeed a female) did it.

I think i can prevent this for happening again as i did with (1)
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: To whoever hacked into my Database

2013-11-07 Thread Ferrous Cranus
Here is the proof of the hacking into my clients database:

http://i.imgur.com/5ErmFlI.png
http://i.imgur.com/3u7At55.png

But i just changes something in my script's code and she will not be 
successful on doing that again, i like to believe :)
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: To whoever hacked into my Database

2013-11-07 Thread Steve Simmons
Ferrous Cranus nikos.gr...@gmail.com wrote:
Τη Πέμπτη, 7 Νοεμβρίου 2013 12:11:20 π.μ. UTC+2, ο χρήστης Mark
Lawrence έγραψε:
 On 06/11/2013 21:26, Νίκος Γκρ33κ wrote:
 
  Στις 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!
 
 
 
  No luck yet mighty one? :)
 
 
 
 So you're proud of the fact that you've only been hacked twice (that
you 
 
 know of)?  You think you've prevented this happening again.  Pride
comes 
 
 before a fall!  Unfortunately for you I suspect that you've so
irritated 
 
 someone here by your behaviour that your latest comment is like
waving a 
 
 red flag at a bull.  I sincerely hope that this time she destroys
your 
 
 site, as it seems likely that this is the only way in which you will 
 
 learn.  Cruel to be kind.

So she is a SHE! How do you know that the person hacked into my DB is a
female?

As for the state of my databases:

1. Hacker wasnt able to mess with my first database so to add bogus
webpages into it as it can be seen from here: 
http://superhost.gr/?show=stats

2. Unfortunately though he did manage to add arbitrary information to
my other database that i store my clients, the tasks i made for them
and the payment.

Well done i have to say! but i think i know how she(if indeed a female)
did it.

I think i can prevent this for happening again as i did with (1)
-- 
https://mail.python.org/mailman/listinfo/python-list

Really? REALLY? ??? 
Please tell me you aren't storing details of customers and payments on your Web 
server. 
I thought we had heard the worst of you but you just keep it coming. 

SteveS

Sent from a Galaxy far far away-- 
https://mail.python.org/mailman/listinfo/python-list


Re: To whoever hacked into my Database

2013-11-07 Thread Jussi Piitulainen
Ferrous Cranus writes:

 Here is the proof of the hacking into my clients database:
 
 http://i.imgur.com/5ErmFlI.png
 http://i.imgur.com/3u7At55.png
 
 But i just changes something in my script's code and she will not
 be successful on doing that again, i like to believe :)

Greek appears to have gendered personal pronouns even in plural. Is it
so that a group of people is marked as masculine if it is not known
(or stereotypical) that none of them is male? Or can the neutral
pronouns be used of people? Just wondering.

http://www.foundalis.com/lan/perspron.htm

English has developed a number of ways to refer to people of unknown
sex. One of these is the use of she as here. It doesn't indicate any
specific knowledge about the person in question. It indicates that the
speaker (writer) chose to acknowledge the existence and relevance of
women.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: To whoever hacked into my Database

2013-11-07 Thread Alister
On Thu, 07 Nov 2013 01:31:17 -0800, Ferrous Cranus wrote:

 Τη Πέμπτη, 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 this information to be accessible ONLY FOR ME via my website
 'http://superhost.gr' i just need to secure it more tight.

Nicos, You do realise that at some point YOU are going to end up in gaol 
unless you remove this site from the internet  get some professional 
help in implementing it correctly.


-- 
Don't let go of what you've got hold of, until you have hold of something 
else.
-- First Rule of Wing Walking
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Help with my programming homework (python, and raptor)

2013-11-07 Thread Alister
On Thu, 07 Nov 2013 12:07:06 +1100, Chris Angelico wrote:

 On Thu, Nov 7, 2013 at 11:56 AM, jonny seelye casiobo...@gmail.com
 wrote:
 Employee Salaries Use the following test data to test your program.
 Employee Name   Salary John$45,600 Average Salary: $63,
 862.50 Sue $55,400 Highest Salary: $89,750 David   $64,700 
Lowest Salary:  $45,600 Betty   $89,750
 
 We're not a do your homework for you list. Start by writing as much as
 you can yourself, then figure out exactly where you're stuck and ask a
 specific question. We're happy to help you learn Python - that's the
 future of programming anyway - and so we will not help you to not-learn
 Python by getting someone else to do your work. Nobody here wants to
 turn you into a course-qualified but utterly incompetent programmer :)
 
 ChrisA

If you are totally unsure where to start try blocking out the flow of the 
process in simple sentences  post that.
we can then advise if the process is correct  suggest improvements.

 



-- 
Lord, defend me from my friends; I can account for my enemies.
-- Charles D'Hericault
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Unlimited canvas painting program

2013-11-07 Thread Albert van der Horst
In article mailman.1477.1382644948.18130.python-l...@python.org,
MRAB  python-list@python.org wrote:
On 24/10/2013 20:32, markot...@gmail.com wrote:
 So, i`ll take the canvas, somekind of mouse tracker, for each mouse
 location il draw a dot or 2X2 square or something. Main thing i have
 never understood, is how can i get the backround to move.

 Lets say ia hve 200X200 window. In the middle of it is the cursor
 that draws. If i move the mouse the cursor doesent move, but the
 canvas moves. So if i move mouse to the left, i get a line that goes
 to the left. So i probably must invert the canvas movement. If mouse
 goes left, canvas goes right.

 And if possible i would like to save my piece of art aswell :D

I think it'll be confusing because it goes against how every other
program does it!

In a painting program you can point to other things, such as tools, but
if the cursor never moves...

It would be simpler, IMHO, if you just moved the canvas and stopped the
cursor going off the canvas when the user is drawing near the edge, so
that the user doesn't need to stop drawing in order to expose more of
the canvas.

A trick that is used in the editor I'm currently using is to do
normal cursor movement, until you are within a certain range from
the border. At that point you move the window over the canvas
in order to keep the cursor in the middle part of the canvas.
This can be done in discrete steps, and is not too disruptive.
Even if you do it continuously, it is more intuitive (but functionally
equivalent to) keeping the cursor in the middle.

A problem that remains is that a mouse is not intended for an infinite
canvas. At some point you will have to lift it and place it back on the
pad.

Groetjes Albert
-- 
Albert van der Horst, UTRECHT,THE NETHERLANDS
Economic growth -- being exponential -- ultimately falters.
albert@spearc.xs4all.nl =n http://home.hccnet.nl/a.w.m.van.der.horst

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: To whoever hacked into my Database

2013-11-07 Thread Tim Chase
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 hereby profoundly apologise to the entire list for having set
 Mr. Edwards, Mr. Chase and Mr. Angelico down this path.
 
   Ve'al forgive you...

I have a real beef with your puns.

-tkc

PS: our 4yo's favorite joke these days:
  Q: Why does Fozzie Bear find Spanish cows so funny?
  A: vaca, vaca, vaca!



-- 
https://mail.python.org/mailman/listinfo/python-list


Re: To whoever hacked into my Database

2013-11-07 Thread bob gailer

This is getting udderly ridiculous. Let's leave veal enough a loin.

BTW what did the termite say when he entered the tavern?

--
Bob Gailer
919-636-4239
Chapel Hill NC

--
https://mail.python.org/mailman/listinfo/python-list


PyDev 3.0 Released

2013-11-07 Thread Fabio Zadrozny
Hi All,

PyDev 3.0 has been released

Details on PyDev: http://pydev.org

Details on its development: http://pydev.blogspot.com

LiClipse (PyDev standalone with goodies such as support for Django
Templates, Mako Templates, Html, Javascript, etc):
http://brainwy.github.io/liclipse/


Release Highlights:
---

* From now on, PyDev requires Eclipse 3.7 or 4.3 onwards and Java 7! For
older versions, keep using PyDev 2.x.

* Interpreter is now kept up to date with changes to the interpreter, so,
pip-installing packages will automatically update internal caches without
requiring a manual step.

* Fixed issue connecting to shell for code-completion (which could halt the
IDE).

* Interactive Console (patches by Jonah Graham)

* IPython 1.0 is now supported.

* Computational Crystallography Toolbox (CCTBX:
http://cctbx.sourceforge.net/) can now be used with PyDev.

* Debug support in interactive console (must be enabled in preferences).

* User Module Deleter (UMD): forcefully reloads user-loaded modules
when using runfile on interactive console (must be enabled in preferences).

* GUI event loop integration: more backends are now supported and can
be configured in the preferences.

* %gui provides customization for the gui event loop integration (i.e.:
%gui wx enables wxPython integration).

* %edit on IPython will open the file in the PyDev editor.

* History of commands is now saved to a persistent file.

* Loading of history is faster.

* Interpreter configuration (patches by Andrew Ferrazzutti)

* Interpreter configuration quick auto-config: automatically finds a
Python installed and configures it.

* Interpreter configuration advanced auto-config: searches for multiple
Python installations in the computer and allows selecting one to configure.

* Source folders (PYTHONPATH) are kept updated on renames and moves in
the PyDev package explorer.

* Grammar 3.x accepts u'str'.

* Fixed project configuration ${PROJECT_DIR_NAME} variable to point to dir
name inside Eclipse and not the folder name in filesystem (this could make
PyDev miss folders in the project PYTHONPATH).

* Debugger:

* Breakpoints working on files with unicode chars.

* patches by Jonah Graham:

* Variables can be pretty-printed with right-click  pretty print.

* Improved handling for numpy.ndarrays.

* And as usual, many other bugfixes!

What is PyDev?
---

PyDev is a plugin that enables users to use Eclipse for Python, Jython and
IronPython development -- making Eclipse a first class Python IDE -- It
comes with many goodies such as code completion, syntax highlighting,
syntax analysis, refactor, debug and many others.


Cheers,

--
Fabio Zadrozny
--
Software Developer

LiClipse
http://brainwy.github.io/liclipse

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Unlimited canvas painting program

2013-11-07 Thread Chris Angelico
On Thu, Nov 7, 2013 at 10:30 PM, Albert van der Horst
alb...@spenarnc.xs4all.nl wrote:
 A problem that remains is that a mouse is not intended for an infinite
 canvas. At some point you will have to lift it and place it back on the
 pad.

Only if you're talking about the physical grasp mouse, which is
probably the most common household mouse, or the touchpad, probably
the next most common. With a stick mouse (IBM calls it a TrackPoint),
you can carry on to infinity; same with a roller ball. But yes, a lot
of mouse designs aren't built for infinity.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Help me with this code

2013-11-07 Thread Piet van Oostrum
chovd...@gmail.com writes:


 Hi friends

 help me with the following code. Im able to execute the code but getting 
 wrong output

 def sequence_b(N):
 N = 10
 result = 0
 for k in xrange (1,N):
 result  +=  ((-1) ** (k+1))/2*k-1
 print result
 print sequence_b(10)

 This is the output which im getting
 -1
 -4
 -5
 -10
 -11
 -18
 -19
 -28
 -29


 But i want output as
 1
 -1/3
 1/5
 -1/7
 1/9
 -1/11
 1/13
 -1/15
 1/17
 -1/19

You probably want this:

N = 10
result = 0
for k in range (1,N):
step = ((-1)**(k+1))/(2*k-1)
result += step
print(step)

Note: 
1. You don't use the parameter N, you immediately change it to 10. Leave the 
line N = 10 out.
2. Your function doesn't return its result, so it returns None. So the print 
sequence_b(10) dosn't make sense.
If the print is only for debugging the use the following:

def sequence_b(N):
result = 0
for k in range (1,N):
step = ((-1)**(k+1))/(2*k-1)
print(step) ## debug output
result += step
return result

print(sequence_b(10)) # print the result of the function call

[I use print() because I use Python 3]
-- 
Piet van Oostrum p...@vanoostrum.org
WWW: http://pietvanoostrum.com/
PGP key: [8DAE142BE17999C4]
-- 
https://mail.python.org/mailman/listinfo/python-list


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

2013-11-07 Thread Piet van Oostrum
Nick the Gr33k nikos.gr...@gmail.com 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 extra table of downlaods that i asoociate with table
 visitors with a foreing key but decided to add an additional 'download'
 column into the existant visitors table:

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.
-- 
Piet van Oostrum p...@vanoostrum.org
WWW: http://pietvanoostrum.com/
PGP key: [8DAE142BE17999C4]
-- 
https://mail.python.org/mailman/listinfo/python-list


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

2013-11-07 Thread Νίκος Αλεξόπουλος

Στις 6/11/2013 7:59 μμ, ο/η Denis McMahon έγραψε:

On Wed, 06 Nov 2013 09:30:03 +0200, Nick the Gr33k wrote:


I have decided to take your advice.


No you haven't. You only think you have, but really you either haven't
understood the advice at all.


My implementation is like the following.
I do not use an extra table of downlaods that i asoociate with table
visitors with a foreing key but decided to add an additional 'download'
column into the existant visitors table:


No no no no no no no no no no nononononono no!

That's *NOT* the right way to do it.

And this is where I finally and terminally give up trying to help you.
I've had enough. You refuse to learn the right way to do it. You won't
listen to the opinions and suggestions of people with a great deal more
experience than you have in such matters. It's not going to work properly
in the end. I refuse to be associated with it any further.




--
Denis, you may choose to not help any further, thats acceptable as you 
personal choice.


I have to inform you though that my solution of adding an extra 
'download' column in my 'visitors' table has the benefits of


1. refrain me for creating one more table
2. the download is remained associated with the person that made the 
download since all this info is placed in the same record.


My solution works just fine and is giving no problems.
I cant overcome the urge though to try to use some database that can 
hold lists to a single

--
https://mail.python.org/mailman/listinfo/python-list


Re: To whoever hacked into my Database

2013-11-07 Thread Neil Cerutti
On 2013-11-06, Chris Angelico ros...@gmail.com wrote:
 On Thu, Nov 7, 2013 at 9:34 AM, Tim Chase python.l...@tim.thechases.com 
 wrote:
 On 2013-11-06 22:22, Grant Edwards 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...

 *dives for cover*

Phew! I can't stomach stomach stomach this digression.

-- 
Neil Cerutti
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: i want to know about python language

2013-11-07 Thread William Ray Wing
On Nov 7, 2013, at 1:51 AM, Kewl p kewlp...@gmail.com wrote:

 On Thursday, November 7, 2013 8:48:26 AM UTC+5:30, Kewl p wrote:
 h
 
 can i get link of a ide in which python can run,,...??
 -- 
 https://mail.python.org/mailman/listinfo/python-list

There are actually almost too many.  Googling for Python IDE will get you a 
long list of hits to articles.

You could start here:  
http://stackoverflow.com/questions/81584/what-ide-to-use-for-python

And spend several hours reading some of the other links you will get from 
Google.

-Bill
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: To whoever hacked into my Database

2013-11-07 Thread Νίκος Αλεξόπουλος

Στις 7/11/2013 12:06 μμ, ο/η Alister έγραψε:

On Thu, 07 Nov 2013 01:31:17 -0800, Ferrous Cranus wrote:


Τη Πέμπτη, 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 this information to be accessible ONLY FOR ME via my website
'http://superhost.gr' i just need to secure it more tight.


Nicos, You do realise that at some point YOU are going to end up in gaol
unless you remove this site from the internet  get some professional
help in implementing it correctly.


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.

--
What is now proved was at first only imagined!  WebHost
http://superhost.gr
--
https://mail.python.org/mailman/listinfo/python-list


Re: To whoever hacked into my Database

2013-11-07 Thread Νίκος Αλεξόπουλος

Στις 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 this information to be accessible ONLY FOR ME via my website 
'http://superhost.gr' i just need to secure it more tight.




--
I think i have made it.

The hacker, didn't manage to mess again with either of my counters or 
clients databases. :-)


Too bad! I though 'she' was better than that!
--
https://mail.python.org/mailman/listinfo/python-list


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

2013-11-07 Thread Joel Goldstick
On Thu, Nov 7, 2013 at 8:37 AM, Νίκος Αλεξόπουλος nikos.gr...@gmail.com wrote:
 Στις 6/11/2013 7:59 μμ, ο/η Denis McMahon έγραψε:

 On Wed, 06 Nov 2013 09:30:03 +0200, Nick the Gr33k wrote:

 I have decided to take your advice.


 No you haven't. You only think you have, but really you either haven't
 understood the advice at all.

 My implementation is like the following.
 I do not use an extra table of downlaods that i asoociate with table
 visitors with a foreing key but decided to add an additional 'download'
 column into the existant visitors table:


 No no no no no no no no no no nononononono no!

 That's *NOT* the right way to do it.

 And this is where I finally and terminally give up trying to help you.
 I've had enough. You refuse to learn the right way to do it. You won't
 listen to the opinions and suggestions of people with a great deal more
 experience than you have in such matters. It's not going to work properly
 in the end. I refuse to be associated with it any further.



 --
 Denis, you may choose to not help any further, thats acceptable as you
 personal choice.

 I have to inform you though that my solution of adding an extra 'download'
 column in my 'visitors' table has the benefits of

 1. refrain me for creating one more table

refraining you is a very good thing

 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 everything in a single
record.  Wow! look at that record with everything in it!  Its so cool
and it helped to refrain Nikos the idiot!


 My solution works just fine and is giving no problems.

Great, now that you have not problems, you might consider going away
forever so as not to cause other people problems!

 I cant overcome the urge though to try to use some database that can hold
 lists to a single.

You need to see a therapist to help with overcoming your urges.  We
are not qualified in that area.
 --
 https://mail.python.org/mailman/listinfo/python-list



-- 
Joel Goldstick
http://joelgoldstick.com
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: To whoever hacked into my Database

2013-11-07 Thread Chris Angelico
On Fri, Nov 8, 2013 at 12:46 AM, Νίκος Αλεξόπουλος
nikos.gr...@gmail.com 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 that you
actually listen to what I'm saying. Actually, you'll probably find
that you can skip the $100/hr if you just listen to the advice you've
been given for free on this list, but you asked for a really good
price, and for this kind of work, I think the price I quoted is
exactly that.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


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 everything in a single
record.  Wow! look at that record with everything in it!  Its so cool
and it helped to refrain Nikos the idiot!



--
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 'downlaod' is associated by being in the same record.

By your logic every time we want to store an extra piece of information 
we have to create an extra database table.


Too much hussle for no good reason


--
https://mail.python.org/mailman/listinfo/python-list


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 jimsgib...@gmail.com 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 
 
 degrees in the physical sciences and many years of doing computer 
 
 programming.  But the programming work is done just to get various science 
 
 projects to work.
 
 
 
The question that I could not get an answer for was, “How can you get 
 
 Gnuplot to run on an Internet server computer?”
 
 
 
And I would eventually have to ask that same question for Python.
 
 
 
My Internet Server looks like it has Perl, Perl5, and PHP available. 
 
 And I have created a number of CGI Perl programs that run on the Web site. 
 
 But as I said, I would not know how to get Gnuplot or Python to run at the 
 
 site.
 
 
 
Any recommendations for how to do that?  Or should I just do a search 
 
 for the necessary documentation?

Please try modpy.
-- 
https://mail.python.org/mailman/listinfo/python-list


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, Νίκος Αλεξόπουλος
nikos.gr...@gmail.com 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 that you
actually listen to what I'm saying. Actually, you'll probably find
that you can skip the $100/hr if you just listen to the advice you've
been given for free on this list, but you asked for a really good
price, and for this kind of work, I think the price I quoted is
exactly that.

ChrisA




--
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 in some fashion to make it frameworked because i 
don't have the slightest clue how to implement this.

--
https://mail.python.org/mailman/listinfo/python-list


Re: To whoever hacked into my Database

2013-11-07 Thread Chris Angelico
On Fri, Nov 8, 2013 at 1:16 AM, Νίκος Αλεξόπουλος nikos.gr...@gmail.com 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 in some fashion to make it frameworked because i don't
 have the slightest clue how to implement this.

(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.)

20 Euro won't buy you much in the way of programmer time. Most job ads
I've seen are offering at least $50/hr for salaried work, and contract
work will start a lot higher than that. (I don't know how rates are in
Europe, but they'll be roughly in the same ball-park.) Your figure
would buy you maybe half an hour of someone's time... if you're lucky.
Most likely it's not even on anyone's radar. Perhaps now you'll have
some appreciation of how much you get *for nothing* here on this list.

The main point of my post, though, was that if you pay someone to do
your work for you, you WILL have to accept the way s/he does things.
If you get a guy to design you a database for your hit counter and he
does it with two tables, only a crass fool would then say I don't
care how well you've done that, I'm going to do it MY WAY instead,
because if you really knew better than the person you hired, you would
have done it yourself. (Incidentally, this is exactly why I am no
longer with my former employer. He didn't respect my designs, so now
he's free to do his own.) You need to be willing to accept advice once
you ask for it; otherwise, just do things yourself - and cope with the
legal requirements, which I don't think you've yet even considered,
despite spending all this time on tracking your users and retaining
personal/private information.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


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, Νίκος Αλεξόπουλος nikos.gr...@gmail.com 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 'downlaod' is associated by being in the same record.

 By your logic every time we want to store an extra piece of information we
 have to create an extra database table.

 Too much hussle for no good reason

Go to your local library and pick up a book on database design - or
possibly you'll find it on Wikipedia. There ARE good reasons for the
hassle of normalization. There are times when you consciously
denormalize (I often read tables into memory for a (read-only) cache,
and denormalize aggressively), but the rule of thumb is: It's normal
to normalize.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: To whoever hacked into my Database

2013-11-07 Thread Neil Cerutti
On 2013-11-07, Chris Angelico ros...@gmail.com wrote:
 On Fri, Nov 8, 2013 at 1:16 AM, ? ??? nikos.gr...@gmail.com 
 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 in some fashion to make it frameworked because i don't
 have the slightest clue how to implement this.

 (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 after, to be precise.

But I like it the way he's doing it! His messages are greatly
improved from where I'm sitting..

-- 
Neil Cerutti
-- 
https://mail.python.org/mailman/listinfo/python-list


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 ros...@gmail.com wrote:
 On Fri, Nov 8, 2013 at 1:09 AM, Νίκος Αλεξόπουλος nikos.gr...@gmail.com 
 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 'downlaod' is associated by being in the same record.

 By your logic every time we want to store an extra piece of information we
 have to create an extra database table.

 Too much hussle for no good reason

First of all Nikos, you are not qualified to determine if there is
reason to design a database in any particular way, since you don't
understand what a relational database is.
Secondly, in earlier threads I provided you with a link to a wikipedia
article about first normal form and why it is a necessary component of
data base design.
If you don't want to use a database, good for you, but if you can't
get your website to work and you ask for help, then respond that the
help is 'too much hussle', you are disrespectful.
You don't bother me because you are lazy, and arogant, and whiny.  Or
that you lack skills.  You are a cargo cult programmer.  I know you
won't look that up.  You bother me because you are disrespectful.  The
most disrespectful person I have ever encountered on line.

On a side note to whoever hacks into Nick the idiots website -- why
not just take it down.  Then he won't have any need to spend his 20
euros, and there will be no code to fix.  Problem solved!




-- 
Joel Goldstick
http://joelgoldstick.com
-- 
https://mail.python.org/mailman/listinfo/python-list


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 ne...@norwich.edu wrote:
 On 2013-11-07, Chris Angelico ros...@gmail.com 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 after, to be precise.

To be even more precise, it’s those three characters on a line all by itself.

 But I like it the way he's doing it! His messages are greatly
 improved from where I'm sitting..

Gmail automatically hides all longer quotes (Google Groups does the
same, so they don’t get to see their double-spaced nonsense) AS WELL
AS signatures.  Well, world couldn’t be more wonderful than Nikos
posting nothing.

-- 
Chris “Kwpolska” Warrick http://kwpolska.tk
PGP: 5EAAEA16
stop html mail | always bottom-post | only UTF-8 makes sense
-- 
https://mail.python.org/mailman/listinfo/python-list


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

2013-11-07 Thread Grant Edwards
On 2013-11-07, ?? ?? nikos.gr...@gmail.com 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 Tenafly,
  at   New Jersey, a chiropractor
  gmail.comis viewing Leave it to
   Beaver!
-- 
https://mail.python.org/mailman/listinfo/python-list


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 Gr33knikos.gr...@gmail.com  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 extra table of downlaods that i asoociate with table
visitors with a foreing key but decided to add an additional 'download'
column into the existant visitors table:


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?



--
https://mail.python.org/mailman/listinfo/python-list


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 hereby profoundly apologise to the entire list for having set
Mr. Edwards, Mr. Chase and Mr. Angelico down this path.


Ve'al forgive you...


I have a real beef with your puns.

-tkc

PS: our 4yo's favorite joke these days:
   Q: Why does Fozzie Bear find Spanish cows so funny?
   A: vaca, vaca, vaca!



A guy was looking up at a bird in a tree.  The bird told him to bugger 
off.  It was suffering from Irritable Owl Syndrome.  (From a birthday 
card received Tuesday from my sis)


--
Python is the second best programming language in the world.
But the best has yet to be invented.  Christian Tismer

Mark Lawrence

--
https://mail.python.org/mailman/listinfo/python-list


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 this information to be accessible ONLY FOR ME via my website
'http://superhost.gr' i just need to secure it more tight.



I think i have made it.

The hacker, didn't manage to mess again with either of my counters or clients 
databases.

Too bad! I though 'she' was better than that!


She's just biding her time so as to cause you maximum pain!!!

--
Python is the second best programming language in the world.
But the best has yet to be invented.  Christian Tismer

Mark Lawrence

--
https://mail.python.org/mailman/listinfo/python-list


Re: To whoever hacked into my Database

2013-11-07 Thread Joel Goldstick
On Thu, Nov 7, 2013 at 11:34 AM, Mark Lawrence breamore...@yahoo.co.uk 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 details of customers and payments
 on your Web  server.



 Oh but i do!
 I need this information to be accessible ONLY FOR ME via my website
 'http://superhost.gr' i just need to secure it more tight.

Its not only for you, its for 'her' too.  Maybe next time she will
change your passwords so you can't get in.


 I think i have made it.

 The hacker, didn't manage to mess again with either of my counters or
 clients databases.

 Too bad! I though 'she' was better than that!


 She's just biding her time so as to cause you maximum pain!!!


 --
 Python is the second best programming language in the world.
 But the best has yet to be invented.  Christian Tismer

 Mark Lawrence

 --
 https://mail.python.org/mailman/listinfo/python-list



-- 
Joel Goldstick
http://joelgoldstick.com
-- 
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?

Greece is no more represented by Nikos than any other nations are
represented by their ignorant.  When I start to feel ill-will towards
Greece because of Nikos, I also have to remember that the country has
also produced great technologists like Lea Verou and classical art 
philosophy.  Then I just wonder why Nikos doesn't take advantage of
the resources his home country provides. :-/

-tkc



-- 
https://mail.python.org/mailman/listinfo/python-list


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: 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 command line will strip your .
 
 From the Python document, we could get the info as:
 json.loads('[foo, {bar:[baz, null, 1.0, 2]}]')
 the json.loads' argument should be string. Try it:)

That's not going to work, JSON strings must use double quotes, which you've 
rewritten as single quotes. The correct way (as shown previously) is to wrap 
the entire string in single quotes, thus preserving the double quotes inside.
-- 
https://mail.python.org/mailman/listinfo/python-list


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::
br#45 / 58#0#
or
br#9 / 58#0
but i have no idea how to make this happen!!

if i read the content into a buf - s

import re
dat = re.compile(what goes here??).split(s)

--i'm not sure what goes in the compile() to get the process to work..

thoughts/comments would be helpful.

thanks


test dat::
10116#000#C S#S#100##001##DAY#Fund of Computing#Barrett,
William#3#MWFbr#08:00ambr#08:50ambr#3718 HBLL br#45 /
58#0#10116#000#C S#S#100##002##DAY#Fund of Computing#Barrett,
William#3#MWFbr#09:00ambr#09:50ambr#3718 HBLL br#9 /
58#0#10178#000#C S#S#124##001##DAY#Computer Systems#Roper,
Paul#3#MWFbr#11:00ambr#11:50ambr#1170 TMCB br#41 /
145#0#10178#000#C S#S#124##002##DAY#Computer Systems#Roper,
Paul#3#MWFbr#2:00pmbr#2:50pmbr#1170 TMCB br#40 /
120#0#01489#002#C S#S#142##001##DAY#Intro to Computer
Programming#Burton, Robert div class='instructors'Seppi, Kevinbr
//divspan
-- 
https://mail.python.org/mailman/listinfo/python-list


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
davide.dalma...@gmail.com 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/listinfo/python-list


google gives this:  http://www.quantandfinancial.com/


-- 
Joel Goldstick
http://joelgoldstick.com
-- 
https://mail.python.org/mailman/listinfo/python-list


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/tcltk/ for current
information. 

 

Not sure how to proceed. 

 

 





  -- 
https://mail.python.org/mailman/listinfo/python-list


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 payments
on your Web  server.



Oh but i do!
I need this information to be accessible ONLY FOR ME via my website
'http://superhost.gr' i just need to secure it more tight.



I think i have made it.

The hacker, didn't manage to mess again with either of my counters or
clients databases.

Too bad! I though 'she' was better than that!


She's just biding her time so as to cause you maximum pain!!!




Bring it on baby!

I like this challenge because it makes me improve on overall python 
script security(most of it being securing user input data before 
actually perform database queries).


I also understand than in my attempt to get help with my code i provided 
too much of it which was successfully utilized by the hacker to attack 
my website!


You didn't answer me though!
Is the hacker really a female?
And if she is, is she pretty? :)
--
https://mail.python.org/mailman/listinfo/python-list


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

2013-11-07 Thread bruce
update...

  dat=re.compile(br#(\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#MWFbr#08:00ambr#08:50ambr#3718 HBLL
m = 45
m = 58
m = 0
m = 10116#000#C S#S#100##002##DAY#Fund of Computing#Barrett,
William#3#MWFbr#09:00ambr#09:50ambr#3718 HBLL
m = 9
m = 58
m = 0

and what i want is:
m = 10116#000#C S#S#100##001##DAY#Fund of Computing#Barrett,
William#3#MWFbr#08:00ambr#08:50ambr#3718 HBLL 45 / 58,0
m = 10116#000#C S#S#100##002##DAY#Fund of Computing#Barrett,
William#3#MWFbr#09:00ambr#09:50ambr#3718 HBLL 9 / 58,0


so i'd have the results of the compile/regex process to be added to
the split lines

thoughts/comments??

thanks



On Thu, Nov 7, 2013 at 12:15 PM, bruce badoug...@gmail.com wrote:
 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::
 br#45 / 58#0#
 or
 br#9 / 58#0
 but i have no idea how to make this happen!!

 if i read the content into a buf - s

 import re
 dat = re.compile(what goes here??).split(s)

 --i'm not sure what goes in the compile() to get the process to work..

 thoughts/comments would be helpful.

 thanks


 test dat::
 10116#000#C S#S#100##001##DAY#Fund of Computing#Barrett,
 William#3#MWFbr#08:00ambr#08:50ambr#3718 HBLL br#45 /
 58#0#10116#000#C S#S#100##002##DAY#Fund of Computing#Barrett,
 William#3#MWFbr#09:00ambr#09:50ambr#3718 HBLL br#9 /
 58#0#10178#000#C S#S#124##001##DAY#Computer Systems#Roper,
 Paul#3#MWFbr#11:00ambr#11:50ambr#1170 TMCB br#41 /
 145#0#10178#000#C S#S#124##002##DAY#Computer Systems#Roper,
 Paul#3#MWFbr#2:00pmbr#2:50pmbr#1170 TMCB br#40 /
 120#0#01489#002#C S#S#142##001##DAY#Intro to Computer
 Programming#Burton, Robert div class='instructors'Seppi, Kevinbr
 //divspan
-- 
https://mail.python.org/mailman/listinfo/python-list


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 breamore...@yahoo.co.uk 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 details of customers and payments
on your Web  server.




Oh but i do!
I need this information to be accessible ONLY FOR ME via my website
'http://superhost.gr' i just need to secure it more tight.


Its not only for you, its for 'her' too.  Maybe next time she will
change your passwords so you can't get in.d


Even if she changes the root password(assuming she's somehow in 
control of my VPS), i can easily alter it in some other string of my 
liking very easily.

--
https://mail.python.org/mailman/listinfo/python-list


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 ros...@gmail.com wrote:

On Fri, Nov 8, 2013 at 1:09 AM, Νίκος Αλεξόπουλος nikos.gr...@gmail.com 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 'downlaod' is associated by being in the same record.

By your logic every time we want to store an extra piece of information we
have to create an extra database table.

Too much hussle for no good reason


First of all Nikos, you are not qualified to determine if there is
reason to design a database in any particular way, since you don't
understand what a relational database is.
Secondly, in earlier threads I provided you with a link to a wikipedia
article about first normal form and why it is a necessary component of
data base design.
If you don't want to use a database, good for you, but if you can't
get your website to work and you ask for help, then respond that the
help is 'too much hussle', you are disrespectful.
You don't bother me because you are lazy, and arogant, and whiny.  Or
that you lack skills.  You are a cargo cult programmer.  I know you
won't look that up.  You bother me because you are disrespectful.  The
most disrespectful person I have ever encountered on line.

On a side note to whoever hacks into Nick the idiots website -- why
not just take it down.  Then he won't have any need to spend his 20
euros, and there will be no code to fix.  Problem solved!







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 case i only just an extra pieces of information to eb associated with 
my visitor, a possible file download.


and i have decided just to add an extra colum to the existing 'visitors' 
database and this is adequate.


I still don't know why you push me to create an extra table instead.

It may seem that i'm clue resistant sometimes and i'm but this is not 
because out of arogance but as a result of failign to under

--
https://mail.python.org/mailman/listinfo/python-list


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

2013-11-07 Thread Neil Cerutti
On 2013-11-07, ?? ??
nikos.gr...@gmail.com 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 case i only just an extra pieces of
 information to eb associated with my visitor, a possible file
 download. and i have decided just to add an extra colum to the
 existing 'visitors' database and this is adequate.

Non-normalized data is sometimes a fine idea. How you plan to use
the data once it is stored will be the deciding factor.

One big win with databases is that you can query them really
easily using SQL. Non-normalized data negates that advantage.

How would you write a query to discover all the visitors who
downloaded file XYZ? With your storage scheme, you can't. So by
storing the data this way, you are promising yourself that you'll
never need to write that query, or at least, you won't need to do
it very often.

 I still don't know why you push me to create an extra table
 instead.

Because it's usually the right thing to do.

-- 
Neil Cerutti
-- 
https://mail.python.org/mailman/listinfo/python-list


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 you aren't storing details of customers and payments
on your Web  server.



Oh but i do!
I need this information to be accessible ONLY FOR ME via my website
'http://superhost.gr' i just need to secure it more tight.



I think i have made it.

The hacker, didn't manage to mess again with either of my counters or
clients databases.

Too bad! I though 'she' was better than that!


She's just biding her time so as to cause you maximum pain!!!




Bring it on baby!

I like this challenge because it makes me improve on overall python
script security(most of it being securing user input data before
actually perform database queries).


Yeah right.  You can't build a house until you've got the foundations 
right, so how can you improve on something when you know absolutely 
nothing about it in the first place?




I also understand than in my attempt to get help with my code i provided
too much of it which was successfully utilized by the hacker to attack
my website!

You didn't answer me though!
Is the hacker really a female?
And if she is, is she pretty? :)


That's for me to know and for you to find out.  Actually I'll assume 
that you'll never find out as I'd guess that your detective skills are 
on a par with your computing skills, i.e. nonexistent.


--
Python is the second best programming language in the world.
But the best has yet to be invented.  Christian Tismer

Mark Lawrence

--
https://mail.python.org/mailman/listinfo/python-list


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(br#(\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#MWFbr#08:00ambr#08:50ambr#3718 HBLL
m = 45
m = 58
m = 0
m = 10116#000#C S#S#100##002##DAY#Fund of Computing#Barrett,
William#3#MWFbr#09:00ambr#09:50ambr#3718 HBLL
m = 9
m = 58
m = 0

and what i want is:
m = 10116#000#C S#S#100##001##DAY#Fund of Computing#Barrett,
William#3#MWFbr#08:00ambr#08:50ambr#3718 HBLL 45 / 58,0
m = 10116#000#C S#S#100##002##DAY#Fund of Computing#Barrett,
William#3#MWFbr#09:00ambr#09:50ambr#3718 HBLL 9 / 58,0


so i'd have the results of the compile/regex process to be added to
the split lines

thoughts/comments??

thanks


The split method also returns what's matched in any capture groups,
i.e. (\d+). Try omitting the parentheses:

dat = re.compile(rbr#\d+ / \d+#\d+#).split(s)

You should also be using raw string literals as above (r...). It
doesn't matter in this instance, but it might in others.



On Thu, Nov 7, 2013 at 12:15 PM, bruce badoug...@gmail.com wrote:

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::
br#45 / 58#0#
or
br#9 / 58#0
but i have no idea how to make this happen!!

if i read the content into a buf - s

import re
dat = re.compile(what goes here??).split(s)

--i'm not sure what goes in the compile() to get the process to work..

thoughts/comments would be helpful.

thanks


test dat::
10116#000#C S#S#100##001##DAY#Fund of Computing#Barrett,
William#3#MWFbr#08:00ambr#08:50ambr#3718 HBLL br#45 /
58#0#10116#000#C S#S#100##002##DAY#Fund of Computing#Barrett,
William#3#MWFbr#09:00ambr#09:50ambr#3718 HBLL br#9 /
58#0#10178#000#C S#S#124##001##DAY#Computer Systems#Roper,
Paul#3#MWFbr#11:00ambr#11:50ambr#1170 TMCB br#41 /
145#0#10178#000#C S#S#124##002##DAY#Computer Systems#Roper,
Paul#3#MWFbr#2:00pmbr#2:50pmbr#1170 TMCB br#40 /
120#0#01489#002#C S#S#142##001##DAY#Intro to Computer
Programming#Burton, Robert div class='instructors'Seppi, Kevinbr
//divspan




--
https://mail.python.org/mailman/listinfo/python-list


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 following,

app=pywinauto.application.Application()
hand=pywinauto.findwindows.find_windows(class='Shell_TrayWnd', title=u'')

When i use the handler, get the window and do a right click i am able to
click only in the taskbar and not icons. That maybe because i did not
recognise the icon yet.

Can you guide me how to do the same using pywinauto or pywin32?

Regards,
Krishnan
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python 3.3.2 Shell Message

2013-11-07 Thread Ned Deily
In article blu170-w5070cfbbc32e1420e468b5ab...@phx.gbl,
 Bart Montgomery longfa...@hotmail.com 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
unstable. Visit http://www.python.org/download/mac/tcltk/ for 
 current
information. 

 

Not sure how to proceed. 

 

 





   

It is telling you that the Tcl/Tk on OS X 10.6 is buggy when used with IDLE.  
Go to ActiveState's web site and download their latest 8.5 installer for OS X 
and install it on your machine.  Restart IDLE and the message should no longer 
appear and your experience with IDLE should be much better.

http://www.activestate.com/activetcl/downloads

-- 
 Ned Deily,
 n...@acm.org

-- 
https://mail.python.org/mailman/listinfo/python-list


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, ?? ??
nikos.gr...@gmail.com 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 case i only just an extra pieces of
information to eb associated with my visitor, a possible file
download. and i have decided just to add an extra colum to the
existing 'visitors' database and this is adequate.


Non-normalized data is sometimes a fine idea. How you plan to use
the data once it is stored will be the deciding factor.


Exactly.


One big win with databases is that you can query them really
easily using SQL. Non-normalized data negates that advantage.

How would you write a query to discover all the visitors who
downloaded file XYZ? With your storage scheme, you can't. So by
storing the data this way, you are promising yourself that you'll
never need to write that query, or at least, you won't need to do
it very often.

That would be a problem yes.
But as you said above the deciding factor is the how we plan to use 
out stored data.


And my plan is to just display the records of all visitors per webpage 
with the last column being a list of this specific visitors 'downloads' 
as can be seen visually here:


http://superhost.gr/?show=logpage=index.html

'Δεν πραγματοποίηθηκαν ακόμη!' mean that this visitor hasn't download 
anything yet, if he does a drop down menu will appear in that place 
displaying his file picks.


People can download files from here:'http://superhost.gr/?page=files.py

(these torrent are just for testing reasons. later i will put my own 
selection of files)



--
https://mail.python.org/mailman/listinfo/python-list


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, ο χρήστης Steve
Simmons έγραψε:


Please tell me you aren't storing details of customers and payments
on your Web  server.



Oh but i do!
I need this information to be accessible ONLY FOR ME via my website
'http://superhost.gr' i just need to secure it more tight.



I think i have made it.

The hacker, didn't manage to mess again with either of my counters or
clients databases.

Too bad! I though 'she' was better than that!


She's just biding her time so as to cause you maximum pain!!!




Bring it on baby!

I like this challenge because it makes me improve on overall python
script security(most of it being securing user input data before
actually perform database queries).


Yeah right.  You can't build a house until you've got the foundations
right, so how can you improve on something when you know absolutely
nothing about it in the first place?


[snip]
A better analogy would be that of inviting people to break into your
house so that you can better learn how to prevent people from breaking
into your house. The wise course would've been to fit and use locks,
and not to hand the keys to strangers...

--
https://mail.python.org/mailman/listinfo/python-list


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? 

 I presume the question should be more along the lines of What does PEP8 
 say?, because all answers are correct. 

I agree. Question has been edited.


 String literals are written with what? 

 The answer is not ALl of these answers are correct 

I believe that string literals can be written with single, double, or triple 
quotes: http://docs.python.org/release/2.5.2/ref/strings.html

 Which is a correct way to perform exponentiation in Python? 

This was a silly error. Thanks for pointing it out.

 What does the following code do? 
 def a(b, c, d): pass 

 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 
options available to you unsuitable?

 How could you open a file c:\scores.dat to write in binary? 

 outfile = open(c:\\scores.dat, w) 
 outfile = open(c:\scores.dat, a) 
 outfile = open(c:\\scores.dat, w) 
 outfile = open(c:\\scores.dat, wb) 

 Not technically wrong, but stylistically suspect; I would recommend 
 using forward slashes (which work fine on Windows) and avoiding the 
 drive letter, both of which avoid making your example 
 Windows-specific. (At least, I don't think there are any other 
 platforms Python supports that use drive letters; OS/2 support was 
 dropped a little while ago, though I believe Paul Smedley still 
 maintains a port. But I digress.) 

Excellent suggestion. We've gone ahead and made the change.


 Which method will write a pickled representation of the object to 
 an open file? 

 Method names without object names aren't all that useful. Do you mean 
 Which method of the pickle module...? 

Again, great suggestion.

 
 From which languages are Python classes derived from? 

 Sounds like Python history trivia more than a coding challenge, but if 
 that's what you want to go for, sure. 

I agree it's not directly coding related. Our questions are actually sorted 
into topic buckets. We try to get a reading on people's knowledge in a bunch of 
different areas of a given skill. Familiarity with general knowledge facts such 
as this, gives us another data point to help parse out the types of questions 
the best developers tend to get right.

 By the way, here's a fairly bad solution to your final question: 

 array666=lambda x:b\6\6\6 in bytes(x) 

 Works for the given test-cases! Doesn't work with arrays at all, 
 despite the description. 

Chris, I actually really like your answer, even if it doesn't satisfy the goal 
in the question. I'd give it a vote for cleverness!

 You know, I didn't even notice that. But since that was copied and 
 pasted, I would say that yes, it really does. That's a pretty simple 
 grammatical bugfix though. 

Silly error. Fixed.

 I have to concur with what several other people are saying here.  Several of 
 MetaBright's questions are  ambiguously worded, or expect non-idiomatic 
 Python code.  It might be helpful for you to ask (hire?)  some seasoned 
 Python programmers to critique your questions. 

Thanks for the thoughts, John. I'd be lying if I said I wasn't disappointed 
with how many errors everyone here is picking out. Some of our Challenges are 
built exclusively by our users, others are built by someone who helped build 
MetaBright, while others, like the Python Challenge, are built with the help of 
contractors. Even so, the responsibility to make sure we are publishing high 
quality content falls on our shoulders and I regret we didn't go a better job 
of vetting this material. 

 With tracking cookies blocked, you get 0 points. 

 And with JavaScript blocked, you get bupkis. :-) 

I know that's frustrating. Our tech lead will be on here later today to explain 
why we do this.

Thanks again everyone!


-- 
https://mail.python.org/mailman/listinfo/python-list


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 the outputs in separate loops, which will be ugly but will
work

  ff= byu2.dat
  #fff= sdsu2.dat
  with open(ff,r) as myfile:
s=myfile.read()


  s=s.replace(nbsp, )

  #with open(fff,w) as myfile2:
  #  myfile2.write(s)
#br#45 / 58#0#
#br#45 / 58#0#
  #dat1=re.compile(br#(\d+) / (\d+)#(\d+)#).search(s).findall()
  dat1=re.findall(br#(\d+) / (\d+)#(\d+)#,s)
  dat=re.compile(br#(\d+) / (\d+)#(\d+)#).split(s)
  dat2 = re.compile(rbr#\d+ / \d+#\d+#).split(s)
  #dat=re.split('(br#(\d+) / (\d+)#(\d+)#)',s)
  #dat=re.compile(br#(\d+)).split(s)


  for m in dat:
if m:
  print m = +m

  #sys.exit()

  print dat1
  print dat1
  print len(dat1)
  print dat2a
  #sys.exit()

#  for m in dat1:
#if m:
#  print m = +m
#
#  #sys.exit()

  for m in dat2:
if m:
  print m = +m

  #sys.exit()

  sys.exit()

  return


the test data is pasted to -- http://bpaste.net/show/kYzBUIfhc5023phOVmcu/

thanks
!!


On Thu, Nov 7, 2013 at 1:13 PM, MRAB pyt...@mrabarnett.plus.com wrote:
 On 07/11/2013 17:45, bruce wrote:

 update...

dat=re.compile(br#(\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#MWFbr#08:00ambr#08:50ambr#3718 HBLL
 m = 45
 m = 58
 m = 0
 m = 10116#000#C S#S#100##002##DAY#Fund of Computing#Barrett,
 William#3#MWFbr#09:00ambr#09:50ambr#3718 HBLL
 m = 9
 m = 58
 m = 0

 and what i want is:
 m = 10116#000#C S#S#100##001##DAY#Fund of Computing#Barrett,
 William#3#MWFbr#08:00ambr#08:50ambr#3718 HBLL 45 / 58,0
 m = 10116#000#C S#S#100##002##DAY#Fund of Computing#Barrett,
 William#3#MWFbr#09:00ambr#09:50ambr#3718 HBLL 9 / 58,0


 so i'd have the results of the compile/regex process to be added to
 the split lines

 thoughts/comments??

 thanks

 The split method also returns what's matched in any capture groups,
 i.e. (\d+). Try omitting the parentheses:

 dat = re.compile(rbr#\d+ / \d+#\d+#).split(s)

 You should also be using raw string literals as above (r...). It
 doesn't matter in this instance, but it might in others.



 On Thu, Nov 7, 2013 at 12:15 PM, bruce badoug...@gmail.com wrote:

 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::
 br#45 / 58#0#
 or
 br#9 / 58#0
 but i have no idea how to make this happen!!

 if i read the content into a buf - s

 import re
 dat = re.compile(what goes here??).split(s)

 --i'm not sure what goes in the compile() to get the process to work..

 thoughts/comments would be helpful.

 thanks


 test dat::
 10116#000#C S#S#100##001##DAY#Fund of Computing#Barrett,
 William#3#MWFbr#08:00ambr#08:50ambr#3718 HBLL br#45 /
 58#0#10116#000#C S#S#100##002##DAY#Fund of Computing#Barrett,
 William#3#MWFbr#09:00ambr#09:50ambr#3718 HBLL br#9 /
 58#0#10178#000#C S#S#124##001##DAY#Computer Systems#Roper,
 Paul#3#MWFbr#11:00ambr#11:50ambr#1170 TMCB br#41 /
 145#0#10178#000#C S#S#124##002##DAY#Computer Systems#Roper,
 Paul#3#MWFbr#2:00pmbr#2:50pmbr#1170 TMCB br#40 /
 120#0#01489#002#C S#S#142##001##DAY#Intro to Computer
 Programming#Burton, Robert div class='instructors'Seppi, Kevinbr
 //divspan



 --
 https://mail.python.org/mailman/listinfo/python-list
-- 
https://mail.python.org/mailman/listinfo/python-list


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 
options available to you unsuitable?



 def a(b, c, d): pass
...
 x=a(1,2,3);type(x)
class 'NoneType'

--
Python is the second best programming language in the world.
But the best has yet to be invented.  Christian Tismer

Mark Lawrence

--
https://mail.python.org/mailman/listinfo/python-list


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 completely
 unrelated to compression.  Did you honestly believe this was actually
 explaining anything?

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.

MarkJ
Tacoma, Washington
-- 
https://mail.python.org/mailman/listinfo/python-list


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 the future, 
but right now we don't have the resources for that. Sorry for the inconvenience!

- Jonathan Kirst
Lead Engineer at MetaBright

On Wednesday, November 6, 2013 7:19:23 PM UTC-8, Tim Chase wrote:
 On 2013-11-06 17:31, John Nagle wrote:
 
   MetaBright makes skill assessments to measure how talented
 
   people are at different skills. And recruiters use MetaBright to
 
   find outrageously skilled job candidates.  
 
  
 
  With tracking cookies blocked, you get 0 points.
 
 
 
 And with JavaScript blocked, you get bupkis. :-)
 
 
 
 I was amused that the sidebar of similar challenges suggested that
 
 the Python challenge might be similar to this one.  Ya think?  So
 
 similar that even the URL is the same...
 
 
 
 -tkc
-- 
https://mail.python.org/mailman/listinfo/python-list


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 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 options available to you unsuitable?

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.
 

 Thanks again everyone!
-- 
While you recently had your problems on the run, they've regrouped and
are making another attack.
-- 
https://mail.python.org/mailman/listinfo/python-list


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 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 -- I hadn't noticed that.  Of course, now you have the
problem of expressing 4^8 in a compact way.

-- 
Tim Roberts, t...@probo.com
Providenza  Boekelheide, Inc.

-- 
https://mail.python.org/mailman/listinfo/python-list


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 answer with a radio button and click the [next]
button.  There's not much interactivity there that hasn't been around
since the dawn of the web.

Additionally, I noticed that if I accidentally select an answer
(laptop track-pads aren't the most precise pointing devices), there
was no readily-apparent way to change/fix it before hitting [next].

-tkc



-- 
https://mail.python.org/mailman/listinfo/python-list


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 is responsible for overseeing Business Analysts or having individual 
responsibility for applying analytical skills to determine and document 
accurate business requirements; presenting these requirements in a manner that 
is concise, measurable and flexible enough to meet project and stakeholder 
needs. 
 
This person should have exceptional verbal and written communication skills. 
This role liaises with IT, Demand, and Business Stakeholders in order to 
understand the structure, policies and operations of the business and to 
recommend solutions that will enable the Business Stakeholders to achieve their 
goal(s). This role works with the Project Manager and Relationship Manager to 
manage the stakeholders' expectations, ensures that the solution is within the 
expressed business need, and provides business analysis work progress and other 
relevant information that may affect the project scope, schedule and cost. This 
role also will work closely with the Test Lead. 
 
Must have at least 5 years’ experience in the following areas: 
• Knowledge with the SDLC activities expected to develop custom 
developed and packaged applications with exposure to Business Process Modeling 
and/or Re-engineering is preferred. 
• Also Business Use Case Development, Business Rules Development, Use 
Case Driven Requirement Methods, UML and RUP knowledge is preferred. 
 
 
Candidates should have knowledge in Enterprise Application Portfolio 
Strategy/Development. Experience in Agile development, Team Foundation Server, 
including entering User Stories, Bugs, Enhancements, Burndown and working with 
off shore resources. Experience with stfSoft
 
Deep experience with the full Microsoft BI stack, including: SQL Server, SSAS, 
SSRS, SSIS, SharePoint,, .NET (for any architects) Strong business analysis 
skills, facilitation skills and a thorough understanding of analysis 
deliverables (including UML artifacts and how they relate to the development 
process). Demonstrated technical and leadership expertise in application 
development and project management in distributed systems and web technologies. 
Strong technology acumen and track record of hands-on implementations across 
multiple technologies.
 
Ability to translate technical data and concepts and communicate them to 
non-technical personnel. Strong skills in both technology and business domains, 
creative and practical in managing the relationship between the two. Strong 
background in implementing enterprise initiatives on a large scale. 
Undergraduate Degree (e.g., BA, BS) or equivalent experience


Thanks and Regards
Petter Parker
Technical Recruiter
11465 Johns Creek Pkway, Johns Creek, GA 30097
Phone # 678-824-7785
par...@svksystems.com  || krishnacarrires.svksystems.com (Gtalk) || 
petter.parker123  (Skype) || www.svksystems.com (Company mail ID)


Microsoft Certified Partner | Oracle Certified Partner | E-Verified Company

-- 
https://mail.python.org/mailman/listinfo/python-list


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,  parker.svksyst...@gmail.com 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/newsgroup IS NOT the valid place for job offers,
Python or otherwise.  Please stop sending them.

-- 
Chris “Kwpolska” Warrick http://kwpolska.tk
PGP: 5EAAEA16
stop html mail | always bottom-post | only UTF-8 makes sense
-- 
https://mail.python.org/mailman/listinfo/python-list


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
  
  
 Here is the job description for the new position at PwC in Tampa, FL.
  
 This role is responsible for overseeing Business Analysts or having
 individual responsibility for applying analytical skills to determine
 and document accurate business requirements; presenting these
 requirements in a manner that is concise, measurable and flexible enough
 to meet project and stakeholder needs.
  
 This person should have exceptional verbal and written communication
 skills. This role liaises with IT, Demand, and Business Stakeholders in
 order to understand the structure, policies and operations of the
 business and to recommend solutions that will enable the Business
 Stakeholders to achieve their goal(s). This role works with the Project
 Manager and Relationship Manager to manage the stakeholders'
 expectations, ensures that the solution is within the expressed business
 need, and provides business analysis work progress and other relevant
 information that may affect the project scope, schedule and cost. This
 role also will work closely with the Test Lead.
  
 Must have at least 5 years’ experience in the following areas:
 • Knowledge with the SDLC activities expected to develop custom
 developed and packaged applications with exposure to Business Process
 Modeling and/or Re-engineering is preferred.
 • Also Business Use Case Development, Business Rules
 Development, Use Case Driven Requirement Methods, UML and RUP knowledge
 is preferred.
  
  
 Candidates should have knowledge in Enterprise Application Portfolio
 Strategy/Development. Experience in Agile development, Team Foundation
 Server, including entering User Stories, Bugs, Enhancements, Burndown
 and working with off shore resources. Experience with stfSoft
  
 Deep experience with the full Microsoft BI stack, including: SQL Server,
 SSAS, SSRS, SSIS, SharePoint,, .NET (for any architects) Strong business
 analysis skills, facilitation skills and a thorough understanding of
 analysis deliverables (including UML artifacts and how they relate to
 the development process). Demonstrated technical and leadership
 expertise in application development and project management in
 distributed systems and web technologies. Strong technology acumen and
 track record of hands-on implementations across multiple technologies.
  
 Ability to translate technical data and concepts and communicate them to
 non-technical personnel. Strong skills in both technology and business
 domains, creative and practical in managing the relationship between the
 two. Strong background in implementing enterprise initiatives on a large
 scale. Undergraduate Degree (e.g., BA, BS) or equivalent experience
 
 
 Thanks and Regards Petter Parker Technical Recruiter 11465 Johns Creek
 Pkway, Johns Creek, GA 30097 Phone # 678-824-7785 par...@svksystems.com 
 || krishnacarrires.svksystems.com (Gtalk) || petter.parker123  (Skype)
 || www.svksystems.com (Company mail ID)
 
 
 Microsoft Certified Partner | Oracle Certified Partner | E-Verified
 Company

Nicos is your guy, nicos.gr...@gmail.com
-- 
https://mail.python.org/mailman/listinfo/python-list


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) (dot 3)] on darwin

Type copyright, credits or
license() for more information.

 hello.py

Traceback (most recent call last):

  File
pyshell#0, line 1, in module

   
hello.py

NameError: name 'hello' is not defined

 

Any assistance would be greatly appreciated. 






  -- 
https://mail.python.org/mailman/listinfo/python-list


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,  parker.svksyst...@gmail.com 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


 Here is the job description for the new position at PwC in Tampa, FL.

 This role is responsible for overseeing Business Analysts or having 
 individual responsibility for applying analytical skills to determine and 
 document accurate business requirements; presenting these requirements in a 
 manner that is concise, measurable and flexible enough to meet project and 
 stakeholder needs.

 This person should have exceptional verbal and written communication skills. 
 This role liaises with IT, Demand, and Business Stakeholders in order to 
 understand the structure, policies and operations of the business and to 
 recommend solutions that will enable the Business Stakeholders to achieve 
 their goal(s). This role works with the Project Manager and Relationship 
 Manager to manage the stakeholders' expectations, ensures that the solution 
 is within the expressed business need, and provides business analysis work 
 progress and other relevant information that may affect the project scope, 
 schedule and cost. This role also will work closely with the Test Lead.

 Must have at least 5 years’ experience in the following areas:
 • Knowledge with the SDLC activities expected to develop custom 
 developed and packaged applications with exposure to Business Process 
 Modeling and/or Re-engineering is preferred.
 • Also Business Use Case Development, Business Rules Development, Use 
 Case Driven Requirement Methods, UML and RUP knowledge is preferred.


 Candidates should have knowledge in Enterprise Application Portfolio 
 Strategy/Development. Experience in Agile development, Team Foundation 
 Server, including entering User Stories, Bugs, Enhancements, Burndown and 
 working with off shore resources. Experience with stfSoft

 Deep experience with the full Microsoft BI stack, including: SQL Server, 
 SSAS, SSRS, SSIS, SharePoint,, .NET (for any architects) Strong business 
 analysis skills, facilitation skills and a thorough understanding of analysis 
 deliverables (including UML artifacts and how they relate to the development 
 process). Demonstrated technical and leadership expertise in application 
 development and project management in distributed systems and web 
 technologies. Strong technology acumen and track record of hands-on 
 implementations across multiple technologies.

 Ability to translate technical data and concepts and communicate them to 
 non-technical personnel. Strong skills in both technology and business 
 domains, creative and practical in managing the relationship between the two. 
 Strong background in implementing enterprise initiatives on a large scale. 
 Undergraduate Degree (e.g., BA, BS) or equivalent experience


 Thanks and Regards
 Petter Parker
 Technical Recruiter
 11465 Johns Creek Pkway, Johns Creek, GA 30097
 Phone # 678-824-7785
 par...@svksystems.com  || krishnacarrires.svksystems.com (Gtalk) || 
 petter.parker123  (Skype) || www.svksystems.com (Company mail ID)


 Microsoft Certified Partner | Oracle Certified Partner | E-Verified Company

 --
 https://mail.python.org/mailman/listinfo/python-list



-- 
Joel Goldstick
http://joelgoldstick.com
-- 
https://mail.python.org/mailman/listinfo/python-list


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 (Apple Inc. build 5666) (dot 3)] on darwin

Type copyright, credits or license() for more information.

  hello.py

Traceback (most recent call last):

File pyshell#0, line 1, in module

hello.py

NameError: name 'hello' is not defined

 


Any assistance would be greatly appreciated.


That's the Python prompt (Python 3.3.2 Shell in the titlebar).

You can open the file with File-Open and then run it with Run-Run Module.
--
https://mail.python.org/mailman/listinfo/python-list


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 could not get the job done
till now.

I did the following,

app=pywinauto.application.Application()
hand=pywinauto.findwindows.find_windows(class='Shell_TrayWnd', title=u'')

When i use the handler, get the window and do a right click i am able to
click only in the taskbar and not icons. That maybe because i did not
recognise the icon yet.

Can you guide me how to do the same using pywinauto or pywin32?

Regards,
Krishnan




I'm sorry I can't help directly, but if you don't get any responses here 
try https://mail.python.org/mailman/listinfo/python-win32


--
Python is the second best programming language in the world.
But the best has yet to be invented.  Christian Tismer

Mark Lawrence

--
https://mail.python.org/mailman/listinfo/python-list


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 McMahon, denismfmcma...@gmail.com
-- 
https://mail.python.org/mailman/listinfo/python-list


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?

The fact that person n refers to the alleged hacker (which I suspect is 
just an artifact of your bodged and broken python and sql code) as having 
gender x does not mean that person n knows who the hacker is.

If using a gender specific pronoun to refer to the hacker implies 
knowledge of the hacker's true identity, then as the first person to use 
a gender specific pronoun in this thread, in the original post, with the 
comment He is done it twice, lets see if he will make it again!, you 
clearly know who the hacker is.

If you were actually hacked, I'd guess it was most likely sql injection 
using a hand crafted get or post request that exploited some 
vulnerability that you have carelessly posted in an internet forum and 
then ignored advice to make secure.

-- 
Denis McMahon, denismfmcma...@gmail.com
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: To whoever hacked into my Database

2013-11-07 Thread Ian Kelly
On Thu, Nov 7, 2013 at 2:20 PM, Denis McMahon denismfmcma...@gmail.com 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 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 normally suggest a
hacker.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: To whoever hacked into my Database

2013-11-07 Thread Joel Goldstick
On Thu, Nov 7, 2013 at 4:39 PM, Ian Kelly ian.g.ke...@gmail.com wrote:
 On Thu, Nov 7, 2013 at 2:20 PM, Denis McMahon denismfmcma...@gmail.com 
 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 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 normally suggest a
 hacker.
 --
 https://mail.python.org/mailman/listinfo/python-list

but... a very polite hacker

-- 
Joel Goldstick
http://joelgoldstick.com
-- 
https://mail.python.org/mailman/listinfo/python-list


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 ian.g.ke...@gmail.com wrote:

On Thu, Nov 7, 2013 at 2:20 PM, Denis McMahon denismfmcma...@gmail.com 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 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 normally suggest a
hacker.
--
https://mail.python.org/mailman/listinfo/python-list


but... a very polite hacker





Not so polite, since in one arbitrary record into my clients db he 
placed the entry Stupid Coder, Stupid Site.


But i'm happy that s/he cannot mess again with my databases.

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.


Prove me otherwise mighty one if i'm mistaken!
--
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 5:59 AM, Mark Janssen dreamingforw...@gmail.com 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 how this has anything to do with
compressing arbitrary data. We already have a compact notation for
representing a large number as 2^24*x+2^16*y+2^8*z+q, so I don't see
how this will be any better, other than eliding NULs.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


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 into my DB is a
female?




If you were actually hacked, I'd guess it was most likely sql injection
using a hand crafted get or post request that exploited some
vulnerability that you have carelessly posted in an internet forum and
then ignored advice to make secure.


Its true that i need to be more careful when posting sensitive snippets.
Many times i have posted actual mysql passwords in clear text as seen at 
the pymysql connector and other sensitive information.


Now, i don't think s/he can be successful again.
I like to think that i have tighten script's security by validating user 
input before i utilize this information, especially in insertion time 
into the db.


http://superhost.gr/?show=logpage=index.html

The link above shows how many people visit my website and at the top 
entry with the unknown hostname, referer field told me that someone 
passed my website's url into http://netcraft.com to search the server 
for vulnera





--
https://mail.python.org/mailman/listinfo/python-list


Re: To whoever hacked into my Database

2013-11-07 Thread Tim Delaney
On 8 November 2013 09:18, Νίκος Αλεξόπουλος nikos.gr...@gmail.com 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 we now have confirmation that Nikos' site is subject to SQL injection
attacks on anything that he is not specifically validating. And I'm
absolutely sure that he has identified every location where input needs to
be validated, and that it is impossible to get past the level of validation
that he's doing, so the site is completely secure! Just like the last time
he claimed that (and the time before, and the time before that ...).

Nikos, please please please do yourself and your customers a favour and
quit your so-called business. All you are doing is opening your customers
up to potentially disastrous situations and yourself to lawsuits. It's not
a question of *if*, but *when* one of your customers is compromised to the
extent that they decide to take it out of you.

Also, you're an embarrassment to our profession.

Tim Delaney
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: To whoever hacked into my Database

2013-11-07 Thread Tim Delaney
On 8 November 2013 09:45, Tim Delaney timothy.c.dela...@gmail.com wrote:

 On 8 November 2013 09:18, Νίκος Αλεξόπουλος nikos.gr...@gmail.com 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 we now have confirmation that Nikos' site is subject to SQL injection
 attacks on anything that he is not specifically validating. And I'm
 absolutely sure that he has identified every location where input needs to
 be validated, and that it is impossible to get past the level of validation
 that he's doing, so the site is completely secure! Just like the last time
 he claimed that (and the time before, and the time before that ...).


Not to mention the idiocy of exposing your web server logs to the outside
world ... (no - I didn't go there - I want no chance of getting malware
from his site).

Tim Delaney
-- 
https://mail.python.org/mailman/listinfo/python-list


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
nathanielsokollw...@gmail.com 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 that string literals can be written with single, double, or triple 
 quotes: http://docs.python.org/release/2.5.2/ref/strings.html

Hmm. As a general rule, can you consider aiming your quiz - and any
citations like this - at a current version of Python? I'd prefer to
see this sort of thing aimed at the 3.3 docs, though if you want to
cite 2.7 that would also be of value. But 2.5 is now quite old, and
I'd rather not get the impression that you're writing a quiz based on
an unsupported version of Python. :) Though in this particular
instance it makes no difference.

 By the way, here's a fairly bad solution to your final question:

 array666=lambda x:b\6\6\6 in bytes(x)

 Works for the given test-cases! Doesn't work with arrays at all,
 despite the description.

 Chris, I actually really like your answer, even if it doesn't satisfy the 
 goal in the question. I'd give it a vote for cleverness!

Heh. Do you know what the limitation of my solution is, though? As I
said, it works for the given test-cases; what sort of input will it
fail on? (And also: What's its algorithmic complexity, and what's the
complexity of a better solution?) That's why I said it's a bad
solution :)

The side comment about arrays, though: Python *does* have arrays, but
they're a different beast from what you're working with, which are
called lists. The version I posted will actually work with any
iterable, but specifying that it be a list might open up some other
options.

BTW, you're going to see a lot of criticism on the list, because
that's the natural state of things. Doesn't mean we didn't enjoy
taking the quiz. :)

In your Intermediate section:
Which of the following is false regarding the raw_input() and
input() built-in functions in Python?

The old raw_input() has been renamed to input() in Python 3.x
input() is equivalent to exec(raw_input())
In Python 2.x, raw_input() returns a string.
raw_input() does not exist in Python 3.x

Technically one of those is false, but (a) you really need to specify
versions a LOT more clearly here, and (b) the falseness is a minor
technicality; it took me a while to notice that you'd written exec
where it actually uses eval. Is that distinction really worth
highlighting in the quiz?

Which of the following statements is false?

Python can be used to generate dynamic web pages.
Python can be used for web development.
Python's syntax is much like PHP.
Python can run on any type of platform.

What does *any type* of platform mean? Do you mean any platform, and
if so, do you mean that there is no pocket calculator on which Python
doesn't run? Or is there some other type of platform?

 type(platform)
class 'module'

I get it. Python will run on any module. *dives for cover*

BTW, here's my chosen bad solution for the boss question at the end
of the intermediate section. I'm sure someone here can come up with a
worse one. Wasn't sure what should be done if all three numbers are
the same, incidentally.

def indie_three(*numbers):
seen = {}
tot = 0
for n in numbers:
seen.setdefault(n, 5)
seen[n] -= 4
tot += n * seen[n]
return tot

Note how I've generalized it to any number of input values AND to any
possible number of duplicates!

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


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 timothy.c.dela...@gmail.com
mailto:timothy.c.dela...@gmail.com wrote:

On 8 November 2013 09:18, Νίκος Αλεξόπουλος nikos.gr...@gmail.com
mailto:nikos.gr...@gmail.com 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 we now have confirmation that Nikos' site is subject to SQL
injection attacks on anything that he is not specifically
validating. And I'm absolutely sure that he has identified every
location where input needs to be validated, and that it is
impossible to get past the level of validation that he's doing, so
the site is completely secure! Just like the last time he claimed
that (and the time before, and the time before that ...).


Not to mention the idiocy of exposing your web server logs to the
outside world ... (no - I didn't go there - I want no chance of getting
malware from his site).

Tim Delaney



It was necessary post post web server's logs by doing
tail -f '/usr/local/apache/logs/error_log'

so to display the error message i got.

Also i never claimed i was a professional coder, i am an amateur at a 
beginner level and i do it out of hobby.


I could have designed my website in a CMS( wordpress, joomla) but i like 
programming and wanted to design and learn to code at the same time.


Since i'm an idiot as you call me try to hack it yourself since you are 
so smart.


And i don;t think it was an sql injection by the way.
It was just a manipulation of the 'page' variable my script is using.
Hacker was able to pass bogus info to that variable.

I believe he passed values to var 'page' via URL like

http://superhost.gr/?page='

--
https://mail.python.org/mailman/listinfo/python-list


Re: To whoever hacked into my Database

2013-11-07 Thread Chris Angelico
On Fri, Nov 8, 2013 at 9:56 AM, Νίκος Αλεξόπουλος nikos.gr...@gmail.com 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 means you
make money - that is, that you either get a salary for it or you have
paying customers. That's what we're objecting to, because we think
that you shouldn't - in fact, you *are* an amateur (doing it because
you love it) and you *should be* a non-professional (doing it for no
money); even though technically those words aren't opposites, they're
often treated that way.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


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, Νίκος Αλεξόπουλος nikos.gr...@gmail.com 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 means you
make money - that is, that you either get a salary for it or you have
paying customers. That's what we're objecting to, because we think
that you shouldn't - in fact, you *are* an amateur (doing it because
you love it) and you *should be* a non-professional (doing it for no
money); even though technically those words aren't opposites, they're
often treated that way.

ChrisA




But my customers, which are all friends are getting what they are paying 
for.

And that is a webpage design and a working website along with cPanel.
Its at my own domain that i'am experimenting not on server system wide 
changes.


I will improve on linux and python scripting over time, day by day
--
https://mail.python.org/mailman/listinfo/python-list


Re: To whoever hacked into my Database

2013-11-07 Thread Grant Edwards
On 2013-11-07, ?? ?? nikos.gr...@gmail.com wrote:
  8/11/2013 1:04 , ??/?? Chris Angelico :
 On Fri, Nov 8, 2013 at 9:56 AM, ?? ?? 
 nikos.gr...@gmail.com wrote:

 Also i never claimed i was a professional coder,

 But my customers,

If you have customers, then you're pretending to a professional.

 which are all friends are getting what they are paying for.

If people are paying you, then you're pretending to be a professional.

Nobody said you can't be a professional while at the same time being
completely incompetent.  One would hope the market forces don't allow
such a situation to persist, but there are an awful lot of suckers out
there...

-- 
Grant Edwards   grant.b.edwardsYow! If Robert Di Niro
  at   assassinates Walter Slezak,
  gmail.comwill Jodie Foster marry
   Bonzo??
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: To whoever hacked into my Database

2013-11-07 Thread Νίκος Αλεξόπουλος

Στις 8/11/2013 1:18 πμ, ο/η Grant Edwards έγραψε:

On 2013-11-07, ?? ?? nikos.gr...@gmail.com wrote:

 8/11/2013 1:04 , ??/?? Chris Angelico :

On Fri, Nov 8, 2013 at 9:56 AM, ?? ?? 
nikos.gr...@gmail.com wrote:



Also i never claimed i was a professional coder,



But my customers,


If you have customers, then you're pretending to a professional.


which are all friends are getting what they are paying for.


If people are paying you, then you're pretending to be a professional.

Nobody said you can't be a professional while at the same time being
completely incompetent.  One would hope the market forces don't allow
such a situation to persist, but there are an awful lot of suckers out
there...




If i was completely incompetent i wouldn't had a working website and i 
wasn't able to design my customers' webpages.


You know some basic stuff and learn along the way, thats what people do, 
we didn't all born competent and ready just like you.


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.

--
https://mail.python.org/mailman/listinfo/python-list


Re: To whoever hacked into my Database

2013-11-07 Thread Chris Angelico
On Fri, Nov 8, 2013 at 10:28 AM, Νίκος Αλεξόπουλος
nikos.gr...@gmail.com 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 ARE professional. That's
what he's saying.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


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 
 much. Its definitely possible to do, and maybe something we can look at in 
 the future, but right now we don't have the resources for that. Sorry for the 
 inconvenience!
 
 
 
 - Jonathan Kirst
 
 Lead Engineer at MetaBright
 
 
 
 On Wednesday, November 6, 2013 7:19:23 PM UTC-8, Tim Chase wrote:
 
  On 2013-11-06 17:31, John Nagle wrote:
 
  
 
MetaBright makes skill assessments to measure how talented
 
  
 
people are at different skills. And recruiters use MetaBright to
 
  
 
find outrageously skilled job candidates.  
 
  
 
   
 
  
 
   With tracking cookies blocked, you get 0 points.
 
  
 
  
 
  
 
  And with JavaScript blocked, you get bupkis. :-)
 
  
 
  
 
  
 
  I was amused that the sidebar of similar challenges suggested that
 
  
 
  the Python challenge might be similar to this one.  Ya think?  So
 
  
 
  similar that even the URL is the same...
 
  
 
  
 
  
 
  -tkc

That is easy. Please use FireFox 
plus NoScript to achieve what you 
want. 

-- 
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 pyReu.25286$ql7.11998@fx33.am4,
 Alister alister.w...@ntlworld.com 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 (*), this defines a 
function without an explicit return and which does not return None:

def foo():
   raise Exception

and, for that matter:

def bar():
   import os
   os._exit(0)  # Or variations, such as exec()

(*) and I do.
-- 
https://mail.python.org/mailman/listinfo/python-list


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 DB 
is a

female?


How do you know he isn't?

The fact that person n refers to the alleged hacker (which I suspect 
is
just an artifact of your bodged and broken python and sql code) as 
having

gender x does not mean that person n knows who the hacker is.

If using a gender specific pronoun to refer to the hacker implies
knowledge of the hacker's true identity, then as the first person to 
use
a gender specific pronoun in this thread, in the original post, with 
the
comment He is done it twice, lets see if he will make it again!, 
you

clearly know who the hacker is.

If you were actually hacked, I'd guess it was most likely sql 
injection

using a hand crafted get or post request that exploited some
vulnerability that you have carelessly posted in an internet forum 
and

then ignored advice to make secure.

--
Denis McMahon, denismfmcma...@gmail.com


Well, whoever she/he/it is, I am kind of fond of them - fancy a real 
Single Malt. I am paying...

--
https://mail.python.org/mailman/listinfo/python-list


Re: To whoever hacked into my Database

2013-11-07 Thread Steve Simmons
Ian Kelly ian.g.ke...@gmail.com wrote:
On Thu, Nov 7, 2013 at 2:20 PM, Denis McMahon
denismfmcma...@gmail.com 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 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 normally suggest a
hacker.
-- 
https://mail.python.org/mailman/listinfo/python-list

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. 

Steve S

Sent from a Galaxy far far away-- 
https://mail.python.org/mailman/listinfo/python-list


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 normally suggest a
hacker.


I just assumed he'd written himself a to-do app and couldn't be bothered 
with the hussle of creating a separate table to store its items.


--
https://mail.python.org/mailman/listinfo/python-list


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 (Exception)
  3 RAISE_VARARGS1
  6 LOAD_CONST   0 (None)
  9 RETURN_VALUE

Seeing as we're being pedantic, the function *does* return None, it's 
just that the return value is never seen because an exception is raise.

--
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 l5hfuj$m2n$1...@dont-email.me, alex23 wuwe...@gmail.com 
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.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, it's 
 just that the return value is never seen because an exception is raise.

Dead code doesn't count.
-- 
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 dreamingforw...@gmail.com 
 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 how this has anything to do with
 
 compressing arbitrary data. We already have a compact notation for
 
 representing a large number as 2^24*x+2^16*y+2^8*z+q, so I don't see
 
 how this will be any better, other than eliding NULs.
 
 
 
 ChrisA

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?
-- 
https://mail.python.org/mailman/listinfo/python-list


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


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 Chris Angelico
On Fri, Nov 8, 2013 at 1:05 PM,  jonas.thornv...@gmail.com 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
stuff more data into less space without losing some of it.

Also, please lose Google Groups, or check out what other people have
said about making it less obnoxious.

ChrisA
-- 
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 l5hh32$qf4$1...@dont-email.me, alex23 wuwe...@gmail.com 
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) does 
not return None.  I stand by that statement.  There is no possible 
codepath, no possible calling sequence, no possible execution 
environment, which will cause that function to return None.  That fact 
that one particular Python implementation happens to produce unreachable 
bytecode for returning None is meaningless.  Would you say that:

def baz():
   return None
   print I got here

is a function which prints I got here?
-- 
https://mail.python.org/mailman/listinfo/python-list


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 ros...@gmail.com wrote:
 On Fri, Nov 8, 2013 at 1:05 PM,  jonas.thornv...@gmail.com 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
 stuff more data into less space without losing some of it.

Technically, the universe could expand temporarily or reconfigure to
allow it; the question is who or what will have to shift out to allow
it?

-- 
MarkJ
Tacoma, Washington
-- 
https://mail.python.org/mailman/listinfo/python-list


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 r...@panix.com 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, no possible calling sequence, no possible execution
 environment, which will cause that function to return None.  That fact
 that one particular Python implementation happens to produce unreachable
 bytecode for returning None is meaningless.  Would you say that:

 def baz():
return None
print I got here

 is a function which prints I got here?

Granted, but I would describe this:

def foo(x):
return Hello, world!\n + str(x)

as a function which returns a string. Is it? Well, not if str raises
an exception. Even if the only arguments you can give to foo will
result in exceptions, I would still say that, per design, this is a
function that returns a string. The possibility of raising an
exception (and thus not returning anything) doesn't change a
function's return type (by which I mean more than just what C would
use as the declaration - I could just as well say Returns the name of
an employee, and the same argument would apply).

ChrisA
-- 
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:24 PM, Mark Janssen dreamingforw...@gmail.com wrote:
 On Thu, Nov 7, 2013 at 6:17 PM, Chris Angelico ros...@gmail.com wrote:
 On Fri, Nov 8, 2013 at 1:05 PM,  jonas.thornv...@gmail.com 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
 stuff more data into less space without losing some of it.

 Technically, the universe could expand temporarily or reconfigure to
 allow it; the question is who or what will have to shift out to allow
 it?

... okay, I bow to your superior power. If you can make the very
*UNIVERSE* bow to your compression algorithm, I have to admit defeat.
:D

ChrisA
-- 
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 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.thornv...@gmail.com 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
 
 stuff more data into less space without losing some of it.
 
 
 
 Also, please lose Google Groups, or check out what other people have
 
 said about making it less obnoxious.
 
 
 
 ChrisA

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 out, the hard part is to find a generic arithmetic encoding.

I am not sure if it is just stupidness or laziness that prevent you from seeing 
that 4^8=65536.
-- 
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:25 PM,  jonas.thornv...@gmail.com 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 out, the hard part is to find a generic arithmetic 
 encoding.

 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 rendered efficiently.

Maybe what you can do is render a large number of small subsets of
numbers efficiently. (Let's say all instances of integer^integer, and
all cases of Fibonacci numbers.) You'll still have some holes in
between which you can't render as tidily, and these are the ones where
the best representation is the raw one, plus a small tag saying that
it's raw. That's how most compression algorithms work.

Also, please don't swear. When I described Google Groups posts as
obnoxious, I was using the word in a strictly correct way, and that
is not an invitation for profanity. Of course, if you want to be seen
as *yourself* obnoxious, that's one of the easier ways to accomplish
that.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


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, and 
then go trim off the fat that wasn't called for. If not that, you really have 
to take ownership of the whole build process (e.g. as Debian and others do). 
Thanks to Ned and others for helping along the way.

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 here and there. But I don't see where they get summarized or 
anything. I guess I can try to capture the output and grep through it. I'm 
curious how people use the make install. Looking to bootstrap off of other's 
experience, if any has some willing to share.


asideI 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 python-dev is for developing the next version of python (3.4 at the 
moment). They're probably the ones that really know these answers more than the 
lay python developer though. It's too bad there's not a forum in between to 
share/ask for help with these kinds of things./aside


--Travis Griggs
I multiply all estimates by pi to account for running around in circles
-- 
https://mail.python.org/mailman/listinfo/python-list


  1   2   3   >