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

IRC log for #mojo, 2013-11-08

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

All times shown according to UTC.

Time Nick Message
00:26 russum joined #mojo
00:31 basiliscos joined #mojo
00:34 mire joined #mojo
00:58 asarch joined #mojo
01:04 laouji joined #mojo
01:13 btyler joined #mojo
01:52 d4rkie joined #mojo
02:02 d4rkie joined #mojo
02:06 basic6 joined #mojo
02:15 TitanOfOld joined #mojo
02:49 duncanthrax2 joined #mojo
03:23 zackiv31 joined #mojo
03:33 asarch joined #mojo
03:48 zackiv31 joined #mojo
03:52 laouji joined #mojo
04:06 mire joined #mojo
04:14 jnbek joined #mojo
04:23 preflex_ joined #mojo
05:40 davido joined #mojo
06:08 beyondcreed joined #mojo
06:36 d4rkie joined #mojo
07:00 Vandal joined #mojo
07:06 dod joined #mojo
07:18 dod joined #mojo
07:19 laouji joined #mojo
07:19 laouji joined #mojo
07:32 stephan48 joined #mojo
08:16 arthas joined #mojo
08:17 trone joined #mojo
08:19 rem_lex joined #mojo
08:19 dod joined #mojo
09:03 basiliscos joined #mojo
09:07 KindOne joined #mojo
09:13 KindOne joined #mojo
09:44 dotandimet joined #mojo
10:09 laouji joined #mojo
10:13 laouji joined #mojo
10:32 fhelmber_ joined #mojo
10:32 laouji joined #mojo
10:37 yakudza joined #mojo
10:53 laouji joined #mojo
11:01 Lee joined #mojo
11:02 laouji joined #mojo
11:03 denisboyun joined #mojo
11:08 laouji joined #mojo
11:10 rem_lex joined #mojo
11:13 maxhq joined #mojo
11:18 dotandimet joined #mojo
11:22 phips|mac joined #mojo
11:49 laouji joined #mojo
12:13 hrupp joined #mojo
12:19 KindOne joined #mojo
12:20 laouji joined #mojo
12:22 laouji joined #mojo
13:00 sawtooth does the select_field taghelper parse selected as an attribute?
13:00 sawtooth I can't figure it out :/
13:07 sawtooth ah, it does... I was doing it wrong.
13:12 sawtooth ho-hum, no it doesn't, it doesn't parse %attrs off to _option
13:22 denis_boyun joined #mojo
13:40 mjb152 joined #mojo
13:46 mjb152 I'm havng an issue route to a callback which uses authentication.  authentication is working, but when I add a route under it , it never gets called, it just times out trying to render a non existent template, instead of calling the Controller.
13:46 mjb152 http://pastebin.com/9DRLrz4D  is where my sample code is at, what am I doing wrong there ?
13:48 maxhq joined #mojo
13:48 russum joined #mojo
13:49 batman sawtooth: no, it does not. the way to solve that is to make mojo autoselect for you
13:50 batman <% param foo => "some value" %><%= select_field 'foo', \@values %> # @values need to contain "some value"
13:50 batman <% param foo => "some value" unless param 'foo' %> # allow user input
13:51 batman and also, you might want to put this in your controller.
13:51 batman mjb152: $r->route('/recipes')->to(cb => sub { # this is not a bridge
13:52 batman no idea what the solution is though... i consider that paste to be a mess :(
13:54 basiliscos joined #mojo
14:08 sh4 joined #mojo
14:14 russum1 joined #mojo
14:17 asarch joined #mojo
14:19 mjb152 joined #mojo
14:19 mjb152 ok, I'll re-read the docs for what I want.  out of interest why is it a mess ?  whats the best practice here ?
14:20 batman it's not really a mess, but what i think is the bug makes the rest hard to understand
14:20 batman not really sure that url you want to do what
14:22 mjb152 basically anything under /recipes   will be redirected to /recipes if not authenticated.  I'm trying to get /recipes/delete/12 to work , but it doesnt seem to be being called, just straight to a template and not the controller action
14:30 SmokeMachine joined #mojo
14:46 btyler joined #mojo
14:47 bluescreen joined #mojo
14:58 gryphon joined #mojo
14:58 beyondcreed joined #mojo
15:29 mire joined #mojo
15:33 fhelmbe__ joined #mojo
15:59 denisboyun joined #mojo
16:05 kwa mjb152: You want something like: my $auth = $r->bridge->to('bridge#authenticate'); Then hang your authenticated routes off that. Like: $auth->get('/')->to('root#index').
16:07 mjb152 kwa: yes thanks for that, had a small break and in my code I just changed the word route to bridge in the line   my $recperm = $r->bridge('/recipes')->to(cb => sub {
16:08 mjb152 all working fine now.
16:09 kwa Sweet.
16:11 mjb152 yeah, I'm really liking mojolicious. built a small app with bootstrap and it's been a great learning experience.
16:23 ryozi joined #mojo
16:23 ryozi_ joined #mojo
16:38 asarch joined #mojo
16:42 mire joined #mojo
16:46 denisboyun joined #mojo
16:47 dyn1 joined #mojo
16:48 dyn1 hello, all.
16:53 dyn1 i trying to write a kinship of ``tail -f' on mojolicious / AnyEvent, could someone help me?
16:54 dyn1 gist: https://gist.github.com/dynax60/7373964
16:55 dyn1 After I change filename ``changeme' nothing happens, why?
16:55 dyn1 s/change/put smth into it/ :)
17:02 KindTwo joined #mojo
17:02 asarch joined #mojo
17:06 batman why do you want to read the file backwards..?
17:07 dyn1 I would like to read from the end
17:07 btyler dyn1: have you seen https://github.com/hayajo/Mojolicious-Plugin-Webtail ? it cheats and uses tail, but might serve your needs if this isn't just a learning project
17:08 batman dyn1: i don't get how backwards is the same as from the end, but i might be confused by the modulename
17:11 dyn1 nevermind, in the future I need to read at the same time about 10 important files... don't want to use smth like tail from the pipe ) just trying to use AnyEvent::Handle, I thought I understand it )) I was wrong
17:12 KindOne joined #mojo
17:16 denisboyun joined #mojo
17:26 ovnimancer joined #mojo
17:55 bowtie_ joined #mojo
17:59 nic dyn1: I did 'tail -f' by remembering for each file (mod time, length)
18:00 nic then when loop detects a file has updated timestamp, seek to previous position and read to end, recording new pair for that file
18:01 nic hmm, mine was closer to 'tail -F' actually
18:04 beyondcreed joined #mojo
18:32 abra_ joined #mojo
18:36 punter joined #mojo
18:43 Britzel_ joined #mojo
18:44 r0b3rt joined #mojo
18:49 dod joined #mojo
18:57 basiliscos joined #mojo
19:13 Mike-PerlRecruiter_ joined #mojo
19:28 howitdo Can someone point me to documentation on how to replace the rainbow puking dino with something custom, when in production?
19:33 dyn1 enjoy the silence
19:33 r0b3rt http://mojolicio.us/perldoc/Mojolicious/Guides/Rendering#Rendering_exception_and_not_found_pages
19:36 bpmedley_ joined #mojo
19:59 denisboyun joined #mojo
20:05 d4rkie joined #mojo
20:21 d4rkie joined #mojo
20:26 howitdo r0b3rt, thx
20:37 punter joined #mojo
20:48 Kulag joined #mojo
20:50 punter joined #mojo
20:57 denis_boyun joined #mojo
21:05 punter joined #mojo
21:55 denis_boyun joined #mojo
21:56 bluescreen joined #mojo
22:15 basiliscos joined #mojo
23:10 good_news_everyone joined #mojo
23:10 good_news_everyone [mojo] kraih pushed 3 new commits to master: http://git.io/bf-UVw
23:10 good_news_everyone mojo/master 7f6b932 Ian Goodacre: Add test for JSON encode and decode of "\a\b"...
23:10 good_news_everyone mojo/master 42fb620 Ian Goodacre: Fix Mojo::JSON - encode "\a\b"...
23:10 good_news_everyone mojo/master 76bcb80 Sebastian Riedel: Merge pull request #561 from ig3/JSON_b...
23:10 good_news_everyone left #mojo
23:20 good_news_everyone joined #mojo
23:20 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/xcZtRg
23:20 good_news_everyone mojo/master ba1773e Sebastian Riedel: more tests for special JSON characters
23:20 good_news_everyone left #mojo
23:20 good_news_everyone joined #mojo
23:20 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/rb62Fg
23:20 good_news_everyone mojo/master 1ac6e17 Sebastian Riedel: bump version
23:20 good_news_everyone left #mojo
23:54 mire joined #mojo

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