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

2020-01-16 Thread centredeformationfrance
Thank you so much Pieter! Danku well Where can I write you a review 5/5! Linkedin? Google business? Facebook page? Thank you!Thank you!Thank you!Thank you!Thank you! X 1! :-) -- https://mail.python.org/mailman/listinfo/python-list

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

2020-01-16 Thread Pieter van Oostrum
Growth Hacking Formation writes: > Thanks for helping. That is what I thought. > Lets say it is the case and I get the key. We know it uses sha256 and it > apply to the ascii code. > What should be the python code in this scenario? > I am novice and the hash python module is a bit too complex fo

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

2020-01-14 Thread Chris Angelico
On Wed, Jan 15, 2020 at 5:41 PM Growth Hacking Formation wrote: > > Thanks for helping. That is what I thought. > Lets say it is the case and I get the key. We know it uses sha256 and it > apply to the ascii code. > What should be the python code in this scenario? > I am novice and the hash pytho

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

2020-01-14 Thread Growth Hacking Formation
Thanks for helping. That is what I thought. Lets say it is the case and I get the key. We know it uses sha256 and it apply to the ascii code. What should be the python code in this scenario? I am novice and the hash python module is a bit too complex for me. I read the doc. Thanks. -- https://m

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

2020-01-14 Thread Chris Angelico
On Wed, Jan 15, 2020 at 10:54 AM Dennis Lee Bieber wrote: > > On Tue, 14 Jan 2020 10:02:08 -0800 (PST), Growth Hacking Formation > declaimed the following: > > > > > >Hello @formationgrowthhacking, > >thank you for your message and for using my plugin. > >For license key hashi

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

2020-01-14 Thread Growth Hacking Formation
Thanks for your help. Litle details, the license key is goldQ3T8-1QRD-5QBI-9F22 and it is stored in database already encrypted. License key is not saved in database with clear text. It is already encrypted. I am not sure what is this hash column for? License key => def50200962018b6bbed50fc53a

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

2020-01-14 Thread dieter
ad...@formationgrowthhacking.com writes: > 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 > def50200352f5dc4bd

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

2020-01-14 Thread Pieter van Oostrum
ad...@formationgrowthhacking.com writes: > 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 > def50200352f5dc4b

Re: How to compare words from .txt file against words in .xlsx file via Python? I will then extract these words by writing it to a new .xls file

2019-08-04 Thread aishan0403
On Monday, 5 August 2019 07:21:52 UTC+8, MRAB wrote: > On 2019-08-05 00:10, A S wrote: > > Oh... By set did you mean by using python function set(variable) as > > something? > > > > So sorry for bothering you.. > > > Make it a set (outside the loop): > >     dictionary = set() > > and then add

Re: How to compare words from .txt file against words in .xlsx file via Python? I will then extract these words by writing it to a new .xls file

2019-08-04 Thread aishan0403
On Monday, 5 August 2019 07:21:52 UTC+8, MRAB wrote: > On 2019-08-05 00:10, A S wrote: > > Oh... By set did you mean by using python function set(variable) as > > something? > > > > So sorry for bothering you.. > > > Make it a set (outside the loop): > >     dictionary = set() > > and then add

Re: How to compare words from .txt file against words in .xlsx file via Python? I will then extract these words by writing it to a new .xls file

2019-08-04 Thread MRAB
On 2019-08-05 00:10, A S wrote: Oh... By set did you mean by using python function set(variable) as something? So sorry for bothering you.. Make it a set (outside the loop):     dictionary = set() and then add the words to it (inside the loop):     dictionary.add(cell_range.value) (Maybe

Re: How to compare words from .txt file against words in .xlsx file via Python? I will then extract these words by writing it to a new .xls file

2019-08-04 Thread MRAB
On 2019-08-04 23:52, A S wrote: Previously I had tried many methods and using set was one of them but it didn't work out either.. I even tried to append it to a list but it's not working out.. "not working out"? Well, that gives me no clue as to what you were doing wrong! On Mon, 5 Aug 2019

Re: How to compare words from .txt file against words in .xlsx file via Python? I will then extract these words by writing it to a new .xls file

2019-08-04 Thread MRAB
On 2019-08-04 18:53, A S wrote: Hi Mrab, Thank you so much for your detailed response, I really really appreciate it as I have been constantly trying to seek help regarding this issue. Yes, I figured that the dictionary is only capturing the last value :( I've been trying to get it to captur

Re: How to compare words from .txt file against words in .xlsx file via Python? I will then extract these words by writing it to a new .xls file

2019-08-04 Thread MRAB
On 2019-08-04 09:29, aishan0...@gmail.com wrote: I want to compare the common words from multiple .txt files based on the words in multiple .xlsx files. Could anyone kindly help with my code? I have been stuck for weeks and really need help.. Please refer to this link: https://stackoverflow.c

Re: How to compare timestamps in python

2018-10-23 Thread MRAB
On 2018-10-23 16:18, Asad wrote: Hi All , I have just playing with python , I am stuck for the following problem : file1 : Patching tool version 12.1.0.2.0 Production on Fri Feb 23 01:10:28 2018 Bootstrapping registry and package to current versions...done statement ERR-2001: table

Re: how to compare and check if two binary(h5) files numerically have the same contents

2017-11-21 Thread Cameron Simpson
On 21Nov2017 02:04, Heli wrote: I am trying to compare the contents of two binary files. I use python 3.6 filecomp comparing same name files inside two directories. results_dummy=filecmp.cmpfiles(dir1, dir2, common, shallow=True) The above line works for *.bin file I have in both directories,

Re: How to compare lists

2015-09-01 Thread Rustom Mody
On Tuesday, September 1, 2015 at 12:54:08 PM UTC+5:30, Jahn wrote: > 1. > How can I save 256 lists, each list has 32 values( hexadecimal numbers) > 2. > How to compare the saved lists with another 256 lists ( that are read online > and have the > same structure as the list one)? > ( the first lis

Re: How to compare lists

2015-09-01 Thread Denis McMahon
On Tue, 01 Sep 2015 07:08:48 +0200, Jahn wrote: > 1. > How can I save 256 lists, each list has 32 values( hexadecimal numbers) > 2. > How to compare the saved lists with another 256 lists ( that are read > online and have the same structure as the list one)? > ( the first list must be saved in the

Re: How to compare lists

2015-09-01 Thread Laura Creighton
In a message of Tue, 01 Sep 2015 07:08:48 +0200, "Jahn" writes: >1. >How can I save 256 lists, each list has 32 values( hexadecimal numbers) >2. >How to compare the saved lists with another 256 lists ( that are read online >and have the >same structure as the list one)? >( the first list must be

Re: How to compare lists

2015-09-01 Thread jmp
On 09/01/2015 07:08 AM, Jahn wrote: 1. How can I save 256 lists, each list has 32 values( hexadecimal numbers) 2. How to compare the saved lists with another 256 lists ( that are read online and have the same structure as the list one)? ( the first list must be saved in the previous step) E.

Re: How to compare lists

2015-09-01 Thread Peter Otten
Jahn wrote: > 1. > How can I save 256 lists, each list has 32 values( hexadecimal numbers) > 2. > How to compare the saved lists with another 256 lists ( that are read > online and have the same structure as the list one)? > ( the first list must be saved in the previous step) You are giving det

Re: How to compare lists

2015-09-01 Thread Chris Angelico
On Tue, Sep 1, 2015 at 3:08 PM, Jahn wrote: > 1. > How can I save 256 lists, each list has 32 values( hexadecimal numbers) > 2. > How to compare the saved lists with another 256 lists ( that are read online > and have the > same structure as the list one)? > ( the first list must be saved in the

Re: how to compare two json file line by line using python?

2013-05-28 Thread Grant Edwards
On 2013-05-27, Steven D'Aprano wrote: > On Sun, 26 May 2013 21:32:40 -0700, Avnesh Shakya wrote: > >> But I want to compare line by line and value by value. but i found that >> json data is unordered data, so how can i compare them without sorting >> it. please give me some idea about it. I am new

Re: how to compare two json file line by line using python?

2013-05-27 Thread Denis McMahon
On Sun, 26 May 2013 21:32:40 -0700, Avnesh Shakya wrote: >how to compare two json file line by line using python? Actually I am >doing it in this way.. Oh what a lot of homework you have today. Did you ever stop to think what the easiest way to compare two json datasets is? -- Denis M

Re: how to compare two json file line by line using python?

2013-05-26 Thread Avnesh Shakya
Thanks a lot, I got it. On Mon, May 27, 2013 at 11:03 AM, Steven D'Aprano < steve+comp.lang.pyt...@pearwood.info> wrote: > On Sun, 26 May 2013 21:32:40 -0700, Avnesh Shakya wrote: > > > But I want to compare line by line and value by value. but i found that > > json data is unordered data, so ho

Re: how to compare two json file line by line using python?

2013-05-26 Thread Steven D'Aprano
On Sun, 26 May 2013 21:32:40 -0700, Avnesh Shakya wrote: > But I want to compare line by line and value by value. but i found that > json data is unordered data, so how can i compare them without sorting > it. please give me some idea about it. I am new for it. I want to check > every value line b

Re: how to compare two json file line by line using python?

2013-05-26 Thread Avnesh Shakya
Actually, I am extracting data from other site in json format and I want to put it in my database and when I extract data again then I want to compare last json file, if these are same then no issue otherwise i will add new data in database, so here may be every time data can be changed or may be n

Re: how to compare two json file line by line using python?

2013-05-26 Thread rusi
On May 27, 9:32 am, Avnesh Shakya wrote: > hi, >    how to compare two json file line by line using python? Actually I am > doing it in this way.. > > import simplejson as json > def compare(): >     newJsonFile= open('newData.json') >     lastJsonFile= open('version1.json') >     newLines = newJ

Re: how to compare two fields in python

2013-04-30 Thread Fábio Santos
> The data was sorted and so duplicates will not appear anywhere in the dataframe. > I guess that's it. Use the standard csv module and itertools.groupby. Groupby will produce a list of grouped objects. So you can group by the first column by supplying a key function which just returns the first c

Re: how to compare two fields in python

2013-04-30 Thread upendra kumar Devisetty
The data was sorted and so duplicates will not appear anywhere in the dataframe. The values does not have significance and can be ignored safely. Thanks Upendra On Tuesday, April 30, 2013 11:19:56 AM UTC-7, Tim Chase wrote: > On 2013-04-30 10:41, upendra kumar Devisetty wrote: > > > I have a ve

Re: how to compare two fields in python

2013-04-30 Thread Tim Chase
On 2013-04-30 10:41, upendra kumar Devisetty wrote: > I have a very basic question in python. I want to go through each > line of the a csv file and compare to see if the first field of > line 1 is same as first field of next line and so on. If it finds a > match then i would like to put that field

Re: how to compare two fields in python

2013-04-30 Thread Fábio Santos
... And collections.Counter. This is useful for (you guessed it) counting. Maybe itertools.groupby will be helpful as well (it could be used to give you your data grouped by the first column of data), but it could be a tad advanced for you if you are not too familiar with iterators. -- http://mai

Re: how to compare two fields in python

2013-04-30 Thread Joel Goldstick
On Tue, Apr 30, 2013 at 1:41 PM, upendra kumar Devisetty < upendrakumar.devise...@googlemail.com> wrote: > I have a very basic question in python. I want to go through each line of > the a csv file and compare to see if the first field of line 1 is same as > first field of next line and so on. If

Re: how to compare below 2 json structure in python

2012-06-21 Thread MRAB
On 21/06/2012 19:16, hisan wrote: sample_json1={{ "globalControlId": 72, "value": 0, "controlId": 2 }, { "globalControlId": 77, "value": 3, "controlId": 7 } } sample_json2={ { "globalControlId": 77, "value": 3,

Re: how to compare below 2 json structure in python

2012-06-21 Thread John Gordon
In hisan writes: > sample_json1={{ >"globalControlId": 72, >"value": 0, >"controlId": 2 >}, >{ >"globalControlId": 77, >"value": 3, >"controlId": 7 >} > } > sample_json2={ >{ >"globalControlId": 77, >"value": 3, >

Re: how to compare...

2007-02-13 Thread jairodsl
On Feb 13, 4:30 am, "Gerard Flanagan" <[EMAIL PROTECTED]> wrote: > On Feb 13, 5:03 am, "jairodsl" <[EMAIL PROTECTED]> wrote: > > > > > Hello everybody ! > > > I have two list, they are, S1=['A','B','C','D','E'], and > > S2=['F','G','H','I','J'], but i have to compare both in this way: > > >

Re: how to compare...

2007-02-13 Thread Gerard Flanagan
On Feb 13, 5:03 am, "jairodsl" <[EMAIL PROTECTED]> wrote: > Hello everybody ! > > I have two list, they are, S1=['A','B','C','D','E'], and > S2=['F','G','H','I','J'], but i have to compare both in this way: > > A vs J > A vs I, B vs J > A vs H,

Re: how to compare...

2007-02-12 Thread James Stroud
James Stroud wrote: > jairodsl wrote: > >> Hello everybody ! >> >> >> I have two list, they are, S1=['A','B','C','D','E'], and >> S2=['F','G','H','I','J'], but i have to compare both in this way: >> >> A vs J >> A vs I, B vs J >> A vs H, B vs

Re: how to compare...

2007-02-12 Thread Gabriel Genellina
En Tue, 13 Feb 2007 01:03:07 -0300, jairodsl <[EMAIL PROTECTED]> escribió: > I have two list, they are, S1=['A','B','C','D','E'], and > S2=['F','G','H','I','J'], but i have to compare both in this way: > > A vs J > A vs I, B vs J > A vs H, B v

Re: how to compare...

2007-02-12 Thread attn . steven . kuo
On Feb 12, 8:03 pm, "jairodsl" <[EMAIL PROTECTED]> wrote: > Hello everybody ! > > I have two list, they are, S1=['A','B','C','D','E'], and > S2=['F','G','H','I','J'], but i have to compare both in this way: > > A vs J > A vs I, B vs J > A vs H,

Re: how to compare...

2007-02-12 Thread James Stroud
jairodsl wrote: > Hello everybody ! > > > I have two list, they are, S1=['A','B','C','D','E'], and > S2=['F','G','H','I','J'], but i have to compare both in this way: > > A vs J > A vs I, B vs J > A vs H, B vs I, C vs J > A

Re: How to compare to directories?

2006-09-13 Thread Gabriel Genellina
At Wednesday 13/9/2006 03:09, [EMAIL PROTECTED] wrote: I want to compare 2 directories: dir1 and dir2. What I want to do is to get these informations: 1. does they have the same number of files and sub-directories? 2. does each file with the same name have the same size and date information? L

Re: How to compare to directories?

2006-09-13 Thread Rob Wolfe
[EMAIL PROTECTED] wrote: > I want to compare 2 directories: dir1 and dir2. > What I want to do is to get these informations: > 1. does they have the same number of files and sub-directories? > 2. does each file with the same name have the same size and date > information? > > So, how can I do it i

Re: How to compare to directories?

2006-09-13 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, could.net wrote: > I want to compare 2 directories: dir1 and dir2. > What I want to do is to get these informations: > 1. does they have the same number of files and sub-directories? > 2. does each file with the same name have the same size and date > information? I think

Re: How to compare files

2005-07-04 Thread bruno modulix
Lad wrote: > Hi, > What is the best method for comparing two files by words? try the difflib module: http://www.python.org/doc/2.4.1/lib/module-difflib.html -- bruno desthuilliers python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for p in '[EMAIL PROTECTED]'.split('@')])" --

Re: How to compare files

2005-07-01 Thread Terry Hancock
On Friday 01 July 2005 04:39 am, Lad wrote: > Hi, > What is the best method for comparing two files by words? > I was thinking about reading files by words and compare them but a word > in one file can be linked with a new line character ( \n) > and this '\n' will cause that the words will consider

Re: How to compare files

2005-07-01 Thread Brett g Porter
Lad wrote: > Hi, > What is the best method for comparing two files by words? > I was thinking about reading files by words and compare them but a word > in one file can be linked with a new line character ( \n) > and this '\n' will cause that the words will considered to be > different( eventhough

Re: How to compare files

2005-07-01 Thread [EMAIL PROTECTED]
you could always just remove those special characters (\n \t ..), remove spaces, read both files and compare string. I don't this is the best way of doing this... but maybe a combination of this way and yours will be efficient enough - remove all problematic characters and then compare line by line

Re: How to compare two directories?

2005-06-30 Thread could ildg
Thank you~ I get it. On 6/30/05, Michael Hoffman <[EMAIL PROTECTED]> wrote: > could ildg wrote: > > I found dircmp compare only the direct dirs and files, > > and it will not do anything to the sub-directories. > > The documentation for dircmp.report_full_closure() disagrees with you. > -- > Mich

Re: How to compare two directories?

2005-06-30 Thread Michael Hoffman
could ildg wrote: > I found dircmp compare only the direct dirs and files, > and it will not do anything to the sub-directories. The documentation for dircmp.report_full_closure() disagrees with you. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: How to compare two directories?

2005-06-30 Thread could ildg
I found dircmp compare only the direct dirs and files, and it will not do anything to the sub-directories. On 6/29/05, Michael Hoffman <[EMAIL PROTECTED]> wrote: > could ildg wrote: > > I want to compare 2 directories, > > and find If all of theire sub-folders and files and sub-files are identical

Re: How to compare two directories?

2005-06-29 Thread Michael Hoffman
could ildg wrote: > I want to compare 2 directories, > and find If all of theire sub-folders and files and sub-files are identical. > If not the same, I want know which files or folders are not the same. > I know filecmp moudle has cmpfiles function and a class named dircmp, > they may help, but I