Camelia, the Perl 6 bug

IRC log for #mojo, 2013-01-31

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

All times shown according to UTC.

Time Nick Message
00:08 marty moltar:  does this help...   http://mojolicio.us/perldoc/Mojol​icious/Guides/Cookbook#PSGIPlack
00:09 moltar marty: thanks, saw that already didn't help. but i have figured it out form a boilerplate example
00:09 moltar it turns out i was overcomplicating things and it was very simple
00:09 moltar it's just Mojolicious::Commands->start_app('App::Web');
00:14 Molaf_ joined #mojo
00:32 shmuel joined #mojo
00:35 * sri does not understand how mongodb drivers are supposed to use the Exhaust feature...
00:41 sri "Stream the data down full blast in multiple “more” packages, on the assumption that the client will fully read all data queried. Faster when you are pulling a lot of data and know you want to pull it all down."
00:41 sri i mean... wtf?
00:42 sri you have a protocol that is based on requests and responses with ids, responses carry the request id
00:42 sri makes perfect sense if you want to do multiplexing in the future
00:42 sri and then you throw it all away with such a flag
00:43 laidback_01 joined #mojo
00:45 jzawodn joined #mojo
00:54 * sri pretends some of those flags don't exist
00:54 sri in case anyone is wondering what i'm ranting about http://docs.mongodb.org/meta-driver/​latest/legacy/mongodb-wire-protocol/
00:55 sri signed int for message length is a nice touch too :S
00:56 egopro joined #mojo
01:04 buu latest/legacy eh?
01:04 sri :)
01:04 sri all the latest legacy
01:10 Mike-PerlRecruiter_ joined #mojo
01:16 ka2u joined #mojo
01:16 hlin joined #mojo
01:20 Miked joined #mojo
01:30 SmokeMachine joined #mojo
01:31 egopro_ joined #mojo
01:33 egopro joined #mojo
01:44 asarch joined #mojo
01:53 d4rkie joined #mojo
01:54 d4rkie joined #mojo
01:56 chrisxstyles joined #mojo
01:56 chrisxstyles connect
01:56 chrisxstyles left #mojo
02:00 rwstauner joined #mojo
03:29 mattastrophe joined #mojo
03:48 xaka joined #mojo
04:14 freman joined #mojo
04:14 freman so... I just dialed up with javascript... how absurd is that lol
04:15 freman https://dl.dropbox.com/u/46756/absurd.gif
04:15 freman a hint of the abuse your poor mojo is putting up with :D
04:18 Miked joined #mojo
04:37 GabrielVieira joined #mojo
05:05 xaka joined #mojo
05:10 shmuel_ joined #mojo
05:10 ka2u joined #mojo
05:14 rem_lex|pivo joined #mojo
05:30 ka2u joined #mojo
05:40 ver joined #mojo
06:08 spleenjack joined #mojo
06:41 Caelum my detach plugin is breaking the debug logging :/
06:54 Vandal joined #mojo
07:06 yakudza joined #mojo
07:18 venomo_ joined #mojo
07:21 mugenken joined #mojo
07:23 tempire joined #mojo
07:35 dod joined #mojo
07:39 d4rkie joined #mojo
07:56 d4rkie joined #mojo
07:57 egopro joined #mojo
08:01 spleenjack1 joined #mojo
08:07 suy joined #mojo
08:13 spleenjack joined #mojo
08:25 ObseLeTe joined #mojo
08:26 dod joined #mojo
08:26 ulric joined #mojo
08:43 dod joined #mojo
09:07 egopro joined #mojo
09:32 fhelmber_ joined #mojo
09:43 batman joined #mojo
09:47 wircus BRASS MONKEY THAT FUNKY MONKEY
09:48 nelio joined #mojo
09:57 marty Spunky Monkey that Swanky Monkey
10:04 dod joined #mojo
10:09 mugenken joined #mojo
10:11 jontaylor joined #mojo
10:27 perlite joined #mojo
10:57 mugenken_ joined #mojo
11:04 Miked joined #mojo
11:28 KindOne joined #mojo
11:37 KindOne joined #mojo
12:58 d4rkie joined #mojo
13:08 vervain joined #mojo
13:09 Mike-PerlRecruiter_ joined #mojo
13:14 ObseLeTe joined #mojo
13:14 ObseLeTe joined #mojo
13:16 moltar joined #mojo
13:21 ryozi joined #mojo
13:25 sri o/
13:31 moltar joined #mojo
13:40 bluescreen joined #mojo
13:50 Britzel_ joined #mojo
13:57 Adura joined #mojo
13:58 bluescreen joined #mojo
14:04 dpetrov_ joined #mojo
14:04 ObseLeTe joined #mojo
14:12 dotan joined #mojo
14:22 judofyr joined #mojo
14:27 GabrielVieira2 joined #mojo
14:47 gryphon joined #mojo
14:53 ka2u joined #mojo
15:00 inokenty joined #mojo
15:08 Molaf__ joined #mojo
15:09 sjn joined #mojo
15:14 sjn joined #mojo
15:19 sjn joined #mojo
15:19 SmokeMachine joined #mojo
15:21 marvin joined #mojo
15:22 marvin hi guys, could you give me plugin name, link or code sample for mojolicious implementation: let people download file when their $self->session('loggedin') is valid, please?
15:24 sjn joined #mojo
15:25 ZadYree you may bridge it in your routes, at worst
15:27 batman i want to serve my content chunked. is there a way to do that, but still maintain automatic rendering of templates?
15:27 batman what i'm doing now is $c->write_chunk($c->render_partial(template => '...'));
15:29 sjn joined #mojo
15:29 marvin ZadYree: are you sure that there is no better way?
15:30 ZadYree not at all, but it may do for some time if no better solution
15:34 marvin I use plugin('Authorization'). now, it's hard for me to imagine how would "->to()" part look like in $r->route('/foo/bar')->over(has_priv => 'loggedin')->to('file#download')
15:34 sjn joined #mojo
15:35 marvin .. or maybe  $self->plugin('RenderFile'); is the way.
15:39 sjn joined #mojo
15:52 kwa joined #mojo
15:53 batman is there a way i can override the ::Routes::auto_render() or ::Controller::render() ?
15:53 batman looks lik $c->render; is callled on Mojolicious::Controller and not *my* controller
15:54 judofyr batman: $self->render_later ?
15:55 ObseLeTe joined #mojo
15:55 batman judofyr: what do you mean?
15:56 judofyr batman: sorry, I don't quite understand what you want. but if you want a custom auto-render thingie, you could do $self->render_later + after_dispatch-hook
15:57 ObseLeTe joined #mojo
15:58 ulric left #mojo
15:59 sri batman: what you're trying to do is pretty much pointless
16:00 batman sri: i'm not rendering for browsers. the clients i'm talking with require Transfer-Encoding: chunked to be set and the connection need to stay alive
16:01 sri umm, that's not http then
16:01 batman huh?
16:02 sri chunked is an option in http 1.1, it can't be required
16:02 batman ok... if that's the direction this conversation will take, then i will just fix it in an around_dispatch hook.
16:02 sri alright, i'll stay away then
16:04 batman sri: what i'm trying to say is that it's pretty much impossible for me to change the way Zyxel/Thomson/whatever implements their HTTP client. so if i need to enable chunked, then that's what i'm going to do.
16:04 judofyr batman: I don't quite understand what you want though. you want to send something (chunked) and then keep the connection open (forever)?
16:05 batman not forever, but for more than one request.
16:05 batman i got it working, i just want to make it cleaner (if possible)
16:06 judofyr do you have to do anything specific to keep the connection open now, or do does Mojo::Server handle it properly?
16:06 batman it handles it when i use $c->write_chunk() and not $c->finish
16:08 SmokeMachine joined #mojo
16:14 sjn joined #mojo
16:32 wircus o/
16:38 mattastrophe joined #mojo
16:43 ObseLeTe joined #mojo
16:44 marty joined #mojo
16:45 mattastrophe joined #mojo
16:49 ka2u joined #mojo
16:51 marty_ joined #mojo
16:52 ObseLeTe joined #mojo
16:57 bpmedley_ joined #mojo
16:58 asarch joined #mojo
17:01 bpmedley joined #mojo
17:09 labrown joined #mojo
17:12 GabrielVieira joined #mojo
17:16 xaka joined #mojo
17:21 yakudza joined #mojo
17:23 mattastrophe joined #mojo
17:33 dod joined #mojo
17:34 dod joined #mojo
17:49 ka2u joined #mojo
17:50 wendar joined #mojo
18:23 sri i keep ranting about the mongodb wire protocol, but considering it has grown over time and wasn't actually designed, it's not that bad :)
18:26 ObseLeTe joined #mojo
18:30 good_news_everyone joined #mojo
18:30 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/pO-KeA
18:30 good_news_everyone mojo/master f020e9d Sebastian Riedel: small optimizations
18:30 good_news_everyone left #mojo
18:35 mattastrophe joined #mojo
18:57 ComLock joined #mojo
18:58 ComLock joined #mojo
19:01 ka2u joined #mojo
19:02 batman sri: "small optimization" -- is it faster or just less bytes?
19:11 venomo joined #mojo
19:12 _xaka_ joined #mojo
19:16 xaka joined #mojo
19:29 janus optimization does not exclusively mean speed
19:30 marty me optimizes for pretty
19:31 _xaka_ joined #mojo
19:32 mattastrophe joined #mojo
19:35 janus sometimes fun to see how one can optimize the wrong thing, think performance vs. capacity
19:35 janus especially with perl, where you trade a lot of memory for speed
19:35 allison joined #mojo
19:36 janus a lot as in often, not amounts
19:36 janus ... well :)
19:41 janus anyways, having less code to read is always a good optimization with regards to future
19:43 rwstauner joined #mojo
19:58 laidback_01 joined #mojo
20:13 ka2u joined #mojo
20:17 r0b3rt joined #mojo
20:21 SmokeMachine joined #mojo
20:21 mugenken joined #mojo
20:24 mire joined #mojo
20:26 venomo joined #mojo
20:29 xaka joined #mojo
20:30 ObseLeTe joined #mojo
20:31 karel9 joined #mojo
21:04 BeDa joined #mojo
21:15 xaka joined #mojo
21:17 batman janus: i know. but i'm a curious creature.
21:42 Mad_Dud guys, can you give me some tip on how to always store previously visited site in mojo based on GET?
21:42 sromanov joined #mojo
21:43 Mad_Dud store in sam variable so i could always redirect or offer link "go back"
21:43 Mad_Dud s/sam/some/
21:44 batman $c->req->headers->referrer; <-- that is the previous page in most cases
21:44 Mad_Dud awesome
21:45 Mad_Dud thanks a lot
21:51 Mad_Dud .. so would it be good implementation if i had to limit access to files (pdf) only to authed users by plugin-renderFile, so i would handle get request wit $self->render_file and then redirect_to( headers->referrer )?
21:51 Mad_Dud or is there better way?
21:57 sromanov left #mojo
22:15 TitanOfOld joined #mojo
22:29 mugenken redirecting to $self->referrer is fine
22:31 mugenken erm $self->req->headers->referrer of course.
23:01 janus batman: same optree btw
23:12 vti joined #mojo
23:12 vti sri: around?
23:13 sri o/
23:15 sri long time no see, how are you? :)
23:20 mattastrophe joined #mojo
23:22 vti sri: i'm good, thanks :)
23:26 venomo joined #mojo
23:27 DaTa joined #mojo
23:29 basic6 joined #mojo
23:34 jnbek joined #mojo
23:35 vti left #mojo

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