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

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 def50200352f5dc4bd8181a9daebbf4f9177fe725111a5a479d64636d01c2a10074e0c6

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
; <mailto:pyt...@mrabarnett.plus.com>>> wrote: > > > > > >     On 2019-08-04 09:29, aishan0...@gmail.com > > <mailto:aishan0...@gmail.com> > > >     <mailto:aishan0...@gmail.com > > <mailto:aishan0...@gmail.com>> w

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
; <mailto:pyt...@mrabarnett.plus.com>>> wrote: > > > > > >     On 2019-08-04 09:29, aishan0...@gmail.com > > <mailto:aishan0...@gmail.com> > > >     <mailto:aishan0...@gmail.com > > <mailto:aishan0...@gmail.com>> w

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
il.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 a

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
: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 re

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
es. > > Could anyone kindly help with my code? I have been stuck for weeks and really need help.. > > Please refer to this link: > https://stackoverflow.com/questions/57319707/how-to-compare-words-from-txt-file-against-words-in-xlsx-file-via-python-i-wi >

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
://stackoverflow.com/questions/57319707/how-to-compare-words-from-txt-file-against-words-in-xlsx-file-via-python-i-wi Any help is greatly appreciated really!! First of all, in this line: folder_path1 = os.chdir("C:/Users/xxx/Documents//Test python dict") it changes the current working direct

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
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.com/questions/57319707/how-to-compare-words-from

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

How to compare timestamps in python

2018-10-23 Thread Asad
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 is corrupt check for cause could no

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,

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

2017-11-21 Thread Heli
Dear all, 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, but it does not work

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 o

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 lis

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

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

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 ste

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

How to compare lists

2015-09-01 Thread Jahn
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.g Thanks -- https

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? --

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
not so I think sorting is required, but if i compare line by line that will be good, I am thinking in this way... On Mon, May 27, 2013 at 10:21 AM, rusi wrote: > On May 27, 9:32 am, Avnesh Shakya wrote: > > hi, > > how to compare two json file line by line using python? Actual

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= op

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

2013-05-26 Thread Avnesh Shakya
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 = newJsonFile.readlines() print ne

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

how to compare two fields in python

2013-04-30 Thread upendra kumar Devisetty
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 in an object1 else put that field in a different object2

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

how to compare below 2 json structure in python

2012-06-21 Thread hisan
sample_json1={{ "globalControlId": 72, "value": 0, "controlId": 2 }, { "globalControlId": 77, "value": 3, "controlId": 7 } } sample_json2={ { "globalControlId": 77, "value": 3, "controlId": 7 }, { "globalContr

Re: how to compare...

2007-02-13 Thread jairodsl
A vs G, B vs H, C vs I, D vs J > > A vs F, B vs G, C vs H, D vs I, E vs J > > B vs F, C vs G, D vs H, E vs I > > C vs F, D vs G, E vs H > > D vs F, E vs G > >

Re: how to compare...

2007-02-13 Thread Gerard Flanagan
vs F, C vs G, D vs H, E vs I > C vs F, D vs G, E vs H > D vs F, E vs G > E vs F > Could someone give me any idea how to compare(or print) both list in > this way ??? Thanks a lot !!! > > jDSL def interleave( X, Y ): for i

Re: how to compare...

2007-02-12 Thread James Stroud
t;> >> A B C D E >> F G H I J >> >> B C D E >> F G H I >> >> C D E >> F G H >> >> D

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
B vs F, C vs G, D vs H, E vs I > C vs F, D vs G, E vs H > D vs F, E vs G > E vs F > (snipped) > Could someone give me any idea how to compare(or print) both list in > this way ??? Thanks a lot !!! > > jDSL s1 =

Re: how to compare...

2007-02-12 Thread James Stroud
F G H I > > C D E > F G H > > D E > F G > > E > F > > Could someone give me any idea how to compare(or print) both list in > this way ??? Thanks a lot !!! > > jDSL > for i in xrange(1, len(S1)+1): print S1[0:i] print S2[-i:] print Am I really the first person to respond to this? -- http://mail.python.org/mailman/listinfo/python-list

how to compare...

2007-02-12 Thread jairodsl
A B C D E F G H I J B C D E F G H I C D E F G H D E F G E F Could someone

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

How to compare to directories?

2006-09-12 Thread could . net
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 in python? Thank you! -- http://mail.p

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

How to compare files

2005-07-01 Thread Lad
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 without '\n' are the sa

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

How to compare two directories?

2005-06-28 Thread could ildg
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 wonder if there is a ready-t