From jacoby.david at gmail.com Mon May 5 11:13:27 2014 From: jacoby.david at gmail.com (Dave Jacoby) Date: Mon, 5 May 2014 14:13:27 -0400 Subject: [Purdue-pm] Since we're talking JSON and comparative languages Message-ID: Celogeek compares JSON parsing between Perl, Python and Ruby. http://blog.celogeek.com/201405/556/simple-json-and-mongo-speed-test-between-perl-ruby-and-python/ -- David Jacoby jacoby.david at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jacoby.david at gmail.com Tue May 6 10:47:46 2014 From: jacoby.david at gmail.com (Dave Jacoby) Date: Tue, 6 May 2014 13:47:46 -0400 Subject: [Purdue-pm] reading JSON with different programming languages In-Reply-To: <535EB02C.8070502@purdue.edu> References: <24079.1397586627@pier.ecn.purdue.edu> <535E9177.2040703@csociety.org> <535EB02C.8070502@purdue.edu> Message-ID: If you try to do cryptography without using pre-written libraries, you're going to forget something and it'll be a mess. If you do CGI programming in Perl and don't use CGI, there's going to be a hole and you're doing it wrong. While in Javascript, var object = eval( '(' + json + ')' ) works, it is suggested you use JSON.parse() or some other parser because of the potential for Bobby Tables style attacks. So, yeah, I say use libraries, and I'm using libraries. On Mon, Apr 28, 2014 at 3:46 PM, Joe Kline wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Are we to write our own JSON parsers, or can we use the languages JSON > parsers if it has one? > > Just asking since I wasn't at the meeting and such. > > Thanks, > > joe > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.14 (GNU/Linux) > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iEYEARECAAYFAlNesCwACgkQb0mzA2gRTpmeYQCfdvI658XWuM2Pk0WpEDvAnhbF > vYUAnRdKMtRD0KoT6ssTbDynxV0k0IXR > =09NW > -----END PGP SIGNATURE----- > _______________________________________________ > Purdue-pm mailing list > Purdue-pm at pm.org > http://mail.pm.org/mailman/listinfo/purdue-pm > -- David Jacoby jacoby.david at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark at ecn.purdue.edu Sun May 11 17:36:42 2014 From: mark at ecn.purdue.edu (Mark Senn) Date: Sun, 11 May 2014 20:36:42 -0400 Subject: [Purdue-pm] reading JSON with different programming languages In-Reply-To: <24079.1397586627@pier.ecn.purdue.edu> References: <24079.1397586627@pier.ecn.purdue.edu> Message-ID: <14740.1399855002@pier.ecn.purdue.edu> Mark Senn wrote on 2014-04-15 at 18:30:27 GMT | Derrick Kearney is going to prepare some JSON and the following people | will talk and/or write about how they read it with the following | programming languages before or at the Purdue Perl Mongers meeting on | May 20, 2014. Send email to markiest at purdue.edu (remove "iest" from | the email address) with any corrections or additions to the below list. | | LANGUAGE WHO | Mathematica Mark Senn | Perl Dave Jacoby | PHP Chris Orr | pro Mark Senn | Python Joe Kline | Ruby Rick Westerman | | Mark Senn, Systems Programmer, | Engineering Computer Network, Purdue University Thanks to Derrick for preparing the JSON challenge problem. Originally I said I'd do this in Mathematica. Mathematica is the combination of a programming language and a graphical user interface (GUI). Wolfram Research is coming out with a new version of the programming language separately from the GUI ---it is called "Wolfram". It has lots of cool new stuff including "Associations" and "DataSets" that look likke they may be able to elegantly do the challenge problem. Unfortunately, as far as I can tell the documentation for it is not quite ready yet. I sent a note to Wolfram Research asking for a clue but if I don't get one I don't plan to pursue doing this in Mathematica---my solution wouldn't be pretty. Pro is essentially an extensible macro processor written in Perl 5. Since the problem is mostly data manipulation and not much only reading data I don't plan to do this. It wouldn't add much value to the Perl 5 solution. I'm working on a Perl 6 solution. I don't see any documentation on the web for how to delete a hash element so that part may not be pretty. The new language assignment list LANGUAGE WHO Perl 5 Dave Jacoby Perl 6 Mark Senn PHP Chris Orr pro Mark Senn Python Joe Kline Ruby Rick Westerman Wolfram Mark Senn (waiting on Wolfram Research for good Associaton and DataSet documentation) Mark Senn, Systems Programmer, Engineering Computer Network, Purdue University From bradley.d.andersen at gmail.com Wed May 14 15:57:44 2014 From: bradley.d.andersen at gmail.com (Bradley Andersen) Date: Wed, 14 May 2014 18:57:44 -0400 Subject: [Purdue-pm] yapc::na 2014 Message-ID: anyone know what is going on with yapc::na this year? the website looks a skeleton, and barely works (as one example, try to edit your profile info without manually typing in the correct link). no updates in 2.5 months, no schedule, etc. last year the organization was great. this year it almost looks like the organizer gave up and didn't tell anyone. ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From bradley.d.andersen at gmail.com Thu May 15 04:59:25 2014 From: bradley.d.andersen at gmail.com (Bradley Andersen) Date: Thu, 15 May 2014 07:59:25 -0400 Subject: [Purdue-pm] yapc::na 2014 In-Reply-To: References: Message-ID: it looks like someone noticed the profile issue, because now the link seems to work. i have reached out to the organizers to see if they need any help, and to see if i might help. turning complaints into action! :) /bda On Wed, May 14, 2014 at 6:57 PM, Bradley Andersen < bradley.d.andersen at gmail.com> wrote: > anyone know what is going on with yapc::na this year? > > the website looks a skeleton, and barely works (as one example, try to > edit your profile info without manually typing in the correct link). no > updates in 2.5 months, no schedule, etc. > > last year the organization was great. this year it almost looks like the > organizer gave up and didn't tell anyone. > > ? > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gizmo at purdue.edu Thu May 15 05:39:33 2014 From: gizmo at purdue.edu (Joe Kline) Date: Thu, 15 May 2014 08:39:33 -0400 Subject: [Purdue-pm] yapc::na 2014 In-Reply-To: References: Message-ID: <5374B585.4010905@purdue.edu> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 05/14/2014 06:57 PM, Bradley Andersen wrote: > anyone know what is going on with yapc::na this year? > > the website looks a skeleton, and barely works (as one example, try > to edit your profile info without manually typing in the correct > link). no updates in 2.5 months, no schedule, etc. > > last year the organization was great. this year it almost looks > like the organizer gave up and didn't tell anyone. > I know that they sort of split the roles up a bit. I'm not sure if there is any one person in charge of the web site or not. I know that has been a bit of sore spot for some. Mostly the code used to run it (ACT, I think( and the shared database of registrants. Many Perl conferences/workshops use the same software so you don't have to keep a bunch of different profiles. joe -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlN0tYQACgkQb0mzA2gRTpnGHQCffJfJ/cE3jlAShSwVLPahGIRG EK8AnRcAqJzGfkjQIe+0I8PijGh026CW =IBKj -----END PGP SIGNATURE----- From jacoby.david at gmail.com Fri May 16 19:30:02 2014 From: jacoby.david at gmail.com (Dave Jacoby) Date: Fri, 16 May 2014 22:30:02 -0400 Subject: [Purdue-pm] perldelta talk at Chicago PM Message-ID: http://www.meetup.com/ChicagoPM/events/183534582/?a=me2_grp&rv=me2 I like this idea. Don't know if we could drag someone down, but we could easily cover this. -- David Jacoby jacoby.david at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark at ecn.purdue.edu Fri May 16 20:30:58 2014 From: mark at ecn.purdue.edu (Mark Senn) Date: Fri, 16 May 2014 23:30:58 -0400 Subject: [Purdue-pm] perldelta talk at Chicago PM In-Reply-To: References: Message-ID: <13334.1400297458@pier.ecn.purdue.edu> Dave Jacoby wrote on 2014-05-17 at 02:30:02 GMT: | http://www.meetup.com/ChicagoPM/events/183534582/?a=me2_grp&rv=me2 I recommend extending it to cover Perl 6. I can do that part of the presentation if you want---just let me know the schedule. -mark From jacoby.david at gmail.com Mon May 19 04:59:41 2014 From: jacoby.david at gmail.com (jacoby.david at gmail.com) Date: Mon, 19 May 2014 04:59:41 -0700 (PDT) Subject: [Purdue-pm] REMINDER: Purdue Perl Mongers meets TOMORROW! Message-ID: <5379f22d.2a67320a.59a1.77ff@mx.google.com> Greetings! This is an automated message to announce that Purdue Perl Mongers will meet TOMORROW at 11:30am in WSLR 116. Generally, we discuss computing, dynamic languages, Purdue and the overlap of those three (plus whatever else comes up) until Noon, then have one or more more formal presentations. We don't always discuss Perl -- we have had presentations on Python, Javascript, HTML4, Selenium, and many other topics -- so if you are not an experienced Perl user, there's still a place for you. Check our Twitter feed (@purduepm), our Google+ Community (https://plus.google.com/communities/100780979348959606696) or our web page (http://pm.purdue.org) for more information. From mark at purdue.edu Mon May 19 18:44:05 2014 From: mark at purdue.edu (Mark Senn) Date: Mon, 19 May 2014 21:44:05 -0400 Subject: [Purdue-pm] JSON challenge problem: Perl 6 solution Message-ID: <16532.1400550245@pier.ecn.purdue.edu> The Perl 6 JSON software is not ready for production in my opinion. I don't plan to discuss this solution tomorrow at the meeting. There isn't any documentation for Perl 6's JSON::Tiny as for as I know. NULL values aren't handled correctly and I cheated when changing "value5" to "value4". See the "json.p6" Perl 6 program or the "output" file for more information. -mark -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: json.p6 URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: output URL: From mark at purdue.edu Mon May 19 18:51:08 2014 From: mark at purdue.edu (Mark Senn) Date: Mon, 19 May 2014 21:51:08 -0400 Subject: [Purdue-pm] sorry, forgot to state this in last message Message-ID: <17179.1400550668@pier.ecn.purdue.edu> I left inserting code to check for errors as an exercise for the reader. -mark From gizmo at purdue.edu Wed May 21 05:55:13 2014 From: gizmo at purdue.edu (Joe Kline) Date: Wed, 21 May 2014 08:55:13 -0400 Subject: [Purdue-pm] programming collective intelligence challenge Message-ID: <537CA231.3050002@purdue.edu> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 There is a github repo with the examples https://github.com/cataska/programming-collective-intelligence-code I don't think the pdf that is available for free download is "legal". I didn't find anything at oreilly or the author's web site about there being a free download. On the plus side since I own the print version I was able to get the digital versions for $5. Derrick, I can excerpt the appropriate text out and pass that along for the challenge if you like. Could save you some typing. :-) Looks pages 7-18 are the relevant ones. joe -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlN8oisACgkQb0mzA2gRTpkHjQCgirL4izcv9byt+5OXfFlM5cF1 KGUAnRY2NfxAA/a2bA+6YIoC+fNQRVEh =4B7I -----END PGP SIGNATURE----- From gizmo at purdue.edu Wed May 21 06:08:26 2014 From: gizmo at purdue.edu (Joe Kline) Date: Wed, 21 May 2014 09:08:26 -0400 Subject: [Purdue-pm] programming collective intelligence challenge In-Reply-To: <537CA231.3050002@purdue.edu> References: <537CA231.3050002@purdue.edu> Message-ID: <537CA54A.5050309@purdue.edu> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Here's the relevant text and the json file. I'll let Derrick outline the challenge parameters. joe -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlN8pUkACgkQb0mzA2gRTplvyACgoz8O2e764lf2l244kelmJPRK F2YAn3UevMjzcscqo+0ouykIAaA0yDsR =ARlt -----END PGP SIGNATURE----- -------------- next part -------------- A non-text attachment was scrubbed... Name: challenge.pdf Type: application/pdf Size: 163765 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: critics.json Type: application/json Size: 1028 bytes Desc: not available URL: From gizmo at purdue.edu Wed May 21 07:49:35 2014 From: gizmo at purdue.edu (Joe Kline) Date: Wed, 21 May 2014 10:49:35 -0400 Subject: [Purdue-pm] programming collective intelligence challenge In-Reply-To: <537CA9B4.2010809@purdue.edu> References: <537CA231.3050002@purdue.edu> <537CA9B4.2010809@purdue.edu> Message-ID: <537CBCFF.8010103@purdue.edu> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 05/21/2014 09:27 AM, Dave Jacoby wrote: > On 5/21/2014 8:55 AM, Joe Kline wrote: >> >> I don't think the pdf that is available for free download is >> "legal". I > > If this is the book, it's available through the campus subscription > to Safari. > > http://proquestcombo.safaribooksonline.com/book/web-development/9780596529321 > > > > Yep, that's the book. joe -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlN8vP8ACgkQb0mzA2gRTpml/gCfWIv9yTbiQvoTKvDi7+ImItLJ DzoAn0jvAdw3rvlWxQ8s2hZghvN2Jv2w =UqvV -----END PGP SIGNATURE-----