From adam at adamforsyth.net Mon Jun 1 17:49:44 2015 From: adam at adamforsyth.net (Adam Forsyth) Date: Mon, 1 Jun 2015 10:49:44 -0500 Subject: [Chicago] BattleHack Tickets Available Now! (6/27-28) Message-ID: I'm not sure if any of you went to BattleHack Chicago last year, but it's part of a worldwide hackathon series. It's primarily sponsored by PayPal (who owns Braintree, my employer) who has been a sponsor of ChiPy for the past year. More tickets were just released at 10am today, get them while they're available! *Battle Hack is coming to Chicago (June 27-28) at 1871*Experience an amazing learning and sharing environment, with epic food, great people and amazing prizes (including a chance to compete for $100,000). This a short video overview of one the latest Battle Hack events: https://youtu.be/DtkgPJPle2E?t=53s Tickets are free and limited. More info: http://bit.ly/BHCHI1 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcalahor at yahoo.com Fri Jun 5 06:05:49 2015 From: jcalahor at yahoo.com (Jimmy Calahorrano) Date: Fri, 5 Jun 2015 04:05:49 +0000 (UTC) Subject: [Chicago] The battle of the languages (May ChiPy) Message-ID: <1652682113.5489623.1433477149657.JavaMail.yahoo@mail.yahoo.com> Hi, the video for May's meeting is ready. It is located here: The battle of programming languages for Python developers (Go, Swift, R, Ruby and others) | ? | | ? | | ? | ? | ? | ? | ? | | The battle of programming languages for Python developer... | | | | View on www.youtube.com | Preview by Yahoo | | | | ? | PyVideo.org admin kindly add this video please. Thanks,Jimmy ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From shekay at pobox.com Fri Jun 5 14:32:16 2015 From: shekay at pobox.com (sheila miguez) Date: Fri, 5 Jun 2015 07:32:16 -0500 Subject: [Chicago] The battle of the languages (May ChiPy) In-Reply-To: <1652682113.5489623.1433477149657.JavaMail.yahoo@mail.yahoo.com> References: <1652682113.5489623.1433477149657.JavaMail.yahoo@mail.yahoo.com> Message-ID: On Thu, Jun 4, 2015 at 11:05 PM, Jimmy Calahorrano via Chicago < chicago at python.org> wrote: > PyVideo.org admin kindly add this video please. > Will isn't on this mailing list, and I'm not always keeping up with mailing lists. The way we keep up with manual requests is for people to open an issue for us. https://github.com/pyvideo/pyvideo/issues -- shekay at pobox.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcalahor at yahoo.com Fri Jun 5 21:19:50 2015 From: jcalahor at yahoo.com (Jimmy Calahorrano) Date: Fri, 5 Jun 2015 12:19:50 -0700 Subject: [Chicago] The battle of the languages (May ChiPy) In-Reply-To: Message-ID: <1433531990.18397.YahooMailAndroidMobile@web181701.mail.ne1.yahoo.com> i can upload a newer (different link) version with no background noise. let u know once is ready.? jimmy Enviado desde Yahoo Mail en Android De:"Robert Dean" Fecha:vie, jun 5, PM a 2:13 PM Asunto:Re: [Chicago] The battle of the languages (May ChiPy) W h y? is there extremely irritating background music during a l l? of this video.? It surely must have been editing in, no? Again,? w h a t? were the video editors? t h i n k i n g ? ? ? On Thu, Jun 4, 2015 at 11:05 PM, Jimmy Calahorrano via Chicago wrote: Hi, the video for May's meeting is ready. It is located here: The battle of programming languages for Python developers (Go, Swift, R, Ruby and others) ? ? ? ? ? ? ? ? The battle of programming languages for Python developer... View on www.youtube.com Preview by Yahoo ? PyVideo.org admin kindly add this video please. Thanks, Jimmy ? _______________________________________________ Chicago mailing list Chicago at python.org https://mail.python.org/mailman/listinfo/chicago -------------- next part -------------- An HTML attachment was scrubbed... URL: From bherman at uniqueinsuranceco.com Fri Jun 5 17:27:17 2015 From: bherman at uniqueinsuranceco.com (brian herman) Date: Fri, 05 Jun 2015 10:27:17 -0500 Subject: [Chicago] pysimplesoap and windows sql server Message-ID: <5571BFD5.6090503@uniqueinsuranceco.com> I have a python application that uses pysimplesoap to send a soap request to windows. The problem is the password field is not encoded in UTF-8 it may use Windows-1252? Python Code https://gist.github.com/brianherman/209af7751444ec308e1b Visual Basic Sample code (how to encode the password field in visual basic) https://gist.github.com/brianherman/b4174b99be9000fcc4f8 They use visual basic to encode the password which works. The problem is reproducing this in python This is the encoded password in the database (microsoft sql server): I have tried using the md5 package in python but I can't seem to get the encoding right. -- Brian Herman IT Department O: (773)299-7557 Unique Insurance Company We value your input, please click here to provide feedback on Unique Insurance. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: becefjde. Type: image/png Size: 1312 bytes Desc: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From shekay at pobox.com Fri Jun 5 22:24:13 2015 From: shekay at pobox.com (sheila miguez) Date: Fri, 5 Jun 2015 15:24:13 -0500 Subject: [Chicago] The battle of the languages (May ChiPy) In-Reply-To: <1433531990.18397.YahooMailAndroidMobile@web181701.mail.ne1.yahoo.com> References: <1433531990.18397.YahooMailAndroidMobile@web181701.mail.ne1.yahoo.com> Message-ID: On Fri, Jun 5, 2015 at 2:19 PM, Jimmy Calahorrano via Chicago < chicago at python.org> wrote: > i can upload a newer (different link) version with no background noise. > let u know once is ready. If it is no problem could you chop up the video in to separate videos per talk? It helps make a nice experience on pyvideo. We like to have separate pages per talk. Also, I have an issue opened for a to-do for adding the talk to pyvideo. When you repost, could you let us know? https://github.com/pyvideo/pyvideo/issues/111 -- shekay at pobox.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeremy.mcmillan at gmail.com Sat Jun 6 03:09:23 2015 From: jeremy.mcmillan at gmail.com (Jeremy McMillan) Date: Fri, 5 Jun 2015 20:09:23 -0500 Subject: [Chicago] pysimplesoap and windows sql server In-Reply-To: <5571BFD5.6090503@uniqueinsuranceco.com> References: <5571BFD5.6090503@uniqueinsuranceco.com> Message-ID: I don't see your python code attempting to md5 the string. Maybe you should try using hashlib? https://docs.python.org/2/library/hashlib.html On Fri, Jun 5, 2015 at 10:27 AM, brian herman wrote: > I have a python application that uses pysimplesoap to send a soap request > to windows. > The problem is the password field is not encoded in UTF-8 it may use > Windows-1252? > Python Code > https://gist.github.com/brianherman/209af7751444ec308e1b > Visual Basic Sample code (how to encode the password field in visual basic) > https://gist.github.com/brianherman/b4174b99be9000fcc4f8 > They use visual basic to encode the password which works. The problem is > reproducing this in python > This is the encoded password in the database (microsoft sql server): > > I have tried using the md5 package in python but I can't seem to get the > encoding right. > > -- > > Brian Herman > IT Department > O: (773)299-7557 > > [image: Unique Insurance Company] > > We value your input, please click here to provide feedback on Unique > Insurance. > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: becefjde. Type: image/png Size: 1312 bytes Desc: not available URL: From jcalahor at yahoo.com Sat Jun 6 15:30:38 2015 From: jcalahor at yahoo.com (Jimmy Calahorrano) Date: Sat, 6 Jun 2015 13:30:38 +0000 (UTC) Subject: [Chicago] sponsorship for next video Message-ID: <2008317308.6249560.1433597438374.JavaMail.yahoo@mail.yahoo.com> Hi, we are looking for a company that would be willing to sponsor the video production for next meeting. Next meeting will cover Spark which is becoming a hot topic these days.?The first company that offers 200 USD will have it's logo included at the beginning of the video and it will be the sole sponsor for the video There are 2 video production teams at this time helping ChiPy, the first is Carl's team and the second is my team. We help based in our availability.We don't charge any money for this, however we rely on support from companies that can help us paying for parking, editing costs and mobilization of the equipment. Thanks,Jimmy Agenda for new meeting: - PyCon 2015 Review (0:05:00 Minutes) By: Jason Wirth? - Introduction to PySpark (1:00:00 Minutes) By: Nusreth Baig? Big Shoulders Data Camp presents an ?Introduction to PySpark?. One of our top instructors and data scientists, Adam McElhinney, will be giving a talk on working with PySpark, and presenting a use case. Audience is encouraged to come prepared to take notes, ask questions, and get a high-level understanding on one of Python's many analytical libraries. -------------- next part -------------- An HTML attachment was scrubbed... URL: From johnstoner2 at gmail.com Sun Jun 7 07:09:34 2015 From: johnstoner2 at gmail.com (John Stoner) Date: Sun, 07 Jun 2015 05:09:34 +0000 Subject: [Chicago] The battle of the languages (May ChiPy) In-Reply-To: References: <1433531990.18397.YahooMailAndroidMobile@web181701.mail.ne1.yahoo.com> Message-ID: Who did the Javascript presentation? I have a question for that guy. On Fri, Jun 5, 2015 at 3:25 PM sheila miguez wrote: > > On Fri, Jun 5, 2015 at 2:19 PM, Jimmy Calahorrano via Chicago < > chicago at python.org> wrote: > >> i can upload a newer (different link) version with no background noise. >> let u know once is ready. > > > If it is no problem could you chop up the video in to separate videos per > talk? It helps make a nice experience on pyvideo. We like to have separate > pages per talk. > > Also, I have an issue opened for a to-do for adding the talk to pyvideo. > When you repost, could you let us know? > https://github.com/pyvideo/pyvideo/issues/111 > > > -- > shekay at pobox.com > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > -------------- next part -------------- An HTML attachment was scrubbed... URL: From japhy at pearachute.com Sun Jun 7 20:07:28 2015 From: japhy at pearachute.com (Japhy Bartlett) Date: Sun, 7 Jun 2015 13:07:28 -0500 Subject: [Chicago] The battle of the languages (May ChiPy) In-Reply-To: References: <1433531990.18397.YahooMailAndroidMobile@web181701.mail.ne1.yahoo.com> Message-ID: That's David Sutton, you can find him on the Twitters at https://twitter.com/zzsnzmn On Sun, Jun 7, 2015 at 12:09 AM, John Stoner wrote: > Who did the Javascript presentation? I have a question for that guy. > > On Fri, Jun 5, 2015 at 3:25 PM sheila miguez wrote: > >> >> On Fri, Jun 5, 2015 at 2:19 PM, Jimmy Calahorrano via Chicago < >> chicago at python.org> wrote: >> >>> i can upload a newer (different link) version with no background noise. >>> let u know once is ready. >> >> >> If it is no problem could you chop up the video in to separate videos per >> talk? It helps make a nice experience on pyvideo. We like to have separate >> pages per talk. >> >> Also, I have an issue opened for a to-do for adding the talk to pyvideo. >> When you repost, could you let us know? >> https://github.com/pyvideo/pyvideo/issues/111 >> >> >> -- >> shekay at pobox.com >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> https://mail.python.org/mailman/listinfo/chicago >> > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From robkapteyn at gmail.com Mon Jun 8 08:07:24 2015 From: robkapteyn at gmail.com (Rob Kapteyn) Date: Mon, 8 Jun 2015 01:07:24 -0500 Subject: [Chicago] pysimplesoap and windows sql server In-Reply-To: References: <5571BFD5.6090503@uniqueinsuranceco.com> Message-ID: That's my first guess too. md5 is a really old module: "*Deprecated* since version 2.5: Use the hashlib module instead" I would not be surprised if it didn't work correctly on Unicode strings, especially something like Windows-1252. On Fri, Jun 5, 2015 at 8:09 PM, Jeremy McMillan wrote: > I don't see your python code attempting to md5 the string. > > Maybe you should try using hashlib? > > https://docs.python.org/2/library/hashlib.html > > On Fri, Jun 5, 2015 at 10:27 AM, brian herman < > bherman at uniqueinsuranceco.com> wrote: > >> I have a python application that uses pysimplesoap to send a soap >> request to windows. >> The problem is the password field is not encoded in UTF-8 it may use >> Windows-1252? >> Python Code >> https://gist.github.com/brianherman/209af7751444ec308e1b >> Visual Basic Sample code (how to encode the password field in visual >> basic) >> https://gist.github.com/brianherman/b4174b99be9000fcc4f8 >> They use visual basic to encode the password which works. The problem is >> reproducing this in python >> This is the encoded password in the database (microsoft sql server): >> >> I have tried using the md5 package in python but I can't seem to get the >> encoding right. >> >> -- >> >> Brian Herman >> IT Department >> O: (773)299-7557 >> >> [image: Unique Insurance Company] >> >> We value your input, please click here to provide feedback on Unique >> Insurance. >> >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> https://mail.python.org/mailman/listinfo/chicago >> >> > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: becefjde. Type: image/png Size: 1312 bytes Desc: not available URL: From jcalahor at yahoo.com Tue Jun 9 01:08:53 2015 From: jcalahor at yahoo.com (Jimmy Calahorrano) Date: Mon, 8 Jun 2015 23:08:53 +0000 (UTC) Subject: [Chicago] The battle of the languages (May ChiPy) In-Reply-To: References: Message-ID: <1685476272.7559103.1433804933403.JavaMail.yahoo@mail.yahoo.com> here is an updated version of the video, we have removed the background sound and improved the talk of the winner (who requested minor changes) thxJimmy The battle of programming languages for Python developers (Go, Swift, R, Ruby and others) | ? | | ? | | ? | ? | ? | ? | ? | | The battle of programming languages for Python developer... | | | | View on www.youtube.com | Preview by Yahoo | | | | ? | ? From: Japhy Bartlett To: The Chicago Python Users Group Sent: Sunday, June 7, 2015 1:07 PM Subject: Re: [Chicago] The battle of the languages (May ChiPy) That's David Sutton, you can find him on the Twitters at https://twitter.com/zzsnzmn On Sun, Jun 7, 2015 at 12:09 AM, John Stoner wrote: Who did the Javascript presentation? I have a question for that guy. On Fri, Jun 5, 2015 at 3:25 PM sheila miguez wrote: On Fri, Jun 5, 2015 at 2:19 PM, Jimmy Calahorrano via Chicago wrote: i can upload a newer (different link) version with no background noise. let u know once is ready.? If it is no problem could you chop up the video in to separate videos per talk? It helps make a nice experience on pyvideo. We like to have separate pages per talk. Also, I have an issue opened for a to-do for adding the talk to pyvideo. When you repost, could you let us know? https://github.com/pyvideo/pyvideo/issues/111 -- shekay at pobox.com_______________________________________________ Chicago mailing list Chicago at python.org https://mail.python.org/mailman/listinfo/chicago _______________________________________________ Chicago mailing list Chicago at python.org https://mail.python.org/mailman/listinfo/chicago _______________________________________________ Chicago mailing list Chicago at python.org https://mail.python.org/mailman/listinfo/chicago -------------- next part -------------- An HTML attachment was scrubbed... URL: From carl at personnelware.com Thu Jun 11 00:52:06 2015 From: carl at personnelware.com (Carl Karsten) Date: Wed, 10 Jun 2015 17:52:06 -0500 Subject: [Chicago] Carl and video Message-ID: I need to correct some things. I am not a team. I am a chipy member that has a ton of gear and expertise. I likes making videos of things like chipy talks. For larger events like PyCon I will assemble a team of volunteers for that event. There is a group of about 6 of us that work together on the software and workflow. I am the only one that lives in the US. They generally don't know ChiPy happens unless we are experimenting with the live stream system. I feel uncomfortable saying I charge money for doing chipy videos. That implies I am making videos because I think it is profitable and won't if I don't get paid. I am comfortable saying I will sell add space on the front of the video, and will spend the money on whatever I feel like. In the last 12 months, I have collected a total of about $1000. ChiPy took out 20%. I have a for profit LLC. It makes the PyCon expense reimbursement process 100x easier. I could be a 501c3, but my accountant said "don't bother, you are not making enough money for it to be worth the paperwork." Here is what I "charge" to setup my PA system and do video: Find three companies and collect some amount to have their logo put on the title of the video. For the how and why details: http://whiteboard.debian.net/34c94c.txt2 On Sat, Jun 6, 2015 at 8:30 AM, Jimmy Calahorrano via Chicago < chicago at python.org> wrote: > Hi, > > we are looking for a company that would be willing to sponsor the video > production for next meeting. > > Next meeting will cover Spark which is becoming a hot topic these days. > The first company that offers 200 USD will have it's logo included at the > beginning of the video and it will be the sole sponsor for the video > > There are 2 video production teams at this time helping ChiPy, the first > is Carl's team and the second is my team. We help based in our availability. > We don't charge any money for this, however we rely on support from > companies that can help us paying for parking, editing costs and > mobilization of the equipment. > > Thanks, > Jimmy > > Agenda for new meeting: > > > - *PyCon 2015 Review* > (0:05:00 Minutes) > By: Jason Wirth > - *Introduction to PySpark* > (1:00:00 Minutes) > By: Nusreth Baig > Big Shoulders Data Camp presents an ?Introduction to PySpark?. One of > our top instructors and data scientists, Adam McElhinney, will be giving a > talk on working with PySpark, and presenting a use case. Audience is > encouraged to come prepared to take notes, ask questions, and get a > high-level understanding on one of Python's many analytical libraries. > > > > > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > -- Carl K -------------- next part -------------- An HTML attachment was scrubbed... URL: From robkapteyn at gmail.com Thu Jun 11 16:06:42 2015 From: robkapteyn at gmail.com (Rob Kapteyn) Date: Thu, 11 Jun 2015 09:06:42 -0500 Subject: [Chicago] Carl and video In-Reply-To: References: Message-ID: Hey Carl! Thank You so much for doing this so well for so long for our little "hobbyist group" ;) It is almost 10 years since you started -- isn't it ? It is a tribute both to you and to your technology (lots of python) that so many people seem to think that your productions and web hosting are paid professional work. We owe you LOTS of thanks for your work. I'm sure that the ChiPy videos on PyVideo have played a big part in the explosive growth of both ChiPy, in Chicago, and Python, in the world. THANKS! On Wed, Jun 10, 2015 at 5:52 PM, Carl Karsten wrote: > I need to correct some things. > > I am not a team. I am a chipy member that has a ton of gear and > expertise. I likes making videos of things like chipy talks. For larger > events like PyCon I will assemble a team of volunteers for that event. > There is a group of about 6 of us that work together on the software and > workflow. I am the only one that lives in the US. They generally don't > know ChiPy happens unless we are experimenting with the live stream system. > > I feel uncomfortable saying I charge money for doing chipy videos. That > implies I am making videos because I think it is profitable and won't if I > don't get paid. I am comfortable saying I will sell add space on the front > of the video, and will spend the money on whatever I feel like. In the last > 12 months, I have collected a total of about $1000. ChiPy took out 20%. > > I have a for profit LLC. It makes the PyCon expense reimbursement process > 100x easier. I could be a 501c3, but my accountant said "don't bother, you > are not making enough money for it to be worth the paperwork." > > Here is what I "charge" to setup my PA system and do video: > > Find three companies and collect some amount to have their logo put on the > title of the video. > > For the how and why details: http://whiteboard.debian.net/34c94c.txt2 > > > > On Sat, Jun 6, 2015 at 8:30 AM, Jimmy Calahorrano via Chicago < > chicago at python.org> wrote: > >> Hi, >> >> we are looking for a company that would be willing to sponsor the video >> production for next meeting. >> >> Next meeting will cover Spark which is becoming a hot topic these days. >> The first company that offers 200 USD will have it's logo included at the >> beginning of the video and it will be the sole sponsor for the video >> >> There are 2 video production teams at this time helping ChiPy, the first >> is Carl's team and the second is my team. We help based in our availability. >> We don't charge any money for this, however we rely on support from >> companies that can help us paying for parking, editing costs and >> mobilization of the equipment. >> >> Thanks, >> Jimmy >> >> Agenda for new meeting: >> >> >> - *PyCon 2015 Review* >> (0:05:00 Minutes) >> By: Jason Wirth >> - *Introduction to PySpark* >> (1:00:00 Minutes) >> By: Nusreth Baig >> Big Shoulders Data Camp presents an ?Introduction to PySpark?. One of >> our top instructors and data scientists, Adam McElhinney, will be giving a >> talk on working with PySpark, and presenting a use case. Audience is >> encouraged to come prepared to take notes, ask questions, and get a >> high-level understanding on one of Python's many analytical libraries. >> >> >> >> >> >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> https://mail.python.org/mailman/listinfo/chicago >> >> > > > -- > Carl K > > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From proba at allstate.com Thu Jun 11 16:34:26 2015 From: proba at allstate.com (Robare, Phillip (Randstant)) Date: Thu, 11 Jun 2015 14:34:26 +0000 Subject: [Chicago] Carl and video In-Reply-To: References: Message-ID: <50869A74BA4F07468AD797C9BFF1FE3E0433693F@A0185-XPO1026-C.ad.allstate.com> +1 for Carl From: Chicago [mailto:chicago-bounces+proba=allstate.com at python.org] On Behalf Of Rob Kapteyn Sent: Thursday, June 11, 2015 9:07 AM To: The Chicago Python Users Group Subject: Re: [Chicago] Carl and video Hey Carl! Thank You so much for doing this so well for so long for our little "hobbyist group" ;) It is almost 10 years since you started -- isn't it ? It is a tribute both to you and to your technology (lots of python) that so many people seem to think that your productions and web hosting are paid professional work. We owe you LOTS of thanks for your work. I'm sure that the ChiPy videos on PyVideo have played a big part in the explosive growth of both ChiPy, in Chicago, and Python, in the world. THANKS! On Wed, Jun 10, 2015 at 5:52 PM, Carl Karsten > wrote: I need to correct some things. I am not a team. I am a chipy member that has a ton of gear and expertise. I likes making videos of things like chipy talks. For larger events like PyCon I will assemble a team of volunteers for that event. There is a group of about 6 of us that work together on the software and workflow. I am the only one that lives in the US. They generally don't know ChiPy happens unless we are experimenting with the live stream system. I feel uncomfortable saying I charge money for doing chipy videos. That implies I am making videos because I think it is profitable and won't if I don't get paid. I am comfortable saying I will sell add space on the front of the video, and will spend the money on whatever I feel like. In the last 12 months, I have collected a total of about $1000. ChiPy took out 20%. I have a for profit LLC. It makes the PyCon expense reimbursement process 100x easier. I could be a 501c3, but my accountant said "don't bother, you are not making enough money for it to be worth the paperwork." Here is what I "charge" to setup my PA system and do video: Find three companies and collect some amount to have their logo put on the title of the video. For the how and why details: http://whiteboard.debian.net/34c94c.txt2 On Sat, Jun 6, 2015 at 8:30 AM, Jimmy Calahorrano via Chicago > wrote: Hi, we are looking for a company that would be willing to sponsor the video production for next meeting. Next meeting will cover Spark which is becoming a hot topic these days. The first company that offers 200 USD will have it's logo included at the beginning of the video and it will be the sole sponsor for the video There are 2 video production teams at this time helping ChiPy, the first is Carl's team and the second is my team. We help based in our availability. We don't charge any money for this, however we rely on support from companies that can help us paying for parking, editing costs and mobilization of the equipment. Thanks, Jimmy Agenda for new meeting: ? PyCon 2015 Review (0:05:00 Minutes) By: Jason Wirth ? Introduction to PySpark (1:00:00 Minutes) By: Nusreth Baig Big Shoulders Data Camp presents an ?Introduction to PySpark?. One of our top instructors and data scientists, Adam McElhinney, will be giving a talk on working with PySpark, and presenting a use case. Audience is encouraged to come prepared to take notes, ask questions, and get a high-level understanding on one of Python's many analytical libraries. _______________________________________________ Chicago mailing list Chicago at python.org https://mail.python.org/mailman/listinfo/chicago -- Carl K _______________________________________________ Chicago mailing list Chicago at python.org https://mail.python.org/mailman/listinfo/chicago -------------- next part -------------- An HTML attachment was scrubbed... URL: From carl at personnelware.com Thu Jun 11 21:09:50 2015 From: carl at personnelware.com (Carl Karsten) Date: Thu, 11 Jun 2015 14:09:50 -0500 Subject: [Chicago] Carl and video In-Reply-To: References: Message-ID: You're welcome. Not quite 10 years, and it's hard to figure out exactly when to start. 2007 was when I started trying to make videos of talks. I am not sure if any of those meetings ever made it online. I might have the files on my old desktop that is on a shelf in my basement. 2008 is when I discovered the Debian Conference Video Team wiki that showed me a better way to do things. Even then it took a few months to adapt their 5 day conference procedures to a 2 hour meeting. PyCon 2009 was my first grand slam. All talks and all but one tutorial. As long as we are digging in history, here is one of my favourites: Mindblowing Python GIL Presented by David Beazley at ChiPy on June 11, 2009 http://pyvideo.org/video/588/mindblowing-python-gil which had like 12,000 views, then this tweet happened: Guido van Rossum ?@gvanrossum 26 Jun 2009 Who wants to *fix* the GIL for multi-core use? (NOT remove it.) Start with Dave Beazley's amazing preso - http://blip.tv/file/2232410 https://twitter.com/gvanrossum/status/2348060772 and in searching for that, I had no idea how many times the talk was tweeted about: https://twitter.com/search?q=Mindblowing%20Python%20GIL&src=typd To bad blip.tv dumped my accounts. On a happy note, I hear that video inspired some changes to the core C Python GIL stuff. That makes me feel good. On Thu, Jun 11, 2015 at 9:06 AM, Rob Kapteyn wrote: > > Hey Carl! > Thank You so much for doing this so well for so long for our little "hobbyist group" ;) > It is almost 10 years since you started -- isn't it ? > > It is a tribute both to you and to your technology (lots of python) that so many people seem to think that > your productions and web hosting are paid professional work. > We owe you LOTS of thanks for your work. > > I'm sure that the ChiPy videos on PyVideo have played a big part in the explosive growth of both ChiPy, in Chicago, and Python, in the world. > > THANKS! > > On Wed, Jun 10, 2015 at 5:52 PM, Carl Karsten wrote: >> >> I need to correct some things. >> >> I am not a team. I am a chipy member that has a ton of gear and expertise. I likes making videos of things like chipy talks. For larger events like PyCon I will assemble a team of volunteers for that event. There is a group of about 6 of us that work together on the software and workflow. I am the only one that lives in the US. They generally don't know ChiPy happens unless we are experimenting with the live stream system. >> >> I feel uncomfortable saying I charge money for doing chipy videos. That implies I am making videos because I think it is profitable and won't if I don't get paid. I am comfortable saying I will sell add space on the front of the video, and will spend the money on whatever I feel like. In the last 12 months, I have collected a total of about $1000. ChiPy took out 20%. >> >> I have a for profit LLC. It makes the PyCon expense reimbursement process 100x easier. I could be a 501c3, but my accountant said "don't bother, you are not making enough money for it to be worth the paperwork." >> >> Here is what I "charge" to setup my PA system and do video: >> >> Find three companies and collect some amount to have their logo put on the title of the video. >> >> For the how and why details: http://whiteboard.debian.net/34c94c.txt2 >> >> >> >> On Sat, Jun 6, 2015 at 8:30 AM, Jimmy Calahorrano via Chicago < chicago at python.org> wrote: >>> >>> Hi, >>> >>> we are looking for a company that would be willing to sponsor the video production for next meeting. >>> >>> Next meeting will cover Spark which is becoming a hot topic these days. >>> The first company that offers 200 USD will have it's logo included at the beginning of the video and it will be the sole sponsor for the video >>> >>> There are 2 video production teams at this time helping ChiPy, the first is Carl's team and the second is my team. We help based in our availability. >>> We don't charge any money for this, however we rely on support from companies that can help us paying for parking, editing costs and mobilization of the equipment. >>> >>> Thanks, >>> Jimmy >>> >>> Agenda for new meeting: >>> >>> PyCon 2015 Review >>> (0:05:00 Minutes) >>> By: Jason Wirth >>> Introduction to PySpark >>> (1:00:00 Minutes) >>> By: Nusreth Baig >>> Big Shoulders Data Camp presents an ?Introduction to PySpark?. One of our top instructors and data scientists, Adam McElhinney, will be giving a talk on working with PySpark, and presenting a use case. Audience is encouraged to come prepared to take notes, ask questions, and get a high-level understanding on one of Python's many analytical libraries. >>> >>> >>> >>> >>> >>> _______________________________________________ >>> Chicago mailing list >>> Chicago at python.org >>> https://mail.python.org/mailman/listinfo/chicago >>> >> >> >> >> -- >> Carl K >> >> >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> https://mail.python.org/mailman/listinfo/chicago >> > > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > -- Carl K -------------- next part -------------- An HTML attachment was scrubbed... URL: From d-lewit at neiu.edu Fri Jun 12 05:45:05 2015 From: d-lewit at neiu.edu (Lewit, Douglas) Date: Thu, 11 Jun 2015 22:45:05 -0500 Subject: [Chicago] Question about using Sympy. Message-ID: Hi there Chipy Folks, Just wondering if the sympy module has a builtin routine for solving recurrence relations. If you know, please enlighten me. I know that Maple and Mathematica have such routines--and they are pretty impressive. Just wondering if the sympy module has something equivalent. Thanks and I hope everyone in the group has a fun weekend. I'm looking forward to Wednesday evening's meeting at Pumping Station One. I'll be arriving right after my second Algorithms exam, so there's a chance I won't be in a very happy mood! That course is just brutal. The prof got his undergrad degree at Harvard and his PhD. at the University of Chicago. A real genius.... and also extremely demanding! So wish me luck on that exam! :-) Warm regards, Douglas. -------------- next part -------------- An HTML attachment was scrubbed... URL: From wesclemens at gmail.com Fri Jun 12 16:37:41 2015 From: wesclemens at gmail.com (William E. S. Clemens) Date: Fri, 12 Jun 2015 09:37:41 -0500 Subject: [Chicago] Spark 1.4 Release Message-ID: A quick follow up to yesterdays meeting. It looks like Spark 1.4 was release yesterday and it has added support for python 3 and has some improved python interfaces. http://spark.apache.org/releases/spark-release-1-4-0.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From namusoke at hotmail.com Fri Jun 12 16:41:54 2015 From: namusoke at hotmail.com (Valentina Kibuyaga) Date: Fri, 12 Jun 2015 09:41:54 -0500 Subject: [Chicago] Spark 1.4 Release In-Reply-To: References: Message-ID: Thank you! Valentina Kibuyaga Date: Fri, 12 Jun 2015 09:37:41 -0500 From: wesclemens at gmail.com To: chicago at python.org Subject: [Chicago] Spark 1.4 Release A quick follow up to yesterdays meeting. It looks like Spark 1.4 was release yesterday and it has added support for python 3 and has some improved python interfaces. http://spark.apache.org/releases/spark-release-1-4-0.html _______________________________________________ Chicago mailing list Chicago at python.org https://mail.python.org/mailman/listinfo/chicago -------------- next part -------------- An HTML attachment was scrubbed... URL: From tathagatadg at gmail.com Sat Jun 13 17:04:58 2015 From: tathagatadg at gmail.com (Tathagata Dasgupta) Date: Sat, 13 Jun 2015 10:04:58 -0500 Subject: [Chicago] Podcasts Message-ID: Happy weekend ChiPy ... I am a big fan of podcasts and have subscribed to more than what I can make time for. TalkPython and Podcast.__init__ are two Python specific podcasts that I have really enjoyed. (Like TalkPython better) Which podcasts do you guys subscribe to? -- Cheers, T Sent from my iPhone -------------- next part -------------- An HTML attachment was scrubbed... URL: From robkapteyn at gmail.com Sat Jun 13 18:09:01 2015 From: robkapteyn at gmail.com (Rob Kapteyn) Date: Sat, 13 Jun 2015 11:09:01 -0500 Subject: [Chicago] Podcasts In-Reply-To: References: Message-ID: By far my favorite: FLOSS Weekly. (Free Libre Open Source Software) http://twit.tv/show/floss-weekly 280 episodes since 2006. So much stuff there it is hard to list. There is a interview with Guido, and interviews of some of our ChiPy people. On a related subject -- Can someone recommend a simple, stable podcast player for Android ? I haven't found a player I'm happy with since I ditched iOS and OSX for Android and Linux. On Sat, Jun 13, 2015 at 10:04 AM, Tathagata Dasgupta wrote: > Happy weekend ChiPy ... > I am a big fan of podcasts and have subscribed to more than what I can > make time for. > TalkPython and Podcast.__init__ are two Python specific podcasts that I > have really enjoyed. (Like TalkPython better) > > Which podcasts do you guys subscribe to? > > -- > Cheers, > T > > Sent from my iPhone > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From labeledloser at gmail.com Sat Jun 13 19:15:39 2015 From: labeledloser at gmail.com (Hector Rios) Date: Sat, 13 Jun 2015 12:15:39 -0500 Subject: [Chicago] Podcasts In-Reply-To: References: Message-ID: I'm actually a huge fan of the new Slack podcast: https://slack.com/varietypack It's fairly new, but I like the vibe. { "name": "Hector Rios", "title": "Software Developer", "contact": { "linkedin": "hrios10", "gmail": "labeledloser", "site": "http://hectron.github.io/" } } *No trees were killed to send this message, but a large number of electrons were terribly inconvenienced.* On Sat, Jun 13, 2015 at 11:09 AM, Rob Kapteyn wrote: > By far my favorite: > > FLOSS Weekly. (Free Libre Open Source Software) > http://twit.tv/show/floss-weekly > > 280 episodes since 2006. > > So much stuff there it is hard to list. > There is a interview with Guido, and interviews of some of our ChiPy > people. > > On a related subject -- > Can someone recommend a simple, stable podcast player for Android ? > I haven't found a player I'm happy with since I ditched iOS and OSX for > Android and Linux. > > > On Sat, Jun 13, 2015 at 10:04 AM, Tathagata Dasgupta < > tathagatadg at gmail.com> wrote: > >> Happy weekend ChiPy ... >> I am a big fan of podcasts and have subscribed to more than what I can >> make time for. >> TalkPython and Podcast.__init__ are two Python specific podcasts that I >> have really enjoyed. (Like TalkPython better) >> >> Which podcasts do you guys subscribe to? >> >> -- >> Cheers, >> T >> >> Sent from my iPhone >> >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> https://mail.python.org/mailman/listinfo/chicago >> >> > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zitterbewegung at gmail.com Mon Jun 15 02:38:03 2015 From: zitterbewegung at gmail.com (Joshua Herman) Date: Sun, 14 Jun 2015 19:38:03 -0500 Subject: [Chicago] Question about using Sympy. In-Reply-To: References: Message-ID: >From the documentation http://docs.sympy.org/dev/modules/solvers/solvers.html#module-sympy.solvers.recurr On Thu, Jun 11, 2015 at 10:45 PM, Lewit, Douglas wrote: > Hi there Chipy Folks, > > Just wondering if the sympy module has a builtin routine for solving > recurrence relations. If you know, please enlighten me. I know that Maple > and Mathematica have such routines--and they are pretty impressive. Just > wondering if the sympy module has something equivalent. > > Thanks and I hope everyone in the group has a fun weekend. I'm looking > forward to Wednesday evening's meeting at Pumping Station One. I'll be > arriving right after my second Algorithms exam, so there's a chance I won't > be in a very happy mood! That course is just brutal. The prof got his > undergrad degree at Harvard and his PhD. at the University of Chicago. A > real genius.... and also extremely demanding! So wish me luck on that > exam! :-) > > Warm regards, > > Douglas. > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From d-lewit at neiu.edu Mon Jun 15 06:31:24 2015 From: d-lewit at neiu.edu (Lewit, Douglas) Date: Sun, 14 Jun 2015 23:31:24 -0500 Subject: [Chicago] Problems with Merge Sort??? Message-ID: Hey guys, I'm trying to master the merge sort algorithm and definitely experiencing some failure. My merge program works great. It takes two arrays, and assuming that they are already sorted, the two sorted arrays get merged together into one unified sorted array. So that's not the problem. The problem is my mergeSort program. I inserted a couple of print statements to print out the intermediate results of the recursion, and it appears that all my program does is break the array down into pieces and then rebuilds the pieces.... into the original array! (Could be worse I guess. No error messages! But the output is totally useless.) I'm honestly at a loss. I know I'm really close to the right solution, but there is something that I'm missing and I can't figure it out. I've been struggling with this for a couple days now, and I'm ready to give up. Can someone please enlighten me? Thanks!!! Best, Douglas. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Merge.py Type: text/x-python-script Size: 1293 bytes Desc: not available URL: From d-lewit at neiu.edu Mon Jun 15 09:29:32 2015 From: d-lewit at neiu.edu (Lewit, Douglas) Date: Mon, 15 Jun 2015 02:29:32 -0500 Subject: [Chicago] Not exactly a solution, but.... Message-ID: I sort of got my mergeSort program to work, but the problem is that the algorithm isn't really mergeSort at all! It uses merge, but my algorithm is iterative rather than recursive, so it's not really a mergeSort. It's a merge-something, but not true mergeSort. Oh well. Any suggestions? Thanks! Best, Douglas. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Merge.py Type: text/x-python-script Size: 1287 bytes Desc: not available URL: From bradley.marts at gmail.com Mon Jun 15 12:50:12 2015 From: bradley.marts at gmail.com (Brad Martsberger) Date: Mon, 15 Jun 2015 05:50:12 -0500 Subject: [Chicago] Problems with Merge Sort??? In-Reply-To: References: Message-ID: Your mergeSort function doesn't return anything. It also doesn't modify the input list. If it doesn't do one of these two things, you'll never get a result from it. Assuming you aren't required to write a mergesort that works in place, I'd recommend you need two return statements in your recursive mergeSort function (one for the base case, one for the recursive case), and whenever you call mergeSort you should be assigning the result to something. P.S. mergeSort looks like the name of a Java method, merge_sort or mergesort looks like the name of a python function. Good luck, Brad On Sun, Jun 14, 2015 at 11:31 PM, Lewit, Douglas wrote: > Hey guys, > > I'm trying to master the merge sort algorithm and definitely experiencing > some failure. My merge program works great. It takes two arrays, and > assuming that they are already sorted, the two sorted arrays get merged > together into one unified sorted array. So that's not the problem. > > The problem is my mergeSort program. I inserted a couple of print > statements to print out the intermediate results of the recursion, and it > appears that all my program does is break the array down into pieces and > then rebuilds the pieces.... into the original array! (Could be worse I > guess. No error messages! But the output is totally useless.) I'm > honestly at a loss. I know I'm really close to the right solution, but > there is something that I'm missing and I can't figure it out. I've been > struggling with this for a couple days now, and I'm ready to give up. Can > someone please enlighten me? > > Thanks!!! > > Best, > > Douglas. > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tanya at tickel.net Mon Jun 15 12:50:29 2015 From: tanya at tickel.net (Tanya Schlusser) Date: Mon, 15 Jun 2015 05:50:29 -0500 Subject: [Chicago] Not exactly a solution, but.... (Lewit, Douglas) Message-ID: > > I sort of got my mergeSort program to work, but the problem is that the > algorithm isn't really mergeSort at all! It uses merge, but my algorithm > is iterative rather than recursive, so it's not really a mergeSort. It's a > merge-something, but not true mergeSort. Oh well. Any suggestions? > Thanks! > The algorithm is kind of iterative-ish so it may be working OK. The best way to investigate is to watch the AlgoRythmics perform the Mergesort Algorithm in a Transylvanian-Saxon Folk Dance Seriously, put it on 2x speed, it is the greatest thing on earth. ~Tanya -------------- next part -------------- An HTML attachment was scrubbed... URL: From bradley.marts at gmail.com Mon Jun 15 13:08:46 2015 From: bradley.marts at gmail.com (Brad Martsberger) Date: Mon, 15 Jun 2015 06:08:46 -0500 Subject: [Chicago] Not exactly a solution, but.... In-Reply-To: References: Message-ID: In fact, the algorithm that you implemented in this code is insertion sort. On each iteration you are "merging" a single element with a sorted list of your previously merged elements. That is, you insert a single element into your growing sorted list. This algorithm has time complexity O(n^2), mergesort will have time complexity O(n log n). Brad On Mon, Jun 15, 2015 at 2:29 AM, Lewit, Douglas wrote: > I sort of got my mergeSort program to work, but the problem is that the > algorithm isn't really mergeSort at all! It uses merge, but my algorithm > is iterative rather than recursive, so it's not really a mergeSort. It's a > merge-something, but not true mergeSort. Oh well. Any suggestions? > Thanks! > > Best, > > Douglas. > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From d-lewit at neiu.edu Mon Jun 15 13:31:38 2015 From: d-lewit at neiu.edu (Lewit, Douglas) Date: Mon, 15 Jun 2015 06:31:38 -0500 Subject: [Chicago] Not exactly a solution, but.... In-Reply-To: References: Message-ID: Brad, You're a genius! That last email helped me fix my original program. Hooray!!! In this version I included a million comments because I'm going to email this to a professor who really doesn't know Python that well. So the comments may help him to interpret the code a little better. The only "problem" is that my mergeSort program doesn't change the array "in place". Not a big deal really. To permanently change the array you would just do this: array = [randint(0, 100) for i in range(20)] #### for example array = mergeSort(array) And presto! It works! The searching and sorting stuff is very cool and challenging, but I still wish that CS professors would also teach some practical stuff, such as web development and internet security, etc, etc. I've noticed that if you're a CS major they make you struggle through about 2 years of purely academic and theoretical stuff before they start teaching the skills needed for employment as a computer professional. I mean the Merge Sort algorithm is interesting, and I can see its value, but it would be nice if my professors at the university would teach me how to test a website for security weaknesses and practical stuff like that. Oh well. Maybe next semester, right? Again Brad, I really appreciate your help. I love you guys at ChiPy! Take care and have a great week. Best, Douglas. P.S. Regarding merge*S*ort vs. merge*s*ort, after three semesters of Java programming at Northeastern it's the naming style that I've gotten used to. Probably not really a big deal, right? It's just a matter of personal preference. On Mon, Jun 15, 2015 at 6:08 AM, Brad Martsberger wrote: > In fact, the algorithm that you implemented in this code is insertion > sort. On each iteration you are "merging" a single element with a sorted > list of your previously merged elements. That is, you insert a single > element into your growing sorted list. This algorithm has time complexity > O(n^2), mergesort will have time complexity O(n log n). > > Brad > > On Mon, Jun 15, 2015 at 2:29 AM, Lewit, Douglas wrote: > >> I sort of got my mergeSort program to work, but the problem is that the >> algorithm isn't really mergeSort at all! It uses merge, but my algorithm >> is iterative rather than recursive, so it's not really a mergeSort. It's a >> merge-something, but not true mergeSort. Oh well. Any suggestions? >> Thanks! >> >> Best, >> >> Douglas. >> >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> https://mail.python.org/mailman/listinfo/chicago >> >> > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: MergeSort.py Type: text/x-python-script Size: 1562 bytes Desc: not available URL: From azizharrington at gmail.com Mon Jun 15 14:10:08 2015 From: azizharrington at gmail.com (Aziz Harrington) Date: Mon, 15 Jun 2015 07:10:08 -0500 Subject: [Chicago] Problems with Merge Sort??? Message-ID: Hi Douglas, I just worked through this problem myself over the weekend. are you doing this course by chance? http://interactivepython.org/runestone/static/pythonds/index.html Anyway, could you share a link to your code? Hard to make suggestions without seeing it. -Aziz Send Chicago mailing list submissions to chicago at python.org To subscribe or unsubscribe via the World Wide Web, visit https://mail.python.org/mailman/listinfo/chicago or, via email, send a message with subject or body 'help' to chicago-request at python.org You can reach the person managing the list at chicago-owner at python.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Chicago digest..." Today's Topics: 1. Re: Question about using Sympy. (Joshua Herman) 2. Problems with Merge Sort??? (Lewit, Douglas) 3. Not exactly a solution, but.... (Lewit, Douglas) ---------------------------------------------------------------------- Message: 1 Date: Sun, 14 Jun 2015 19:38:03 -0500 From: Joshua Herman To: The Chicago Python Users Group Subject: Re: [Chicago] Question about using Sympy. Message-ID: Content-Type: text/plain; charset="utf-8" >From the documentation http://docs.sympy.org/dev/modules/solvers/solvers.html#module-sympy.solvers.recurr On Thu, Jun 11, 2015 at 10:45 PM, Lewit, Douglas wrote: > Hi there Chipy Folks, > > Just wondering if the sympy module has a builtin routine for solving > recurrence relations. If you know, please enlighten me. I know that Maple > and Mathematica have such routines--and they are pretty impressive. Just > wondering if the sympy module has something equivalent. > > Thanks and I hope everyone in the group has a fun weekend. I'm looking > forward to Wednesday evening's meeting at Pumping Station One. I'll be > arriving right after my second Algorithms exam, so there's a chance I won't > be in a very happy mood! That course is just brutal. The prof got his > undergrad degree at Harvard and his PhD. at the University of Chicago. A > real genius.... and also extremely demanding! So wish me luck on that > exam! :-) > > Warm regards, > > Douglas. > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > -------------- next part -------------- An HTML attachment was scrubbed... URL: < http://mail.python.org/pipermail/chicago/attachments/20150614/bc7b713b/attachment-0001.html > ------------------------------ Message: 2 Date: Sun, 14 Jun 2015 23:31:24 -0500 From: "Lewit, Douglas" To: The Chicago Python Users Group Subject: [Chicago] Problems with Merge Sort??? Message-ID: Content-Type: text/plain; charset="utf-8" Hey guys, I'm trying to master the merge sort algorithm and definitely experiencing some failure. My merge program works great. It takes two arrays, and assuming that they are already sorted, the two sorted arrays get merged together into one unified sorted array. So that's not the problem. The problem is my mergeSort program. I inserted a couple of print statements to print out the intermediate results of the recursion, and it appears that all my program does is break the array down into pieces and then rebuilds the pieces.... into the original array! (Could be worse I guess. No error messages! But the output is totally useless.) I'm honestly at a loss. I know I'm really close to the right solution, but there is something that I'm missing and I can't figure it out. I've been struggling with this for a couple days now, and I'm ready to give up. Can someone please enlighten me? Thanks!!! Best, Douglas. -------------- next part -------------- An HTML attachment was scrubbed... URL: < http://mail.python.org/pipermail/chicago/attachments/20150614/c21eafaf/attachment-0001.html > -------------- next part -------------- A non-text attachment was scrubbed... Name: Merge.py Type: text/x-python-script Size: 1293 bytes Desc: not available URL: < http://mail.python.org/pipermail/chicago/attachments/20150614/c21eafaf/attachment-0001.bin > ------------------------------ Message: 3 Date: Mon, 15 Jun 2015 02:29:32 -0500 From: "Lewit, Douglas" To: The Chicago Python Users Group Subject: [Chicago] Not exactly a solution, but.... Message-ID: Content-Type: text/plain; charset="utf-8" I sort of got my mergeSort program to work, but the problem is that the algorithm isn't really mergeSort at all! It uses merge, but my algorithm is iterative rather than recursive, so it's not really a mergeSort. It's a merge-something, but not true mergeSort. Oh well. Any suggestions? Thanks! Best, Douglas. -------------- next part -------------- An HTML attachment was scrubbed... URL: < http://mail.python.org/pipermail/chicago/attachments/20150615/3ad294b5/attachment-0001.html > -------------- next part -------------- A non-text attachment was scrubbed... Name: Merge.py Type: text/x-python-script Size: 1287 bytes Desc: not available URL: < http://mail.python.org/pipermail/chicago/attachments/20150615/3ad294b5/attachment-0001.bin > ------------------------------ Subject: Digest Footer _______________________________________________ Chicago mailing list Chicago at python.org https://mail.python.org/mailman/listinfo/chicago ------------------------------ End of Chicago Digest, Vol 118, Issue 11 **************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryan.manly at gmail.com Mon Jun 15 14:25:12 2015 From: ryan.manly at gmail.com (Ryan Manly) Date: Mon, 15 Jun 2015 07:25:12 -0500 Subject: [Chicago] Podcasts In-Reply-To: References: Message-ID: This podcast hasn't been updated in forever but he had some nice "gets". The first episode in particular is VERY cool. http://radiofreepython.com/episodes/ On Sat, Jun 13, 2015 at 10:04 AM, Tathagata Dasgupta wrote: > Happy weekend ChiPy ... > I am a big fan of podcasts and have subscribed to more than what I can > make time for. > TalkPython and Podcast.__init__ are two Python specific podcasts that I > have really enjoyed. (Like TalkPython better) > > Which podcasts do you guys subscribe to? > > -- > Cheers, > T > > Sent from my iPhone > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From d-lewit at neiu.edu Mon Jun 15 17:02:08 2015 From: d-lewit at neiu.edu (Lewit, Douglas) Date: Mon, 15 Jun 2015 10:02:08 -0500 Subject: [Chicago] Problems with Merge Sort??? In-Reply-To: References: Message-ID: Hey Aziz, I'm not taking an online Python course right now. I'm taking CS-404 (Analysis of Algorithms) at Northeastern Illinois University Professor Kimmel. The course is mostly math, but requires a little Java programming on the side. I asked Dr. Kimmel if I could implement some of the algorithms in Python. He said I could, but since he doesn't know Python he won't be able to provide much guidance in that direction. Here's my Merge Sort program. It's attached to my email. The sorted array is returned, but the array is not sorted "in place". If you want to save the sorted array, that's easy enough to do. Just override the original array variable or create a new one. Gotta run but thanks for the reply. I hope you find my code helpful. It took me a lot of time to figure it out! The merge method wasn't really that hard for me. But getting merge sort to work properly was definitely a challenge. Best, Douglas. On Mon, Jun 15, 2015 at 7:10 AM, Aziz Harrington wrote: > Hi Douglas, I just worked through this problem myself over the weekend. > are you doing this course by chance? > http://interactivepython.org/runestone/static/pythonds/index.html > > Anyway, could you share a link to your code? Hard to make suggestions > without seeing it. > > -Aziz > Send Chicago mailing list submissions to > chicago at python.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://mail.python.org/mailman/listinfo/chicago > or, via email, send a message with subject or body 'help' to > chicago-request at python.org > > You can reach the person managing the list at > chicago-owner at python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Chicago digest..." > > > Today's Topics: > > 1. Re: Question about using Sympy. (Joshua Herman) > 2. Problems with Merge Sort??? (Lewit, Douglas) > 3. Not exactly a solution, but.... (Lewit, Douglas) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sun, 14 Jun 2015 19:38:03 -0500 > From: Joshua Herman > To: The Chicago Python Users Group > Subject: Re: [Chicago] Question about using Sympy. > Message-ID: > < > CAB3V1zmkq_Lj_nitb1PkZk+m6PtrH0Dq824zBVPBgWf7NbszxQ at mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > >From the documentation > > http://docs.sympy.org/dev/modules/solvers/solvers.html#module-sympy.solvers.recurr > > On Thu, Jun 11, 2015 at 10:45 PM, Lewit, Douglas wrote: > > > Hi there Chipy Folks, > > > > Just wondering if the sympy module has a builtin routine for solving > > recurrence relations. If you know, please enlighten me. I know that > Maple > > and Mathematica have such routines--and they are pretty impressive. Just > > wondering if the sympy module has something equivalent. > > > > Thanks and I hope everyone in the group has a fun weekend. I'm looking > > forward to Wednesday evening's meeting at Pumping Station One. I'll be > > arriving right after my second Algorithms exam, so there's a chance I > won't > > be in a very happy mood! That course is just brutal. The prof got his > > undergrad degree at Harvard and his PhD. at the University of Chicago. A > > real genius.... and also extremely demanding! So wish me luck on that > > exam! :-) > > > > Warm regards, > > > > Douglas. > > > > _______________________________________________ > > Chicago mailing list > > Chicago at python.org > > https://mail.python.org/mailman/listinfo/chicago > > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://mail.python.org/pipermail/chicago/attachments/20150614/bc7b713b/attachment-0001.html > > > > ------------------------------ > > Message: 2 > Date: Sun, 14 Jun 2015 23:31:24 -0500 > From: "Lewit, Douglas" > To: The Chicago Python Users Group > Subject: [Chicago] Problems with Merge Sort??? > Message-ID: > < > CAPdZZGz+U4FMwQZsvDbyWwmLp-t-pzWEK4GJwgO8q6aUsqD_xQ at mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > Hey guys, > > I'm trying to master the merge sort algorithm and definitely experiencing > some failure. My merge program works great. It takes two arrays, and > assuming that they are already sorted, the two sorted arrays get merged > together into one unified sorted array. So that's not the problem. > > The problem is my mergeSort program. I inserted a couple of print > statements to print out the intermediate results of the recursion, and it > appears that all my program does is break the array down into pieces and > then rebuilds the pieces.... into the original array! (Could be worse I > guess. No error messages! But the output is totally useless.) I'm > honestly at a loss. I know I'm really close to the right solution, but > there is something that I'm missing and I can't figure it out. I've been > struggling with this for a couple days now, and I'm ready to give up. Can > someone please enlighten me? > > Thanks!!! > > Best, > > Douglas. > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://mail.python.org/pipermail/chicago/attachments/20150614/c21eafaf/attachment-0001.html > > > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: Merge.py > Type: text/x-python-script > Size: 1293 bytes > Desc: not available > URL: < > http://mail.python.org/pipermail/chicago/attachments/20150614/c21eafaf/attachment-0001.bin > > > > ------------------------------ > > Message: 3 > Date: Mon, 15 Jun 2015 02:29:32 -0500 > From: "Lewit, Douglas" > To: The Chicago Python Users Group > Subject: [Chicago] Not exactly a solution, but.... > Message-ID: > < > CAPdZZGw4CTKHdZYAuoL-dii9_Y4UExKsV1jYhO_st3Gm7xW_0Q at mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > I sort of got my mergeSort program to work, but the problem is that the > algorithm isn't really mergeSort at all! It uses merge, but my algorithm > is iterative rather than recursive, so it's not really a mergeSort. It's a > merge-something, but not true mergeSort. Oh well. Any suggestions? > Thanks! > > Best, > > Douglas. > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://mail.python.org/pipermail/chicago/attachments/20150615/3ad294b5/attachment-0001.html > > > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: Merge.py > Type: text/x-python-script > Size: 1287 bytes > Desc: not available > URL: < > http://mail.python.org/pipermail/chicago/attachments/20150615/3ad294b5/attachment-0001.bin > > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > > ------------------------------ > > End of Chicago Digest, Vol 118, Issue 11 > **************************************** > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: MergeSort.py Type: text/x-python-script Size: 1562 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: MergeSort2.java Type: application/octet-stream Size: 3498 bytes Desc: not available URL: From shekay at pobox.com Mon Jun 15 20:16:26 2015 From: shekay at pobox.com (sheila miguez) Date: Mon, 15 Jun 2015 13:16:26 -0500 Subject: [Chicago] provide description for May meeting Message-ID: Hi all, I'd like to have an accurate description for the May meeting video for when I add it to pyvideo. I'd like for someone to create a markdown with a list of talks and speakers and a link to the timecode in youtube for where each talk starts. You can post it here, or in a gist and link it here: < https://github.com/pyvideo/pyvideo/issues/111>. I'll wait for this for a bit, and otherwise will just post the video with a generic description about a language shootout. -- shekay at pobox.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcalahor at yahoo.com Mon Jun 15 20:41:46 2015 From: jcalahor at yahoo.com (Jimmy Calahorrano) Date: Mon, 15 Jun 2015 11:41:46 -0700 Subject: [Chicago] provide description for May meeting In-Reply-To: Message-ID: <1434393706.88117.YahooMailAndroidMobile@web181704.mail.ne1.yahoo.com> i still own you that description give me this week pls to complete sorry the delay. Enviado desde Yahoo Mail en Android De:"sheila miguez" Fecha:lun, jun 15, PM a 1:17 PM Asunto:[Chicago] provide description for May meeting Hi all, I'd like to have an accurate description for the May meeting video for when I add it to pyvideo. I'd like for someone to create a markdown with a list of talks and speakers and a link to the timecode in youtube for where each talk starts. You can post it here, or in a gist and link it here: . I'll wait for this for a bit, and otherwise will just post the video with a generic description about a language shootout. -- shekay at pobox.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From proba at allstate.com Mon Jun 15 20:58:08 2015 From: proba at allstate.com (Robare, Phillip (Randstant)) Date: Mon, 15 Jun 2015 18:58:08 +0000 Subject: [Chicago] Problems with Merge Sort??? In-Reply-To: References: Message-ID: <50869A74BA4F07468AD797C9BFF1FE3E04336C08@A0185-XPO1026-C.ad.allstate.com> On Monday, June 15, 2015 10:02 AM, Lewit, Douglas wrote: ?It took me a lot of time to figure it out! The merge method wasn't really that hard for me. But getting merge sort to work properly was definitely a challenge.? That is one of the reasons why your professors have you doing basic algorithms. Not only do you need to know the theory behind them to properly do advanced work you have to learn to embrace the challenge and learn how to test and debug and eventually triumph. Phil Robare -------------- next part -------------- An HTML attachment was scrubbed... URL: From randy7771026 at gmail.com Tue Jun 16 01:17:49 2015 From: randy7771026 at gmail.com (Randy Baxley) Date: Mon, 15 Jun 2015 18:17:49 -0500 Subject: [Chicago] My strange mind has me thinking Re: provide description for May meeting Message-ID: Beginning points of one talk are cose to end points of another except for last. Is there a way from Django to say feed only the talk for one language from that information. If so then of course it would also apply to a trip planner and the CTA "L" videos. Merchandise Mart (http://youtu.be/fJzhNPKtR0Q?t=47m21s) to say: Rockwell (http://youtu.be/fJzhNPKtR0Q?t=1h16m20s) Would be a neat one. On Mon, Jun 15, 2015 at 1:16 PM, sheila miguez wrote: > Hi all, > > I'd like to have an accurate description for the May meeting video for > when I add it to pyvideo. > > I'd like for someone to create a markdown with a list of talks and > speakers and a link to the timecode in youtube for where each talk starts. > You can post it here, or in a gist and link it here: < > https://github.com/pyvideo/pyvideo/issues/111>. > > I'll wait for this for a bit, and otherwise will just post the video with > a generic description about a language shootout. > > -- > shekay at pobox.com > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From d-lewit at neiu.edu Tue Jun 16 05:55:42 2015 From: d-lewit at neiu.edu (Lewit, Douglas) Date: Mon, 15 Jun 2015 22:55:42 -0500 Subject: [Chicago] Now I get it. Message-ID: if __name__ = "__main__": etc. etc. etc. Now I get it. Do you want to just import the methods from your .py file? Or do you want to actually run the program directly? Cool stuff! Best, Douglas. P.S. Any thoughts on Ruby guys? I've been messing around with it lately. Sort of Python-like, but it actually offers more constructs than Python. For example, Ruby has a do-while loop and Ruby offers two different ways to represent ranges, one with the upper limit included and the other with the upper limit excluded--as in Python. But Ruby has a very "Pythonic" feel to it. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: MergeSort.py Type: text/x-python Size: 2475 bytes Desc: not available URL: From wesclemens at gmail.com Tue Jun 16 06:29:49 2015 From: wesclemens at gmail.com (William E. S. Clemens) Date: Mon, 15 Jun 2015 23:29:49 -0500 Subject: [Chicago] Now I get it. In-Reply-To: References: Message-ID: Although Python does lack some classic control flows notably do-while and switch-case, it offers plenty of other uniq control flows. I often use a else statement with a for loop. Python also offers list and dictionary comprehension. https://docs.python.org/3.5/tutorial/controlflow.html https://docs.python.org/2/tutorial/datastructures.html#list-comprehensions I would also suggest that you can easily implement a do-while like such: while True: pass # Do Stuff if condition: break # Our do statement Switch-cases are a little tricky. Most the time a if ... elif ... else works just fine, although this is a bit limiting if you want to use a fall through condition. A neat trick that you can do with python is use a dictionary as a switch-case. def foo(): print("foo") def bar(): print("bar") def baz(): print("default baz") map = { "Blue": foo, "Red": bar } map.get("Red", baz)() # bar map.get("Yellow", baz)() # default baz This has the added advantage that you can dynamically build out the dictionary map. -- William Clemens Phone: 847.485.9455 E-mail: wesclemens at gmail.com On Mon, Jun 15, 2015 at 10:55 PM, Lewit, Douglas wrote: > if __name__ = "__main__": > etc. > etc. > etc. > > Now I get it. Do you want to just import the methods from your .py file? > Or do you want to actually run the program directly? Cool stuff! > > Best, > > Douglas. > > P.S. Any thoughts on Ruby guys? I've been messing around with it > lately. Sort of Python-like, but it actually offers more constructs than > Python. For example, Ruby has a do-while loop and Ruby offers two > different ways to represent ranges, one with the upper limit included and > the other with the upper limit excluded--as in Python. But Ruby has a very > "Pythonic" feel to it. > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From d-lewit at neiu.edu Tue Jun 16 14:18:36 2015 From: d-lewit at neiu.edu (Lewit, Douglas) Date: Tue, 16 Jun 2015 07:18:36 -0500 Subject: [Chicago] Now I get it. In-Reply-To: References: Message-ID: Hi William, That's really interesting. I've used "*map*" before, but never used "*map.get( )*" before. What does "*map.get( )*" do? Thanks for the feedback! Doug. P.S. I agree about those comprehensions. They are definitely very nice! But I think Python programmers should be cautious when using them. If you overdo the comprehensions, then the code becomes really obscure and difficult to trace through. That's just my humble opinion. Your mileage may vary. On Mon, Jun 15, 2015 at 11:29 PM, William E. S. Clemens < wesclemens at gmail.com> wrote: > Although Python does lack some classic control flows notably do-while and > switch-case, it offers plenty of other uniq control flows. I often use a > else statement with a for loop. Python also offers list and > dictionary comprehension. > > https://docs.python.org/3.5/tutorial/controlflow.html > https://docs.python.org/2/tutorial/datastructures.html#list-comprehensions > > I would also suggest that you can easily implement a do-while like such: > > while True: > pass # Do Stuff > > if condition: break # Our do statement > > > Switch-cases are a little tricky. Most the time a if ... elif ... else > works just fine, although this is a bit limiting if you want to use a fall > through condition. A neat trick that you can do with python is use a > dictionary as a switch-case. > > def foo(): > print("foo") > > def bar(): > print("bar") > > def baz(): > print("default baz") > > map = { > "Blue": foo, > "Red": bar > } > > map.get("Red", baz)() # bar > map.get("Yellow", baz)() # default baz > > This has the added advantage that you can dynamically build out > the dictionary map. > > > -- > William Clemens > Phone: 847.485.9455 > E-mail: wesclemens at gmail.com > > On Mon, Jun 15, 2015 at 10:55 PM, Lewit, Douglas wrote: > >> if __name__ = "__main__": >> etc. >> etc. >> etc. >> >> Now I get it. Do you want to just import the methods from your .py >> file? Or do you want to actually run the program directly? Cool stuff! >> >> Best, >> >> Douglas. >> >> P.S. Any thoughts on Ruby guys? I've been messing around with it >> lately. Sort of Python-like, but it actually offers more constructs than >> Python. For example, Ruby has a do-while loop and Ruby offers two >> different ways to represent ranges, one with the upper limit included and >> the other with the upper limit excluded--as in Python. But Ruby has a very >> "Pythonic" feel to it. >> >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> https://mail.python.org/mailman/listinfo/chicago >> >> > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From labeledloser at gmail.com Tue Jun 16 16:00:00 2015 From: labeledloser at gmail.com (Hector Rios) Date: Tue, 16 Jun 2015 09:00:00 -0500 Subject: [Chicago] Now I get it. In-Reply-To: References: Message-ID: Douglas, I've been alternating between Ruby and Python for some time now and I can just say this: each language is great in it's own way. My personal preference is Ruby, though. Ruby makes more "sense" to me. The syntax, the philosophy, the testing -- everything just makes more sense to me. Python is simple in a sense that you can do something one way, where as Ruby has many ways of doing things. However, I believe that things can be accomplished in a variety of different ways, which is why Ruby feels more natural to me. That said, Python is a beautiful language with many great things going for it. I believe that it is a great language for everyone to use, and I encourage people to learn it. { "name": "Hector Rios", "title": "Software Developer", "contact": { "linkedin": "hrios10", "gmail": "labeledloser", "site": "http://hectron.github.io/" } } *No trees were killed to send this message, but a large number of electrons were terribly inconvenienced.* On Tue, Jun 16, 2015 at 7:18 AM, Lewit, Douglas wrote: > Hi William, > > That's really interesting. I've used "*map*" before, but never used "*map.get( > )*" before. What does "*map.get( )*" do? Thanks for the feedback! > > Doug. > > P.S. I agree about those comprehensions. They are definitely very nice! > But I think Python programmers should be cautious when using them. If you > overdo the comprehensions, then the code becomes really obscure and > difficult to trace through. That's just my humble opinion. Your mileage > may vary. > > On Mon, Jun 15, 2015 at 11:29 PM, William E. S. Clemens < > wesclemens at gmail.com> wrote: > >> Although Python does lack some classic control flows notably do-while and >> switch-case, it offers plenty of other uniq control flows. I often use a >> else statement with a for loop. Python also offers list and >> dictionary comprehension. >> >> https://docs.python.org/3.5/tutorial/controlflow.html >> https://docs.python.org/2/tutorial/datastructures.html#list-comprehensions >> >> I would also suggest that you can easily implement a do-while like such: >> >> while True: >> pass # Do Stuff >> >> if condition: break # Our do statement >> >> >> Switch-cases are a little tricky. Most the time a if ... elif ... else >> works just fine, although this is a bit limiting if you want to use a fall >> through condition. A neat trick that you can do with python is use a >> dictionary as a switch-case. >> >> def foo(): >> print("foo") >> >> def bar(): >> print("bar") >> >> def baz(): >> print("default baz") >> >> map = { >> "Blue": foo, >> "Red": bar >> } >> >> map.get("Red", baz)() # bar >> map.get("Yellow", baz)() # default baz >> >> This has the added advantage that you can dynamically build out >> the dictionary map. >> >> >> -- >> William Clemens >> Phone: 847.485.9455 >> E-mail: wesclemens at gmail.com >> >> On Mon, Jun 15, 2015 at 10:55 PM, Lewit, Douglas >> wrote: >> >>> if __name__ = "__main__": >>> etc. >>> etc. >>> etc. >>> >>> Now I get it. Do you want to just import the methods from your .py >>> file? Or do you want to actually run the program directly? Cool stuff! >>> >>> Best, >>> >>> Douglas. >>> >>> P.S. Any thoughts on Ruby guys? I've been messing around with it >>> lately. Sort of Python-like, but it actually offers more constructs than >>> Python. For example, Ruby has a do-while loop and Ruby offers two >>> different ways to represent ranges, one with the upper limit included and >>> the other with the upper limit excluded--as in Python. But Ruby has a very >>> "Pythonic" feel to it. >>> >>> _______________________________________________ >>> Chicago mailing list >>> Chicago at python.org >>> https://mail.python.org/mailman/listinfo/chicago >>> >>> >> >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> https://mail.python.org/mailman/listinfo/chicago >> >> > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From davidkentsutton at gmail.com Tue Jun 16 16:07:48 2015 From: davidkentsutton at gmail.com (David Sutton) Date: Tue, 16 Jun 2015 09:07:48 -0500 Subject: [Chicago] Now I get it. In-Reply-To: References: Message-ID: "That's really interesting. I've used "*map*" before, but never used "*map.get( )*" before. What does "*map.get( )*" do? Thanks for the feedback!" I think you're confusing the 'map' function with the '(hash)map' data type (also known as dictionary). If you create a dictionary like so: foo = {"bar": "baz"} You can retrieve the value using either foo['bar'] for foo.get('bar'). Now if you tried to retrieve a value that didn't exist such like foo['qux'] you would get a KeyError. To avoid running into that key error you can use the get method and call something like foo.get('qux'), which would return null because the 'qux' key is not in the dictionary. If you wanted any failed look up to return something non-null you can provide the default as a second argument to the get method. eg foo.get('qux', 'my_default'). In the ruby world this is the same as using the '.fetch' method on a Hash. On Tue, Jun 16, 2015 at 9:00 AM, Hector Rios wrote: > Douglas, > > I've been alternating between Ruby and Python for some time now and I can > just say this: each language is great in it's own way. > > My personal preference is Ruby, though. Ruby makes more "sense" to me. The > syntax, the philosophy, the testing -- everything just makes more sense to > me. > > Python is simple in a sense that you can do something one way, where as > Ruby has many ways of doing things. However, I believe that things can be > accomplished in a variety of different ways, which is why Ruby feels more > natural to me. > > That said, Python is a beautiful language with many great things going for > it. I believe that it is a great language for everyone to use, and I > encourage people to learn it. > > > { > "name": "Hector Rios", > "title": "Software Developer", > "contact": { > "linkedin": "hrios10", > "gmail": "labeledloser", > "site": "http://hectron.github.io/" > } > } > > *No trees were killed to send this message, but a large number of > electrons were terribly inconvenienced.* > > On Tue, Jun 16, 2015 at 7:18 AM, Lewit, Douglas wrote: > >> Hi William, >> >> That's really interesting. I've used "*map*" before, but never used "*map.get( >> )*" before. What does "*map.get( )*" do? Thanks for the feedback! >> >> Doug. >> >> P.S. I agree about those comprehensions. They are definitely very >> nice! But I think Python programmers should be cautious when using them. >> If you overdo the comprehensions, then the code becomes really obscure and >> difficult to trace through. That's just my humble opinion. Your mileage >> may vary. >> >> On Mon, Jun 15, 2015 at 11:29 PM, William E. S. Clemens < >> wesclemens at gmail.com> wrote: >> >>> Although Python does lack some classic control flows notably do-while >>> and switch-case, it offers plenty of other uniq control flows. I often use >>> a else statement with a for loop. Python also offers list and >>> dictionary comprehension. >>> >>> https://docs.python.org/3.5/tutorial/controlflow.html >>> >>> https://docs.python.org/2/tutorial/datastructures.html#list-comprehensions >>> >>> I would also suggest that you can easily implement a do-while like such: >>> >>> while True: >>> pass # Do Stuff >>> >>> if condition: break # Our do statement >>> >>> >>> Switch-cases are a little tricky. Most the time a if ... elif ... else >>> works just fine, although this is a bit limiting if you want to use a fall >>> through condition. A neat trick that you can do with python is use a >>> dictionary as a switch-case. >>> >>> def foo(): >>> print("foo") >>> >>> def bar(): >>> print("bar") >>> >>> def baz(): >>> print("default baz") >>> >>> map = { >>> "Blue": foo, >>> "Red": bar >>> } >>> >>> map.get("Red", baz)() # bar >>> map.get("Yellow", baz)() # default baz >>> >>> This has the added advantage that you can dynamically build out >>> the dictionary map. >>> >>> >>> -- >>> William Clemens >>> Phone: 847.485.9455 >>> E-mail: wesclemens at gmail.com >>> >>> On Mon, Jun 15, 2015 at 10:55 PM, Lewit, Douglas >>> wrote: >>> >>>> if __name__ = "__main__": >>>> etc. >>>> etc. >>>> etc. >>>> >>>> Now I get it. Do you want to just import the methods from your .py >>>> file? Or do you want to actually run the program directly? Cool stuff! >>>> >>>> Best, >>>> >>>> Douglas. >>>> >>>> P.S. Any thoughts on Ruby guys? I've been messing around with it >>>> lately. Sort of Python-like, but it actually offers more constructs than >>>> Python. For example, Ruby has a do-while loop and Ruby offers two >>>> different ways to represent ranges, one with the upper limit included and >>>> the other with the upper limit excluded--as in Python. But Ruby has a very >>>> "Pythonic" feel to it. >>>> >>>> _______________________________________________ >>>> Chicago mailing list >>>> Chicago at python.org >>>> https://mail.python.org/mailman/listinfo/chicago >>>> >>>> >>> >>> _______________________________________________ >>> Chicago mailing list >>> Chicago at python.org >>> https://mail.python.org/mailman/listinfo/chicago >>> >>> >> >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> https://mail.python.org/mailman/listinfo/chicago >> >> > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wesclemens at gmail.com Tue Jun 16 16:40:55 2015 From: wesclemens at gmail.com (William E. S. Clemens) Date: Tue, 16 Jun 2015 09:40:55 -0500 Subject: [Chicago] Now I get it. In-Reply-To: References: Message-ID: I have to apologize, when I wrote my response yesterday I picked "map" as a variable name. There is a class named "map" that is in the default namespace. It does work but its a really bad practice to overwrite things in the default namespace. -- William Clemens Phone: 847.485.9455 E-mail: wesclemens at gmail.com On Tue, Jun 16, 2015 at 7:18 AM, Lewit, Douglas wrote: > Hi William, > > That's really interesting. I've used "*map*" before, but never used "*map.get( > )*" before. What does "*map.get( )*" do? Thanks for the feedback! > > Doug. > > P.S. I agree about those comprehensions. They are definitely very nice! > But I think Python programmers should be cautious when using them. If you > overdo the comprehensions, then the code becomes really obscure and > difficult to trace through. That's just my humble opinion. Your mileage > may vary. > > On Mon, Jun 15, 2015 at 11:29 PM, William E. S. Clemens < > wesclemens at gmail.com> wrote: > >> Although Python does lack some classic control flows notably do-while and >> switch-case, it offers plenty of other uniq control flows. I often use a >> else statement with a for loop. Python also offers list and >> dictionary comprehension. >> >> https://docs.python.org/3.5/tutorial/controlflow.html >> https://docs.python.org/2/tutorial/datastructures.html#list-comprehensions >> >> I would also suggest that you can easily implement a do-while like such: >> >> while True: >> pass # Do Stuff >> >> if condition: break # Our do statement >> >> >> Switch-cases are a little tricky. Most the time a if ... elif ... else >> works just fine, although this is a bit limiting if you want to use a fall >> through condition. A neat trick that you can do with python is use a >> dictionary as a switch-case. >> >> def foo(): >> print("foo") >> >> def bar(): >> print("bar") >> >> def baz(): >> print("default baz") >> >> map = { >> "Blue": foo, >> "Red": bar >> } >> >> map.get("Red", baz)() # bar >> map.get("Yellow", baz)() # default baz >> >> This has the added advantage that you can dynamically build out >> the dictionary map. >> >> >> -- >> William Clemens >> Phone: 847.485.9455 >> E-mail: wesclemens at gmail.com >> >> On Mon, Jun 15, 2015 at 10:55 PM, Lewit, Douglas >> wrote: >> >>> if __name__ = "__main__": >>> etc. >>> etc. >>> etc. >>> >>> Now I get it. Do you want to just import the methods from your .py >>> file? Or do you want to actually run the program directly? Cool stuff! >>> >>> Best, >>> >>> Douglas. >>> >>> P.S. Any thoughts on Ruby guys? I've been messing around with it >>> lately. Sort of Python-like, but it actually offers more constructs than >>> Python. For example, Ruby has a do-while loop and Ruby offers two >>> different ways to represent ranges, one with the upper limit included and >>> the other with the upper limit excluded--as in Python. But Ruby has a very >>> "Pythonic" feel to it. >>> >>> _______________________________________________ >>> Chicago mailing list >>> Chicago at python.org >>> https://mail.python.org/mailman/listinfo/chicago >>> >>> >> >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> https://mail.python.org/mailman/listinfo/chicago >> >> > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim.saylor at gmail.com Wed Jun 17 02:54:38 2015 From: tim.saylor at gmail.com (Tim Saylor) Date: Tue, 16 Jun 2015 19:54:38 -0500 Subject: [Chicago] Podcasts In-Reply-To: References: Message-ID: > Can someone recommend a simple, stable podcast player for Android ? I'm using Pocket Casts and it's working great for me. On Sat, Jun 13, 2015 at 11:09 AM, Rob Kapteyn wrote: > By far my favorite: > > FLOSS Weekly. (Free Libre Open Source Software) > http://twit.tv/show/floss-weekly > > 280 episodes since 2006. > > So much stuff there it is hard to list. > There is a interview with Guido, and interviews of some of our ChiPy > people. > > On a related subject -- > Can someone recommend a simple, stable podcast player for Android ? > I haven't found a player I'm happy with since I ditched iOS and OSX for > Android and Linux. > > > On Sat, Jun 13, 2015 at 10:04 AM, Tathagata Dasgupta < > tathagatadg at gmail.com> wrote: > >> Happy weekend ChiPy ... >> I am a big fan of podcasts and have subscribed to more than what I can >> make time for. >> TalkPython and Podcast.__init__ are two Python specific podcasts that I >> have really enjoyed. (Like TalkPython better) >> >> Which podcasts do you guys subscribe to? >> >> -- >> Cheers, >> T >> >> Sent from my iPhone >> >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> https://mail.python.org/mailman/listinfo/chicago >> >> > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From randy7771026 at gmail.com Wed Jun 17 06:47:47 2015 From: randy7771026 at gmail.com (Randy Baxley) Date: Tue, 16 Jun 2015 23:47:47 -0500 Subject: [Chicago] Podcasts In-Reply-To: References: Message-ID: Yhere are also severak apps for Andruid listed on the apps page of the twit gloss podcast Rob mentionr, I should get an andriud device for testin redponsive pades in the myHPD app amy ideas for one that might also be used for js, css, bootstrap, ajax and python development, On Tue, Jun 16, 2015 at 7:54 PM, Tim Saylor wrote: > > Can someone recommend a simple, stable podcast player for Android ? > > I'm using Pocket Casts and it's working great for me. > > On Sat, Jun 13, 2015 at 11:09 AM, Rob Kapteyn > wrote: > >> By far my favorite: >> >> FLOSS Weekly. (Free Libre Open Source Software) >> http://twit.tv/show/floss-weekly >> >> 280 episodes since 2006. >> >> So much stuff there it is hard to list. >> There is a interview with Guido, and interviews of some of our ChiPy >> people. >> >> On a related subject -- >> Can someone recommend a simple, stable podcast player for Android ? >> I haven't found a player I'm happy with since I ditched iOS and OSX for >> Android and Linux. >> >> >> On Sat, Jun 13, 2015 at 10:04 AM, Tathagata Dasgupta < >> tathagatadg at gmail.com> wrote: >> >>> Happy weekend ChiPy ... >>> I am a big fan of podcasts and have subscribed to more than what I can >>> make time for. >>> TalkPython and Podcast.__init__ are two Python specific podcasts that I >>> have really enjoyed. (Like TalkPython better) >>> >>> Which podcasts do you guys subscribe to? >>> >>> -- >>> Cheers, >>> T >>> >>> Sent from my iPhone >>> >>> _______________________________________________ >>> Chicago mailing list >>> Chicago at python.org >>> https://mail.python.org/mailman/listinfo/chicago >>> >>> >> >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> https://mail.python.org/mailman/listinfo/chicago >> >> > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From me at lorenamesa.com Wed Jun 17 16:58:30 2015 From: me at lorenamesa.com (Lorena Mesa) Date: Wed, 17 Jun 2015 09:58:30 -0500 Subject: [Chicago] Help needed - mentors that are passionate about Python open source! Message-ID: PyLadies and Write/Speak/Code are organizing an Open Source Python workshop on July 25th and we need your help! More specifically, we need recommendations for your favorite projects you contribute to or your favorite tools you use! Also, if you're a contributor, project owner, etc of an open source project we're looking for mentors to hang out from 12 - 4pm or so at the workshop. Email me back and I can answer any questions you may have or provide more information. Thanks ChiPy, Lorena :D -- ___________________________________________________________________________________ Lorena Mesa *www.lorenamesa.com * "If you wish to make apple pie from scratch, you must first invent the universe," - Carl Sagan Please stop before printing this email unnecessarily, *think green*!!! -------------- next part -------------- An HTML attachment was scrubbed... URL: From shekay at pobox.com Wed Jun 17 20:58:49 2015 From: shekay at pobox.com (sheila miguez) Date: Wed, 17 Jun 2015 13:58:49 -0500 Subject: [Chicago] Looking for volunteer Python code reviewers Message-ID: Hi everyone, Kathy Flint has a nonprofit with some interns writing python code this summer. She is looking for a few people to volunteer a few hours a week to help review the interns' code and provide feedback on what they are doing. I met her at an electronics workshop at ps1, so she is familiar with pyoo. Let her know if you are interested! I'm looking for a volunteer Python code reviewer... > > My nonprofit Northbridge Technology Alliance has two interns this summer > working on a modest Python app. I myself am not a Python expert. So I'm > looking for some eyes to have a look over what the team is producing. Also, > the team is eager for feedback. > > Would anyone here enjoy doing a Python code review? Maybe 2-4 hour > commitment or so. > > Thanks for your consideration! > > Kathy Flint > kathy.flint at northbridgetech.org > http://northbridgetech.org > -- shekay at pobox.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From tottinge at gmail.com Wed Jun 17 23:11:07 2015 From: tottinge at gmail.com (Tim Ottinger) Date: Wed, 17 Jun 2015 16:11:07 -0500 Subject: [Chicago] Looking for volunteer Python code reviewers In-Reply-To: References: Message-ID: I could put in an hour or two each week. If I were to find some really great recurring issues, would I be able to use them in training classes or articles (anonymized, of course)? On Wed, Jun 17, 2015 at 1:58 PM, sheila miguez wrote: > > Hi everyone, > > Kathy Flint has a nonprofit with some interns writing python code this > summer. She is looking for a few people to volunteer a few hours a week to > help review the interns' code and provide feedback on what they are doing. > I met her at an electronics workshop at ps1, so she is familiar with pyoo. > > Let her know if you are interested! > > I'm looking for a volunteer Python code reviewer... >> >> My nonprofit Northbridge Technology Alliance has two interns this summer >> working on a modest Python app. I myself am not a Python expert. So I'm >> looking for some eyes to have a look over what the team is producing. Also, >> the team is eager for feedback. >> >> Would anyone here enjoy doing a Python code review? Maybe 2-4 hour >> commitment or so. >> >> Thanks for your consideration! >> >> Kathy Flint >> kathy.flint at northbridgetech.org >> http://northbridgetech.org >> > -- > shekay at pobox.com > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > -- Tim Ottinger, Anzeneer, Industrial Logic ------------------------------------- http://www.industriallogic.com/ http://agileotter.blogspot.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From shekay at pobox.com Wed Jun 17 23:16:26 2015 From: shekay at pobox.com (sheila miguez) Date: Wed, 17 Jun 2015 16:16:26 -0500 Subject: [Chicago] Looking for volunteer Python code reviewers In-Reply-To: References: Message-ID: Hopefully? Get in touch with Kathy to see if she likes the idea. On Wed, Jun 17, 2015 at 4:11 PM, Tim Ottinger wrote: > I could put in an hour or two each week. > > If I were to find some really great recurring issues, would I be able to > use them in training classes or articles (anonymized, of course)? > > On Wed, Jun 17, 2015 at 1:58 PM, sheila miguez wrote: > >> >> Hi everyone, >> >> Kathy Flint has a nonprofit with some interns writing python code this >> summer. She is looking for a few people to volunteer a few hours a week to >> help review the interns' code and provide feedback on what they are doing. >> I met her at an electronics workshop at ps1, so she is familiar with pyoo. >> >> Let her know if you are interested! >> >> I'm looking for a volunteer Python code reviewer... >>> >>> My nonprofit Northbridge Technology Alliance has two interns this summer >>> working on a modest Python app. I myself am not a Python expert. So I'm >>> looking for some eyes to have a look over what the team is producing. Also, >>> the team is eager for feedback. >>> >>> Would anyone here enjoy doing a Python code review? Maybe 2-4 hour >>> commitment or so. >>> >>> Thanks for your consideration! >>> >>> Kathy Flint >>> kathy.flint at northbridgetech.org >>> http://northbridgetech.org >>> >> -- >> shekay at pobox.com >> >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> https://mail.python.org/mailman/listinfo/chicago >> >> > > > -- > Tim Ottinger, Anzeneer, Industrial Logic > ------------------------------------- > http://www.industriallogic.com/ > http://agileotter.blogspot.com/ > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > -- shekay at pobox.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From pdp7pdp7 at gmail.com Thu Jun 25 21:00:01 2015 From: pdp7pdp7 at gmail.com (Drew Fustini) Date: Thu, 25 Jun 2015 14:00:01 -0500 Subject: [Chicago] LWN.net: Micro Python on the pyboard Message-ID: I thought this might be of interest: Micro Python on the pyboard [LWN.net] http://lwn.net/Articles/648051/ "The key to running Python on a microcontroller (such as the STM32F405 used on the pyboard) is to keep memory usage low while still providing good performance. The footprint for Micro Python is 260KB" cheers, drew From randy7771026 at gmail.com Sun Jun 28 21:11:02 2015 From: randy7771026 at gmail.com (Randy Baxley) Date: Sun, 28 Jun 2015 14:11:02 -0500 Subject: [Chicago] Python class at Freegeek Message-ID: A bit late notice but is supposed tp repeat once a month. Class will introduce python and have participants leave with one simple program completed. *FreeGeek Chicago* ?@*freegeekchicago* 3h3 hours ago Our basic Python coding class is TODAY! We hope to see you all!!! Remember, we are located at 3411 W Diversey Ave. Class starts at 3pm! -------------- next part -------------- An HTML attachment was scrubbed... URL: From d-lewit at neiu.edu Mon Jun 29 02:51:12 2015 From: d-lewit at neiu.edu (Lewit, Douglas) Date: Sun, 28 Jun 2015 19:51:12 -0500 Subject: [Chicago] Python class at Freegeek In-Reply-To: References: Message-ID: Oh man!!! Why didn't I hear about this earlier? :-( Oh well, that's okay. I needed a day of rest. I hope the class went well. On Sun, Jun 28, 2015 at 2:11 PM, Randy Baxley wrote: > A bit late notice but is supposed tp repeat once a month. > > Class will introduce python and have participants leave with one simple > program completed. > > *FreeGeek Chicago* ?@*freegeekchicago* > 3h3 hours ago > > > Our basic Python coding class is TODAY! We hope to see you all!!! > Remember, we are located at 3411 W Diversey Ave. Class starts at 3pm! > > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From michaelreinhard at me.com Mon Jun 29 04:21:17 2015 From: michaelreinhard at me.com (MICHAEL REINHARD) Date: Sun, 28 Jun 2015 21:21:17 -0500 Subject: [Chicago] Python class at Freegeek In-Reply-To: References: Message-ID: Yeah, it sounds really great. I am looking forward to it next month. Thanks! > On Jun 28, 2015, at 7:51 PM, Lewit, Douglas wrote: > > Oh man!!! Why didn't I hear about this earlier? :-( Oh well, that's okay. I needed a day of rest. I hope the class went well. > > On Sun, Jun 28, 2015 at 2:11 PM, Randy Baxley > wrote: > A bit late notice but is supposed tp repeat once a month. > > Class will introduce python and have participants leave with one simple program completed. > > FreeGeek Chicago ?@freegeekchicago 3h3 hours ago > Our basic Python coding class is TODAY! We hope to see you all!!! Remember, we are located at 3411 W Diversey Ave. Class starts at 3pm! > > > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago -------------- next part -------------- An HTML attachment was scrubbed... URL: