Re: get each pair from a string.

2012-10-21 Thread Vincent Davis
a chance later today. Thanks again! Vincent On Mon, Oct 22, 2012 at 12:45 AM, Emile van Sebille em...@fenx.com wrote: On 10/21/2012 11:33 AM, Vincent Davis wrote: I am looking for a good way to get every pair from a string. For example, input: x = 'apple' output 'ap' 'pp' 'pl' 'le' I

Re: get each pair from a string.

2012-10-21 Thread Vincent Davis
@vbr Thats interesting. I would never have come up with that. Vincent On Sun, Oct 21, 2012 at 3:48 PM, Vlastimil Brom vlastimil.b...@gmail.comwrote: vbr -- http://mail.python.org/mailman/listinfo/python-list

Re: get each pair from a string.

2012-10-21 Thread Vincent Davis
Kelly wrote: On Sun, Oct 21, 2012 at 12:58 PM, Vincent Davis vinc...@vincentdavis.net wrote: x = 'apple' for f in range(len(x)-1): print(x[f:f+2]) @Ian, Thanks for that I was just looking in to that. I wonder which is faster I have a large set of strings to process. I'll try some

Using pythons smtp server

2013-12-12 Thread Vincent Davis
initiate a SMTP server, send the attachment and shutdown the SMTP after. Vincent Davis -- https://mail.python.org/mailman/listinfo/python-list

Re: Using pythons smtp server

2013-12-13 Thread Vincent Davis
without installing additional software or using an external server/service? Maybe I am wrong, I thought examples like s = smtplib.SMTP('localhost') ​​ are using a local(outside of python) smtp server, like postfix. Vincent Davis 720-301-3003 On Fri, Dec 13, 2013 at 9:40 AM, Grant Edwards

Re: Using pythons smtp server

2013-12-13 Thread Vincent Davis
. Then submit the email to that address using smtplib.SMTP ​Do I have that right? ​ Vincent Davis 720-301-3003 On Fri, Dec 13, 2013 at 10:24 AM, Dennis Lee Bieber wlfr...@ix.netcom.comwrote: On Thu, 12 Dec 2013 18:01:58 -0700, Vincent Davis vinc...@vincentdavis.net declaimed the following: I have

Re: Using pythons smtp server

2013-12-13 Thread Vincent Davis
Grant, Chris Thanks !!! I guess in the end this is a bad idea, (for my purposes) I should just use my gmail account smtp server. Vincent Davis 720-301-3003 On Fri, Dec 13, 2013 at 11:15 AM, Chris Angelico ros...@gmail.com wrote: On Sat, Dec 14, 2013 at 4:13 AM, Vincent Davis vinc

Getting updates and restarting a long running url request.

2013-12-22 Thread Vincent Davis
, megablast=True, entrez_query=e_query, word_size='11', other_advanced='-G 5 -E 2') return NCBIXML.read(blast_result) Vincent Davis -- https://mail.python.org/mailman/listinfo/python-list

Re: Getting updates and restarting a long running url request.

2013-12-26 Thread Vincent Davis
and error I suppose if the for example I lost the connection to the internet but I am not really sure about that. That said after some more research I found this tread. http://lists.open-bio.org/pipermail/biopython/2013-April/008507.html Vincent Davis -- https://mail.python.org/mailman/listinfo

lookup xpath (other?) to value in html

2013-12-31 Thread Vincent Davis
. Any suggestions? Vincent Davis 720-301-3003 -- https://mail.python.org/mailman/listinfo/python-list

Re: lookup xpath (other?) to value in html

2013-12-31 Thread Vincent Davis
(the opposite of what I want) Vincent Davis On Tue, Dec 31, 2013 at 6:45 PM, Jason Friedman jsf80...@gmail.com wrote: I have a about 255 data fields that I am trying to verify on thousands of webpages. For example: value: 255,000 sqft: 1800 Since I have the correct answer

Re: lookup xpath (other?) to value in html

2013-12-31 Thread Vincent Davis
of the pages, I got this from the county on a cd, I thought defining the xpath would be easier using bs4 or http://lxml.de/ Vincent Davis 720-301-3003 On Tue, Dec 31, 2013 at 10:30 PM, Jason Friedman jsf80...@gmail.com wrote: For example this URL; http://jeffco.us/ats/displaygeneral.do?sch=001690

Re: Flip a graph

2014-01-04 Thread Vincent Davis
You might think about using an array to represent the canvas. Starting with it filled with and then for each point change it to X. The print the rows of the array. You can make the array/canvas arbitrarily large and then plot multiple different paths onto the same array. Vincent Davis 720-301

Re: Flip a graph

2014-01-04 Thread Vincent Davis
When printing the rows of the array/canvas you might add \n to the end of each row and print the canvas all at once rather than a print statement for each row. Vincent Davis 720-301-3003 On Sat, Jan 4, 2014 at 3:10 PM, Vincent Davis vinc...@vincentdavis.netwrote: You might think about using

generate De Bruijn sequence memory and string vs lists

2014-01-23 Thread Vincent Davis
] else: a = a[:t] + a[t - p] + a[t+1:] db(t + 1, p) for j in range(int(a[t - p]) + 1, k): a = a[:t] + str(j) + a[t+1:] db(t + 1, t) return sequence db(1, 1) return sequence d2 = de_bruijn_2(4, 8) Vincent Davis

Re: generate De Bruijn sequence memory and string vs lists

2014-01-23 Thread Vincent Davis
n de_brujin(k, n) and the ordering the same ordering as found in ​de_brujin(k, n). I am not really sure how to modify the algorithm to do that. Any ideas? I won't have time to think hard about that until later. Vincent Davis 720-301-3003 -- https://mail.python.org/mailman/listinfo/python-list

Re: generate De Bruijn sequence memory and string vs lists

2014-01-23 Thread Vincent Davis
by itertools.permutations. Vincent Davis On Thu, Jan 23, 2014 at 10:18 AM, Dave Angel da...@davea.name wrote: Vincent Davis vinc...@vincentdavis.net Wrote in message: (something about your message seems to make it unquotable) 64gig is 4^18, so you can forget about holding a string of size 4^50

Re: generate De Bruijn sequence memory and string vs lists

2014-01-23 Thread Vincent Davis
) I am not really sure what _mapping should be. The code above does not run because NameError: global name '_mapping' is not defined I tried to get the bytearray ​ ​ sequence to convert to ascii but don't know how to. Vincent Davis -- https://mail.python.org/mailman/listinfo/python-list

Re: generate De Bruijn sequence memory and string vs lists

2014-01-23 Thread Vincent Davis
. ​Thanks for pointing this out Mark, ​I will soon be running this on 3.3+ Vincent Davis 720-301-3003 -- https://mail.python.org/mailman/listinfo/python-list

Re: generate De Bruijn sequence memory and string vs lists

2014-01-23 Thread Vincent Davis
import debruijn_bytes as d' 'd(4, 11)' 10 loops, best of 3: 480 msec per loop​ This took ~20 secs vs .480*10 d(4, 14) takes about 24 seconds (one run) Vincent Davis -- https://mail.python.org/mailman/listinfo/python-list

Re: generate De Bruijn sequence memory and string vs lists

2014-01-24 Thread Vincent Davis
of times an observed sub sequence overlaps a value in the De Bruijn sequence) The way the sub sequences overlap is important to me and I don't see a way go from base-k (or any other base) to the index location in the De Bruijn sequence. i.e. a decoding algorithm. Vincent Davis 720-301-3003 -- https

Re: generate De Bruijn sequence memory and string vs lists

2014-01-24 Thread Vincent Davis
secs or more. The total expected minimum time without startup overhead is then ​Ah, I did not know about the calibration. That and I did not notice the 100 on my machine vs 10 on yours.​ Vincent Davis -- https://mail.python.org/mailman/listinfo/python-list

Standard config file format

2011-04-05 Thread Vincent Davis
I am working on a program to monitor directory file changes and am would like a configuration file. This file would specify email addresses, file and directory locations.. Is there a preferred format to use with python? -- Thanks Vincent Davis -- http://mail.python.org/mailman/listinfo

set a breakpoint in malloc_error_break to debug?

2011-04-06 Thread Vincent Davis
string, line 1, in fragment MemoryError: Python 2.7.1 |EPD 7.0-2 (32-bit)| (r271:86832, Dec 3 2010, 15:41:32) [GCC 4.0.1 (Apple Inc. build 5488)] -- Thanks Vincent Davis 720-301-3003 -- http://mail.python.org/mailman/listinfo/python-list

