[Tutor] python + sharepoint

2012-03-02 Thread Brad Hudson
Can someone assist in a very basic task of retrieving a '.txt' file from a sharepoint document library using Python 2.4 standard libraries? I'm certain, I need to build up some form of authentication to pass, but do not know where to begin. Also, I do not want to attempt to customize or install add

[Tutor] number of mismatches in a string

2012-03-02 Thread Hs Hs
Hi: I have the following table and I am interested in calculating mismatch ratio. I am not completely clear how to do this and any help is deeply appreciated.  Length     Matches 77      24A0T9T36 71      25^T9^T37 60      25^T9^T26 62      42A19 In length column I have length of the charact

Re: [Tutor] number of mismatches in a string

2012-03-02 Thread Albert-Jan Roskam
Hi, I do not completely follow you, but perhaps you could check out this page: http://code.activestate.com/recipes/576869-longest-common-subsequence-problem-solver/ Another source of inspiration could be the levenshtein distance.   Regards, Albert-Jan ~~

Re: [Tutor] number of mismatches in a string

2012-03-02 Thread bob gailer
On 3/2/2012 2:11 PM, Hs Hs wrote: Hi: I have the following table and I am interested in calculating mismatch ratio. I am not completely clear how to do this and any help is deeply appreciated. Length Matches 77 24A0T9T36 71 25^T9^T37 60 25^T9^T26 62 42A19 In length c

Re: [Tutor] Which computer operating system is best for Python developers?

2012-03-02 Thread Terry Carroll
(Re Python on Windows 7) On Thu, 23 Feb 2012, Tim Golden wrote: On 23/02/2012 09:00, Alan Gauld wrote: If you do a reinstall, download the ActiveState version rather than the Python.org version. I also recommend the ActiveState distro. I am going to "third" Alan's and Tim's recommendation

Re: [Tutor] number of mismatches in a string

2012-03-02 Thread Jerry Hill
On Fri, Mar 2, 2012 at 2:11 PM, Hs Hs wrote: > Hi: > I have the following table and I am interested in calculating mismatch > ratio. I am not completely clear how to do this and any help is deeply > appreciated. > > Length     Matches > 77      24A0T9T36 > 71      25^T9^T37 > 60      25^T9^T26 > 6

Re: [Tutor] python + sharepoint

2012-03-02 Thread Brad Hudson
On Fri, Mar 2, 2012 at 11:03 AM, Brad Hudson wrote: > Can someone assist in a very basic task of retrieving a '.txt' file > from a sharepoint document library using Python 2.4 standard > libraries? I'm certain, I need to build up some form of authentication > to pass, but do not know where to begi

Re: [Tutor] number of mismatches in a string

2012-03-02 Thread Alan Gauld
On 02/03/12 19:11, Hs Hs wrote: 1. I have to count how many A or T or G or C (believe me only these 4 letters will appear in this, i will not see Z or B or K etc) This suggests to me that its related to chromosome analysis or somesuch? There are some python libraries for biochemistry work. Ma

Re: [Tutor] python + sharepoint

2012-03-02 Thread Steven D'Aprano
Brad Hudson wrote: Can someone assist in a very basic task of retrieving a '.txt' file from a sharepoint document library using Python 2.4 standard libraries? What's a sharepoint document library? How would you retrieve a text file from it *without* using Python? [...] Note: url is changed

Re: [Tutor] python + sharepoint

2012-03-02 Thread Steven D'Aprano
Brad Hudson wrote: Still no response on this one, but I did find a 'rather ugly' solution using subprocess for wget to get a file from sharepoint... #!/usr/bin/env python import getpass import re import shlex from subprocess import Popen, PIPE # build sharepoint user/pw # note: shlex.split req

[Tutor] mentorship

2012-03-02 Thread Christopher Conner
Hello folks - I'm a little lost and seek a mentor to accelerate the learning curve associated with open-source development, with python in particular but not exclusively. I've been an computer enthusiast / amateur programmer for 20 years. Too, in the past few years I've researched a varie

Re: [Tutor] mentorship

2012-03-02 Thread Steven D'Aprano
Christopher Conner wrote: I've got some free time and I feel like I should pick an open source project and begin contributing, but the options are just staggering. I've narrowed things down to the Python language - maybe the Plone project? maybe helping with documentation at first? Maybe testi

Re: [Tutor] mentorship

2012-03-02 Thread Mark Lawrence
On 03/03/2012 03:49, Christopher Conner wrote: Hello folks - I'm a little lost and seek a mentor to accelerate the learning curve associated with open-source development, with python in particular but not exclusively. I've been an computer enthusiast / amateur programmer for 20 years. Too, in t