Camelia, the Perl 6 bug

IRC log for #mojo, 2013-04-18

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

All times shown according to UTC.

Time Nick Message
00:00 whitebook joined #mojo
00:07 btyler joined #mojo
00:25 d4rkie joined #mojo
00:25 d4rkie joined #mojo
00:33 whitebook joined #mojo
00:53 shmuel joined #mojo
01:05 cy joined #mojo
01:23 cy joined #mojo
01:25 ka2u joined #mojo
01:57 Meiermann joined #mojo
01:59 TitanOfOld joined #mojo
02:11 shmuel Hi. I'm doing a little presentation about mojolicious at $work
02:11 shmuel can anyone point me to a list of popular plugins?
02:56 preflex_ joined #mojo
03:16 rem_lex|pivo joined #mojo
03:22 moltar joined #mojo
03:34 jeff joined #mojo
04:00 plu joined #mojo
04:21 xaka joined #mojo
04:40 dabudabu joined #mojo
04:43 denisboyun joined #mojo
05:08 ka2u joined #mojo
05:11 davido joined #mojo
05:14 hotsnow joined #mojo
05:18 jberger__ joined #mojo
05:19 hotsnow I use nginx proxy_pass direct to my mojo server ( like this: http://mojolicio.us/perldoc/Moj​olicious/Guides/Cookbook#Nginx) but the page just return 304 not modify
05:20 hotsnow It was correct if i connect to the mojo server directory
05:21 hotsnow and the nginx proxy_pass work correct on other server like php or apache
05:28 arpadszasz joined #mojo
05:48 Meiermann joined #mojo
05:59 ver joined #mojo
06:10 Meiermann joined #mojo
06:24 Mike-PerlRecruiter_ joined #mojo
06:36 dpetrov_ joined #mojo
06:42 heytrav joined #mojo
06:47 hrupp joined #mojo
07:06 dod joined #mojo
07:07 suy joined #mojo
07:08 rihegher joined #mojo
07:14 preflex joined #mojo
07:21 dod joined #mojo
07:21 rihegher left #mojo
07:21 lukep joined #mojo
07:33 ObseLeTe joined #mojo
07:33 Vandal joined #mojo
07:44 Meiermann joined #mojo
08:06 jzawodn joined #mojo
08:13 maxhq joined #mojo
08:24 heytrav joined #mojo
08:28 denisboyun joined #mojo
08:40 heytrav joined #mojo
09:07 Vandal I have bridge $b = $r->bridge('/')->to('default#base'); and route $b->route('/:foo')->via('get')->to('default#act');
09:07 Vandal ow can I get :foo in default#base?
09:08 nelio joined #mojo
09:14 denisboyun joined #mojo
09:32 mrphilov joined #mojo
10:00 jpn joined #mojo
10:40 Britzel joined #mojo
10:42 memowe joined #mojo
10:49 mire joined #mojo
11:12 hotsnow joined #mojo
11:31 mattastrophe joined #mojo
11:41 mattastrophe joined #mojo
11:43 sweet_kid joined #mojo
11:52 cy joined #mojo
12:11 Kripton joined #mojo
12:19 dod joined #mojo
12:22 d4rkie joined #mojo
12:30 btyler joined #mojo
12:48 asarch joined #mojo
13:04 gryphon joined #mojo
13:09 moltar joined #mojo
13:11 dvinciguerra joined #mojo
13:15 dod joined #mojo
13:23 denisboyun joined #mojo
13:25 bluescreen joined #mojo
13:43 btyler joined #mojo
13:53 podz joined #mojo
13:53 podz hi
13:53 pertze joined #mojo
13:54 podz does mojo support identification of returning anonymous visitors over websockets, ie cookies?
13:54 Kripton joined #mojo
13:54 sri yes
13:55 podz if I have my phone connected to a mojo websocket, then I background the browser websocket disappears. when i foreground the browser, javascript reestablishes websocket connection automatically.
13:55 podz how can mojo know that this is the same user when the ws->tx is new?
13:55 sri because that's how cookies work?
13:56 podz please be patient here, i am new to websockets but trying to get there...
13:57 podz when i foreground my browser, it doesn't do any page refresh, only opens a new websocket and starts communication with the server
13:57 sri http://tools.ietf.org/html/rfc6455#section-1.3
13:58 podz so no new http headers are sent, only a brand new ws connection.
13:58 sri of course headers are sent
13:58 podz well yes, sorry. reading now. thanks for the tip.
13:59 pertze hi guys, is uploading multiple files supported? e.g. curl -F file=@somefile.zip -F file=another.tar http://somehost.com/upload?
13:59 sri it is
14:00 pertze accessable via $self->req->body_params->param('file') in list context?
14:01 pertze because this isn't working for me
14:01 pertze only get the first file object
14:01 podz so basically, my question is this: i have a route to /ws . in my ws controller, how do I say "Welcome back, ws user UNIQUE VALUE" based solely on the cookie from a previous session?
14:06 suy podz: at the risk of saying something terribly wrong, I think that you should generate some UUID, and store it on the session
14:13 sh4 joined #mojo
14:13 Kripton_ joined #mojo
14:14 hotsnow I use nginx proxy_pass direct to my mojo server ( like this: http://mojolicio.us/perldoc/Moj​olicious/Guides/Cookbook#Nginx) but the page just return 304 not modify.  It was correct if i connect to the mojo server directory. and the nginx proxy_pass work correct on other server like php or apache
14:17 hotsnow something wrong with my mojolicious or nginx configure ?
14:18 marty Vandal: I don't think you can.   They are separate dispatches.
14:18 Vandal marty, you making me cry :(
14:20 Vandal marty, what can you advice me?
14:24 marty pertze:  this might help.   http://mojolicio.us/perldoc/​Mojolicious/Controller#param   or this..  https://metacpan.org/module/Mojo::Message#uploads
14:27 marty Vandal:   my only suggestion is that if you have to have /:foo available to default#base then you will have to combine them in a route like $b = $r->bridge('/bar/:foo')->to('default#base');
14:27 pertze marty, ok thx I'll have a look at this
14:28 Vandal marty, its not what i want
14:31 Vandal marty, I have Categories which is captured by '/:foo', and I have to highlight current if selected, so if I put it in the 'base' to make it availiable for index - then I can't highlight it cuz I dont know what in :foo
14:32 Vandal if I move it to '/:foo' bridge - than it cant be matched by index page '/'
14:48 pertze marty, I got it now! thanks! :)
14:48 marty \o/
14:50 hotsnow nobody know my questions ?
15:14 asarch joined #mojo
15:19 jberger Vandal, give a default value for :foo
15:19 jberger perl -Mojo -e 'a("/:foo" => { foo => "default"} => sub { my $c = shift; $c->render( text => $c->stash("foo") ) })->start' daemon
15:19 Vandal jberger, and how it will help me?
15:19 jberger it will match /
15:20 Vandal did you read original question?
15:20 * jberger reads back
15:21 Vandal it was 6 hours ago
15:22 jberger would be easier to understand with an example
15:23 jberger I think you understand that without defining the capture /:foo in the bridge your couldn't use it in the code there
15:26 sh4 joined #mojo
15:27 Vandal jberger, I have this http://paste.org.ru/?66wnza
15:27 Vandal and have to maintain the same code in default#index and foo#base
15:28 Vandal which is gets category list and highlights it
15:29 Vandal if I move it to default#base - its dont see :category_uri
15:31 mattastrophe joined #mojo
15:31 Kripton joined #mojo
15:33 Kripton__ joined #mojo
15:37 bowtie joined #mojo
15:38 xaka joined #mojo
15:39 alester ack 2.0 is out. Whee!  http://beyondgrep.com/ack20/
15:44 btyler joined #mojo
15:45 Nei joined #mojo
15:46 Nei hi, can someone recommend me how I can turn a cgi function, that just "print"s its html, into something suitable for a mojolicious ->render ?
15:49 cy joined #mojo
15:50 njlg joined #mojo
15:56 suy new ack, and incompatible... I think I will end up switching to ag instead
15:59 jberger Vandal, I've tried (for longer than I should have) to turn your routing into a minimal example, my advice then is this
16:00 jberger leave your routes as they are, and move the replicated code into a helper
16:00 Vandal I didn't thought about it, thank you
16:19 cy joined #mojo
16:22 alester suy: What does "incompatible" mean?
16:23 alester suy: It's not as if the problems you may have are unfixable, or that I won't listen.
16:23 alester but hey, if ag is your tool of choice, I endorse that fully.
16:35 denisboyun joined #mojo
16:39 denisboyun_ joined #mojo
16:46 xaka joined #mojo
17:15 dod joined #mojo
17:57 labrown joined #mojo
17:58 Kripton joined #mojo
17:58 buu joined #mojo
18:02 Kripton_ joined #mojo
18:06 Kripton joined #mojo
18:10 jpn joined #mojo
18:14 Kripton_ joined #mojo
18:22 Mike-PerlRecruiter_ joined #mojo
18:29 BeDa joined #mojo
18:30 ObseLeTe joined #mojo
18:44 Kripton joined #mojo
18:58 nelio joined #mojo
19:24 gryphon joined #mojo
19:27 denisboyun joined #mojo
20:07 dpetrov_ joined #mojo
20:08 whitebook joined #mojo
20:10 mire joined #mojo
20:55 jberger joined #mojo
21:27 _xaka_ joined #mojo
21:27 mrphilov joined #mojo
21:29 bluescreen joined #mojo
21:32 lukep joined #mojo
21:38 TitanOfOld joined #mojo
22:11 cottoo joined #mojo
22:12 hrupp joined #mojo
22:14 good_news_everyone joined #mojo
22:14 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/Q9tWJA
22:14 good_news_everyone mojo/master 3dc723f Sebastian Riedel: updated jQuery to version 2.0
22:14 good_news_everyone left #mojo
22:26 ka2u joined #mojo
22:26 snuffles joined #mojo
22:35 bowtie joined #mojo
22:38 good_news_everyone joined #mojo
22:38 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/KdU7kw
22:38 good_news_everyone mojo/master dbb8ede Sebastian Riedel: updated prettify.js to version 4-Mar-2013
22:38 good_news_everyone left #mojo
22:51 good_news_everyone joined #mojo
22:51 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/BzQXVQ
22:51 good_news_everyone mojo/master c144524 Sebastian Riedel: CSS tweaks for new prettify.js
22:51 good_news_everyone left #mojo
22:52 sri hmm
22:53 sri guess i've discovered a Pod::Simple bug :(
22:53 sri in newer versions "=encoding utf8" results in the text " utf8 " in the resulting HTML
23:39 whitebook joined #mojo
23:49 moltar joined #mojo

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