From jacoby.david at gmail.com Tue Jun 2 20:03:28 2020 From: jacoby.david at gmail.com (Dave Jacoby) Date: Tue, 2 Jun 2020 23:03:28 -0400 Subject: [Purdue-pm] Next Week - Topic? Message-ID: If we took the time to plan a topic for this month, it has slipped my mind. Joe says his TPRC talk could use another run, but doesn't think he can polish it enough in the next week to make that worth a redo. I don't think there's anything in my current computing life that I could or should pull out into a presentation. So, we're stuck. Does anyone have a presentation or idea for next Wednesday's meeting? -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark at purdue.edu Tue Jun 2 20:35:18 2020 From: mark at purdue.edu (Mark Senn) Date: Tue, 02 Jun 2020 23:35:18 -0400 Subject: [Purdue-pm] Next Week - Topic? In-Reply-To: References: Message-ID: <22803.1591155318@pier.ecn.purdue.edu> > If we took the time to plan a topic for this month, it has slipped my mind. > Joe says his TPRC talk could use another run, but doesn't think he can > polish it enough in the next week to make that worth a redo. I don't think > there's anything in my current computing life that I could or should pull > out into a presentation. So, we're stuck. Idea: Picture a ball (circle) inside a square. The circle hits a wall of the square and bounces off in the expected way. Wrote code to do the computation for the outgoing angle. Everyone can copare their solutions and say which they like the best and why. -mark From jacoby.david at gmail.com Wed Jun 10 10:28:06 2020 From: jacoby.david at gmail.com (Dave Jacoby) Date: Wed, 10 Jun 2020 13:28:06 -0400 Subject: [Purdue-pm] Reminder: Meeting Tonight! Message-ID: Our Monthly Meeting is 5:30pm (EDT) tonight! https://meet.jit.si/HackLafayetteCoffee We have no set topic or presentation, except to plan the next few meetings, because I dislike being unprepared like this. I hope to see you on Jitsi! -- Dave Jacoby jacoby.david at gmail.com ?There is nothing obvious? ? Theo -------------- next part -------------- An HTML attachment was scrubbed... URL: From jacoby.david at gmail.com Thu Jun 11 10:01:14 2020 From: jacoby.david at gmail.com (Dave Jacoby) Date: Thu, 11 Jun 2020 13:01:14 -0400 Subject: [Purdue-pm] A Testing Question Message-ID: This is the kind of thing that would send to Gizmo as a "Rubber Duck Debugging" thing, but I don't believe the answer to this is with in my head, where explaining it in depth will bring it out, or in Gizmo's, where he could ask insightful questions and break my mental logjam. I'm testing a feature in our web tool, which uses PSGI. I have a some tests in a branch off master, and I have added $self->{use_feature} = 1 to the tests, and they pass. These tests involve having *X* as a cookie, *munge(X)* as a field in the form, and the application taking both from input, and testing if *remunge(X) == munge(X)*. This means I have to tease the *munge(X)* field out of the output, and this combines my unfamiliarity with testing syntax, *Test::More* and *Test::WWW::Mechanize::PSGI* (as well as *WWW::Mechanize* itself) with the standard "can you parse HTML?" problem. (see: https://stackoverflow.com/a/1732454/168161) At this point in the process, I want to be able to tell the application "This should be in the form, and this should be a cookie" and test if those values come out. I'm looking in MetaCPAN and in our tests and I'm not seeing much about testing cookies. -- Dave Jacoby jacoby.david at gmail.com ?There is nothing obvious? ? Theo -------------- next part -------------- An HTML attachment was scrubbed... URL: From gizmo at purdue.edu Thu Jun 11 10:24:07 2020 From: gizmo at purdue.edu (Joe) Date: Thu, 11 Jun 2020 13:24:07 -0400 Subject: [Purdue-pm] A Testing Question In-Reply-To: References: Message-ID: <307cbdef-b13f-7daa-db04-bc52fb40e10a@purdue.edu> Since you are using PSGI, maybe use: https://metacpan.org/pod/Test2::Tools::HTTP This comes from a zero knowledge background. But it does look like it has stuff to deal with PSGI and might just talk to that layer directly? This might also test at a level just below where you might want. At least from a "what does the user see?" standpoint vs. a "I messed with this function...what http does it spit out?". Just flinging pasta at the wall. joe -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: OpenPGP digital signature URL: From jacoby.david at gmail.com Thu Jun 11 10:46:39 2020 From: jacoby.david at gmail.com (Dave Jacoby) Date: Thu, 11 Jun 2020 13:46:39 -0400 Subject: [Purdue-pm] A Testing Question In-Reply-To: <307cbdef-b13f-7daa-db04-bc52fb40e10a@purdue.edu> References: <307cbdef-b13f-7daa-db04-bc52fb40e10a@purdue.edu> Message-ID: I'll take a look, see if it's in the standard install. If we don't use it, adding it beyond myself might be a chore, but ... Thanks. On Thu, Jun 11, 2020 at 1:40 PM Joe wrote: > Since you are using PSGI, maybe use: > > https://metacpan.org/pod/Test2::Tools::HTTP > > > This comes from a zero knowledge background. > > But it does look like it has stuff to deal with PSGI and might > just talk to that layer directly? > > This might also test at a level just below where you might > want. At least from a "what does the user see?" standpoint > vs. a "I messed with this function...what http does it > spit out?". > > Just flinging pasta at the wall. > > joe > > _______________________________________________ > Purdue-pm mailing list > Purdue-pm at pm.org > https://mail.pm.org/mailman/listinfo/purdue-pm > -- Dave Jacoby jacoby.david at gmail.com ?There is nothing obvious? ? Theo -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark at senn.us Mon Jun 15 13:56:14 2020 From: mark at senn.us (Mark Senn) Date: Mon, 15 Jun 2020 16:56:14 -0400 Subject: [Purdue-pm] looking for a volunteer Message-ID: <962d2a9edc11685c9f213f02c72cd486@senn.us> My kid, Ethan Senn,, is looking for a volunteer to help them come up with an example web site for a dog walking business. If you are interested you can contact them directly at ethansenn2106 at gmail.com. -mark From mark at purdue.edu Fri Jun 26 06:05:05 2020 From: mark at purdue.edu (Mark Senn) Date: Fri, 26 Jun 2020 09:05:05 -0400 Subject: [Purdue-pm] (no subject) Message-ID: <3712.1593176705@pier.ecn.purdue.edu> Purdue Perl Mongers, I volunteer to give an hour long pro file processor talk based on Perl 5 on January 13, 2021. See below for more information on pro. TYPESCRIPT According to [1] the TypeScript language is more popular than JavaScript. TypeScript is a strongly typed superset of JavaScript but not a whole lot more than JavaScript [2]. [1] https://stackoverflow.blog/2020/06/15/talking-typescript-with-ryan-cavanaugh/?utm_source=Iterable&utm_medium=email&utm_campaign=the_overflow_newsletter [2] https://www.geeksforgeeks.org/difference-between-typescript-and-javascript/ DATES Hat tip to Stan Harlow who said something about how important it was to have dates on everything in a meeting years ago. I agree. I think it may have been Buter Dunsmore who suggested putting dates in title lines of HTML pages. Note that there is no date or author listed for [1] or [2]. In HTML I do, for example, Mark Senn (Mar 3, 2019) ...
Mark Senn
March 3, 2019
...

Revised: March 3, 2019
Created: December 15, 1994

so the o three letter month date last revised date occurs in the Firefox title bar---just use three letters for date to leave room for long titles o my Name and date occur at the top of the document o and last revised and created date are at bottom of document Don't use 1/2 style dates. In the U.S. that's January second. In Europe, February 1. There is an ISO standard for dates, for example 2020-06-26. I've started using, for example, 2020-06-26 12:56+00 style dates for everthing. That follows the ISO standard. Time increases monitonically (spring forward, fall back---hmmm...can have two times that happened 60 minutes apart have the same time). PRO I often use the "pro file processor" I wrote to (using TypeScript buzz words) transpile a high level description of content into a lower level descriptions (HTML or LaTeX). Let me know if you're interested in getting a complete descrption of pro at a virtual meeting. It has stuff for .conditionals (.if, .else, .endif, etc.) .include (read source code from other file) .divert (divert output to one or more files) .revert (undo a .divert) list (source can be run over every record in a data file) extensibility (any Perl 5 code can be put anywhere and is eval'ed) etc., etc., etc. This is in Perl 5. I've been using it since 1993 and it has saved me tons of time, and more important than that made it easier to express what I mean. PROGRAMMING LANGUAGES JavaScript or TypeScript. Yes, it is better but to make a big difference take more of a risk and go from, for example, MATLAB to Mathematica (I hate Mathematica notebook mathematical typesetting quality though and suggest you use a Jupyter interface if that is important.) Perl 5 to Raku (formerly known as Perl 6) vi to Emacs I learned vi for CS or Engineering classes around 1980. Learned Emacs and moved to it and never looked back. For people who do computer stuff everyday I suggest using the best tool that works for you instead of staying with the status quo forever. It can save a ton of time over the rest of your career. I've recommended that only Mathematica and Raku be taught to Purdue Honors students. Most everything else they'll see are subsets of that. Plus, Mathematica and Raku are the most powerful general purpose programming languages I know of. -mark From tom.browder at gmail.com Fri Jun 26 06:52:15 2020 From: tom.browder at gmail.com (Tom Browder) Date: Fri, 26 Jun 2020 08:52:15 -0500 Subject: [Purdue-pm] (no subject) In-Reply-To: <3712.1593176705@pier.ecn.purdue.edu> References: <3712.1593176705@pier.ecn.purdue.edu> Message-ID: On Fri, Jun 26, 2020 at 08:05 Mark Senn wrote: > Purdue Perl Mongers, > > I volunteer to give an hour long pro file processor talk based on Perl 5 ... > > on January 13, 2021. See below for more information on pro. Mark, I am very interested in such a talk. On the same general subject, I?ve been looking into Org mode for a universal text format for text data storage and output conversion to different formats. And I absolutely agree with you on Raku. As far as dates, I?m on board there, too. I?ve been using and espousing ISO style dates for many years. As a web hobbyist I look forward to the presentation! (Any early public peek at the code would be welcomed!) Best regards, -Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark at purdue.edu Mon Jun 29 06:31:23 2020 From: mark at purdue.edu (Mark Senn) Date: Mon, 29 Jun 2020 09:31:23 -0400 Subject: [Purdue-pm] Perl 5, Raku, Perl 7 Message-ID: <7774.1593437483@pier.ecn.purdue.edu> If you hear about Perl 7 and wonder what that is... Perl 5 is in the main legacy Perl line. Perl 1 was released in 1987. Perl 5.32 is the most recent version of Perl and was released in June 2020. Perl 6 was released in 2015 and has been renamed to "Raku". It was a complete redesign and rewrite of Perl 5 from the ground up. It has many improvements over Perl 5. Perl 7 is a continuation of Perl 5 that will probaby eliminate the need o execute use v5.32; use utf8; use warnings; use open qw(:std :utf8); no feature qw(indirect); use feature qw(signatures); no warnings qw(experimental::signatures); at the beginning of a program. Perl 7 will not include all the new features in Raku according to https://www.perl.com/article/announcing-perl-7/ I found the "Perl 7, not quite getting better yet" at http://blogs.perl.org/users/leon_timmermans/2020/06/not-quite-getting-better-yet.html interesting. My advice: learn Raku. It is a more powerful programming language than Perl 5 or Perl 7 (at least as currently described) will be. -mark