From tim.morgan at owasp.org Tue Apr 1 18:07:47 2014 From: tim.morgan at owasp.org (Tim Morgan) Date: Tue, 1 Apr 2014 09:07:47 -0700 Subject: [portland] Secure Password Storage (OWASP Chapter Meeting) Message-ID: <20140401160747.GK2642@sentinelchicken.org> Greetings, OWASP is holding a chapter meeting tomorrow and I thought some of you might be interested in the topic. Kevin Dyer will be presenting "High-Profile Password Database Breaches: A Tale of (Avoidable) Blunders" at Jive. More information is here: http://calagator.org/events/1250465836 As always, OWASP meetings are free and open to the public. Hope to see you there, tim From rshepard at appl-ecosys.com Mon Apr 14 18:35:23 2014 From: rshepard at appl-ecosys.com (Rich Shepard) Date: Mon, 14 Apr 2014 09:35:23 -0700 (PDT) Subject: [portland] Boiler-Plate Modules Compendium? Message-ID: Is there a compendium somewhere of boiler-plate modules that prevent each of us re-inventing the wheel for common tasks? My immediate interests are for a module 1) to validate user login (username and password) and to apply the appropriate menus and views based on the user's assigned role in the application and 2) to assemble and send e-mail messages to a list based on programmatic criteria. I'm sure there are other already-written goodies that would be useful if I knew where to find them. TIA, Rich From ethan at stoneleaf.us Mon Apr 14 19:20:38 2014 From: ethan at stoneleaf.us (Ethan Furman) Date: Mon, 14 Apr 2014 10:20:38 -0700 Subject: [portland] Boiler-Plate Modules Compendium? In-Reply-To: References: Message-ID: <534C18E6.6090001@stoneleaf.us> On 04/14/2014 09:35 AM, Rich Shepard wrote: > Is there a compendium somewhere of boiler-plate modules that prevent each > of us re-inventing the wheel for common tasks? PyPI [1] is a good place to start. You can also check github [2], bitbucket [3], launch-pad [4], and others. > My immediate interests are for a module 1) to validate user login (username > and password) and to apply the appropriate menus and views based on the > user's assigned role in the application and 2) to assemble and send e-mail > messages to a list based on programmatic criteria. Are you using a prebuilt framework? Of so, mentioning it could help. ;) -- ~Ethan~ [1] https://pypi.python.org/pypi [2] https://github.com/ [3] https://bitbucket.org/dashboard/overview [4] https://launchpad.net/ From rshepard at appl-ecosys.com Mon Apr 14 20:13:30 2014 From: rshepard at appl-ecosys.com (Rich Shepard) Date: Mon, 14 Apr 2014 11:13:30 -0700 (PDT) Subject: [portland] Boiler-Plate Modules Compendium? In-Reply-To: <534C18E6.6090001@stoneleaf.us> References: <534C18E6.6090001@stoneleaf.us> Message-ID: On Mon, 14 Apr 2014, Ethan Furman wrote: > PyPI [1] is a good place to start. You can also check github [2], bitbucket > [3], launch-pad [4], and others. Thanks, Ethan. I'll wander around those sites. > Are you using a prebuilt framework? Of so, mentioning it could help. ;) Nope. wxPython -> Python -> SQLAlchemy (perhaps) -> PostgreSQL. This is not a 'cloud' application. Regards, Rich From rshepard at appl-ecosys.com Wed Apr 16 23:20:14 2014 From: rshepard at appl-ecosys.com (Rich Shepard) Date: Wed, 16 Apr 2014 14:20:14 -0700 (PDT) Subject: [portland] Configuring iPython-1.2.1 Message-ID: This version of iPython has a configuration file different from earlier versions. When I start the tool I get a long warning message about configuring it: /usr/lib/python2.7/site-packages/IPython/utils/path.py:471: UserWarning: Found old IPython config file u'/home/rshepard/.ipython/ipy_user_conf.py' (modified by user) warnings.warn("Found old IPython config file %r (modified by user)"%f) /usr/lib/python2.7/site-packages/IPython/utils/path.py:471: UserWarning: Found old IPython config file u'/home/rshepard/.ipython/ipythonrc' (modified by user) warnings.warn("Found old IPython config file %r (modified by user)"%f) /usr/lib/python2.7/site-packages/IPython/utils/path.py:483: UserWarning: The IPython configuration system has changed as of 0.11, and these files will be ignored. See http://ipython.github.com/ipython-doc/dev/config for details of the new config system. To start configuring IPython, do `ipython profile create`, and edit `ipython_config.py` in /profile_default. If you need to leave the old config files in place for an older version of IPython and want to suppress this warning message, set `c.InteractiveShellApp.ignore_old_config=True in the new config. `c.InteractiveShellApp.ignore_old_config=True in the new config.""") I ran 'python profile create' and made some changes in ipython_config.py. However, I've no idea which lines should be uncommented and the ones I have do not seem to satisfy ipython because it shows me that same introduction each time I invoke it. Is there a basic configuration I could implement so that when I invoke ipython it just starts without nagging me? Rich From rshepard at appl-ecosys.com Sat Apr 19 00:33:54 2014 From: rshepard at appl-ecosys.com (Rich Shepard) Date: Fri, 18 Apr 2014 15:33:54 -0700 (PDT) Subject: [portland] Looking for wxPython help Message-ID: It's been about 8 years since I wrote a wxPython app and much has changed since then. I need to develop a different application now and am looking for someone local to help me get back up to speed with all the differences. One new thing I see is a super() function applied to a wx.Frame.__init__(), but I cannot find documentation on what it does and where/how it should be used. An immediate problem is positioning a wx.Panel within a wx.Frame; it's scrunched up in the upper left corner and I haven't found how to get the panel centered in the frame. Coffee, microbrew, lunch, or dinner is offered to someone who'll sit down with me and help me learn the differences from 2.5.x to the current 3.0.0.0. Thanks, Rich From jchampion at zetacentauri.com Sat Apr 19 02:23:20 2014 From: jchampion at zetacentauri.com (Jason Champion) Date: Fri, 18 Apr 2014 17:23:20 -0700 Subject: [portland] Looking for wxPython help In-Reply-To: References: Message-ID: Hi Rich, I've extensive experience with wxWidgets, but only in C++, which may not be of help with wxPython. >From the C++ perspective, the creation arguments to wxPanel include the parent wxFrame, the window ID, the position as a wxPoint, and the size as a wxSize. It may be as simple as passing frame, size, and position when you create your wxPanel -- I know the defaults have varied over the years. Have you tried: panel = wxPanel(your_wx_frame, id, wxPoint(0,0), wxSize(640, 480)) or something similar? Happy to take this to an offline email thread if you like. Cheers, Jason On Fri, Apr 18, 2014 at 3:33 PM, Rich Shepard wrote: > It's been about 8 years since I wrote a wxPython app and much has changed > since then. I need to develop a different application now and am looking > for > someone local to help me get back up to speed with all the differences. > > One new thing I see is a super() function applied to a > wx.Frame.__init__(), but I cannot find documentation on what it does and > where/how it should be used. > > An immediate problem is positioning a wx.Panel within a wx.Frame; it's > scrunched up in the upper left corner and I haven't found how to get the > panel centered in the frame. > > Coffee, microbrew, lunch, or dinner is offered to someone who'll sit down > with me and help me learn the differences from 2.5.x to the current > 3.0.0.0. > > Thanks, > > Rich > _______________________________________________ > Portland mailing list > Portland at python.org > https://mail.python.org/mailman/listinfo/portland > -- Jason Champion Software Architect Zeta Centauri http://zetacentauri.com jchampion at zetacentauri.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From robin at alldunn.com Sat Apr 19 02:51:05 2014 From: robin at alldunn.com (Robin Dunn) Date: Fri, 18 Apr 2014 17:51:05 -0700 Subject: [portland] Looking for wxPython help In-Reply-To: References: Message-ID: <5351C879.70108@alldunn.com> Rich Shepard wrote: > It's been about 8 years since I wrote a wxPython app and much has changed > since then. I need to develop a different application now and am looking > for > someone local to help me get back up to speed with all the differences. > > One new thing I see is a super() function applied to a > wx.Frame.__init__(), but I cannot find documentation on what it does and > where/how it should be used. super() is a Python function that returns a proxy object that delegates to to the parent class or a sibling class. Using it is not strictly necessary to use it, but it can be handy especially in cases of multiple inheritance where the next class in a call chain may not be fully known at the time that a call is written. http://stackoverflow.com/questions/576169/understanding-python-super-and-init-methods > > An immediate problem is positioning a wx.Panel within a wx.Frame; it's > scrunched up in the upper left corner and I haven't found how to get the > panel centered in the frame. Are you using a sizer in the frame? Does the frame have other child widgets? If a frame has only one child then it will automatically resize it to fit in the frame's client area by default. If it has more than one child or if you want different behavior then you'll either need to give it some help with a sizer, or explicitly manage the children's layout in the frame's EVT_SIZE handler. > > Coffee, microbrew, lunch, or dinner is offered to someone who'll sit down > with me and help me learn the differences from 2.5.x to the current > 3.0.0.0. Both StackOverflow and the wxPython-users google group are excellent places to get help on wxPython. There are lots of people who have time and are happy to help answer questions or give guidance. If you have specific questions or problems with existing code then be sure to boil it down to a small runnable sample when you ask about it. http://wiki.wxpython.org/MakingSampleApps -- Robin Dunn Software Craftsman http://wxPython.org From rshepard at appl-ecosys.com Sat Apr 19 15:22:59 2014 From: rshepard at appl-ecosys.com (Rich Shepard) Date: Sat, 19 Apr 2014 06:22:59 -0700 (PDT) Subject: [portland] Looking for wxPython help In-Reply-To: References: Message-ID: On Fri, 18 Apr 2014, Jason Champion wrote: > I've extensive experience with wxWidgets, but only in C++, which may not be > of help with wxPython. Jason, wxPython wraps the wxWidgets functions. > From the C++ perspective, the creation arguments to wxPanel include the > parent wxFrame, the window ID, the position as a wxPoint, and the size as > a wxSize. It may be as simple as passing frame, size, and position when > you create your wxPanel -- I know the defaults have varied over the years. > > Have you tried: > > panel = wxPanel(your_wx_frame, id, wxPoint(0,0), wxSize(640, 480)) or > something similar? I've tried several iterations based on what worked in the past and what I find on the Web. What I need to find are the wxPython-3.0.0.0 docs that describe each method for each widget. I don't know if that version the same as the 'Phoenix' version, but I'll keep looking. > Happy to take this to an offline email thread if you like. Perhaps later, thanks. Rich From rshepard at appl-ecosys.com Sat Apr 19 15:35:20 2014 From: rshepard at appl-ecosys.com (Rich Shepard) Date: Sat, 19 Apr 2014 06:35:20 -0700 (PDT) Subject: [portland] Looking for wxPython help In-Reply-To: <5351C879.70108@alldunn.com> References: <5351C879.70108@alldunn.com> Message-ID: On Fri, 18 Apr 2014, Robin Dunn wrote: > super() is a Python function that returns a proxy object that delegates to to > the parent class or a sibling class. Using it is not strictly necessary to > use it, but it can be handy especially in cases of multiple inheritance where > the next class in a call chain may not be fully known at the time that a call > is written. > > http://stackoverflow.com/questions/576169/understanding-python-super-and-init-methods Robin, Thanks. I know there have been many changes in Python, wxWidgets, and wxPython over the years so I've been looking for current documentation that I can use for reference with current versions. > Are you using a sizer in the frame? Yes. > Does the frame have other child widgets? No. > If a frame has only one child then it will automatically resize it to fit in > the frame's client area by default. If it has more than one child or if you > want different behavior then you'll either need to give it some help with a > sizer, or explicitly manage the children's layout in the frame's EVT_SIZE > handler. The design I want to implement brings up a login view first. Then it presents views appropriate to the role of the user. Now I'm writing the login portion; it should have a panel in the main frame. The panel has a vertical sizer with 3 horizontal sizers: one for label and username entry, one for label and password, one for the OK and Cancel buttons. I've been using my ancient code and your wxPIA book as resources, plus what I can find on the Web. I'll find your Phoenix project and read what I can there. > Both StackOverflow and the wxPython-users google group are excellent > places to get help on wxPython. There are lots of people who have time and > are happy to help answer questions or give guidance. If you have specific > questions or problems with existing code then be sure to boil it down to a > small runnable sample when you ask about it. Yes, the wxPython mail list has been an outstanding resource. I've always preferred mail lists that push answers to me over Web fora where I need to pull the answers to me. But, I've used SO for R questions so it's not unfamiliar. Thanks very much, Rich From robin at alldunn.com Sat Apr 19 19:18:48 2014 From: robin at alldunn.com (Robin Dunn) Date: Sat, 19 Apr 2014 10:18:48 -0700 Subject: [portland] Looking for wxPython help In-Reply-To: References: <5351C879.70108@alldunn.com> Message-ID: <5352AFF8.5000800@alldunn.com> Rich Shepard wrote: > On Fri, 18 Apr 2014, Robin Dunn wrote: > >> super() is a Python function that returns a proxy object that >> delegates to to the parent class or a sibling class. Using it is not >> strictly necessary to use it, but it can be handy especially in cases >> of multiple inheritance where the next class in a call chain may not >> be fully known at the time that a call is written. >> >> http://stackoverflow.com/questions/576169/understanding-python-super-and-init-methods >> > > Robin, > > Thanks. I know there have been many changes in Python, wxWidgets, and > wxPython over the years so I've been looking for current documentation that > I can use for reference with current versions. The Phoenix docs are the most up to date. There are some differences between Phoenix and Classic, but probably close enough. > >> Are you using a sizer in the frame? > > Yes. > >> Does the frame have other child widgets? > > No. > >> If a frame has only one child then it will automatically resize it to >> fit in the frame's client area by default. If it has more than one >> child or if you want different behavior then you'll either need to >> give it some help with a sizer, or explicitly manage the children's >> layout in the frame's EVT_SIZE handler. A semi-common problem that could could result in the layout failure you describe is if there is no size event after the sizer has been set. If the frame was created with a fixed size and shown and then after the child widgets and sizers are added there is nothing that change the size of the frame, then there will be no initial size event and the sizer is not triggered. In cases like this it is easiest to just do something like self.Layout() in the frame after all the content has been created and the sizers set. -- Robin Dunn Software Craftsman http://wxPython.org From chris.c.mingo at gmail.com Tue Apr 22 19:42:32 2014 From: chris.c.mingo at gmail.com (Chris Mingo) Date: Tue, 22 Apr 2014 10:42:32 -0700 Subject: [portland] Mentor/Personal Tutor Message-ID: Hello all, I'm not sure if this is the correct venue for this request, but I am in need of a Mentor/Tutor for 3.4. I would like to work with 1 or more people to help broaden my comprehension several times per week. My biggest stumbling block to writing in Python is the syntax and not knowing enough about the available modules. For the right person/people, I would like to hire you for small contract projects in the near future. Thank you, Chris M From rshepard at appl-ecosys.com Tue Apr 22 23:41:49 2014 From: rshepard at appl-ecosys.com (Rich Shepard) Date: Tue, 22 Apr 2014 14:41:49 -0700 (PDT) Subject: [portland] Mentor/Personal Tutor In-Reply-To: References: Message-ID: On Tue, 22 Apr 2014, Chris Mingo wrote: > I'm not sure if this is the correct venue for this request, but I am in > need of a Mentor/Tutor for 3.4. I would like to work with 1 or more people > to help broaden my comprehension several times per week. My biggest > stumbling block to writing in Python is the syntax and not knowing enough > about the available modules. For the right person/people, I would like to > hire you for small contract projects in the near future. Chris, You might also consider wandering over to Powell's and buying a copy of Mark Lutz's "Learning Python, 5th Edition." It covers through 2.7 and 3.3 and makes a good wheel chock at 1700 pages in one soft-cover book (it should have been published as a 3-volume set). Regardless, if you want a comprehensive understanding of Python (both 2 and 3), that's worth your reading. Just don't drop it on your toes. Rich From chris.c.mingo at gmail.com Tue Apr 22 23:48:01 2014 From: chris.c.mingo at gmail.com (Chris Mingo) Date: Tue, 22 Apr 2014 14:48:01 -0700 Subject: [portland] Mentor/Personal Tutor In-Reply-To: References: Message-ID: Thank you Rich. I'll check that out too. Chris On Tue, Apr 22, 2014 at 2:41 PM, Rich Shepard wrote: > On Tue, 22 Apr 2014, Chris Mingo wrote: > >> I'm not sure if this is the correct venue for this request, but I am in >> need of a Mentor/Tutor for 3.4. I would like to work with 1 or more people >> to help broaden my comprehension several times per week. My biggest >> stumbling block to writing in Python is the syntax and not knowing enough >> about the available modules. For the right person/people, I would like to >> hire you for small contract projects in the near future. > > > Chris, > > You might also consider wandering over to Powell's and buying a copy of > Mark Lutz's "Learning Python, 5th Edition." It covers through 2.7 and 3.3 > and makes a good wheel chock at 1700 pages in one soft-cover book (it should > have been published as a 3-volume set). Regardless, if you want a > comprehensive understanding of Python (both 2 and 3), that's worth your > reading. Just don't drop it on your toes. > > Rich > > _______________________________________________ > Portland mailing list > Portland at python.org > https://mail.python.org/mailman/listinfo/portland From lindsm at gmail.com Tue Apr 22 23:49:38 2014 From: lindsm at gmail.com (Mike Lindsay) Date: Tue, 22 Apr 2014 14:49:38 -0700 Subject: [portland] Mentor/Personal Tutor In-Reply-To: References: Message-ID: Highly suggest the flying circus meetup. Bring a list of questions and you will inevitably find an answer. They meet once a week at nedspace last I checked. On Tue, Apr 22, 2014 at 2:48 PM, Chris Mingo wrote: > Thank you Rich. I'll check that out too. > Chris > > On Tue, Apr 22, 2014 at 2:41 PM, Rich Shepard > wrote: > > On Tue, 22 Apr 2014, Chris Mingo wrote: > > > >> I'm not sure if this is the correct venue for this request, but I am in > >> need of a Mentor/Tutor for 3.4. I would like to work with 1 or more > people > >> to help broaden my comprehension several times per week. My biggest > >> stumbling block to writing in Python is the syntax and not knowing > enough > >> about the available modules. For the right person/people, I would like > to > >> hire you for small contract projects in the near future. > > > > > > Chris, > > > > You might also consider wandering over to Powell's and buying a copy of > > Mark Lutz's "Learning Python, 5th Edition." It covers through 2.7 and 3.3 > > and makes a good wheel chock at 1700 pages in one soft-cover book (it > should > > have been published as a 3-volume set). Regardless, if you want a > > comprehensive understanding of Python (both 2 and 3), that's worth your > > reading. Just don't drop it on your toes. > > > > Rich > > > > _______________________________________________ > > Portland mailing list > > Portland at python.org > > https://mail.python.org/mailman/listinfo/portland > _______________________________________________ > Portland mailing list > Portland at python.org > https://mail.python.org/mailman/listinfo/portland > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chris.c.mingo at gmail.com Tue Apr 22 23:51:22 2014 From: chris.c.mingo at gmail.com (Chris Mingo) Date: Tue, 22 Apr 2014 14:51:22 -0700 Subject: [portland] Mentor/Personal Tutor In-Reply-To: References: Message-ID: Thank you Mike. I just missed the one yesterday, but I'll be attending them in the future. Chris On Tue, Apr 22, 2014 at 2:49 PM, Mike Lindsay wrote: > Highly suggest the flying circus meetup. Bring a list of questions and you > will inevitably find an answer. They meet once a week at nedspace last I > checked. > > > On Tue, Apr 22, 2014 at 2:48 PM, Chris Mingo wrote: > >> Thank you Rich. I'll check that out too. >> Chris >> >> On Tue, Apr 22, 2014 at 2:41 PM, Rich Shepard >> wrote: >> > On Tue, 22 Apr 2014, Chris Mingo wrote: >> > >> >> I'm not sure if this is the correct venue for this request, but I am in >> >> need of a Mentor/Tutor for 3.4. I would like to work with 1 or more >> people >> >> to help broaden my comprehension several times per week. My biggest >> >> stumbling block to writing in Python is the syntax and not knowing >> enough >> >> about the available modules. For the right person/people, I would like >> to >> >> hire you for small contract projects in the near future. >> > >> > >> > Chris, >> > >> > You might also consider wandering over to Powell's and buying a copy of >> > Mark Lutz's "Learning Python, 5th Edition." It covers through 2.7 and 3.3 >> > and makes a good wheel chock at 1700 pages in one soft-cover book (it >> should >> > have been published as a 3-volume set). Regardless, if you want a >> > comprehensive understanding of Python (both 2 and 3), that's worth your >> > reading. Just don't drop it on your toes. >> > >> > Rich >> > >> > _______________________________________________ >> > Portland mailing list >> > Portland at python.org >> > https://mail.python.org/mailman/listinfo/portland >> _______________________________________________ >> Portland mailing list >> Portland at python.org >> https://mail.python.org/mailman/listinfo/portland >> > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > _______________________________________________ > Portland mailing list > Portland at python.org > https://mail.python.org/mailman/listinfo/portland From jheasly at earthlink.net Wed Apr 30 22:25:05 2014 From: jheasly at earthlink.net (John Heasly) Date: Wed, 30 Apr 2014 13:25:05 -0700 Subject: [portland] A homebrew-ed Python + virtualenv + virtualenvwrapper question Message-ID: Hello all, I?ve been bit by creating virtualenvs against a homebrew-installed systemwide Python, upgrading the system Python, running "brew cleanup? which deletes the previous Python that the virtualenv was created against. Is there a way to get virtualenvs to ?see? the new Python? Or should I just stop with the ?brew cleanup? after brew upgrading the system Python? I figure this is a common enough scenario that there has to be a good answer/best practice/light to dim the darkness of my ignorance. Thanks, John