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

IRC log for #mojo, 2016-12-27

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

All times shown according to UTC.

Time Nick Message
00:10 howitdo joined #mojo
00:27 Lee joined #mojo
01:06 aborazmeh joined #mojo
01:07 dantti_laptop|2 joined #mojo
01:28 Lee joined #mojo
01:49 sugar joined #mojo
01:53 asarch joined #mojo
02:29 Lee joined #mojo
02:43 Dandre joined #mojo
03:30 Lee joined #mojo
03:51 noganex_ joined #mojo
04:31 Lee joined #mojo
05:04 dboehmer_ joined #mojo
05:09 stryx` joined #mojo
05:32 Lee joined #mojo
05:36 howitdo joined #mojo
06:01 inokenty-w joined #mojo
06:33 Lee joined #mojo
06:54 Vandal joined #mojo
07:34 Lee joined #mojo
07:44 polettix joined #mojo
08:00 dod joined #mojo
08:05 dod joined #mojo
08:35 Lee joined #mojo
08:45 polettix joined #mojo
09:00 mrErikss1n joined #mojo
09:36 Lee joined #mojo
09:55 Lee joined #mojo
10:06 stryx` joined #mojo
10:08 Lee joined #mojo
10:09 howitdo joined #mojo
10:51 parv joined #mojo
11:10 polettix joined #mojo
11:18 tchaves joined #mojo
11:31 sugar joined #mojo
11:51 polettix joined #mojo
12:08 dantti_laptop joined #mojo
12:12 sugar joined #mojo
12:12 polettix joined #mojo
12:26 mishanti1 So, Bose just shipped me a new headphone cable at no cost, for a headset that is a few years outside of warranty after I contacted them saying that I lost one of the audio-channels.
12:27 mishanti1 They also said that if that doesn't work then they will send me a new headset, also at no cost.
12:27 mishanti1 Will I buy from them again? Yep!
13:06 sri nice, i just got some sports earphones from them, which happen to be fantastic
14:11 jabberwok joined #mojo
14:27 gryphon joined #mojo
14:38 Dandre joined #mojo
14:40 jberger mishanti1 cool, I'll keep that in mind for the next headphone I buy
14:40 jberger Nice to hear about a company that cares
14:49 elik joined #mojo
14:53 juikuen joined #mojo
14:57 polettix joined #mojo
15:12 bc547 joined #mojo
15:24 sh14 joined #mojo
15:49 disputin joined #mojo
16:36 orev joined #mojo
16:52 sugar joined #mojo
17:10 howitdo joined #mojo
17:19 lluad joined #mojo
17:28 orev1 joined #mojo
18:05 stryx` joined #mojo
18:09 mmp is there any simple way to not generate html stacktraces?
18:09 mmp im doing most dev from curl and its hard to deal with
18:12 jberger mmp there are a few options
18:12 jberger easiest is to set the MOJO_MODE to something other than development
18:12 jberger http://mojolicious.org/perldoc/Mojolicious/Guides/Tutorial#Mode
18:13 jberger next would be to provide your own exception and not_found templates: http://mojolicious.org/perldoc/Mojolicious/Guides/Rendering#Rendering-exception-and-not_found-pages
18:14 mmp would it make sense to make the default read Accepts and behave accordingly?
18:14 jberger note that you can also use the application's get command to fetch pages rather than using curl, and when you do so you can pass a query selector
18:14 jberger like: ./myapp.pl get /dies '#error'
18:15 jberger re reading Accepts, that would be a big change
18:18 jberger I think the closest thing to that might be to use the ->accepts method to set the format in a hook or a very early "under"
18:19 jberger and then you can provide an error page that does that
18:24 jberger mmp: here is a quick example: https://gist.github.com/jberger/f14196786af26aafa416b2fe3f27b95f
18:25 mmp jberger: thankas
18:26 jberger just know that setting "format" early is going to be a little strange if you try to render other things (like say render_to_string) in another format
18:26 jberger still very doable, just you have to be careful
18:36 dod joined #mojo
19:07 asarch joined #mojo
19:08 dantti_laptop joined #mojo
19:13 tchaves joined #mojo
19:16 howitdo joined #mojo
19:24 PryMar56 joined #mojo
19:49 jberger :(
20:42 PopeF joined #mojo
21:02 jabberwok a curious little condition: In the event of, for example, a file in the template directory being a symlink to a non-existent file, I get numerous log messages like
21:02 jabberwok Use of uninitialized value $mtime in numeric le (<=) at /home/bill/perl5/perlbrew/perls/perl-5.22.0/lib/site_perl/5.22.0/Mojo/Server/Morbo.pm line 25.
21:03 jberger that's morbo watching for file changes
21:03 jabberwok =nod=  and naturally $mtime is undef since the file isn't actually there.
21:04 jabberwok the whole "give a warning when comparing to undef" thing is rather irksome all round, not just in this.
21:06 foristh joined #mojo
21:07 Grinnz Morbo throws out a lot of warnings if it comes across broken symlinks, I have been thinking of putting together a PR for it
21:08 Grinnz Basically just ignore the file if stat() returns undef
21:08 foristh hi. I got following error: "Use of uninitialized value in subroutine entry at /var/www/[CUT]/lib/perl5/Mojolicious/Controller.pm line 91."; from what I can see in the code it's line "my $check = Mojo::Util::hmac_sha1_sum($value, $secret);"
21:08 Grinnz would be the PR
21:08 marty joined #mojo
21:08 foristh what could be the cause of the issue? I have 'secerts' defined
21:09 Grinnz foristh: how are you configuring the secrets?
21:10 Grinnz $value would have to be defined to get that far, so it has to be $secret that's undefined
21:10 Grinnz remember that secrets is an array, and when it does the check there it checks against each secret in the array
21:11 foristh Grinnz: $self->secrets([$self->app->config('default_secret')]);
21:11 rshadow joined #mojo
21:11 foristh there is one secret
21:11 Grinnz you should probably check that $self->app->config('default_secret') returns a defined value first
21:11 foristh I have perl 5.20, mojlicious 7.12 [but for 7.05 I upgraded from I had the same issue
21:32 foristh Grinnz: thanks, it helped
21:33 jabberwok adding a new line 22 in Morbo.pm: »    next unless defined $mtime; « suppresses the error nicely
21:38 Grinnz jabberwok: i would do "unless defined $size and defined $mtime" but i don't think it matters, either both would be defined or both would be undefined
21:39 Grinnz and you can do that right after the stat call on line 20, there's no sense caching values for a broken link
21:41 jabberwok true
22:09 hrupp joined #mojo
22:26 mishanti1 So you can read serial-port data in Excel. Apparently the Dilbert-joke about landing a plane with Excel wasn't that far off.
22:28 preaction oh man, excel is awesome. don't hate!
22:28 preaction you can make an RTD plugin to read just about any kind of real-time data
22:29 orev joined #mojo
22:34 mishanti1 preaction: I'm not hating. I'm more in awe. Just tryin go imagine the absurd amount of technical capacity it would take to keep a product like that working across versions.
22:34 mishanti1 I mean, us mere mortals have issues getting simple web-applications functioning properly.
22:38 marty_ joined #mojo
22:48 gryphon_ joined #mojo
22:52 haarg last time i used office, you could use VBA to do basically anything.  you can call arbitrary win32 APIs.  i assume they have replaced VBA with VB.net or something by now though.
22:54 * sri is really disappointed with civilization 6
22:54 Grinnz i've not been encouraged about what i've heard about civ games since 5
22:54 sri 5 was a much better game
23:07 genio I play freeciv online every now and then
23:09 howitdo joined #mojo
23:11 Grinnz https://github.com/kraih/mojo/pull/1025 for the morbo warnings
23:20 jberger civ 2 foreva
23:38 marty joined #mojo
23:47 jabberwok Grinnz++
23:53 bpmedley_ Congrats on the tweet, irr, the birthday.. :)

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