The web in a box - a next generation web framework for the Perl programming language

IRC log for #mojo, 2015-04-18

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:13 jb360 joined #mojo
00:42 jberger Grinnz: did you work out a test case for the ForkCall delay helper?
00:45 mattastrophe joined #mojo
00:50 Grinnz ah no, i should do that now
00:53 Onigiri joined #mojo
01:10 asarch joined #mojo
01:11 Grinnz jberger, i can't really reproduce a proper case in the structure your plugin is using, because 1. the $delay->begin callback can't die (when it emits an error, that's caught by the delay-helper catch first and renders an exception), 2. an error in the finish event happens after the callback renders a response so it's irrelevant, and 3. i don't know how to get a stream error or deserializing error to happen
01:11 Grinnz however, if i make the callback passed to run() die, it's easy to reproduce
01:12 jberger deserialize error is easy too
01:12 jberger just replace the deserialize callback with sub { die }
01:12 Grinnz ahh
01:12 * jberger is considering making a Mojo::JSON::JWT or some such
01:13 Grinnz JWT?
01:13 jberger https://scotch.io/tutorials/the-anatomy-of-a-json-web-token
01:13 jberger its kinda like the session cookie we use
01:13 jberger but more general and url safe
01:14 Grinnz interesting
01:14 jberger at $work we need to find a way to grant temporary access from one system to another
01:14 jberger and this is something I'm considering
01:14 jberger the other was to make all the systems have the same secret in their mojo apps
01:15 jberger I didn't really want to do that since that would grant them full access and I would have to limit things in the router
01:16 jberger with this we would have shared known JWT secrets, you request one from your own system and use it to get/put data at another one
01:17 Grinnz if only everyone just was an RSA/PGP expert, we wouldnt have all these access problems!
01:18 jabberwok joined #mojo
01:18 Grinnz http://paste.fedoraproject.org/212534/19795142/
01:19 jabberwok batman: sprites code looking good
01:19 Grinnz if you change the commented line from 8 to 9, it will die in the event loop and hang
01:20 Grinnz also, i didnt know fpaste did syntax highlighting
01:21 jberger Grinnz: if you want to make an fpaste service module for Mojolicious::Command::nopaste I would be game
01:21 Grinnz no difference to me, all my systems come with fpaste :P but i may for the hell of it
01:22 jberger they are kinda fun to implement
01:22 jberger and some of the command line switches are handy
01:22 jberger like -o
01:22 jberger opens the resulting page in your browser
01:22 Grinnz thats just hax :P
01:23 jberger and built-in irc notifications
01:24 Grinnz fpaste actually has an option to read or write to the X clipboard, heh
01:24 Grinnz havent used it though...
01:25 Grinnz and as a corollary, there are apparently 3 X clipboards
01:25 jberger yeah, the clipboard handling is my least favorite part of M::C::nopaste
01:25 jberger I tried to make it "just work" and yet ...
01:27 jberger Grinnz: ok so remind me, you think that this line is wrong? https://github.com/jberger/Mojo-IOLoop-ForkCall/blob/master/lib/Mojolicious/Plugin/ForkCall.pm#L24
01:27 Grinnz yeah
01:28 jberger I guess I thought that the delay helper would take over
01:28 jberger must not quite be doing it right
01:29 Grinnz it's in the forkcall's delay at that point, not the delay helper's
01:29 jberger I'll admit I added this helper mostly for your benefit, I never use it :-)
01:29 jberger ah
01:34 klapperl joined #mojo
01:35 Grinnz if i understand it right, it goes like: first delay sub, installs forkcall delay, then returns to event loop; forkcall delay runs, then calls the callback which calls the delay helper callback, only that callback has errors caught by the helper
01:37 jberger I'm looking at something like this: http://pastie.org/10099160
01:38 jberger I need to write a proper test case first though
01:39 jberger I think I have one too many references in there actually
01:39 Grinnz definitely needs a test case, i'm always iffy about changing variables in subs that aren't executed in the same scope
01:42 Grinnz i threw it into my script though and it seems to work
01:48 Ptolemarch joined #mojo
01:50 Grinnz_ joined #mojo
02:07 Grinnz joined #mojo
02:08 noganex_ joined #mojo
02:21 Grinnz joined #mojo
02:29 jberger Grinnz: https://github.com/jberger/Mojo-IOLoop-ForkCall/commit/7b0315fcc7ed2ba0f00157186de15a6dd61f534f
02:33 Grinnz uhh, that just ignores the error
02:34 jberger no it doesn't
02:34 jberger how?
02:35 Grinnz it doesn't render an exception
02:35 jberger look at the test
02:36 Grinnz oh, it puts it in $err
02:36 Grinnz clever bastard :P
02:37 jberger :)
02:37 jberger it went through several complex iterations before I noticed that
02:40 Grinnz i wonder though, would that cause a problem if it dies after that callback has already been called?
02:40 Grinnz like if the callback itself dies, or the finish event
02:40 Grinnz i suppose the first one will be caught by the delay helper anyway
02:40 jberger do you think anyone uses the finish event?
02:41 Grinnz hahah, no idea
02:41 jberger I'm thinking about removing it anyway
02:41 jberger its useful for repeated forked processes
02:41 jberger I'm of two minds on it
02:46 Grinnz i did kind of wish the pid of the forked process was easier to get at, but i don't recall the use case at the moment...
02:46 Grinnz and thats definitely not relevant to the finish event
02:47 jberger I really didn't want to expose the $fc instance in the helper
02:48 jberger once you want to do that you should be using the class directly
02:49 Grinnz right, i dont mean for the helper necessarily
02:50 jberger Grinnz: https://github.com/jberger/Mojo-IOLoop-ForkCall/compare/c7cea5ce72e377231151f350dba31cc3741bc1ef...master#diff-6aa3e9b47bd565e28424fc0d5dba2306R24
02:58 jberger thoughts?
02:58 purl Mmm... donuts.
02:58 jberger shove it purl!
02:59 preaction mmm... 64 slices of american cheese
02:59 jberger dear gods preaction, what are you up to?!
03:00 preaction hmm... i could add that to what i just did
03:00 Grinnz rofl
03:00 Grinnz jberger, works for me
03:00 preaction https://twitter.com/preaction/status/589261365744893953
03:00 preaction that is what i was up to
03:01 jberger :o
03:02 preaction the fried egg didn't turn out the best. the pasta was too hot and cooked the rest of the yolk, carbonara-style. but it wasn't bad
03:03 jberger hmmmm, I wouldn't have thought of that problem either
03:03 jberger I made my second attempt at grilled palmitos today
03:03 preaction after it happened, it was obvious ;)
03:03 jberger which is harder in the US given the lack of materials
03:04 preaction i've never even heard of that. i mean, i know heart of palm is a thing, but.. yeah. you can grill it?
03:05 jberger I bought jarred hearts of palm, drained them a few hours before
03:05 jberger it was a thing I had in Brazil, soooo good
03:06 preaction how'd it go?
03:06 jberger not too bad
03:06 jberger I might try to dry them a bit more first, but decent
03:07 mattastrophe joined #mojo
03:07 preaction that's makes sense
03:08 preaction i've been reading a bit, and that comes up a lot: how much water is in something really changes how it cooks, like meats
03:09 jberger the brazillian form: https://plus.google.com/u/0/photos/100592767824314904212/albums/5945852322839578993/5948135104234015554?pid=5948135104234015554&oid=100592767824314904212
03:09 jberger preaction: glad to hear I'm on the right track
03:09 preaction nice
03:10 jberger it was the clear cause of the utter failure of the first attempt, so that was my course of action this time. I hadn't done any reading
03:10 preaction ahh
03:11 jberger this is the last one of my brazillian foods that I want to try: https://plus.google.com/u/0/photos/100592767824314904212/albums/5945852322839578993/5948135789770126322?pid=5948135789770126322&oid=100592767824314904212
03:11 jberger gonna be tough
03:12 preaction that looks amazing
03:12 preaction is that beef?
03:13 jberger yeah
03:13 preaction nice
03:14 jberger raw diced spiced steak
03:14 jberger soo rich and yummy
03:16 preaction kind of reminds me of ceviche (which i had to look up), raw tuna, spices, lime juice (oh god the ceviche at Frontera was limetastic)
03:24 harry joined #mojo
03:25 jberger hmmmm, the new cpan_mojo is so slow :s
03:25 jberger https://twitter.com/cpan_new/status/589268347813896192
03:26 jberger @cpan_new already has it
03:27 jberger I probably should either remove Mojo::FriendFeed from CPAN or at least push a version that warns that the service is gone
03:27 jberger kinda obvious I guess
03:28 jberger hahahahaha: https://twitter.com/hashtag/SpockQuestionsSongLyrics?src=tren
03:33 jberger mine is in: https://twitter.com/joelaberger/status/589270239319232512
03:36 cpan_mojo JBERGER released Mojo-IOLoop-ForkCall-0.17
03:37 Ptolemarch joined #mojo
03:39 Grinnz heheh
03:58 basic6 joined #mojo
04:04 jberger batman: I made a change to App-cpan_new
04:04 jberger I missed having a link to the release
04:07 kaare joined #mojo
04:15 irq joined #mojo
04:22 asarch joined #mojo
04:35 cpan_mojo HARRYL released Mojo-MySQL5-0.08
04:46 harry left #mojo
05:25 Ptolemarch joined #mojo
06:19 batman jabberwok: thanks. I was hopping for some critics :P
06:19 batman Like the handler code is poking in $assetpack internals
06:19 batman jberger: ok. I'll look at it soon. Thanks :)
06:20 NikitaTropin joined #mojo
06:27 marcus ooh Carmel, so shiny
06:27 marcus miyagawa++
06:57 batman marcus: more info?
06:57 purl hmmm... more info is always good :)
07:00 batman jberger: what's the difference between jwt and mojo sessions?
07:00 batman except *where* they are used
07:05 cpan_mojo joined #mojo
07:09 oliver joined #mojo
07:10 marcus batman: All I know is https://twitter.com/miyagawa/status/589137443246448640
07:11 marcus https://github.com/miyagawa/Carmel
07:14 Ptolemarch joined #mojo
07:20 marcus hmm, seems like it might have some XS issue. Could not find an artifact for CSS::Minifier::XS => == 0.08
07:28 irq_ joined #mojo
07:32 Oleg joined #mojo
07:49 KindOne joined #mojo
07:55 berov joined #mojo
07:56 misty_g3ar joined #mojo
08:06 KindOne joined #mojo
08:15 trone joined #mojo
08:23 Vandal joined #mojo
08:42 amon joined #mojo
08:56 misty_g3ar joined #mojo
09:03 Ptolemarch joined #mojo
09:44 basic6_ joined #mojo
10:40 kaare joined #mojo
10:41 melo joined #mojo
10:52 Ptolemarch joined #mojo
11:02 sh4 joined #mojo
11:04 melo joined #mojo
11:14 jabberwok ok so I did a git clone of Mojolicious::Plugin::AssetPack into a working directory and then a git checkout -t remotes/origin/sprites ... and can see the code; what I don't know even from http://mojolicio.us/perldoc/Mojolicious/Guides/Contributing is how to symlink or place things to write a few test programs.  any suggestions, batman or anyone
11:16 batman so... the normal way would probably be to do what you just did. then change the code locally and paste the diff somewhere online.
11:16 batman if the diff is interesting, then clone the repo on github and open a pr.
11:16 batman https://help.github.com/articles/creating-a-pull-request/
11:35 cpan_mojo Mojolicious-Plugin-Bootstrap3-3.3007 by JHTHORSEN https://metacpan.org/release/JHTHORSEN/Mojolicious-Plugin-Bootstrap3-3.3007
11:35 cpan_mojo Mojolicious-Plugin-AssetPack-0.52 by JHTHORSEN https://metacpan.org/release/JHTHORSEN/Mojolicious-Plugin-AssetPack-0.52
11:41 batman jabberwok: i'm curious about what you're trying to do :)
11:42 batman but i have to go now... *bbl*
11:56 jberger batman: yes the difference is mostly where they are used
11:57 jberger mojo doesn't make it convenient (that I can tell) to reuse message signing for non cookie purpose
12:05 chorny joined #mojo
12:10 melo joined #mojo
12:41 Ptolemarch joined #mojo
12:48 jb360 joined #mojo
13:31 vmbrasseur joined #mojo
13:38 batman jberger: thanks for the commit btw.
13:38 batman Wondering if there's any two-way info that could be useful...
13:40 Oleg joined #mojo
14:14 jberger batman: what do you mean by two way?
14:14 marcus kinky!
14:15 jberger marcus++
14:30 Ptolemarch joined #mojo
15:20 Adurah joined #mojo
15:24 Adura joined #mojo
15:29 ajr_ joined #mojo
16:19 Ptolemarch joined #mojo
16:42 ToApolytoXaos joined #mojo
17:01 memowe joined #mojo
17:09 davido_ joined #mojo
17:19 melo joined #mojo
17:38 gryphon joined #mojo
17:39 vmb joined #mojo
17:46 chorny joined #mojo
17:52 melo joined #mojo
18:04 asarch joined #mojo
18:08 Ptolemarch joined #mojo
18:30 Oleg joined #mojo
18:33 punter joined #mojo
18:52 punter joined #mojo
19:35 cpan_mojo Mojolicious-Plugin-Notifications-0.8 by AKRON https://metacpan.org/release/AKRON/Mojolicious-Plugin-Notifications-0.8
19:36 jberger hey that looks better cpan_mojo
19:38 gryphon joined #mojo
19:57 Ptolemarch joined #mojo
20:09 melo joined #mojo
20:21 marty joined #mojo
20:45 Adura joined #mojo
21:22 cpan_mojo Mojolicious-Plugin-Piwik-0.16 by AKRON https://metacpan.org/release/AKRON/Mojolicious-Plugin-Piwik-0.16
21:23 marty joined #mojo
21:25 berov jberger: what was wrong with cpan_mojo ?
21:27 marty joined #mojo
21:35 cpan_mojo Mojolicious-Plugin-Piwik-0.17 by AKRON https://metacpan.org/release/AKRON/Mojolicious-Plugin-Piwik-0.17
21:35 cpan_mojo Mojolicious-Plugin-Util-Endpoint-0.18 by AKRON https://metacpan.org/release/AKRON/Mojolicious-Plugin-Util-Endpoint-0.18
21:45 Ptolemarch joined #mojo
22:01 batman jberger: I mean Rhat
22:01 batman that you can ask cpan_mojo about things.
22:04 jberger ahh
22:05 jberger berov: it's data source had been shut down
22:05 jberger s/it's/its/
22:06 berov data sourse? ok
22:06 berov source*
22:07 berov simply I was not seeing it to publish new uploads
22:13 jberger batman built a new one that polls metacpan
22:35 cpan_mojo Mojolicious-Plugin-MethodOverride-0.051 by GRAF https://metacpan.org/release/GRAF/Mojolicious-Plugin-MethodOverride-0.051
23:34 Ptolemarch joined #mojo
23:40 nuB23 joined #mojo
23:41 nuB23 hello all!
23:41 purl It's a crazy world, but hello to you too!
23:41 nuB23 Is there a Mojolicious cook book available online?
23:41 nuB23 I am a total newbie to Mojolicious and would love to learn it...
23:43 preaction the Mojolicious Guides are, afaik, the best option. there's also the mojocasts, but they're slightly out of date iirc
23:43 nuB23 I have went through them all...
23:43 preaction okay, so then write a mojolicious app
23:44 nuB23 It looks like those are for somewhat advanced for me!
23:47 nuB23 left #mojo
23:49 nuB23 joined #mojo
23:54 nuB23 left #mojo

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary