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

IRC log for #mojo, 2014-10-24

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

All times shown according to UTC.

Time Nick Message
00:00 Averna joined #mojo
00:07 al joined #mojo
00:15 d4rkie joined #mojo
00:23 stryx`_ joined #mojo
00:28 stryx`__ joined #mojo
00:52 sri this is scary http://www.leviathansecurity.com/blog/the-case-of-the-modified-binaries/
00:53 sri imagine tor exit nodes suddenly started modifying cpan dists
01:04 klapperl_ joined #mojo
01:17 d4rkie joined #mojo
01:37 tbushell joined #mojo
01:43 tbushell left #mojo
02:20 laouji joined #mojo
02:24 bwf joined #mojo
02:26 d4rkie_ joined #mojo
02:45 noganex_ joined #mojo
02:46 laouji joined #mojo
03:21 franzkafka Is there a method like render(json => $data) for UserAgent?
03:21 franzkafka I am using Data::Dumper to print it, but I want a pretty print of the json data structure out to my terminal
03:31 basic6 joined #mojo
03:32 franzkafka Something like 'say $ua->get($deets_url)->res->json;' that will just print print that out.
03:33 bwf $ua->get($url)->res->body
03:33 bwf will print JSON if response is JSON
03:34 franzkafka Ah, body, perfect.
03:46 irq joined #mojo
03:51 KCL joined #mojo
04:10 bwf left #mojo
04:14 rem_lex|pivo joined #mojo
04:14 preaction joined #mojo
05:18 zivester joined #mojo
05:39 laouji joined #mojo
06:14 marmez joined #mojo
06:41 irq joined #mojo
06:44 preaction joined #mojo
06:59 dod joined #mojo
07:27 laouji joined #mojo
07:43 trone joined #mojo
07:43 basiliscos joined #mojo
07:49 Vandal joined #mojo
07:50 rem_lex joined #mojo
07:57 ver joined #mojo
08:01 marcus joined #mojo
08:15 wk joined #mojo
08:19 fhelmber_ joined #mojo
08:21 wk Hi!
08:21 wk I tried to get work two simple mojo samples:
08:21 wk https://github.com/tudorconstantin/Mojolicious-Boilerplate
08:21 wk and
08:21 wk https://github.com/larsen/test-plack-mojolicious
08:22 wk both end up with same exception from Mojo::Server:
08:22 wk Can't find application class "" in @INC
08:22 wk So, seems that for some reasons $app has no value
08:22 wk It seems that problem is in my setup, but I can't figure out, what is missing?
08:22 wk I installed mojolicious with cpanm and it did not require more dependencies,
08:23 wk so i guess i had eveything needed on board already
08:24 wk But i don't find the source of problems
08:24 wk Has anyone experienced such behaviour?
08:35 michael wk: you get that if you don't pass the name of your application to Mojolicious::Commands->start_app()
08:36 marcus d
08:36 neyasov_ joined #mojo
08:39 michael wk: why not try getting a basic Mojolicious hello world app working first?
08:43 d4rkie joined #mojo
08:45 wk michael: ok, i will, but boilerplate code contains a line:
08:45 wk $ENV{MOJO_APP} ||= 'Boilerplate';
08:45 wk does it not set the app name?
08:46 wk i assume, that both those examples i used, have full working code
08:49 wk michael: hello world example works fine:
08:49 wk http://mojolicio.us/perldoc/Mojolicious/Lite#Hello-World
08:51 D4RK-PH0ENiX joined #mojo
08:53 michael how are you running the Mojolicious::Boilerplate code?
08:55 wk tried with plackup and just with perl
08:55 Shaeto joined #mojo
08:57 Shaeto is it possible to add Content-Location to Headers.pm monkey patch array :) how to send request ?
08:59 marcus_ joined #mojo
09:01 michael wk: works for me just calling './script/boilerplate' from repo home...
09:04 marcus_ joined #mojo
09:09 meshl joined #mojo
09:22 wk michael: yes, that's i thought, that there must be some flaw in my setup
09:23 wk but my dependecies seems fine and i don't see the reason why i can't get running
09:51 firnsy joined #mojo
10:18 sri wk: $ENV{MOJO_APP} does not exist in mojolicious
10:18 dvinciguerra joined #mojo
10:19 denis_boyun joined #mojo
10:50 odc sri, whith the new Mojo::JSON API, can I still get proper error messages? or does it just returns undef and that's it?
10:51 odc oh i see, i'm supposed to call decode_json in an eval
11:03 sri so, we've lost purl again? :S
11:27 marcus sri: she's dead
11:27 marcus not on this network atm
11:35 lipizzan joined #mojo
11:44 marty joined #mojo
11:44 marty joined #mojo
11:47 marcus_ nick marcus
11:48 marcus oopsie
11:53 hgw joined #mojo
11:56 hgw left #mojo
11:56 hgw joined #mojo
12:05 laouji joined #mojo
12:11 laouji joined #mojo
12:21 good_news_everyon joined #mojo
12:21 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/YCi19w
12:21 good_news_everyon mojo/master db69bad Sebastian Riedel: added content_location method to Mojo::Headers (closes #695)
12:21 good_news_everyon left #mojo
12:21 martin joined #mojo
12:24 martin silly question, silly question, I have a helper that returns data.  works fine.  inside that helper, can I set stash values ?  it doesn't appear to work.   I am calling the helper inside a template
12:25 sri looking through my REST books, i think Content-Location doesn't get enough love these days, it's a pretty nice way to avoid redirects and still be RESTful after creating stuff
12:35 Kripton joined #mojo
12:40 arthas joined #mojo
12:42 marty martin:  yes, you can set stash data within a helper
12:42 martin hmm, maybe I have another issue then.   thx
12:45 marty martin:  something like $self->stash(foo => 'bar');
12:46 martin yes I have that,  then I return some data at the end of the helper.  in my template I cant see the value... thanks for confirming, I'll get some sample code together.
12:58 ignacio_ joined #mojo
12:58 r0b3rt joined #mojo
13:18 martin joined #mojo
13:18 dvinciguerra joined #mojo
13:30 zivester joined #mojo
13:37 tbushell joined #mojo
13:43 Kripton joined #mojo
13:45 Ptolemarch joined #mojo
13:46 tbushell left #mojo
13:51 martin back again with my helper problem.   I route to Controller, which simply renders a template.  If I access a helper within the template (which returns an array), I can see the data fine.  If I try and set a stash value within the helper, and then return the data.  I still see the data, but no stash variable within my template.
13:52 martin I'm presuming that if I try to set a stash value then I would have to do that in the controller, before a render takes place ?  I was hoping to do it inside the helper
13:59 basiliscos joined #mojo
14:04 ignacio__ joined #mojo
14:11 meredith i believe the first argument to your helper is the current controller and you should be able to read and modify the stash through the stash method of that controller.  if you try to fetch from the stash later in your template, "stash" actually a helper that is simply sub { shift->stash(@_) }, so it's touching the stash the same way you would from your own helper.
14:11 meredith (check out the source of Mojolicious::Plugin::DefaultHelpers)
14:11 meredith beyond that, i think you'd need to pastebin an example
14:12 martin thanks.  I'll try and recreate a minimalist example,  but will read through that first.  thankyou.
14:23 marmez joined #mojo
14:29 meshl joined #mojo
14:36 marcus joined #mojo
14:38 Shaeto joined #mojo
14:39 sh4 joined #mojo
14:42 neyasov__ joined #mojo
14:50 irq joined #mojo
15:08 d4rkie joined #mojo
15:26 dvinciguerra joined #mojo
15:49 cfedde joined #mojo
15:51 KCL_ joined #mojo
15:55 good_news_everyon joined #mojo
15:55 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/D98Itw
15:55 good_news_everyon mojo/master ef0b424 Sebastian Riedel: mention that variables get initialized at the beginning of the template
15:55 good_news_everyon left #mojo
15:58 tbushell joined #mojo
15:59 rem_lex|pivo joined #mojo
16:02 ua joined #mojo
16:03 agorman joined #mojo
16:06 Shaeto left #mojo
16:12 Ptolemarch joined #mojo
16:14 tbushell left #mojo
16:15 meshl joined #mojo
16:22 neyasov__ joined #mojo
16:22 ua joined #mojo
16:33 dvinciguerra joined #mojo
16:41 Ptolemarch joined #mojo
16:53 Ptolemar_ joined #mojo
16:56 * sri yawns
16:56 jzawodn the day is just beginning here
17:01 ua_ joined #mojo
17:02 * marcus drinks champagne.
17:04 disputin joined #mojo
17:05 Ptolemarch joined #mojo
17:07 meshl joined #mojo
17:10 sri jzawodn: btw. in case you've missed it https://metacpan.org/pod/Mojo::mysql
17:11 jzawodn yeah, that's on my list to play with soon :-)
17:12 * sri is still looking for feedback on the api, so far everybody seems happy
17:13 Eke- joined #mojo
17:14 sri would be nice if i could stabilize Mojo::Pg with a 1.0 release this year
17:20 marcus joined #mojo
17:33 machz joined #mojo
17:33 sri *crickets*
17:37 jzawodn that'd be a good way to close out 2014, I think :-)
17:38 sri you're scaring the crickets ;p
17:39 jzawodn WHERE ARE ALL TEH CRICKETS?!?1!?!  AM I TOO LOUD!
17:42 wk joined #mojo
17:42 sri /o\
17:43 marty Mojo:Pg FTW!
17:46 meshl joined #mojo
17:51 tbushell joined #mojo
18:03 lipizzan joined #mojo
18:06 berov joined #mojo
18:10 mgrimes joined #mojo
18:14 basiliscos joined #mojo
18:28 Ptolemarch joined #mojo
18:37 hernan quiet friday
18:55 jnbek I got a non fatal test failure on 5.54:
18:55 jnbek t/mojo/websocket.t ......................... 1/? (in cleanup) Can't call method "finish" on an undefined value at /tmp/perl-mojolicious/src/Mojolicious-5.54/blib/lib/Mojo/Transaction.pm line 17 during global destruction.
18:57 jamesaxl joined #mojo
19:01 ua_ joined #mojo
19:08 sri been a quiet week... since the convos meltdown
19:17 nicomen quiet in the channel?
19:20 hernan what happened to convos?
19:20 hernan lost all history?
19:24 marcus joined #mojo
19:24 sri a few of us were sharing a convos, and it broke horribly
19:24 sri so bad the box got banned from the network :S
19:26 jzawodn oops
19:28 sri batman is still missing
19:30 nicomen oh
19:30 nicomen was it used as a proxy?
19:31 * nicomen is trying to get Mojo::Test to work with a Catalyst app
19:32 Ptolemarch joined #mojo
19:36 hernan oh
19:51 sri hahaha... this is gonna end well for HTTP/2 http://lists.w3.org/Archives/Public/www-tag/2014Oct/0105.html
19:55 marty I switched our site to https only about 3 months ago.  Hypnotoad does just fine.   \o/
19:56 marty I dont know much about http2 but hopefully it will be an improvement
20:01 nicomen I thgouth using ssl front terminators was quite acceptabele
20:18 Ptolemarch joined #mojo
20:24 marcus joined #mojo
20:26 rem_lex|pivo joined #mojo
20:43 marcus joined #mojo
21:06 marcus joined #mojo
21:52 cfedde spend all freaking week figuring out how to drive some stinking cli. Spend 10 minutes hooking it up to a rest API.
22:09 marcus joined #mojo
22:17 meshl joined #mojo
22:27 good_news_everyon joined #mojo
22:27 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/Ly9bhQ
22:27 good_news_everyon mojo/master 3d971e1 Sebastian Riedel: added a few more methods to Mojo::Headers
22:27 good_news_everyon left #mojo
22:27 sri some interesting choices in http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-09#appendix-B
22:28 sri do people really use the "From" header for HTTP?
22:32 good_news_everyon joined #mojo
22:32 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/aQWb6Q
22:32 good_news_everyon mojo/master ac0eae6 Sebastian Riedel: better link for the CORS spec
22:32 good_news_everyon left #mojo
22:49 marcus joined #mojo
22:51 meshl joined #mojo
22:54 zivester joined #mojo
23:03 meshl joined #mojo
23:28 marty joined #mojo
23:38 al joined #mojo
23:41 ua joined #mojo

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