Camelia, the Perl 6 bug

IRC log for #mojo, 2013-06-17

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

All times shown according to UTC.

Time Nick Message
00:01 KindOne joined #mojo
00:02 good_news_everyone joined #mojo
00:02 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/TRN3ow
00:02 good_news_everyone mojo/master ee702ef Sebastian Riedel: more Mojo::UserAgent::Transactor examples
00:02 good_news_everyone left #mojo
00:04 jberger sri: silly idea, what would it do if we localized the topic to the controller for callback routes
00:04 jberger would make ojo even easier is the reason
00:05 good_news_everyone joined #mojo
00:05 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/ELdELA
00:05 good_news_everyone mojo/master bcfdcf4 Sebastian Riedel: more complex multipart example
00:05 good_news_everyone left #mojo
00:07 sri jberger: localize the topic?
00:07 jberger $_
00:07 jberger local $_ = $c
00:07 sri do you have a patch?
00:08 jberger I can work one up
00:08 jberger I just though of it making an ojo example for cstamas
00:08 sri think i need to see it first
00:08 jberger understood
00:09 sri my first thought is that it might get in the way if ojo behaves too different there
00:11 cstamas jberger: http://paste.debian.net/10782/
00:12 jberger sri: you would only do it for ojo?
00:12 sri jberger: you want to do it for every action? :O
00:13 jberger performance?
00:13 jberger I would only do it for routes with callbacks
00:14 sri hmm
00:14 jberger ok, everything is on hold, the band just started "the rains of castamere"
00:14 jberger :O
00:14 sri :O
00:15 jberger I've read the books twice through, but I want to see why twitter blew up
00:15 sri worth it
00:17 jberger I actually expected it to be worse
00:18 jberger then again, its hard to watch as if I didn't know what was coming
00:20 jberger I guess it got a little worse
00:20 sri jberger: not too worried about performance, more about the inconsistency causing confusion
00:21 jberger wow, no music under the credits
00:21 jberger I'm a lover of film style, and THAT is a cool move
00:22 sri indeed
00:22 jberger ok, let me look at cstamas's example first, then I'll mock up a patch
00:25 * sri is testing it atm
00:25 jberger cstamas, first of all, all Mojo::Base scripts (including Mojolicious::Lite)
00:25 jberger use utf8 by default
00:25 cstamas jberger: okay
00:26 jberger not a problem just a comment
00:27 jberger in fact, they import strict and warnings too
00:27 cstamas the script dies for me except when i remove the comment and mangle with utf8
00:28 jberger action="/a.pl" ??
00:29 cstamas jberger: that should point to the this script
00:29 jberger it should point to the rout
00:29 jberger route
00:30 Janos joined #mojo
00:30 cstamas jberger: for this example you can just omit this part
00:30 cstamas without action it will POST to the same url..
00:31 jberger anyway, thats not the problem
00:31 jberger the problem is that the browser is not encoding the text as utf8
00:32 cstamas oh
00:33 jberger at least that's my assessment
00:34 cstamas jberger: is there a way to avoid that?
00:35 cstamas jberger: or I should just live with "utf8::encode"
00:35 jberger better to see if there is a way to encode before sending
00:35 jberger I'm looking at it
00:35 jberger I haven't done this particular case before
00:38 cstamas thx.
00:39 whitebook joined #mojo
00:41 cstamas jberger: it looks like utf8 to me...
00:42 cstamas anyways thx for your comments, i cannot keep up and i am going to sleep ;-)
00:42 cstamas bbl
00:42 jberger yeah, its probably that its already being decoded as a parameter
00:43 jberger in fact thats almost certainly it
00:43 jberger typically I post JSON directly not from a form, so I don't access it via params
00:44 cstamas then how you do it?
00:45 jberger I suppose doing it the way you are doing it works
00:45 jberger :-/
00:46 shmuel joined #mojo
00:46 cstamas just thinking out loud: what about decoding it as utf8 by default?
00:47 jberger the problem is that it is doing that already
00:47 cstamas is there any disadvantage?
00:48 sri jberger: how would you explain $_ in the documentation?
00:50 jberger For convenience, the controller object is also available as $_
00:50 jberger (... in callback actions)
00:51 sri BOOM... now you have to explain what other actions there are :S
00:51 jberger hmmmmm
00:51 sri which is not mentioned until much much later
00:51 jberger right
00:51 jberger I see the problem
00:51 sri tutorial only talks about actions
00:52 jberger any idea about what cstamas should do
00:52 jberger ?
00:53 jberger sending json with wide characters via a form parameter
00:53 jberger when you get the param out, it is decoded, then Mojo::JSON tries to decode it again
00:53 jberger or at least thats what I suspect is going on
00:54 jberger (unicode makes my brain hurt)
00:54 sri form parameters get decoded, you had it figured out already
00:54 sri Mojo::JSON decodes because JSON can only be bytes
00:55 sri my $hash  = $json->decode($bytes);
00:56 sri says what it wants right there in the docs
00:57 jberger right, so you have to re-encode it before json decoding
00:57 jberger there you have it
00:57 jberger I suppose its too late for $c->req->params->charset(undef)->param('myval')
00:57 jberger I suppose that because it doesn't work for me
00:57 jberger :-P
00:58 sri i've thought about allowing Mojo::JSON accepting characters too... but i'm not looking forward to the fight about backcompat breakage
00:59 jberger sri: if you did it, perhaps a new Mojo::JSON method name
00:59 jberger decode_chars
00:59 sri yea, i don't want that ;p
00:59 mst $json->decode(encode $chars) isn't really more typing
01:00 mst and makes it obvious you're doing something fucked up
01:00 jberger haha
01:00 sri https://github.com/kraih/mojo/b​lob/master/lib/Mojo/JSON.pm#L55
01:00 sri it's a hard exception atm
01:00 jberger mst: agreed
01:00 stan_the1an joined #mojo
01:01 sri also a good point... in the end you will have to learn how unicode works in perl anyway
01:01 mst sub Mojo::JSON::encode_then_decode { my ($all, $glory, $to, $hypnotoad)
01:02 jberger mst, now you're just bei ... ALL GLORY TO THE HYPNOTOAD
01:02 stan_the1an welp, i was about to ask for help with the Growing Mojo guide and my test script not working until...spot the error: my $t = Test::Mojo->new;('MyApp');
01:02 stan_the1an womp
01:02 sri and be aware that JSON can also be encoded differently... hello UTF-16LE...
01:03 jberger stan_the1an has found the ninja semicolon!! bwahahahaha
01:03 sri haha
01:03 mst my favourite is $obj->method_name->(@args);
01:03 mst gets me SO many times
01:03 jberger would that be the samurai deref then?
01:04 jberger actually I just did that in my counter-example, but now no counter-example needed
01:04 jberger mst sticks the method with the pointy end
01:05 * jberger has watched too much GoT today
01:05 * jberger still has one more to go
01:05 sri jberger: after testing, performance regression is unlikely
01:06 jberger sri: perhaps not mention $_ in lite doc?
01:06 jberger not sure I like that either, good news about performance tho
01:06 sri i've just tried it for controller actions too
01:07 jberger oh, I guess that's the other way to go :-)
01:08 sri my only worry is performance
01:08 sri umm
01:08 sri documentation!
01:09 mst Web::Simple localizes %_ to the params in a fair few places
01:09 mst that's good for a laugh
01:09 sri http://pastie.org/8050341 # it's a rather trivial patch
01:09 sri haha
01:09 jberger my only worry is sri's brain
01:09 jberger ummm
01:09 jberger liver
01:09 jberger :-P
01:10 sri mst approved magic makes me nervous ;p
01:10 jberger damn you're right
01:12 sri i kind of want it now that i've played with it... so if you find a place to document it...
01:14 jberger :-)
01:15 jberger in the _controller method, the controller is $app??
01:16 sri yea
01:16 sri funny story
01:16 jberger ok
01:16 jberger lalalallalalala
01:16 sri since controllers can be embedded apps too...
01:16 jberger oh, ok
01:17 jberger well anyway, if $_ works for callbacks and controller methods just document it in Lite
01:17 mst I gave up even trying to make the distinction
01:18 sri jberger: got a place and sentence?
01:18 * jberger looks
01:19 jberger it fits right in the first paragraph under =head2 routes
01:19 jberger https://github.com/kraih/mojo/blob/​master/lib/Mojolicious/Lite.pm#L155
01:20 jberger Just add the sentance "For convenience the Controller object is also available as $_"
01:20 mst sentence
01:20 jberger yeah, the squiggle was yelling at me too
01:20 jberger soo waht off itz
01:21 sri hmmm.... it needs to sound simpler
01:22 sri ...and is also availbale as C<$_>.
01:22 jberger sure
01:22 mst available.
01:23 sri -.-
01:23 jberger perl -Mojo -E 'a("/" => sub { say $_->req->body; $_->render( text => "sri++") })->start' daemon
01:24 tba joined #mojo
01:26 egopro joined #mojo
01:29 jberger google maps shows plane routes now??
01:34 good_news_everyone joined #mojo
01:34 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/bJloMw
01:34 good_news_everyone mojo/master 9297ce7 Sebastian Riedel: improved router to make the current controller object available to actions as $_
01:34 good_news_everyone left #mojo
01:39 jberger sri++
01:41 sri lets celebrate with the rains of castametere http://www.youtube.com/watch?v=kmRWVZ5ny0I
01:42 jberger I need to celebrate with the last episode of season 3
01:42 sri as usual a slow episode
01:43 jberger I wonder if they will split the seasons as the books are split?
01:43 jberger books 4/5
01:43 jberger the next time I reread the series I will do the combined book
01:43 sri i heard they might mix things up a lot more
01:44 sri covering stuff from 3 books in season 4 or so
01:44 jberger http://boiledleather.com/post/24543217702/a-pr​oposed-a-feast-for-crows-a-dance-with-dragons
01:44 sri or rather mix it up for the next few seasons
01:45 jberger yeah, they may need to mix things up a bit
01:45 jberger I'm impressed with how close they have stuck to the books bth
01:45 jberger tbh
01:45 jberger there are some nits, but most of those are for time or cutting a few characters
01:45 sri hope they don't leave out coldhands
01:46 jberger oh, I hope they don't either
01:46 jberger I thought they were going to leave out the reeds
01:46 sri there has been speculation that they might leave out braavos :o
01:46 jberger ??
01:47 jberger where would arya go then?
01:47 jberger I just read this btw, a good read: http://www.towerofthehand.com/blog/2010/​08/24_if_its_chains_you_want_/index.html
01:47 sri to jaqen and become his padawan
01:48 jberger oh, just simplify things
01:48 jberger well, the link I posted may make that problematic
01:48 jberger if jaqen is in oldtown :-)
01:49 tba joined #mojo
01:50 * sri shrugs
01:50 sri we will have to wait a year and see :/
01:51 jberger I don't think they will simplify too much, they need to delay while GRRM finishes the next books
01:54 jberger I wonder if they may take a season and tell the story of robert's rebellion
01:54 jberger I believe that that is a more important part of the story than they are giving it credit on the show
01:54 jberger it would also let them bring sean bean back
01:55 sri maybe if the next books don't get finished in time
01:55 jberger even if the next one is finished in the next two years (maybe possible) its not the last one
01:57 jberger winter is coming
01:58 d4rkie joined #mojo
02:02 batman joined #mojo
02:12 KindOne joined #mojo
02:12 rem_lex| joined #mojo
02:18 hesperaux_ joined #mojo
02:18 KindTwo joined #mojo
02:21 Drossel joined #mojo
02:22 asarch joined #mojo
02:23 sri i bet you'll hate the end of the episode, most seem to
02:25 sri makes you wonder how grrm is going to kill dany though
02:25 KindOne joined #mojo
02:33 tba joined #mojo
02:34 jberger how cryptic of you
02:34 jberger I'll let you know what I think
02:40 inokenty joined #mojo
02:44 hesperaux_ joined #mojo
02:46 shmuel joined #mojo
02:46 sri jberger: i guess we don't care that $_ doesn't work for nested closures
02:48 good_news_everyone joined #mojo
02:48 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/4ABGxg
02:48 good_news_everyone mojo/master 344f188 Sebastian Riedel: better tests for embedded applications
02:48 good_news_everyone left #mojo
02:50 sri perl -Mojo -E 'a(sub { Mojo::IOLoop->timer(1 => sub { $_->render(text => "ohoh!") }) })->start' get /
02:52 sri i guess it could even serve as an example for why global state doesn't work for async apps
02:55 sri another question is hooks and helpers
02:55 sri all helpers get invoked like actions
02:56 sri is it inconsistent that they don't have $_
03:00 good_news_everyone joined #mojo
03:00 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/hxSR9w
03:00 good_news_everyone mojo/master eeff0ff Sebastian Riedel: fixed typo in Mojo::Base documentation
03:00 good_news_everyone left #mojo
03:00 jberger well, keeping $_ is up to you
03:00 jberger anyway, just finished the episode
03:01 jberger the dany scene was a little fluffy, but I don't hate it much
03:01 jberger this is kinda her high point actually
03:01 sri hmm, i guess we wouldn't add more arguments to helpers either if we added them to actions
03:01 whitebook joined #mojo
03:03 sri just had a bit of a crazy thought :)
03:03 * jberger is a fan of crazy
03:03 sri hook around_action => sub {...};
03:04 jberger sounds interesting
03:04 jberger one use case is setting $_ presumably
03:05 jberger another might be ... adding action arguments?
03:05 jberger I know you were thinking about that before
03:05 sri and doing stuff with return values ;p
03:06 jberger interesting, action return values are ignored atm right?
03:06 sri or used for bridges
03:06 jberger meaning bridges must return a true value
03:09 jberger how would around_action know what type of action is being invoked? could it?
03:09 sri only from $c->match
03:10 jberger I can see wanting to inspect the return of an action, but it wouldn't want do that from a bridge would i?
03:11 sri we could pass an argument indicating that you're in a bridge
03:12 jberger is that the only special case?
03:14 sri think so
03:14 sri there is a performance cost though
03:14 sri 1040 rps before and 1000 after
03:15 sri and the cost increases with every action, so bridges cost more
03:17 jberger hmmmm
03:17 sri http://pastie.org/8050552 # my patch
03:18 sri there are also a few tests that fails... not looked into those
03:20 sri it's a bit too crazy and expensive imo
03:33 preflex_ joined #mojo
03:33 hesperaux__ joined #mojo
04:19 Meiermann joined #mojo
04:22 sri marcus, tempire, crab: some more opinions about $_ would be nice
04:26 Psyche^ joined #mojo
04:35 egopro joined #mojo
04:38 hesperaux_ joined #mojo
04:46 egopro joined #mojo
04:48 jberger all in all, I think I like it as a shortcut, but as your case demonstrates, its not very resilient.
04:49 jberger then again, most of us know not to trust $_ deeper than the current scope right ?
04:51 * jberger facepalm
04:51 jberger you drill it into your head never to reply-all ... then you reply to a listserv and that training fails you spectacularly
04:54 sri haha
04:55 sri yea, $_ is quite convenient for oneliners or even oneliner actions in a lite app
04:55 sri or even oneliner actions in a controller
04:58 jberger rjbs says "thoughts on lvalue subs", autarch says "terrible, remove them" which cannot happen, PDL would be fully and horribly mained
04:58 jberger maimed
04:58 sri i think we all know it can't happen
04:58 jberger I'm sure he didn't think of that, but I had to be sure someone said it
04:59 jberger could they be better probably, but lvalue accessors aren't the only thing to use them for :-)
04:59 jberger anyway, thus the source of my reply frustrations
04:59 jberger time for bed, and vacation tomorrow! ;D
05:00 * sri just thought about oneliner helpers... but noticed that he doesn't really have any... besides state $... stuff
05:00 sri nn
05:01 jberger fun stuff today
05:01 jberger o/
05:03 hesperaux_ joined #mojo
05:31 basiliscos joined #mojo
05:49 Britzel_ joined #mojo
06:01 abstract joined #mojo
06:01 bluescreen joined #mojo
06:03 rem_lex| joined #mojo
06:13 Vandal joined #mojo
06:16 hesperaux_ joined #mojo
06:18 denisboyun_ joined #mojo
06:32 Mike-PerlRecruiter_ joined #mojo
06:52 egopro joined #mojo
07:09 dod joined #mojo
07:13 dod joined #mojo
07:15 cstamas sri: if you are into rains of castamere you will like this http://www.youtube.com/watch?v=a4dc0OjFAw8
07:15 cstamas jberger: ^
07:15 trone joined #mojo
07:15 cstamas at least i do
07:20 jamesw joined #mojo
07:31 egopro joined #mojo
07:36 kmx joined #mojo
07:37 fhelmber_ joined #mojo
07:39 sri hmmmmmm
07:39 sri i've made a few adjustments, and the around_action overhead is barely noticeable anymore
07:40 sri also managed to make all tests pass again
07:42 SmokeMachine joined #mojo
07:43 hesperaux_ joined #mojo
07:46 dod joined #mojo
07:55 nicolaas joined #mojo
07:57 forke joined #mojo
07:58 forke morning, little question, how can I use the function ceil in a template
07:58 forke or something similar??
07:59 forke 78.8545294310511 to 79
08:02 forke Ok :) it's easy… sorry .. I found a way
08:05 abstract_ joined #mojo
08:10 jzawodn joined #mojo
08:13 sri wow, i actually have a patch with tests and everything :O
08:14 sri http://pastie.org/8051107 # this one does it all
08:15 sri arguments for actions, rendering of return values, and local $_
08:17 iankent joined #mojo
08:22 sri performance loss is hard to measure... for the most minimal hello world i can measure about 1-2% difference
08:23 kwa Trying to figure out if that new hook would help me with my exception handling rather than wrapping DBIC code in a rest_eval. return unless my $rs = $self->rest_eval(sub { ... });
08:23 sri marcus, tempire, crab, jberger: thoughts?
08:23 kwa Looks like it's before the action, so can't really be used. :/
08:24 sri it's not meant for that, but it's *around* the action
08:24 kwa hmm, so I could
08:25 sri you could
08:25 * kwa high fives sri
08:25 sri chances of it getting accepted are still pretty low
08:28 kwa I'll continue capturing things in the rest_eval for now then. The more I need to deal with exceptions, the more desperate I'm getting. :)
08:28 hesperaux_ joined #mojo
08:30 sri possible uses are really endless
08:30 sri merge stash values before/after an action
08:30 kwa Yeah. It's like a super bridge.
08:33 kwa I wish I knew the accents of the devs above so I could pretend they're all in favour.
08:37 sri whoever it was that had trouble with respond_to in bridges, this hook could be used to merge the format value into the stash for bridges
08:38 kwa Yeah it was me.
08:38 sri -.-
08:40 kwa heh
08:40 kwa Sounds like it would solve the only problems I've ever had with mojolicious.
08:42 sri the only real downside is the performance loss of 1-2% in a micro benchmark
08:43 sri latest is from 1073 rps to about 1059
08:45 sri and of course... giving people *a lot* of power
08:45 kwa True. But the flexibility it gives might make it worthwhile.
08:45 kwa Indeed. :)
08:47 kwa I'll continue writing tests for my crappy rest_eval plugin, but will keep my eyes peeled for any commits.
08:51 basiliscos joined #mojo
08:52 hesperaux__ joined #mojo
08:53 egopro joined #mojo
08:56 sri http://pastie.org/8051205 # latest version for review
08:57 jamesaxl joined #mojo
08:59 good_news_everyone joined #mojo
08:59 good_news_everyone [mojo] kraih created around_action (+1 new commit): http://git.io/lGojCw
08:59 good_news_everyone mojo/around_action 78ae82c Sebastian Riedel: added around_action hook
08:59 good_news_everyone left #mojo
08:59 sri ok, now it's in a branch
08:59 * kwa likes
08:59 sri marcus, tempire, crab, jberger: review for realz!
09:01 travis-ci joined #mojo
09:01 travis-ci [travis-ci] kraih/mojo#820 (around_action - 78ae82c : Sebastian Riedel): The build passed.
09:01 travis-ci [travis-ci] Change view : https://github.com/kraih/mojo/commit/78ae82ccb1c0
09:01 travis-ci [travis-ci] Build details : http://travis-ci.org/kraih/mojo/builds/8153604
09:01 travis-ci left #mojo
09:01 arthas joined #mojo
09:26 hesperaux__ joined #mojo
09:41 hesperaux_ joined #mojo
09:44 egopro joined #mojo
09:48 hesperaux_ joined #mojo
09:50 memowe \o/
10:13 jiyuperl joined #mojo
10:16 batman is there a way i can detect if i'm running under hypnotoad? ...without using internal environment variables.
10:17 kwa Mojo has different modes doesn't it? So could you assume a non-development mode was running hypnotoad?
10:19 kwa batman: So you could then use if (app->mode eq 'production') { ... } ?
10:19 batman kwa: no. it's perfectly fine to run in production with ./my-app daemon
10:23 kwa Ah. Well, until someone comes up with something better, I suppose you could just use different config files. :P
10:29 jamesaxl joined #mojo
10:38 whitebook joined #mojo
10:46 dod joined #mojo
10:58 alnewkirk joined #mojo
11:41 libsysguy joined #mojo
11:50 keedi joined #mojo
11:59 ryozi joined #mojo
12:03 jontaylor joined #mojo
12:17 maxhq joined #mojo
12:20 denisboyun_ joined #mojo
12:33 bpmedley kwa do you have an example for your exception handing with the around_action?  This is what I have: https://gist.github.com/brianmed/5795931.
12:38 kwa bpmedley: Nice. Here's the pluginified version I made up: http://pastebin.com/rg18YRdC - I'm waiting to see what sri and the devs say about around_action before implementing anything.
12:48 whitebook joined #mojo
12:50 rem_lex joined #mojo
12:53 forke left #mojo
12:55 rem_lex|pivo joined #mojo
13:01 denisboyun joined #mojo
13:06 gryphon joined #mojo
13:07 kwa bpmedley: I'd essentially merge how you did it with my plugin if the hook went live.
13:07 bpmedley Cool.  It's a very powerful construct, it seems.
13:08 bpmedley I may use the around_action hook in my app, as well.
13:08 bpmedley If it goes live.. :)
13:13 bc547 joined #mojo
13:13 jpn joined #mojo
13:14 kwa bpmedley: In general, or for exception handling?
13:14 bpmedley kwa: For exception handling.  Like you, I've been wondering how to better architect my app with exceptions.
13:16 jberger sri: it looks good to me
13:16 jberger and I like that it lets you only localize $_ in ojo, which is more in line with my original proposal
13:16 jberger +1 from me
13:16 kwa Ahh. Well, I see sri's points with regards to exception handling and flow control. I try not to die in any of my apps. When I'm using something like DBIC which needs to raise its own exceptions when used standalone, exception handling like this is the only way that makes sense to me.
13:17 jberger cstamas, cool link thanks!
13:17 kwa jberger: So you like/don't mind the around_action hook too?
13:18 jberger local $_ = $c was my request :-)
13:19 jberger around_action allows that
13:19 jberger in a sane way
13:19 kwa heh, I read back this morning and saw it :)
13:19 kwa Oo so I've got you to thank?
13:20 jberger not sure I'd go that far, but ok :-P
13:20 kwa haha
13:20 jberger like the rules state, a hook need at least 2 use cases
13:20 kwa I suppose sri gets some credit. :p
13:20 jberger around_action has 2 before you get to it
13:20 nicolaas hello .. need a little help with Nginx on Debian : where am I supposed to copy paste (and set up) the configuration suggested on the cookbook ? I've put it in /etc/nginx/sites-available/default and restarted the service but I can't get it working, all I get is a 404 error
13:20 jberger local $_ = $c and passing arguments to action, which sri has been keen on in the past
13:22 jberger nicolaas, I'm no expert in this, but can you confirm for me that you have the app running (either hypnotoad or daemon)
13:22 nicolaas yes, it's running on hypnotoad
13:23 jberger ok, had to ask
13:23 jberger but I'm not your guy on this one, sorry
13:23 nicolaas jberger no problem, thanks
13:23 kwa jberger: I really like the power it gives for my use case, whilst keeping maintainable code. I also like the fact that in development I can keep Mojo's pretty exception screen, and in production I can return RESTful errors.
13:23 kwa It's a win win.
13:23 jberger I agree, there are many use cases
13:24 SmokeMachine joined #mojo
13:27 forke joined #mojo
13:29 forke Hi guys, I have a little problem.. I generate a jqPlot script and then I'll insert it, to the script area… but when I add the information (like: var line1 = <%= $jqPlot_line1 %> ), I see in the source code that the framework convert the '  to &#39;
13:30 forke like[&#39;2013-06-16 00:00:00+02&#39;,2],[&#39;2013-06-12 00:00:00+02&#39;,1],[&#39;2013-06-13 00:00:00+02&#39;,1]
13:31 forke has anybody and idea why I get the following information??  I assign the information via Stash to the template
13:33 kwa forke: http://mojolicio.us/perldoc/Mojolic​ious/Guides/Rendering#Embedded_Perl <%== ... %>
13:33 marcus sri: is there an officially supported way of telling that you're running under hypnotoad?
13:40 r0b3rt joined #mojo
13:42 forke oh yes sure… sorry :/ I overlook it … thank you
13:42 whitebook joined #mojo
13:43 kwa nps
13:48 libsysguy I have a pathing question.  I have some js files in the public directory and I am trying to include them in my default template like so http://pastebin.com/yiXLgme0
13:49 libsysguy but it keeps throwing a 404 with what appears to be the correct path
13:50 libsysguy are there special permissions that need to be applied to those files?
13:50 jast iirc you want to leave out the /public
13:50 cstamas jberger: you are welcome!
13:50 libsysguy damn it
13:51 libsysguy I took it out of the first line
13:51 jast ... but not the others :)
13:51 libsysguy ergo the damn it :p
13:51 jast yeah... well, if it's any consolation, it took me quite a while to figure the same thing out myself
13:52 libsysguy I was looking at jbergers Galileo and saw he didn't have the public
13:52 libsysguy sometimes my mind gets the loading gif and forgets to come back
13:56 asarch joined #mojo
14:02 jberger galileo has a public directory
14:02 jberger I just burried it deeper :-)
14:02 libsysguy yeah you CPAN-ed it
14:05 whitebook joined #mojo
14:08 libsysguy has anybody tinkered with Angular and Mojo yet?
14:08 libsysguy I saw an example from dplavin but it seems pretty dated
14:16 jamesaxl joined #mojo
14:25 nicolaas my boss is about to use a gearman daemon to avoid blocking requests problems on windows ... do you have any other working solution using mojo daemon or something else ?
14:25 nicolaas I just tried a reverse proxy with nginx on 4 daemons, but that's not very convenient
14:26 nicolaas plus, it's still blocking if nginx balances the request on a busy server
14:29 jberger ok guys, I'm out of town most of this week, not sure how often I will get to comment
14:29 jberger as always, have fun!
14:30 kwa What's the recommended way to get the current action's name? (For url_for.)
14:30 kwa hf jberger :)
14:31 jberger kwa https://metacpan.org/module/Mojolicious​::Plugin::DefaultHelpers#current_route
14:32 kwa I expected $self->url_for({uuid => '...'}); to work, but I have to explicitly set the name of the route $self->url_for('view_greetings', {uuid => '...'});
14:32 kwa Oo.
14:33 jberger route names are generated from the path if you dont set them
14:33 Bender joined #mojo
14:35 cfedde joined #mojo
14:37 kwa jberger: Yeah, it's just that the passed placeholder value doesn't seem to load. Hmm, I'm obviously missing something. Might be because I've got the route, and then I've got different actions based on the HTTP method.
14:39 kwa I'll get it to work. :) hf
14:44 cfedde Are there reasonable ways to make my static content available under fcgi or mod_perl?  It seems I either have to do url mapping in the server or play games with copies or symbolic links.
14:45 cfedde the other approach I've taken is simply redirecting to a port number url handled by hypnotoad.
14:46 whitebook joined #mojo
14:48 kwa Reverse proxy with nginx. Requests to /public or /static are served directly, all other requests are forwarded to hypnotoad?
14:56 mire_ joined #mojo
15:01 bobkare cfedde: I usually just make sure cache headers are sane and make sure there's something that caches in front of hypnotoad
15:16 whitebook joined #mojo
15:19 SmokeMachine joined #mojo
15:27 KindOne joined #mojo
15:30 bluescreen joined #mojo
15:37 asarch joined #mojo
15:42 hesperaux_ joined #mojo
15:44 hesperaux__ joined #mojo
15:47 trone joined #mojo
15:56 trone joined #mojo
15:57 D4RK-PH0ENiX joined #mojo
16:05 xaka joined #mojo
16:14 lammel2 joined #mojo
16:35 whitebook joined #mojo
16:45 inokenty joined #mojo
17:07 bpmedley cfedde: If you have to use mod_perl, would you consider a Plack module?
17:10 Kulag joined #mojo
17:19 Kulag joined #mojo
17:24 lammel2 joined #mojo
17:24 asarch joined #mojo
17:48 basiliscos joined #mojo
17:57 jontaylor joined #mojo
18:04 btyler joined #mojo
18:13 sri kwa/bpmedley: and you can't use around_dispatch for the kind of exception handling you want?
18:14 bpmedley sri: That looked enticing.  Let me look again.
18:19 bpmedley sri: This look good: https://gist.github.com/brianmed/5798975
18:20 sri so one less use for around_action
18:22 gryphon joined #mojo
18:33 Mike-PerlRecruiter_ joined #mojo
18:41 sri i guess around_action has been rejected... judging by the misunderstandings and lack of votes
18:41 lammel2 joined #mojo
18:43 dod joined #mojo
18:56 good_news_everyone joined #mojo
18:56 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/5ix_Gw
18:56 good_news_everyone mojo/master 587b100 Sebastian Riedel: fixed small chained hook bug
18:56 good_news_everyone left #mojo
18:59 sinkovsky joined #mojo
19:00 depesz joined #mojo
19:01 whitebook joined #mojo
19:03 ZadYree joined #mojo
19:03 jast joined #mojo
19:04 plu joined #mojo
19:05 mfontani joined #mojo
19:19 good_news_everyone joined #mojo
19:19 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/Hkqr7g
19:19 good_news_everyone mojo/master 103817e Sebastian Riedel: more tests for hooks
19:19 good_news_everyone left #mojo
19:21 good_news_everyone joined #mojo
19:21 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/IsE3zw
19:21 good_news_everyone mojo/master d844857 Sebastian Riedel: test hook arguments too
19:21 good_news_everyone left #mojo
19:22 trone joined #mojo
19:32 lammel2 joined #mojo
19:39 lammel2 joined #mojo
19:39 lammel2 left #mojo
19:41 KindOne joined #mojo
19:41 lammel2 joined #mojo
19:52 jontaylor joined #mojo
19:53 jamesaxl joined #mojo
19:56 lammel2 left #mojo
19:58 abstract joined #mojo
20:07 lammel2 joined #mojo
20:11 whitebook joined #mojo
20:16 BeDa joined #mojo
20:17 lammel2 left #mojo
20:17 lammel2 joined #mojo
20:21 lammel2 joined #mojo
20:21 good_news_everyone joined #mojo
20:21 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/Ifi1Ew
20:21 good_news_everyone mojo/master 6c353e0 Sebastian Riedel: small optimization
20:21 good_news_everyone left #mojo
20:26 KindOne joined #mojo
20:26 good_news_everyone joined #mojo
20:26 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/27xC5Q
20:26 good_news_everyone mojo/master 1b324bf Sebastian Riedel: more hook tests
20:26 good_news_everyone left #mojo
20:27 sri hmm, so with around_action not getting in... i wonder if $_ support should stay
20:41 good_news_everyone joined #mojo
20:41 good_news_everyone [mojo] kraih deleted subprotocol_negotiation at af89e25: http://git.io/VORdFA
20:41 good_news_everyone left #mojo
20:41 good_news_everyone joined #mojo
20:41 good_news_everyone [mojo] kraih deleted utf8_filehandles at 51f5dea: http://git.io/mhZRCA
20:41 good_news_everyone left #mojo
20:49 chansen joined #mojo
20:52 phillipadsmith joined #mojo
21:15 maxhq joined #mojo
21:29 abstract joined #mojo
21:32 Kovensky joined #mojo
21:35 lukep joined #mojo
21:39 lukep joined #mojo
21:40 cfedde is there a way to tell Test::Mojo to ask for the json response?
21:52 Averna joined #mojo
21:53 cfedde I've been trying my $u = $t->get_ok($url => {'Content-type' => 'application/json'} ) and getting no joy.
22:03 jamesaxl joined #mojo
22:09 bluescreen_ joined #mojo
22:14 jontaylor joined #mojo
22:17 denisboyun_ joined #mojo
22:35 whitebook joined #mojo
22:43 whitebook joined #mojo
23:11 good_news_everyone joined #mojo
23:11 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/f8WJWw
23:11 good_news_everyone mojo/master 17afad4 Sebastian Riedel: small optimization
23:11 good_news_everyone left #mojo
23:59 jamesaxl what is the best cloud for mojolicious (wich allow the installation or modules)

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