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

IRC log for #mojo, 2014-08-22

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

All times shown according to UTC.

Time Nick Message
00:02 woz joined #mojo
00:23 disputin joined #mojo
00:39 jberger_ signatures++
00:39 sujithm joined #mojo
00:39 jberger_ Is there some email chain about that?
00:54 sujithm_ joined #mojo
01:03 woz joined #mojo
01:06 lipizzan joined #mojo
01:15 d4rkie_ joined #mojo
01:25 marty joined #mojo
01:39 klapperl joined #mojo
01:42 d4rkie joined #mojo
01:50 TitanOfOld joined #mojo
02:04 woz joined #mojo
02:13 laouji joined #mojo
02:14 sujithm joined #mojo
02:43 noganex_ joined #mojo
03:05 woz joined #mojo
03:52 sujithm joined #mojo
03:57 sujithm joined #mojo
04:06 woz joined #mojo
04:11 hesco joined #mojo
04:52 ryanc joined #mojo
04:59 basiliscos joined #mojo
05:07 woz joined #mojo
05:21 basiliscos joined #mojo
05:52 ua_ joined #mojo
06:04 denis_boyun joined #mojo
06:08 woz joined #mojo
06:13 denis_boyun joined #mojo
06:41 KCL joined #mojo
06:50 Vandal joined #mojo
06:52 ua_ joined #mojo
06:55 basiliscos joined #mojo
07:09 woz joined #mojo
07:29 onur joined #mojo
07:30 rawler joined #mojo
07:33 onur Hi guys. What is best way to check authentication for some routes. I am doing stash 'user' in before_dispatch hook and checking user in my controller subroutines like: if ($user && $user->{level} > 5) ... But this causes a serious code repeat. Is there a better way to check authentication? I can't use bridges, because my urls is not suitable for bridges.
07:36 moritz onur: you could put the authentication check into a method
07:36 moritz return unless $self->check_auth_level(5);
07:36 moritz or something like that
07:37 onur yes I was planning it but what's going to happen if I return undef in your code?
07:40 moritz well, the check_auth_level should render the error page
07:41 moritz and then what happens if you return undef? nothing much
07:51 basiliscos joined #mojo
08:04 woz joined #mojo
08:20 sri jberger_: in your benchmark app, why didn't you optimize the hypnotoad config for the test environment?
08:20 sri (first thing i would have done)
08:21 sri we recommend 2 workers per core... the i7 workstation has 4 cores/8 hyperthreads... so i would expect between 8 and 16 workers
08:21 sri the default is 4, so you're definitely wasting quite a bit of performance
08:22 sri https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/frameworks/Perl/mojolicious/app.pl#L13 # this is not in the hypnotoad block
08:36 Nei "mojolicious—Did not complete" ;(
09:01 basiliscos joined #mojo
09:21 arthas joined #mojo
09:21 fhelmber_ joined #mojo
09:28 sri jberger_: those helpers should benefit from $c->helpers too
09:59 batman sri: if someone use Mango in blocking and non-blocking mode: will it have one or two connections to the database?
09:59 batman in Mojo::Redis2, i'm opening a new connection if the user change from non-blocking to blocking...
09:59 batman not sure if that makes sense or not
10:12 highflying joined #mojo
10:13 basiliscos joined #mojo
10:15 highflying Hi, any ideas how I can get Test::Mojo to test a request like get_ok('http://some.domain.name/') against the local app rather than the remote host?
10:46 meshl joined #mojo
10:49 Kripton joined #mojo
10:51 d4rkie joined #mojo
10:59 dp_ joined #mojo
11:09 Eke- joined #mojo
11:15 d4rkie joined #mojo
11:27 neilhwatson joined #mojo
11:35 sujithm joined #mojo
11:40 jberger sri: deployment optimization is the one i understand the least, so i appreciate the suggestion
11:40 jberger And yes the workers config gets applied to the hypnotoad block a few lines later
11:42 jberger I wasn't sure if the config plugin did a deep merge so i did that instead
11:46 laouji joined #mojo
11:47 jberger sri: actually that's just a default, the value gets set here
11:47 jberger https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/frameworks/Perl/mojolicious/setup.py#L8
11:47 jberger I could up the default of course
11:48 jberger Just in case
11:48 purl Break glass, retrieve shotgun.
12:00 basiliscos joined #mojo
12:03 basiliscos joined #mojo
12:06 basiliscos joined #mojo
12:15 sri ah
12:37 arthas joined #mojo
12:50 sujithm joined #mojo
13:31 sh4 joined #mojo
13:38 Dandre joined #mojo
13:44 sh4|2 joined #mojo
13:50 basiliscos joined #mojo
13:58 sh4 joined #mojo
14:28 ryozi joined #mojo
14:43 denny joined #mojo
14:44 bd -Mojo ftw!
14:45 john joined #mojo
14:46 john I have a route setup: $r->get('admin/plmapplugin')->to( 'admin#plugin' );
14:47 john Is there a way, in the plugin method, to know I got there via admin/plmapplugin?
14:48 john That's my plugin method, not a mojo one.
15:07 dp_ joined #mojo
15:14 sawtooth joined #mojo
15:15 sujithm joined #mojo
15:17 sujithm_ joined #mojo
15:24 john for the record, $self->match->endpoint->name does the trick.
15:24 basiliscos joined #mojo
15:24 john when would I use detour instead of to?
15:26 highflying left #mojo
15:43 disputin joined #mojo
15:46 meshl joined #mojo
15:53 hesco joined #mojo
15:54 bodgix joined #mojo
15:55 crab when you want to route requests to an embedded app
15:59 denis_boyun joined #mojo
16:01 GabrielVieira joined #mojo
16:03 john ta
16:11 bodgix joined #mojo
16:12 Nei when a websocket conn is closed I get "Write failed: Can't call method "_write" on an undefined value at Mojo/IOLoop/Stream.pm line 53." is this a bug in my reactor code ?
16:29 bodgix joined #mojo
16:33 lipizzan joined #mojo
16:35 GabrielVieira joined #mojo
17:00 TitanOfOld joined #mojo
18:02 dp_ joined #mojo
18:02 lipizzan joined #mojo
18:42 KCL_ joined #mojo
18:44 disputin joined #mojo
18:49 basiliscos joined #mojo
19:18 basiliscos joined #mojo
19:33 Vandal joined #mojo
19:44 woz joined #mojo
19:49 basiliscos joined #mojo
20:06 Ease joined #mojo
20:07 meshl joined #mojo
20:09 Ease I use $c->session{} to save information temporarily for a user's current session.
20:10 Ease The Problem: $c-session{} write the data to the clientside browser's cookie file, not encrypted.
20:10 Ease How can I encrypt, so the information cannot be reviewed after decoding the base64?
20:14 Ease is there a function available or do i have to parse it myself the parts through an encryption routine, such as CBC::Crypt?
20:15 woz joined #mojo
20:19 basiliscos joined #mojo
20:27 disputin joined #mojo
20:37 aramisf joined #mojo
20:47 basiliscos joined #mojo
21:05 Zx3 joined #mojo
21:12 neilhwatson joined #mojo
21:15 disputin joined #mojo
21:18 GabrielVieira joined #mojo
21:25 woz joined #mojo
21:26 Zx3 joined #mojo
21:32 Zx3 joined #mojo
22:26 woz joined #mojo
22:39 davido__ joined #mojo
22:55 d4rkie joined #mojo
23:13 d4rkie joined #mojo
23:27 jzawodn does anyone routinely use a VirtualBox guest w/port forwarding into a mojo app for testing?
23:27 woz joined #mojo
23:29 jberger_ Ease: Ease: though it can be read, it cannot be changed
23:30 GabrielVieira joined #mojo
23:33 sri jberger_: if you know the level of concurrency, tuning multi_accept might be worth it too
23:48 sri accept_interval too maybe
23:48 sri and increase accepts to prevent workers from getting restarted during the benchmark

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