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

IRC log for #mojo, 2015-10-11

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

All times shown according to UTC.

Time Nick Message
00:05 tianon joined #mojo
00:08 jberger We even rescued him from Boston, apples, and Ben Affleck
00:14 jberger CandyAngel: one thing I liked about it (and the book) is that it feels realistic (for the most part)
00:20 CandyAngel Coolies
00:48 tianon joined #mojo
00:54 tianon joined #mojo
00:54 Grinnz MATT DAMON
01:04 tianon joined #mojo
01:23 tianon joined #mojo
01:25 panshin joined #mojo
01:28 aborazmeh joined #mojo
01:53 disputin joined #mojo
01:53 disputin1 joined #mojo
01:58 disputin2 joined #mojo
01:58 disputin joined #mojo
01:58 tianon joined #mojo
02:01 disputin1 joined #mojo
02:04 tianon joined #mojo
02:14 bpmedley http://bmedley.org/live_bookl.mov <-- Is a real-time book a good idea?  Code here: https://github.com/brianmed/livetutorial
02:15 bpmedley http://bmedley.org/live_book.mov, even
02:21 disputin joined #mojo
02:22 noganex joined #mojo
02:28 tianon joined #mojo
02:29 KindOne joined #mojo
02:40 PryMar56 joined #mojo
03:27 panshin joined #mojo
04:06 Lucas1 joined #mojo
04:32 SmokeMachine joined #mojo
05:51 panshin joined #mojo
06:20 cpan_mojo API-Client-0.04 by AWNCORP https://metacpan.org/release/AWNCORP/API-Client-0.04
07:12 mattastrophe1 joined #mojo
07:42 cpan_mojo Mojo-Webqq-1.5.5 by SJDY https://metacpan.org/release/SJDY/Mojo-Webqq-1.5.5
07:48 Vandal joined #mojo
07:49 berov joined #mojo
08:05 stephen joined #mojo
08:10 cpan_mojo API-Wunderlist-0.06 by AWNCORP https://metacpan.org/release/AWNCORP/API-Wunderlist-0.06
08:11 cpan_mojo API-Facebook-0.04 by AWNCORP https://metacpan.org/release/AWNCORP/API-Facebook-0.04
08:12 cpan_mojo API-Name-0.06 by AWNCORP https://metacpan.org/release/AWNCORP/API-Name-0.06
08:12 cpan_mojo API-Github-0.06 by AWNCORP https://metacpan.org/release/AWNCORP/API-Github-0.06
08:13 cpan_mojo API-Trello-0.06 by AWNCORP https://metacpan.org/release/AWNCORP/API-Trello-0.06
08:13 cpan_mojo API-Stripe-0.06 by AWNCORP https://metacpan.org/release/AWNCORP/API-Stripe-0.06
08:14 cpan_mojo API-Basecamp-0.06 by AWNCORP https://metacpan.org/release/AWNCORP/API-Basecamp-0.06
08:14 cpan_mojo API-Twitter-0.05 by AWNCORP https://metacpan.org/release/AWNCORP/API-Twitter-0.05
08:29 ans joined #mojo
08:37 ans1 joined #mojo
08:42 SmokeMachine joined #mojo
08:44 amon joined #mojo
08:51 Lucas1 joined #mojo
09:23 panshin joined #mojo
09:32 gaunt joined #mojo
09:34 panshin joined #mojo
09:47 meshl joined #mojo
09:59 dotan joined #mojo
10:07 SmokeMachine joined #mojo
10:08 Lucas1 joined #mojo
10:12 sh4 joined #mojo
10:24 cpan_mojo AnyEvent-WebSocket-Client-0.31 by PLICEASE https://metacpan.org/release/PLICEASE/AnyEvent-WebSocket-Client-0.31
10:25 trone joined #mojo
11:23 cpan_mojo JSON-Validator-0.57 by JHTHORSEN https://metacpan.org/release/JHTHORSEN/JSON-Validator-0.57
11:24 cpan_mojo Swagger2-0.59 by JHTHORSEN https://metacpan.org/release/JHTHORSEN/Swagger2-0.59
11:25 cpan_mojo Mojo-Webqq-1.5.6 by SJDY https://metacpan.org/release/SJDY/Mojo-Webqq-1.5.6
11:31 jontaylor joined #mojo
12:23 cpan_mojo Mojolicious-Plugin-Pingen-0.2.2 by OETIKER https://metacpan.org/release/OETIKER/Mojolicious-Plugin-Pingen-0.2.2
12:25 kensanata joined #mojo
13:00 sri that's a lot of releases
13:09 Zoffix Considering that's all the testing they have, I'm dubious on the quality https://metacpan.org/source/AWNCORP/API-Github-0.06/t/main.t
13:09 batman Zoffix: hehe
13:13 d4rkie joined #mojo
13:19 D4RK-PH0ENiX joined #mojo
13:43 jontaylor joined #mojo
13:49 PryMar56 joined #mojo
13:53 cpan_mojo Mojolicious-Plugin-Qaptcha-0.11 by HRUPP https://metacpan.org/release/HRUPP/Mojolicious-Plugin-Qaptcha-0.11
14:08 Dada joined #mojo
14:21 asarch joined #mojo
14:37 sh4|2 joined #mojo
14:40 ajr_ joined #mojo
15:09 romel joined #mojo
15:30 * sri can't wait for the next marvel series on netflix
15:31 abra joined #mojo
15:34 jberger We (maybe me) should write some posts about how to test external api modules
15:34 sri you should ;p
15:34 * jberger is very busy being on the beach
15:37 jberger https://twitter.com/bcrypt/status/651985997014695936/photo/1
15:37 jberger h/t aristotle
15:39 Grinnz sri, the DC ones are great too, even though they get to netflix late :(
15:42 Lee joined #mojo
15:48 genio jberger: I setup a mock Mojo::Lite server for each API function (slow to load each test this way, but with the amount of crap that goes into coverage testing, it made it easier to manage)
15:48 genio https://github.com/genio/www-salesforce-nb/tree/master/t
15:49 jberger genio: I've been doing similarly of late
15:51 genio Going through the actual service's success/error responses and making the mock behave the same way and testing all of those scenarios is a bit annoying, but I don't know how else to accurately test
15:51 dod joined #mojo
15:52 jberger Yeah
15:52 jberger genio: you should write a post!
15:53 * jberger gets his snorkel
15:54 genio jberger: I'm not a very good writer nor do I have a blog system setup at this moment.  It'd make more sense for you to do so. :)  I'll be happy to help edit/provide input.
15:55 kensanata batman: Oh, I sadly missed your nick when I joined. So, feel free to talk about my pull request on IRC instead of using GitHub.
15:57 dod joined #mojo
16:06 jberger http://imgur.com/M5UOvvn
16:13 panshin joined #mojo
16:14 genio you're supposed to be enjoying the beach (away from the comp.)  what's wrong with you?  Forget computers exist for a day or so
16:17 batman kensanata: about CGI..? I'm eating dinner, maybe I'm back later tonight...
16:17 Grinnz genio, that picture was taken by the microchip in his brain
16:19 kensanata batman: Enjoy. :)
16:20 henq joined #mojo
16:24 sri jberger: and don't get eaten by sharks
16:25 sri Grinnz: they are ok i guess, but dare devil was a whole different league
16:26 sri first reviews of jessica jones are full of hype, looks like it will be very dark again too
16:26 Grinnz have you seen the flash yet? s1 just went up on netflix, with s3 of arrow, the crossovers are pretty cool
16:26 shadowpaste "henq" at 217.168.150.38 pasted "@@template not seen in controller?" (29 lines) at http://paste.scsys.co.uk/500207
16:26 sri Grinnz: yea, very light hearted
16:26 Grinnz i'm hyped for the next marvel series too
16:26 sri i liked flash more than arrow though
16:27 sri first season of arrow was great, but then the quality declined a bit
16:28 henq Hi guys, newbie here; My template in the __DATA__ section is not seen by render_to_string() ; any hints ?  http://paste.scsys.co.uk/500207?tx=on&amp;submit=Format+it%21
16:30 sri henq: answer is here http://mojolicio.us/perldoc/Mojolicious/Guides/Rendering#Renderer
16:32 sri http://mojolicio.us/perldoc/Mojolicious#renderer
16:35 sri and before you ask... no, i'm afraid it cannot work any other way
16:37 henq Mmm thx,  format and handler are inferred corerctly (as seen by error message)  so I must study the ‘classes’ part?
16:51 jontaylor joined #mojo
16:52 buu sri: does flash ever stop being quite so teen angsty?
16:52 pink_mist the tv series?
16:53 buu yes
16:54 pink_mist it seemed like he'd stop at the end of S1 ... but now that S2 started, I'm not so sure anymore .. still waiting and hoping
16:56 buu =[
17:03 borkurg joined #mojo
17:15 * sri likes the marvel shows more, next one will be a noir detective story o/
17:15 thowe Jessica Jones
17:16 thowe Looking forward to it.
17:16 sri agent carter was a bit too slow for me though
17:17 thowe I'm a fan of the Daredevil story arcs this stuff is taken from.  Man, I hope they do group discussions at the church basement.  Reading that freaked me out.
17:17 sri buu: re teen angsty... those are CW shows after all ;p
17:17 thowe That 6-part story should have won an award.
17:18 henq In a (non-lite) app, is it enough to do in startup() once       push @{$self->renderer->classes}, 'MyApp::MyClass’;      ?   Or is it invocation for in each controller class?
17:19 sri henq: once
17:19 sri henq: there's an important note too
17:20 sri http://mojolicio.us/perldoc/Mojolicious/Renderer#classes
17:20 sri that's linked fromt eh guide
17:21 henq oops… so I must use eachr controlle class in main app script; okay , thx
17:24 borkurg left #mojo
17:35 ajr_ joined #mojo
18:28 jnbek joined #mojo
18:47 zivester joined #mojo
18:48 zivester joined #mojo
18:52 bpmedley jberger: Be careful of sharks
18:55 bpmedley http://bmedley.org/live_book.mov <-- Anyone see this?
19:12 espent joined #mojo
19:31 genio The Flash is a letdown.  teen angsty is a good way to put it. :/
19:32 genio The acting also is terrible at time.  Awkward pauses in speech that wouldn't happen unless you're reading something
19:32 genio times
19:37 espent joined #mojo
19:43 bpmedley genio: Did you recover any of your music?
19:45 genio nope
19:46 genio I've got the drive pulled for now.  Will attempt a backup at work with a USB drive bay
19:46 bpmedley Wowzers, what a total downer
19:48 genio I'm fairly certain I have bits and pieces of my data on several other drives laying around the house somewhere
19:58 panshin joined #mojo
19:59 espent joined #mojo
20:46 thowe is there a log object that is set up by default?  perhaps emitting these debug messages?  Or is that something else?
20:47 bpmedley thowe: Do you have a "log" directory?
20:47 thowe no
20:48 bpmedley $c->app->log->debug("Yippie");
20:48 thowe yeah, it's under app
20:48 thowe just found it
20:48 thowe I was trying to call log from the controller
20:48 bpmedley That will goto STDERR if you do not have a "log" directory and will goto "log/development.log" if you do, and are in development mode.
20:48 thowe cool, thanks!
20:52 genio joined #mojo
21:19 henq joined #mojo
21:28 henq [back from dinner ;-) ]  @sri So ugh, indeed I must “use” each  controller class that has templates in __DATA __ part in startup() . Something to put in  the ‘growing’ docs perhaps? It is not trivialy clear from the outset. thx;
21:38 lluad joined #mojo
21:42 sri henq: it's there
21:43 sri http://mojolicio.us/perldoc/Mojolicious/Renderer#classes
21:43 sri "Note that these classes need to have already been loaded and added during application startup for templates to be detected."
21:46 henq Yes, but I meant the “Growing” docs. http://mojolicio.us/perldoc/Mojolicious/Guides/Growing#Controller-class
21:47 henq Lots of @@templates in Lite examples, but not for Controller-based app.
21:49 sri henq: where?
21:49 sri and what should it say?
21:56 sri the whole process of adding the classes and loading them yourself is kinda clunky, don't think i'd want to see an example for that in the guides
21:57 sri few months (years?) ago i've actually proposed something to make it more elegant, but didn't get any votes
21:58 sri so, i guess i'm ok with not actually encouraging templates in controller data sections
22:05 henq okay, fair enough.    (However, now the Growing docs explain how to inflate  static inlined templates to file-based, but not what to do if youe wan to lkeep them inlined. )
22:12 jontaylor hey guys, i’ve got two mojo apps on the same server which talk to each other, and i’m trying to work out where my extra overhead is, the server thinks the call takes 11ms, but the server thinks it takes 150ms
22:14 jontaylor i know that some of the time will be the server generating the http request and sending it, but I wouldn’t have expected 140ms worth
22:14 bpmedley jontaylor: Are you saying app #1 round trip takes 11 ms and app #2 round trip takes 150 ms?
22:14 jontaylor I’ve used curl to hit it directly and thats only slightly faster
22:15 jontaylor bpmedley: app #1 is the server in this instance that hosts a webservice, app #2 is the client that uses Mojo::UserAgent to consume the resource
22:15 trone_ joined #mojo
22:15 jontaylor i’m measuring app 1 by what the debug log says the request takes
22:16 jontaylor and i’m measuring app 2 using Time::HiRes around the code where I call the api
22:16 bpmedley So, app #1 responds in 11 ms?
22:16 jontaylor yep
22:16 jontaylor but app 2 thinks it took 150 ms
22:16 bpmedley How long does curl to hit app #1?
22:16 jontaylor 140ms
22:16 bpmedley curl *take to
22:17 bpmedley Moment
22:17 jontaylor What I could do, is go away and make a simple example mojo app
22:17 jontaylor to recreate it in a basic manner
22:25 jontaylor I do not get the same problem in my simple case
22:26 jontaylor so it must be something else, in my own code somewhere
22:26 jontaylor bpmedley: My test case doesn’t reproduce it so far, so don’t waste any time on it
22:29 bpmedley jontaylor: Could it be the time to fork?  I assume you're client and especially curl are forking.
22:33 jontaylor bpmedley: I think I know what it may be, this app does some logging for audit reasons in an after_dispatch hook, my assumption with that is that it wouldn’t slow the client down as the response had been sent
22:34 sri henq: but that is a best practice
22:34 jontaylor but disabling it makes the client think the request was faster, while the server thinks the request took the same amount of time, it most likely records its finish time before this
22:34 bpmedley jontaylor: That seems to makes sense.  Thanks for the explanation.
22:35 sri henq: there is also a section for templates http://mojolicio.us/perldoc/Mojolicious/Guides/Rendering#Bundling-assets-with-plugins
22:35 sri henq: because, again, it's a best practice
22:37 sri data sections in controllers is just meh... something for hacks like this http://blog.kraih.com/post/43198653667/mojolicious-hack-of-the-day-mojolyst
22:37 meshl joined #mojo
22:37 henq @sri , that’s why i said ‘fair enough’. But, but I consider controllers and templates tightly knit together, and oftencase for exaple for simple mails (in my case) like ‘password reset’ a seperate file adds housekeeping burden. Anyhow, thx for the pointers/expanation to this newbie.
22:38 sri s/templates/plugins/
22:39 henq OMG ! I need to go to bed now; will study it coming days; promise ! :-)    “even templates in the DATA sections of each controller are supported. :)”  <<— smells good ;-)
22:42 jontaylor sri: I’m trying to work out at what part of a request the server finishes with the client, and the client becomes unblocked, is it when the tx is resumed here? https://github.com/kraih/mojo/blob/9642fb7cadcb4e427e7bae055055c9bda48b458f/lib/Mojolicious/Controller.pm#L217
22:58 KCL_ joined #mojo
22:58 jberger Shall I attempt to make you all jealous?
22:58 jberger http://imgur.com/2VYOCUn
23:01 bpmedley jberger: Are you going to a fancy restaurant?
23:04 jberger No just sitting out at the beachfront
23:04 jberger Might go later tho
23:05 abra_ joined #mojo
23:15 meshl joined #mojo
23:41 d4rkie joined #mojo

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