From vikthirtyfive at gmail.com Tue Apr 1 00:07:46 2014 From: vikthirtyfive at gmail.com (Vikram K) Date: Mon, 31 Mar 2014 18:07:46 -0400 Subject: [Baypiggies] Fwd: adding color to excel files programmatically In-Reply-To: References: <41814.24.23.181.240.1395864738.squirrel@martin-wwwss5.ssl.supercp.com> Message-ID: finally got it to work: from xlrd import * from xlwt import Workbook, easyxf book = Workbook() sheet1 = book.add_sheet('sheet1') cat_cell = easyxf('pattern: pattern solid, fore_colour orange') workbook = open_workbook ("merged_manip_OUT.xlsx") sheet = workbook.sheet_by_index(0) #print sheet.cell_value(0,0) print sheet.nrows print sheet.ncols ##for col in range (sheet.ncols): ## print sheet.cell_value(0,col) print '------' data = [[sheet.cell_value(r,c) for c in range(sheet.ncols)] for r in range (sheet.nrows)] print len(data) header = data[0] data = data[1:] print len(data) print '------' for x, row in enumerate(data): if str(row[-2]).strip() =='Agree': for y,value in enumerate(row): sheet1.write(x,y,value,cat_cell) else: for y,value in enumerate(row): sheet1.write(x,y,value) book.save('merged_manip_OUT_mod.xls') ---------- Forwarded message ---------- From: Vikram K Date: Mon, Mar 31, 2014 at 5:58 PM Subject: Fwd: [Baypiggies] adding color to excel files programmatically To: Baypiggies Made a slight correction to the code: from xlrd import * from xlwt import Workbook, easyxf book = Workbook() sheet1 = book.add_sheet('sheet1') cat_cell = easyxf('pattern: pattern solid, fore_colour orange') workbook = open_workbook ("merged_manip_OUT.xlsx") sheet = workbook.sheet_by_index(0) #print sheet.cell_value(0,0) print sheet.nrows print sheet.ncols ##for col in range (sheet.ncols): ## print sheet.cell_value(0,col) print '------' data = [[sheet.cell_value(r,c) for c in range(sheet.ncols)] for r in range (sheet.nrows)] print len(data) header = data[0] data = data[1:] print len(data) print '------' for x, row in enumerate(data): if str(row[-2]).strip() =='Agree': for y,value in enumerate(row): sheet1.write(x,y,value[0],value[1],cat_cell) else: for y,value in enumerate(row): sheet1.write(x,y,value[0],value[1]) book.save('merged_manip_OUT_mod.xls') I am only trying to print the first two values of each row in the nested list data to the output file (for starters). Error msg is: Traceback (most recent call last): File "/Users/katju/Desktop/cell_line_comparison/comparison/Merged/color/color.py", line 40, in sheet1.write(x,y,value[0],value[1]) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/xlwt/Worksheet.py", line 1030, in write self.row(r).write(c, label, style) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/xlwt/Row.py", line 234, in write self.__adjust_height(style) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/xlwt/Row.py", line 64, in __adjust_height twips = style.font.height AttributeError: 'unicode' object has no attribute 'font' >>> i want the first element value[0] to be a string and the second element value[1] to be an int. I tried doing str(value[0]) and int(value[1]) but again got a similar error msg. ---------- Forwarded message ---------- From: Vikram K Date: Mon, Mar 31, 2014 at 5:28 PM Subject: Re: [Baypiggies] adding color to excel files programmatically To: James Nicholson Cc: Martin Falatic , Baypiggies Got stuck again. Please help. I only wanted to color the values of the nested list 'data' after they have been printed to an excel sheet based on whether the second last element in each row of the nested list data has the value 'Agree'. After giving the code and the error msg, i give the value of data[0] and data[1] to give you an idea of the data structure. This is my code: from xlrd import * from xlwt import Workbook, easyxf book = Workbook() sheet1 = book.add_sheet('sheet1') cat_cell = easyxf('pattern: pattern solid, fore_colour orange') workbook = open_workbook ("merged_manip_OUT.xlsx") sheet = workbook.sheet_by_index(0) #print sheet.cell_value(0,0) print sheet.nrows print sheet.ncols ##for col in range (sheet.ncols): ## print sheet.cell_value(0,col) print '------' data = [[sheet.cell_value(r,c) for c in range(sheet.ncols)] for r in range (sheet.nrows)] print len(data) header = data[0] data = data[1:] print len(data) print '------' for x, row in enumerate(data): if str(row[-2]).strip() =='Agree': for y,value in enumerate(row): sheet1.write(x,y,row[0],row[1],cat_cell) else: for y,value in enumerate(row): sheet1.write(x,y,row[0],row[1]) book.save('merged_manip_OUT_mod.xls') *********** This is the error message: >>> 2452 27 ------ 2452 2451 ------ Traceback (most recent call last): File "/Users/king/Desktop/cell_line_comparison/comparison/Merged/color/color.py", line 39, in sheet1.write(x,y,row[0],row[1]) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/xlwt/Worksheet.py", line 1030, in write self.row(r).write(c, label, style) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/xlwt/Row.py", line 234, in write self.__adjust_height(style) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/xlwt/Row.py", line 64, in __adjust_height twips = style.font.height AttributeError: 'float' object has no attribute 'font' >>> ******* And these are the first two elements of the nested list data: >>> data[0] [u'230484_at', 55349.0, u'CHDH', u'choline dehydrogenase', u'3p21.1', 7.40318345, 7.40318345, 7.40318345, 0.0, 7.40318345, 1.0, 1.0, u'Same', u'Same', u'ILMN_2135321', u'CHDH', 55349.0, 3.0, 4.682925638, 3.856160407, 0.000480349, 3.765115429, -0.82676523, 0.563791944, u'Down', u'Disagree', u'Favorite'] >>> data[1] [u'1559591_s_at', 55349.0, u'CHDH', u'choline dehydrogenase', u'3p21.1', 6.682511457, 7.221781517, 9.847400986, -3.164889529, 6.977198106, 0.111499602, 0.136767478, u'Down', u'Down', u'ILMN_2135321', u'CHDH', 55349.0, 3.0, 4.682925638, 3.856160407, 0.000480349, 3.765115429, -0.82676523, 0.563791944, u'Down', u'Agree', ''] Notice that the string values have all been converted to unicode string values by xlrd. On Thu, Mar 27, 2014 at 12:04 PM, Vikram K wrote: > This is perfect. Many thanks. > > > On Thu, Mar 27, 2014 at 1:11 AM, James Nicholson wrote: > >> Hey Vikram, >> >> Tested the below code, it works. Output file is attached. >> >> Let me know if you have any questions, hopefully you can adapt this to >> what you're trying to do. >> >> Also, check out the python-excel pdf, >> it's an excellent resource. >> >> >> -------------------------------------------------------------------------------------------------------------------------- >> from xlwt import Workbook, easyxf >> >> book = Workbook() >> >> sheet1 = book.add_sheet('sheet1') >> >> cat_cell = easyxf('pattern: pattern solid, fore_colour red') >> >> rows = [['cat',10,20,30],['cat',50,60,70],['dog',20,30,40]] >> >> for x, row in enumerate(rows): >> if row[0] == 'cat': >> for y, value in enumerate(row): >> sheet1.write(x, y, value, cat_cell) >> else: >> for y, value in enumerate(row): >> sheet1.write(x, y, value) >> >> book.save('cat.xls') >> >> -------------------------------------------------------------------------------------------------------------------------- >> >> James Nicholson >> nicholsonjf.com >> >> >> On Wed, Mar 26, 2014 at 9:11 PM, Vikram K wrote: >> >>> I had already worked with xlrd in the past (while continuing to use csv >>> module for writing a file) so decided to take a look at xlwt. I found an >>> example on the net which works fine: >>> >>> import xlwt >>> book = xlwt.Workbook() >>> xlwt.add_palette_colour("custom_color",0x21) >>> >>> book.set_colour_RGB(0x21,251,228,228) >>> >>> sheet1 = book.add_sheet('Sheet1') >>> >>> style = xlwt.easyxf('pattern:pattern solid, fore_colour 0x21') >>> sheet1.write(0,0,'Some text', style) >>> book.save('test.xls') >>> >>> The above code generates an excel file with the top-left cell having the >>> value 'Some text' which is in color. Now, suppose i have a nested list like >>> this: >>> >>> >>> x = [['cat',10,20,30],['cat',50,60,70],['dog',20,30,40]] >>> >>> x >>> [['cat', 10, 20, 30], ['cat', 50, 60, 70], ['dog', 20, 30, 40]] >>> >>> for i in x: >>> print i >>> >>> ['cat', 10, 20, 30] >>> ['cat', 50, 60, 70] >>> ['dog', 20, 30, 40] >>> >>> >>> >>> I wish to write out the nested list x to an excel file using xlwt in >>> such a way that the rows which start with 'cat' are colored while the row >>> starting with 'dog' are in a different color. Alternatively, the row >>> starting with 'cat' can be colored, while the row starting with 'dog' can >>> be left as is without any color. If anyone has worked on something like >>> this, please help. Thank you. >>> >>> >>> On Wed, Mar 26, 2014 at 4:12 PM, Martin Falatic wrote: >>> >>>> If you're generating a new excel file, xlwt works... some ideas: >>>> >>>> >>>> http://stackoverflow.com/questions/15649482/how-to-set-color-of-text-using-xlwt >>>> >>>> >>>> http://stackoverflow.com/questions/7746837/python-xlwt-set-custom-background-colour-of-a-cell >>>> >>>> >>>> http://stackoverflow.com/questions/2981293/python-excel-xlwt-colouring-every-second-row?rq=1 >>>> >>>> - Marty >>>> >>>> >>>> On Wed, March 26, 2014 12:10, Vikram K wrote: >>>> > Could someone kindly tell me how i can add color programmatically to >>>> > specific rows in an excel file. Thank you. >>>> > _______________________________________________ >>>> > Baypiggies mailing list >>>> > Baypiggies at python.org >>>> > To change your subscription options or unsubscribe: >>>> > https://mail.python.org/mailman/listinfo/baypiggies >>>> >>>> >>>> >>> >>> _______________________________________________ >>> Baypiggies mailing list >>> Baypiggies at python.org >>> To change your subscription options or unsubscribe: >>> https://mail.python.org/mailman/listinfo/baypiggies >>> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From msabramo at gmail.com Tue Apr 1 01:17:27 2014 From: msabramo at gmail.com (Marc Abramowitz) Date: Mon, 31 Mar 2014 16:17:27 -0700 Subject: [Baypiggies] Suggestions on Python training for first programming language? In-Reply-To: References: Message-ID: My company (SurveyMonkey) has hired several graduates of: http://www.hackbrightacademy.com It's a 12 week intensive course in web development using Python for women. It's in San Francisco. If your friend is interested, I could help introduce her to one of our HackBright alumni, if she wants to ask them questions about it. -Marc http://marc-abramowitz.com Sent from my iPhone 4S > On Mar 30, 2014, at 6:28 PM, seth f wrote: > > Hi folks, > > I have a good friend of 20+ years that seems curious about getting more technical. She's whip-smart, super creative, and frustrated with her current gig, which I gather is like somewhere in between editor of content and QA. > > My initial reaction was, the Python community especially around here is super cool, of course that's what my first thought is. Get above (or below) the content level, get to the machinery at work, a happier life exists. > > Question to the group, I ask on her behalf: can anyone recommend any particular python classes? Or is anyone doing tutoring kind of stuff? jj? > > It would sadden me to see her go off into PHP or Perl lands, I think it would be a couple of years of "wow" and then a world of despair. Java I think the corporateness would get to her right off. > > So of course I'm biased but I suggested Python... I suggested Ruby too, with the caveat that I just found Ruby to be cutesy, and both of us are pretty dark in our senses of humor. > > Anyway, if we've got any Python educators on the list please let me know. > > Thanks! > seth > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > https://mail.python.org/mailman/listinfo/baypiggies From jjinux at gmail.com Tue Apr 1 03:28:53 2014 From: jjinux at gmail.com (Shannon -jj Behrens) Date: Mon, 31 Mar 2014 18:28:53 -0700 Subject: [Baypiggies] Suggestions on Python training for first programming language? In-Reply-To: References: Message-ID: I heartily recommend Hackbright Academy as well, based on all the women I've met from there. If all she wants is a book, I know a lot of people have had success with: http://www.amazon.com/Python-Programming-Introduction-Computer-Science/dp/1887902996 There are Python classes on Code Academy, Udacity, Cousera, code.org (I think), etc. However, I haven't seen as many people make it all the way through those. On Mon, Mar 31, 2014 at 4:17 PM, Marc Abramowitz wrote: > My company (SurveyMonkey) has hired several graduates of: > > http://www.hackbrightacademy.com > > It's a 12 week intensive course in web development using Python for women. > It's in San Francisco. > > If your friend is interested, I could help introduce her to one of our > HackBright alumni, if she wants to ask them questions about it. > > -Marc > http://marc-abramowitz.com > Sent from my iPhone 4S > > > > On Mar 30, 2014, at 6:28 PM, seth f wrote: > > > > Hi folks, > > > > I have a good friend of 20+ years that seems curious about getting more > technical. She's whip-smart, super creative, and frustrated with her > current gig, which I gather is like somewhere in between editor of content > and QA. > > > > My initial reaction was, the Python community especially around here is > super cool, of course that's what my first thought is. Get above (or > below) the content level, get to the machinery at work, a happier life > exists. > > > > Question to the group, I ask on her behalf: can anyone recommend any > particular python classes? Or is anyone doing tutoring kind of stuff? jj? > > > > It would sadden me to see her go off into PHP or Perl lands, I think it > would be a couple of years of "wow" and then a world of despair. Java I > think the corporateness would get to her right off. > > > > So of course I'm biased but I suggested Python... I suggested Ruby too, > with the caveat that I just found Ruby to be cutesy, and both of us are > pretty dark in our senses of humor. > > > > Anyway, if we've got any Python educators on the list please let me know. > > > > Thanks! > > seth > > _______________________________________________ > > Baypiggies mailing list > > Baypiggies at python.org > > To change your subscription options or unsubscribe: > > https://mail.python.org/mailman/listinfo/baypiggies > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > https://mail.python.org/mailman/listinfo/baypiggies > -- In this life we cannot do great things. We can only do small things with great love. -- Mother Teresa -------------- next part -------------- An HTML attachment was scrubbed... URL: From nicholsonjf at gmail.com Tue Apr 1 05:34:47 2014 From: nicholsonjf at gmail.com (James Nicholson) Date: Mon, 31 Mar 2014 20:34:47 -0700 Subject: [Baypiggies] Suggestions on Python training for first programming language? In-Reply-To: References: Message-ID: My introduction to Python one year ago was through the Python Codeacademy track . It's free, has a user friendly interface, and is easy to start, stop and pick back up again. For someone completely new to programming, it took me about 3 months to finish. I thought the course did a good job explaining the basics, and pointing the student to important outside resources like the Python documentation. Also, since it's free and can be started very quickly at any time, it's a great way to see how much you actually enjoy programming without spending any money. I'm about to start a more intermediate 8-week course on April 8th (luckily paid for by my employer) at UCSC Extension called Python for Programmers. I'll try to followup on this thread after I'm done with some notes on my experience there. -James James Nicholson nicholsonjf.com On Mon, Mar 31, 2014 at 6:28 PM, Shannon -jj Behrens wrote: > I heartily recommend Hackbright Academy as well, based on all the women > I've met from there. > > If all she wants is a book, I know a lot of people have had success with: > http://www.amazon.com/Python-Programming-Introduction-Computer-Science/dp/1887902996 > > There are Python classes on Code Academy, Udacity, Cousera, code.org (I > think), etc. However, I haven't seen as many people make it all the way > through those. > > > On Mon, Mar 31, 2014 at 4:17 PM, Marc Abramowitz wrote: > >> My company (SurveyMonkey) has hired several graduates of: >> >> http://www.hackbrightacademy.com >> >> It's a 12 week intensive course in web development using Python for >> women. It's in San Francisco. >> >> If your friend is interested, I could help introduce her to one of our >> HackBright alumni, if she wants to ask them questions about it. >> >> -Marc >> http://marc-abramowitz.com >> Sent from my iPhone 4S >> >> >> > On Mar 30, 2014, at 6:28 PM, seth f wrote: >> > >> > Hi folks, >> > >> > I have a good friend of 20+ years that seems curious about getting more >> technical. She's whip-smart, super creative, and frustrated with her >> current gig, which I gather is like somewhere in between editor of content >> and QA. >> > >> > My initial reaction was, the Python community especially around here is >> super cool, of course that's what my first thought is. Get above (or >> below) the content level, get to the machinery at work, a happier life >> exists. >> > >> > Question to the group, I ask on her behalf: can anyone recommend any >> particular python classes? Or is anyone doing tutoring kind of stuff? jj? >> > >> > It would sadden me to see her go off into PHP or Perl lands, I think it >> would be a couple of years of "wow" and then a world of despair. Java I >> think the corporateness would get to her right off. >> > >> > So of course I'm biased but I suggested Python... I suggested Ruby too, >> with the caveat that I just found Ruby to be cutesy, and both of us are >> pretty dark in our senses of humor. >> > >> > Anyway, if we've got any Python educators on the list please let me >> know. >> > >> > Thanks! >> > seth >> > _______________________________________________ >> > Baypiggies mailing list >> > Baypiggies at python.org >> > To change your subscription options or unsubscribe: >> > https://mail.python.org/mailman/listinfo/baypiggies >> _______________________________________________ >> Baypiggies mailing list >> Baypiggies at python.org >> To change your subscription options or unsubscribe: >> https://mail.python.org/mailman/listinfo/baypiggies >> > > > > -- > In this life we cannot do great things. We can only do small things with > great love. -- Mother Teresa > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > https://mail.python.org/mailman/listinfo/baypiggies > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nicholsonjf at gmail.com Tue Apr 1 05:43:17 2014 From: nicholsonjf at gmail.com (James Nicholson) Date: Mon, 31 Mar 2014 20:43:17 -0700 Subject: [Baypiggies] Fwd: adding color to excel files programmatically In-Reply-To: References: <41814.24.23.181.240.1395864738.squirrel@martin-wwwss5.ssl.supercp.com> Message-ID: Glad you were able to get it working. Out of curiosity, what is that data you're working with above? James Nicholson nicholsonjf.com On Mon, Mar 31, 2014 at 3:07 PM, Vikram K wrote: > finally got it to work: > > from xlrd import * > from xlwt import Workbook, easyxf > > book = Workbook() > > sheet1 = book.add_sheet('sheet1') > > cat_cell = easyxf('pattern: pattern solid, fore_colour orange') > > > workbook = open_workbook ("merged_manip_OUT.xlsx") > sheet = workbook.sheet_by_index(0) > #print sheet.cell_value(0,0) > print sheet.nrows > print sheet.ncols > > > ##for col in range (sheet.ncols): > ## print sheet.cell_value(0,col) > > print '------' > data = [[sheet.cell_value(r,c) for c in range(sheet.ncols)] for r in range > (sheet.nrows)] > print len(data) > > > header = data[0] > data = data[1:] > print len(data) > > print '------' > > > > for x, row in enumerate(data): > if str(row[-2]).strip() =='Agree': > for y,value in enumerate(row): > sheet1.write(x,y,value,cat_cell) > else: > for y,value in enumerate(row): > sheet1.write(x,y,value) > > book.save('merged_manip_OUT_mod.xls') > > ---------- Forwarded message ---------- > From: Vikram K > Date: Mon, Mar 31, 2014 at 5:58 PM > Subject: Fwd: [Baypiggies] adding color to excel files programmatically > To: Baypiggies > > > Made a slight correction to the code: > > from xlrd import * > from xlwt import Workbook, easyxf > > book = Workbook() > > sheet1 = book.add_sheet('sheet1') > > cat_cell = easyxf('pattern: pattern solid, fore_colour orange') > > > workbook = open_workbook ("merged_manip_OUT.xlsx") > sheet = workbook.sheet_by_index(0) > #print sheet.cell_value(0,0) > print sheet.nrows > print sheet.ncols > > > ##for col in range (sheet.ncols): > ## print sheet.cell_value(0,col) > > print '------' > data = [[sheet.cell_value(r,c) for c in range(sheet.ncols)] for r in range > (sheet.nrows)] > print len(data) > > > header = data[0] > data = data[1:] > print len(data) > > print '------' > > > > for x, row in enumerate(data): > if str(row[-2]).strip() =='Agree': > for y,value in enumerate(row): > sheet1.write(x,y,value[0],value[1],cat_cell) > else: > for y,value in enumerate(row): > sheet1.write(x,y,value[0],value[1]) > > book.save('merged_manip_OUT_mod.xls') > > I am only trying to print the first two values of each row in the nested > list data to the output file (for starters). Error msg is: > > > Traceback (most recent call last): > File > "/Users/katju/Desktop/cell_line_comparison/comparison/Merged/color/color.py", > line 40, in > sheet1.write(x,y,value[0],value[1]) > File > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/xlwt/Worksheet.py", > line 1030, in write > self.row(r).write(c, label, style) > File > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/xlwt/Row.py", > line 234, in write > self.__adjust_height(style) > File > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/xlwt/Row.py", > line 64, in __adjust_height > twips = style.font.height > AttributeError: 'unicode' object has no attribute 'font' > >>> > > i want the first element value[0] to be a string and the second element > value[1] to be an int. I tried doing str(value[0]) and int(value[1]) but > again got a similar error msg. > > ---------- Forwarded message ---------- > From: Vikram K > Date: Mon, Mar 31, 2014 at 5:28 PM > Subject: Re: [Baypiggies] adding color to excel files programmatically > To: James Nicholson > Cc: Martin Falatic , Baypiggies > > > > Got stuck again. Please help. I only wanted to color the values of the > nested list 'data' after they have been printed to an excel sheet based on > whether the second last element in each row of the nested list data has the > value 'Agree'. After giving the code and the error msg, i give the value of > data[0] and data[1] to give you an idea of the data structure. > > This is my code: > > from xlrd import * > from xlwt import Workbook, easyxf > > book = Workbook() > > sheet1 = book.add_sheet('sheet1') > > cat_cell = easyxf('pattern: pattern solid, fore_colour orange') > > > workbook = open_workbook ("merged_manip_OUT.xlsx") > sheet = workbook.sheet_by_index(0) > #print sheet.cell_value(0,0) > print sheet.nrows > print sheet.ncols > > > ##for col in range (sheet.ncols): > ## print sheet.cell_value(0,col) > > print '------' > data = [[sheet.cell_value(r,c) for c in range(sheet.ncols)] for r in range > (sheet.nrows)] > print len(data) > > > header = data[0] > data = data[1:] > print len(data) > > print '------' > > > for x, row in enumerate(data): > if str(row[-2]).strip() =='Agree': > for y,value in enumerate(row): > sheet1.write(x,y,row[0],row[1],cat_cell) > else: > for y,value in enumerate(row): > sheet1.write(x,y,row[0],row[1]) > > book.save('merged_manip_OUT_mod.xls') > > *********** > > This is the error message: > > >>> > 2452 > 27 > ------ > 2452 > 2451 > ------ > > Traceback (most recent call last): > File > "/Users/king/Desktop/cell_line_comparison/comparison/Merged/color/color.py", > line 39, in > sheet1.write(x,y,row[0],row[1]) > File > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/xlwt/Worksheet.py", > line 1030, in write > self.row(r).write(c, label, style) > File > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/xlwt/Row.py", > line 234, in write > self.__adjust_height(style) > File > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/xlwt/Row.py", > line 64, in __adjust_height > twips = style.font.height > AttributeError: 'float' object has no attribute 'font' > >>> > > ******* > > And these are the first two elements of the nested list data: > > >>> data[0] > [u'230484_at', 55349.0, u'CHDH', u'choline dehydrogenase', u'3p21.1', > 7.40318345, 7.40318345, 7.40318345, 0.0, 7.40318345, 1.0, 1.0, u'Same', > u'Same', u'ILMN_2135321', u'CHDH', 55349.0, 3.0, 4.682925638, 3.856160407, > 0.000480349, 3.765115429, -0.82676523, 0.563791944, u'Down', u'Disagree', > u'Favorite'] > >>> data[1] > [u'1559591_s_at', 55349.0, u'CHDH', u'choline dehydrogenase', u'3p21.1', > 6.682511457, 7.221781517, 9.847400986, -3.164889529, 6.977198106, > 0.111499602, 0.136767478, u'Down', u'Down', u'ILMN_2135321', u'CHDH', > 55349.0, 3.0, 4.682925638, 3.856160407, 0.000480349, 3.765115429, > -0.82676523, 0.563791944, u'Down', u'Agree', ''] > > Notice that the string values have all been converted to unicode string > values by xlrd. > > > On Thu, Mar 27, 2014 at 12:04 PM, Vikram K wrote: > >> This is perfect. Many thanks. >> >> >> On Thu, Mar 27, 2014 at 1:11 AM, James Nicholson wrote: >> >>> Hey Vikram, >>> >>> Tested the below code, it works. Output file is attached. >>> >>> Let me know if you have any questions, hopefully you can adapt this to >>> what you're trying to do. >>> >>> Also, check out the python-excel pdf, >>> it's an excellent resource. >>> >>> >>> -------------------------------------------------------------------------------------------------------------------------- >>> from xlwt import Workbook, easyxf >>> >>> book = Workbook() >>> >>> sheet1 = book.add_sheet('sheet1') >>> >>> cat_cell = easyxf('pattern: pattern solid, fore_colour red') >>> >>> rows = [['cat',10,20,30],['cat',50,60,70],['dog',20,30,40]] >>> >>> for x, row in enumerate(rows): >>> if row[0] == 'cat': >>> for y, value in enumerate(row): >>> sheet1.write(x, y, value, cat_cell) >>> else: >>> for y, value in enumerate(row): >>> sheet1.write(x, y, value) >>> >>> book.save('cat.xls') >>> >>> -------------------------------------------------------------------------------------------------------------------------- >>> >>> James Nicholson >>> nicholsonjf.com >>> >>> >>> On Wed, Mar 26, 2014 at 9:11 PM, Vikram K wrote: >>> >>>> I had already worked with xlrd in the past (while continuing to use csv >>>> module for writing a file) so decided to take a look at xlwt. I found an >>>> example on the net which works fine: >>>> >>>> import xlwt >>>> book = xlwt.Workbook() >>>> xlwt.add_palette_colour("custom_color",0x21) >>>> >>>> book.set_colour_RGB(0x21,251,228,228) >>>> >>>> sheet1 = book.add_sheet('Sheet1') >>>> >>>> style = xlwt.easyxf('pattern:pattern solid, fore_colour 0x21') >>>> sheet1.write(0,0,'Some text', style) >>>> book.save('test.xls') >>>> >>>> The above code generates an excel file with the top-left cell having >>>> the value 'Some text' which is in color. Now, suppose i have a nested list >>>> like this: >>>> >>>> >>> x = [['cat',10,20,30],['cat',50,60,70],['dog',20,30,40]] >>>> >>> x >>>> [['cat', 10, 20, 30], ['cat', 50, 60, 70], ['dog', 20, 30, 40]] >>>> >>> for i in x: >>>> print i >>>> >>>> ['cat', 10, 20, 30] >>>> ['cat', 50, 60, 70] >>>> ['dog', 20, 30, 40] >>>> >>> >>>> >>>> I wish to write out the nested list x to an excel file using xlwt in >>>> such a way that the rows which start with 'cat' are colored while the row >>>> starting with 'dog' are in a different color. Alternatively, the row >>>> starting with 'cat' can be colored, while the row starting with 'dog' can >>>> be left as is without any color. If anyone has worked on something like >>>> this, please help. Thank you. >>>> >>>> >>>> On Wed, Mar 26, 2014 at 4:12 PM, Martin Falatic wrote: >>>> >>>>> If you're generating a new excel file, xlwt works... some ideas: >>>>> >>>>> >>>>> http://stackoverflow.com/questions/15649482/how-to-set-color-of-text-using-xlwt >>>>> >>>>> >>>>> http://stackoverflow.com/questions/7746837/python-xlwt-set-custom-background-colour-of-a-cell >>>>> >>>>> >>>>> http://stackoverflow.com/questions/2981293/python-excel-xlwt-colouring-every-second-row?rq=1 >>>>> >>>>> - Marty >>>>> >>>>> >>>>> On Wed, March 26, 2014 12:10, Vikram K wrote: >>>>> > Could someone kindly tell me how i can add color programmatically to >>>>> > specific rows in an excel file. Thank you. >>>>> > _______________________________________________ >>>>> > Baypiggies mailing list >>>>> > Baypiggies at python.org >>>>> > To change your subscription options or unsubscribe: >>>>> > https://mail.python.org/mailman/listinfo/baypiggies >>>>> >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> Baypiggies mailing list >>>> Baypiggies at python.org >>>> To change your subscription options or unsubscribe: >>>> https://mail.python.org/mailman/listinfo/baypiggies >>>> >>> >>> >> > > > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > https://mail.python.org/mailman/listinfo/baypiggies > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sfseth at gmail.com Tue Apr 1 07:13:56 2014 From: sfseth at gmail.com (seth f) Date: Mon, 31 Mar 2014 22:13:56 -0700 Subject: [Baypiggies] Suggestions on Python training for first programming language? In-Reply-To: References: Message-ID: Thanks you all for your (ok, predictable) high level of supportiveness (one of the reasons I steer people towards python as a community as much as i do as a beautiful programming language). As a friend I'm both going to do what I can to mellowly teach (ie, hang out over a glass of nice red) and/or steer her towards more qualified people than myself for better education, as I have a high level of familiarity with just the basics of python, not by choice. I don't think she's going to be the champion to conquer the GIL, but as a user of a language picking between PHP ruby perl java etc, python seems like a great first language to me. I appreciate the suggestions. Thanks. See most of you soon probably. seth On Mon, Mar 31, 2014 at 8:34 PM, James Nicholson wrote: > My introduction to Python one year ago was through the Python Codeacademy > track . It's free, has a user > friendly interface, and is easy to start, stop and pick back up again. For > someone completely new to programming, it took me about 3 months to finish. > I thought the course did a good job explaining the basics, and pointing the > student to important outside resources like the Python documentation. Also, > since it's free and can be started very quickly at any time, it's a great > way to see how much you actually enjoy programming without spending any > money. > > I'm about to start a more intermediate 8-week course on April 8th (luckily > paid for by my employer) at UCSC Extension called Python for Programmers. > I'll try to followup on this thread after I'm done with some notes on my > experience there. > > -James > > James Nicholson > nicholsonjf.com > > > On Mon, Mar 31, 2014 at 6:28 PM, Shannon -jj Behrens wrote: > >> I heartily recommend Hackbright Academy as well, based on all the women >> I've met from there. >> >> If all she wants is a book, I know a lot of people have had success with: >> http://www.amazon.com/Python-Programming-Introduction-Computer-Science/dp/1887902996 >> >> There are Python classes on Code Academy, Udacity, Cousera, code.org (I >> think), etc. However, I haven't seen as many people make it all the way >> through those. >> >> >> On Mon, Mar 31, 2014 at 4:17 PM, Marc Abramowitz wrote: >> >>> My company (SurveyMonkey) has hired several graduates of: >>> >>> http://www.hackbrightacademy.com >>> >>> It's a 12 week intensive course in web development using Python for >>> women. It's in San Francisco. >>> >>> If your friend is interested, I could help introduce her to one of our >>> HackBright alumni, if she wants to ask them questions about it. >>> >>> -Marc >>> http://marc-abramowitz.com >>> Sent from my iPhone 4S >>> >>> >>> > On Mar 30, 2014, at 6:28 PM, seth f wrote: >>> > >>> > Hi folks, >>> > >>> > I have a good friend of 20+ years that seems curious about getting >>> more technical. She's whip-smart, super creative, and frustrated with her >>> current gig, which I gather is like somewhere in between editor of content >>> and QA. >>> > >>> > My initial reaction was, the Python community especially around here >>> is super cool, of course that's what my first thought is. Get above (or >>> below) the content level, get to the machinery at work, a happier life >>> exists. >>> > >>> > Question to the group, I ask on her behalf: can anyone recommend any >>> particular python classes? Or is anyone doing tutoring kind of stuff? jj? >>> > >>> > It would sadden me to see her go off into PHP or Perl lands, I think >>> it would be a couple of years of "wow" and then a world of despair. Java I >>> think the corporateness would get to her right off. >>> > >>> > So of course I'm biased but I suggested Python... I suggested Ruby >>> too, with the caveat that I just found Ruby to be cutesy, and both of us >>> are pretty dark in our senses of humor. >>> > >>> > Anyway, if we've got any Python educators on the list please let me >>> know. >>> > >>> > Thanks! >>> > seth >>> > _______________________________________________ >>> > Baypiggies mailing list >>> > Baypiggies at python.org >>> > To change your subscription options or unsubscribe: >>> > https://mail.python.org/mailman/listinfo/baypiggies >>> _______________________________________________ >>> Baypiggies mailing list >>> Baypiggies at python.org >>> To change your subscription options or unsubscribe: >>> https://mail.python.org/mailman/listinfo/baypiggies >>> >> >> >> >> -- >> In this life we cannot do great things. We can only do small things with >> great love. -- Mother Teresa >> >> _______________________________________________ >> Baypiggies mailing list >> Baypiggies at python.org >> To change your subscription options or unsubscribe: >> https://mail.python.org/mailman/listinfo/baypiggies >> > > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > https://mail.python.org/mailman/listinfo/baypiggies > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vikthirtyfive at gmail.com Tue Apr 1 10:52:36 2014 From: vikthirtyfive at gmail.com (Vikram K) Date: Tue, 1 Apr 2014 04:52:36 -0400 Subject: [Baypiggies] Fwd: adding color to excel files programmatically In-Reply-To: References: <41814.24.23.181.240.1395864738.squirrel@martin-wwwss5.ssl.supercp.com> Message-ID: It is gene expression data. On Mon, Mar 31, 2014 at 11:43 PM, James Nicholson wrote: > Glad you were able to get it working. Out of curiosity, what is that data > you're working with above? > > James Nicholson > nicholsonjf.com > > > On Mon, Mar 31, 2014 at 3:07 PM, Vikram K wrote: > >> finally got it to work: >> >> from xlrd import * >> from xlwt import Workbook, easyxf >> >> book = Workbook() >> >> sheet1 = book.add_sheet('sheet1') >> >> cat_cell = easyxf('pattern: pattern solid, fore_colour orange') >> >> >> workbook = open_workbook ("merged_manip_OUT.xlsx") >> sheet = workbook.sheet_by_index(0) >> #print sheet.cell_value(0,0) >> print sheet.nrows >> print sheet.ncols >> >> >> ##for col in range (sheet.ncols): >> ## print sheet.cell_value(0,col) >> >> print '------' >> data = [[sheet.cell_value(r,c) for c in range(sheet.ncols)] for r in >> range (sheet.nrows)] >> print len(data) >> >> >> header = data[0] >> data = data[1:] >> print len(data) >> >> print '------' >> >> >> >> for x, row in enumerate(data): >> if str(row[-2]).strip() =='Agree': >> for y,value in enumerate(row): >> sheet1.write(x,y,value,cat_cell) >> else: >> for y,value in enumerate(row): >> sheet1.write(x,y,value) >> >> book.save('merged_manip_OUT_mod.xls') >> >> ---------- Forwarded message ---------- >> From: Vikram K >> Date: Mon, Mar 31, 2014 at 5:58 PM >> Subject: Fwd: [Baypiggies] adding color to excel files programmatically >> To: Baypiggies >> >> >> Made a slight correction to the code: >> >> from xlrd import * >> from xlwt import Workbook, easyxf >> >> book = Workbook() >> >> sheet1 = book.add_sheet('sheet1') >> >> cat_cell = easyxf('pattern: pattern solid, fore_colour orange') >> >> >> workbook = open_workbook ("merged_manip_OUT.xlsx") >> sheet = workbook.sheet_by_index(0) >> #print sheet.cell_value(0,0) >> print sheet.nrows >> print sheet.ncols >> >> >> ##for col in range (sheet.ncols): >> ## print sheet.cell_value(0,col) >> >> print '------' >> data = [[sheet.cell_value(r,c) for c in range(sheet.ncols)] for r in >> range (sheet.nrows)] >> print len(data) >> >> >> header = data[0] >> data = data[1:] >> print len(data) >> >> print '------' >> >> >> >> for x, row in enumerate(data): >> if str(row[-2]).strip() =='Agree': >> for y,value in enumerate(row): >> sheet1.write(x,y,value[0],value[1],cat_cell) >> else: >> for y,value in enumerate(row): >> sheet1.write(x,y,value[0],value[1]) >> >> book.save('merged_manip_OUT_mod.xls') >> >> I am only trying to print the first two values of each row in the nested >> list data to the output file (for starters). Error msg is: >> >> >> Traceback (most recent call last): >> File >> "/Users/katju/Desktop/cell_line_comparison/comparison/Merged/color/color.py", >> line 40, in >> sheet1.write(x,y,value[0],value[1]) >> File >> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/xlwt/Worksheet.py", >> line 1030, in write >> self.row(r).write(c, label, style) >> File >> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/xlwt/Row.py", >> line 234, in write >> self.__adjust_height(style) >> File >> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/xlwt/Row.py", >> line 64, in __adjust_height >> twips = style.font.height >> AttributeError: 'unicode' object has no attribute 'font' >> >>> >> >> i want the first element value[0] to be a string and the second element >> value[1] to be an int. I tried doing str(value[0]) and int(value[1]) but >> again got a similar error msg. >> >> ---------- Forwarded message ---------- >> From: Vikram K >> Date: Mon, Mar 31, 2014 at 5:28 PM >> Subject: Re: [Baypiggies] adding color to excel files programmatically >> To: James Nicholson >> Cc: Martin Falatic , Baypiggies < >> baypiggies at python.org> >> >> >> Got stuck again. Please help. I only wanted to color the values of the >> nested list 'data' after they have been printed to an excel sheet based on >> whether the second last element in each row of the nested list data has the >> value 'Agree'. After giving the code and the error msg, i give the value of >> data[0] and data[1] to give you an idea of the data structure. >> >> This is my code: >> >> from xlrd import * >> from xlwt import Workbook, easyxf >> >> book = Workbook() >> >> sheet1 = book.add_sheet('sheet1') >> >> cat_cell = easyxf('pattern: pattern solid, fore_colour orange') >> >> >> workbook = open_workbook ("merged_manip_OUT.xlsx") >> sheet = workbook.sheet_by_index(0) >> #print sheet.cell_value(0,0) >> print sheet.nrows >> print sheet.ncols >> >> >> ##for col in range (sheet.ncols): >> ## print sheet.cell_value(0,col) >> >> print '------' >> data = [[sheet.cell_value(r,c) for c in range(sheet.ncols)] for r in >> range (sheet.nrows)] >> print len(data) >> >> >> header = data[0] >> data = data[1:] >> print len(data) >> >> print '------' >> >> >> for x, row in enumerate(data): >> if str(row[-2]).strip() =='Agree': >> for y,value in enumerate(row): >> sheet1.write(x,y,row[0],row[1],cat_cell) >> else: >> for y,value in enumerate(row): >> sheet1.write(x,y,row[0],row[1]) >> >> book.save('merged_manip_OUT_mod.xls') >> >> *********** >> >> This is the error message: >> >> >>> >> 2452 >> 27 >> ------ >> 2452 >> 2451 >> ------ >> >> Traceback (most recent call last): >> File >> "/Users/king/Desktop/cell_line_comparison/comparison/Merged/color/color.py", >> line 39, in >> sheet1.write(x,y,row[0],row[1]) >> File >> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/xlwt/Worksheet.py", >> line 1030, in write >> self.row(r).write(c, label, style) >> File >> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/xlwt/Row.py", >> line 234, in write >> self.__adjust_height(style) >> File >> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/xlwt/Row.py", >> line 64, in __adjust_height >> twips = style.font.height >> AttributeError: 'float' object has no attribute 'font' >> >>> >> >> ******* >> >> And these are the first two elements of the nested list data: >> >> >>> data[0] >> [u'230484_at', 55349.0, u'CHDH', u'choline dehydrogenase', u'3p21.1', >> 7.40318345, 7.40318345, 7.40318345, 0.0, 7.40318345, 1.0, 1.0, u'Same', >> u'Same', u'ILMN_2135321', u'CHDH', 55349.0, 3.0, 4.682925638, 3.856160407, >> 0.000480349, 3.765115429, -0.82676523, 0.563791944, u'Down', u'Disagree', >> u'Favorite'] >> >>> data[1] >> [u'1559591_s_at', 55349.0, u'CHDH', u'choline dehydrogenase', u'3p21.1', >> 6.682511457, 7.221781517, 9.847400986, -3.164889529, 6.977198106, >> 0.111499602, 0.136767478, u'Down', u'Down', u'ILMN_2135321', u'CHDH', >> 55349.0, 3.0, 4.682925638, 3.856160407, 0.000480349, 3.765115429, >> -0.82676523, 0.563791944, u'Down', u'Agree', ''] >> >> Notice that the string values have all been converted to unicode string >> values by xlrd. >> >> >> On Thu, Mar 27, 2014 at 12:04 PM, Vikram K wrote: >> >>> This is perfect. Many thanks. >>> >>> >>> On Thu, Mar 27, 2014 at 1:11 AM, James Nicholson wrote: >>> >>>> Hey Vikram, >>>> >>>> Tested the below code, it works. Output file is attached. >>>> >>>> Let me know if you have any questions, hopefully you can adapt this to >>>> what you're trying to do. >>>> >>>> Also, check out the python-excel pdf, >>>> it's an excellent resource. >>>> >>>> >>>> -------------------------------------------------------------------------------------------------------------------------- >>>> from xlwt import Workbook, easyxf >>>> >>>> book = Workbook() >>>> >>>> sheet1 = book.add_sheet('sheet1') >>>> >>>> cat_cell = easyxf('pattern: pattern solid, fore_colour red') >>>> >>>> rows = [['cat',10,20,30],['cat',50,60,70],['dog',20,30,40]] >>>> >>>> for x, row in enumerate(rows): >>>> if row[0] == 'cat': >>>> for y, value in enumerate(row): >>>> sheet1.write(x, y, value, cat_cell) >>>> else: >>>> for y, value in enumerate(row): >>>> sheet1.write(x, y, value) >>>> >>>> book.save('cat.xls') >>>> >>>> -------------------------------------------------------------------------------------------------------------------------- >>>> >>>> James Nicholson >>>> nicholsonjf.com >>>> >>>> >>>> On Wed, Mar 26, 2014 at 9:11 PM, Vikram K wrote: >>>> >>>>> I had already worked with xlrd in the past (while continuing to use >>>>> csv module for writing a file) so decided to take a look at xlwt. I found >>>>> an example on the net which works fine: >>>>> >>>>> import xlwt >>>>> book = xlwt.Workbook() >>>>> xlwt.add_palette_colour("custom_color",0x21) >>>>> >>>>> book.set_colour_RGB(0x21,251,228,228) >>>>> >>>>> sheet1 = book.add_sheet('Sheet1') >>>>> >>>>> style = xlwt.easyxf('pattern:pattern solid, fore_colour 0x21') >>>>> sheet1.write(0,0,'Some text', style) >>>>> book.save('test.xls') >>>>> >>>>> The above code generates an excel file with the top-left cell having >>>>> the value 'Some text' which is in color. Now, suppose i have a nested list >>>>> like this: >>>>> >>>>> >>> x = [['cat',10,20,30],['cat',50,60,70],['dog',20,30,40]] >>>>> >>> x >>>>> [['cat', 10, 20, 30], ['cat', 50, 60, 70], ['dog', 20, 30, 40]] >>>>> >>> for i in x: >>>>> print i >>>>> >>>>> ['cat', 10, 20, 30] >>>>> ['cat', 50, 60, 70] >>>>> ['dog', 20, 30, 40] >>>>> >>> >>>>> >>>>> I wish to write out the nested list x to an excel file using xlwt in >>>>> such a way that the rows which start with 'cat' are colored while the row >>>>> starting with 'dog' are in a different color. Alternatively, the row >>>>> starting with 'cat' can be colored, while the row starting with 'dog' can >>>>> be left as is without any color. If anyone has worked on something like >>>>> this, please help. Thank you. >>>>> >>>>> >>>>> On Wed, Mar 26, 2014 at 4:12 PM, Martin Falatic wrote: >>>>> >>>>>> If you're generating a new excel file, xlwt works... some ideas: >>>>>> >>>>>> >>>>>> http://stackoverflow.com/questions/15649482/how-to-set-color-of-text-using-xlwt >>>>>> >>>>>> >>>>>> http://stackoverflow.com/questions/7746837/python-xlwt-set-custom-background-colour-of-a-cell >>>>>> >>>>>> >>>>>> http://stackoverflow.com/questions/2981293/python-excel-xlwt-colouring-every-second-row?rq=1 >>>>>> >>>>>> - Marty >>>>>> >>>>>> >>>>>> On Wed, March 26, 2014 12:10, Vikram K wrote: >>>>>> > Could someone kindly tell me how i can add color programmatically to >>>>>> > specific rows in an excel file. Thank you. >>>>>> > _______________________________________________ >>>>>> > Baypiggies mailing list >>>>>> > Baypiggies at python.org >>>>>> > To change your subscription options or unsubscribe: >>>>>> > https://mail.python.org/mailman/listinfo/baypiggies >>>>>> >>>>>> >>>>>> >>>>> >>>>> _______________________________________________ >>>>> Baypiggies mailing list >>>>> Baypiggies at python.org >>>>> To change your subscription options or unsubscribe: >>>>> https://mail.python.org/mailman/listinfo/baypiggies >>>>> >>>> >>>> >>> >> >> >> >> _______________________________________________ >> Baypiggies mailing list >> Baypiggies at python.org >> To change your subscription options or unsubscribe: >> https://mail.python.org/mailman/listinfo/baypiggies >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mdavis2 at ucsc.edu Tue Apr 1 21:08:29 2014 From: mdavis2 at ucsc.edu (Marilyn Davis) Date: Tue, 1 Apr 2014 12:08:29 -0700 Subject: [Baypiggies] Suggestions on Python training for first programming language? In-Reply-To: References: Message-ID: Hi, At UCSC-Extension in Santa Clara, we're starting an evening class, designed just for your friend, on April 17. Here's our Spring assortment of classes: Several new Python classes are starting for experienced programmers and for novices to programming at UCSC-Extension Silicon Valley's labs in Santa Clara, right across 101 from the Great America sign. FOR EXPERIENCED PROGRAMMERS Next Monday evening we begin the 9 week course for experienced programmers, which gives students experience in all core concepts of Python: The Programmers' course is low-pressure, but fast-paced, where students learn and practice core concepts and Pythonic thinking. To join any of these Python classes, you should be well-practiced at programming in some other language. No beginning programmers please, but you can certainly be new to Python. If you are beginner, find your class below. http://course.ucsc-extension.edu/modules/shop/index.html?action=section&OfferingID=1531625&SectionID=5274428 ONLINE CLASSES: If you would prefer an online class, you will enjoy: http://course.ucsc-extension.edu/modules/shop/index.html?action=section&OfferingID=1531625&SectionID=5274068 The online site for this course is open now and new enrollments will be accepted until April 8. FOR NOVICES For 6 Thursday evenings, starting April 17, we will hold the "Introduction To Programming For Beginners, Using Python" class which prepares programming novices to take the Python For Programmers' class: http://course.ucsc-extension.edu/modules/shop/index.html?action=section&OfferingID=3576274&SectionID=5274427 If you have programming experience in any language skip the Beginners class listed above and join a Programmers' class. ---- All our Python courses are hands-on with short lectures, and lots of exercises where we study the solutions after some lab time. Questions are always welcome; discussion and pair-programming are encouraged. Please come, and send students! --- And, the first quarter of the professional course is available for $20 at Udemy.Com! I'm so busy that I can't say when the rest of the course will be there, but I'm working on it. https://www.udemy.com/pythonic-python-part-i-the-basics/ I hope you find one of these classes useful to your schedule and your taste. Marilyn Davis On Sun, Mar 30, 2014 at 6:28 PM, seth f wrote: > Hi folks, > > I have a good friend of 20+ years that seems curious about getting more > technical. She's whip-smart, super creative, and frustrated with her > current gig, which I gather is like somewhere in between editor of content > and QA. > > My initial reaction was, the Python community especially around here is > super cool, of course that's what my first thought is. Get above (or > below) the content level, get to the machinery at work, a happier life > exists. > > Question to the group, I ask on her behalf: can anyone recommend any > particular python classes? Or is anyone doing tutoring kind of stuff? jj? > > It would sadden me to see her go off into PHP or Perl lands, I think it > would be a couple of years of "wow" and then a world of despair. Java I > think the corporateness would get to her right off. > > So of course I'm biased but I suggested Python... I suggested Ruby too, > with the caveat that I just found Ruby to be cutesy, and both of us are > pretty dark in our senses of humor. > > Anyway, if we've got any Python educators on the list please let me know. > > Thanks! > seth > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > https://mail.python.org/mailman/listinfo/baypiggies > -------------- next part -------------- An HTML attachment was scrubbed... URL: From skye at talentinterests.com Wed Apr 2 21:52:34 2014 From: skye at talentinterests.com (Skye King Laskin) Date: Wed, 2 Apr 2014 12:52:34 -0700 Subject: [Baypiggies] Tech Lead / Architect / Principal Engineer - Risk Engine Message-ID: Bay piggies, Hope you are doing well! Below is info on an epic role I am looking to get the right person on-board. this is a hands on role where an expert level java and senior level Python knowledge will assure me you can land running and like it here. Oh yeah were are about to IPO withing 12 month so... Position: Sr. Staff Software Engineer Area: Risk Engineering Hiring Manager: Head of Data Engineering Work Location: Menlo Park, CA Type: Full-time Who Are We? We are the partner of choice to the 23 million underbanked Hispanics in the United States who need access to responsible and empowering financial products and services. Unlike mainstream institutions, we provide loans without collateral to clients who lack credit history by using its sophisticated risk-scoring system that emphasizes a client's true capacity to afford a loan. we engage with customers in their neighborhoods, in their language, and with familiar faces from the community to build relationships of trust that lead to a lifetime of growth and prosperity. We are a for-profit institution that believes in the moral collateral of its clients and is committed to providing opportunities to help its clients achieve their dreams. Since its founding in 2005, the company has made more than 350,000 loans, extending $900 million in capital to underserved Hispanic families through more than 90 locations across California, Illinois and Texas and helping improve credit scores for more than 87 percent of its loan customers. We strongly believe in building a great business while also achieving social good, and seek to hire people who share our values. The Opportunity... Our customers have not been understood by big banks or allowed entry into the mainstream financial market. As a consequence, we can't use traditional tools because there simply aren't any that serve these customers. Therefore, we need a team of talented engineers who dream of data, simple user experiences and the endless possibility of applying new tech to build the algos and internal / consumer facing platform to enable socially responsible lending practices -- from scratch. A little bit about you... You love writing code that makes are real positive impact on people's lives. You love working in a fast-paced startup environment. You are respected by other engineers for solid code and think ahead in your design. You are comfortable with agile development and love shipping rapidly in small increments. You take ownership of code, refactor code to make it better, and help ensure code is well tested. You are curious, creative and constantly think of new ways to improve what we do. You have no ego and a willingness to do whatever it takes to ship product. And of course, the skills... - 8+ years of industry software development - 5+ years of implementing risk models, predictive analytics, or other data mining systems - Expert-level Java (preferred), or Ruby, Python, or Groovy development - Deep knowledge of decisioning or data mining service architecture, validation, and testing - Experience with web and service-oriented architectures - Experience with git and related workflows or similar code management systems - Startup and agile process experience - Bachelor's Degree in Computer Science or related field Other Skills We'd Love... - Hands-on knowledge of analyzing and tuning the performance of data services - Implementing data mining models, such as decision trees, or regressions - Hands-on experience with SQL and NoSQL databases - Loan application approval or credit scoring - Fraud, spam or abuse detection - Social network analysis - eCommerce platforms, or consumer finance applications If you have interest in learning more or any questions email or call me. Thanks Skye King Laskin PF Talent Acquisition 775-354-6997(cell) -------------- next part -------------- An HTML attachment was scrubbed... URL: From jim at systemateka.com Sat Apr 12 21:03:55 2014 From: jim at systemateka.com (jim) Date: Sat, 12 Apr 2014 12:03:55 -0700 Subject: [Baypiggies] request for opinions re python-web server-database Message-ID: <53498E1B.1020100@systemateka.com> [rudimentary questions] I have a client for whom I'm cooking up the following: * on a dedicated computer with no LAN connection * some (hopefully) lean web server with a set of web pages that get data from the user and to a local database and another set of web pages used to get data and format reports, both using javascript to get and present data * some python module(s) that interface between the (lean) web server and the database * some (hopefully simple but bulletproof) database management system, (again, hopefully) not mysql and postgresql is okay though I hope for something simpler. Data is primarily strings and integers. The need could be satisfied with a set of flat files (plain text ASCII) colon-delimited or some such, but I hope not to reinvent too many wheels. Go opinions on a good, lean web server and a compatible python module and rdbms system? Or an alternative approach (it'd be fine with me if I can do everything by typing in some Python files, tho' Django is a learning curve that I hope to avoid for this project). Hopefully, with thanks, jim From dreinhold at gmail.com Sat Apr 12 21:32:30 2014 From: dreinhold at gmail.com (Dylan Reinhold) Date: Sat, 12 Apr 2014 12:32:30 -0700 Subject: [Baypiggies] request for opinions re python-web server-database In-Reply-To: <53498E1B.1020100@systemateka.com> References: <53498E1B.1020100@systemateka.com> Message-ID: My first thought would be gunicorn webserver with a sqllite backend. You can use the sqllite module to work with the DB in python. For the database management system, what are you looking to manage. Sounds like a simple DB setup that would not require a lot of management. Regards, Dylan On Sat, Apr 12, 2014 at 12:03 PM, jim wrote: > > [rudimentary questions] > > I have a client for whom I'm cooking up the following: > * on a dedicated computer with no LAN connection > * some (hopefully) lean web server with a set of web > pages that get data from the user and to a local > database and another set of web pages used to get > data and format reports, both using javascript to > get and present data > * some python module(s) that interface between the > (lean) web server and the database > * some (hopefully simple but bulletproof) database > management system, (again, hopefully) not mysql > and postgresql is okay though I hope for something > simpler. Data is primarily strings and integers. The > need could be satisfied with a set of flat files (plain > text ASCII) colon-delimited or some such, but I hope > not to reinvent too many wheels. > > Go opinions on a good, lean web server and a > compatible python module and rdbms system? > Or an alternative approach (it'd be fine with me if I > can do everything by typing in some Python files, tho' > Django is a learning curve that I hope to avoid for > this project). > > Hopefully, with thanks, > jim > > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > https://mail.python.org/mailman/listinfo/baypiggies > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jim at well.com Sat Apr 12 21:38:31 2014 From: jim at well.com (jim) Date: Sat, 12 Apr 2014 12:38:31 -0700 Subject: [Baypiggies] request for opinions re python-web server-database In-Reply-To: References: <53498E1B.1020100@systemateka.com> Message-ID: <53499637.9010802@well.com> Thanks lots. I'll take a look at gunicorn. The database could be a set of flat files that store strings in colon-delimited fields. That option is poor because * I'll have to code data conversion and other functions that are common to database management software * Data should be encrypted so's to require the user to use my functions to generate files for USB stick transfer (no LAN connex as a point of security). -- a flatfile manager for ASCII data would work fine -- an rdbms would work, tho' it will be best that installation, configuration, connection is easy On 04/12/2014 12:32 PM, Dylan Reinhold wrote: > My first thought would be gunicorn webserver with a sqllite backend. > You can use the sqllite module to work with the DB in python. > > For the database management system, what are you looking to manage. > Sounds like a simple DB setup that would not require a lot of management. > > Regards, > Dylan > > > On Sat, Apr 12, 2014 at 12:03 PM, jim > wrote: > > > [rudimentary questions] > > I have a client for whom I'm cooking up the following: > * on a dedicated computer with no LAN connection > * some (hopefully) lean web server with a set of web > pages that get data from the user and to a local > database and another set of web pages used to get > data and format reports, both using javascript to > get and present data > * some python module(s) that interface between the > (lean) web server and the database > * some (hopefully simple but bulletproof) database > management system, (again, hopefully) not mysql > and postgresql is okay though I hope for something > simpler. Data is primarily strings and integers. The > need could be satisfied with a set of flat files (plain > text ASCII) colon-delimited or some such, but I hope > not to reinvent too many wheels. > > Go opinions on a good, lean web server and a > compatible python module and rdbms system? > Or an alternative approach (it'd be fine with me if I > can do everything by typing in some Python files, tho' > Django is a learning curve that I hope to avoid for > this project). > > Hopefully, with thanks, > jim > > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > https://mail.python.org/mailman/listinfo/baypiggies > > > > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > https://mail.python.org/mailman/listinfo/baypiggies -------------- next part -------------- An HTML attachment was scrubbed... URL: From bryceverdier at gmail.com Sat Apr 12 22:12:46 2014 From: bryceverdier at gmail.com (Bryce) Date: Sat, 12 Apr 2014 13:12:46 -0700 Subject: [Baypiggies] request for opinions re python-web server-database In-Reply-To: <53499637.9010802@well.com> References: <53498E1B.1020100@systemateka.com> <53499637.9010802@well.com> Message-ID: <53499E3E.5070908@gmail.com> At work I've been working on django site that uses Riak as a back end for counters and time series data. Even though its recommended to run in a cluster of at least 5 for "production" (And I would say at least 3 nodes for serious things). I've been able to get away with a single node and its been rock solid. Just make sure its a "strong" server with plenty of disk space and you'll be good. Basho, the company that makes and open sources Riak, is in charge of the python driver and the documentation is decent. Hopefully this helps. Bryce On 04/12/14 12:38, jim wrote: > > Thanks lots. I'll take a look at gunicorn. > The database could be a set of flat files that store > strings in colon-delimited fields. That option is poor > because > > * I'll have to code data conversion and other functions > that are common to database management software > > * Data should be encrypted so's to require the user to > use my functions to generate files for USB stick > transfer (no LAN connex as a point of security). > -- a flatfile manager for ASCII data would work fine > -- an rdbms would work, tho' it will be best that > installation, configuration, connection is easy > > > > On 04/12/2014 12:32 PM, Dylan Reinhold wrote: >> My first thought would be gunicorn webserver with a sqllite backend. >> You can use the sqllite module to work with the DB in python. >> >> For the database management system, what are you looking to manage. >> Sounds like a simple DB setup that would not require a lot of management. >> >> Regards, >> Dylan >> >> >> On Sat, Apr 12, 2014 at 12:03 PM, jim > > wrote: >> >> >> [rudimentary questions] >> >> I have a client for whom I'm cooking up the following: >> * on a dedicated computer with no LAN connection >> * some (hopefully) lean web server with a set of web >> pages that get data from the user and to a local >> database and another set of web pages used to get >> data and format reports, both using javascript to >> get and present data >> * some python module(s) that interface between the >> (lean) web server and the database >> * some (hopefully simple but bulletproof) database >> management system, (again, hopefully) not mysql >> and postgresql is okay though I hope for something >> simpler. Data is primarily strings and integers. The >> need could be satisfied with a set of flat files (plain >> text ASCII) colon-delimited or some such, but I hope >> not to reinvent too many wheels. >> >> Go opinions on a good, lean web server and a >> compatible python module and rdbms system? >> Or an alternative approach (it'd be fine with me if I >> can do everything by typing in some Python files, tho' >> Django is a learning curve that I hope to avoid for >> this project). >> >> Hopefully, with thanks, >> jim >> >> >> _______________________________________________ >> Baypiggies mailing list >> Baypiggies at python.org >> To change your subscription options or unsubscribe: >> https://mail.python.org/mailman/listinfo/baypiggies >> >> >> >> >> _______________________________________________ >> Baypiggies mailing list >> Baypiggies at python.org >> To change your subscription options or unsubscribe: >> https://mail.python.org/mailman/listinfo/baypiggies > > > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > https://mail.python.org/mailman/listinfo/baypiggies -------------- next part -------------- An HTML attachment was scrubbed... URL: From davidoff56 at alluvialsw.com Sat Apr 12 21:52:24 2014 From: davidoff56 at alluvialsw.com (Monte Davidoff) Date: Sat, 12 Apr 2014 12:52:24 -0700 Subject: [Baypiggies] request for opinions re python-web server-database In-Reply-To: <53498E1B.1020100@systemateka.com> References: <53498E1B.1020100@systemateka.com> Message-ID: <53499978.30605@alluvialsw.com> Hi Jim, I suggest considering the following: Web server: something that supports WSGI, such as tornado or Apache with mod_wsgi. Web app: Flask (easy to get started, lower learning curve than Django). Database: sqlite. You can access it though sqlite3 module in the standard library. If you prefer a higher-level interface, look at SQLAlchemy with the sqlite backend. Monte On 4/12/14 12:03 PM, jim wrote: > > [rudimentary questions] > > I have a client for whom I'm cooking up the following: > * on a dedicated computer with no LAN connection > * some (hopefully) lean web server with a set of web > pages that get data from the user and to a local > database and another set of web pages used to get > data and format reports, both using javascript to > get and present data > * some python module(s) that interface between the > (lean) web server and the database > * some (hopefully simple but bulletproof) database > management system, (again, hopefully) not mysql > and postgresql is okay though I hope for something > simpler. Data is primarily strings and integers. The > need could be satisfied with a set of flat files (plain > text ASCII) colon-delimited or some such, but I hope > not to reinvent too many wheels. > > Go opinions on a good, lean web server and a > compatible python module and rdbms system? > Or an alternative approach (it'd be fine with me if I > can do everything by typing in some Python files, tho' > Django is a learning curve that I hope to avoid for > this project). > > Hopefully, with thanks, > jim > > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > https://mail.python.org/mailman/listinfo/baypiggies > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kenneth at ylayali.net Sat Apr 12 22:55:13 2014 From: kenneth at ylayali.net (Kenneth Dombrowski) Date: Sat, 12 Apr 2014 16:55:13 -0400 Subject: [Baypiggies] request for opinions re python-web server-database In-Reply-To: <53499637.9010802@well.com> References: <53498E1B.1020100@systemateka.com> <53499637.9010802@well.com> Message-ID: <20140412205513.GB13343@ylayali.net> I second Dylan's recommendation of sqlite. The database is just a file, installation is just a c lib + a python lib, available from any distro (aptitude install python-sqlite in any debian-based linux). I would recommend Flask for the app framework. gunicorn is a good server. On 14-04-12 12:38 -0700, jim wrote: > > Thanks lots. I'll take a look at gunicorn. > The database could be a set of flat files that store > strings in colon-delimited fields. That option is poor > because > > * I'll have to code data conversion and other functions > that are common to database management software > > * Data should be encrypted so's to require the user to > use my functions to generate files for USB stick > transfer (no LAN connex as a point of security). > -- a flatfile manager for ASCII data would work fine > -- an rdbms would work, tho' it will be best that > installation, configuration, connection is easy > > > > On 04/12/2014 12:32 PM, Dylan Reinhold wrote: > >My first thought would be gunicorn webserver with a sqllite backend. > >You can use the sqllite module to work with the DB in python. > > > >For the database management system, what are you looking to > >manage. Sounds like a simple DB setup that would not require a lot > >of management. > > > >Regards, > >Dylan > > > > > >On Sat, Apr 12, 2014 at 12:03 PM, jim >> wrote: > > > > > > [rudimentary questions] > > > > I have a client for whom I'm cooking up the following: > > * on a dedicated computer with no LAN connection > > * some (hopefully) lean web server with a set of web > > pages that get data from the user and to a local > > database and another set of web pages used to get > > data and format reports, both using javascript to > > get and present data > > * some python module(s) that interface between the > > (lean) web server and the database > > * some (hopefully simple but bulletproof) database > > management system, (again, hopefully) not mysql > > and postgresql is okay though I hope for something > > simpler. Data is primarily strings and integers. The > > need could be satisfied with a set of flat files (plain > > text ASCII) colon-delimited or some such, but I hope > > not to reinvent too many wheels. > > > > Go opinions on a good, lean web server and a > > compatible python module and rdbms system? > > Or an alternative approach (it'd be fine with me if I > > can do everything by typing in some Python files, tho' > > Django is a learning curve that I hope to avoid for > > this project). > > > > Hopefully, with thanks, > > jim > > > > > > _______________________________________________ > > Baypiggies mailing list > > Baypiggies at python.org > > To change your subscription options or unsubscribe: > > https://mail.python.org/mailman/listinfo/baypiggies > > > > > > > > > >_______________________________________________ > >Baypiggies mailing list > >Baypiggies at python.org > >To change your subscription options or unsubscribe: > >https://mail.python.org/mailman/listinfo/baypiggies > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > https://mail.python.org/mailman/listinfo/baypiggies From ams.fwd at gmail.com Sun Apr 13 02:19:20 2014 From: ams.fwd at gmail.com (AM) Date: Sat, 12 Apr 2014 17:19:20 -0700 Subject: [Baypiggies] request for opinions re python-web server-database In-Reply-To: <53498E1B.1020100@systemateka.com> References: <53498E1B.1020100@systemateka.com> Message-ID: <5349D808.80501@gmail.com> On 04/12/2014 12:03 PM, jim wrote: > > [rudimentary questions] > > I have a client for whom I'm cooking up the following: > * on a dedicated computer with no LAN connection > * some (hopefully) lean web server with a set of web > pages that get data from the user and to a local > database and another set of web pages used to get > data and format reports, both using javascript to > get and present data > * some python module(s) that interface between the > (lean) web server and the database > * some (hopefully simple but bulletproof) database > management system, (again, hopefully) not mysql > and postgresql is okay though I hope for something > simpler. Data is primarily strings and integers. The > need could be satisfied with a set of flat files (plain > text ASCII) colon-delimited or some such, but I hope > not to reinvent too many wheels. > > Go opinions on a good, lean web server and a > compatible python module and rdbms system? > Or an alternative approach (it'd be fine with me if I > can do everything by typing in some Python files, tho' > Django is a learning curve that I hope to avoid for > this project). > > Hopefully, with thanks, > jim > > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > https://mail.python.org/mailman/listinfo/baypiggies When I built something exactly like this for a non-profit circa 2002 the simplest and easiest thing was zope :) especially if you use the management interface to do everything instead of writing modules and doing things the naive way instead of the right way. As to 'lean' I think that will depend on what your baseline is. If its j2ee frameworks almost everything is lean, if its bottle, well almost nothing is lean. HTH AM From grant.jenks at gmail.com Mon Apr 14 00:11:43 2014 From: grant.jenks at gmail.com (Grant Jenks) Date: Sun, 13 Apr 2014 15:11:43 -0700 Subject: [Baypiggies] request for opinions re python-web server-database In-Reply-To: <5349D808.80501@gmail.com> References: <53498E1B.1020100@systemateka.com> <5349D808.80501@gmail.com> Message-ID: I too built something similar for a non-profit. It was a food-pantry-type database system. Stack was: * cherrypy - Good-enough webserver for a localhost deploy. Really easy to use and configure. * django - Web framework with built-in ORM. I was already familiar with this so it was an easy choice. I don't think the benefits of Flask outweigh its use if you're also going to also need SQLAlchemy. You also benefit automatically from Django's admin interface. * sqlite - Rock-solid, built-in to Python and easy compatibility with Django. * py2exe - Great for deployment if it's going to a Windows machine. I made it so that I deployed simply an exe that the end-user double-clicked. This would spawn a Chrome browser in kiosk mode and the webserver backend. I open sourced my implementation here: https://github.com/grantjenks/emmaus_house_food_pantry Hope that helps, Grant On Sat, Apr 12, 2014 at 5:19 PM, AM wrote: > On 04/12/2014 12:03 PM, jim wrote: > >> >> [rudimentary questions] >> >> I have a client for whom I'm cooking up the following: >> * on a dedicated computer with no LAN connection >> * some (hopefully) lean web server with a set of web >> pages that get data from the user and to a local >> database and another set of web pages used to get >> data and format reports, both using javascript to >> get and present data >> * some python module(s) that interface between the >> (lean) web server and the database >> * some (hopefully simple but bulletproof) database >> management system, (again, hopefully) not mysql >> and postgresql is okay though I hope for something >> simpler. Data is primarily strings and integers. The >> need could be satisfied with a set of flat files (plain >> text ASCII) colon-delimited or some such, but I hope >> not to reinvent too many wheels. >> >> Go opinions on a good, lean web server and a >> compatible python module and rdbms system? >> Or an alternative approach (it'd be fine with me if I >> can do everything by typing in some Python files, tho' >> Django is a learning curve that I hope to avoid for >> this project). >> >> Hopefully, with thanks, >> jim >> >> >> _______________________________________________ >> Baypiggies mailing list >> Baypiggies at python.org >> To change your subscription options or unsubscribe: >> https://mail.python.org/mailman/listinfo/baypiggies >> > When I built something exactly like this for a non-profit circa 2002 the > simplest and easiest thing was zope :) especially if you use the management > interface to do everything instead of writing modules and doing things the > naive way instead of the right way. > > As to 'lean' I think that will depend on what your baseline is. If its > j2ee frameworks almost everything is lean, if its bottle, well almost > nothing is lean. > > HTH > AM > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > https://mail.python.org/mailman/listinfo/baypiggies > -------------- next part -------------- An HTML attachment was scrubbed... URL: From drwho at virtadpt.net Mon Apr 14 19:17:06 2014 From: drwho at virtadpt.net (The Doctor) Date: Mon, 14 Apr 2014 10:17:06 -0700 Subject: [Baypiggies] request for opinions re python-web server-database In-Reply-To: <53498E1B.1020100@systemateka.com> References: <53498E1B.1020100@systemateka.com> Message-ID: <534C1812.2020506@virtadpt.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 04/12/2014 12:03 PM, jim wrote: > Go opinions on a good, lean web server and a compatible python > module and rdbms system? For a project a couple of years ago, I based it upon CherryPy for the web framework, Mako for HTML templating, and SQLite as the back-end datastore. I didn't bother configuring a web server to proxy for it, it was designed to be accessible from the local host only. It was designed for a very small number of people to interact with at once so I don't know how much stress it could really handle. - -- The Doctor [412/724/301/703] [ZS] Developer, Project Byzantium: http://project-byzantium.org/ PGP: 0x807B17C1 / 7960 1CDC 85C9 0B63 8D9F DD89 3BD8 FF2B 807B 17C1 WWW: https://drwho.virtadpt.net/ "If you're going to wait for the universe to start making sense, you've got a long wait ahead of you." -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEAREKAAYFAlNMGBIACgkQO9j/K4B7F8GO5ACfR7NT2N0/8h1oKONa9kIHe8oE 7UEAoIjBsLsNENAxV2SSfZ5T0dxFGiij =Gwq3 -----END PGP SIGNATURE----- From jim at systemateka.com Mon Apr 14 19:35:50 2014 From: jim at systemateka.com (jim) Date: Mon, 14 Apr 2014 10:35:50 -0700 Subject: [Baypiggies] request for opinions re python-web server-database In-Reply-To: <534C1812.2020506@virtadpt.net> References: <53498E1B.1020100@systemateka.com> <534C1812.2020506@virtadpt.net> Message-ID: <534C1C76.3010603@systemateka.com> Big thanks to all of you. T.Dr.'s project is closest to mine: single user on a local computer, small data set, high security needs: a matter of using a browser for data input and data reports along with a requirement to copy encrypted files occasionally to some external media for transport to some other, similar system. I'm gonna try CherryPy and SQLite (and maybe Mako if need be). More thanks to all. jim On 04/14/2014 10:17 AM, The Doctor wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 > > On 04/12/2014 12:03 PM, jim wrote: > >> Go opinions on a good, lean web server and a compatible python >> module and rdbms system? > For a project a couple of years ago, I based it upon CherryPy for the > web framework, Mako for HTML templating, and SQLite as the back-end > datastore. I didn't bother configuring a web server to proxy for it, > it was designed to be accessible from the local host only. It was > designed for a very small number of people to interact with at once so > I don't know how much stress it could really handle. > > - -- > The Doctor [412/724/301/703] [ZS] > Developer, Project Byzantium: http://project-byzantium.org/ > > PGP: 0x807B17C1 / 7960 1CDC 85C9 0B63 8D9F DD89 3BD8 FF2B 807B 17C1 > WWW: https://drwho.virtadpt.net/ > > "If you're going to wait for the universe to start making sense, > you've got a long wait ahead of you." > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.22 (GNU/Linux) > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iEYEAREKAAYFAlNMGBIACgkQO9j/K4B7F8GO5ACfR7NT2N0/8h1oKONa9kIHe8oE > 7UEAoIjBsLsNENAxV2SSfZ5T0dxFGiij > =Gwq3 > -----END PGP SIGNATURE----- > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > https://mail.python.org/mailman/listinfo/baypiggies > From vikthirtyfive at gmail.com Tue Apr 15 20:35:25 2014 From: vikthirtyfive at gmail.com (Vikram K) Date: Tue, 15 Apr 2014 14:35:25 -0400 Subject: [Baypiggies] Quick question on pyreport Message-ID: Please help! i am trying to create a report for some work i did using python using the pyreport module. My report looks something like this: #!Bla bla bla #!Bla bla bla .. .. So i am writing my report starting with #! in each line of the report and then copying the lines of the python program i used in my work (work.py) without any comments in the new program filename.py. I am running the program filename.py from the command line of my mac snow leopard computer and using python 2.7.3: pyreport filename.py the program filename.py works fine and generates a pdf report when filename.py only contains the comment section where each line is prefixed with #!. I am also able to run the program work.py independently. But When i add the program lines of work.py after the comment section in filename.py and try and run the program filename.py as before i get this message: dhcp-140-254-202-142:Lynn kat$ pyreport CLL_comparison_report.py Running python script /Users/kat/Desktop/PyReport/Lynn/CLL_comparison_report.py: 41523 ['1570571_at', '55297', 'CCDC91', 'CCDC91', 'coiled-coil domain containing 91', '12p11.22', '6.766033371', '6.828531308', '6.101595018', '0.6644383529999995', '6.797620741469344', '1.5849511252316923', '1.6200358324888804', 'Up', 'Up', 'ILMN_1676523', 'CCDC91', '55297', '12', '6.4217520050678', '7.4419596592389', '5.35300515025483e-09', '-7.18875840717484', '1.0202076541710996', '2.0282108689067284', 'Up'] Outputing report to /Users/kat/Desktop/PyReport/Lynn/CLL_comparison_report.pdf :2: (WARNING/2) Title underline too short. Parse MDA CLL data file ~~~~~~~~~~~~~ Error reading rst on literate comment line falling back to plain text :1: (SEVERE/4) Incomplete section title. ~~~~~~~~ Parse OSU CLL cell line data file Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.7/bin/pyreport", line 8, in load_entry_point('pyreport==0.3.4c', 'console_scripts', 'pyreport')() File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyreport-0.3.4c-py2.7.egg/pyreport/pyreport.py", line 57, in commandline_call main(pyfile, overrides=options) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyreport-0.3.4c-py2.7.egg/pyreport/main.py", line 1125, in main output_list = shape_output_list(output_list, options) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyreport-0.3.4c-py2.7.egg/pyreport/main.py", line 364, in shape_output_list output_list = map(check_rst_block, output_list) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyreport-0.3.4c-py2.7.egg/pyreport/main.py", line 573, in check_rst_block publisher.parser, publisher.settings) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/docutils/readers/__init__.py", line 72, in read self.parse() File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/docutils/readers/__init__.py", line 78, in parse self.parser.parse(self.input, document) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/docutils/parsers/rst/__init__.py", line 172, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 170, in run input_source=document['source']) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/docutils/statemachine.py", line 239, in run context, state, transitions) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/docutils/statemachine.py", line 460, in check_line return method(match, context, next_state) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 2919, in text line=lineno) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/docutils/utils/__init__.py", line 235, in severe return self.system_message(self.SEVERE_LEVEL, *args, **kwargs) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/docutils/utils/__init__.py", line 193, in system_message raise SystemMessage(msg, level) docutils.utils.SystemMessage: :1: (SEVERE/4) Incomplete section title. ~~~~~~~~ Parse OSU CLL cell line data file dhcp-140-254-202-142:Lynn kat$ -------------- next part -------------- An HTML attachment was scrubbed... URL: From vikthirtyfive at gmail.com Tue Apr 15 22:14:01 2014 From: vikthirtyfive at gmail.com (Vikram K) Date: Tue, 15 Apr 2014 16:14:01 -0400 Subject: [Baypiggies] Fwd: Quick question on pyreport In-Reply-To: References: Message-ID: ok i figured it out. the idea is that you cannot add any of the #! comments anywhere in your code. ---------- Forwarded message ---------- From: Vikram K Date: Tue, Apr 15, 2014 at 2:35 PM Subject: Quick question on pyreport To: Baypiggies Please help! i am trying to create a report for some work i did using python using the pyreport module. My report looks something like this: #!Bla bla bla #!Bla bla bla .. .. So i am writing my report starting with #! in each line of the report and then copying the lines of the python program i used in my work (work.py) without any comments in the new program filename.py. I am running the program filename.py from the command line of my mac snow leopard computer and using python 2.7.3: pyreport filename.py the program filename.py works fine and generates a pdf report when filename.py only contains the comment section where each line is prefixed with #!. I am also able to run the program work.py independently. But When i add the program lines of work.py after the comment section in filename.py and try and run the program filename.py as before i get this message: dhcp-140-254-202-142:Lynn kat$ pyreport CLL_comparison_report.py Running python script /Users/kat/Desktop/PyReport/Lynn/CLL_comparison_report.py: 41523 ['1570571_at', '55297', 'CCDC91', 'CCDC91', 'coiled-coil domain containing 91', '12p11.22', '6.766033371', '6.828531308', '6.101595018', '0.6644383529999995', '6.797620741469344', '1.5849511252316923', '1.6200358324888804', 'Up', 'Up', 'ILMN_1676523', 'CCDC91', '55297', '12', '6.4217520050678', '7.4419596592389', '5.35300515025483e-09', '-7.18875840717484', '1.0202076541710996', '2.0282108689067284', 'Up'] Outputing report to /Users/kat/Desktop/PyReport/Lynn/CLL_comparison_report.pdf :2: (WARNING/2) Title underline too short. Parse MDA CLL data file ~~~~~~~~~~~~~ Error reading rst on literate comment line falling back to plain text :1: (SEVERE/4) Incomplete section title. ~~~~~~~~ Parse OSU CLL cell line data file Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.7/bin/pyreport", line 8, in load_entry_point('pyreport==0.3.4c', 'console_scripts', 'pyreport')() File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyreport-0.3.4c-py2.7.egg/pyreport/pyreport.py", line 57, in commandline_call main(pyfile, overrides=options) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyreport-0.3.4c-py2.7.egg/pyreport/main.py", line 1125, in main output_list = shape_output_list(output_list, options) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyreport-0.3.4c-py2.7.egg/pyreport/main.py", line 364, in shape_output_list output_list = map(check_rst_block, output_list) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyreport-0.3.4c-py2.7.egg/pyreport/main.py", line 573, in check_rst_block publisher.parser, publisher.settings) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/docutils/readers/__init__.py", line 72, in read self.parse() File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/docutils/readers/__init__.py", line 78, in parse self.parser.parse(self.input, document) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/docutils/parsers/rst/__init__.py", line 172, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 170, in run input_source=document['source']) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/docutils/statemachine.py", line 239, in run context, state, transitions) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/docutils/statemachine.py", line 460, in check_line return method(match, context, next_state) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 2919, in text line=lineno) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/docutils/utils/__init__.py", line 235, in severe return self.system_message(self.SEVERE_LEVEL, *args, **kwargs) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/docutils/utils/__init__.py", line 193, in system_message raise SystemMessage(msg, level) docutils.utils.SystemMessage: :1: (SEVERE/4) Incomplete section title. ~~~~~~~~ Parse OSU CLL cell line data file dhcp-140-254-202-142:Lynn kat$ -------------- next part -------------- An HTML attachment was scrubbed... URL: From spmcinerney at hotmail.com Thu Apr 17 08:25:15 2014 From: spmcinerney at hotmail.com (Stephen) Date: Wed, 16 Apr 2014 23:25:15 -0700 Subject: [Baypiggies] How to download all my Meetup activity for 2012, 2013 from Meetup API? Message-ID: Anyone have tips on the doing the following in Python? I want to download all (past, historical) Meetups I either attended or waswaitlisted for, in all (81!) Meetup groups I subscribe to (or at least a large subsetof them), for all of calendar 2012, and then all of calendar 2013.I then want to filter out selected Meetup groups, and reassemble the rest by dateinto one big CSV file for 2012, and another for 2013.Ideally for each event it should list date, group, title, time, location of meetup. Meetup have a Python API . This wrapper though is not useful:https://github.com/meetup/python-api-client I also see this code out there from our NYC brethren:https://github.com/NYCPython/nycpython.com Short of splicing together all the pages for 65 groups * 12 months * 2 years,and reordering by date, any ideas? Thanks in advance,Stephen -------------- next part -------------- An HTML attachment was scrubbed... URL: From aahz at pythoncraft.com Thu Apr 17 16:11:40 2014 From: aahz at pythoncraft.com (Aahz) Date: Thu, 17 Apr 2014 07:11:40 -0700 Subject: [Baypiggies] request for opinions re python-web server-database In-Reply-To: <53498E1B.1020100@systemateka.com> References: <53498E1B.1020100@systemateka.com> Message-ID: <20140417141140.GA17988@panix.com> On Sat, Apr 12, 2014, jim wrote: > > * some (hopefully simple but bulletproof) database > management system, (again, hopefully) not mysql > and postgresql is okay though I hope for something > simpler. Data is primarily strings and integers. The > need could be satisfied with a set of flat files (plain > text ASCII) colon-delimited or some such, but I hope > not to reinvent too many wheels. Chiming in a bit late: I strongly recommend SQLite, but you need to be careful with concurrent access under load. You might consider Firebird if you need better concurrency. -- Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/ "All problems in computer science can be solved by another level of indirection." --Butler Lampson From glen at glenjarvis.com Thu Apr 17 16:45:04 2014 From: glen at glenjarvis.com (Glen Jarvis) Date: Thu, 17 Apr 2014 07:45:04 -0700 Subject: [Baypiggies] How to download all my Meetup activity for 2012, 2013 from Meetup API? In-Reply-To: References: Message-ID: <85CADEB4-E33C-44CB-B416-27A43FCC0E73@glenjarvis.com> I do API work a LOT. Each one is different and each one has it's own joys and wrinkles. My tip -- make a stab at the very first "laughably small goal" -- ignore the big elephant you are trying to eat (one byte at a time ;). Instead, try to hammer out/focus in that first mouthful -- get a successful connection. The first stab won't be kept -- you can iterate to make it something you will keep. So, it's okay if there are hard coded username and passwords (if you have that option). Or, if the only access is Oauth, it's okay to manually get a cookie and hard code that cookie. The objective -- getting started. Get a small piece to work. Then begin refactoring that small piece to something that can be checked in and withstand code review/pull request/etc. I bet if you can get this far you either answer this question, or find you have a more specific question about something that your stuck on. Then you can have a specific snippet of code that you can send and ask about. Hopefully this small tip helps. If you ever get stuck and can't get chewing on this first mouthful, then I'd ask another engineer to Pair Program with you (there are even hireable services like AirPair) with this first, specific, goal -- successfully connect and access. Glen P.S. If all APIs end up being a dead end (which I don't think is likely), you can always build this from scratch (as a scraper -- less efficient/a little more fragile; but works very well) with "requests"and "beautiful soup" packages it's surprisingly easier than you think -- it just takes time. P.S.S. If you only want the data and not a clean project to maintain, you can hire out: Elance, Mechanical Turk, virtual personal assistance via task rabbit, etc. > On Apr 16, 2014, at 11:25 PM, Stephen wrote: > > Anyone have tips on the doing the following in Python? > > I want to download all (past, historical) Meetups I either attended or was > waitlisted for, in all (81!) Meetup groups I subscribe to (or at least a large subset > of them), for all of calendar 2012, and then all of calendar 2013. > I then want to filter out selected Meetup groups, and reassemble the rest by date > into one big CSV file for 2012, and another for 2013. > Ideally for each event it should list date, group, title, time, location of meetup. > > Meetup have a Python API . This wrapper though is not useful: > https://github.com/meetup/python-api-client > > I also see this code out there from our NYC brethren: > https://github.com/NYCPython/nycpython.com > > Short of splicing together all the pages for 65 groups * 12 months * 2 years, > and reordering by date, any ideas? > > Thanks in advance, > Stephen -------------- next part -------------- An HTML attachment was scrubbed... URL: From glen at glenjarvis.com Thu Apr 17 16:59:02 2014 From: glen at glenjarvis.com (Glen Jarvis) Date: Thu, 17 Apr 2014 07:59:02 -0700 Subject: [Baypiggies] request for opinions re python-web server-database In-Reply-To: <53498E1B.1020100@systemateka.com> References: <53498E1B.1020100@systemateka.com> Message-ID: <4D307BAF-735C-4AFB-B102-D7532E1B0C3C@glenjarvis.com> Jim, This sounds like a perfect recipe / requirement for the micro frameworks: bottle, flask, etc. I think bottle is a single python file (or used to be). Your database needs sounds perfect for SQLite. All of this would fit on a raspberry pi. I don't think your requirements even need a web server if you keep your microframework running like a daemon. But, if you wanted one, nginx is super efficient and fast (but not all the huge features if apache). Each of these tools have limitations. But, from an outside point if view with limited knowledge of requirements, they may work just fine for your project. You can always grow it over time -- replace bottle with Django, replace SQLite with Postgres, use nginx front-end, etc. I'd start with these simple tools and see if they are what you need -- they're great places to start even if you don't actually use them. Cheers, Glen > On Apr 12, 2014, at 12:03 PM, jim wrote: > > > [rudimentary questions] > > I have a client for whom I'm cooking up the following: > * on a dedicated computer with no LAN connection > * some (hopefully) lean web server with a set of web > pages that get data from the user and to a local > database and another set of web pages used to get > data and format reports, both using javascript to > get and present data > * some python module(s) that interface between the > (lean) web server and the database > * some (hopefully simple but bulletproof) database > management system, (again, hopefully) not mysql > and postgresql is okay though I hope for something > simpler. Data is primarily strings and integers. The > need could be satisfied with a set of flat files (plain > text ASCII) colon-delimited or some such, but I hope > not to reinvent too many wheels. > > Go opinions on a good, lean web server and a > compatible python module and rdbms system? > Or an alternative approach (it'd be fine with me if I > can do everything by typing in some Python files, tho' > Django is a learning curve that I hope to avoid for > this project). > > Hopefully, with thanks, > jim > > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > https://mail.python.org/mailman/listinfo/baypiggies From glen at glenjarvis.com Thu Apr 17 17:20:19 2014 From: glen at glenjarvis.com (Glen Jarvis) Date: Thu, 17 Apr 2014 08:20:19 -0700 Subject: [Baypiggies] request for opinions re python-web server-database In-Reply-To: <4D307BAF-735C-4AFB-B102-D7532E1B0C3C@glenjarvis.com> References: <53498E1B.1020100@systemateka.com> <4D307BAF-735C-4AFB-B102-D7532E1B0C3C@glenjarvis.com> Message-ID: <957CCCA3-8E35-49AA-887A-2D65ED0A076D@glenjarvis.com> I don't know if I didn't see the other messages or if they came in while I was writing mine (slowly on iPhone will still laying in bed). But, I read some great recommendations and update my suggestion -- from nginx to gunicorn (great robust but simple solution). This micro stack recommendation most of us reverberate on seems perfect. The only thing not really considered that may need more thought -- security We have a LAMP stack. Someone make up a catchy name for micros tack :) LAMP: Linux: Apache (I prefer nginx) MySQL (I prefer Postgres) PHP (I prefer Python) Microstack: OS: Linux Web server: Gunicorn (other variants here) Framework: flask / bottle (other flavors) Database: SQLite Language: Python (of course) Is "microstack" very helpful? LGBSP doesn't spell anything cool. What would the generic (non specific stack) (like the OSI network stack look like/be called)? Later 5: programming language Layer 4: framework Layer 3: database Layer 2: web server Layer 1: operating system OWDFP .. It is kinda sing songy enough to remember. What does your OWDFP stack look like? Word plays off of LAMP where LAMP is a subset? Torch, bulb, ??? OWDFP it is until someone can come up with something catchier... Glen > On Apr 17, 2014, at 7:59 AM, Glen Jarvis wrote: > > Jim, > This sounds like a perfect recipe / requirement for the micro frameworks: bottle, flask, etc. I think bottle is a single python file (or used to be). > > Your database needs sounds perfect for SQLite. > > All of this would fit on a raspberry pi. > > I don't think your requirements even need a web server if you keep your microframework running like a daemon. But, if you wanted one, nginx is super efficient and fast (but not all the huge features if apache). > > Each of these tools have limitations. But, from an outside point if view with limited knowledge of requirements, they may work just fine for your project. You can always grow it over time -- replace bottle with Django, replace SQLite with Postgres, use nginx front-end, etc. I'd start with these simple tools and see if they are what you need -- they're great places to start even if you don't actually use them. > > Cheers, > > > Glen > >> On Apr 12, 2014, at 12:03 PM, jim wrote: >> >> >> [rudimentary questions] >> >> I have a client for whom I'm cooking up the following: >> * on a dedicated computer with no LAN connection >> * some (hopefully) lean web server with a set of web >> pages that get data from the user and to a local >> database and another set of web pages used to get >> data and format reports, both using javascript to >> get and present data >> * some python module(s) that interface between the >> (lean) web server and the database >> * some (hopefully simple but bulletproof) database >> management system, (again, hopefully) not mysql >> and postgresql is okay though I hope for something >> simpler. Data is primarily strings and integers. The >> need could be satisfied with a set of flat files (plain >> text ASCII) colon-delimited or some such, but I hope >> not to reinvent too many wheels. >> >> Go opinions on a good, lean web server and a >> compatible python module and rdbms system? >> Or an alternative approach (it'd be fine with me if I >> can do everything by typing in some Python files, tho' >> Django is a learning curve that I hope to avoid for >> this project). >> >> Hopefully, with thanks, >> jim >> >> >> _______________________________________________ >> Baypiggies mailing list >> Baypiggies at python.org >> To change your subscription options or unsubscribe: >> https://mail.python.org/mailman/listinfo/baypiggies From vikthirtyfive at gmail.com Sat Apr 19 05:36:53 2014 From: vikthirtyfive at gmail.com (Vikram K) Date: Fri, 18 Apr 2014 23:36:53 -0400 Subject: [Baypiggies] plotting figures from Cosmic data Message-ID: i am trying to plot graphs such as these: http://cancer.sanger.ac.uk/cosmic/gene/analysis?ln=BRAF#histo if anyone has experience in drawing these kind of graphs using matplotlib or some other python package please give some pointers. Thanking you, Vikram -------------- next part -------------- An HTML attachment was scrubbed... URL: From santiago.basulto at gmail.com Mon Apr 21 21:31:40 2014 From: santiago.basulto at gmail.com (Santiago Basulto) Date: Mon, 21 Apr 2014 16:31:40 -0300 Subject: [Baypiggies] Is there any guide or post to follow in order to write code that works both on python 2 and 3? Message-ID: Hello everyone. I'm writing a library that I'd like to be usable from both, Python 2 and Python 3. Actually, there's a library that works just for python2 and I want to make it work for 3. I know it's not really hard to make it work for both versions, but sometimes I have doubts. For example. If I define a simple class: class A: def __init__(self): pass It will have different meanings if it's run with Python 2 or Python 3 (lacking 'object' inheritence for python2). Is there any guide, blog post, anything? Thank you very much. -- Santiago Basulto.- -------------- next part -------------- An HTML attachment was scrubbed... URL: From guido at python.org Mon Apr 21 21:36:09 2014 From: guido at python.org (Guido van Rossum) Date: Mon, 21 Apr 2014 12:36:09 -0700 Subject: [Baypiggies] Is there any guide or post to follow in order to write code that works both on python 2 and 3? In-Reply-To: References: Message-ID: The commonly recommended resource is http://python3porting.com/ Also make sure to get to 100% test coverage! On Mon, Apr 21, 2014 at 12:31 PM, Santiago Basulto < santiago.basulto at gmail.com> wrote: > Hello everyone. I'm writing a library that I'd like to be usable from > both, Python 2 and Python 3. Actually, there's a library that works just > for python2 and I want to make it work for 3. > > I know it's not really hard to make it work for both versions, but > sometimes I have doubts. For example. If I define a simple class: > > class A: > def __init__(self): > pass > > It will have different meanings if it's run with Python 2 or Python 3 > (lacking 'object' inheritence for python2). > > Is there any guide, blog post, anything? > > Thank you very much. > > -- > Santiago Basulto.- > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > https://mail.python.org/mailman/listinfo/baypiggies > -- --Guido van Rossum (python.org/~guido) -------------- next part -------------- An HTML attachment was scrubbed... URL: From santiago.basulto at gmail.com Mon Apr 21 21:39:52 2014 From: santiago.basulto at gmail.com (Santiago Basulto) Date: Mon, 21 Apr 2014 16:39:52 -0300 Subject: [Baypiggies] Is there any guide or post to follow in order to write code that works both on python 2 and 3? In-Reply-To: References: Message-ID: Shaleh, really useful. Thank you! Guido, you remind me something. I'll use Tox of course. Thanks for your advice. BTW. I'm new to the baypiggies ML. I'm from Argentina. You're all really kind. This is one of the things that makes Python so awesome. On Mon, Apr 21, 2014 at 4:36 PM, Guido van Rossum wrote: > The commonly recommended resource is http://python3porting.com/ > > Also make sure to get to 100% test coverage! > > > On Mon, Apr 21, 2014 at 12:31 PM, Santiago Basulto < > santiago.basulto at gmail.com> wrote: > >> Hello everyone. I'm writing a library that I'd like to be usable from >> both, Python 2 and Python 3. Actually, there's a library that works just >> for python2 and I want to make it work for 3. >> >> I know it's not really hard to make it work for both versions, but >> sometimes I have doubts. For example. If I define a simple class: >> >> class A: >> def __init__(self): >> pass >> >> It will have different meanings if it's run with Python 2 or Python 3 >> (lacking 'object' inheritence for python2). >> >> Is there any guide, blog post, anything? >> >> Thank you very much. >> >> -- >> Santiago Basulto.- >> >> _______________________________________________ >> Baypiggies mailing list >> Baypiggies at python.org >> To change your subscription options or unsubscribe: >> https://mail.python.org/mailman/listinfo/baypiggies >> > > > > -- > --Guido van Rossum (python.org/~guido) > -- Santiago Basulto.- -------------- next part -------------- An HTML attachment was scrubbed... URL: From shaleh at speakeasy.net Mon Apr 21 21:34:58 2014 From: shaleh at speakeasy.net (shaleh at speakeasy.net) Date: Mon, 21 Apr 2014 12:34:58 -0700 Subject: [Baypiggies] Is there any guide or post to follow in order to writecode that works both on python 2 and 3? In-Reply-To: References: Message-ID: <20140421123458.v5hu5tojqg0ok4o4@mail.speakeasy.net> On Mon, 21 Apr 2014 16:31:40 -0300, Santiago Basulto wrote: Hello everyone. I'm writing a library that I'd like to be usable from both, Python 2 and Python 3. Actually, there's a library that works just for python2 and I want to make it work for 3. I know it's not really hard to make it work for both versions, but sometimes I have doubts. For example. If I define a simple class: class A: ? ? def __init__(self): ? ? ? ? pass It will have different meanings if it's run with Python 2 or Python 3 (lacking 'object' inheritence for python2). Is there any guide, blog post, anything? Is this enough or do you need more? http://python3porting.com/noconv.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From Web at StevePiercy.com Mon Apr 21 22:18:12 2014 From: Web at StevePiercy.com (Steve Piercy - Web Site Builder) Date: Mon, 21 Apr 2014 13:18:12 -0700 Subject: [Baypiggies] Is there any guide or post to follow in order to write code that works both on python 2 and 3? In-Reply-To: Message-ID: There was an excellent presentation at PyCon, too, with both a specific example for context and general guidance. Video: http://pyvideo.org/video/2626/by-your-bootstraps-porting-your-application-to-p The book referenced at http://python3porting.com/ was given out at PyCon, too, thanks to the PSF. --steve On 4/21/14 at 4:39 PM, santiago.basulto at gmail.com (Santiago Basulto) pronounced: >Shaleh, really useful. Thank you! > >Guido, you remind me something. I'll use Tox of course. Thanks for your >advice. > >BTW. I'm new to the baypiggies ML. I'm from Argentina. You're all really >kind. This is one of the things that makes Python so awesome. > > >On Mon, Apr 21, 2014 at 4:36 PM, Guido van Rossum wrote: > >>The commonly recommended resource is http://python3porting.com/ >> >>Also make sure to get to 100% test coverage! >> >> >>On Mon, Apr 21, 2014 at 12:31 PM, Santiago Basulto < >>santiago.basulto at gmail.com> wrote: >> >>> Hello everyone. I'm writing a library that I'd like to be usable from >>> both, Python 2 and Python 3. Actually, there's a library that works just >>> for python2 and I want to make it work for 3. >>> >>> I know it's not really hard to make it work for both versions, but >>> sometimes I have doubts. For example. If I define a simple class: >>> >>> class A: >>> def __init__(self): >>> pass >>> >>> It will have different meanings if it's run with Python 2 or Python 3 >>> (lacking 'object' inheritence for python2). >>> >>> Is there any guide, blog post, anything? >>> >>> Thank you very much. >>> >>> -- >>> Santiago Basulto.- >>> >>> _______________________________________________ >>> Baypiggies mailing list >>> Baypiggies at python.org >>> To change your subscription options or unsubscribe: >>> https://mail.python.org/mailman/listinfo/baypiggies >>> >> >> >> >>-- >>--Guido van Rossum (python.org/~guido) >> > > > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Steve Piercy Web Site Builder Soquel, CA From asmeurer at gmail.com Mon Apr 21 22:13:02 2014 From: asmeurer at gmail.com (Aaron Meurer) Date: Mon, 21 Apr 2014 15:13:02 -0500 Subject: [Baypiggies] [Python-porting] Is there any guide or post to follow in order to write code that works both on python 2 and 3? In-Reply-To: References: Message-ID: For Python 2 compatible code, you should always be explicit and subclass every class from object, like class A(object): def __init__(self): pass This is one of the easy things for writing cross compatible code. The hard things are dealing with the str/bytes differences, and the little tricks you have to do to support metaclasses and exec. Aaron Meurer On Mon, Apr 21, 2014 at 2:36 PM, Guido van Rossum wrote: > The commonly recommended resource is http://python3porting.com/ > > Also make sure to get to 100% test coverage! > > > On Mon, Apr 21, 2014 at 12:31 PM, Santiago Basulto > wrote: >> >> Hello everyone. I'm writing a library that I'd like to be usable from >> both, Python 2 and Python 3. Actually, there's a library that works just for >> python2 and I want to make it work for 3. >> >> I know it's not really hard to make it work for both versions, but >> sometimes I have doubts. For example. If I define a simple class: >> >> class A: >> def __init__(self): >> pass >> >> It will have different meanings if it's run with Python 2 or Python 3 >> (lacking 'object' inheritence for python2). >> >> Is there any guide, blog post, anything? >> >> Thank you very much. >> >> -- >> Santiago Basulto.- >> >> _______________________________________________ >> Baypiggies mailing list >> Baypiggies at python.org >> To change your subscription options or unsubscribe: >> https://mail.python.org/mailman/listinfo/baypiggies > > > > > -- > --Guido van Rossum (python.org/~guido) > > _______________________________________________ > Python-porting mailing list > Python-porting at python.org > https://mail.python.org/mailman/listinfo/python-porting > From glen at glenjarvis.com Tue Apr 22 09:05:59 2014 From: glen at glenjarvis.com (Glen Jarvis) Date: Tue, 22 Apr 2014 00:05:59 -0700 Subject: [Baypiggies] PyData Conference Message-ID: I received this note for the SV Python MeetUp group. I thought I would share it with BayPIGgies... It looks like there's a PyData conference. That sounds pretty cool! Cheers, Glen ---------- Forwarded message ---------- Hi Glen, I'd like to send a message to the meetup about the upcoming PyData conference happening next month. (Disclaimer, I'm an organizer.) Is this appropriate? I'd prefer not to send something if it feels like spam. http://pydata.org/sv2014/schedule/ Best, -Matthew -- We should be taught not to wait for inspiration to start a thing. Action always generates inspiration. Inspiration seldom generates action. -- Frank Tibolt -------------- next part -------------- An HTML attachment was scrubbed... URL: From Chris.Clark at actian.com Tue Apr 22 19:32:23 2014 From: Chris.Clark at actian.com (Chris Clark) Date: Tue, 22 Apr 2014 17:32:23 +0000 Subject: [Baypiggies] PyCon Decompress & Viewing Party Message-ID: <479d82eccf9749a587d4acecdf119ebd@DM2PR06MB493.namprd06.prod.outlook.com> http://pycondecompress.eventbrite.com/ in San Francisco this evening. I just got sent a schedule list: Room 1 - Restore: Education * 7:00 Jessica McKellar's Keynote * 8:00 Software Carpentry Lessons Learned Room 2 - Prommunism: Networking with Python * 7:00 How to Turn Your Computer into a Server * 8:00 Kneel and Disconnect: Getting the Fastest Connection out of a Hostname Room 3 - Quench: iPython and Open Source * 7:00 Fernando Perez Keynote * 8:00 Hitchhikers Guide to Participating in Open Source Common Area: Lightning Talks Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From martin at falatic.com Tue Apr 22 19:12:39 2014 From: martin at falatic.com (Martin Falatic) Date: Tue, 22 Apr 2014 10:12:39 -0700 (PDT) Subject: [Baypiggies] Python 3 and the GUI - opinions wanted Message-ID: <47600.128.107.239.233.1398186759.squirrel@martin-wwwss5.ssl.supercp.com> When it comes to creating a modern GUI-based, cross-platform application in Linux/Mac and Windows using Python (and taking Python 3 into consideration, with Python 2.7 as a backport path) what's is the best direction to go in? Tkinter, PySide (Qt), others? I've found some discussion on the topic elsewhere (e.g., Reddit) but I wanted to get the opinion of developers in our group here. Regards, - Marty From dirk at otisbean.com Tue Apr 22 20:06:02 2014 From: dirk at otisbean.com (Dirk Bergstrom) Date: Tue, 22 Apr 2014 11:06:02 -0700 Subject: [Baypiggies] Python 3 and the GUI - opinions wanted In-Reply-To: <47600.128.107.239.233.1398186759.squirrel@martin-wwwss5.ssl.supercp.com> References: <47600.128.107.239.233.1398186759.squirrel@martin-wwwss5.ssl.supercp.com> Message-ID: <5356AF8A.1020406@otisbean.com> On 04/22/2014 10:12 AM, Martin Falatic wrote: > When it comes to creating a modern GUI-based, cross-platform application > in Linux/Mac and Windows using Python (and taking Python 3 into > consideration, with Python 2.7 as a backport path) what's is the best > direction to go in? Tkinter, PySide (Qt), others? Consider using the browser as your UI toolkit. Build a "web app" that listens on localhost, and you get access to a huge variety of UI tools and libraries, an enormous developer community and great debugging tools. It also greatly reduces the number of dependencies you need to install, since every user already has a browser, whereas basically nobody has your particular version of Qt/Tk/GTK pre-installed. -- Dirk Bergstrom dirk at otisbean.com http://otisbean.com/ From janssen at parc.com Tue Apr 22 21:41:36 2014 From: janssen at parc.com (Bill Janssen) Date: Tue, 22 Apr 2014 12:41:36 -0700 Subject: [Baypiggies] Python 3 and the GUI - opinions wanted In-Reply-To: <47600.128.107.239.233.1398186759.squirrel@martin-wwwss5.ssl.supercp.com> References: <47600.128.107.239.233.1398186759.squirrel@martin-wwwss5.ssl.supercp.com> Message-ID: <29132.1398195696@parc.com> I've been playing with Kivy, which is pursuing the "write once, run everywhere" dream. They choose CPython (2 or 3) and OpenGL ES as their greatest common denominators. Cython can be used if desired. They have a reasonably functional GUI toolkit (very Android-looking), fairly direct access to OpenGL ES for fancy effects, and Kivy programs really do deploy as "apps" on both desktops and phone/tablet OS's (though I've only tested Android). The team has done an incredible amount of work, spawning a number of subprojects. It's still a bit rough; check the issue trackers to see if there are any show-stoppers for your application. Bill From aahz at pythoncraft.com Thu Apr 24 01:38:56 2014 From: aahz at pythoncraft.com (Aahz) Date: Wed, 23 Apr 2014 16:38:56 -0700 Subject: [Baypiggies] Python 3 and the GUI - opinions wanted In-Reply-To: <5356AF8A.1020406@otisbean.com> References: <47600.128.107.239.233.1398186759.squirrel@martin-wwwss5.ssl.supercp.com> <5356AF8A.1020406@otisbean.com> Message-ID: <20140423233856.GA4988@panix.com> On Tue, Apr 22, 2014, Dirk Bergstrom wrote: > On 04/22/2014 10:12 AM, Martin Falatic wrote: >> >>When it comes to creating a modern GUI-based, cross-platform application >>in Linux/Mac and Windows using Python (and taking Python 3 into >>consideration, with Python 2.7 as a backport path) what's is the best >>direction to go in? Tkinter, PySide (Qt), others? > > Consider using the browser as your UI toolkit. Build a "web app" that > listens on localhost, and you get access to a huge variety of UI tools and > libraries, an enormous developer community and great debugging tools. It > also greatly reduces the number of dependencies you need to install, since > every user already has a browser, whereas basically nobody has your > particular version of Qt/Tk/GTK pre-installed. OTOH, you are then not developing in Python anymore. ;-) That's what we did in my last job; it has lots to recommend it as an approach, but it really doesn't feel much like running a native application. In our case, it was reasonable because the user was intended to have minimal interaction with the GUI (set it up and leave a background process running). -- Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/ "All problems in computer science can be solved by another level of indirection." --Butler Lampson From janssen at parc.com Thu Apr 24 03:08:17 2014 From: janssen at parc.com (Bill Janssen) Date: Wed, 23 Apr 2014 18:08:17 -0700 Subject: [Baypiggies] Python 3 and the GUI - opinions wanted In-Reply-To: <20140423233856.GA4988@panix.com> References: <47600.128.107.239.233.1398186759.squirrel@martin-wwwss5.ssl.supercp.com> <5356AF8A.1020406@otisbean.com> <20140423233856.GA4988@panix.com> Message-ID: <12971.1398301697@parc.com> Aahz wrote: > On Tue, Apr 22, 2014, Dirk Bergstrom wrote: > > On 04/22/2014 10:12 AM, Martin Falatic wrote: > >> > >>When it comes to creating a modern GUI-based, cross-platform application > >>in Linux/Mac and Windows using Python (and taking Python 3 into > >>consideration, with Python 2.7 as a backport path) what's is the best > >>direction to go in? Tkinter, PySide (Qt), others? > > > > Consider using the browser as your UI toolkit. Build a "web app" that > > listens on localhost, and you get access to a huge variety of UI tools and > > libraries, an enormous developer community and great debugging tools. It > > also greatly reduces the number of dependencies you need to install, since > > every user already has a browser, whereas basically nobody has your > > particular version of Qt/Tk/GTK pre-installed. > > OTOH, you are then not developing in Python anymore. ;-) Dang straight. I'm sitting here gluing a ECMAscript/CSS/XHTML/SVG front-end to a CommonLisp back-end, and it's not pleasant. See https://www.usenix.org/system/files/1403_02-08_mickens.pdf for some useful comparisons: ``...a Web page is now like V'Ger from the first "Star Trek" movie, a piece of technology that we once understood but can no longer fathom, a thrashing leviathan of code and markup written by people so untrustworthy that they're not even third parties, they're fifth parties who weren't even INVITED to the party, but who showed up anyways because the hippies got it right and free love or whatever.'' ``But, on the bright side, things could always be worse. For example, it would definitely be horrible if your browser's scripting language combined the prototype-based inheritance of Self, a quasi-functional aspect borrowed from LISP, a structured syntax adapted from C, and an aggressively asynchronous I/O model that requires elaborate callback chains that span multiple generations of hard-working Americans. OH NO I'VE JUST DESCRIBED JAVASCRIPT. What an unpleasant turn of events! People were begging for a combination of Self, LISP, and C in the same way that the denizens of Middle Earth were begging Saruman to breed Orcs and men to make Uruk-hai.'' Bill From adam at booksprints.net Thu Apr 24 04:37:13 2014 From: adam at booksprints.net (adam) Date: Thu, 24 Apr 2014 14:37:13 +1200 Subject: [Baypiggies] Python 3 and the GUI - opinions wanted In-Reply-To: <12971.1398301697@parc.com> References: <47600.128.107.239.233.1398186759.squirrel@martin-wwwss5.ssl.supercp.com> <5356AF8A.1020406@otisbean.com> <20140423233856.GA4988@panix.com> <12971.1398301697@parc.com> Message-ID: <535878D9.3000306@booksprints.net> yes, very funny article ;) adam On 04/24/2014 01:08 PM, Bill Janssen wrote: > Aahz wrote: > >> On Tue, Apr 22, 2014, Dirk Bergstrom wrote: >>> On 04/22/2014 10:12 AM, Martin Falatic wrote: >>>> >>>> When it comes to creating a modern GUI-based, cross-platform application >>>> in Linux/Mac and Windows using Python (and taking Python 3 into >>>> consideration, with Python 2.7 as a backport path) what's is the best >>>> direction to go in? Tkinter, PySide (Qt), others? >>> >>> Consider using the browser as your UI toolkit. Build a "web app" that >>> listens on localhost, and you get access to a huge variety of UI tools and >>> libraries, an enormous developer community and great debugging tools. It >>> also greatly reduces the number of dependencies you need to install, since >>> every user already has a browser, whereas basically nobody has your >>> particular version of Qt/Tk/GTK pre-installed. >> >> OTOH, you are then not developing in Python anymore. ;-) > > Dang straight. I'm sitting here gluing a ECMAscript/CSS/XHTML/SVG > front-end to a CommonLisp back-end, and it's not pleasant. > > See https://www.usenix.org/system/files/1403_02-08_mickens.pdf for some > useful comparisons: > > ``...a Web page is now like V'Ger from the first "Star Trek" movie, a > piece of technology that we once understood but can no longer fathom, a > thrashing leviathan of code and markup written by people so > untrustworthy that they're not even third parties, they're fifth parties > who weren't even INVITED to the party, but who showed up anyways because > the hippies got it right and free love or whatever.'' > > ``But, on the bright side, things could always be worse. For example, it > would definitely be horrible if your browser's scripting language > combined the prototype-based inheritance of Self, a quasi-functional > aspect borrowed from LISP, a structured syntax adapted from C, and an > aggressively asynchronous I/O model that requires elaborate callback > chains that span multiple generations of hard-working Americans. OH NO > I'VE JUST DESCRIBED JAVASCRIPT. What an unpleasant turn of events! > People were begging for a combination of Self, LISP, and C in the same > way that the denizens of Middle Earth were begging Saruman to breed Orcs > and men to make Uruk-hai.'' > > Bill > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > https://mail.python.org/mailman/listinfo/baypiggies > From glen at glenjarvis.com Thu Apr 24 07:19:39 2014 From: glen at glenjarvis.com (Glen Jarvis) Date: Wed, 23 Apr 2014 22:19:39 -0700 Subject: [Baypiggies] Want to learn how to do TDD? Message-ID: Craig and I used Google Hangouts to make a video to show you how to do Test Driven Development (TDD) with Python. Here's the video: https://www.youtube.com/watch?v=sNgmSiesOG0 Cheers, Glen -- We should be taught not to wait for inspiration to start a thing. Action always generates inspiration. Inspiration seldom generates action. -- Frank Tibolt -------------- next part -------------- An HTML attachment was scrubbed... URL: From glen at glenjarvis.com Thu Apr 24 16:23:04 2014 From: glen at glenjarvis.com (Glen Jarvis) Date: Thu, 24 Apr 2014 07:23:04 -0700 Subject: [Baypiggies] Tonight: Using IPython for Parallel Computing Message-ID: *Speaker: Benjamin Ragan-Kelley* Topic: Using IPython for Parallel Computing *Abstract:* IPython provides tools for interactive computing ? code introspection, completion, and environments such as an interactive shell and web-based notebook. In addition to these environments, IPython provides a suite of tools for interactive parallel computing on multicore machines or clusters. We will cover some of the API and architecture for IPython.parallel, using some example use cases. It will all be presented in IPython notebooks, so you can follow along if you like. *Speaker: * Min finished his PhD at UC Berkeley in computational plasma physics in May, 2013. He has been a contributor to IPython since 2006, when the first implementation of IPython's parallel computing capabilities was his undergraduate thesis at Santa Clara University. He now works full time on IPython at UC Berkeley, funded by the Alfred P. Sloan Foundation. He is also the maintainer of pyzmq, the Python bindings of the ZeroMQ messaging library *If you wish to post jobs here, please go to : Job Listings * Meeting ScheduleThe meeting begins @ 7:30PM. The main presentation will start @ 7:40 PM, after the usual announcements. LinkedIn Corporation 2061 (Bldg 6) Stierlin Ct.Mountain View, CA 94043 Meeting Room: *Neon Carrot conference room *(subject to change monthly) -- We should be taught not to wait for inspiration to start a thing. Action always generates inspiration. Inspiration seldom generates action. -- Frank Tibolt -------------- next part -------------- An HTML attachment was scrubbed... URL: From jjinux at gmail.com Tue Apr 29 02:00:44 2014 From: jjinux at gmail.com (Shannon -jj Behrens) Date: Mon, 28 Apr 2014 17:00:44 -0700 Subject: [Baypiggies] Looking for a "Software Engineer - Provisioning" at Twitter Message-ID: Hey guys, I've managed to hire 3 of my buddies from the Python world at Twitter, so I wonder if anyone else is interested in the following position. If you're interested, send me your resume. If you're looking, but this isn't the right position for you, check out https://about.twitter.com/careers. It's a good idea to apply for 1-3 positions at a time anyway: Software Engineer - ProvisioningSoftware Engineering | San Francisco, CA Send Jobvite Software Engineer - Provisioning Twitter runs on a large number of machines across multiple datacenters. Provisioning Engineering builds the software that performs bare-metal to in-service server provisioning, long-term server life-cycle management, network addressable device metadata storage, and bootstrapping self-contained computing zones. We're looking for engineers comfortable up and down the stack. This is an amazing opportunity to work on the foundation of Twitter's infrastructure. Responsibilities: - Own and evolve a mission-critical provisioning infrastructure - Work closely with other engineers across the organization Requirements: - BA/BS, MA/MS or PhD in Computer Science or equivalent experience - Seasoned software engineer - Strong experience with Python and Java/Scala - Strong understanding of Linux fundamentals Desired: - Strong debugging skills in a distributed environment - Experience deploying and maintaining software at scale - Experience designing APIs for other engineers - Experience contributing to open source projects - Familiarity with CMDB or other asset tracking systems - Familiarity with provisioning systems (e.g., Foreman, Cobbler, OpenStack) We're a strong supporter of creating a diverse workforce and proud to be an equal opportunity employer. Follow us: Twitter Jobs @jointheflock Twitter Engineering @twittereng ? Back to Openings -- In this life we cannot do great things. We can only do small things with great love. -- Mother Teresa -------------- next part -------------- An HTML attachment was scrubbed... URL: From venkat83 at gmail.com Tue Apr 29 06:26:19 2014 From: venkat83 at gmail.com (Venkatraman S) Date: Tue, 29 Apr 2014 09:56:19 +0530 Subject: [Baypiggies] Looking for a "Software Engineer - Provisioning" at Twitter In-Reply-To: References: Message-ID: Do you hire remote workers? Telecommuting allowed? :) On Tue, Apr 29, 2014 at 5:30 AM, Shannon -jj Behrens wrote: > Hey guys, > > I've managed to hire 3 of my buddies from the Python world at Twitter, so > I wonder if anyone else is interested in the following position. If you're > interested, send me your resume. If you're looking, but this isn't the > right position for you, check out https://about.twitter.com/careers. It's > a good idea to apply for 1-3 positions at a time anyway: > Software Engineer - ProvisioningSoftware Engineering | San Francisco, CA > Send Jobvite > > Software Engineer - Provisioning > > Twitter runs on a large number of machines across multiple datacenters. > Provisioning Engineering builds the software that performs bare-metal to > in-service server provisioning, long-term server life-cycle management, > network addressable device metadata storage, and bootstrapping > self-contained computing zones. We're looking for engineers comfortable up > and down the stack. This is an amazing opportunity to work on the > foundation of Twitter's infrastructure. > > Responsibilities: > > - > > Own and evolve a mission-critical provisioning infrastructure > - > > Work closely with other engineers across the organization > > Requirements: > > - > > BA/BS, MA/MS or PhD in Computer Science or equivalent experience > > > - > > Seasoned software engineer > - > > Strong experience with Python and Java/Scala > - > > Strong understanding of Linux fundamentals > > Desired: > > - > > Strong debugging skills in a distributed environment > - > > Experience deploying and maintaining software at scale > - > > Experience designing APIs for other engineers > - > > Experience contributing to open source projects > - > > Familiarity with CMDB or other asset tracking systems > - > > Familiarity with provisioning systems (e.g., Foreman, Cobbler, > OpenStack) > > > We're a strong supporter of creating a diverse workforce and proud to be > an equal opportunity employer. > > Follow us: > > Twitter Jobs @jointheflock > > Twitter Engineering @twittereng > > ? Back to Openings > > -- > In this life we cannot do great things. We can only do small things with > great love. -- Mother Teresa > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > https://mail.python.org/mailman/listinfo/baypiggies > -------------- next part -------------- An HTML attachment was scrubbed... URL: From venkat83 at gmail.com Tue Apr 29 06:30:31 2014 From: venkat83 at gmail.com (Venkatraman S) Date: Tue, 29 Apr 2014 10:00:31 +0530 Subject: [Baypiggies] Django admin filter_horizontal using bootstrap-duallistbox Message-ID: Stumbled on this and which I think will be useful to someone who wants to replicate the filter_horizontal feature in django-admin in a non-admin page www.virtuosoft.eu/code/bootstrap-duallistbox/ Works easily without much headache and the UI looks clean and simple. Regards, Venkat -------------- next part -------------- An HTML attachment was scrubbed... URL: