Camelia, the Perl 6 bug

IRC log for #mojo, 2013-05-21

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

All times shown according to UTC.

Time Nick Message
00:17 btyler joined #mojo
00:37 egopro joined #mojo
00:40 whitebook joined #mojo
00:58 shmuel joined #mojo
01:24 btyler joined #mojo
01:53 d4rkie joined #mojo
01:56 Meiermann joined #mojo
02:05 mtj joined #mojo
02:15 egopro joined #mojo
02:27 egopro joined #mojo
03:01 Guest-quest joined #mojo
03:02 tianon joined #mojo
03:06 btyler joined #mojo
03:14 whitebook joined #mojo
03:31 inokenty joined #mojo
03:40 fildon_ joined #mojo
03:47 upgradeksh joined #mojo
03:48 John_Kang hi there,
03:49 John_Kang I am reading this page, http://mojolicio.us/perldoc/Mojolicious/Gu​ides/Growing#Simplified_application_class
03:50 John_Kang however, I can't understand 'under' method
03:50 John_Kang can someone let me know what is that
03:53 egopro joined #mojo
03:59 preflex_ joined #mojo
04:29 davido joined #mojo
04:32 shmuel John_Kang: under is a a function that runs before your webapp method
04:33 shmuel useful for things like authetication
04:33 shmuel you can see mojolicious lite's examples on how to use it
04:35 shmuel in the lite's example, it is simply a function that is declared before the webapp method, and is added to all the methods that declared after it
04:35 shmuel in the page that you linked, the under is created in the startup function, so you have to programmatically connect 'get' methods to it.
04:50 xaka joined #mojo
05:15 good_news_everyone joined #mojo
05:15 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/hvNd5A
05:15 good_news_everyone mojo/master fe8411d Sebastian Riedel: fixed redirect support in get command (closes #493)
05:15 good_news_everyone left #mojo
05:24 good_news_everyone joined #mojo
05:24 good_news_everyone [mojo] kraih tagged v4.03 at 4a9c3ba: http://git.io/wMRXNg
05:24 good_news_everyone left #mojo
05:36 John_Kang shmuel: thank you for letting me know
05:37 shmuel John_Kang: I hope that the explaination made sense..
05:37 John_Kang oh you are still here
05:38 John_Kang I looked for the documentation to find description for the method but couldn't :(
05:38 shmuel yep
05:38 John_Kang what is the return of the "under" method ?
05:39 shmuel http://mojolicio.us/perldoc/Mojolicious/Lite#Under
05:39 shmuel true to continue, false to stop processing
05:40 dod joined #mojo
05:40 John_Kang ah....
05:42 John_Kang there are two get method after it on the page that I give you
05:42 basiliscos joined #mojo
05:43 John_Kang the under method will be added both all ?
05:43 shmuel in the page that you linked
05:43 John_Kang I am a little confused
05:43 John_Kang yup
05:43 shmuel every $logged_in->get(...) is place under the 'under'
05:43 John_Kang get('/protected')  and get('/logout' ....)
05:43 good_news_everyone joined #mojo
05:43 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/Co7RKA
05:43 good_news_everyone mojo/master 33e6dfe Sebastian Riedel: small optimizations
05:43 good_news_everyone left #mojo
05:44 shmuel get('/logout') is taken from $r, not $logged_in.
05:44 suicidejack joined #mojo
05:44 John_Kang i understood
05:45 shmuel "$r->get('/logout' =>..."
05:45 John_Kang I appreciate you
05:45 shmuel no problem. bye.
05:45 John_Kang shmuel: I can understand now, thank you so much !!!
05:45 shmuel :-)
05:45 suicidejack Hi, I have this code which is not routing to the controller
05:46 suicidejack $r->get('/forest/:id', id => qr/\d+/)->to('forest#unique');
05:46 suicidejack when I remove the pattern matching on id it works fine
05:47 suicidejack any idea why limiting id to just digits breaks it?
05:48 suicidejack mojo 4.01
05:49 Britzel_ joined #mojo
05:54 shmuel suicidejack: are you sure you can use 'get' instead of 'route'?
05:56 avkhozov joined #mojo
05:56 jnbek joined #mojo
05:57 suicidejack is there a difference?  I guess I assumed that you could use pattern matching on the placeholder with route/get/etc
05:57 shmuel I don't know - beginner here.
05:57 suicidejack yes same :)
05:58 good_news_everyone joined #mojo
05:58 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/RAQESw
05:58 good_news_everyone mojo/master b0f4801 Sebastian Riedel: another small optimization
05:58 good_news_everyone left #mojo
05:58 shmuel just that all the examples with 'to' and restictions are written with 'route'
05:58 suicidejack well i know for sure you can use get and to as I have been doing it
05:59 suicidejack any idea on the difference between route vs calling the http method like get?
05:59 shmuel I see here: http://mojolicio.us/perldoc/​Mojolicious/Routes/Route#get
05:59 shmuel a get->to without restrictions
05:59 davido joined #mojo
06:00 dod joined #mojo
06:04 suicidejack ahh
06:04 suicidejack ty shmuel
06:04 suicidejack figured it out
06:04 suicidejack $r->get('/forest/:id')->parse(id => qr/\d+/)->to('forest#unique');
06:05 shmuel ニセ
06:05 shmuel oops. sorry. nice.
06:05 suicidejack appreciate the help :)
06:05 sri that was not a good find :S
06:06 sri the correct solution would have been $r->get('/forest/:id' => [id => qr/\d+/])->to('forest#unique')
06:07 davido where's the ++ button?
06:09 suicidejack ah
06:10 suicidejack sri can you help me understand why I have to use the anon array brackets with get vs a list with route?
06:11 sri http://mojolicio.us/perldoc/​Mojolicious/Routes/Route#get # like it says here, the lite tutorial applies
06:11 sri method or function, same arguments
06:12 suicidejack got it thanks!
06:14 denisboyun_ joined #mojo
06:19 sri suicidejack: did you skip the lite tutorial?
06:34 egopro joined #mojo
06:35 good_news_everyone joined #mojo
06:35 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/H_Jy3g
06:35 good_news_everyone mojo/master f773f19 Sebastian Riedel: better synopsis examples for Mojolicious::Routes
06:35 good_news_everyone left #mojo
06:36 Mike-PerlRecruiter_ joined #mojo
06:43 nelio joined #mojo
06:43 good_news_everyone joined #mojo
06:43 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/LSa7Qg
06:43 good_news_everyone mojo/master afe4a77 Sebastian Riedel: documentation tweaks
06:43 good_news_everyone left #mojo
06:45 dod joined #mojo
06:57 yakudza joined #mojo
07:03 good_news_everyone joined #mojo
07:03 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/a9l1Ig
07:03 good_news_everyone mojo/master ad84e01 Sebastian Riedel: more diverse route examples
07:03 good_news_everyone left #mojo
07:12 Vandal joined #mojo
07:34 tempire joined #mojo
07:43 jzawodn joined #mojo
07:58 dod joined #mojo
08:02 shmuel joined #mojo
08:12 dpetrov_ joined #mojo
08:15 suy joined #mojo
08:20 jon2 joined #mojo
08:20 cosmincx joined #mojo
08:31 KindTwo joined #mojo
08:46 arthas joined #mojo
08:59 denisboyun joined #mojo
09:00 dod joined #mojo
09:07 ron-slc joined #mojo
09:16 judofyr joined #mojo
09:16 judofyr weee. 4.0!
09:30 fhelmber_ joined #mojo
09:32 jpn joined #mojo
09:32 jpn left #mojo
09:38 judofyr_ joined #mojo
09:44 nic new debian, new perl, new mojo!!!
09:50 egopro joined #mojo
09:59 bowtie joined #mojo
10:06 maxhq joined #mojo
10:26 mrphilov joined #mojo
10:38 dod joined #mojo
10:47 bowtie joined #mojo
10:47 snuffles joined #mojo
10:51 snuffles joined #mojo
10:58 whitebook joined #mojo
11:22 ver joined #mojo
11:40 marcus weee
11:44 cosmincx joined #mojo
11:57 whitebook joined #mojo
11:58 moltar joined #mojo
12:02 btyler joined #mojo
12:36 inokenty left #mojo
12:41 arthas joined #mojo
12:44 dod joined #mojo
13:04 bluescreen joined #mojo
13:07 bluescreen_ joined #mojo
13:08 russum joined #mojo
13:25 asarch joined #mojo
13:35 labrown joined #mojo
13:44 whitebook joined #mojo
13:44 Vandal joined #mojo
13:54 mrphilov joined #mojo
13:57 kwa joined #mojo
14:06 btyler joined #mojo
14:17 sri weee
14:27 btyler joined #mojo
14:28 whitebook joined #mojo
14:28 ryozi joined #mojo
14:42 SmokeMachine joined #mojo
14:56 inokenty joined #mojo
14:57 dod joined #mojo
15:02 Akron joined #mojo
15:30 tempire wooo
15:30 tempire dernit
15:30 tempire I messed it up
15:30 tempire I ALWAYS MESS IT UP
15:31 sri classic tempire
15:32 sri YOU TEMPIRED IT!
15:32 tempire Britta'd it
15:33 Vandal ahaha
15:33 Vandal community?
15:34 sri shut up pierce!
15:34 Vandal ^)
15:34 Vandal sri, you are so gay!
15:35 tempire I have the perfect response. But publicly logged, and all.
15:36 tempire pierce just ruins everything
15:37 Vandal :)
15:42 dod1 joined #mojo
15:42 sh4 joined #mojo
15:43 whitebook joined #mojo
15:48 d4rkie joined #mojo
15:49 mire_ joined #mojo
15:51 xaka joined #mojo
15:52 dod joined #mojo
15:55 dod joined #mojo
16:00 rem_lex| joined #mojo
16:04 * marty can only associate pierce with M*A*S*H and therefore does not get the joke.
16:16 delias joined #mojo
16:34 ron-slc joined #mojo
16:36 SmokeMac_ joined #mojo
16:36 russum joined #mojo
16:42 basiliscos joined #mojo
16:43 tempire hmm
16:44 KindTwo joined #mojo
16:44 tempire do I need to use delay in order to execute a non-blocking request within an app?
16:46 sh4 joined #mojo
16:47 KindOne joined #mojo
16:54 foristh joined #mojo
16:55 foristh Hi guys! I have following problem: I ran hypnotoad with hot deployment. Then changed my template, refreshed the page and new item was shown. Then I refreshed again and changes disappeared. I checked and apparently not all threads see the changes.
16:55 foristh Is it known issue?
16:59 tempire old processes are still running with old code.  it will work itself out as new requests come in.
17:00 tempire your browser is connecting to different processes, some with new, some with old code.
17:00 * tempire thinks the hallway++ idea is hilarious
17:03 gryphon joined #mojo
17:04 foristh tempire: That makes sense, thanks! Btw, what is hallway++? :)
17:04 tempire yapc psuedo-track
17:04 tempire http://shadow.cat/blog/matt-s-trout/hwppna-2013/
17:05 whitebook joined #mojo
17:09 * sri stumbled over a very weird hypnotoad error recently
17:10 sri could totally be a perl bug though... every now and then it appears the DATA sections get corrupted on one of my servers
17:11 sri and template boundaries get garbled
17:12 sri "[Tue May 21 07:55:53 2013] [error] Missing right curly or square bracket at template layouts/default.html.ep from DATA section line 1639, at end of line syntax error at template layouts/default.html.ep from DATA section line 1639, at EOF"
17:13 sri the template is only like 60 lines
17:14 sri (get corrupted after a zero downtime restart and normalize after another one again)
17:15 * sri wonders if it could even be a hardware fault
17:18 Kovensky joined #mojo
17:22 dpetrov_ joined #mojo
17:24 Kovensky joined #mojo
17:25 Kovensky joined #mojo
17:26 tempire sri: I'm failing.
17:26 tempire https://gist.github.com/tempire/5621542
17:27 sri tempire: the ua goes out of scope ;p
18:22 russum joined #mojo
18:33 Mike-PerlRecruiter_ joined #mojo
18:40 sivoais joined #mojo
19:00 r0b3rt joined #mojo
19:02 fhelmber_ joined #mojo
19:12 fhelmber_ joined #mojo
19:14 mire_ joined #mojo
19:17 bluescreen_ joined #mojo
19:23 whitebook joined #mojo
19:24 foristh left #mojo
19:25 fhelmber_ joined #mojo
19:35 Kovensky joined #mojo
19:40 fhelmber_ joined #mojo
19:56 Kovensky joined #mojo
20:02 fhelmber_ joined #mojo
20:05 nelio joined #mojo
20:21 fhelmber_ joined #mojo
20:30 davido joined #mojo
20:32 fhelmber_ joined #mojo
21:01 two_tired is it possible to use Apache + mod_disk_cache for requests that are proxied to hypnotoad? Anyone have an example config file?
21:02 MeierM joined #mojo
21:37 lukep joined #mojo
21:40 delias joined #mojo
21:49 russum left #mojo
21:57 delias joined #mojo
21:59 Meiermann joined #mojo
22:27 Kovensky joined #mojo
22:38 mrphilov1 joined #mojo
23:16 tagg joined #mojo
23:27 Kovensky joined #mojo
23:47 tempire what are the @args given to each sub in Mojo::IOLoop::Delay->steps ?

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