From pm at jlavin.com Thu Aug 4 07:59:46 2016 From: pm at jlavin.com (Josh Lavin) Date: Thu, 04 Aug 2016 07:59:46 -0700 Subject: [Bend-pm] Blog post on YAPC::NA Message-ID: <1470322786.3005457.686013617.15EE206B@webmail.messagingengine.com> Here's a blog post I wrote on YAPC::NA (The Perl Conference): http://blog.endpoint.com/2016/07/report-on-perl-conference-2016.html Also, I recently released this to CPAN (my first module!): https://metacpan.org/pod/Mail::Chimp3 Josh From thowe at bendtel.net Mon Aug 22 11:20:21 2016 From: thowe at bendtel.net (Tim Howe) Date: Mon, 22 Aug 2016 11:20:21 -0700 Subject: [Bend-pm] JSON pretty printing Message-ID: <20160822112021.44171524@cool.bendtel.com> I seem to recall a question about pretty printing JSON when we last met, and I had said I had done this. Apparently I used this: https://metacpan.org/pod/JSON I have a simple example in my Catalyst version of PieNg: https://github.com/thowe/PieNg/blob/master/lib/PieNg/Controller/Logs.pm#L47 --TimH From pm at jlavin.com Mon Aug 22 14:48:55 2016 From: pm at jlavin.com (Josh Lavin) Date: Mon, 22 Aug 2016 14:48:55 -0700 Subject: [Bend-pm] JSON pretty printing In-Reply-To: <20160822112021.44171524@cool.bendtel.com> References: <20160822112021.44171524@cool.bendtel.com> Message-ID: <1471902535.846939.702912769.13A69250@webmail.messagingengine.com> On Mon, Aug 22, 2016, at 11:20 AM, Tim Howe wrote: > I seem to recall a question about pretty printing JSON when we last > met, and I had said I had done this. Apparently I used this: > https://metacpan.org/pod/JSON > > I have a simple example in my Catalyst version of PieNg: > https://github.com/thowe/PieNg/blob/master/lib/PieNg/Controller/Logs.pm#L47 Nice, thanks! I got curious and tried to cook up my own little script to use to pass in JSON and pretty-print it back, used like: echo '{"subtotal":21.40,"quantity":2,"description":"Foo"}' | js It worked great, but then I wanted colorized output. I found an existing CPAN module, App::lj (https://metacpan.org/pod/App::LJ) which provides an `lj` script to do that same thing. It uses JSON::Color. However, JSON::Color won't keep integers, but instead makes them strings. :-( I filed a bug. Maybe I'll write my own colorization. For now, here's my script: https://gist.github.com/jdigory/78751834e71291103d7d39bdd1bb48bc Josh From msmall2 at uoregon.edu Wed Aug 24 18:20:30 2016 From: msmall2 at uoregon.edu (Mitch Small) Date: Wed, 24 Aug 2016 18:20:30 -0700 Subject: [Bend-pm] JSON pretty printing In-Reply-To: <1471902535.846939.702912769.13A69250@webmail.messagingengine.com> References: <20160822112021.44171524@cool.bendtel.com> <1471902535.846939.702912769.13A69250@webmail.messagingengine.com> Message-ID: Hey, all! Are we on for tomorrow? On Mon, Aug 22, 2016 at 2:48 PM, Josh Lavin wrote: > On Mon, Aug 22, 2016, at 11:20 AM, Tim Howe wrote: > > I seem to recall a question about pretty printing JSON when we last > > met, and I had said I had done this. Apparently I used this: > > https://metacpan.org/pod/JSON > > > > I have a simple example in my Catalyst version of PieNg: > > https://github.com/thowe/PieNg/blob/master/lib/PieNg/ > Controller/Logs.pm#L47 > > Nice, thanks! > > I got curious and tried to cook up my own little script to use to pass > in JSON and pretty-print it back, used like: > > echo '{"subtotal":21.40,"quantity":2,"description":"Foo"}' | js > > It worked great, but then I wanted colorized output. I found an existing > CPAN module, App::lj (https://metacpan.org/pod/App::LJ) which provides > an `lj` script to do that same thing. > > It uses JSON::Color. However, JSON::Color won't keep integers, but > instead makes them strings. :-( I filed a bug. > > Maybe I'll write my own colorization. For now, here's my script: > https://gist.github.com/jdigory/78751834e71291103d7d39bdd1bb48bc > > Josh > _______________________________________________ > Bend-pm mailing list > Bend-pm at pm.org > http://mail.pm.org/mailman/listinfo/bend-pm > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pm at jlavin.com Wed Aug 24 19:20:50 2016 From: pm at jlavin.com (Josh Lavin) Date: Wed, 24 Aug 2016 19:20:50 -0700 Subject: [Bend-pm] JSON pretty printing In-Reply-To: References: <20160822112021.44171524@cool.bendtel.com> <1471902535.846939.702912769.13A69250@webmail.messagingengine.com> Message-ID: <1472091650.3553037.705419417.08836656@webmail.messagingengine.com> Wish I could, but I'm out of town. Josh On Wed, Aug 24, 2016, at 06:20 PM, Mitch Small wrote: > Hey, all! Are we on for tomorrow? > > On Mon, Aug 22, 2016 at 2:48 PM, Josh Lavin wrote: >> On Mon, Aug 22, 2016, at 11:20 AM, Tim Howe wrote: >> > I seem to recall a question about pretty printing JSON when we >> > last met, and I had said I had done this. Apparently I used this: >> > https://metacpan.org/pod/JSON >> > >> > I have a simple example in my Catalyst version of PieNg: >> > https://github.com/thowe/PieNg/blob/master/lib/PieNg/Controller/Logs.pm#L47 >> >> Nice, thanks! >> >> I got curious and tried to cook up my own little script to use >> to pass >> in JSON and pretty-print it back, used like: >> >> echo '{"subtotal":21.40,"quantity":2,"description":"Foo"}' | js >> >> It worked great, but then I wanted colorized output. I found an >> existing >> CPAN module, App::lj (https://metacpan.org/pod/App::LJ) which >> provides >> an `lj` script to do that same thing. >> >> It uses JSON::Color. However, JSON::Color won't keep integers, but >> instead makes them strings. :-( I filed a bug. >> >> Maybe I'll write my own colorization. For now, here's my script: >> https://gist.github.com/jdigory/78751834e71291103d7d39bdd1bb48bc >> >> Josh >> _______________________________________________ >> Bend-pm mailing list >> Bend-pm at pm.org >> http://mail.pm.org/mailman/listinfo/bend-pm > _________________________________________________ > Bend-pm mailing list > Bend-pm at pm.org > http://mail.pm.org/mailman/listinfo/bend-pm -------------- next part -------------- An HTML attachment was scrubbed... URL: From thowe at bendtel.net Thu Aug 25 14:26:19 2016 From: thowe at bendtel.net (Tim Howe) Date: Thu, 25 Aug 2016 14:26:19 -0700 Subject: [Bend-pm] JSON pretty printing In-Reply-To: <1472091650.3553037.705419417.08836656@webmail.messagingengine.com> References: <20160822112021.44171524@cool.bendtel.com> <1471902535.846939.702912769.13A69250@webmail.messagingengine.com> <1472091650.3553037.705419417.08836656@webmail.messagingengine.com> Message-ID: <20160825142619.0c84fc42@cool.bendtel.com> On Wed, 24 Aug 2016 19:20:50 -0700 Josh Lavin wrote: > Wish I could, but I'm out of town. It's actually not a good day for me either... We should re-schedule, yes? --TimH From momojak at gmail.com Thu Aug 25 14:48:02 2016 From: momojak at gmail.com (Mitch Small) Date: Thu, 25 Aug 2016 14:48:02 -0700 Subject: [Bend-pm] JSON pretty printing In-Reply-To: <20160825142619.0c84fc42@cool.bendtel.com> References: <20160822112021.44171524@cool.bendtel.com> <1471902535.846939.702912769.13A69250@webmail.messagingengine.com> <1472091650.3553037.705419417.08836656@webmail.messagingengine.com> <20160825142619.0c84fc42@cool.bendtel.com> Message-ID: I agree. I start bootcamp on the 12th, so any time before that works for me. -------------- next part -------------- An HTML attachment was scrubbed... URL: