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

IRC log for #mojo, 2013-11-09

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

All times shown according to UTC.

Time Nick Message
00:06 trone joined #mojo
00:10 jnbek^dt joined #mojo
00:34 johnny5_ joined #mojo
00:38 johnny5_ joined #mojo
00:40 johnny5_ joined #mojo
00:55 asarch joined #mojo
01:37 johnny5_ joined #mojo
01:46 johnny5_ joined #mojo
01:53 jnbek^dt joined #mojo
01:53 johnny5_ joined #mojo
02:07 basic6_ joined #mojo
02:25 russum joined #mojo
02:33 ryozi joined #mojo
02:33 ryozi_ joined #mojo
02:34 asarch joined #mojo
02:39 mire joined #mojo
02:49 duncanthrax joined #mojo
02:52 asarch joined #mojo
03:02 sawtooth batman: thanks re param & select_field, perfect
03:41 heince joined #mojo
03:44 heince I'm using Mojolicious::Plugin::Database + hypnotoad, it say Provides "sane" handling of DBI connections so problems with pre-forking , but i'm having 'MySQL gone away' handle problem.
03:44 heince can anyone suggest the workaround ?
04:22 preflex_ joined #mojo
05:44 marcos DBIx::Connector or something like that
06:12 Vandal joined #mojo
06:14 d4rkie joined #mojo
06:19 rem_lex|pivo joined #mojo
07:10 KindOne joined #mojo
07:24 mire joined #mojo
07:53 moritz good morning
07:53 purl Lies!
07:53 moritz where can I find an example of nested routes in a non-lite app?
07:57 moritz basically I want to let controller Foo decide about all URLs that begin with /foo
07:57 moritz or would I use detour for that?
07:58 inokenty heince: Maybe you need 'mysql_auto_reconnect' option?
08:06 batman inokenty: that is not enough :( dbd::mysql is super weird...
08:10 dod joined #mojo
08:13 heince its not enough, i keep getting 'MySQL has gone away', i tried using DBIx::Connector also the same result
08:16 heince i did using 'InactiveDestroy' options the error didn't come out anymore but sometimes i didn't get any record from MySQL
08:17 heince i need to refresh it several times
08:19 batman heince: are you sure you used DBIx::Connector the right way? it should be enough...
08:23 dod joined #mojo
08:25 heince i use this helper http://goo.gl/ktyrvn
08:27 heince in my controller i use prepare statement then execute
08:27 batman something else: did you know that use DBIx::Connector is run on compile-time? that means that it's run long before the helper() is called, even though you have placed the statement inside the helper.
08:28 batman $c>new( # typo?
08:29 heince no, its : my $conn        = DBIx::Connector->new
08:29 batman i don't believe you... it seems like you're connecting each time you get a request, so it should not result in mysql server has gone away.
08:29 batman so by "no" you mean "yes" ?
08:30 heince let me paste the controller also
08:31 batman is this a lite of full app?
08:32 heince http://goo.gl/nSqoUX
08:32 jwang joined #mojo
08:33 heince http://goo.gl/ofX0q8
08:34 heince batman: its full
08:34 batman do something like this: http://p.thorsen.pm/f35a97e554a9
08:34 batman oops! not "sub register" - i meant "startup"
08:34 heince let me try
08:37 batman http://p.thorsen.pm/147d4ed58a39 # this is more correct i guess...
08:38 batman i would also do $self->conn->run(sub { my($dbh) = @_; ... }); but that's how i like to code...
08:38 batman or maybe make the helper able to take a callback...
08:42 batman http://p.thorsen.pm/25f95b0b9eba # more intelligent helper (?)
09:04 heince batman: thanks for your example, really helpful. now i can eat my cold pizza
09:04 batman hehe
09:04 batman heince: did it work?
09:05 heince it works, but i haven't test if MySQL wait_timeout triggered.
09:10 batman ok
09:11 d4rkie_ joined #mojo
09:36 sh4 joined #mojo
10:02 trone joined #mojo
10:05 jwang joined #mojo
10:44 denis_boyun joined #mojo
11:30 basiliscos joined #mojo
11:47 rem_lex| joined #mojo
12:14 hrupp joined #mojo
13:13 asarch joined #mojo
13:31 bowtie_ joined #mojo
14:23 ryozi joined #mojo
14:23 ryozi_ joined #mojo
14:53 sh4|2 joined #mojo
15:20 mire joined #mojo
15:25 two_tired joined #mojo
15:42 denisboyun joined #mojo
16:08 d4rkie joined #mojo
16:10 mire joined #mojo
16:26 d4rkie joined #mojo
16:46 mire joined #mojo
16:50 basiliscos joined #mojo
16:52 russum joined #mojo
17:05 rem_lex joined #mojo
17:47 dotandimet joined #mojo
18:10 mire joined #mojo
18:29 basiliscos joined #mojo
18:41 russum joined #mojo
18:43 Britzel joined #mojo
19:14 Mike-PerlRecruiter_ joined #mojo
20:38 sri joined #mojo
21:00 marty joined #mojo
21:02 dotandimet joined #mojo
21:04 beyondcreed joined #mojo
21:21 russum joined #mojo
22:02 dotandimet joined #mojo
22:11 basiliscos joined #mojo
23:41 russum joined #mojo
23:42 russum left #mojo
23:54 rem_lex|pivo joined #mojo

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