From neil.bowers at cogendo.com Mon Jul 11 08:24:34 2016 From: neil.bowers at cogendo.com (Neil Bowers) Date: Mon, 11 Jul 2016 16:24:34 +0100 Subject: [Thamesvalley-pm] Reminder: July meetup: Monday 18th July 8pm @ The Jam Factory, Oxford In-Reply-To: <5E950B29-C7D0-4E0F-B60C-EB108F4869E6@cogendo.com> References: <5E950B29-C7D0-4E0F-B60C-EB108F4869E6@cogendo.com> Message-ID: A reminder that we?re meeting in Oxford, next Monday: > The July meetup for TVPM will be: > > Monday 18th July at 8pm > at The Jam Factory, in Oxford > http://www.thejamfactoryoxford.com Looking forward to a good turnout from the Oxford Massive, after the poor showing at Didcot! :-) Neil -------------- next part -------------- An HTML attachment was scrubbed... URL: From neil.bowers at cogendo.com Mon Jul 18 01:42:19 2016 From: neil.bowers at cogendo.com (Neil Bowers) Date: Mon, 18 Jul 2016 09:42:19 +0100 Subject: [Thamesvalley-pm] Oxford meetup today: The Jam Factory, 8pm Message-ID: A reminder that we?re meeting in Oxford this evening: > The July meetup for TVPM will be: > > Monday 18th July at 8pm > at The Jam Factory, in Oxford > http://www.thejamfactoryoxford.com Neil -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlie at newint.org Mon Jul 18 01:54:58 2016 From: charlie at newint.org (Charlie Harvey) Date: Mon, 18 Jul 2016 09:54:58 +0100 Subject: [Thamesvalley-pm] Oxford meetup today: The Jam Factory, 8pm In-Reply-To: References: Message-ID: <578C9962.1010703@newint.org> Hi all, Looking forward to it! Cheers, On 18/07/16 09:42, Neil Bowers wrote: > A reminder that we?re meeting in Oxford this evening: > >> The July meetup for TVPM will be: >> >> Monday 18th July at 8pm >> at The Jam Factory, in Oxford >> http://www.thejamfactoryoxford.com > > Neil > > > > _______________________________________________ > Thamesvalley-pm mailing list > Thamesvalley-pm at pm.org > http://mail.pm.org/mailman/listinfo/thamesvalley-pm > -- Charlie Harvey IT Director New Internationalist t: +44 (0)1865 403249 f: +44 (0)1865 403346 w: http://newint.org/ k: http://ox4.li/gpgkey/ New Internationalist is an independent not-for-profit communications cooperative. Our multi-award winning magazine, New Internationalist, brings to life the people, the ideas and the action in the fight for global justice. New Internationalist Publications Ltd. is incorporated in England under no.1005239. New Internationalist, Old Music Hall, 106-108 Cowley Rd., Oxford, OX4 1JE, UK -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From thamesvalley-pm at unitedgames.co.uk Mon Jul 18 04:02:35 2016 From: thamesvalley-pm at unitedgames.co.uk (Andrew) Date: Mon, 18 Jul 2016 12:02:35 +0100 Subject: [Thamesvalley-pm] Oxford meetup today: The Jam Factory, 8pm References: Message-ID: <005001d1e0e3$e415ffa0$0100a8c0@home> Should be there! =) ----- Original Message ----- From: Neil Bowers To: ThamesValley Perl Mongers Sent: Monday, July 18, 2016 9:42 AM Subject: [Thamesvalley-pm] Oxford meetup today: The Jam Factory, 8pm A reminder that we?re meeting in Oxford this evening: The July meetup for TVPM will be: Monday 18th July at 8pm at The Jam Factory, in Oxford http://www.thejamfactoryoxford.com Neil ------------------------------------------------------------------------------ _______________________________________________ Thamesvalley-pm mailing list Thamesvalley-pm at pm.org http://mail.pm.org/mailman/listinfo/thamesvalley-pm -------------- next part -------------- An HTML attachment was scrubbed... URL: From gareth.france at cliftonts.co.uk Mon Jul 18 05:24:26 2016 From: gareth.france at cliftonts.co.uk (gareth.france at cliftonts.co.uk) Date: Mon, 18 Jul 2016 13:24:26 +0100 Subject: [Thamesvalley-pm] Oxford meetup today: The Jam Factory, 8pm In-Reply-To: References: Message-ID: On 2016-07-18 09:42, Neil Bowers wrote: > A reminder that we?re meeting in Oxford this evening: > >> The July meetup for TVPM will be: >> >> Monday 18th July at 8pm >> at The Jam Factory, in Oxford >> http://www.thejamfactoryoxford.com > > Neil > > > _______________________________________________ > Thamesvalley-pm mailing list > Thamesvalley-pm at pm.org > http://mail.pm.org/mailman/listinfo/thamesvalley-pm I'd wanted to make it but as usual something has gotten in the way. I'd just like to say Oxford is probably the most convenient place for me as I work there. From oliver at cpan.org Mon Jul 18 05:31:00 2016 From: oliver at cpan.org (Oliver Gorwits) Date: Mon, 18 Jul 2016 13:31:00 +0100 Subject: [Thamesvalley-pm] Oxford meetup today: The Jam Factory, 8pm In-Reply-To: References: Message-ID: <7f8c6b3a79bf2e47af02a1c6751507ca@gorwits.me.uk> To whet your appetites before this evening, check out a new interview with Larry Wall, on Slashdot: https://developers.slashdot.org/story/16/07/14/1349207/the-slashdot-interview-with-larry-wall On 2016-07-18 09:42, Neil Bowers wrote: > A reminder that we?re meeting in Oxford this evening: > >> The July meetup for TVPM will be: >> >> Monday 18th July at 8pm >> at The Jam Factory, in Oxford >> http://www.thejamfactoryoxford.com [1] > > Neil > > > > Links: > ------ > [1] http://www.thejamfactoryoxford.com > > _______________________________________________ > Thamesvalley-pm mailing list > Thamesvalley-pm at pm.org > http://mail.pm.org/mailman/listinfo/thamesvalley-pm From oliver at cpan.org Mon Jul 18 06:11:16 2016 From: oliver at cpan.org (Oliver Gorwits) Date: Mon, 18 Jul 2016 14:11:16 +0100 Subject: [Thamesvalley-pm] Oxford meetup today: The Jam Factory, 8pm In-Reply-To: <7f8c6b3a79bf2e47af02a1c6751507ca@gorwits.me.uk> References: <7f8c6b3a79bf2e47af02a1c6751507ca@gorwits.me.uk> Message-ID: <3f8752c4f17b54d1bbad2681aae49ae3@gorwits.me.uk> On 2016-07-18 13:31, Oliver Gorwits wrote: > To whet your appetites before this evening, check out a new interview > with Larry Wall, on Slashdot: > > https://developers.slashdot.org/story/16/07/14/1349207/the-slashdot-interview-with-larry-wall And I love that a Perl 6 version of a+b is "get.words.sum.say" :-D via this very interesting site: https://www.rosettacode.org/wiki/A%2BB#Perl_6 > > On 2016-07-18 09:42, Neil Bowers wrote: >> A reminder that we?re meeting in Oxford this evening: >> >>> The July meetup for TVPM will be: >>> >>> Monday 18th July at 8pm >>> at The Jam Factory, in Oxford >>> http://www.thejamfactoryoxford.com [1] >> >> Neil >> >> >> >> Links: >> ------ >> [1] http://www.thejamfactoryoxford.com >> >> _______________________________________________ >> Thamesvalley-pm mailing list >> Thamesvalley-pm at pm.org >> http://mail.pm.org/mailman/listinfo/thamesvalley-pm > _______________________________________________ > Thamesvalley-pm mailing list > Thamesvalley-pm at pm.org > http://mail.pm.org/mailman/listinfo/thamesvalley-pm From thamesvalley-pm at unitedgames.co.uk Mon Jul 18 19:12:12 2016 From: thamesvalley-pm at unitedgames.co.uk (Andrew) Date: Tue, 19 Jul 2016 03:12:12 +0100 Subject: [Thamesvalley-pm] MIME:Parser References: <7f8c6b3a79bf2e47af02a1c6751507ca@gorwits.me.uk> <3f8752c4f17b54d1bbad2681aae49ae3@gorwits.me.uk> Message-ID: <006401d1e162$f7f30ac0$0100a8c0@home> At tonight's social, I did venture a tech question, about how to get a name attribute given after a content-type, in a multipart email. Roger mentioned there was a recommended_filename I could try. I mentioned I'd tried it just before coming, and got the error message that it wasn't a method for the object I was using. I mentioned it was a method of head, and not of the parser bit of Mime Tools I was using (use Mime::Parser;). Now back home, I figured I'd just write "head->" before "recommended_filename", .....and I'm guessing that would work. I say I'm guessing, as I didn't actually use recommended_filename upon my return - I had a nosy online, and saw someone else had used mime_attr to get attributes given after the main field. So I still tried adding in "head->", and instead of recommended_filename, followed it up with mime_attr, and ended up with: $part->head->mime_attr('content-type.name') ....where $part was the current multipart in a for loop: for my $part ($entity->parts()) { #stuff }; ....and $entity was defined earlier as: my $entity = $parser->parse_data($emailtoparse); Matthew (one t? Two ts?) suggested looking at the file attachment itself - reading the first few bytes to detect the file type, rather than trusting mime_types and filenames in email headers, to determine if the attachment was a PDF file or not. A quick google, and I learnt PDFs typically start with the characters %PDF before any binary or ascii kicks in. That said, in multipart email context, the attachment is base64 encoded, and since we're talking two emails a week, from a trusted source, from an automated source [ so the message source is always structured the same ]....I think I'm safe just grabbing the name attribute, using mime_attr. At least for now, ;-). We'll see how we get on, =). Many thanks everyone! I'll still try and clue myself up on File, and also hope to look into Imager, the latter of which is what Roger mentioned after I mentioned Image Magick. I'm just keeping things simple for now, as it's 3am in the morning, ;-). All the best everyone! ^_^ Yours, Andrew. ----- Original Message ----- From: "Oliver Gorwits" To: Sent: Monday, July 18, 2016 2:11 PM Subject: Re: [Thamesvalley-pm] Oxford meetup today: The Jam Factory, 8pm On 2016-07-18 13:31, Oliver Gorwits wrote: > To whet your appetites before this evening, check out a new interview > with Larry Wall, on Slashdot: > > https://developers.slashdot.org/story/16/07/14/1349207/the-slashdot-intervie w-with-larry-wall And I love that a Perl 6 version of a+b is "get.words.sum.say" :-D via this very interesting site: https://www.rosettacode.org/wiki/A%2BB#Perl_6 > > On 2016-07-18 09:42, Neil Bowers wrote: >> A reminder that we?re meeting in Oxford this evening: >> >>> The July meetup for TVPM will be: >>> >>> Monday 18th July at 8pm >>> at The Jam Factory, in Oxford >>> http://www.thejamfactoryoxford.com [1] >> >> Neil >> >> >> >> Links: >> ------ >> [1] http://www.thejamfactoryoxford.com >> >> _______________________________________________ >> Thamesvalley-pm mailing list >> Thamesvalley-pm at pm.org >> http://mail.pm.org/mailman/listinfo/thamesvalley-pm > _______________________________________________ > Thamesvalley-pm mailing list > Thamesvalley-pm at pm.org > http://mail.pm.org/mailman/listinfo/thamesvalley-pm _______________________________________________ Thamesvalley-pm mailing list Thamesvalley-pm at pm.org http://mail.pm.org/mailman/listinfo/thamesvalley-pm From roger at firedrake.org Tue Jul 19 01:13:50 2016 From: roger at firedrake.org (Roger Bell_West) Date: Tue, 19 Jul 2016 09:13:50 +0100 Subject: [Thamesvalley-pm] MIME:Parser In-Reply-To: <006401d1e162$f7f30ac0$0100a8c0@home> References: <7f8c6b3a79bf2e47af02a1c6751507ca@gorwits.me.uk> <3f8752c4f17b54d1bbad2681aae49ae3@gorwits.me.uk> <006401d1e162$f7f30ac0$0100a8c0@home> Message-ID: <20160719081350.GA7920@firedrake.org> On Tue, Jul 19, 2016 at 03:12:12AM +0100, Andrew wrote: >I mentioned it was a method of head, and not of the parser bit of Mime Tools >I was using (use Mime::Parser;). Now back home, I figured I'd just write >"head->" before "recommended_filename", .....and I'm guessing that would >work. Yes, that's the trick. It's been a while since I touched this but my code has my $type=$ent->effective_type; my $file=$ent->head->recommended_filename; >A quick google, and I learnt PDFs typically start with the characters %PDF >before any binary or ascii kicks in. Don't do it the hard way! If you do end up needing to do this, use File::Type. >from a trusted source, Until their email address book leaks. They're using Microsoft after all. >from an automated source [ so the message source is always structured the >same ] Until they change the software without telling you. >I'll still try and clue myself up on File, and also hope to look into >Imager, the latter of which is what Roger mentioned after I mentioned Image >Magick. There's also GD, which is a bit older, but I find that Imager covers all the image manipulation I want to do. Creating a reduced-size image with the same aspect ratio, which I think was what you were talking about, is as simple as: my $img=Imager->new(file => $in); my $tn=$img->scale(xpixels => 512, ypixels => 512, type => 'min'); $tn->write(file => $out); which will result in one no bigger than 512 pixels in either dimension. Other options are available. From neil.bowers at cogendo.com Mon Jul 25 15:38:43 2016 From: neil.bowers at cogendo.com (Neil Bowers) Date: Mon, 25 Jul 2016 23:38:43 +0100 Subject: [Thamesvalley-pm] August meetup - Reading Message-ID: <8ED48C59-0188-49D7-A509-9E9ED9F453EC@cogendo.com> We had a good turnout in Oxford last week and can recommend the Jam Factory. For August we?ll be returning to Reading, and unless there?s a better suggestion, I propose we meet at the Greyfriar again (http://www.thegreyfriarreading.co.uk/), as it had a good beer selection, and it?s close to the station. Here?s the dudle to let me know your preferred dates: http://dudle.inf.tu-dresden.de/tvpm-august-2016/ Neil