How to compare in python an input value with an hashed value in mysql table?

2020-01-13 Thread admin
I have a wordpress 5.3 websites which sell a software with license key.

The license key is encrypted and stored in Mysql table. there are 2 columns 
"license" and "hash":

license_key   
def50200352f5dc4bd8181a9daebbf4f9177fe725111a5a479d64636d01c2a10074e0c645abe898dea18210af563a5334288420551ab61c18ca4506cd03aa5d2bdd40933ddf7ca4d4b61b1c0f58a3830cbe0891cf4ff526311d5d637a55a574eca2c3a1b487b56

hash
9498cbf8bf00d6c55e31f98ba6d8294afa3127a84f31aa622c4158ac7377c6dd


My python program get an input for user (the license key in string without any 
encrypton) and need to compare it with the official license key stored in Mysql 
database of our Wordpress website.

I read a lot of hashlib python, functions and methods. But I didn't find 
anywhere how could I "hash" the string input typed by user with some hash 
values from the table, in order to compare both values (the input license and 
the license stored in mysql table).


This topic 
https://stackoverflow.com/questions/1183161/to-sha512-hash-a-password-in-mysql-database-by-python
  gave me a lot of information but didn't fix my issue.

Anyone has any idea how to proceed?

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


share with friends

2012-10-09 Thread admin
HotNet1

hi, 

join small social bookmarking and share best links with pepole.

Please share your friends.We are waiting for you. 
thank you 
HotNet1 team 

http://www.hotnet1.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: write a bot

2012-05-13 Thread admin lewis
2012/5/14 Emile van Sebille :
> On 5/13/2012 2:25 PM admin lewis said...
>
>> Hi,
>> I want write a bot in python, it should explore a site, click links
>> and extract some info. I know mechanize but I would like to know if
>> there is something better for performance.
>
>
> Have you looked into Scrapy?  http://scrapy.org

No, and it looks exactly what I'm looking for.
thanks :)

>
> Emile
>

luigi



-- 
Linux Server, Microsoft Windows 2003/2008 Server, Exchange 2007
http://predellino.blogspot.com/
-- 
http://mail.python.org/mailman/listinfo/python-list


write a bot

2012-05-13 Thread admin lewis
Hi,
I want write a bot in python, it should explore a site, click links
and extract some info. I know mechanize but I would like to know if
there is something better for performance.
Thanks a lot lewis.


-- 
Linux Server, Microsoft Windows 2003/2008 Server, Exchange 2007
http://predellino.blogspot.com/
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: dpkg status

2012-03-18 Thread admin lewis
2012/3/18 Vincent Vande Vyvre :
>
>
> OK, you know apt, I see (your blog).
>
> But packages have no url, just repositery.
>
> I see your link python-apt, this doc is very minimalistic, maybe you can
> find repositeries infos of packages with aptsources.distinfo, but methods
> are not documented.
>
> http://apt.alioth.debian.org/python-apt-doc/library/aptsources.distinfo.html#module-aptsources.distinfo
>

Well no, I need something like the following:

import apt_pkg

tagf = apt_pkg.TagFile(open('/home/lightbox/status'))
for section in tagf:

indirizzo="http://it.archive.ubuntu.com/ubuntu/pool/main/"+section['Package'][0]+'/'+section['Package']+'/'+section['Package']+'_'+section['Version']+'_'+section['Architecture']+'.deb'+'\n'
print indirizzo

with the following output:
http://it.archive.ubuntu.com/ubuntu/pool/main/t/texlive-lang-all/texlive-lang-all_2009-3_all.deb
http://it.archive.ubuntu.com/ubuntu/pool/main/x/xserver-xorg-input-vmmouse/xserver-xorg-input-vmmouse_1:12.7.0-2_i386.deb
http://it.archive.ubuntu.com/ubuntu/pool/main/l/libmono-system-data4.0-cil/libmono-system-data4.0-cil_2.10.5-1_all.deb

but the best sould be that the script make the download of deb automatically..
infact if u see the output u will see that is not correct.. because the section
texlive-lang-all doesn't exist and the correct one is texlive-lang
I dont know if i have to connect to the cache of apt or simply i need
of source.list..
thanks for any help
luigi

P.S. the /home/lightbox/status is a partial file of /var/lib/dpkg/status

-- 
Linux Server, Microsoft Windows 2003/2008 Server, Exchange 2007
http://predellino.blogspot.com/
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: dpkg status

2012-03-18 Thread admin lewis
2012/3/18 Vincent Vande Vyvre :
> Le 18/03/12 13:03, admin lewis a écrit :
>
> Hi,
>
> What url ?, Sources, maintainer?
>

No, I need of to open /var/lib/dpkg/status and extract the packages
and its url to download it...
I know that there is python-apt
http://apt.alioth.debian.org/python-apt-doc/library/index.html
but I dont understand how it works..



-- 
Linux Server, Microsoft Windows 2003/2008 Server, Exchange 2007
http://predellino.blogspot.com/
-- 
http://mail.python.org/mailman/listinfo/python-list


dpkg status

2012-03-18 Thread admin lewis
Hi,
anyone know what library i have to use to manage /var/lib/dpkg/status
file to get url of packages ?
thanks lewis

-- 
Linux Server, Microsoft Windows 2003/2008 Server, Exchange 2007
http://predellino.blogspot.com/
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: how to run python-script from the python promt? [absolute newbie]

2011-12-20 Thread Admin

Am 18.12.2011 12:00, schrieb nukeymusic:

How can I load a python-script after starting python in the
interactive mode?
I tried with

load 'myscript.py'
myscript.py
myscript


but none of these works, so the only way I could work further until
now was copy/paste line per line of my python-script to the
interactive mode prompt
I do know how to run the script non-interactively, but what I want to
do is adding lines to the code I have written thus far in interactive
mode.

thanks in advance
nukey
just go to the folder there there script is located and then do 
"scriptname.py"

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


Running Python Demo on the Web?

2011-09-05 Thread Python Fiddle Admin
Python has been ported to the web browser at pythonfiddle.com. Python
Fiddle can import snippets of code that you are reading on a web page
and run them in the browser. It supports a few popular libraries.

Another common usage is to post code on the site to allow other people
to play around with it. Also, it can be used to demonstrate a working
program.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Xah's Edu Corner: Teach Ourself Programing In Ten Years?

2010-01-02 Thread Wanna-Be Sys Admin
Alain Picard wrote:

> [Aplogies about the wild cross-post follow-up --- I guess the topic
> [really
> is relevant to most programming communities.]

No, it's not relevant.  Xah Lee is a self spammer, in that he spams
about himself, tries to get people hyped up about him and thinks he's
impressing people (he's not).  He continually cross posts to the
language groups he thinks he knows about (often to Perl, where there's
no mention of Perl, other than he's used it once or so).  He knows very
little about any of these languages, but likes to talk a whole lot, as
in talking up about himself and how he thinks himself a genius.  If you
could please not cross post his self-spamming replies to the Python and
Perl groups, at least, I'd appreciate it.  Most people know about him
and have filtered his posts by now.  Thanks.
-- 
Not really a wanna-be, but I don't know everything.
-- 
http://mail.python.org/mailman/listinfo/python-list


Python documentation

2008-05-02 Thread admin
Hello,

I have been learning python for some time using the dive into python
book. I am interested to know if anyone can recommend a book which
covers more advanced topics like threading and potentially GUI style
coding.

Regards,

Ronald
--
http://mail.python.org/mailman/listinfo/python-list


Decent 2D animation with Windows.Forms GUI

2008-03-25 Thread Admin.397
Hi folks, I'm running a simple 2D game using Pygame but really would
like a decent GUI and am currently testing out wxPython. As it turns
out, I can't get Pygame working in a wxPython canvas and instead
turned to openGL - which is painfully slow at reading through an array
of points.

Can anyone advise on a combination of a good GUI (wxPython really
takes the cake here, plugging into the OSes GUI - does anything else
do that?) and some form of 2D animation package that has a fair bit of
horsepower behind it, that can fit into said GUI?

Failing that, any advice on speeding up PyopenGL?

I appreciate your assistance!
-- 
http://mail.python.org/mailman/listinfo/python-list


Select as dictionary...

2007-10-01 Thread Besturk.Net Admin
Hi..
I am using python with postgresql.
And i have a query :

aia.execute("SELECT id, w from list")
links=aia.fetchall()
print links

and result
[(1, 5), (2,5)...] (2 million result)

I want to see this result directly as a dictionary:

{1: 5, 2: 5 .}

How do i select in this format ?

I'm sorry my bad english.

 King Regards...

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


Wikicodia - The code snippets wiki

2007-07-27 Thread Wikicodia Admin
Dears,

Wikicodia is a wiki based project for sharing code snippets. We're
collecting large number of code snippets for all code-based
programming languages, scripts, shells and consoles. We wish you could
help us. We're still BETA. Your suggestions, ideas and criticisms are
very welcomed. We're waiting for you contributions. You can easily
share and search our snippet using our Google Desktop Gadget. Share
your Python snippets to help the world :)

http://www.wikicodia.com

Thanks
Wikicodia Admin

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


[ANN] repocaster.com : RSS feeds of Subversion/CVS repositories

2006-03-06 Thread Admin
Hi there!,

I just deployed my first web application.  It allows the user to
register Subversion/CVS repositories, which are then tracked
periodically and RSS feeds generated with all the recent changes.

It's free and very easy to use.  Just add your repository and
subscribe to the generated feed, no annoying registration/login
required.  Or browse existing repositories from all users and subscribe
to
their feeds.

Check it out at www.repocaster.com!

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


Your message to Veritas-bu awaits moderator approval

2005-10-25 Thread veritas-bu-admin
Your mail to 'Veritas-bu' with the subject

MAIL SYSTEM ERROR - RETURNED MAIL

Is being held until the list moderator can review it for approval.

The reason it is being held:

Post by non-member to a members-only list

Either the message will get posted to the list, or you will receive
notification of the moderator's decision.
-- 
http://mail.python.org/mailman/listinfo/python-list


Request to mailing list Lesstif rejected

2005-10-21 Thread lesstif-admin
Your request to the Lesstif mailing list

Posting of your message titled "hello"

has been rejected by the list moderator.  The moderator gave the
following reason for rejecting your request:

"Non-members are not allowed to post messages to this list."

Any questions or comments should be directed to the list administrator
at:

[EMAIL PROTECTED]
-- 
http://mail.python.org/mailman/listinfo/python-list


You python-list@python.org are not member (linux-sh ML)

2005-09-28 Thread linux-sh-admin
You are not a member of this mailing list <[EMAIL PROTECTED]>.

If you know the general guide of this list, please send mail with
the mail body 

guide

to the address

[EMAIL PROTECTED]

where guide is equal to GUIDE for case insensitive.


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


Re: How to send a query to the browser from time to time?

2005-07-20 Thread Admin
On Tue, 19 Jul 2005 19:43:25 -0300, [EMAIL PROTECTED] <[EMAIL PROTECTED]>  
wrote:

> otherwise, my only suggestion is to use another protocol instead of
> http.

What do you suggest?


-- 
Thanks,

Admin.
Want to buy me a book? http://tinyurl.com/78xzb :)
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to send a query to the browser from time to time?

2005-07-20 Thread Admin
On Wed, 20 Jul 2005 00:26:13 -0300, Mike Meyer <[EMAIL PROTECTED]> wrote:

> AJAX is overkill for this. If you just want to automatically refresh
> the page automatically, you can use a meta refresh tag.

Reloading the page automatically would be even worse because it would  
spend a lot of bandwidth, it would reload all the page and graphics all  
the time.

-- 
Thanks,

Admin.
Want to buy me a book? http://tinyurl.com/78xzb :)
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to send a query to the browser from time to time?

2005-07-19 Thread Admin
On Tue, 19 Jul 2005 10:03:48 -0300, Simon Dahlbacka  
<[EMAIL PROTECTED]> wrote:

> I'd go for the ajax route if you don't need to support old browsers.

I already use AJAX on several applications, but I don't want to use it in  
this one because it would poll the server a lot and it may bring the  
server down if there are many people using the chat application at the  
same time (too many queries to the database).

-- 
Thanks,

Admin.
Want to buy me a book? http://tinyurl.com/78xzb :)
-- 
http://mail.python.org/mailman/listinfo/python-list


How to send a query to the browser from time to time?

2005-07-19 Thread Admin
I am creating a chat application like Messenger for the web (using the  
browser) and I'm wondering if there is a way to receive new messages from  
time to time from the server other than refreshing the page each 5 sec.

If there were a way to have the server-side application send new messages  
to the browser this would be awesome because it would save dramatically on  
bandwidth. The application would consume bandwidth only when there are new  
messages. There would be no communication client-server until people write  
a new message.

Do you know if it's possible?

-- 
Thanks,

Admin.
Want to buy me a book? http://tinyurl.com/78xzb :)
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: What is your favorite Python web framework?

2005-07-18 Thread Admin
On Mon, 18 Jul 2005 16:21:37 -0300, Jeff Shell <[EMAIL PROTECTED]>  
wrote:

> Don't discard Zope 3 becaue of what you've heard about Zope 2. Zope 3
> is a very different animal.

Are Zope 3's learning curve + speed of development a lot faster than  
previous versions?

-- 
Thanks,

Admin.
Want to buy me a book? http://tinyurl.com/78xzb :)
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: What is your favorite Python web framework?

2005-07-18 Thread Admin
On Mon, 18 Jul 2005 10:06:21 -0300, Peter Hansen <[EMAIL PROTECTED]> wrote:

> I'm not familiar with this expression.  What do you mean by "black  
> horse"?

That will help me too :)

-- 
Thanks,

Admin.
Want to buy me a book? http://tinyurl.com/78xzb :)
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: What is your favorite Python web framework?

2005-07-18 Thread Admin
On Mon, 18 Jul 2005 08:45:22 -0300, JZ <[EMAIL PROTECTED]> wrote:

> Much more stable and much faster is e.g. Mygty (http://myghty.org) It is
> about 2x faster then CherryPy. Also faster than CherryPy is Webware and
> SkunkWeb. I did not check how fast is Django... It is fresh framework for
> open source community.

Mmmh... I really don't know which one is better :(

-- 
Thanks,

Admin.
Want to buy me a book? http://tinyurl.com/78xzb :)
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: What is your favorite Python web framework?

2005-07-17 Thread Admin
On Sun, 17 Jul 2005 19:15:49 -0300, Sybren Stuvel  
<[EMAIL PROTECTED]> wrote:

> http://www.unrealtower.org/mycheetah

"Error 404 while looking up your page AND when looking for a suitable 
404  
page. Sorry!
No such file /var/www/www.unrealtower.org/compiled/error404.py"

I can't express myself on Cheetah, sorry!!

-- 
Thanks,

Admin.
Want to buy me a book? http://tinyurl.com/78xzb :)
-- 
http://mail.python.org/mailman/listinfo/python-list


What is your favorite Python web framework?

2005-07-17 Thread Admin
I am doing some research for a Python framework to build web applications.
I have discarted Zope because from what I've read, the learning curve is  
too steep, and it takes more time to build applications in general with  
Zope.
I have kept the following:

  - PyWork - http://pywork.sourceforge.net (Not sure if it's mature)
  - Django - http://www.djangoproject.com (Looks interesting)
  - CherryPy - http://www.cherrypy.org (Unsure)

I have also found a more comprehensive list here:  
http://wiki.python.org/moin/WebProgramming
But I'd like to know your opinion on what you think is best. The Python  
framework I'll use will be to build an e-commerce application looking like  
Amazon.com
I favor speed of development, intensive OO development, performance under  
heavy load, short learning curve, good documentation and community.

-- 
Thanks,

Admin.
Want to buy me a book? http://tinyurl.com/78xzb :)
-- 
http://mail.python.org/mailman/listinfo/python-list


Paranoider Deutschenmoerder kommt in Psychiatrie

2005-05-14 Thread admin
Lese selbst:
http://brandenburg.rz.fhtw-berlin.de/poetschke.html
-- 
http://mail.python.org/mailman/listinfo/python-list


Your message to plucker-dev awaits moderator approval

2004-12-22 Thread plucker-dev-admin
Your mail to 'plucker-dev' with the subject

Delivery ([EMAIL PROTECTED])

Is being held until the list moderator can review it for approval.

The reason it is being held:

Post by non-member to a members-only list

Either the message will get posted to the list, or you will receive
notification of the moderator's decision.
-- 
http://mail.python.org/mailman/listinfo/python-list