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

IRC log for #mojo, 2015-03-23

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

All times shown according to UTC.

Time Nick Message
00:08 wingfold joined #mojo
00:14 good_news_everyon joined #mojo
00:14 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/h7et
00:14 good_news_everyon mojo/master 3c04b7d Sebastian Riedel: fix typo in Changes
00:14 good_news_everyon left #mojo
00:18 good_news_everyon joined #mojo
00:18 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/h7eX
00:18 good_news_everyon mojo/master 79b2c10 Sebastian Riedel: fix another typo in Changes
00:18 good_news_everyon left #mojo
01:15 woz joined #mojo
02:09 klapperl joined #mojo
02:16 hshong joined #mojo
02:39 kaare joined #mojo
02:50 Anon021 joined #mojo
03:02 csson joined #mojo
03:09 noganex_ joined #mojo
03:29 PanzerBjorn left #mojo
03:52 woz joined #mojo
03:52 tianon joined #mojo
03:53 davido_ joined #mojo
03:59 inokenty-w joined #mojo
04:41 good_news_everyon joined #mojo
04:41 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/h7ig
04:41 good_news_everyon mojo/master b9ae65b Sebastian Riedel: more consistent descriptions for write_chunk usage
04:41 good_news_everyon left #mojo
04:41 good_news_everyon joined #mojo
04:41 good_news_everyon [mojo] kraih tagged v6.04 at 5d8597c: http://git.io/h7ia
04:41 good_news_everyon left #mojo
04:43 cpan_mojo Mojolicious 6.04 by Sebastian Riedel - http://metacpan.org/release/SRI/Mojolicious-6.04
04:43 good_news_everyon joined #mojo
04:43 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/h7i9
04:43 good_news_everyon mojo/master 2e7cdf0 Sebastian Riedel: bump version
04:43 good_news_everyon left #mojo
04:49 basic6 joined #mojo
05:20 cpan_mojo Statocles 0.043 by Doug Bell - http://metacpan.org/release/PREACTION/Statocles-0.043 (depends on Mojolicious)
05:33 sri switching syntax highlighting themes after 5 years is so weird
05:37 sri think i'll give the new Atom One theme a try though http://i.imgur.com/hJuxWCI.png
05:43 marmez joined #mojo
06:13 alexbyk joined #mojo
06:20 crab i've now switched to not using syntax highlighting at all
06:35 marcus I've switched everything to solarized
06:35 marcus mostly because I can get solarized everywhere
06:35 marcus and I use it as my terminal color theme.
06:37 irq joined #mojo
06:38 marcus I'm even using solarized for my i3 theme and google chrome theme.
06:39 marcus crab: so you're in mst's club now, I guess. :)
07:20 bramirez joined #mojo
07:29 woz joined #mojo
07:32 McA joined #mojo
07:34 buu I need a theme that works with a white background
07:34 buu Thoughts?
07:34 purl "I'm never here, I'm never here, I'm never here  /  never a bird, or a flower in the tree, or the pain of the respect thereof..."
07:34 buu Thanks purl.
07:44 dod joined #mojo
08:07 fhelmber_ joined #mojo
08:09 vytas joined #mojo
08:10 AndrewIsh joined #mojo
08:10 eseyman joined #mojo
08:17 Vandal joined #mojo
08:22 marcusr joined #mojo
08:34 McA joined #mojo
08:37 trone joined #mojo
08:42 sivoais_ joined #mojo
08:44 bramirez joined #mojo
08:46 McA joined #mojo
08:48 odc joined #mojo
08:50 marcusr joined #mojo
08:51 sivoais joined #mojo
08:56 cpan_mojo Mango 1.17 by ODC - http://metacpan.org/release/ODC/Mango-1.17 (depends on Mojolicious)
08:57 arthas joined #mojo
09:01 McA joined #mojo
09:06 punter joined #mojo
09:16 denny joined #mojo
09:17 amon joined #mojo
09:18 woz joined #mojo
09:21 icjs joined #mojo
09:22 icjs what happens when hypnotoad gets more connections that can be handled? i take it that "queueing" of conenctions happens and this is handled by the tcp/ip stack of the OS?
09:22 tianon joined #mojo
09:24 marcusr icjs: yes
09:24 ZadYree joined #mojo
09:27 icjs marcusr, ok thanks - how long does a connection wait beforing timing out? what determines that?
09:27 icjs or what "lkevel" is that handled at etc
09:28 icjs also, i take it that this queuing behaviour is typical among any tcp/ip network server software (eg. apache)
09:30 marcusr icjs: our model is more similar to nginx than apache.
09:31 marcusr icjs: http://mojolicio.us/perldoc/Mojo/Server/Daemon#backlog
09:52 woz joined #mojo
09:53 batman can someone help me with why i can't run coverage test on assetpack? https://gist.github.com/jhthorsen/23b0ccb41ccf71ebdbbe
09:53 batman it simply stops the test at the "Rendering template" step :/
09:55 batman i don't think i can't load Devel::Cover and the debugger at the same time, so i'm kind of lost...
09:57 batman i see "--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_DUMPED, si_pid=406, si_status=SIGSEGV, si_utime=36, si_stime=1} ---" from strace right after "Rendering template" ...
10:12 bramirez Hi! Can someone help me? I have a websocket intended to download a large file from another server and report the downloading progress to the client. So I have a websocket connection (A) that creates another connection (B) that downloads the file. The B connection stores the progress information in a Redis cache, and the A connection reads that information from the same Redis cache, in order to send it to the client. The problem is that
10:16 go|dfish bramirez: your message cut off at 'The problem is that'
10:17 bramirez Ah, sorry!
10:17 bramirez The problem is that I'm not allowed to use a Redis component anymore. I can use a Postgres DB, but it is slow for this kind of task. So, how could I share that progression info between these two connectios (A and B) without that kind of component? Thanks!!
10:30 batman crap. it's Sub::Util::set_subname() that makes it fail :(
10:34 crab how does it do that?
10:35 dod joined #mojo
10:35 batman not sure. i'm making a minimal test case now...
10:49 batman crab: https://gist.github.com/jhthorsen/4424671b9fa9061247ee
10:49 batman sri: ^ got any ideas?
10:54 batman at least i managed to get coverage from assetpack now, but disabling Sub::Util in Mojo::Util
10:54 batman btw: updated gist. s/Sub::Name/Sub::Util/
10:58 irq_ joined #mojo
11:25 meshl joined #mojo
11:39 meshl joined #mojo
11:53 bramirez joined #mojo
11:58 neilhwatson joined #mojo
12:02 cpan_mojo Mojolicious-Plugin-AssetPack 0.44 by Jan Henning Thorsen - http://metacpan.org/release/JHTHORSEN/Mojolicious-Plugin-AssetPack-0.44
12:03 batman ^ i hope that release doesn't break anything :/
12:03 batman any assetpack users out there? please try it out.
12:19 mattastrophe joined #mojo
12:30 andreoss joined #mojo
12:32 andreoss is it a good idea to use Mojo::Server::Prefork to implement a proxy server?  with simple event loop the performance seems to be not good.
12:36 cpan_mojo Mojo-SMTP-Client 0.06 by Oleg G - http://metacpan.org/release/OLEG/Mojo-SMTP-Client-0.06
12:37 McA joined #mojo
12:38 bwf joined #mojo
12:45 coolo batman: you sound very convincing :)
12:45 batman coolo: yeah. that's how i roll.
12:45 batman haha
12:46 batman coolo: well... 262 tests are ok, but it might behave in an unexpected way
12:47 McA joined #mojo
12:47 coolo let me break my app for you :)
12:48 batman it's very unlikely it will break, but please go crazy :)
12:48 batman https://metacpan.org/source/JHTHORSEN/Mojolicious-Plugin-AssetPack-0.44/Changes#L3
12:48 batman "very unlikely" = famous last words :P
12:49 batman coolo: but breaking early is good. then i can fix it before too many gets disappointed :)
12:51 coolo batman: https://build.opensuse.org/package/rdiff/devel:languages:perl/perl-Mojolicious-Plugin-AssetPack?linkrev=base&rev=3
12:51 batman coolo: what am i looking at?
12:52 coolo batman: the translation of your mentioned changes file :)
12:52 coolo I have to update the package before I can test
12:52 batman ok.
12:52 coolo batman: but the assets look the same now - beside the obvious change in file name
12:53 batman yeah. i haven't changed how the are packed.
12:53 batman did you delete the old packed assets?
12:53 coolo batman: sure
12:53 coolo and I tested development and production
12:53 batman it shouldn't update with ".min" unless you changed the source files
12:54 batman https://metacpan.org/source/JHTHORSEN/Mojolicious-Plugin-AssetPack-0.44/t/back-compat-min.t
12:55 coolo that's fine, but I'm deleting them all the time anyway
12:56 batman ok :)
12:57 batman thanks
13:01 jberger batman: why is that test monkey patching anything anyway?
13:02 batman jberger: are you referring to my gist?
13:02 jberger yes
13:02 jberger I don't see any monkey patching happening
13:02 batman https://github.com/kraih/mojo/blob/master/lib/Mojo/Template.pm#L270
13:03 jberger ah
13:11 marty joined #mojo
13:15 powerman joined #mojo
13:16 ZadYree joined #mojo
13:16 powerman how to get names of all upload params? i.e. how to do something like $c->req->params->names() for uploads?
13:17 Zoffix all_params?
13:17 Zoffix Oh, never mind me.
13:20 powerman btw, is $c->req->body_params->names will at least include names of upload params?
13:25 powerman found it: https://metacpan.org/pod/Mojo::Message#uploads
13:28 gryphon joined #mojo
13:30 doby joined #mojo
13:34 Kripton joined #mojo
13:35 andreoss is it a good idea to use Mojo::Server::Prefork to implement a proxy  server?
13:35 andreoss (as asked above)
13:36 powerman left #mojo
13:49 sri maybe
13:50 zivester joined #mojo
13:55 cpan_mojo Mojolicious-Plugin-Breadcrumbs 1.001001 by Zoffix Znet - http://metacpan.org/release/ZOFFIX/Mojolicious-Plugin-Breadcrumbs-1.001001
13:58 tianon joined #mojo
14:09 Ptolemarch joined #mojo
14:35 cpan_mojo Mojolicious-Plugin-MoreHTMLHelpers 0.01 by Renee Baecker - http://metacpan.org/release/RENEEB/Mojolicious-Plugin-MoreHTMLHelpers-0.01
14:35 LambdaCat joined #mojo
14:35 LambdaCat hi
14:35 LambdaCat .
14:36 LambdaCat hi
14:36 Zoffix Hi
14:36 purl hello, Zoffix.
14:41 ribasushi confusing mojoconf is confusing
14:42 ribasushi site says 4-6th, yet "conf day" is listed as 5th only
14:42 ribasushi am I missing an obvious link?
14:45 batman ribasushi: 4th is training, 5th is conf day, 6th is hackathon (iirc)
14:46 ribasushi batman: thanks
14:46 batman ribasushi: i will make an issue to riche
14:46 ribasushi batman: I may simply be blind and not seeing a link with all the info :/
14:47 batman ribasushi: i don't think you are
14:47 ribasushi or maybe we both are :P
14:50 batman ribasushi: https://github.com/mojoconf/nyc-2015-06-05/issues/17
14:53 jwang joined #mojo
14:54 batman sri, mst: https://github.com/harry-bix/mojo-MySQL5 # the split is happening
14:59 sri \o/
14:59 mtths joined #mojo
14:59 cpan_mojo Mojo-MySQL5 0.01 by HARRYL - http://metacpan.org/release/HARRYL/Mojo-MySQL5-0.01
15:01 genio This is the split from Mojo::mysql?  Is there something that eplains the difference?
15:02 sri the name is a little confusing
15:07 asarch joined #mojo
15:07 batman sri: i agree. i suggested MySQL::Client and MySQL::PP (among others), but it's not bad imo
15:07 batman after all, it's tied to MySQL version 5.x
15:08 sri ::PP would seem reasonable
15:08 batman genio: we (me and harry) was planning to merge it with Mojo::mysql, but it ended in a new distro instead
15:09 batman genio: the difference is that Mojo::MySQL5 is truly async, while Mojo::mysql is as much async as what you can get from DBD::mysql
15:10 batman sri: harry will continue making Mojo::mysql better as well. which is good, since i don't know what i'm doing :)
15:11 andreoss left #mojo
15:11 marmez left #mojo
15:11 genio batman: ahh, I see you've done a lot of work in ::Connection
15:12 batman genio: it's all harry. i've only tied the original Mojo::mysql together
15:13 batman "don't know what i'm doing" == i don't know mysql too well. i only know how to program (sort of, hehe)
15:14 batman haha https://thescienceweb.wordpress.com/2015/03/19/all-other-languages-tired-of-pythons-shit/
15:14 sri is harry a regular here?
15:15 Grinnz_ batman: lol
15:17 batman sri: i don't think so. not sure if he's here at all :/
15:18 sri oh :/
15:21 batman i will ask
15:21 tianon joined #mojo
15:28 Ptolemarch joined #mojo
15:29 Zoffix Why does article say Python will die in a few years?
15:29 sri because obviously Go is the future
15:29 Zoffix *that
15:29 Zoffix Really?
15:29 Zoffix Time to learn Go then, I guess.
15:30 batman haha
15:30 sri (until the next wave of new hipster languages)
15:30 Zoffix :)
15:35 sri although, Go does seem a bit special, since there's much more high profile projects written in it already than your usual hipster language
15:43 sri others like scala just fade away
15:55 fhelmber_ joined #mojo
15:59 Ptolemarch joined #mojo
16:06 Oleg joined #mojo
16:11 fhelmber_ joined #mojo
16:16 ribasushi is there a hashtag?
16:16 ribasushi can't find it on the site either
16:22 jnbek joined #mojo
16:34 batman ribasushi: #mojoconf
16:34 batman ribasushi: and @mojoconf
16:34 batman https://twitter.com/mojoconf
16:35 ribasushi errrr
16:35 ribasushi Personal user data
16:35 ribasushi Full access
16:35 ribasushi This application will be able to read and write all user data.
16:35 batman ribasushi? did i answer the wrong question?
16:35 ribasushi how about "fuck no" ? :)
16:35 ribasushi no, trying to register... ;)
16:36 batman ribasushi: right. what would be the alternative?
16:36 ribasushi read... you know... only?
16:37 batman ribasushi: haha! i'll look it up :)
16:38 ribasushi batman: please do, otherwise I need to jump a hoop with a throaway github account
16:38 batman ribasushi: i will fix it now. http://timer.thorsen.pm/#1427128725/240
16:40 batman ribasushi: please try again. (you probably have to start from scratch)
16:41 batman oh. wait a sec
16:41 batman it didn't reload
16:41 ribasushi it did for me
16:41 ribasushi Limited access to your public data
16:41 ribasushi This application will be able to identify you and read public information.
16:42 batman how strange
16:42 cpan_mojo Mojolicious-Plugin-SecureCORS 1.0.4 by Alex Efros - http://metacpan.org/release/POWERMAN/Mojolicious-Plugin-SecureCORS-1.0.4
16:43 fhelmber_ joined #mojo
16:47 ribasushi https://www.mojoconf.com/2015/presentations/dbixclass---a-birds-eye-view
16:47 batman ribasushi++
16:47 cpan_mojo Mojolicious-Plugin-Narada 0.2.3 by Alex Efros - http://metacpan.org/release/POWERMAN/Mojolicious-Plugin-Narada-0.2.3
16:47 batman ribasushi: MCT is still a work in progress. the timeslot is in the database, but not exposed on web (yet)
16:48 ribasushi batman: right, anyhow - do I need to do anything else at this point or it's all good?
16:49 batman no. riche will be in touch :)
16:54 fhelmber_ joined #mojo
17:05 Zoffix Oh, it's in New York...
17:06 Zoffix I'd love to swing by, but my last trip to US was annoyingly unpleasant.
17:06 Zoffix So you guys will be there?
17:09 icjs can anyone help me with ideas on how to improve the performance of my mojo-based api?
17:10 icjs it basically just calls solr and returns some json to the caller, however it uses Moose which as i understand it is quite "heavy"
17:12 Grinnz_ when loaded in Mojo, all the Moose stuff will be loaded on startup so it shouldn't be a problem for later performance
17:13 Grinnz_ unless you are accessing it by CGI of course
17:14 michael icjs: presume you have make_immutable set in the moose classes?
17:15 Grinnz_ if startup performance is a concern, consider converting to Moo
17:15 sri perhaps start with Devel::NYTProf to actually locate the bottleneck
17:16 mst icjs: that's a lie.
17:16 mst icjs: Moose adds *startup* overhead
17:16 mst icjs: once you're running, it shouldn't be a problem
17:16 mst icjs: anybody calling it 'heavy' without caveats doesn't know what they're talking about
17:17 mst right, NYTProf it
17:20 fhelmber_ joined #mojo
17:30 Zoffix mst, are you coming to mojoconf?
17:30 mst no
17:31 sri oooh, beautiful input elements http://codepen.io/thebabydino/pen/jEXjVE?editors=010
17:35 Zoffix css-only? nice
17:41 icjs michael, yes in most/all of them "make_immutable"
17:41 icjs sri/mst, NYTProf - sensible advice, thanks
17:45 icjs Grinnz, we're using Mojo with hypnotoad - so if i understand you right, when we run it like this then our code is "compiled" like how mod_perl does it?
17:45 Grinnz_ yes, hypnotoad will run the startup once and stay running
17:46 icjs ok thanks
17:52 sri (use the daemon command for profiling, not hypnotoad)
17:53 mst icjs: all Moose classes must finish with __PACKAGE__->meta->make_immutable
17:53 mst icjs: if you don't do that, you're doing Moose wrong
17:54 icjs mst, yep, i knew what he meant :) all seem to have that but maybe not all...
17:54 mst icjs: yeah, when you said 'most/all' I thought I should repeat that so you double checked and fixed any that were missing :)
17:54 sri it's as easy as "perl -d:NYTProf script/myapp.pl daemon -m production -l http://*:8080", "wrk -c 100 -d 10s http://127.0.0.1:8080/", ctrl+c, "nytprofhtml"
17:54 icjs mst, i think it prudent to NYTProf it, or disable the "call to SOlr" part and then benchmark it and see if we get the same reqs/sec
17:55 icjs but from i see, our hypnotoad/mojo/moose-based api is cpu bound
17:56 icjs sri, wow, really?
17:56 icjs there's talk or re-writing it to use node.js - where we see crazy-amounts of reqs/sec
17:56 sri oh, and "open nytprof/index.html" ;p
17:57 Grinnz_ is "open" something different on os x? :P
17:57 riche joined #mojo
17:57 sri i would be very very surprised if the web server was your bottleneck
17:58 Grinnz_ icjs: what OS, out of curiosity?
17:58 icjs Grinnz, centos 6
17:58 Grinnz_ ah, then either poll or epoll shouldn't be the problem
17:58 sri Grinnz_: it starts the right gui app for the file type on os x
17:58 Grinnz_ sri: ah. so yes :P
17:59 Grinnz_ in linux you could use links or something for a cli browser to open it with
18:00 Grinnz_ but i doubt that would do it justice :P
18:00 sri i assume solr also uses json, so Mojo::JSON::MaybeXS would make sense
18:01 sri then you have to tune concurrency settings depending on if your http requests to solr are blocking or non-blocking
18:02 icjs sri, looks like we're using JSON::XS already but a good tip. we used "wrk" on your recommendation and looked at tuning the hypnotoad settings which on a dual-core server came to workers=24, clients=1 giving the ebst results
18:03 icjs that was the "sweet spot" in terms of settings
18:03 Grinnz_ so, blocking calls then?
18:03 icjs as it's cpu-bound, we've asked our ops team for "moar servers n cores" but we want to dig into why its cpu-bound
18:04 icjs yep
18:04 sri also a 6.x version?
18:04 icjs 6.x
18:04 icjs going to 5.82 from 5.36-something gave us a boost
18:04 Grinnz_ if they're HTTP calls, converting to non-blokcing Mojo::UserAgent calls using the delay() helper would be an idea
18:04 sri sound like nytpfof will be the perfect choice
18:04 sri *+s
18:05 icjs i'm bullet pointing all these tips here in an email to my team
18:05 sri haha, 5.80 fixed clients=1
18:05 Grinnz_ if you use non-blocking calls, then you'll want to raise clients so each worker can handle multiple connections at once
18:06 icjs sri, yep - you recommended 5.82
18:06 Grinnz_ if you convert to them, that is
18:06 icjs Grinnz, hmm interesting...
18:07 sri or you might want to switch to non-blocking calls
18:07 sri to scale differently
18:07 sri which would be more node.js-ish
18:07 * Grinnz_ just said that :P
18:08 sri mojolicious is very multi-paradigm, you choose how you want to scale
18:08 sri Grinnz_: oh :)
18:08 sri Grinnz++
18:09 sri if you want to annoy node.js fans, ask them about memory limits of node.js ;p
18:09 sri like... who would ever need more than 2gb of ram...
18:09 Grinnz_ i can't imagine!
18:10 icjs getting your view of node.js would be valuable, as we're discussing re-writing this mojo-api in node.js
18:11 sri i'm a fan of libuv, but putting a browser js engine on top is a joke in my opinion
18:11 Grinnz_ i haven't used node.js so my only comment would be that it's javascript and it's not perl :P
18:11 sri of course i'm biased
18:12 marty joined #mojo
18:12 Grinnz_ javascript was designed for a specific need, and that need was not really what node.js is after
18:15 icjs it does feel strange writing serverside code in js. one advatnage for us is that we have a front-end coder in our team who would then be able to get involved in server-side stuff
18:16 icjs also, i dont have "what is async and what is not" nailed down, then there's callbacks to cater for and having to turn your reasoning inside-out a bit
18:17 Grinnz_ the nice thing about mojo is you can code synchronously until you need async ;)
18:17 cpan_mojo MojoX-Redis 0.87 by Sergey Zasenko - http://metacpan.org/release/UNDEF/MojoX-Redis-0.87
18:17 Grinnz_ obsoleted by Mojo::Redis which is obsoleted by Mojo::Redis2, and still an update? heh
18:18 * genio is still not on the NoSQL bandwagon
18:18 dod joined #mojo
18:19 marty joined #mojo
18:19 Grinnz_ i havent used nosql much, but i liked the no-setup-required aspect
18:19 Grinnz_ and redis doesnt seem to suffer from the performance issues plaguing the other popular ones
18:19 genio meh, you still have to think out your structures unless you want complete chaos
18:20 Grinnz_ right, it's definitely not suited when you have a lot of relational data
18:20 Grinnz_ well, not as well suited at least
18:20 genio which is almost every single app ever
18:21 Grinnz_ mmm, sometimes you just need to store some values related to one key, or thereabouts, it's nice for that
18:21 Grinnz_ thats what redis is usually used for, caching
18:21 Grinnz_ the pub/sub is nice, too
18:21 icjs Grinnz, whats a good starting point for me to rtfm mojo async?
18:22 Grinnz_ icjs: this is something that really could use a good guide that nobody has gotten to writing ;)
18:22 genio http://tempi.re/a-mojolicious-non-blocking-web-service-why-
18:22 genio icjs: ^^ some very basic stuff
18:23 icjs Grinnz, ok, maybe a first step is for us to try http://mojolicio.us/perldoc/Mojo/UserAgent
18:23 Grinnz_ here's some doc links: https://metacpan.org/pod/Mojolicious::Guides::Cookbook#REAL-TIME-WEB https://metacpan.org/pod/Mojolicious::Plugin::DefaultHelpers#delay https://metacpan.org/pod/Mojo::IOLoop::Delay
18:24 Grinnz_ that first link has examples of using Mojo::UserAgent in a delay helper
18:24 Grinnz_ that's essentially how you should be doing it
18:25 Grinnz_ the delay helper keeps the transaction around as well as renders any exceptions that may occur
18:26 sri we need a book!
18:26 Grinnz_ hehe
18:28 disputin joined #mojo
18:28 tianon joined #mojo
18:28 marty joined #mojo
18:36 marty_ joined #mojo
18:37 riche node.js in the enterprise: http://stream1.gifsoup.com/view3/3349796/whac-a-mole-o.gif
18:38 icjs thanks the advice guys, will catch up tomorrow, later
18:44 jnbek joined #mojo
18:46 jb360_ joined #mojo
18:47 jnbek joined #mojo
18:50 Zoffix What is it that Mojo::UserAgent->post() returns when you make it nonblocking?  Looks like some sort of an identifier: "79b3d54fadc505bdc954132116afe4e7"
18:51 Grinnz_ return value is unimportant
18:51 Grinnz_ the "return" happens in the callback
18:51 Zoffix Alright. Thanks.
18:53 Grinnz_ (and this isn't javascript where you have to care what you return in void context :P)
19:09 berov joined #mojo
19:09 irq joined #mojo
19:11 alexbyk joined #mojo
19:22 kaare joined #mojo
19:31 jb360_ joined #mojo
19:46 cpan_mojo Mojolicious-Plugin-StripePayment 0.03 by Jan Henning Thorsen - http://metacpan.org/release/JHTHORSEN/Mojolicious-Plugin-StripePayment-0.03
20:05 sri omg, many more pretty input elements http://codepen.io/collection/DgYaMj/8/
20:08 Zoffix Very nice. I like this one the best: http://codepen.io/thebabydino/pen/JovQwE
20:08 memowe joined #mojo
20:08 Zoffix Now all I need is a reason to use range input :P
20:14 Grinnz_ heh
20:16 drzz joined #mojo
20:34 frederic_ joined #mojo
20:51 dotandimet joined #mojo
21:48 jb360_ joined #mojo
21:51 good_news_everyon joined #mojo
21:51 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/hAuS
21:51 good_news_everyon mojo/master fe9fb1e Sebastian Riedel: test custom request methods
21:51 good_news_everyon left #mojo
21:51 Grinnz_ HTTP WHATEVER
21:51 Grinnz_ i like it
21:52 Zoffix :)
21:52 sri whhttp://www.quickmeme.com/img/42/42901f5fc8a78f0812a7dce17e47744f1f54ef8c65c43b4475da1ed61361277f.jpg
21:52 sri oh noes, i accidentally the link
21:53 sri http://www.quickmeme.com/img/42/42901f5fc8a78f0812a7dce17e47744f1f54ef8c65c43b4475da1ed61361277f.jpg
21:53 riche_ joined #mojo
21:56 Grinnz_ now you're inventing protocols!
21:59 kgoess joined #mojo
22:01 berov nw anybody could :)
22:01 kgoess I'm having troubling following some of the docs. Why is Mojo::IOLoop::Delay called "Delay"? What does that module have to do with "delay"?
22:01 berov now*
22:03 mst kgoess: it exists to allow you to do 'do X, but delay doing it until Y has finished'
22:03 kgoess ah, that's helpful
22:09 Grinnz_ where Y might be Y, Z, and W
22:10 Grinnz_ (i don't particularly think "delay" is the best name, but i'd be concerned with the name of the "begin" method first :P)
22:13 alnewkirk joined #mojo
22:21 tianon joined #mojo
22:23 woz joined #mojo
22:29 tianon joined #mojo
22:38 uma joined #mojo
22:38 uma Hello,
22:38 uma what is the problem in this line $r->get('/api/orders')->render(json => {foo => [1, 'test', 3]});
22:39 uma i am getting this error Can't load application from file "C:\AutoAnalyst\AutoAnalystNG.pl": Can't use string ("json") as a H
22:39 uma ASH ref while "strict refs" in use at C:/Perl64/site/lib/Mojolicious/Routes/Pattern.pm line 63.
22:42 wikihead joined #mojo
22:43 mishantil uma: I'm not able to spot the error on that line. I suspect it is somewhere else.
22:43 Grinnz_ you can't call render on a route
22:44 Grinnz_ you'd need to call that on the controller in an action, either an anonymous sub or controller method
22:44 mishantil Grinnz_: Doh. You are apparently more awake than I am.
22:44 wikihead i am to render templates
22:44 wikihead i am able to render templates
22:44 Grinnz_ $r->get('/api/orders' => sub { shift->render(json => { ... } }); # for example
22:44 wikihead $r->get('/settings')->to(template=>'index');
22:45 wikihead the above is working fine
22:45 Grinnz_ except without the syntax error
22:45 Grinnz_ wikihead: read what i said
22:46 Grinnz_ ->to() is a route method, ->render() is not
22:47 uma oh got it
22:50 sri Grinnz_: actually you can... but it does something completely different http://mojolicio.us/perldoc/Mojolicious/Routes/Route#render
22:51 uma pass a function that renders is working
22:51 uma :)
22:51 Grinnz_ lol
22:57 cpan_mojo Mojolicious-Plugin-AccessLog 0.006 by Bernhard Graf - http://metacpan.org/release/GRAF/Mojolicious-Plugin-AccessLog-0.006
22:57 uma Is this the wrong way of writing json content
22:57 uma $r->get('/api/orders' => sub {
22:57 uma shift->render(json => {
22:57 uma [ id=>1, name=>'uma', order=>'cofee'],
22:57 uma [ id=>2, name=>'uma', order=>'tea' ]
22:57 uma } );
22:57 uma });
22:57 uma was kicked by sri: uma
23:00 uma joined #mojo
23:01 sri please do not paste into the channel
23:01 uma okey
23:01 uma sure
23:01 sri purl: paste?
23:01 purl rumour has it paste is http://paste.scsys.co.uk/
23:01 sri purl: gist?
23:01 purl gist is probably https://gist.github.com/
23:02 uma sure, i will use them
23:02 uma sorry for the trouble
23:05 woz joined #mojo
23:20 Averna joined #mojo
23:33 zivester joined #mojo
23:35 jberger Grinnz: find a better name for "begin" that sri and I both like and we do it, but we've been down this road a few times before and nothing had been found yet
23:38 Zoffix ->procrastinate
23:38 Zoffix :)
23:41 disputin joined #mojo
23:42 jberger Zoffix->conflagrate()
23:42 * Zoffix burns
23:42 tempire oooh
23:42 tempire http://apidocjs.com/
23:42 buu Marshmellows!
23:43 Grinnz jberger, oh i know, doesn't mean i can't continue disliking begin :P
23:43 buu prelude

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