Merge/append CSV files with different headers

2014-03-24 Thread Vincent Davis
(r.keys())) outfile.writerow(r) Vincent Davis -- https://mail.python.org/mailman/listinfo/python-list

Re: Merge/append CSV files with different headers

2014-03-24 Thread Vincent Davis
Thanks for the feedback. Vincent Davis 720-301-3003 On Mon, Mar 24, 2014 at 1:44 PM, Chris Angelico ros...@gmail.com wrote: On Tue, Mar 25, 2014 at 4:50 AM, Vincent Davis vinc...@vincentdavis.net wrote: I have several csv file I need to append (vertically). They have different

bz2.decompress as file handle

2014-05-18 Thread Vincent Davis
Bio.Affy import CelFile from bz2 import decompress, with open('Tests/Affy/affy_v3_ex.CEL.bz2', 'rb') as handle: cel_data = decompress(handle.read()) c = CelFile.read(cel_data) ​​ ​Thanks​ Vincent Davis -- https://mail.python.org/mailman/listinfo/python-list

Re: bz2.decompress as file handle

2014-05-18 Thread Vincent Davis
')) Vincent Davis 720-301-3003 On Sun, May 18, 2014 at 8:32 PM, Tim Chase python.l...@tim.thechases.comwrote: On 2014-05-18 19:53, Vincent Davis wrote: I have a file compressed with bz2 and a function that expects a file handle. When I decompress the bz2 file I get a string (binary) not a file

Re: bz2.decompress as file handle

2014-05-18 Thread Vincent Davis
On Sun, May 18, 2014 at 9:44 PM, Ian Kelly ian.g.ke...@gmail.com wrote: You can just use bz2.open: with bz2.open('test.txt.bz2', 'rt', encoding='ascii') as f: ... print(f.read()) ​Thanks I like that better then my solution. ​ Vincent Davis 720-301-3003 -- https://mail.python.org

get python bit version as in (32 or 64)

2010-10-19 Thread Vincent Davis
How do I get the bit version of the installed python. In my case, osx python2.7 binary installed. I know it runs 64 bt as I can see it in activity monitor. but how do I ask python? sys.version '2.7 (r27:82508, Jul 3 2010, 21:12:11) \n[GCC 4.0.1 (Apple Inc. build 5493)]' -- Thanks Vincent Davis

Re: get python bit version as in (32 or 64)

2010-10-19 Thread Vincent Davis
On Tue, Oct 19, 2010 at 3:29 PM, Philip Semanchuk phi...@semanchuk.com wrote: On Oct 19, 2010, at 5:18 PM, Vincent Davis wrote: How do I get the bit version of the installed python. In my case, osx python2.7 binary installed. I know it runs 64 bt as I can see it in activity monitor. but how

Re: get python bit version as in (32 or 64)

2010-10-19 Thread Vincent Davis
On Tue, Oct 19, 2010 at 3:55 PM, Philip Semanchuk phi...@semanchuk.com wrote: On Oct 19, 2010, at 5:38 PM, Hexamorph wrote: On 19.10.2010 23:18, Vincent Davis wrote: How do I get the bit version of the installed python. In my case, osx python2.7 binary installed. I know it runs 64 bt as I

speed up pandas calculation

2014-07-30 Thread Vincent Davis
','MED2','MED3','MED4','MED5']].isin([drugs[n]]).any(1) Vincent Davis 720-301-3003 -- https://mail.python.org/mailman/listinfo/python-list

Re: speed up pandas calculation

2014-07-30 Thread Vincent Davis
On Wed, Jul 30, 2014 at 6:28 PM, Vincent Davis vinc...@vincentdavis.net wrote: The real slow part seems to be for n in drugs: df[n] = df[['MED1','MED2','MED3','MED4','MED5']].isin([drugs[n]]).any(1) ​I was wrong, this is fast, it was selecting the columns that was slow. using keep_col

Re: speed up pandas calculation

