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

IRC log for #mojo, 2015-07-27

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

All times shown according to UTC.

Time Nick Message
00:05 CandyAngel And I just realised that CHI's 'compute' doesn't pass the key to the computing sub
00:05 CandyAngel Seems oversighty
00:10 bpmedley_ joined #mojo
00:28 jberger CandyAngel: why would the sub need the key?
00:30 CandyAngel Because it is supposed to calculate the value for the key
00:30 CandyAngel Seems like it would help if it actually got the key :P
00:30 CandyAngel Rather than presuming it has it from scope
00:34 jberger The key is just a marker
00:36 CandyAngel A uniquely identifying marker which determines what value to compute
00:37 CandyAngel Can you have a compute which doesn't need to know the key?
00:37 CandyAngel it's nearly 2am, maybe I'm just being dense
00:37 CandyAngel (as though i'm not less stupid at non-2am times)
00:48 * CandyAngel actually heads off to bed
00:48 CandyAngel Night everyone :)
02:33 bpmedley joined #mojo
02:54 noganex joined #mojo
04:02 sseche joined #mojo
04:37 PryMar56 joined #mojo
04:54 atom joined #mojo
04:55 atom I need to call controller MyApp::Controller::Service::Search from $logged_in->get('/service/search')->to('?????#index');  ... How do I represent it in there?
05:31 niczero joined #mojo
06:02 Grinnz service-search
06:06 atom thanks Grinnz!  I was still googing like hell to figure that out
06:07 Grinnz https://metacpan.org/pod/Mojolicious::Guides::Routing#Special-stash-values
07:04 kaare joined #mojo
07:14 Vandal joined #mojo
07:16 AndrewIsh joined #mojo
07:27 arpadszasz joined #mojo
07:30 trone joined #mojo
07:35 ashimema joined #mojo
07:35 McA joined #mojo
07:35 berov joined #mojo
07:39 odc joined #mojo
07:39 trone joined #mojo
07:43 eseyman joined #mojo
07:44 dp_ joined #mojo
07:52 sseche left #mojo
08:21 jontaylor joined #mojo
08:33 inokenty joined #mojo
08:55 stephen joined #mojo
09:15 BinGOs joined #mojo
10:04 jontaylor I don’t wanna monday :(
10:30 teejay morning jontaylor
10:30 jontaylor hey teejay
10:30 jontaylor only you can truly understand my pain here
10:30 teejay :)
10:31 teejay jontaylor, I may be available from september or december if your client is interested ;)
10:32 jontaylor yeah, probably will be, actually
10:32 jontaylor i’m sure we can set something up
10:32 * teejay will be an snmp expert by then
10:32 teejay or at least be able to bluff my way around it well enough ;)
10:33 jontaylor I’m actually doing a monitoring side project at the moment
10:33 jontaylor but its not network stuff, its application monitoring for perl apps
10:34 robinsmidsrod joined #mojo
10:55 robinsmidsrod joined #mojo
11:03 robinsmidsrod joined #mojo
11:05 * CandyAngel upgrades #mojo from window #9 to #6 in Weechat :P
11:06 doby joined #mojo
11:33 mattastrophe joined #mojo
12:02 neilhwatson joined #mojo
13:05 gryphon joined #mojo
13:11 hernan605 joined #mojo
13:36 jb360 joined #mojo
13:53 mattastrophe joined #mojo
14:27 PryMar56 joined #mojo
14:31 hernan605 joined #mojo
15:13 disputin joined #mojo
15:20 Lee joined #mojo
15:32 lluad joined #mojo
15:34 thowe joined #mojo
15:37 thowe if I want all session for my app to expire in 4 hours, should I set that in startup, or when I set something on login like "$self->session( 'user' => $dbuser->id "
15:39 stuart_ every 4 hour all session expire, or they expire 4 hours after they are created
15:39 thowe 4 hours of inactivity
15:39 thowe refreshed when requested against
15:39 jberger thowe: you can do it whenever, but if you want it on every request you should use a hook or an early under
15:40 jberger actually wait
15:40 stuart_ or set  the default_expiration time
15:40 jberger http://mojolicio.us/perldoc/Mojolicious/Sessions#default_expiration
15:40 jberger ha, stuart_ beat me
15:41 thowe Yeah, I'm looking at that.  It is making me scratch my head
15:41 thowe That link is why I'm asking.  I don't get it
15:41 jberger this is not on the client's session object
15:41 jberger it's the app's session writer
15:41 thowe where did $session" come from?
15:42 jberger app->session->default_expiration(4*60*60)
15:42 stuart_ isn't session in the $app?
15:42 stuart_ bah you beat me this time
15:42 thowe so in startup can I $self->app->session->default_expiration(whatever)?
15:42 jberger except that I typoed
15:42 jberger app->sessions->default_expiration(4*60*60)
15:42 jberger sessions
15:42 jberger thowe: in startup, $self == $app
15:42 stuart_ true
15:43 stuart_ true**"
15:43 stuart_ s/"/2/
15:43 jberger stuart_: maybe quit while you're ahead :-P
15:43 jberger thowe: does that makes sense
15:43 jberger ?
15:43 thowe OK...  So when I a user logs in and $self->session( 'user' => $user), that's a new session that will be created with that default timeout....  new for each user.
15:44 jberger created or updated, but yes
15:44 stuart_ my head is in writing English, I wish I could write covering letters in Perl.
15:44 thowe so, there's like a hash of sessions in there...
15:47 thowe ah, sessions is a "session manager"
15:47 disputin joined #mojo
15:49 thowe jberger, yes, makes sense now.  Thanks.
15:50 jberger thowe: I don't really want to say manager because it isn't stateful
15:51 jberger but it is the object that writes the cookies and interprets them
15:51 jberger so close enough
15:54 thowe I'm probably not doing anything fancy enough to need to understand it too deeply...  I hope.  :P
15:57 jb360 joined #mojo
15:59 Dave joined #mojo
16:01 jontaylor joined #mojo
16:14 jberger thowe: probably not
16:47 sh4 joined #mojo
17:06 arpadszasz joined #mojo
17:08 Dave joined #mojo
17:15 amon joined #mojo
17:32 mattastrophe joined #mojo
17:36 mattastrophe joined #mojo
17:58 arpadszasz joined #mojo
18:02 Onigiri joined #mojo
18:11 trone joined #mojo
18:11 punter joined #mojo
18:55 hernan605 joined #mojo
18:58 Skylos__ joined #mojo
19:16 human39 joined #mojo
19:21 Skylos__ joined #mojo
19:31 melo joined #mojo
19:34 stephen joined #mojo
19:34 jberger hehe: http://i.imgur.com/Bawcbww.gif
19:35 jberger h/t Exodist
19:39 Grinnz_ hah
21:10 mattastrophe joined #mojo
21:12 disputin joined #mojo
22:32 jzawodn joined #mojo
22:34 frederico joined #mojo
23:00 disputin joined #mojo
23:12 jberger what do you think?
23:12 jberger https://ee298c3f-a-8012a573-s-sites.googlegroups.com/a/mitchellscosmicadventure.com/mca/human-anatomy/test-basket/naming-skeletal-muscles/Muscular_Atlas%20Pose.jpeg?attachauth=ANoY7coEVLgrz5UTwMW6LeILijVWuzkuKoQF9vL7ZA52YfQyOnuj7AWo_FNpDdzbKFJDxa8YjVrKecjvuUUPFna03BeevPGiPbafJS7aLoOfE1YEvjTwqGeLGExvFhGyVcJLNPAU4w3qlD-tU2RTg9jzvLaTtXbl8J6evq5l-tnq1jrRtQfvaPagBdCOOO-KbmJ6FHCO_xGj13spl6YTb_WtW00uxwhTR59C44sW08zQD81swdgufcEc_29rjSHy
23:12 jberger vs
23:12 jberger \o?
23:12 jberger anyway, I am doing some wicked perling and I feel like \o/
23:13 jberger but \o? might be more appropriate
23:17 bpmedley The page you requested is invalid. <-- That's what I see
23:20 buu ^
23:49 mattastrophe joined #mojo
23:59 damaya joined #mojo
23:59 damaya Hi all, using Mojolicious::Validator what's the best way to validate email?

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