From jeremydavis at jeremydavis.biz Tue Sep 3 05:21:11 2013 From: jeremydavis at jeremydavis.biz (Jeremy Davis) Date: Mon, 2 Sep 2013 23:21:11 -0400 Subject: [TriZPUG] =?windows-1252?q?Update_-_All_Things_Open=99_Conference?= =?windows-1252?q?_-_Open_Source_in_the_Enterprise_-_Raleigh=2C_NC_?= =?windows-1252?q?-_Oct_23-24?= Message-ID: Hey just passing along updates. I believe this will be one of the most *incredible* tech conferences we have ever seen come to this area. More than 50 speakers from 20 states will participate in the All Things Open conference. http://www.allthingsopen.org/why-you-should-attend.html More speakers have been added http://www.allthingsopen.org/speakers.html Please forward to any groups that may be interested. Cheers! Jeremy Davis -------------- next part -------------- An HTML attachment was scrubbed... URL: From lgtateos at ncsu.edu Wed Sep 4 23:10:45 2013 From: lgtateos at ncsu.edu (Laura Tateosian) Date: Wed, 04 Sep 2013 17:10:45 -0400 Subject: [TriZPUG] identity crisis In-Reply-To: <52144127.9@unc.edu> References: <52144127.9@unc.edu> Message-ID: <5227A1D5.6060206@ncsu.edu> I'd like to get the path of the current file, so that I can append the sys.path and then import user-defined modules based on relative paths. sys.argv[0] can do this. But sometimes it returns just the file base name or an empty string, depending on how the script is run. The same goes for __file__ Is there a simple reliable approach for determining the full path file name of the script I'm inside? Thanks, Laura From stevegambino at gmail.com Thu Sep 5 00:10:34 2013 From: stevegambino at gmail.com (Steve Gambino) Date: Wed, 4 Sep 2013 18:10:34 -0400 Subject: [TriZPUG] identity crisis In-Reply-To: <5227A1D5.6060206@ncsu.edu> References: <52144127.9@unc.edu> <5227A1D5.6060206@ncsu.edu> Message-ID: Laura, import os os.getcwd() # will return the current working directory Is that what you are looking for? Steve On Wed, Sep 4, 2013 at 5:10 PM, Laura Tateosian wrote: > I'd like to get the path of the current file, so that I can append the > sys.path and then import user-defined modules based on relative paths. > > sys.argv[0] can do this. But sometimes it returns just the file base name > or an empty string, depending on how the script is run. The same goes for > __file__ > > Is there a simple reliable approach for determining the full path file > name of the script I'm inside? > > Thanks, > Laura > ______________________________**_________________ > TriZPUG mailing list > TriZPUG at python.org > https://mail.python.org/**mailman/listinfo/trizpug > http://trizpug.org is the Triangle Zope and Python Users Group > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jstrick at mindspring.com Thu Sep 5 01:01:09 2013 From: jstrick at mindspring.com (John Strickler) Date: Wed, 4 Sep 2013 19:01:09 -0400 Subject: [TriZPUG] identity crisis In-Reply-To: References: <52144127.9@unc.edu> <5227A1D5.6060206@ncsu.edu> Message-ID: Replying to my own post, I want to clarify that what the OP needs is: import os full_path = os.path.abspath(__file__) --John Strickler On Wed, Sep 4, 2013 at 6:59 PM, John Strickler wrote: > os.getcwd() only reports the current working directory of the script. If > the script is launched from somewhere else, it reports the "somewhere > else". That is, if you cd to /tmp, and run /some/where/else/myapp.py, > getcwd() returns "/tmp", which won't help with Laura's problem. > > I can't make __file__ have a null string on my Linux box, but for all > other cases you can use os.path.abspath(), which will provide the full path > given a relative path. > > --John Strickler > > > > On Wed, Sep 4, 2013 at 6:10 PM, Steve Gambino wrote: > >> Laura, >> >> import os >> os.getcwd() # will return the current working directory >> >> Is that what you are looking for? >> Steve >> >> >> >> >> >> On Wed, Sep 4, 2013 at 5:10 PM, Laura Tateosian wrote: >> >>> I'd like to get the path of the current file, so that I can append the >>> sys.path and then import user-defined modules based on relative paths. >>> >>> sys.argv[0] can do this. But sometimes it returns just the file base >>> name or an empty string, depending on how the script is run. The same goes >>> for __file__ >>> >>> Is there a simple reliable approach for determining the full path file >>> name of the script I'm inside? >>> >>> Thanks, >>> Laura >>> ______________________________**_________________ >>> TriZPUG mailing list >>> TriZPUG at python.org >>> https://mail.python.org/**mailman/listinfo/trizpug >>> http://trizpug.org is the Triangle Zope and Python Users Group >>> >> >> >> _______________________________________________ >> TriZPUG mailing list >> TriZPUG at python.org >> https://mail.python.org/mailman/listinfo/trizpug >> http://trizpug.org is the Triangle Zope and Python Users Group >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jstrick at mindspring.com Thu Sep 5 00:59:22 2013 From: jstrick at mindspring.com (John Strickler) Date: Wed, 4 Sep 2013 18:59:22 -0400 Subject: [TriZPUG] identity crisis In-Reply-To: References: <52144127.9@unc.edu> <5227A1D5.6060206@ncsu.edu> Message-ID: os.getcwd() only reports the current working directory of the script. If the script is launched from somewhere else, it reports the "somewhere else". That is, if you cd to /tmp, and run /some/where/else/myapp.py, getcwd() returns "/tmp", which won't help with Laura's problem. I can't make __file__ have a null string on my Linux box, but for all other cases you can use os.path.abspath(), which will provide the full path given a relative path. --John Strickler On Wed, Sep 4, 2013 at 6:10 PM, Steve Gambino wrote: > Laura, > > import os > os.getcwd() # will return the current working directory > > Is that what you are looking for? > Steve > > > > > > On Wed, Sep 4, 2013 at 5:10 PM, Laura Tateosian wrote: > >> I'd like to get the path of the current file, so that I can append the >> sys.path and then import user-defined modules based on relative paths. >> >> sys.argv[0] can do this. But sometimes it returns just the file base name >> or an empty string, depending on how the script is run. The same goes for >> __file__ >> >> Is there a simple reliable approach for determining the full path file >> name of the script I'm inside? >> >> Thanks, >> Laura >> ______________________________**_________________ >> TriZPUG mailing list >> TriZPUG at python.org >> https://mail.python.org/**mailman/listinfo/trizpug >> http://trizpug.org is the Triangle Zope and Python Users Group >> > > > _______________________________________________ > TriZPUG mailing list > TriZPUG at python.org > https://mail.python.org/mailman/listinfo/trizpug > http://trizpug.org is the Triangle Zope and Python Users Group > -------------- next part -------------- An HTML attachment was scrubbed... URL: From philip at semanchuk.com Thu Sep 5 01:50:15 2013 From: philip at semanchuk.com (Philip Semanchuk) Date: Wed, 4 Sep 2013 19:50:15 -0400 Subject: [TriZPUG] identity crisis In-Reply-To: References: <52144127.9@unc.edu> <5227A1D5.6060206@ncsu.edu> Message-ID: On Sep 4, 2013, at 6:10 PM, Steve Gambino wrote: > Laura, > > import os > os.getcwd() # will return the current working directory This is kind of off-topic, but I assumed that os.getcwd() was always safe to call until I recently burned myself. Check this out -- >>> import os >>> import tempfile >>> tempdir = tempfile.mkdtemp() >>> os.chdir(tempdir) >>> os.rmdir(tempdir) >>> os.getcwd() Traceback (most recent call last): File "", line 1, in OSError: [Errno 2] No such file or directory >>> The real-world scenario for this is that my Web app was building a zip file on the fly in a temp directory in response to a Web request and then deleting the temp directory as the last step in its processing. The next bit of code that called os.getcwd() got clobbered with the OSError. (In my case it was when I first imported matplotlib, and it took me a while to figure out what was "wrong" with matplotlib.) Happy Pythoning, Philip > > On Wed, Sep 4, 2013 at 5:10 PM, Laura Tateosian wrote: > >> I'd like to get the path of the current file, so that I can append the >> sys.path and then import user-defined modules based on relative paths. >> >> sys.argv[0] can do this. But sometimes it returns just the file base name >> or an empty string, depending on how the script is run. The same goes for >> __file__ >> >> Is there a simple reliable approach for determining the full path file >> name of the script I'm inside? >> >> Thanks, >> Laura >> ______________________________**_________________ >> TriZPUG mailing list >> TriZPUG at python.org >> https://mail.python.org/**mailman/listinfo/trizpug >> http://trizpug.org is the Triangle Zope and Python Users Group >> > _______________________________________________ > TriZPUG mailing list > TriZPUG at python.org > https://mail.python.org/mailman/listinfo/trizpug > http://trizpug.org is the Triangle Zope and Python Users Group From lgtateos at ncsu.edu Thu Sep 5 16:47:52 2013 From: lgtateos at ncsu.edu (Laura Tateosian) Date: Thu, 05 Sep 2013 10:47:52 -0400 Subject: [TriZPUG] identity crisis solved In-Reply-To: References: <52144127.9@unc.edu> <5227A1D5.6060206@ncsu.edu> Message-ID: <52289998.40002@ncsu.edu> Thanks to all. abspath will do the trick! On 9/4/2013 7:50 PM, Philip Semanchuk wrote: > On Sep 4, 2013, at 6:10 PM, Steve Gambino wrote: > >> Laura, >> >> import os >> os.getcwd() # will return the current working directory > This is kind of off-topic, but I assumed that os.getcwd() was always safe to call until I recently burned myself. Check this out -- > >>>> import os >>>> import tempfile >>>> tempdir = tempfile.mkdtemp() >>>> os.chdir(tempdir) >>>> os.rmdir(tempdir) >>>> os.getcwd() > Traceback (most recent call last): > File "", line 1, in > OSError: [Errno 2] No such file or directory > The real-world scenario for this is that my Web app was building a zip file on the fly in a temp directory in response to a Web request and then deleting the temp directory as the last step in its processing. The next bit of code that called os.getcwd() got clobbered with the OSError. (In my case it was when I first imported matplotlib, and it took me a while to figure out what was "wrong" with matplotlib.) > > Happy Pythoning, > Philip > > >> On Wed, Sep 4, 2013 at 5:10 PM, Laura Tateosian wrote: >> >>> I'd like to get the path of the current file, so that I can append the >>> sys.path and then import user-defined modules based on relative paths. >>> >>> sys.argv[0] can do this. But sometimes it returns just the file base name >>> or an empty string, depending on how the script is run. The same goes for >>> __file__ >>> >>> Is there a simple reliable approach for determining the full path file >>> name of the script I'm inside? >>> >>> Thanks, >>> Laura >>> ______________________________**_________________ >>> TriZPUG mailing list >>> TriZPUG at python.org >>> https://mail.python.org/**mailman/listinfo/trizpug >>> http://trizpug.org is the Triangle Zope and Python Users Group >>> >> _______________________________________________ >> TriZPUG mailing list >> TriZPUG at python.org >> https://mail.python.org/mailman/listinfo/trizpug >> http://trizpug.org is the Triangle Zope and Python Users Group > _______________________________________________ > TriZPUG mailing list > TriZPUG at python.org > https://mail.python.org/mailman/listinfo/trizpug > http://trizpug.org is the Triangle Zope and Python Users Group From kgrandis at gmail.com Tue Sep 10 17:47:55 2013 From: kgrandis at gmail.com (Kurt Grandis) Date: Tue, 10 Sep 2013 11:47:55 -0400 Subject: [TriZPUG] Learn to Code Volunteers Message-ID: Hi Folks, We will be running a Learn to Code event at SparkCon this week (Friday and Sunday). This is an event geared towards individuals ages 12+ with little to no programming experience. Attendees will learn the basics of computer programming and explore Python using Raspberry Pis. A few volunteers have had to cancel and I wanted to see if anyone would be able to pitch in and help us out. If you're subscribed to this list and have fired up a Python interpreter you're qualified. Volunteers will basically walk around, assist attendees if they have any questions, and help make sure everyone gets attention. If you can only make one event that is fine; they are two separate events. If you can volunteer for either event (definitely looking for Friday help at the moment) please send me an email off the list and I'll loop you in. Thanks! Kurt Friday, 9/13 9am - 3pm Sunday, 9/15 9am - 3pm CAM Raleigh 409 W Martin St Raleigh, NC 27603 -------------- next part -------------- An HTML attachment was scrubbed... URL: From eric.leary at gmail.com Tue Sep 10 18:28:26 2013 From: eric.leary at gmail.com (Eric Leary) Date: Tue, 10 Sep 2013 12:28:26 -0400 Subject: [TriZPUG] Learn to Code Volunteers In-Reply-To: References: Message-ID: I am interested in helping with this. I can't commit to the whole shift on Friday, and I need to do some calendaring before I can commit. Likely it would be 12:00 - 3:00 if I can move things at all. Sunday I will commit to the whole time. gulp. If you find you are staffed strong and want to counter with a three hour shift out of that, would be cool. Eric Leary 919-260-7744 txt and voc On Tue, Sep 10, 2013 at 11:47 AM, Kurt Grandis wrote: > Hi Folks, > > We will be running a Learn to Code event at SparkCon this week (Friday and > Sunday). This is an event geared towards individuals ages 12+ with little > to no programming experience. Attendees will learn the basics of computer > programming and explore Python using Raspberry Pis. > > A few volunteers have had to cancel and I wanted to see if anyone would be > able to pitch in and help us out. If you're subscribed to this list and > have fired up a Python interpreter you're qualified. Volunteers will > basically walk around, assist attendees if they have any questions, and > help make sure everyone gets attention. If you can only make one event that > is fine; they are two separate events. > > If you can volunteer for either event (definitely looking for Friday help > at the moment) please send me an email off the list and I'll loop you in. > > Thanks! > Kurt > > Friday, 9/13 9am - 3pm > Sunday, 9/15 9am - 3pm > > CAM Raleigh > 409 W Martin St Raleigh, NC 27603 > > > > _______________________________________________ > TriZPUG mailing list > TriZPUG at python.org > https://mail.python.org/mailman/listinfo/trizpug > http://trizpug.org is the Triangle Zope and Python Users Group > -- Science is the establishment of expectations. Art is the manipulation of expectations. Justice is the fulfillment of expectations. Expectations are patterns of mind. -------------- next part -------------- An HTML attachment was scrubbed... URL: From perciballie at gmail.com Tue Sep 10 20:00:02 2013 From: perciballie at gmail.com (Emily Perciballi) Date: Tue, 10 Sep 2013 14:00:02 -0400 Subject: [TriZPUG] Learn to Code Volunteers In-Reply-To: References: Message-ID: Where is the event? Emily Perciballi On Tue, Sep 10, 2013 at 11:47 AM, Kurt Grandis wrote: > Hi Folks, > > We will be running a Learn to Code event at SparkCon this week (Friday and > Sunday). This is an event geared towards individuals ages 12+ with little > to no programming experience. Attendees will learn the basics of computer > programming and explore Python using Raspberry Pis. > > A few volunteers have had to cancel and I wanted to see if anyone would be > able to pitch in and help us out. If you're subscribed to this list and > have fired up a Python interpreter you're qualified. Volunteers will > basically walk around, assist attendees if they have any questions, and > help make sure everyone gets attention. If you can only make one event that > is fine; they are two separate events. > > If you can volunteer for either event (definitely looking for Friday help > at the moment) please send me an email off the list and I'll loop you in. > > Thanks! > Kurt > > Friday, 9/13 9am - 3pm > Sunday, 9/15 9am - 3pm > > CAM Raleigh > 409 W Martin St Raleigh, NC 27603 > > > > _______________________________________________ > TriZPUG mailing list > TriZPUG at python.org > https://mail.python.org/mailman/listinfo/trizpug > http://trizpug.org is the Triangle Zope and Python Users Group > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lgtateos at ncsu.edu Tue Sep 10 20:06:49 2013 From: lgtateos at ncsu.edu (Laura Tateosian) Date: Tue, 10 Sep 2013 14:06:49 -0400 Subject: [TriZPUG] Learn to Code Volunteers In-Reply-To: References: Message-ID: <522F5FB9.80201@ncsu.edu> It sounds like fun. I could volunteer some time on Sunday morning 9-11:30am --Laura Tateosian PS: Emily... it looks like it's at CAM Raleigh 409 W Martin St Raleigh, NC 27603 (scroll down to the bottom of Kurt's email) Laura Tateosian Research Assistant Professor Center for Earth Observation North Carolina State University http://www4.ncsu.edu/~lgtateos/ On 9/10/2013 2:00 PM, Emily Perciballi wrote: > Where is the event? > > Emily Perciballi > > > On Tue, Sep 10, 2013 at 11:47 AM, Kurt Grandis > wrote: > > Hi Folks, > > We will be running a Learn to Code event at SparkCon this week > (Friday and Sunday). This is an event geared towards individuals > ages 12+ with little to no programming experience. Attendees will > learn the basics of computer programming and explore Python using > Raspberry Pis. > > A few volunteers have had to cancel and I wanted to see if anyone > would be able to pitch in and help us out. If you're subscribed to > this list and have fired up a Python interpreter you're qualified. > Volunteers will basically walk around, assist attendees if they > have any questions, and help make sure everyone gets attention. If > you can only make one event that is fine; they are two separate > events. > > If you can volunteer for either event (definitely looking for > Friday help at the moment) please send me an email off the list > and I'll loop you in. > > Thanks! > Kurt > > Friday, 9/13 9am - 3pm > Sunday, 9/15 9am - 3pm > > CAM Raleigh > 409 W Martin St Raleigh, NC 27603 > > > > _______________________________________________ > TriZPUG mailing list > TriZPUG at python.org > https://mail.python.org/mailman/listinfo/trizpug > http://trizpug.org is the Triangle Zope and Python Users Group > > > > > _______________________________________________ > TriZPUG mailing list > TriZPUG at python.org > https://mail.python.org/mailman/listinfo/trizpug > http://trizpug.org is the Triangle Zope and Python Users Group -------------- next part -------------- An HTML attachment was scrubbed... URL: From francois.dion at gmail.com Mon Sep 16 18:09:06 2013 From: francois.dion at gmail.com (Francois Dion) Date: Mon, 16 Sep 2013 12:09:06 -0400 Subject: [TriZPUG] Looking for a speaker for PYPTUG Message-ID: For this month, september 30th. It's in Winston Salem, at WFU, 5:30pm. Let me know asap. Perfect opportunity to do a preliminary run of your PyCon or PyCarolina talk or whatever, or a talk you've already done at tripython or charpy. Francois -- www.pyptug.org - raspberry-python.blogspot.com - @f_dion -------------- next part -------------- An HTML attachment was scrubbed... URL: From cbc at unc.edu Thu Sep 19 22:17:10 2013 From: cbc at unc.edu (Chris Calloway) Date: Thu, 19 Sep 2013 16:17:10 -0400 Subject: [TriZPUG] Raleigh Project Night Venue Change for October Only Message-ID: <523B5BC6.3030101@unc.edu> We'll be having a project night in Raleigh at 6pm Tuesday October 1. But there is a venue change for this month only, even though it is still at NCSU. Rob Ladd has graciously offered the conference room at the North Carolina Cooperative Extension Information Technology office. Thanks, Rob, and we'll be back at WebAssign for Raleigh Project Night in November. What: Raleigh Project Night When: Tuesday, October 1, 6pm Where: NCSU Extension Information Technology Conference Room 106 512 Brickhaven Drive Raleigh, NC Map: http://www.engr.ncsu.edu/maps/people/rcladd -- Sincerely, Chris Calloway http://nccoos.org/Members/cbc office: 3313 Venable Hall phone: (919) 599-3530 mail: Campus Box #3300, UNC-CH, Chapel Hill, NC 27599 From lukedary at gmail.com Mon Sep 23 17:30:09 2013 From: lukedary at gmail.com (Luke Dary) Date: Mon, 23 Sep 2013 11:30:09 -0400 Subject: [TriZPUG] =?iso-8859-1?q?DevFestNC_2013_-_D=EDa_de_los_Datos_=28D?= =?iso-8859-1?q?ay_of_the_Data=29?= Message-ID: I am pleased to announce the availability of tickets for the first GDG Research Triangle DevFest on Saturday, November 2nd, 2013. Doors will open a little after 8am, and the conference starts at 9am. Google+ Event Page Etix Ticket Page Your ticket for the day includes snacks, lunch, a T-shirt, and entries into prize drawings. Sessions will cover web development, mobile development, and tech community building. Space will be provided throughout the day for participants to share projects, showcase products, or pitch ideas. DevFestNC 2013 is focused on sharing knowledge, projects, and products that utilize the vast amount of data available today. Producing and consuming data is a hot topic here in the Triangle with increased interest in things like Open Data and public APIs. There are still slots available for speakers if you or someone you know has a presentation they would like to give. Fill out the formor contact +Luke Dary . Directions to the venue - The Solution Center NOTE: The G+ event is for scheduling and sharing purposes and acceptance of the event invitation is not meant to imply official tickets or registration to DevFestNC, if you plan to attend in person please purchase a ticket through our local vendor [url=http://www.etix.com]Etix[/url] (click the ticket link or go to their website and search for "devfest") or sign up and be approved to present a session. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cbc at unc.edu Mon Sep 23 18:29:07 2013 From: cbc at unc.edu (Chris Calloway) Date: Mon, 23 Sep 2013 12:29:07 -0400 Subject: [TriZPUG] PyCon 2014 Registration is Open Message-ID: <52406C53.4040906@unc.edu> I want to make sure that everyone here knows that PyCon 2014 registration is now open: https://us.pycon.org/2014/registration/ It was a soft launch two days ago with no announcement. If you know you are going, you want to go ahead and register. First the early bird rate is tied to the number of registrations received, not any particular deadline. Second, there are 500 fewer tickets available this year than last year. This year's registration is capped at 2000 attendees. And third, the tickets sold out last year over a month in advance with even with more tickets available and a less appealing venue. The venue for this year is simply incredible. I met the local organizing team at PyCon CA and they are also very on the ball people. And, of course, Caktus is one of the leading sponsors! -- Sincerely, Chris Calloway http://nccoos.org/Members/cbc office: 3313 Venable Hall phone: (919) 599-3530 mail: Campus Box #3300, UNC-CH, Chapel Hill, NC 27599 From cbc at unc.edu Mon Sep 23 19:38:50 2013 From: cbc at unc.edu (Chris Calloway) Date: Mon, 23 Sep 2013 13:38:50 -0400 Subject: [TriZPUG] Special All Things Open Ticket Giveaway at This Week's Meeting Message-ID: <52407CAA.4010404@unc.edu> If you come to this week's TriPython meeting, you will have a chance to win a free ticket to the upcoming All Things Open conference: http://www.allthingsopen.org/ What if you don't win but still want to go? No problem. TriPythoneers get a ten percent discount! Just use the discount code "pythongroup" when registering. Thank you Todd Lewis and All Things Open for this gift and opportunity. -- Sincerely, Chris Calloway http://nccoos.org/Members/cbc office: 3313 Venable Hall phone: (919) 599-3530 mail: Campus Box #3300, UNC-CH, Chapel Hill, NC 27599 From cbc at unc.edu Mon Sep 23 19:46:22 2013 From: cbc at unc.edu (Chris Calloway) Date: Mon, 23 Sep 2013 13:46:22 -0400 Subject: [TriZPUG] PyTennessee Message-ID: <52407E6E.20404@unc.edu> The chair of the PyTennessee conference, Jason Myers, invites you to submit an talk and/or attend PyTN, Feburary 22-23 in Nashville. For more information see http://www.pytennessee.org and @pytennessee. -- Sincerely, Chris Calloway http://nccoos.org/Members/cbc office: 3313 Venable Hall phone: (919) 599-3530 mail: Campus Box #3300, UNC-CH, Chapel Hill, NC 27599 From cbc at unc.edu Mon Sep 23 20:31:37 2013 From: cbc at unc.edu (Chris Calloway) Date: Mon, 23 Sep 2013 14:31:37 -0400 Subject: [TriZPUG] TriPython September 2013 Meeting: Web2Py In-Reply-To: <521BE67B.1010601@unc.edu> References: <521BE67B.1010601@unc.edu> Message-ID: <52408909.6030805@unc.edu> On 8/26/2013 7:36 PM, Chris Calloway wrote: > When: Thursday September 26 7pm > Where: Bull City Coworking, 112 S. Duke St., Suite 6, Durham > > http://trizpug.org/Members/cbc/sept-13-mtg This is to remind you of this week's meeting, our first at Bull City Coworking, and to inform you that due a death in the family, the speaker and topic for this month's meeting has changed. Thanks to a last minute catch by Jim Allman, we are going to have this most excellent meeting: Join us as Jim Allman of Interrobang Digital Media gives a quick tour of web2py, the open source, full-stack web framework for building modular and portable web apps. We'll take a quick tour of its features, technology, history, and community. Then we'll look under the hood of a fairly simple web2py app, a browser for phylogenetic trees from the Open Tree of Life project. Along the way, we'll look at web2py's plugin architecture and how to integrate Twitter Bootstrap for a modern, responsive user interface. Lightning talks, 5 to 10 minutes extemporaneous expositions on a topic of interest to you, something you recently learned, kind of like a show and tell, are always welcome as well. We'll be meeting for the first time at Bull City Coworking. Please see the parking instructions on the BCC website. A wide variety of possibilities for the after-meeting are within steps of BCC. To thank Jim for his rescue of our meeting this month, Jim wins a free ticket to the All Things Open conference courtesy of Todd Lewis. Thanks Jim and thanks Todd. We also have another ticket to give away at the meeting! http://www.allthingsopen.org/ -- Sincerely, Chris Calloway http://nccoos.org/Members/cbc office: 3313 Venable Hall phone: (919) 599-3530 mail: Campus Box #3300, UNC-CH, Chapel Hill, NC 27599 From mhrivnak at hrivnak.org Wed Sep 25 15:46:29 2013 From: mhrivnak at hrivnak.org (Hrivnak, Michael) Date: Wed, 25 Sep 2013 09:46:29 -0400 Subject: [TriZPUG] PyCharm 3.0 free edition Message-ID: PyCharm 3.0 is out and includes a free community edition! I've been using this IDE for over a year now and really love it. On first glance, it seems that the pro (paid) edition is mostly about integration with specific frameworks and other languages, but retains all of the core IDE features. So I suspect the free edition could be very useful to a lot of people. http://www.jetbrains.com/pycharm/ Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: From cbc at unc.edu Fri Sep 27 21:14:54 2013 From: cbc at unc.edu (Chris Calloway) Date: Fri, 27 Sep 2013 15:14:54 -0400 Subject: [TriZPUG] Python Packaging Message-ID: <5245D92E.4000106@unc.edu> Mark Biggers let me know last night that he will be working at a Meals on Wheels food truck rodeo today (Fri Sept 27) from 4-8pm at the Carrboro Farmer's Market. If you are around, drop on by: http://www.chcmow.org/food-truck-rodeo-sept-27th-2013/ Thank you, Jim Allman, for a great presentation last night about Web2Py. Thanks to Robert Petrusz for the awesome new meeting space. Robert wants you to know that he's opening a similar space in Raleigh and you can get in on the ground floor. Members in either Raleigh or Durham will have full access to both facilities. Sign up for announcements and tell your friends: http://bullpenraleigh.launchrock.com/ Thanks to Todd Lewis and All Thing Open for our door prize. Our winners were Anyi Li and Jim Allman. It was Anyi's first TriPython meeting! As a reminder, you can get a ten percent discount on your registration for the upcoming All Things Open conference in Raleigh by using the discount code "pythongroup" at: http://www.allthingsopen.org/ http://www.allthingsopen.org/register.html Last night we heard a lightning talk from Erik Rose about Peep: https://pypi.python.org/pypi/peep/0.8 https://github.com/erikrose/peep Peep is part of the Python Packaging Authority's (PYPA) push to revamp Python packaging practices yet again. This coincides with the recent release of pip 1.4.x, which is backwards incompatible with previous versions of pip in order to facilitate some much needed changes to Pypi, the Python Package Index (http://pypi.python.org), and merging the distribute fork back into setuptools. Rather than me explain all this to you, I'd like to direct you to a couple of sources of information. One is a talk by PYPA chair Nick Coghlan's talk in July at PyCon Australia. This is about as authoritative of a round up of the issues as you can find: http://pyvideo.org/video/2197/nobody-expects-the-python-packaging-authority Second, the PYPA has just published a fantastic user guide that has specifics on everthing Nick is talking about in the video above: http://python-packaging-user-guide.readthedocs.org I highly suggest that you watch/read both. We're all going to need to know this going forward. Finally, I know you are just dying for this opportunity: http://wraltechwire.com/google-to-showcase-its-glass-wearable-computers-in-durham/12931651/ -- Sincerely, Chris Calloway http://nccoos.org/Members/cbc office: 3313 Venable Hall phone: (919) 599-3530 mail: Campus Box #3300, UNC-CH, Chapel Hill, NC 27599 From jbw2003 at earthlink.net Sun Sep 29 20:54:44 2013 From: jbw2003 at earthlink.net (Jim White) Date: Sun, 29 Sep 2013 14:54:44 -0400 Subject: [TriZPUG] application deployment Message-ID: <52487774.4020302@earthlink.net> Hi, I took the web programming class this summer and have written my first web app using Flask. It works great using the development server, but am having problems with deployment. I tried mod_wsgi and that worked on one server but got segmentation faults on another. Next I have moved to wsgiref. I have written a startup script to run in the /etc/init.d directory of my server and can start and stop using the service command. The problem I have is that my service stops when I close the shell. Would appreciate any suggestions for writing a linux startup script to run wsgiref or otherwise a good way to get my program running as a service. Thanks, Jim -- James B. White Cary, NC H: 919-380-9615 M: 919-698-1765 White Coding and Maps -------------- next part -------------- An HTML attachment was scrubbed... URL: From tobias at caktusgroup.com Sun Sep 29 21:22:58 2013 From: tobias at caktusgroup.com (Tobias McNulty) Date: Sun, 29 Sep 2013 15:22:58 -0400 Subject: [TriZPUG] application deployment In-Reply-To: <52487774.4020302@earthlink.net> References: <52487774.4020302@earthlink.net> Message-ID: We're big fans of supervisord [1] at Caktus and use it nearly all of our deployments. In our case, we use it to run Gunicorn [2] and any related services needed for our apps, but it should work just as well for any WSGI server that you might want to run. It installs easily on most Linux distributions and has a flexible, compact syntax for specifying how to run a service (at least when compared to an old fashioned init script). As an added bonus, it's even written in Python. Good luck! Tobias [1] http://supervisord.org/ [2] http://gunicorn.org/ On Sun, Sep 29, 2013 at 2:54 PM, Jim White wrote: > Hi, > > I took the web programming class this summer and have written my first > web app using Flask. It works great using the development server, but am > having problems with deployment. I tried mod_wsgi and that worked on one > server but got segmentation faults on another. > > Next I have moved to wsgiref. I have written a startup script to run in > the /etc/init.d directory of my server and can start and stop using the > service command. The problem I have is that my service stops when I close > the shell. > > Would appreciate any suggestions for writing a linux startup script to run > wsgiref or otherwise a good way to get my program running as a service. > > Thanks, > Jim > -- > James B. White > Cary, NC > H: 919-380-9615 > M: 919-698-1765 > White Coding and Maps > > _______________________________________________ > TriZPUG mailing list > TriZPUG at python.org > https://mail.python.org/mailman/listinfo/trizpug > http://trizpug.org is the Triangle Zope and Python Users Group > -- Tobias McNulty, Managing Member Caktus Consulting Group, LLC http://www.caktusgroup.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sampath.usa at gmail.com Mon Sep 30 18:31:18 2013 From: sampath.usa at gmail.com (Ramesh Sampath) Date: Mon, 30 Sep 2013 11:31:18 -0500 Subject: [TriZPUG] application deployment In-Reply-To: <52487774.4020302@earthlink.net> References: <52487774.4020302@earthlink.net> Message-ID: Hi Jim, I use webfaction.com to deploy my Flask apps and it works great for me. I created a mod_wsgi application, then deployed Flask and called my application from the wsgi.py file that webfaction creates when I create the application. If you want a more automated script, you can check the instructions on this (* http://community.webfaction.com/questions/12718/installing-flask)* * * I don't know enough about deployment to maintain the server, but webfaction provides me enough control via SSH that I am happy with. I create my projects locally, use github to server and then clone the repository in webfaction app. This workflow works for me on my simple projects. You can also install Django or Pyramid applications in webfactions, if that's something you want to test it out. The beauty is all of them are deployed in specific folders with their own separate Apache / nginx config files. That way one app cannot mess up the setting of another applcation. I think webfaction offers some discounts - use CFE1 (for 1 month free), CFE12 for 50% off 12 months. I have been thinking about writing a blog post about my experience deploying Flask on webfaction, but have not gotten around to it. Will let this group know once I have it together. Hope this helps. * * On Sun, Sep 29, 2013 at 1:54 PM, Jim White wrote: > Hi, > > I took the web programming class this summer and have written my first > web app using Flask. It works great using the development server, but am > having problems with deployment. I tried mod_wsgi and that worked on one > server but got segmentation faults on another. > > Next I have moved to wsgiref. I have written a startup script to run in > the /etc/init.d directory of my server and can start and stop using the > service command. The problem I have is that my service stops when I close > the shell. > > Would appreciate any suggestions for writing a linux startup script to run > wsgiref or otherwise a good way to get my program running as a service. > > Thanks, > Jim > -- > James B. White > Cary, NC > H: 919-380-9615 > M: 919-698-1765 > White Coding and Maps > > _______________________________________________ > TriZPUG mailing list > TriZPUG at python.org > https://mail.python.org/mailman/listinfo/trizpug > http://trizpug.org is the Triangle Zope and Python Users Group > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cbc at unc.edu Mon Sep 30 20:45:19 2013 From: cbc at unc.edu (Chris Calloway) Date: Mon, 30 Sep 2013 14:45:19 -0400 Subject: [TriZPUG] application deployment In-Reply-To: References: <52487774.4020302@earthlink.net> Message-ID: <5249C6BF.8090804@unc.edu> On 9/29/2013 3:22 PM, Tobias McNulty wrote: > We're big fans of supervisord [1] First released at the TriPython hosted BBQ Sprint. -- Sincerely, Chris Calloway http://nccoos.org/Members/cbc office: 3313 Venable Hall phone: (919) 599-3530 mail: Campus Box #3300, UNC-CH, Chapel Hill, NC 27599 From cbc at unc.edu Mon Sep 30 22:50:23 2013 From: cbc at unc.edu (Chris Calloway) Date: Mon, 30 Sep 2013 16:50:23 -0400 Subject: [TriZPUG] Reminder: Raleigh Project Night Venue Change for October Only In-Reply-To: <523B5BC6.3030101@unc.edu> References: <523B5BC6.3030101@unc.edu> Message-ID: <5249E40F.8050108@unc.edu> Remember, Raleigh Project Night is temporarily at a difference location tomorrow (Tuesday) night: On 9/19/2013 4:17 PM, Chris Calloway wrote: > We'll be having a project night in Raleigh at 6pm Tuesday October 1. But > there is a venue change for this month only, even though it is still at > NCSU. Rob Ladd has graciously offered the conference room at the North > Carolina Cooperative Extension Information Technology office. Thanks, > Rob, and we'll be back at WebAssign for Raleigh Project Night in November. > > What: Raleigh Project Night > When: Tuesday, October 1, 6pm > Where: NCSU Extension Information Technology > Conference Room 106 > 512 Brickhaven Drive > Raleigh, NC > Map: http://www.engr.ncsu.edu/maps/people/rcladd > -- Sincerely, Chris Calloway http://nccoos.org/Members/cbc office: 3313 Venable Hall phone: (919) 599-3530 mail: Campus Box #3300, UNC-CH, Chapel Hill, NC 27599