2014-07-30 Thread Vincent Davis
', 'MED2', 'MED3', 'MED4', 'MED5'] df = df[keep_col] The real slow part seems to be for n in drugs: df[n] = df[['MED1','MED2','MED3','MED4','MED5']].isin([drugs[n]]).any(1) Vincent Davis 720-301-3003 -- https://mail.python.org/mailman/listinfo/python-list

Check email header for RFC 822 standard and match emails between imap servers.

2011-08-18 Thread Vincent Davis
. Received: 2011-08-16T22:47:47.000Z. Size: 196114. Subject RE: ppt templates. -- Thanks Vincent Davis 720-301-3003 -- http://mail.python.org/mailman/listinfo/python-list

? get negative from prod(x) when x is positive integers

2013-06-28 Thread Vincent Davis
going on? Vincent Davis 720-301-3003 -- http://mail.python.org/mailman/listinfo/python-list

Re: ? get negative from prod(x) when x is positive integers

2013-06-28 Thread Vincent Davis
ipython, or at least how I am using it ipython notebook --pylab inline. Thanks Vincent Davis 720-301-3003 On Fri, Jun 28, 2013 at 4:04 PM, Joshua Landau joshua.landau...@gmail.comwrote: On 28 June 2013 15:38, Vincent Davis vinc...@vincentdavis.net wrote: I have a list of a list of integers

suggestions for VIN parsing

2014-12-25 Thread Vincent Davis
I would like to parse the VIN, frame and engine numbers found on this page (below). I don't really know any regex, I have looked a little at pyparsing. I have some other similar numbers to. I am looking for suggestions, which tool should I learn, how should I approach this.

Re: suggestions for VIN parsing

2014-12-25 Thread Vincent Davis
These are vintage motorcycles so the VIN's are not like modern VIN's these are frame numbers and engine number. I don't want to parse the page, I what a function that given a VIN (frame or engine number) returns the year the bike was made. Vincent Davis 720-301-3003 On Thu, Dec 25, 2014 at 5:56

Re: suggestions for VIN parsing

2014-12-25 Thread Vincent Davis
Tim and Ben, Thanks for your input, I am working on it now and will come back when I have questions. Any comment on using pyparsing VS regex Vincent Davis 720-301-3003 On Thu, Dec 25, 2014 at 7:18 PM, Ben Finney ben+pyt...@benfinney.id.au wrote: Vincent Davis vinc...@vincentdavis.net writes

Re: suggestions for VIN parsing

2014-12-28 Thread Vincent Davis
return 'tp1960' else: return None else: return None vin_test_list = ['101n', '500n', '234na', '15809NA', '25000', '32303', '44135', '56700', '70930', '0100', 'H11512', 'D15789', 'DU101'] for vin in vin_test_list: print(vin_to_year2(vin)) Vincent Davis 720-301

Re: suggestions for VIN parsing

2014-12-29 Thread Vincent Davis
and the 1982 model year. ​Ah , I had not looked close at that yet. I found a different more extensive site. http://www.britishonly.com/tech/joust/techtiptriumphmf.htm​ Vincent Davis 720-301-3003 -- https://mail.python.org/mailman/listinfo/python-list

Re: suggestions for VIN parsing

2014-12-29 Thread Vincent Davis
/tech/joust/techtiptriumphmf.htm, I could see some overlapping although I have not looked real close yet. Vincent Davis 720-301-3003 -- https://mail.python.org/mailman/listinfo/python-list

[issue21360] mailbox.Maildir should ignore files named with a leading dot

2015-01-02 Thread Vincent Davis
Changes by Vincent Davis vinc...@vincentdavis.com: -- nosy: +Vincentdavis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21360 ___ ___ Python-bugs

[issue15933] flaky test in test_datetime

2015-01-02 Thread Vincent Davis
Vincent Davis added the comment: Rather than dealing with the time delta how about getting the time twice and checking that we are between and at least once we have the same day. i.e. ts1 = time() today = self.theclass.today() ts2 = time() todayagain1 = self.theclass.fromtimestamp(ts1

[issue20544] Use specific asserts in operator tests

2015-01-02 Thread Vincent Davis
Vincent Davis added the comment: Looks like this is ready to be applied and closed or just closed. -- nosy: +Vincentdavis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20544

[issue18983] Specify time unit for timeit CLI

2015-01-02 Thread Vincent Davis
Vincent Davis added the comment: Anything else need to be done on this patch? -- nosy: +Vincentdavis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18983

Re: using DictReader() with .decode('utf-8', 'ignore')

2015-04-14 Thread Vincent Davis
I need to go find my strange symbols that are not ​'utf-8' and see what happens I was thought, that I had to open with 'rb' to use ​encoding? Vincent Davis -- https://mail.python.org/mailman/listinfo/python-list

date from day (count) of year

2015-04-24 Thread Vincent Davis
How does one get the date given the day of a year. dt.datetime.now().timetuple().tm_yday 114 How would I get the Date of the 114 day of 2014? Vincent Davis -- https://mail.python.org/mailman/listinfo/python-list

Re: date from day (count) of year

2015-04-24 Thread Vincent Davis
On Fri, Apr 24, 2015 at 8:01 AM, Ian Kelly ian.g.ke...@gmail.com wrote: dt.date(2014, 1, 1) + dt.timedelta(114 - 1) datetime.date(2014, 4, 24) ​Thanks!​ Vincent Davis -- https://mail.python.org/mailman/listinfo/python-list

Re: getting fieldnames from Dictreader before reading lines

2015-05-09 Thread Vincent Davis
Not sure what I was doing wrong, it seems to work now. Vincent Davis 720-301-3003 On Sat, May 9, 2015 at 4:46 PM, Vincent Davis vinc...@vincentdavis.net wrote: I am reading a file with Dictreader and writing a new file. I want use the fieldnames in the Dictwriter from the reader. See below

getting fieldnames from Dictreader before reading lines

2015-05-09 Thread Vincent Davis
: 98 pass ValueError: I/O operation on closed file. Thanks Vincent ​ Davis​ -- https://mail.python.org/mailman/listinfo/python-list

Re: getting fieldnames from Dictreader before reading lines

2015-05-09 Thread Vincent Davis
up parts of your error messages. I am posting from google mail (not google groups). Kindly let me know if this email is also html. Vincent Davis 720-301-3003 -- https://mail.python.org/mailman/listinfo/python-list

Re: using DictReader() with .decode('utf-8', 'ignore')

2015-04-14 Thread Vincent Davis
WELLS FARGO COMPANY WELLS FARGO COMPANYWELLS FARGO ¢ COMPANY 994946 {'encoding': 'windows-1252', 'confidence': 0.5} OSSOSSO¬¬O OSSOSSOO OSSOSSOO OSSOSSO¬¬O 996535 Vincent Davis 720-301

using DictReader() with .decode('utf-8', 'ignore')

2015-04-14 Thread Vincent Davis
I had been reading in a file like so. (python 3) with open(dfile, 'rb') as f: for line in f: ​line = line.decode('utf-8', 'ignore').split(',') ​How can I ​do accomplish decode('utf-8', 'ignore') when reading with DictReader() Vincent Davis 720-301-3003 -- https://mail.python.org/mailman

Re: Python regex exercise

2015-04-04 Thread Vincent Davis
On Sat, Apr 4, 2015 at 5:51 PM, Thomas 'PointedEars' Lahn pointede...@web.de wrote: Do anyone have good links to python regex or other python problems for beginners but with solution. Please mail me. ​I recently found​ this https://regex101.com/#python Vincent Davis 720-301-3003

Re: assertRaises() help

2015-05-27 Thread Vincent Davis
On Wed, May 27, 2015 at 4:55 PM, Cameron Simpson c...@zip.com.au wrote: First, test your test by hand running: to_datetime('2015-02-29', coerce=False) _Does_ it raise ValueError? ​Well that was not expected.​ Thanks Vincent Davis -- https://mail.python.org/mailman/listinfo/python-list

assertRaises() help

2015-05-27 Thread Vincent Davis
..format(name)) AssertionError: ValueError not raised. From the docs maybe I should be using a with statement​. Vincent Davis 720-301-3003 -- https://mail.python.org/mailman/listinfo/python-list

Re: write csv to object and read into pandas

2015-10-15 Thread Vincent Davis
That worked, Thanks! Vincent Davis 720-301-3003 On Thu, Oct 15, 2015 at 6:11 AM, Peter Otten <__pete...@web.de> wrote: > Oscar Benjamin wrote: > > > On 15 October 2015 at 09:16, Peter Otten <__pete...@web.de> wrote: > >> > >> def preprocess(fi

write csv to object and read into pandas

2015-10-14 Thread Vincent Davis
. with open(infile,"r") as fin: with open(outfile,"w") as fout: writer=csv.writer(fout) for row in csv.reader(fin): #do stuff to the row writer.writerow(row) df = pandas.csv_reader(outfile) Vincent Davis 72

Re: manually build a unittest/doctest object.

2015-12-08 Thread Vincent Davis
to stick this into a test. doctest seemed the simplest but maybe there is a better way. I also tried something like: assert exec("""print('hello word')""") == 'hello word' Vincent Davis 720-301-3003 -- https://mail.python.org/mailman/listinfo/python-list

Re: manually build a unittest/doctest object.

2015-12-08 Thread Vincent Davis
File "/Users/vincentdavis/anaconda/envs/py35/lib/python3.5/doctest.py", line 1320, in __run compileflags, 1), test.globs) File "", line 1 print('hello') ^ SyntaxError: multiple statements found while compiling a single statement Vincent Davis -- https://mail.python.org/mailman/listinfo/python-list

Re: manually build a unittest/doctest object.

2015-12-08 Thread Vincent Davis
untittests on source code from a jupyter notebook. Reading closer this seems like it will work. Not that I mind learning more about how doctests work ;-) Vincent Davis -- https://mail.python.org/mailman/listinfo/python-list

manually build a unittest/doctest object.

2015-12-07 Thread Vincent Davis
source="print('hello world')/n", want="hello world\n") t = doctest.DocTestRunner() t.run(e) Thanks Vincent Davis -- https://mail.python.org/mailman/listinfo/python-list

Re: Try: rather than if :

2015-12-14 Thread Vincent Davis
rite except AttributeError: raise try: name = handel.name write("# Report_file: %s\n" % name) except AttributeError: pass write("\n") Vincent Davis 720-301-3003 -- https://mail.python.org/mailman/listinfo/python-list

Re: Try: rather than if :

2015-12-14 Thread Vincent Davis
On Mon, Dec 14, 2015 at 4:53 PM, Ian Kelly wrote: > > Except that catching an exception just to immediately re-raise it is > silly. This would be better: > > try: > name = handle.name > except AttributeError: > pass > else: > handle.write("# Report_file: %s\n"

Try: rather than if :

2015-12-14 Thread Vincent Davis
except AttributeError: pass handle.write("\n") The specific use case I noticed this was https://github.com/biopython/biopython/blob/master/Bio/AlignIO/EmbossIO.py#L38 Vincent Davis -- https://mail.python.org/mailman/listinfo/python-list

[issue25989] documentation version switcher is broken fro 2.6, 3.2, 3.3

2016-01-01 Thread Vincent Davis
New submission from Vincent Davis: >From the documentation pages for python 2.7 and 3.4, 3.5, 3.6 it is possible >to select another python version in the breadcrumb at the top left of the >page. This is not available for python 2.6, 3.2 and 3.3. See related issue which is clos

unicodedata with chr() not the same between python 3.4 and 3.5

2015-12-22 Thread Vincent Davis
)))[945:965] >>> u 'ԡԢԣԤԥԦԧԨԩԪԫԬԭԮԯԱԲԳԴԵ' Python 3.4 >>> import unicodedata >>> u = ''.join(chr(i) for i in range(65536) if (unicodedata.category(chr(i)) in ('Lu', 'Ll')))[945:965] >>> u 'ԢԣԤԥԦԧԱԲԳԴԵԶԷԸԹԺԻԼԽԾ' As you can see they are not the same ​.​ 'ԡԢԣԤԥԦԧԨ

Re: Catogorising strings into random versus non-random

2015-12-21 Thread Vincent Davis
h for "xy39mGWbosjY" there is one result as of now, ​which is an archive of this tread. If you search for any given word or even the phrase ​, for example​ "baby lions at play ​ " you get a much larger set of results ​ ~500​ . I assue there are many was to search google with

Re: Public key encryption example.

2015-11-18 Thread Vincent Davis
Found an example, needs a little updating but then it works (appears to) in python 3.5. http://coding4streetcred.com/blog/post/Asymmetric-Encryption-Revisited-(in-PyCrypto) Vincent Davis 720-301-3003 On Wed, Nov 18, 2015 at 5:04 PM, Chris Angelico <ros...@gmail.com> wrote: > On Th

Public key encryption example.

2015-11-18 Thread Vincent Davis
reading the message from a local file. Possibly using cryptography library elliptic-curve https://cryptography.io/en/latest/hazmat/primitives/asymmetric/ec/#elliptic-curve-signature-algorithms Surly there is an example out there? Vincent Davis -- https://mail.python.org/mailman/listinfo/python-list

Re: shorten "compress" long integer to short ascii.

2015-11-20 Thread Vincent Davis
ncoder(n) > backagain = decoder(short) > nlen = len(str(n)) > print (nlen, len(short), float(len(short))/nlen) > assert n==backagain, (n,short,b) > > test() > Vincent Davis 720-301-3003 -- https://mail.python.org/mailman/listinfo/python-list

shorten "compress" long integer to short ascii.

2015-11-19 Thread Vincent Davis
My goal is to shorten a long integer into a shorter set of characters. Below is what I have which gets me about a 45-50% reduction. Any suggestion on how to improve upon this? I not limited to ascii but I didn't see how going to utf8 would help. The resulting string needs to be something I could

Re: x=something, y=somethinelse and z=crud all likely to fail - how do i wrap them up

2016-02-01 Thread Vincent Davis
t and loop over it. In my case a dict was better. See the example here. https://github.com/vincentdavis/USAC_data/blob/master/tools.py#L24 Vincent Davis 720-301-3003 -- https://mail.python.org/mailman/listinfo/python-list

plot / graph connecting re ordered lists

2018-01-23 Thread Vincent Davis
example code for this on the net an am not finding a clean example. Thanks Vincent Davis -- https://mail.python.org/mailman/listinfo/python-list

Re: plot / graph connecting re ordered lists

2018-01-23 Thread Vincent Davis
On Tue, Jan 23, 2018 at 4:15 PM Dennis Lee Bieber <wlfr...@ix.netcom.com> wrote: > On Tue, 23 Jan 2018 13:51:55 -0700, Vincent Davis > <vinc...@vincentdavis.net> declaimed the following: > > >Looking for suggestions. I have an ordered list of names these names will &g

Re: clusters of numbers

2018-12-15 Thread Vincent Davis
Why not start with a histogram. Vincent On Sat, Dec 15, 2018 at 6:46 PM Marc Lucke wrote: > hey guys, > > I have a hobby project that sorts my email automatically for me & I want > to improve it. There's data science and statistical info that I'm > missing, & I always enjoy reading about the

Convert and analyze image data in a spreadsheet.

2020-06-11 Thread Vincent Davis
o keep it in that color format? I think yes. 3. How can I visualize this data as a 6x6 color image and visualize each color on a gray scale. 4. General hints or link of how to proceed would be helpful. Thanks Vincent Davis -- https://mail.python.org/mailman/listinfo/python-list

Re: Convert and analyze image data in a spreadsheet.

2020-06-14 Thread Vincent Davis
Dennis, Thanks for your ideas. The researcher I am working with just told me the data is wrong and needs to send me new data and there are other problems with exactly what their research questions is. So this goes nowhere for now. Thanks Vincent Davis 720-301-3003 *Want to get a hold of me

How to match scipy.spatial.distance results back to pandas df

2020-07-16 Thread Vincent Davis
ray([8.83911760e-05, 6.31347765e-05, 3.89486842e-05, 2.13775583e-05, 2.10950231e-05, 4.10487515e-05, 6.7000e-05, 9.10878697e-05, 7.61183289e-05, 9.90050504e-05, 7.88162420e-05, 5.90931468e-05, 4.50111097e-05, 4.97393205e-05, 6.78969808e-05, 8.52115016e-05, ... Thanks Vincent Davis

Re: Fake news Detect

2020-07-18 Thread Vincent Davis
Data Sceptic has a couple podcast and some of the code is open source. https://dataskeptic.com/blog/episodes/2018/algorithmic-detection-of-fake-news Thanks Vincent Davis 720-301-3003 *Want to get a hold of me?* *SMS: awesome.phone: ok...* *email: bad!* On Fri, Jul 17, 2020 at 11:39 PM Mike

<    1   2