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

IRC log for #mojo, 2015-05-18

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

All times shown according to UTC.

Time Nick Message
00:15 nf joined #mojo
01:12 mattastrophe joined #mojo
01:16 nf joined #mojo
01:52 bwf joined #mojo
01:56 klapperl_ joined #mojo
01:56 asarch joined #mojo
02:16 nf joined #mojo
02:17 circ-user-KKz1N joined #mojo
02:24 jberger joined #mojo
02:24 jberger batman/marcus: I'm having trouble with Convos
02:25 jberger the connection died, so I went to restart the instance and I'm getting errors
02:25 jberger Can't open file "/home/joel/perl5/perlbrew/perls/perl-5.20.1/lib/site_perl/5.20.1/Convos/public/packed/https___platform_twitter_com_widgets_js.js": Permission denied at /home/joel/perl5/perlbrew/perls/perl-5.20.1/lib/site_perl/5.20.1/Mojolicious/Plugin/AssetPack/Asset.pm line 88.
02:25 jberger I've tried reinstalling AssetPack and Convos
02:25 jberger Convos fails tests now too
02:27 jberger :(
02:36 preaction you done fucked up now!
02:38 Adura Restart computer.
02:38 jberger yup
02:38 jberger Adura this isn't windows
02:38 jberger Bender spread the love
02:38 jberger (that never seems to work)
02:38 Adura Well, if it's Linux, don't restart.
02:45 lluad Sounds like it might have been run as root or somesuch, made the assets, and the user you're running as now can't access them?
02:45 jberger I don't think that is the case, but it is an interesting theory
02:58 noganex_ joined #mojo
03:03 jberger_ joined #mojo
03:03 jberger aha
03:03 jberger left #mojo
03:04 jberger so I downgraded AssetPack to 0.43 and that seems to be working
03:06 jberger then again, I had to install several ruby gems and its possible that that fixed other things, so I'm not exactly sure where the bug is
03:09 jberger joined #mojo
03:10 jberger and now I upgraded it again and all is well
03:10 jberger so I guess it has to be the gems?
03:10 preaction that's outrageous. truly outrageous
03:12 jberger fracking rubby
03:12 jberger ruby even
03:13 inokenty-w joined #mojo
03:17 nf joined #mojo
03:21 basic6_ joined #mojo
03:25 jberger preaction: dammit now I have that theme song in my head!
03:26 jberger I hope you're happy
03:26 preaction i am, thank you
03:26 preaction you must be a misfit...
03:27 jberger I was just thinking that perhaps I'll dream of attractive cartoon musicians as a result, which wouldn't be all bad
03:28 jberger anyway my week of driving is done and I'm exhausted, I'm going to bed
03:28 jberger nn all
04:14 polettix joined #mojo
04:18 nf joined #mojo
04:18 absolut_todd joined #mojo
04:19 kaare joined #mojo
04:23 zivester joined #mojo
04:55 mattastrophe joined #mojo
04:56 hshong joined #mojo
05:07 d4rkie joined #mojo
05:08 sh4 joined #mojo
05:08 polettix joined #mojo
05:14 mattastrophe joined #mojo
05:19 nf joined #mojo
05:55 dod joined #mojo
06:00 dod joined #mojo
06:15 d4rkie joined #mojo
06:19 nf joined #mojo
06:38 ivan_ joined #mojo
06:48 kyshtynbai joined #mojo
06:58 eseyman joined #mojo
07:04 trone joined #mojo
07:20 nf joined #mojo
07:24 bjakubski joined #mojo
07:25 trone joined #mojo
07:26 McA joined #mojo
07:31 genio joined #mojo
07:36 marcus jberger: So weird
07:38 odc joined #mojo
07:56 polettix joined #mojo
08:08 AndrewIsh joined #mojo
08:21 nf joined #mojo
08:23 Vandal31341 joined #mojo
08:43 polettix joined #mojo
08:45 fhelmber_ joined #mojo
08:58 dod joined #mojo
09:02 d4rkie joined #mojo
09:22 nf joined #mojo
09:52 depesz joined #mojo
09:52 depesz hi. i might be missing something simple - how can I use select_field helper, but with providing default selected value ?
10:22 nf joined #mojo
10:42 Zoffix joined #mojo
10:46 pink_mist depesz: the documentation shows you how to make an option disabled; the way to provide a default selected value is similar, except you substitute 'disabled' for 'selected'
10:47 pink_mist depesz: https://metacpan.org/pod/Mojolicious::Plugin::TagHelpers#select_field <-- the documentation in question
10:48 depesz yeah, saw that, would very much prefer to be able to specify list of values separately from single default value.
10:48 depesz something like select_field some_name => $values, default => 'abc'
10:50 Zoffix depesz, there's param
10:51 Zoffix depesz, http://mojolicio.us/perldoc/Mojolicious/Plugin/DefaultHelpers#param
10:52 depesz ah, so I could set the param, and then tag will pick it up. makes sense, thanks.
10:52 Zoffix Yeah. I ran into the same issue not long ago :)
10:55 pink_mist oh neat
10:55 pink_mist did not realise that
10:59 d4rkie joined #mojo
11:23 nf joined #mojo
11:47 nf joined #mojo
11:58 ajr_ joined #mojo
12:13 mattastrophe joined #mojo
12:35 polettix joined #mojo
12:43 carneirao joined #mojo
12:43 carneirao_ joined #mojo
12:43 d4rkie joined #mojo
12:44 mattastrophe joined #mojo
12:46 D4RK-PH0ENiX joined #mojo
12:52 misty_g3ar joined #mojo
12:54 neilhwatson joined #mojo
12:56 d4rkie joined #mojo
12:57 neilhwatson joined #mojo
12:57 neilhwatson joined #mojo
12:59 gryphon joined #mojo
13:03 neilhwatson joined #mojo
13:04 OmarOthman joined #mojo
13:08 d4rkie joined #mojo
13:09 neilhwatson joined #mojo
13:13 absolut_todd joined #mojo
13:15 neilhwatson joined #mojo
13:16 polettix joined #mojo
13:17 asarch joined #mojo
13:22 neilhwatson joined #mojo
13:25 AirDisa joined #mojo
13:32 OmarOthman left #mojo
13:33 d4rkie joined #mojo
13:38 d4rkie joined #mojo
13:38 zivester joined #mojo
13:41 tardisx joined #mojo
13:47 polettix joined #mojo
13:47 mattastrophe joined #mojo
13:52 odc does someone has an example of how to use IOLoop->delay inside an "under" sub?
13:53 depesz left #mojo
13:53 Grinnz https://metacpan.org/pod/Mojolicious::Guides::Routing#Under see third example block
13:54 odc Grinnz, oh thanks! i missed this one
13:58 nf joined #mojo
14:06 jb360 joined #mojo
14:08 dod joined #mojo
14:12 absolut_todd joined #mojo
14:13 polettix joined #mojo
14:16 dod joined #mojo
14:19 Ali-G joined #mojo
14:38 zackiv31 joined #mojo
14:58 nf joined #mojo
15:11 lluad joined #mojo
15:13 ajr_ joined #mojo
15:19 ajr_ joined #mojo
15:26 nige joined #mojo
15:31 nige left #mojo
15:33 nige joined #mojo
15:34 nige hi
15:48 ToApolytoXaos joined #mojo
15:52 sh4 joined #mojo
16:00 nf joined #mojo
16:14 jberger nige: o/
16:14 nige Hi
16:15 nige working on a project with a MySQL db - and encountering problems with the 'overnight bug' - using Mojo::mysql
16:15 nige basically it dies every night
16:16 nige have you heard of any probs there with Mojo::mysql?
16:16 lluad Sounds more like a network issue.
16:17 lluad Is it on the same server as the app?
16:17 nige no separate server running in AWS
16:17 nige so the connection handle needs to re-connect
16:17 lluad If it were postgresql I'd suggest turning on keepalive packets to prevent your packet filter / firewall from killing the connection. I'm guessing mysql can do the same thing.
16:17 nige ok - interesting idea
16:18 lluad (As a workaround - obviously Mojo::mysql should reconnect on a failure)
16:18 nige previously I've used DBIx::Connector
16:18 nige yes - it seems it's not reconnecting
16:18 Grinnz_ nige: if you are getting a new handle from $mysql->db then it should reconnect
16:19 Grinnz_ you should not save the $db (if you are)
16:19 nige yes - this could be the prob
16:19 nige the $db is a state variable set up as plugin
16:19 Grinnz_ yeah don't do that, save $mysql
16:20 lluad You'll want to rework that to have mysql as the plugin instead.
16:20 Grinnz_ the mysql object handles connections for you :)
16:20 lluad $db isn't particularly smart. All the pooling goodness is in the $mysql level.
16:20 nige yes - sec - small whack of code coming  ....
16:20 mtths joined #mojo
16:21 nige this is the called during plugin setup:
16:21 nige # helper used by the migrate command
16:21 nige $self->helper('mysql' => sub {
16:21 nige state $mysql = Mojo::mysql->new($self->config->{db_connect_string});
16:21 nige return $mysql;
16:21 nige });
16:22 nige so I thought that would do the trick
16:22 cfedde With Mojolicious::Lite is there a way to render a @@ doc.pod chunk as html?
16:23 Grinnz_ https://metacpan.org/pod/Mojolicious::Plugin::PODRenderer perhaps
16:23 cfedde perfect!
16:23 purl i think perfect is the enemy of good enough.
16:23 lluad That looks like it should work, nige.
16:24 Grinnz_ no idea if it will do embedded chunks, though
16:24 lluad Are you hanging on to the $db you get from it anywhere else?
16:24 cfedde So I guess it is really a question about accessing embedded chunks.
16:24 nige -hmmm
16:25 nige sec - there is a before_route handler defined in the App.pm
16:25 nige it uses an attribute with a db handle
16:25 nige - maybe this is what goes stale
16:25 Grinnz_ cfedde: maybe you could use a combination of https://metacpan.org/pod/Mojo::Loader#data_section and https://metacpan.org/pod/Mojolicious::Plugin::PODRenderer#pod_to_html
16:26 lluad Yeah, could be. Generally safer to just get a new one from Mojo::mysql each time.
16:26 cfedde Grinnz_: probably.  thanks again
16:27 Ptolemarch joined #mojo
16:29 nige thanks for the pointers guys - going to look at refactoring the before_route handler to keep it simpler ;-)
16:32 jberger nige: btw, please don't paste into the channel
16:33 nige sorry - will gist next time
16:33 jberger thanks
16:34 AirDisa joined #mojo
16:49 howitdo joined #mojo
17:00 nf joined #mojo
17:11 polettix joined #mojo
17:27 nige joined #mojo
17:37 Ptolemarch joined #mojo
17:42 dod joined #mojo
18:01 nf joined #mojo
18:27 disputin joined #mojo
18:27 disputin joined #mojo
18:42 amon joined #mojo
19:02 nf joined #mojo
19:14 mattastrophe joined #mojo
19:24 Ptolemarch joined #mojo
19:33 vmbrasseur joined #mojo
20:00 berov joined #mojo
20:03 nf joined #mojo
20:07 punter joined #mojo
20:33 polettix joined #mojo
20:46 vmbrasseur joined #mojo
21:30 disputin joined #mojo
21:31 mattastrophe joined #mojo
21:33 mattastrophe joined #mojo
21:42 disputin joined #mojo
21:50 mattastrophe joined #mojo
21:53 nf joined #mojo
22:23 mattastrophe1 joined #mojo
22:29 mattastrophe joined #mojo
22:34 vmbrasseur joined #mojo
22:35 mattastrophe joined #mojo
22:36 Ptolemarch joined #mojo
22:37 mattastrophe1 joined #mojo
23:08 dabudabu joined #mojo
23:24 icjs joined #mojo

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