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

IRC log for #mojo, 2015-05-20

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

All times shown according to UTC.

Time Nick Message
00:02 noganex_ joined #mojo
00:44 Zoffix joined #mojo
00:47 mattastrophe joined #mojo
01:03 AirDisa joined #mojo
01:03 * jberger needs beer
01:05 Grinnz https://www.youtube.com/watch?v=zIVypBaa2QA#t=5m57s
01:12 jberger Grinnz++
01:34 hshong joined #mojo
01:52 klapperl_ joined #mojo
02:55 noganex joined #mojo
02:56 AirDisa joined #mojo
03:13 zackiv31 joined #mojo
03:18 basic6_ joined #mojo
03:40 howitdo joined #mojo
03:53 misty_g3ar joined #mojo
04:44 AirDisa joined #mojo
04:45 punter joined #mojo
04:47 inokenty-w joined #mojo
04:54 asarch joined #mojo
05:04 esh joined #mojo
05:08 jzawodn joined #mojo
05:27 kaare joined #mojo
05:35 Grinnz joined #mojo
05:45 AirDisa joined #mojo
06:05 TheGrinnz joined #mojo
06:30 fhelmber_ joined #mojo
06:51 dotandimet joined #mojo
06:55 Grinnz joined #mojo
07:01 AndrewIsh joined #mojo
07:03 dod joined #mojo
07:09 dod joined #mojo
07:15 eseyman joined #mojo
07:34 AirDisa joined #mojo
07:35 misty_g3ar joined #mojo
07:38 trone joined #mojo
07:55 mattastrophe joined #mojo
08:05 dotandimet joined #mojo
08:25 _dave_ joined #mojo
08:35 Vandal31341 joined #mojo
09:00 berov joined #mojo
09:10 esh joined #mojo
09:20 fhelmber_ joined #mojo
09:23 AirDisa joined #mojo
09:29 esh joined #mojo
10:01 Snelius joined #mojo
10:07 esh joined #mojo
10:10 d4rkie joined #mojo
10:23 AirDisa joined #mojo
10:33 dod joined #mojo
10:35 esh joined #mojo
10:42 vmbrasseur joined #mojo
10:59 esh joined #mojo
11:18 esh joined #mojo
11:19 neilhwatson joined #mojo
11:49 nf joined #mojo
12:12 AirDisa joined #mojo
12:18 amon joined #mojo
12:21 esh joined #mojo
12:27 AirDisa_ joined #mojo
12:43 esh joined #mojo
12:58 asarch joined #mojo
13:02 nf joined #mojo
13:04 esh joined #mojo
13:16 nf joined #mojo
13:19 nf_ joined #mojo
13:30 zackiv31 joined #mojo
13:42 Onigiri joined #mojo
14:03 marmez left #mojo
14:07 gryphon joined #mojo
14:08 esh joined #mojo
14:11 esh joined #mojo
14:14 punter joined #mojo
14:15 dotan joined #mojo
14:22 d4rkie joined #mojo
14:30 nicomen does anyone have a quick oneliner for running an ssl terminator infront of a mojo app for development?
14:32 depesz left #mojo
14:42 neilhwat1on joined #mojo
14:45 d4rkie joined #mojo
14:50 zackiv31 joined #mojo
14:58 nf joined #mojo
14:58 jberger hmmmm, and interesting thought
14:59 jberger I wonder if I could bump the performance of all Perl TFB submissions by compiling the interpreter without taint support
14:59 jberger I doubt if any of the modern frameworks use or even work with it
15:01 ribasushi jberger: please, I always smoke my code with prove -lrswTj10
15:01 jberger ribasushi: mind unpacking that arg list?
15:01 jberger l and r I know
15:01 jberger j10 I know
15:02 mst T is taint, s is strict, w is warnings, lrswTj10 means riba is trolling you
15:02 jberger I was about to ask :-)
15:02 jberger mst: does catalyst work with Taint enabled?
15:03 mst jberger: I believe my answer to that question has always been "I neither know nor care"
15:03 jberger indeed
15:04 Grinnz_ lol
15:05 ribasushi so "any modern frameworks working" is plain wrong ;)
15:05 ribasushi -Ilib, recursive, shuffle the tests, use perl -w, use perl -T, 10 threads
15:05 ribasushi (it's a muscle-memorized thing at this point)
15:06 jberger how does prove enable strict globally? I didn't think there was a perl -s switch, right?
15:07 mst jberger: he just explained 's' is shuffle
15:07 jberger oh, nm shuffle
15:07 jberger just got there
15:07 * ribasushi is laggy sorry
15:08 ribasushi also not trolling - I iz serious: https://github.com/dbsrgits/dbix-class/blob/current/blead/maint/travis-ci_scripts/40_script.bash#L22-L27
15:08 * jberger envisions ribasushi actually being laggy, not his client
15:08 btyler jberger: is there a perl -V for the TFB perl somewhere?
15:09 jberger its built during the run
15:09 btyler I think multiplicity is also typically enabled on various distros, and if you're not embedding perl that's another free ~3-7%
15:09 purl okay, btyler.
15:09 Grinnz_ purl: stop learning dammit
15:09 purl Grinnz_: huh?
15:09 btyler wat
15:09 jberger https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/toolset/setup/linux/languages/perl.sh
15:10 jberger purl multiplicity?
15:10 purl i guess multiplicity is required since you have one persistent MacPerl process or typically enabled on various distros, and if you're not embedding perl that's another free ~3-7%
15:10 ribasushi that's easy - keep the beer coming
15:10 btyler lol
15:12 mst btyler: I pretty much always compile my apps perls without thread or multi
15:14 ribasushi jberger: but anyway - compiling without -T (or without threads) would be cheating, as TBF should represent what you can get from a typical distro
15:14 ribasushi otoh you may suspend your moral compass and do it anyway ;)
15:16 btyler mst: I only know because I asked someone at $work about getting multi into one of our perls and found out that it incurs a detectable penalty
15:16 btyler so that brought an end to my insane client-side streaming-join framework for perl 5 written in perl6 using a pool of Inline::Perl5 workers
15:16 Grinnz_ lol
15:17 mst btyler: that's ... a shame, just on the basis that that sounds like fun :)
15:18 btyler well, also the hackathon ended
15:18 sh4 joined #mojo
15:18 btyler but yes, it was quite fun :)
15:26 howitdo joined #mojo
15:31 mattastrophe joined #mojo
15:40 bwf joined #mojo
15:45 mattastrophe joined #mojo
15:53 AirDisa joined #mojo
16:15 Oleg joined #mojo
16:27 d4rkie joined #mojo
16:31 marty For those of you who use Atom editor.  Are you having any issues with proper highlighting in Mojolicious templates?
16:32 marty My template highlighting seems to have gone wacko
16:47 ToApolytoXaos joined #mojo
16:47 noganex joined #mojo
16:54 d4rkie joined #mojo
16:58 mattastrophe joined #mojo
17:04 mst sri: maybe relevant to Minion - https://brandur.org/postgres-queues
17:15 jberger TIL: if you have a compile-time warning in a controller action, the app will start and actions defined before the bad one will work, after one 500 page is rendered
17:15 jberger compile-time error I mean
17:15 jberger like a strict violation
17:16 jberger also, and COMPLETELY UNRELATED: http://devopsreactions.tumblr.com/post/114659223515/when-your-boss-tries-to-code
17:28 Grinnz lol
17:35 dotandimet joined #mojo
17:54 dotandimet joined #mojo
17:55 trone joined #mojo
17:56 ajr_ joined #mojo
18:15 marty Atom!  Why you no recognize my templates - arrrg
18:16 dotandimet joined #mojo
18:24 dotandimet1 joined #mojo
18:30 sri mst: looks interesting
18:32 * sri can't wait for postgres 9.5
18:35 sri SKIP LOCKED will change everything again
18:35 sri (i hope)
18:36 sri upsert, skip locked, sharding... so much cool new stuff
18:38 genio \o/ UPSERT
18:39 genio It's not the long standard syntax of "merge into" though, is it?  that gets really old on tables with lots of columns
18:44 lluad Nah, insert ... on conflict update, I think.
18:47 sri http://www.depesz.com/2015/05/10/waiting-for-9-5-add-support-for-insert-on-conflict-do-nothingupdate/
19:04 AirDisa joined #mojo
19:07 dotandimet joined #mojo
19:10 fhelmber_ joined #mojo
19:10 marty joined #mojo
19:19 trone_ joined #mojo
19:20 mattastrophe joined #mojo
19:32 disputin joined #mojo
19:38 kyshtynbai guys, which property of which object returns ip address of client who sent a request?
19:39 Grinnz_ https://metacpan.org/pod/Mojo::Transaction#remote_address
19:41 mattastrophe joined #mojo
19:52 kyshtynbai Thanks!
20:01 firnsy joined #mojo
20:05 marty A note for any Atom users out there.   The latest version - 2.0.0 - breaks Mojolicious template highlighting.   It only seems to affect %  not <%.
20:06 marcus https://brandur.org/postgres-queues
20:07 marcus oh, mst already linked it. sorry
20:07 sri marty: patches welcome
20:07 purl patches welcome is always true or even for metacpan.org or swahili for "Put up or shut up."
20:08 Grinnz_ lol
20:08 marty oppps.  I mean version 0.200.0
20:09 Grinnz_ 0.200? that's not enough for a 1.0? :P
20:11 marty I've been working with it all day, sri.  I have not been able to fix it.  ;-(  I can only fix the issue by disabling text.html.basic.  I think there may be a pattern in there that is gobbling up everything.
20:12 sri might be worth cehcking other template syntaxes then
20:12 marty reverting to version 0.191.0 fixes the issue.  But atom has not way to disable auto updates.  :(
20:13 sri erb should have the same problem
20:14 marty I looked at a few other syntax examples and read the docs - could not come up with anything.
20:14 sri marcus: btw. i think the bottom line is that it might be a good idea to put your minion tables into a separate database from your other stuff
20:15 sri otherwise long lived transactions (if they happen in the same database) will always mess with stuff
20:18 sri of course... you should always try to avoid long lived transactions
20:19 sri marty: too bad, don't think i'll have time to look into it in the next few weeks
20:21 marty sri; no problem.  I'll keep poking at it to see if I can find anything.   Who knows, maybe it's just my issue since I have not heard anything else about it.
20:22 dotandimet joined #mojo
20:27 human39_ joined #mojo
20:50 dotandimet joined #mojo
21:23 disputin joined #mojo
21:24 vytas joined #mojo
21:24 jb360 joined #mojo
21:56 trone joined #mojo
21:58 mattastrophe joined #mojo
22:01 ajr_ joined #mojo
22:03 vytas joined #mojo
22:17 mattastrophe joined #mojo
22:22 lluad Is there a normal way to keep a websocket alive (e.g. by having the server send a ping frame every so often)?
22:23 Grinnz_ lluad: yeah that's the usual way, either the server or client
22:24 Grinnz_ and make the inactivity_timeout about double that duration
22:24 punter joined #mojo
22:24 lluad Yeah. I'm wondering if there's something built-in I should be using, or whether I need to setup a timer and send ping frames by hand.
22:25 Grinnz_ nothing built in. it can't account for how you might parse messages
22:25 lluad Alright. Should be simple enough. Thanks!
22:40 mattastrophe joined #mojo
22:59 AirDisa_ joined #mojo
23:01 richardino joined #mojo
23:03 mattastrophe joined #mojo
23:05 richardino hi
23:05 purl hello, richardino.
23:05 richardino i have problem
23:05 richardino url requests below:
23:05 richardino http://localhost/go/filename.pdf
23:05 richardino But the $self->param does not catch .pdf part.
23:05 richardino get '/go/:query' => sub {
23:05 richardino my $self = shift;
23:05 richardino it prints only first part of file name untill dot
23:06 cfedde use a pastebot to show us a small working example.
23:07 richardino pastebot?
23:07 purl it has been said that pastebot is http://github.com/rcaputo/bot-pastebot or (: nopaste) or (: shadowpaste)
23:08 Grinnz_ paste site, like paste.scsys.co.uk/mojo
23:09 Grinnz_ purl: paste?
23:09 purl somebody said paste was http://paste.scsys.co.uk/
23:09 Grinnz_ that works
23:09 richardino ok got it, pasting
23:10 shadowpaste Someone at 217.168.150.38 pasted "getting param from url" (11 lines) at http://paste.scsys.co.uk/480946
23:11 lluad richardino: http://mojolicio.us/perldoc/Mojolicious/Guides/FAQ#Where-did-my-file-extension-go
23:12 cfedde you can get the suffix if you change the : to a #
23:13 shadowpaste "cfedde" at 217.168.150.38 pasted "use of a #" (10 lines) at http://paste.scsys.co.uk/480947
23:31 ivan_ joined #mojo
23:33 polettix joined #mojo
23:49 hshong joined #mojo

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