From szybalski at gmail.com Fri May 1 15:34:11 2009 From: szybalski at gmail.com (Lukasz Szybalski) Date: Fri, 1 May 2009 08:34:11 -0500 Subject: [Chicago] xml to py object Message-ID: <804e5c70905010634y390e619hbfd53a1106090351@mail.gmail.com> Hello, I'm trying to convert an xml to python like object where: my company Full name of the comapny 1.02 (4.02) would correspond to class someobject(object):........ and would be accessible via something like: print x.ClientApp.Org print x.ClientApp.Name print x.ClientApp.Version Not sure how things like this would be implemented: Is there a module/library that is able convert the xml into something like this? Thanks, Lucas -- How to create python package? http://lucasmanual.com/mywiki/PythonPaste DataHub - create a package that gets, parses, loads, visualizes data http://lucasmanual.com/mywiki/DataHub From brentodd at gmail.com Fri May 1 16:06:10 2009 From: brentodd at gmail.com (Brennan Todd) Date: Fri, 1 May 2009 09:06:10 -0500 Subject: [Chicago] xml to py object In-Reply-To: <804e5c70905010634y390e619hbfd53a1106090351@mail.gmail.com> References: <804e5c70905010634y390e619hbfd53a1106090351@mail.gmail.com> Message-ID: <6d91e5a50905010706p3f655df2j248a34618adfe37b@mail.gmail.com> Chapter 12 of the Python Cookbook has something that might work for you. It's available through google book search: http://www.google.com/url?sa=t&source=web&ct=res&cd=5&url=http%3A%2F%2Fbooks.google.com%2Fbooks%3Fid%3DQ0s6Vgb98CQC%26pg%3DPA463%26lpg%3DPA463%26dq%3Dpython%2Bcookbook%2Bxml%26source%3Dbl%26ots%3Dhc1X49Thxy%26sig%3DZWPKo9xnYLwcEiYkX6H1J2QD9nM%26hl%3Den%26ei%3DVgD7SeP4EJbCMsilzbUE%26sa%3DX%26oi%3Dbook_result%26ct%3Dresult%26resnum%3D5&ei=VgD7SeP4EJbCMsilzbUE&usg=AFQjCNGG0TwqVNpAXUN9UMEerFjFS0ZGBQ&sig2=o24zRdkRigZeEeOjKzdkpw I've used the recipe once or twice, and it's easy enough to modify for your specific needs. On Fri, May 1, 2009 at 8:34 AM, Lukasz Szybalski wrote: > Hello, > I'm trying to convert an xml to python like object where: > > > my company > Full name of the comapny > 1.02 (4.02) > > > would correspond to > > class someobject(object):........ > > and would be accessible via something like: > > print x.ClientApp.Org > print x.ClientApp.Name > print x.ClientApp.Version > > Not sure how things like this would be implemented: > > > > Is there a module/library that is able convert the xml into something like > this? > > Thanks, > Lucas > > > -- > How to create python package? > http://lucasmanual.com/mywiki/PythonPaste > DataHub - create a package that gets, parses, loads, visualizes data > http://lucasmanual.com/mywiki/DataHub > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kumar.mcmillan at gmail.com Fri May 1 16:27:52 2009 From: kumar.mcmillan at gmail.com (Kumar McMillan) Date: Fri, 1 May 2009 09:27:52 -0500 Subject: [Chicago] xml to py object In-Reply-To: <804e5c70905010634y390e619hbfd53a1106090351@mail.gmail.com> References: <804e5c70905010634y390e619hbfd53a1106090351@mail.gmail.com> Message-ID: On Fri, May 1, 2009 at 8:34 AM, Lukasz Szybalski wrote: > Hello, > I'm trying to convert an xml to python like object where: > > ? ? ? > ? ? ? ? ? ?my company > ? ? ? ? ? ? Full name of the comapny > ? ? ? ? ? ?1.02 (4.02) > ? ? ? ? > > would correspond to > > class someobject(object):........ > > and would be accessible via something like: > > print x.ClientApp.Org > print x.ClientApp.Name > print x.ClientApp.Version > > Not sure how things like this would be implemented: > > ? > > Is there a module/library that is able convert the xml into something like this? lxml.objectify might do what you want: http://codespeak.net/lxml/objectify.html > > Thanks, > Lucas > > > -- > How to create python package? > http://lucasmanual.com/mywiki/PythonPaste > DataHub - create a package that gets, parses, loads, visualizes data > http://lucasmanual.com/mywiki/DataHub > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > From KBoers at leapfrogonline.com Fri May 1 16:24:43 2009 From: KBoers at leapfrogonline.com (Kevin Boers) Date: Fri, 1 May 2009 09:24:43 -0500 Subject: [Chicago] xml to py object In-Reply-To: <6d91e5a50905010706p3f655df2j248a34618adfe37b@mail.gmail.com> Message-ID: I like lxml.objectify quite a bit. It does exactly what you're looking for: http://codespeak.net/lxml/objectify.html Kevin On 5/1/09 9:06 AM, "Brennan Todd" wrote: Chapter 12 of the Python Cookbook has something that might work for you. It's available through google book search: http://www.google.com/url?sa=t&source=web&ct=res&cd=5&url=http%3A%2F%2Fbooks.google.com%2Fbooks%3Fid%3DQ0s6Vgb98CQC%26pg%3DPA463%26lpg%3DPA463%26dq%3Dpython%2Bcookbook%2Bxml%26source%3Dbl%26ots%3Dhc1X49Thxy%26sig%3DZWPKo9xnYLwcEiYkX6H1J2QD9nM%26hl%3Den%26ei%3DVgD7SeP4EJbCMsilzbUE%26sa%3DX%26oi%3Dbook_result%26ct%3Dresult%26resnum%3D5&ei=VgD7SeP4EJbCMsilzbUE&usg=AFQjCNGG0TwqVNpAXUN9UMEerFjFS0ZGBQ&sig2=o24zRdkRigZeEeOjKzdkpw I've used the recipe once or twice, and it's easy enough to modify for your specific needs. On Fri, May 1, 2009 at 8:34 AM, Lukasz Szybalski wrote: Hello, I'm trying to convert an xml to python like object where: my company Full name of the comapny 1.02 (4.02) would correspond to class someobject(object):........ and would be accessible via something like: print x.ClientApp.Org print x.ClientApp.Name print x.ClientApp.Version Not sure how things like this would be implemented: Is there a module/library that is able convert the xml into something like this? Thanks, Lucas -- How to create python package? http://lucasmanual.com/mywiki/PythonPaste DataHub - create a package that gets, parses, loads, visualizes data http://lucasmanual.com/mywiki/DataHub _______________________________________________ Chicago mailing list Chicago at python.org http://mail.python.org/mailman/listinfo/chicago Kevin P. Boers QA Manager 847-440-8381 Leapfrog Online 807 Greenwood Evanston, IL 60201 Main 847-492-1968 Fax 847-492-1990 kboers at leapfrogonline.com www.leapfrogonline.com ________________________________ CONFIDENTIALITY NOTE The document(s) accompanying this e-mail transmission, if any, and the e-mail transmittal message containing information from Leapfrog Online Customer Acquisition, LLC is confidential or privileged. The information is intended to be for the use of the individual(s) or entity(ies) named on this e-mail transmission message. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this e-mail is prohibited. If you have received this e-mail in error, please immediately delete this e-mail and notify us by telephone of the error. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mdipierro at cs.depaul.edu Fri May 1 16:42:49 2009 From: mdipierro at cs.depaul.edu (Massimo Di Pierro) Date: Fri, 1 May 2009 09:42:49 -0500 Subject: [Chicago] xml to py object In-Reply-To: <804e5c70905010634y390e619hbfd53a1106090351@mail.gmail.com> References: <804e5c70905010634y390e619hbfd53a1106090351@mail.gmail.com> Message-ID: This is a quick solution with no dependencies: import re class Parser: class S(dict): def __setattr__(self,k,v): self[k]=v def __getattr__(self,k): return self[k] r1=re.compile('^\s*\<(?P\w+)(?P.*?)>') r2=re.compile('(?P\w+)\s*=\s*"(?P([^\\\\]|\\\\")*?)"') def __init__(self,text): (self.text,self.value)=(text,Parser.S()) def parse(self,text=None,value=None): if not text: (text,value)=(self.text,self.value) done=False while True: m=self.r1.search(text) if not m: if not done: value.value=text break tag=m.group('tag') k=text.find(''%tag) if k<0: if not done: value.value=text break nested = value[tag] = Parser.S() nested.attr=Parser.S() for item in self.r2.finditer(m.group('attr')): nested.attr[item.group('name')]=item.group('value') self.parse(text[m.end():k],nested) (text, done) = (text[k+3+len(tag):],True) return value x=Parser('in ain b').parse() print x print x.hello print x.hello.attr.n print x.hello.a.value print x.hello.a.attr.n print x.hello.a.attr.m print x.hello.b.value On May 1, 2009, at 8:34 AM, Lukasz Szybalski wrote: > Hello, > I'm trying to convert an xml to python like object where: > > > my company > Full name of the comapny > 1.02 (4.02) > > > would correspond to > > class someobject(object):........ > > and would be accessible via something like: > > print x.ClientApp.Org > print x.ClientApp.Name > print x.ClientApp.Version > > Not sure how things like this would be implemented: > > > > Is there a module/library that is able convert the xml into > something like this? > > Thanks, > Lucas > > > -- > How to create python package? > http://lucasmanual.com/mywiki/PythonPaste > DataHub - create a package that gets, parses, loads, visualizes data > http://lucasmanual.com/mywiki/DataHub > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago From szybalski at gmail.com Fri May 1 17:03:00 2009 From: szybalski at gmail.com (Lukasz Szybalski) Date: Fri, 1 May 2009 10:03:00 -0500 Subject: [Chicago] xml to py object In-Reply-To: References: <804e5c70905010634y390e619hbfd53a1106090351@mail.gmail.com> Message-ID: <804e5c70905010803i4fe699e9ia9d76ec0496b86f3@mail.gmail.com> On Fri, May 1, 2009 at 9:42 AM, Massimo Di Pierro wrote: > This is a quick solution with no dependencies: > > import re > > > class Parser: > ? ?class S(dict): > ? ? ? ?def __setattr__(self,k,v): self[k]=v > ? ? ? ?def __getattr__(self,k): return self[k] > ? ?r1=re.compile('^\s*\<(?P\w+)(?P.*?)>') > ? ?r2=re.compile('(?P\w+)\s*=\s*"(?P([^\\\\]|\\\\")*?)"') > ? ?def __init__(self,text): (self.text,self.value)=(text,Parser.S()) > ? ?def parse(self,text=None,value=None): > ? ? ? ?if not text: (text,value)=(self.text,self.value) > ? ? ? ?done=False > ? ? ? ?while True: > ? ? ? ? ? ?m=self.r1.search(text) > ? ? ? ? ? ?if not m: > ? ? ? ? ? ? ? ?if not done: value.value=text > ? ? ? ? ? ? ? ?break > ? ? ? ? ? ?tag=m.group('tag') > ? ? ? ? ? ?k=text.find(''%tag) > ? ? ? ? ? ?if k<0: > ? ? ? ? ? ? ? ?if not done: value.value=text > ? ? ? ? ? ? ? ?break > ? ? ? ? ? ?nested = value[tag] = Parser.S() > ? ? ? ? ? ?nested.attr=Parser.S() > ? ? ? ? ? ?for item in self.r2.finditer(m.group('attr')): > ? ? ? ? ? ? ? ?nested.attr[item.group('name')]=item.group('value') > ? ? ? ? ? ?self.parse(text[m.end():k],nested) > ? ? ? ? ? ?(text, done) = (text[k+3+len(tag):],True) > ? ? ? ?return value > > > x=Parser('in ain b').parse() > print x > print x.hello > print x.hello.attr.n > print x.hello.a.value > print x.hello.a.attr.n > print x.hello.a.attr.m > print x.hello.b.value > objectify it is: from lxml import etree from lxml import objectify #import lxml.usedoctest f=open('Example1.xml','r') tree=objectify.parse(f) f.close() root=tree.getroot() print 'Parsing Root: %s' % root.tag print [ el.tag for el in root.iterchildren() ] Now I can overwrite the data, save, and send for further processing...nice.. Thanks, Lucas From szybalski at gmail.com Fri May 1 20:51:59 2009 From: szybalski at gmail.com (Lukasz Szybalski) Date: Fri, 1 May 2009 13:51:59 -0500 Subject: [Chicago] mailmerge for xml? Message-ID: <804e5c70905011151p6131e6d8s892fbcc04d2ab530@mail.gmail.com> Hello, Sorry if its not too related.....but... Does anybody know a documentation that would show how to create a openoffice template and then fill in the data from an xml? 1. I have an existing xml with a structure 2. I have an existing openoffice document/form 3. I want to fill in information like: Firstname, lastname...etc 4. I want to easly move the xml data to the openoffice form. 5. I will automate the transfer using python uno later on (unless xslt will do it for me) What I'm looking for is a way to define field names in a form that would correspond to a xml. I don't want to translate xml nodes to some field name but I would rather do: xml: my company Full name of the comapny 1.02 (4.02) in my openoffice template create a table and fill it in like this: | ClientApp.Name | ClientApp.Version | Anybody did anything like that? Its like a mailmerge, but for xml to a form, instead of csv to mailing label. Thanks, Lucas From cosmin at offbytwo.com Fri May 1 21:44:46 2009 From: cosmin at offbytwo.com (Cosmin Stejerean) Date: Fri, 1 May 2009 14:44:46 -0500 Subject: [Chicago] mailmerge for xml? In-Reply-To: <804e5c70905011151p6131e6d8s892fbcc04d2ab530@mail.gmail.com> References: <804e5c70905011151p6131e6d8s892fbcc04d2ab530@mail.gmail.com> Message-ID: <383bbcce0905011244l7eb42831y36e9c9fc50103396@mail.gmail.com> On Fri, May 1, 2009 at 1:51 PM, Lukasz Szybalski wrote: > Hello, > Sorry if its not too related.....but... > > Does anybody know a documentation that would show how to create a > openoffice template and then fill in the data from an xml? > > 1. I have an existing xml with a structure > 2. I have an existing openoffice document/form > 3. I want to fill in information like: Firstname, lastname...etc > 4. I want to easly move the xml data to the openoffice form. > 5. I will automate the transfer using python uno later on (unless xslt > will do it for me) > > What I'm looking for is a way to define field names in a form that > would correspond to a xml. I don't want to translate xml nodes to some > field name but I would rather do: > > xml: > > my company > Full name of the comapny > 1.02 (4.02) > > > in my openoffice template create a table and fill it in like this: > > | ClientApp.Name | ClientApp.Version | > > > Anybody did anything like that? Its like a mailmerge, but for xml to a > form, instead of csv to mailing label. > We've done similar things at work in the past, although we filled OpenOffice templates with data from a database. If you're using lxml.objectify to translate your XML into an object tree and have some flexibility over your ODT layout I would simply use a regex for the transformation with some code that looks like import re pattern = re.compile('\$\$(.+?)\$\$') for match in pattern.findall(otdbody): current = root # object form lxml.objectify for level in match.split('.'): current = getattr(current, level) odtbody.replace(match, current) I think that should do it. -- Cosmin Stejerean http://offbytwo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From cosmin at offbytwo.com Fri May 1 21:45:55 2009 From: cosmin at offbytwo.com (Cosmin Stejerean) Date: Fri, 1 May 2009 14:45:55 -0500 Subject: [Chicago] mailmerge for xml? In-Reply-To: <383bbcce0905011244l7eb42831y36e9c9fc50103396@mail.gmail.com> References: <804e5c70905011151p6131e6d8s892fbcc04d2ab530@mail.gmail.com> <383bbcce0905011244l7eb42831y36e9c9fc50103396@mail.gmail.com> Message-ID: <383bbcce0905011245h2a6d6de4p85a28a2fb0100b55@mail.gmail.com> On Fri, May 1, 2009 at 2:44 PM, Cosmin Stejerean wrote: > On Fri, May 1, 2009 at 1:51 PM, Lukasz Szybalski wrote: > >> Hello, >> Sorry if its not too related.....but... >> >> Does anybody know a documentation that would show how to create a >> openoffice template and then fill in the data from an xml? >> >> 1. I have an existing xml with a structure >> 2. I have an existing openoffice document/form >> 3. I want to fill in information like: Firstname, lastname...etc >> 4. I want to easly move the xml data to the openoffice form. >> 5. I will automate the transfer using python uno later on (unless xslt >> will do it for me) >> >> What I'm looking for is a way to define field names in a form that >> would correspond to a xml. I don't want to translate xml nodes to some >> field name but I would rather do: >> >> xml: >> >> my company >> Full name of the comapny >> 1.02 (4.02) >> >> >> in my openoffice template create a table and fill it in like this: >> >> | ClientApp.Name | ClientApp.Version | >> >> >> Anybody did anything like that? Its like a mailmerge, but for xml to a >> form, instead of csv to mailing label. >> > > We've done similar things at work in the past, although we filled > OpenOffice templates with data from a database. If you're using > lxml.objectify to translate your XML into an object tree and have some > flexibility over your ODT layout I would simply use a regex for the > transformation with some code that looks like > > import re > > pattern = re.compile('\$\$(.+?)\$\$') > > That pattern assumes you're using $$something$$ for your variable names in the form so that it's easy to just pick out all of them, change accordingly or use something else to identify all the things that need to be replaced. -- Cosmin Stejerean http://offbytwo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From szybalski at gmail.com Fri May 1 22:07:43 2009 From: szybalski at gmail.com (Lukasz Szybalski) Date: Fri, 1 May 2009 15:07:43 -0500 Subject: [Chicago] mailmerge for xml? In-Reply-To: <383bbcce0905011244l7eb42831y36e9c9fc50103396@mail.gmail.com> References: <804e5c70905011151p6131e6d8s892fbcc04d2ab530@mail.gmail.com> <383bbcce0905011244l7eb42831y36e9c9fc50103396@mail.gmail.com> Message-ID: <804e5c70905011307j36e3acadv55e962ee67a88cfd@mail.gmail.com> On Fri, May 1, 2009 at 2:44 PM, Cosmin Stejerean wrote: > On Fri, May 1, 2009 at 1:51 PM, Lukasz Szybalski > wrote: >> >> Hello, >> Sorry if its not too related.....but... >> >> Does anybody know a documentation that would show how to create ?a >> openoffice template and then fill in the data from an xml? >> >> 1. I have an existing xml with a structure >> 2. I have an existing openoffice document/form >> 3. I want to fill in information like: Firstname, lastname...etc >> 4. I want to easly move the xml data to the openoffice form. >> 5. I will automate the transfer using python uno later on (unless xslt >> will do it for me) >> >> What I'm looking for is a way to define field names in a form that >> would correspond to a xml. I don't want to translate xml nodes to some >> field name but I would rather do: >> >> xml: >> ? ? >> ? ? ? ? ? my company >> ? ? ? ? ? ?Full name of the comapny >> ? ? ? ? ? 1.02 (4.02) >> ? ? ? >> >> in my openoffice template create a table and fill it in like this: >> >> | ? ClientApp.Name ? ? ? | ?ClientApp.Version ? ? | >> >> >> Anybody did anything like that? Its like a mailmerge, but for xml to a >> form, instead of csv to mailing label. > > We've done similar things at work in the past, although we filled OpenOffice > templates with data from a database. If you're using lxml.objectify to > translate your XML into an object tree and have some flexibility over your > ODT layout I would simply use a regex for the transformation with some code > that looks like > import re > pattern = re.compile('\$\$(.+?)\$\$') > for match in pattern.findall(otdbody): > ??current = root # object form lxml.objectify > ??for level in match.split('.'): > ?? ? current = getattr(current, level) > ??odtbody.replace(match, current) > > I think that should do it. I'll test it. Have you done anything with a xforms in openoffice. There is a tutorial that shows how to build a form (from to xml) but it does not show how to go the other way. If I could build the template using xforms, and then use similar program as you have above to fill it in, then that would give me form to xml, form to pdf, xml to form, xml to form to pdf. Thanks, Lucas From cosmin at offbytwo.com Fri May 1 23:21:18 2009 From: cosmin at offbytwo.com (Cosmin Stejerean) Date: Fri, 1 May 2009 16:21:18 -0500 Subject: [Chicago] mailmerge for xml? In-Reply-To: <804e5c70905011307j36e3acadv55e962ee67a88cfd@mail.gmail.com> References: <804e5c70905011151p6131e6d8s892fbcc04d2ab530@mail.gmail.com> <383bbcce0905011244l7eb42831y36e9c9fc50103396@mail.gmail.com> <804e5c70905011307j36e3acadv55e962ee67a88cfd@mail.gmail.com> Message-ID: <383bbcce0905011421i423786d8l857bfc0632e95412@mail.gmail.com> On Fri, May 1, 2009 at 3:07 PM, Lukasz Szybalski wrote: > > Have you done anything with a xforms in openoffice. There is a > tutorial that shows how to build a form (from to xml) but it does not > show how to go the other way. If I could build the template using > xforms, and then use similar program as you have above to fill it in, > then that would give me form to xml, form to pdf, xml to form, xml to > form to pdf. > I haven't done anything with xforms and I'm not entirely sure I understand your use case. However since the XForms document is written in XML you can probably use a similar technique to generate forms. Well, I mean you can use a similar technique in any kind of text template, you're just substituting values in a text document with values given by another XML element. If you need further help with what you're working on and it happens to be too off-topic feel free to ping me off list. -- Cosmin Stejerean http://offbytwo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bray at sent.com Wed May 6 19:16:14 2009 From: bray at sent.com (Brian Ray) Date: Wed, 6 May 2009 12:16:14 -0500 Subject: [Chicago] May Monthly Call for Presentors Message-ID: I have on my schedule ThoughtWorks as a venue for next Thursday. Any topics out there someone wants to tackle? I have a feeling this is going to be real great. Any one else miss seeing all the ChiPy folks? Brian Ray From swgithen at mtu.edu Wed May 6 20:07:19 2009 From: swgithen at mtu.edu (Steven Githens) Date: Wed, 06 May 2009 14:07:19 -0400 Subject: [Chicago] May Monthly Call for Presentors In-Reply-To: References: Message-ID: <4A01D1D7.1050804@mtu.edu> I can do a lightening talk about either: icon-to-speech : A little app I started hacking on with others at PyCon. It's for folks with things like cerebral palsy and other conditions so they can just click on the verbs/nouns/adj's and then it will speak them. or: the wsgi<->servlet adaptor now included in Jython 2.5. Allowing Pylons, Django, and other WSGI frameworks to be thrown into a war file and deployed. Neither one requires more than 10 minutes, so this definately wouldn't be a main topic. Cheers, Steve Brian Ray wrote: > I have on my schedule ThoughtWorks as a venue for next Thursday. > > Any topics out there someone wants to tackle? > > I have a feeling this is going to be real great. Any one else miss > seeing all the ChiPy folks? > > Brian Ray > > > > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago From tal.liron at threecrickets.com Wed May 6 20:04:03 2009 From: tal.liron at threecrickets.com (Tal Liron) Date: Wed, 06 May 2009 13:04:03 -0500 Subject: [Chicago] May Monthly Call for Presentors In-Reply-To: References: Message-ID: <4A01D113.9000207@threecrickets.com> Hey Py, Once again, I volunteer to do a presentation of Jython in a "real world" scenario. Is there interest? -Tal Brian Ray wrote: > I have on my schedule ThoughtWorks as a venue for next Thursday. > > Any topics out there someone wants to tackle? > > I have a feeling this is going to be real great. Any one else miss > seeing all the ChiPy folks? > > Brian Ray > > > > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago From tal.liron at threecrickets.com Wed May 6 20:15:53 2009 From: tal.liron at threecrickets.com (Tal Liron) Date: Wed, 06 May 2009 13:15:53 -0500 Subject: [Chicago] May Monthly Call for Presentors In-Reply-To: <4A01D1D7.1050804@mtu.edu> References: <4A01D1D7.1050804@mtu.edu> Message-ID: <4A01D3D9.5090304@threecrickets.com> Ah, yes. I should mention that, depending on interests, my presentation can be on the longer side. I'm not only introducing Jython (and in turn some Java platform issues), but also a platform for creating RESTful applications using Jython. I could potentially involve an introduction to REST concepts. (I already have something prepared for that.) It could look something like this: 1. Intro to Jython and the Java platform 2. What is REST? 3. Using Jython to write a simple REST application Seems likely to fit in the 30-45-minute range... If this is too much, I can also do something shorter. -Tal From dgriff1 at gmail.com Wed May 6 20:17:01 2009 From: dgriff1 at gmail.com (Daniel Griffin) Date: Wed, 6 May 2009 13:17:01 -0500 Subject: [Chicago] May Monthly Call for Presentors In-Reply-To: <4A01D3D9.5090304@threecrickets.com> References: <4A01D1D7.1050804@mtu.edu> <4A01D3D9.5090304@threecrickets.com> Message-ID: <3db160680905061117x173a74e1p4d8ede89778a7553@mail.gmail.com> I would be interested to learn about Jython. On Wed, May 6, 2009 at 1:15 PM, Tal Liron wrote: > Ah, yes. I should mention that, depending on interests, my presentation can > be on the longer side. > > I'm not only introducing Jython (and in turn some Java platform issues), > but also a platform for creating RESTful applications using Jython. I could > potentially involve an introduction to REST concepts. (I already have > something prepared for that.) It could look something like this: > > 1. Intro to Jython and the Java platform > 2. What is REST? > 3. Using Jython to write a simple REST application > > Seems likely to fit in the 30-45-minute range... If this is too much, I can > also do something shorter. > > -Tal > > > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pfein at pobox.com Wed May 6 20:41:15 2009 From: pfein at pobox.com (Pete) Date: Wed, 6 May 2009 13:41:15 -0500 Subject: [Chicago] May Monthly Call for Presentors In-Reply-To: <4A01D3D9.5090304@threecrickets.com> References: <4A01D1D7.1050804@mtu.edu> <4A01D3D9.5090304@threecrickets.com> Message-ID: On May 6, 2009, at 1:15 PM, Tal Liron wrote: > 2. What is REST? At some point in the last year, The Public (or at least the subset that goes to Python talks) really caught on to REST. While a brief overview is often helpful, explanations of HTTP methods & resource tables are no longer as necessary as they were 2+ years ago. That said, seeing as we don't all seem to agree on what's RESTful, more detail is certainly appropriate if giving a talk on REST-qua-REST. REST: It's not a protocol, it's not an architecture... it's a style. --Pete From tal.liron at threecrickets.com Wed May 6 20:44:51 2009 From: tal.liron at threecrickets.com (Tal Liron) Date: Wed, 06 May 2009 13:44:51 -0500 Subject: [Chicago] May Monthly Call for Presentors In-Reply-To: References: <4A01D1D7.1050804@mtu.edu> <4A01D3D9.5090304@threecrickets.com> Message-ID: <4A01DAA3.30003@threecrickets.com> Makes sense. I can limit the REST introduction to just 5 minutes (for people who don't know it), and then focus the rest of the talk on the specific RESTful application I'll be building. Showing rather than telling is best. -Tal Pete wrote: > On May 6, 2009, at 1:15 PM, Tal Liron wrote: >> 2. What is REST? > > At some point in the last year, The Public (or at least the subset > that goes to Python talks) really caught on to REST. While a brief > overview is often helpful, explanations of HTTP methods & resource > tables are no longer as necessary as they were 2+ years ago. That > said, seeing as we don't all seem to agree on what's RESTful, more > detail is certainly appropriate if giving a talk on REST-qua-REST. > > REST: It's not a protocol, it's not an architecture... it's a style. > > --Pete > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago From fasteliteprogrammer at yahoo.com Thu May 7 13:35:23 2009 From: fasteliteprogrammer at yahoo.com (Craig) Date: Thu, 7 May 2009 04:35:23 -0700 (PDT) Subject: [Chicago] wingware question Message-ID: <623570.34561.qm@web36504.mail.mud.yahoo.com> Does anyone use wingware personel and how do i get the number line to work on it? Any does anyone know if i need to reinstall linux after i buy it can i reinstall wingware? From jbsnyder at fanplastic.org Thu May 7 20:55:48 2009 From: jbsnyder at fanplastic.org (James Snyder) Date: Thu, 7 May 2009 13:55:48 -0500 Subject: [Chicago] May Monthly Call for Presentors In-Reply-To: References: Message-ID: I can do the long-discussed beer talk :-) I can also talk about PyMite/Python on a Chip, which is a heavily scaled down version of Python running on microcontroller devices (as opposed to using Python and RPCs to control a micro, as shown during the Arduino talk). It has a minimum requirement of about 4K of SRAM. -jsnyder On May 6, 2009, at 12:16 PM, Brian Ray wrote: > I have on my schedule ThoughtWorks as a venue for next Thursday. > > Any topics out there someone wants to tackle? > > I have a feeling this is going to be real great. Any one else miss > seeing all the ChiPy folks? > > Brian Ray > > > > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago -- James Snyder Biomedical Engineering Northwestern University jbsnyder at fanplastic.org http://fanplastic.org/key.txt ph: (847) 448-0386 -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part URL: From carl at personnelware.com Thu May 7 21:02:42 2009 From: carl at personnelware.com (Carl Karsten) Date: Thu, 7 May 2009 14:02:42 -0500 Subject: [Chicago] May Monthly Call for Presentors In-Reply-To: <-1598396139448723764@unknownmsgid> References: <-1598396139448723764@unknownmsgid> Message-ID: <549053140905071202i4fb99cd5g439a9a6b418f4563@mail.gmail.com> PyMite is pretty cool. Here is the pycon lightning talk on it: http://carlfk.blip.tv/file/1996853/ "Learn more about the PyMite VM at http://pymite.python-hosting.com and the Python-on-a-chip project at http://www.pythononachip.org" Carl K On Thu, May 7, 2009 at 1:55 PM, James Snyder wrote: > I can do the long-discussed beer talk :-) > > I can also talk about PyMite/Python on a Chip, which is a heavily scaled > down version of Python running on microcontroller devices (as opposed to > using Python and RPCs to control a micro, as shown during the Arduino talk). > ?It has a minimum requirement of about 4K of SRAM. > > -jsnyder > > > On May 6, 2009, at 12:16 PM, Brian Ray wrote: > >> I have on my schedule ThoughtWorks as a venue for next Thursday. >> >> Any topics out there someone wants to tackle? >> >> I have a feeling this is going to be real great. Any one else miss seeing >> all the ChiPy folks? >> >> Brian Ray >> >> >> >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> http://mail.python.org/mailman/listinfo/chicago > > -- > James Snyder > Biomedical Engineering > Northwestern University > jbsnyder at fanplastic.org > http://fanplastic.org/key.txt > ph: (847) 448-0386 > > > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > > -- Carl K From shekay at pobox.com Thu May 7 22:12:06 2009 From: shekay at pobox.com (sheila miguez) Date: Thu, 7 May 2009 15:12:06 -0500 Subject: [Chicago] May Monthly Call for Presentors In-Reply-To: <4A01D1D7.1050804@mtu.edu> References: <4A01D1D7.1050804@mtu.edu> Message-ID: I'm interested in the icon-to-speech. Actually, everyone has posted interesting talks, but since no one replied to the icon-to-speech talk I want to call it out. On Wed, May 6, 2009 at 1:07 PM, Steven Githens wrote: > I can do a lightening talk about either: > > icon-to-speech : A little app I started hacking on with others at PyCon. > ?It's for folks with things like cerebral palsy and other conditions so they > can just click on the verbs/nouns/adj's and then it will speak them. > > or: > > the wsgi<->servlet adaptor now included in Jython 2.5. ?Allowing Pylons, > Django, and other WSGI frameworks to be thrown into a war file and deployed. > > Neither one requires more than 10 minutes, so this definately wouldn't be a > main topic. > > Cheers, > Steve > > Brian Ray wrote: >> >> I have on my schedule ThoughtWorks as a venue for next Thursday. >> >> Any topics out there someone wants to tackle? >> >> I have a feeling this is going to be real great. Any one else miss seeing >> all the ChiPy folks? >> >> Brian Ray >> >> >> >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> http://mail.python.org/mailman/listinfo/chicago > > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > -- sheila From mtemkin at speakeasy.net Fri May 8 17:18:24 2009 From: mtemkin at speakeasy.net (Marc Temkin) Date: Fri, 8 May 2009 10:18:24 -0500 Subject: [Chicago] ACM 5/13 presentation on Parallel and Concurrent Programming Message-ID: <5640960E1E0340C8B0E68AFCE09A9A19@Dreamcatcher2> Think Parallel! Spend 90 minutes preparing for the next decade of computing; where in addition to all the present challenges we must also think parallel in order to compute faster. The next Chicago ACM meeting, on 5/13, presents Dr. Cary Gray of Wheaton College. Cary will be speaking about the History of Parallel & Concurrent Computing. This talk concerns the hidden history of parallel processing, since 1960; and how that history gives us the best idea of how to proceed now with multiple processors. Cary worked for Texas Instruments and Digital Equipment Corporation and earned his PhD from Stanford. He has been teaching undergraduates for the last 16 years. For complete information on this meeting visit: www.chicagoacm.org Marc Temkin Email:mtemkin at speakeasy.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From tcp at mac.com Sat May 9 04:47:51 2009 From: tcp at mac.com (Ted Pollari) Date: Fri, 08 May 2009 19:47:51 -0700 Subject: [Chicago] May Monthly Call for Presentors In-Reply-To: References: <4A01D1D7.1050804@mtu.edu> Message-ID: <0343853E-7184-4DB9-BE3C-1974DCF8B720@mac.com> On May 7, 2009, at 1:12 PM, sheila miguez wrote: > I'm interested in the icon-to-speech. Actually, everyone has posted > interesting talks, but since no one replied to the icon-to-speech talk > I want to call it out. FWIW, I replied off list about this, saying I'd love to see it but that I won't be back in Chicago until June. -tcp From g at rrett.us.com Fri May 8 22:10:17 2009 From: g at rrett.us.com (Garrett Smith) Date: Fri, 8 May 2009 15:10:17 -0500 (CDT) Subject: [Chicago] May Monthly Call for Presentors In-Reply-To: <549053140905071202i4fb99cd5g439a9a6b418f4563@mail.gmail.com> Message-ID: ----- "Carl Karsten" wrote: > PyMite is pretty cool. +1 ...way cool From shekay at pobox.com Mon May 11 22:12:19 2009 From: shekay at pobox.com (sheila miguez) Date: Mon, 11 May 2009 15:12:19 -0500 Subject: [Chicago] thursday signup Message-ID: Who do we contact to get on the security list for Thursday's meeting? -- sheila From bray at sent.com Mon May 11 23:13:40 2009 From: bray at sent.com (Brian Ray) Date: Mon, 11 May 2009 16:13:40 -0500 Subject: [Chicago] thursday signup In-Reply-To: References: Message-ID: <89E3518D-F2EB-4FA2-B3CF-8C83C94FB306@sent.com> On May 11, 2009, at 3:12 PM, sheila miguez wrote: > Who do we contact to get on the security list for Thursday's meeting? Yesterday, I confirmed with Josh that he will host at ThoughWorks. Yay! Josh, where do you want ppl to RSVP, which email adr?? Thanks, Brian From allan2600 at gmail.com Mon May 11 21:54:05 2009 From: allan2600 at gmail.com (Allan Spale) Date: Mon, 11 May 2009 14:54:05 -0500 Subject: [Chicago] Ignite Chicago: May 28 Message-ID: <79acc5430905111254r5c46207aw31c040140562f0ba@mail.gmail.com> Hi everyone, I wanted to share with you an upcoming Ignite event that will be taking place in Chicago. If you like the idea of an evening of lightning talks with a twist that involve any topics, perhaps this event is for you. General information about Ignite can be found here: http://ignite.oreilly.com/. Interested in attending or presenting a topic? Read below... Allan * * *If you had five minutes on stage what would you say?* Submissions due tom, May 12th! Sign up Today! tinyurl.com/ignitechicago Ignite Chicago offers an ongoing series of short presentations on a variety of topics. Presentations can range from a business plan for a start up to the history of the Samurai sword. Become the next Jeopardy star by learning about different topics and meeting some interesting folk in the process. The launch of Ignite Chicago will occur on* Thursday, May 28 at 6:30pm* in Evanston at the Kellogg School of Management. Idea submissions for the presentations will be due on May 12th. If you want to keep in touch to learn more or to submit an idea please check out: tinyurl.com/ignitechicago Thanks, *Ignite Chicago * -------------- next part -------------- An HTML attachment was scrubbed... URL: From pfein at pobox.com Tue May 12 00:21:35 2009 From: pfein at pobox.com (Pete) Date: Mon, 11 May 2009 17:21:35 -0500 Subject: [Chicago] Ignite Chicago: May 28 In-Reply-To: <79acc5430905111254r5c46207aw31c040140562f0ba@mail.gmail.com> References: <79acc5430905111254r5c46207aw31c040140562f0ba@mail.gmail.com> Message-ID: <88363BCE-BE8F-4349-A7CA-A59BA6BDEDDD@pobox.com> Damn it, I just thought of this. All the good ideas are taken. On May 11, 2009, at 2:54 PM, Allan Spale wrote: > Hi everyone, > > I wanted to share with you an upcoming Ignite event that will be > taking place in Chicago. If you like the idea of an evening of > lightning talks with a twist that involve any topics, perhaps this > event is for you. General information about Ignite can be found > here: http://ignite.oreilly.com/. Interested in attending or > presenting a topic? Read below... > > > > Allan > > > > If you had five minutes on stage what would you say? > Submissions due tom, May 12th! Sign up Today! > > tinyurl.com/ignitechicago > > Ignite Chicago offers an ongoing series of short presentations on a > variety of topics. Presentations can range from a business plan for > a start up to the history of the Samurai sword. Become the next > Jeopardy star by learning about different topics and meeting some > interesting folk in the process. > > The launch of Ignite Chicago will occur on Thursday, May 28 at > 6:30pm in Evanston at the Kellogg School of Management. Idea > submissions for the presentations will be due on May 12th. > > If you want to keep in touch to learn more or to submit an idea > please check out: tinyurl.com/ignitechicago > > Thanks, > Ignite Chicago _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcroneme at thoughtworks.com Tue May 12 00:36:07 2009 From: jcroneme at thoughtworks.com (Josh Cronemeyer) Date: Mon, 11 May 2009 17:36:07 -0500 Subject: [Chicago] thursday signup In-Reply-To: <89E3518D-F2EB-4FA2-B3CF-8C83C94FB306@sent.com> Message-ID: Just send to my TW email: jcroneme at thoughtworks dot com Expect to be in a world of hurt if you don't RSVP ;) http://www.cuberick.com/2008/12/history-of-security-at-aon-center.html Brian Ray 05/11/09 04:13 PM To The Chicago Python Users Group cc Josh Cronemeyer , Josh Cronemeyer Subject Re: [Chicago] thursday signup On May 11, 2009, at 3:12 PM, sheila miguez wrote: > Who do we contact to get on the security list for Thursday's meeting? Yesterday, I confirmed with Josh that he will host at ThoughWorks. Yay! Josh, where do you want ppl to RSVP, which email adr?? Thanks, Brian -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 13340 bytes Desc: not available URL: From tal.liron at threecrickets.com Tue May 12 19:56:34 2009 From: tal.liron at threecrickets.com (Tal Liron) Date: Tue, 12 May 2009 12:56:34 -0500 Subject: [Chicago] Jython? Message-ID: <4A09B852.5080207@threecrickets.com> Hey, uhm, group. Am I actually doing a "REST with Jython" presentation on Thursday? My authority detector is failing to point me towards how these things get decided by the group... I'm game either way, just would like to know if I should prepare. -Tal From shekay at pobox.com Tue May 12 20:09:23 2009 From: shekay at pobox.com (sheila miguez) Date: Tue, 12 May 2009 13:09:23 -0500 Subject: [Chicago] Jython? In-Reply-To: <4A09B852.5080207@threecrickets.com> References: <4A09B852.5080207@threecrickets.com> Message-ID: I am having trouble detecting consensus. Maybe you could swoop in to the wiki page and stick yourself on the list and see if anyone objects. On Tue, May 12, 2009 at 12:56 PM, Tal Liron wrote: > Hey, uhm, group. Am I actually doing a "REST with Jython" presentation on > Thursday? > > > My authority detector is failing to point me towards how these things get > decided by the group... I'm game either way, just would like to know if I > should prepare. > > > -Tal > > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > -- sheila From tal.liron at threecrickets.com Tue May 12 20:15:18 2009 From: tal.liron at threecrickets.com (Tal Liron) Date: Tue, 12 May 2009 13:15:18 -0500 Subject: [Chicago] Jython? In-Reply-To: References: <4A09B852.5080207@threecrickets.com> Message-ID: <4A09BCB6.7040605@threecrickets.com> The wiki tells me to check the mailing list. :) No sweat, we can discuss this at the meeting and decide. -Tal sheila miguez wrote: > I am having trouble detecting consensus. Maybe you could swoop in to > the wiki page and stick yourself on the list and see if anyone > objects. > > On Tue, May 12, 2009 at 12:56 PM, Tal Liron wrote: > >> Hey, uhm, group. Am I actually doing a "REST with Jython" presentation on >> Thursday? >> >> >> My authority detector is failing to point me towards how these things get >> decided by the group... I'm game either way, just would like to know if I >> should prepare. >> >> >> -Tal >> >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> http://mail.python.org/mailman/listinfo/chicago >> >> > > > > From shekay at pobox.com Tue May 12 20:20:11 2009 From: shekay at pobox.com (sheila miguez) Date: Tue, 12 May 2009 13:20:11 -0500 Subject: [Chicago] Jython? In-Reply-To: <4A09BCB6.7040605@threecrickets.com> References: <4A09B852.5080207@threecrickets.com> <4A09BCB6.7040605@threecrickets.com> Message-ID: Lo, I have edited the wiki as so, since no one has stepped in to do it yet. Fix this if it is broken. May's meeting is hosted by ThoughtWorks. Expect to be in a world of hurt if you don't RSVP ;) Avoid this fate by emailing jcroneme at thoughtworks dot com. ThoughtWorks Aon Center 200 E. Randolph Chicago , IL 60601 25th Floor What are we talking about? home brew? restful jython? pyMite? On Tue, May 12, 2009 at 1:15 PM, Tal Liron wrote: > The wiki tells me to check the mailing list. :) > > > No sweat, we can discuss this at the meeting and decide. > > > -Tal > > sheila miguez wrote: > >> I am having trouble detecting consensus. Maybe you could swoop in to >> the wiki page and stick yourself on the list and see if anyone >> objects. >> >> On Tue, May 12, 2009 at 12:56 PM, Tal Liron >> wrote: >> >>> >>> Hey, uhm, group. Am I actually doing a "REST with Jython" presentation on >>> Thursday? >>> >>> >>> My authority detector is failing to point me towards how these things get >>> decided by the group... I'm game either way, just would like to know if I >>> should prepare. >>> >>> >>> -Tal >>> >>> _______________________________________________ >>> Chicago mailing list >>> Chicago at python.org >>> http://mail.python.org/mailman/listinfo/chicago >>> >>> >> >> >> >> > > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > -- sheila From bray at sent.com Tue May 12 20:27:08 2009 From: bray at sent.com (Brian Ray) Date: Tue, 12 May 2009 13:27:08 -0500 Subject: [Chicago] ANN Chicago Python User Group May Meeting This Thursday Message-ID: Chicago Python User Group ========================= Calling all Python Programmers in (or near enough) the Windy City!!! (and JAVA Programmers, and those into REST, too) We are having the highest meeting yet!! 25th floor! May 14, 2009 at ThoughtWorks Inc. 200 E Randolph St 25th Floor Chicago, IL RSVP: jcroneme (at) thoughtworks.com Topics: * REST with Jython (45 min) -- Tal Liron * icon-to-speech (10 min) and wsgi<->servlet adaptor (10 min) -- Steve Githens * PyMite Lightening Talks (10 min each until infinity, or until they kick us out) -- Various Artists About ChiPy ----------- ChiPy is a group of Chicago Python Programmers, l33t, and n00bs. Meetings are held monthly at various locations around Chicago. Also, ChiPy is a proud sponsor of many Open Source and Educational efforts in Chicago. Stay tuned to the mailing list for more info. ChiPy website: ChiPy Mailing List: ChiPy Announcement *ONLY* Mailing List: Python website: From bray at sent.com Tue May 12 20:30:45 2009 From: bray at sent.com (Brian Ray) Date: Tue, 12 May 2009 13:30:45 -0500 Subject: [Chicago] Jython? In-Reply-To: References: <4A09B852.5080207@threecrickets.com> <4A09BCB6.7040605@threecrickets.com> Message-ID: <0DA437DA-4C97-4D7E-8620-83A5CF8DE5B5@sent.com> On May 12, 2009, at 1:20 PM, sheila miguez wrote: > Lo, I have edited the wiki as so, since no one has stepped in to do it > yet. Fix this if it is broken. > What is wrong with what I just put there? Perhaps it was complaining because I was editing at the same time. If you see something, let us know. Thanks, Brian From shekay at pobox.com Tue May 12 20:32:25 2009 From: shekay at pobox.com (sheila miguez) Date: Tue, 12 May 2009 13:32:25 -0500 Subject: [Chicago] Jython? In-Reply-To: <0DA437DA-4C97-4D7E-8620-83A5CF8DE5B5@sent.com> References: <4A09B852.5080207@threecrickets.com> <4A09BCB6.7040605@threecrickets.com> <0DA437DA-4C97-4D7E-8620-83A5CF8DE5B5@sent.com> Message-ID: On Tue, May 12, 2009 at 1:30 PM, Brian Ray wrote: > > On May 12, 2009, at 1:20 PM, sheila miguez wrote: > >> Lo, I have edited the wiki as so, since no one has stepped in to do it >> yet. Fix this if it is broken. >> > > What is wrong with what I just put there? Perhaps it was complaining because > I was editing at the same time. > > If you see something, let us know. Nothing was wrong. I started editing when it was the old info about no meeting due to pycon. Sorry for clobbering what you were doing. not intended at all. -- sheila From bray at sent.com Tue May 12 20:35:38 2009 From: bray at sent.com (Brian Ray) Date: Tue, 12 May 2009 13:35:38 -0500 Subject: [Chicago] Jython? In-Reply-To: References: <4A09B852.5080207@threecrickets.com> <4A09BCB6.7040605@threecrickets.com> <0DA437DA-4C97-4D7E-8620-83A5CF8DE5B5@sent.com> Message-ID: <9E78B513-5204-4631-957B-E2D0CEC42367@sent.com> On May 12, 2009, at 1:32 PM, sheila miguez wrote: > Nothing was wrong. I started editing when it was the old info about no > meeting due to pycon. Sorry for clobbering what you were doing. not > intended at all. : ) I do want to update the Wiki software and/or move it. Last time we tried we could not get everything to convert perfectly. Evidently, there is some important stuff up there. Regards, Brian Ray From mjmccune at gmail.com Tue May 12 20:56:14 2009 From: mjmccune at gmail.com (Mike McCune) Date: Tue, 12 May 2009 13:56:14 -0500 Subject: [Chicago] Chicago Digest, Vol 45, Issue 11 In-Reply-To: References: Message-ID: <3d5f70d0905121156u4a31014cya5a100760054ce0f@mail.gmail.com> What time is it? > > Message: 5 > Date: Tue, 12 May 2009 13:27:08 -0500 > From: Brian Ray > To: Chipy Announce , The Chicago Python > Users Group > Cc: python-announce-list at python.org, Linux Users Of Northern Illinois > - Technical Discussion , Chirb discussion list > , > chicago-java-advertise at yahoogroups.com, DePaul Linux Community > > Subject: [Chicago] ANN Chicago Python User Group May Meeting This > Thursday > Message-ID: > Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes > > Chicago Python User Group > ========================= > > Calling all Python Programmers in (or near enough) the Windy City!!! > (and JAVA Programmers, and those into REST, too) We are having the > highest meeting yet!! 25th floor! > > May 14, 2009 at ThoughtWorks Inc. 200 E Randolph St 25th Floor > Chicago, IL > > RSVP: jcroneme (at) thoughtworks.com > > > Topics: > > * REST with Jython (45 min) -- Tal Liron > * icon-to-speech (10 min) and wsgi<->servlet adaptor (10 min) -- > Steve Githens > * PyMite Lightening Talks (10 min each until infinity, or until > they kick us out) -- Various Artists > > About ChiPy > ----------- > > ChiPy is a group of Chicago Python Programmers, l33t, and n00bs. > Meetings are held monthly at various locations around Chicago. > Also, ChiPy is a proud sponsor of many Open Source and Educational > efforts in Chicago. Stay tuned to the mailing list for more info. > > ChiPy website: > ChiPy Mailing List: > ChiPy Announcement *ONLY* Mailing List: < > http://mail.python.org/mailman/listinfo/chipy-announce > > > Python website: > > > > *************************************** > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tal.liron at threecrickets.com Wed May 13 00:48:56 2009 From: tal.liron at threecrickets.com (Tal Liron) Date: Tue, 12 May 2009 17:48:56 -0500 Subject: [Chicago] Jython? In-Reply-To: <9E78B513-5204-4631-957B-E2D0CEC42367@sent.com> References: <4A09B852.5080207@threecrickets.com> <4A09BCB6.7040605@threecrickets.com> <0DA437DA-4C97-4D7E-8620-83A5CF8DE5B5@sent.com> <9E78B513-5204-4631-957B-E2D0CEC42367@sent.com> Message-ID: <4A09FCD8.6020106@threecrickets.com> I caused a wiki war! Thanks for the de-facto vote of confidence, folk. I'm looking forward to the presentation. I've decided to re-title it to "Jython in Action!!" (yes, those are two exclamation marks!!) and make it as hands-on as possible, as I think it will be more effective use of our time. So, even though we will be doing REST (in action!!), I won't be giving my usual 20-minute introduction/manifesto as to how we got to REST and why we should use it. -Tal!! From swgithen at mtu.edu Wed May 13 02:52:13 2009 From: swgithen at mtu.edu (Steven Githens) Date: Tue, 12 May 2009 20:52:13 -0400 Subject: [Chicago] Jython? In-Reply-To: <4A09FCD8.6020106@threecrickets.com> References: <4A09B852.5080207@threecrickets.com> <4A09BCB6.7040605@threecrickets.com> <0DA437DA-4C97-4D7E-8620-83A5CF8DE5B5@sent.com> <9E78B513-5204-4631-957B-E2D0CEC42367@sent.com> <4A09FCD8.6020106@threecrickets.com> Message-ID: <4A0A19BD.1070803@mtu.edu> Tal Liron wrote: > I caused a wiki war! To put an upbeat spin on things, I believe this is actually our Just-In-Time social compiler in action. -s From joseph.h.garvin at gmail.com Wed May 13 03:22:05 2009 From: joseph.h.garvin at gmail.com (Joseph Garvin) Date: Tue, 12 May 2009 20:22:05 -0500 Subject: [Chicago] New guy attending Thursday ;) Message-ID: Hi all, I've been programming in Python on and off for a few years now on small personal projects and I just moved to the windy city for my first serious post-college job (doing a mix of Python and C++). Just thought I'd ping the list and say hi to RSVP for Thursday. Hope to meet ya'all there, Joe (for security-guard-sake: Joseph Garvin) From tcp at mac.com Wed May 13 07:06:00 2009 From: tcp at mac.com (Ted Pollari) Date: Tue, 12 May 2009 22:06:00 -0700 Subject: [Chicago] Jython? In-Reply-To: <4A0A19BD.1070803@mtu.edu> References: <4A09B852.5080207@threecrickets.com> <4A09BCB6.7040605@threecrickets.com> <0DA437DA-4C97-4D7E-8620-83A5CF8DE5B5@sent.com> <9E78B513-5204-4631-957B-E2D0CEC42367@sent.com> <4A09FCD8.6020106@threecrickets.com> <4A0A19BD.1070803@mtu.edu> Message-ID: <88E7D689-D163-49E7-86C7-45ECF14425B3@mac.com> On May 12, 2009, at 5:52 PM, Steven Githens wrote: > Tal Liron wrote: >> I caused a wiki war! > To put an upbeat spin on things, I believe this is actually our Just- > In-Time social compiler in action. > Indeed, this is just the way ChiPy works. Live it, love it. =) From tal.liron at threecrickets.com Wed May 13 08:11:46 2009 From: tal.liron at threecrickets.com (Tal Liron) Date: Wed, 13 May 2009 01:11:46 -0500 Subject: [Chicago] Jython? In-Reply-To: <88E7D689-D163-49E7-86C7-45ECF14425B3@mac.com> References: <4A09B852.5080207@threecrickets.com> <4A09BCB6.7040605@threecrickets.com> <0DA437DA-4C97-4D7E-8620-83A5CF8DE5B5@sent.com> <9E78B513-5204-4631-957B-E2D0CEC42367@sent.com> <4A09FCD8.6020106@threecrickets.com> <4A0A19BD.1070803@mtu.edu> <88E7D689-D163-49E7-86C7-45ECF14425B3@mac.com> Message-ID: <4A0A64A2.4070404@threecrickets.com> At least it's not realtime garbage collection. (Python uses ref-counting, as we all know.) Speaking of which, will there be free pizza (paid for by a benevolent company with interests in furthering Python)? I just want to know if I should pack a sandwich. Ted Pollari wrote: > > On May 12, 2009, at 5:52 PM, Steven Githens wrote: > >> Tal Liron wrote: >>> I caused a wiki war! >> To put an upbeat spin on things, I believe this is actually our >> Just-In-Time social compiler in action. >> > > Indeed, this is just the way ChiPy works. Live it, love it. > > =) > > > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago From david.durham.jr at gmail.com Wed May 13 17:33:15 2009 From: david.durham.jr at gmail.com (David Durham) Date: Wed, 13 May 2009 10:33:15 -0500 Subject: [Chicago] Jython? In-Reply-To: <4A0A64A2.4070404@threecrickets.com> References: <4A09B852.5080207@threecrickets.com> <4A09BCB6.7040605@threecrickets.com> <0DA437DA-4C97-4D7E-8620-83A5CF8DE5B5@sent.com> <9E78B513-5204-4631-957B-E2D0CEC42367@sent.com> <4A09FCD8.6020106@threecrickets.com> <4A0A19BD.1070803@mtu.edu> <88E7D689-D163-49E7-86C7-45ECF14425B3@mac.com> <4A0A64A2.4070404@threecrickets.com> Message-ID: > Speaking of which, will there be free pizza (paid for by a benevolent > company with interests in furthering Python)? I just want to know if I > should pack a sandwich. I think we should all chip(y) in and buy pizza for Thoughtworks ... (as a ruse, because we intend to drink all of their beer on Thursday) - Dave From joshuacronemeyer at gmail.com Wed May 13 20:40:48 2009 From: joshuacronemeyer at gmail.com (Josh Cronemeyer) Date: Wed, 13 May 2009 13:40:48 -0500 Subject: [Chicago] Jython? In-Reply-To: References: <4A09B852.5080207@threecrickets.com> <0DA437DA-4C97-4D7E-8620-83A5CF8DE5B5@sent.com> <9E78B513-5204-4631-957B-E2D0CEC42367@sent.com> <4A09FCD8.6020106@threecrickets.com> <4A0A19BD.1070803@mtu.edu> <88E7D689-D163-49E7-86C7-45ECF14425B3@mac.com> <4A0A64A2.4070404@threecrickets.com> Message-ID: There will be pizza from Chicago's Pizzeria. I'll probably grab some beer too so Dave isn't disappointed when he looks in our fridge and sees a few ancient and undesirable beers. I'm going to be shutting things down at 9pm because my babysitter turns into a pumpkin at 9:30pm. Sorry! * 3 Worst of all, that means I don't get to go to elephant and castle. Fuller's Porter on Hand Pull. MmMmmmmmm. And if you haven't RSVP'd already... Do it NOW! On Wed, May 13, 2009 at 10:33 AM, David Durham wrote: > > Speaking of which, will there be free pizza (paid for by a benevolent > > company with interests in furthering Python)? I just want to know if I > > should pack a sandwich. > > I think we should all chip(y) in and buy pizza for Thoughtworks ... > (as a ruse, because we intend to drink all of their beer on Thursday) > > > - Dave > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > -------------- next part -------------- An HTML attachment was scrubbed... URL: From szybalski at gmail.com Thu May 14 20:43:59 2009 From: szybalski at gmail.com (Lukasz Szybalski) Date: Thu, 14 May 2009 13:43:59 -0500 Subject: [Chicago] make some text a link via css or javascript In-Reply-To: <804e5c70905141132h2b89c6d0p820897b1dbdeeab0@mail.gmail.com> References: <804e5c70905141109r38b3a5c5i6400ca72eb48bd01@mail.gmail.com> <804e5c70905141132h2b89c6d0p820897b1dbdeeab0@mail.gmail.com> Message-ID: <804e5c70905141143r1d8fe8afjd420291b83787bf1@mail.gmail.com> Hello, Not really python related, but since the notes system is written in python I figured somebody might know the answer to this: I have python based "notes" system. Whenever somebody enters a note like: "See ticket#45" is there a way for me using css or javascript to convert "ticket#45" on the fly to a link like: http://example.com/trac/ticket/14 I want to simplify users experience in a way so that they don't need to enter ticket#45. They would just enter ticket#45 and I would convert it to a url link in their browser? Is that possible? Do you have a link to some css/javascript instructions that show how to do it? One example is this page: http://www.tek-tips.com/viewthread.cfm?qid=1441052&page=6 If you look for a word "computer" it becomes a link to some page.. This is close enough but I can't find the proper javascript.... http://www.experts-exchange.com/Software/Internet_Email/Anti-Virus/Q_22119530.html word "management console" this one just highlights the link ...this would be preferred. Thanks, Lucas On Thu, May 14, 2009 at 1:09 PM, Lukasz Szybalski wrote: > Hello, > I have "notes" system. > Whenever somebody enters a note like: "See ticket#45" is there a way > for me using css or javascript to convert "ticket#45" on the fly to a > link like: > > http://example.com/trac/ticket/14 > > I want to simplify users experience in a way so that they don't need > to enter ticket#45. They would just enter > ticket#45 and I would convert it to a url link in their browser? > > Is that possible? Do you have a css/javascript link that shows ?how to do it? > > Thanks, > Lucas > -- How to create python package? http://lucasmanual.com/mywiki/PythonPaste DataHub - create a package that gets, parses, loads, visualizes data http://lucasmanual.com/mywiki/DataHub -- How to create python package? http://lucasmanual.com/mywiki/PythonPaste DataHub - create a package that gets, parses, loads, visualizes data http://lucasmanual.com/mywiki/DataHub From cosmin at offbytwo.com Thu May 14 21:07:57 2009 From: cosmin at offbytwo.com (Cosmin Stejerean) Date: Thu, 14 May 2009 14:07:57 -0500 Subject: [Chicago] make some text a link via css or javascript In-Reply-To: <804e5c70905141143r1d8fe8afjd420291b83787bf1@mail.gmail.com> References: <804e5c70905141109r38b3a5c5i6400ca72eb48bd01@mail.gmail.com> <804e5c70905141132h2b89c6d0p820897b1dbdeeab0@mail.gmail.com> <804e5c70905141143r1d8fe8afjd420291b83787bf1@mail.gmail.com> Message-ID: <383bbcce0905141207s4c7a3e15ua5209d008d1630dc@mail.gmail.com> On Thu, May 14, 2009 at 1:43 PM, Lukasz Szybalski wrote: > Hello, > Not really python related, but since the notes system is written in > python I figured somebody might know the answer to this: > > I have python based "notes" system. > Whenever somebody enters a note like: "See ticket#45" is there a way > for me using css or javascript to convert "ticket#45" on the fly to a > link like: > http://example.com/trac/ticket/14 > Regular expressions are built into JavaScript. Here's an example that will do what you want. var re = /ticket#(\d+)/g var text = "See ticket#123 and ticket#124" text.replace(re, ' text.replace(re, ' function replacer(){ var re = /ticket#(\d+)/g document.getElementById("area").innerHTML=document.getElementById("area").innerHTML.replace(re, '
I'd like to point your attention to ticket#12
From warren.lindsey at gmail.com Fri May 15 04:21:27 2009 From: warren.lindsey at gmail.com (Warren Lindsey) Date: Thu, 14 May 2009 21:21:27 -0500 Subject: [Chicago] make some text a link via css or javascript In-Reply-To: <19c3441a0905141220r7fb32946k37db1c3d8c5f2c0b@mail.gmail.com> References: <804e5c70905141109r38b3a5c5i6400ca72eb48bd01@mail.gmail.com> <804e5c70905141132h2b89c6d0p820897b1dbdeeab0@mail.gmail.com> <804e5c70905141143r1d8fe8afjd420291b83787bf1@mail.gmail.com> <383bbcce0905141207s4c7a3e15ua5209d008d1630dc@mail.gmail.com> <19c3441a0905141220r7fb32946k37db1c3d8c5f2c0b@mail.gmail.com> Message-ID: <841e880a0905141921g6674f71cta653738e2aa12607@mail.gmail.com> If you can't change the html of the page you're viewing, then put your javascript function into a bookmarklet. The you can run it against any page. Some examples on this page cover opening new links with highlighted text. http://bookmarklets.com/tools/data/index.phtml Cheers, Warren On Thu, May 14, 2009 at 2:20 PM, JS Irick wrote: >> Regular expressions are built into JavaScript. Here's an example that will >> do what you want. >> var re = /ticket#(\d+)/g >> var text = "See ticket#123 and ticket#124" >> text.replace(re, '
> function replacer(){ > ? var re = /ticket#(\d+)/g > ? document.getElementById("area").innerHTML=document.getElementById("area").innerHTML.replace(re, > ' >
> I'd like to point your attention to ticket#12 >
> > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > From pfein at pobox.com Sat May 16 21:26:31 2009 From: pfein at pobox.com (Pete) Date: Sat, 16 May 2009 14:26:31 -0500 Subject: [Chicago] Concurrency Email List Message-ID: <2F8C1929-B58D-4845-A237-EFAEE8BF753D@pobox.com> python-concurrency at googlegroups.com is a new email list for discussion of concurrency issues in python. It arose out of Dave Beazley's class on the subject last week: http://www.dabeaz.com/chicago/concurrent.html The list wills serve as a forum for discussion of such topics as: * threads * multiprocessing * asynchronous * coroutines * the GIL Hope to see you there! Join at http://groups.google.com/group/python-concurrency/ --Pete From tal.liron at threecrickets.com Sun May 17 23:13:30 2009 From: tal.liron at threecrickets.com (Tal Liron) Date: Sun, 17 May 2009 16:13:30 -0500 Subject: [Chicago] Jython? In-Reply-To: References: <4A09B852.5080207@threecrickets.com> Message-ID: <4A107DFA.1050900@threecrickets.com> Aloha, Thanks for the kind feedback on my frazzled presentation! (I have since reformatted my laptop to good old, trusty ext3.) People have had trouble accessing the Restoration site. I think I found the problem (some alpha version of a service wrapper), and I think I have fixed it. Please let me know if you ever see it down (via email, or via the contact page that "we" created): http://threecrickets.com/restoration/ Also, the community site on Tigris (where you can download it) should otherwise be up: http://restoration.tigris.org/ I'd really love to hear your success/failure stories at playing with this li'l platform. -Tal P.S. Someone asked me about the beautiful desktop theme I was using. It's Shiki Colors: http://www.gnome-look.org/content/show.php/Shiki-Colors?content=86717 From carl at personnelware.com Sun May 17 23:56:08 2009 From: carl at personnelware.com (Carl Karsten) Date: Sun, 17 May 2009 16:56:08 -0500 Subject: [Chicago] Jython? In-Reply-To: <4A107DFA.1050900@threecrickets.com> References: <4A09B852.5080207@threecrickets.com> <4A107DFA.1050900@threecrickets.com> Message-ID: <549053140905171456q3d7c7dd5ob27765995167875c@mail.gmail.com> I need to futz to get blip to convert to flash, but for those of you running miro, or want to deal with getting the .ogg or .mp4 files (I don't recommend using the built in players.): http://carlfk.blip.tv/file/2116070/ .ogg http://chipy.blip.tv/file/2117587/ .mp4 Steve's talks both converted, so you can watch them however you want: http://carlfk.blip.tv/file/2116042/ http://carlfk.blip.tv/file/2116007/ -- Carl K From kirby.urner at gmail.com Mon May 18 01:09:30 2009 From: kirby.urner at gmail.com (kirby urner) Date: Sun, 17 May 2009 16:09:30 -0700 Subject: [Chicago] Greetings from PPUG (usa.or.pdx) Message-ID: Hello world to Chipy (Chicago) and Pinoy-Python-Users (Philippines), the two user groups I currently frequent vicariously (lurk upon), vs. physically attend. Portland, Oregon is fortunate to have one of those Coworker spaces popping up all over (just Twittering about http://tinyurl.com/ols2ja ). Ours is called Cubespace and a lot of the Free Open Source Software (FOSS) folks meet there, 2nd floor with elevator, part of a US Bank complex (passed the stress test they say). To each user group there attach various websites and wikis, blogs etc., such as this one for JavaScript Admires: http://pdxjs.com/ -- more state of the art than our Python one maybe: http://wiki.python.org/moin/PortlandPythonUserGroup (I go to both when I'm able). Those interested in DVCS lore might care to drop by my blog for a recent write-up: http://worldgame.blogspot.com/2009/05/ppug-2009512.html For more Cubespace pix, from an old Barcamp (not the most recent): http://www.flickr.com/photos/17157315 at N00/sets/72157600206194648/ Note: Python.org the website is still in SVN, the edu-sig page coordinated by Andre Roberge, university president at what's likely to become one of the greenest campuses on the planet: http://www.gregkerrmp.ca/?p=163 http://www.python.org/community/sigs/current/edu-sig/ (you'll find me linked under miscellaneous, plus I'm a prior architect of page content, several revisions since my tenure in CVS days). Python the codebase is moving (has moved?) to hg (Mercurial), eating our own dog food as it were. Kirby PDX PPUG co-organizer (with Jason and Michelle) From pfein at pobox.com Tue May 19 19:06:04 2009 From: pfein at pobox.com (Pete) Date: Tue, 19 May 2009 12:06:04 -0500 Subject: [Chicago] Python Concurrency Community Bulletin Message-ID: Hi all- Wow, I'm amazed at the response this list has engendered - over 100 people joined in the first 36 hours. Guess it's a hot topic. ;-) I've created http://wiki.python.org/moin/Concurrency/ as a central clearing house for discussion and documentation of concurrency issues. Please add material! I've collected much of what has been sent to this list so far, but more is needed. In particular, http://wiki.python.org/moin/Concurrency/99Bottles needs more examples in other toolkits. I've had a few requests to move this list to concurrency- sig at python.org I'm inclined to do so, but wanted to get feedback first. You won't need to resubscribe, but your mail filters will break. If you have strong feelings either way, please email me *privately* by end of day Thursday. I look forward to many interesting discussions. Python! ;-) --Pete From szybalski at gmail.com Wed May 20 20:05:12 2009 From: szybalski at gmail.com (Lukasz Szybalski) Date: Wed, 20 May 2009 13:05:12 -0500 Subject: [Chicago] OverflowError: days=1002410023; must have magnitude <= 999999999 Message-ID: <804e5c70905201105m62f74c21r15e0e13fd2bc76bb@mail.gmail.com> Hello, Anybody knows how to overcome this error? I have transactions that have effective and expiration dates and I need to calculate how many days are within each transaction(2 million transactions) and provide a total numbers of days for that particular year. There seem to be a limit of # -999999999 <= days <= 999999999 I'm not sure why ? If 2147483648 is the 32 bit integer limit then I should have a long way to go? Is this a bug in the library? Thanks, Lucas -- How to create python package? http://lucasmanual.com/mywiki/PythonPaste From allan2600 at gmail.com Wed May 20 20:14:55 2009 From: allan2600 at gmail.com (Allan Spale) Date: Wed, 20 May 2009 13:14:55 -0500 Subject: [Chicago] OverflowError: days=1002410023; must have magnitude <= 999999999 In-Reply-To: <804e5c70905201105m62f74c21r15e0e13fd2bc76bb@mail.gmail.com> References: <804e5c70905201105m62f74c21r15e0e13fd2bc76bb@mail.gmail.com> Message-ID: <79acc5430905201114p2e99e0e1p55f07305355fc10b@mail.gmail.com> Hi Lucas, Actually, the maximum positive 32-bit integer is 2147483647 (see an example for calculating that here: http://www.velocityreviews.com/forums/t366257-range-of-int-type.html), and I believe that all numbers are signed regardless of size. I had to do a lot of date calculation and find mxDateTime to be a wonderful library for calculating dates and elapsed days from a certain date: http://www.egenix.com/products/python/mxBase/mxDateTime/. One downside is that this module is based on C libraries, so moving to another platform might require some compiling (Windows binaries are provided). Allan On Wed, May 20, 2009 at 1:05 PM, Lukasz Szybalski wrote: > Hello, > Anybody knows how to overcome this error? > > I have transactions that have effective and expiration dates and I > need to calculate how many days are within each transaction(2 million > transactions) and provide a total numbers of days for that particular > year. > > There seem to be a limit of # -999999999 <= days <= 999999999 > > I'm not sure why ? > If 2147483648 is the 32 bit integer limit then I should have a long way to > go? > > Is this a bug in the library? > > Thanks, > Lucas > > > > -- > How to create python package? > http://lucasmanual.com/mywiki/PythonPaste > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > -------------- next part -------------- An HTML attachment was scrubbed... URL: From carl at personnelware.com Wed May 20 20:42:50 2009 From: carl at personnelware.com (Carl Karsten) Date: Wed, 20 May 2009 13:42:50 -0500 Subject: [Chicago] OverflowError: days=1002410023; must have magnitude <= 999999999 In-Reply-To: <804e5c70905201105m62f74c21r15e0e13fd2bc76bb@mail.gmail.com> References: <804e5c70905201105m62f74c21r15e0e13fd2bc76bb@mail.gmail.com> Message-ID: <549053140905201142j7a4c3932q62b79c8e4339eafb@mail.gmail.com> What is the line of code that throws the error? On Wed, May 20, 2009 at 1:05 PM, Lukasz Szybalski wrote: > Hello, > Anybody knows how to overcome this error? > > I have transactions that have effective and expiration dates and I > need to calculate how many days are within each transaction(2 million > transactions) and provide a total numbers of days ?for that particular > year. > > There seem to be a limit of # -999999999 <= days <= 999999999 > > I'm not sure why ? > If 2147483648 is the 32 bit integer limit then I should have a long way to go? > > Is this a bug in the library? > > Thanks, > Lucas > > > > -- > How to create python package? > http://lucasmanual.com/mywiki/PythonPaste > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > -- Carl K From mtobis at gmail.com Wed May 20 20:52:12 2009 From: mtobis at gmail.com (Michael Tobis) Date: Wed, 20 May 2009 13:52:12 -0500 Subject: [Chicago] OverflowError: days=1002410023; must have magnitude <= 999999999 In-Reply-To: <804e5c70905201105m62f74c21r15e0e13fd2bc76bb@mail.gmail.com> References: <804e5c70905201105m62f74c21r15e0e13fd2bc76bb@mail.gmail.com> Message-ID: This refers to the datetime module in the standard library, which Lukasz should have stated explicitly. >>> d = datetime.timedelta(500000001) >>> d * 2 Traceback (most recent call last): File "", line 1, in OverflowError: days=1000000002; must have magnitude <= 999999999 Lukasz: You need to decide how you are handling fractional days, and it looks like you will need to manually cast to some other type The following seems pretty safe and accounts for fractional days. If you want to account for the fractional seconds, it's a straightforward extension. ######## SECONDS_PER_DAY = 86400 totaldays = long(0) totalseconds = long(0) for transact in transacts: d_time = transact.end_time - transact.start_time totaldays += int(d_time.days) totalseconds += int(d_time.seconds) totaldays += totalseconds/SECONDS_PER_DAY ######### You could probably get away with just accumulating floats, but it would be a good idea to think very carefully about how that might break that if you tried it. mt -------------- next part -------------- An HTML attachment was scrubbed... URL: From tkeelan at storyquest.us Wed May 20 19:00:35 2009 From: tkeelan at storyquest.us (Tim Keelan) Date: Wed, 20 May 2009 12:00:35 -0500 Subject: [Chicago] Ignite Chicago: May 28 In-Reply-To: <<79acc5430905111254r5c46207aw31c040140562f0ba@mail.gmail.com>> Message-ID: Allen, Is your Ignite Chicago event still on? Can I still submit to present? Regards, Tim Keelan StoryQuest Inc. www.storyquest.us tkeelan at storyquest.us o: 312-258-0111 x101 m: 708-404-6707 -------------- next part -------------- An HTML attachment was scrubbed... URL: From allan2600 at gmail.com Thu May 21 05:35:26 2009 From: allan2600 at gmail.com (Allan Spale) Date: Wed, 20 May 2009 22:35:26 -0500 Subject: [Chicago] Ignite Chicago: May 28 In-Reply-To: References: Message-ID: <79acc5430905202035s6a62f964u5b3b788658574fad@mail.gmail.com> Hi Tim, Submission of presentations closed on May 12, but you can still attend. Fill out the form to attend here: http://ignitechicago.wufoo.com/forms/ignite-chicago-event-may-28/. Allan On Wed, May 20, 2009 at 12:00 PM, Tim Keelan wrote: > Allen, > > Is your Ignite Chicago event still on? Can I still submit to present? > > Regards, > > *Tim Keelan > **StoryQuest Inc. > *www.storyquest.us > tkeelan at storyquest.us > o: 312-258-0111 x101 > m: 708-404-6707 > > > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pfein at pobox.com Thu May 21 17:09:40 2009 From: pfein at pobox.com (Pete) Date: Thu, 21 May 2009 10:09:40 -0500 Subject: [Chicago] Ignite Chicago: May 28 In-Reply-To: <79acc5430905111254r5c46207aw31c040140562f0ba@mail.gmail.com> References: <79acc5430905111254r5c46207aw31c040140562f0ba@mail.gmail.com> Message-ID: <18821D15-6EE4-43FC-AB7A-D01C9AA8E706@pobox.com> Hey all- My talk "Inside the Box" was accepted... it's gonna be rad. Hope you all can come. --Pete On May 11, 2009, at 2:54 PM, Allan Spale wrote: > Hi everyone, > > I wanted to share with you an upcoming Ignite event that will be > taking place in Chicago. If you like the idea of an evening of > lightning talks with a twist that involve any topics, perhaps this > event is for you. General information about Ignite can be found > here: http://ignite.oreilly.com/. Interested in attending or > presenting a topic? Read below... > > > > Allan > > > > If you had five minutes on stage what would you say? > Submissions due tom, May 12th! Sign up Today! > > tinyurl.com/ignitechicago > > Ignite Chicago offers an ongoing series of short presentations on a > variety of topics. Presentations can range from a business plan for > a start up to the history of the Samurai sword. Become the next > Jeopardy star by learning about different topics and meeting some > interesting folk in the process. > > The launch of Ignite Chicago will occur on Thursday, May 28 at > 6:30pm in Evanston at the Kellogg School of Management. Idea > submissions for the presentations will be due on May 12th. > > If you want to keep in touch to learn more or to submit an idea > please check out: tinyurl.com/ignitechicago > > Thanks, > Ignite Chicago _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago -------------- next part -------------- An HTML attachment was scrubbed... URL: From fasteliteprogrammer at yahoo.com Sat May 30 16:54:54 2009 From: fasteliteprogrammer at yahoo.com (Craig) Date: Sat, 30 May 2009 07:54:54 -0700 (PDT) Subject: [Chicago] emacs 22 error with python 2.6.2 Message-ID: <844523.33879.qm@web36508.mail.mud.yahoo.com> I was hopeing someone can help me try to find out if this a emacs error or not but when i try outemacs 23 i didn't get this error so i not sure so here it is. /usr/share/emacs/22.2/etc/emacs.py:24: DeprecationWarning: the sets module is deprecated from sets import Set From brian.curtin at gmail.com Sat May 30 17:13:17 2009 From: brian.curtin at gmail.com (curtin@acm.org) Date: Sat, 30 May 2009 10:13:17 -0500 Subject: [Chicago] emacs 22 error with python 2.6.2 In-Reply-To: <844523.33879.qm@web36508.mail.mud.yahoo.com> References: <844523.33879.qm@web36508.mail.mud.yahoo.com> Message-ID: On Sat, May 30, 2009 at 09:54, Craig wrote: > > I was hopeing someone can help me try to find out if this a emacs error or > not but when i try outemacs 23 i didn't get this error so i not sure so here > it is. > > > > > /usr/share/emacs/22.2/etc/emacs.py:24: DeprecationWarning: the sets module > is deprecated from sets import Set > The warning is coming from Python for the sets module having been deprecated since 2.6. See http://docs.python.org/library/sets.html -------------- next part -------------- An HTML attachment was scrubbed... URL: