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

IRC log for #mojo, 2017-04-20

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

All times shown according to UTC.

Time Nick Message
00:13 genio joined #mojo
00:57 Lee joined #mojo
01:37 jberger vicash cool, glad you found it
02:08 noganex_ joined #mojo
03:06 jmac joined #mojo
03:07 jmac Hello! #Plack sent me. I already have the sticker, now I'm gonna learn the framework. let's do this
03:07 tyldis_ joined #mojo
04:04 dboehmer_ joined #mojo
04:12 kiwiroy joined #mojo
04:46 kiwiroy joined #mojo
05:09 kiwiroy joined #mojo
06:03 inokenty-w joined #mojo
06:32 Vandal joined #mojo
06:49 dod joined #mojo
06:51 dod joined #mojo
06:53 AndrewIsh joined #mojo
07:30 kiwiroy joined #mojo
07:42 sri o/
07:44 kwa \o
07:44 sri anyone else has problems with that? https://github.com/kraih/mojo-pg/issues/41
07:50 kwa It's a pg error, so I wonder what version of postgres that's running on. 'SET search_path TO foo' on 9.5 will set the path to 'foo' regardless of if it exists or not.
07:51 prg joined #mojo
07:52 sri ah, is that new in 9.5?
07:57 kwa I couldn't tell you. It works as expected on 9.4 too, but I don't have any older installs to test against.
07:59 VVelox joined #mojo
08:01 sri thanks
08:04 stephan48 https://paste.stejau.de/565d3a44133e - this is one of my old hosts with postgres 9.1 - there I can reproduce this problem
08:06 stephan48 currently I can't find any PG 9.2 or 9.3 throu
08:08 sri think i've actually used the pattern at work with postgres 9.3
08:12 kwa Ah nice. 'SHOW server_version;' and 'SHOW server_version_num;'
08:42 rshadow joined #mojo
08:49 rshadow joined #mojo
08:52 trone joined #mojo
08:53 rshadow joined #mojo
09:00 pink_mist https://hackaday.com/2017/04/19/you-think-you-cant-be-phished/ <-- that's actually really scary
09:08 stephan48 yes it is
09:10 stephan48 its quite a dangerous problem. especially considering the varaity of unicode characters out there.
09:11 stephan48 you can't properly make sure(without enormous effort) that you control all domains in all possible unicode wiritings to prevent such a thing.
09:11 sri which reminds me of an interesting problem i stumbled over yesterday
09:11 stephan48 the danger here is that the normal user can't really disdingouish it. thoose who use password managers are a tad safer but not by much
09:12 stephan48 as thoose would probably complain and add the address manually or just c&p the password
09:12 sri perl -Mojo -MJSON::XS=encode_json -E 'encode_json ["\x{164b21}"]'
09:12 sri JSON::XS actually does on that
09:12 sri s/does/dies/
09:13 sri "out of range codepoint (0x164b21) encountered, unrepresentable in JSON"
09:13 stephan48 thanks for copying the output
09:15 sri Cpanel::JSON::XS dies with "malformed or illegal unicode character in string [����], cannot convert to JSON"
09:17 sri what's interesting is that i can't actually seem to find rules for that in the JSON RFC
09:19 sri i guess this is the closest to a "rule" there is https://tools.ietf.org/html/rfc7159#section-8.2
09:22 coolo joined #mojo
09:25 nicomen stephan48: there has been countermeasures for many mixed-script issues, but using one script alone, and the homographs that overlap with a different script is more cumbersome to fix :-/
09:26 haarg and so far mozilla is refusing to change anything
09:27 stephan48 yes - I myself would opt for always showing the punycode representation if such a domain is visited next to the "resolved" name. but I am a technical person. not sure if thats a solution working for everyone
09:28 nicomen Vivaldi seems to show IDN by default
11:24 tchaves joined #mojo
11:26 dotan_convos joined #mojo
11:39 stryx` joined #mojo
12:17 dod joined #mojo
12:38 stryx` joined #mojo
12:56 vicash haarg: in firefox about:config set the  "network.IDN_show_punycode" to true and it will show.
12:57 haarg yes, but that isn't a real fix
12:57 haarg and still leaves most users exposed
13:00 dotan_convos joined #mojo
13:07 rshadow joined #mojo
13:17 gizmomathboy joined #mojo
13:26 dantti_laptop joined #mojo
13:29 salva joined #mojo
13:38 gryphon joined #mojo
13:39 gryphon left #mojo
13:50 mishanti1 joined #mojo
13:51 jmac_ joined #mojo
13:51 mishanti1 joined #mojo
14:09 gregf_ joined #mojo
14:39 Janos joined #mojo
15:13 PryMar56 joined #mojo
15:20 kiwiroy joined #mojo
15:59 mishanti1 joined #mojo
15:59 dod joined #mojo
15:59 tchaves joined #mojo
15:59 coolo joined #mojo
15:59 AndrewIsh joined #mojo
15:59 Lee joined #mojo
15:59 Peppard joined #mojo
15:59 batman joined #mojo
15:59 jacobydave joined #mojo
15:59 umask001 joined #mojo
15:59 HtbaaPi joined #mojo
15:59 diegok joined #mojo
15:59 cfedde joined #mojo
15:59 omega joined #mojo
15:59 ssm joined #mojo
15:59 kamyl joined #mojo
15:59 ribasushi joined #mojo
15:59 elik joined #mojo
15:59 mattp joined #mojo
15:59 dabudabu joined #mojo
15:59 eseyman joined #mojo
15:59 cosimo joined #mojo
15:59 xdg joined #mojo
15:59 alilles joined #mojo
15:59 garu joined #mojo
15:59 BinGOs joined #mojo
15:59 TBSliver joined #mojo
16:01 Vandal joined #mojo
16:01 perlpilot joined #mojo
16:01 bc547 joined #mojo
16:01 jnbek joined #mojo
16:01 simcop2387 joined #mojo
16:01 meredith joined #mojo
16:01 arcanez joined #mojo
16:01 firnsy joined #mojo
16:01 tinita joined #mojo
16:01 caeles joined #mojo
16:01 tempire joined #mojo
16:01 saki joined #mojo
16:01 lari joined #mojo
16:01 charsbar joined #mojo
16:01 vytas joined #mojo
16:01 vinnix joined #mojo
16:01 Kundun joined #mojo
16:02 Janos joined #mojo
16:02 salva joined #mojo
16:02 bwf joined #mojo
16:02 purl joined #mojo
16:02 Gedge joined #mojo
16:02 litwol joined #mojo
16:02 kaare joined #mojo
16:02 wouter joined #mojo
16:02 Bender joined #mojo
16:02 odc joined #mojo
16:02 jabberwok joined #mojo
16:02 inokenty joined #mojo
16:02 plicease joined #mojo
16:02 webart joined #mojo
16:02 tardisx joined #mojo
16:02 mtj joined #mojo
16:02 cng joined #mojo
16:02 mtths joined #mojo
16:02 augensalat joined #mojo
16:02 dustinm joined #mojo
16:02 crab joined #mojo
16:02 ccakes joined #mojo
16:02 tyldis joined #mojo
16:02 Caldrin joined #mojo
16:02 suede_ joined #mojo
16:02 ralesk_ joined #mojo
16:02 phillipadsmith joined #mojo
16:02 sri joined #mojo
16:02 mrallen1 joined #mojo
16:02 Phil21 joined #mojo
16:02 michael joined #mojo
16:02 Zx3 joined #mojo
16:02 jnap joined #mojo
16:02 bjakubski joined #mojo
16:02 Grinnz joined #mojo
16:02 preaction joined #mojo
16:02 mat joined #mojo
16:02 Obbi joined #mojo
16:02 mpapec joined #mojo
16:02 Eke joined #mojo
16:02 jesk joined #mojo
16:06 stryx` joined #mojo
16:06 gregf_ joined #mojo
16:06 rshadow joined #mojo
16:06 trone joined #mojo
16:06 dboehmer_ joined #mojo
16:06 noganex_ joined #mojo
16:06 genio joined #mojo
16:06 castaway joined #mojo
16:06 ashimema joined #mojo
16:06 romel joined #mojo
16:06 new_student joined #mojo
16:06 sawtooth joined #mojo
16:06 jlaffaye joined #mojo
16:06 nicomen joined #mojo
16:06 esh joined #mojo
16:06 vicash joined #mojo
16:06 pink_mist joined #mojo
16:06 mbudde joined #mojo
16:06 ranguard joined #mojo
16:06 cstamas joined #mojo
16:06 tianon joined #mojo
16:06 iamb joined #mojo
16:06 matt_ joined #mojo
16:06 Jonis joined #mojo
16:06 haarg joined #mojo
16:06 nic joined #mojo
16:06 oalders joined #mojo
16:06 abracadaniel joined #mojo
16:30 disputin joined #mojo
16:45 dod joined #mojo
17:01 sh14 joined #mojo
17:18 gryphon joined #mojo
17:18 gryphon left #mojo
17:51 PryMar56 joined #mojo
17:51 rshadow joined #mojo
18:17 sh14 joined #mojo
18:58 zivester joined #mojo
20:05 mcsnolte joined #mojo
20:43 dikim joined #mojo
20:58 maschine joined #mojo
21:12 itaipu joined #mojo
22:15 jmac joined #mojo
22:21 itaipu joined #mojo
22:29 zivester joined #mojo
22:34 disputin joined #mojo
22:42 stryx` joined #mojo
22:44 Phil21 so I have one that will annoy Joel - problem: we have a zillion single-file mojo lite apps in a directory, all with config files.  I want to move those config files away from the binaries and use the standard ~/bin ~/etc layouts
22:44 Phil21 we're also using app monikers for them, which I'd like to continue using
22:44 Phil21 so statically writing the config file path as ~/etc/app.conf seems silly
22:44 Phil21 since now we get to change the app name two places if we ever do
22:45 Phil21 jberger says use MOJO_CONFIG, but I really hate using env variables for launching production stuff (I've found various things like to break environments and it's usually the last thing anyone thinks to debug)
22:45 Phil21 e.g. I want to launch out of cron, systemd, init, my shell, whatever, without worrying about specifying a config env variable
22:45 Phil21 is there a clever way to do this? or does jberger win
22:46 Phil21 don't let jberger win.  Babies cry when it happens.
22:46 jberger :o
22:47 maschine heh.  I've been strugling getting Minion to run from init - I finally got it working.  Interestingly, it says the service failed to load, but it's definitely running.. *shrug*
22:49 Phil21 maschine: you can blame jberger :)
22:49 jberger why all the love Phil21 ?
22:49 Phil21 hehe
22:49 Phil21 I know this topic annoys you, but I actually do think there has to be a better way
22:50 jberger but your reasoning is "because I don't like environment variables"
22:50 Phil21 I've provided plenty of reasoning of why I don't like them though
22:50 jberger "because I don't think to debug them"?
22:51 Phil21 sure, if we're reducing arguments
22:51 sri don't look into the hypnotoad and morbo scripts... lol
22:51 Phil21 I think you greatly underestimate the giant pita it is to do that though
22:51 Phil21 e.g. systemd silently sanitizing your env without telling you
22:51 Phil21 ran into that one recently actually :)
22:52 sri (*hint* they throw around env vars like there's no tomorrow)
22:52 jberger but not what you specified in your systemd file
22:52 Phil21 sri: oh I know :)
22:53 jberger sri: we've had batman out here once, you should come over sometime, we'll show you around
22:53 Phil21 yeah, definitely
22:53 purl somebody said yeah, definitely was :)
22:53 Phil21 you can come argue about environment variables with us, it's a grand time
22:53 jberger purl: go home, you're drunk
22:53 purl jberger: sorry...
22:53 jberger oh that so needs a factoid
22:54 Phil21 I mean, I'll use it. but I will be very annoyed every time I try to quick screw around with these scripts and I forgot to set it :)
22:54 sri i'm dying to try deep dish pizza
22:54 Phil21 oh man, definitely come over
22:54 Phil21 I have a free place for you to stay if you don't mind a loft bed
22:56 Phil21 hmm, batman's solution almost works here
22:56 Phil21 perl -Mojo -lE'plugin config => {file => app->home->child(qw(etc/foo.conf))}; say app->config->{foo}'
22:56 Phil21 is there a way instead of hardcoding 'etc/foo.conf' you could use the app moniker instead?
22:57 Phil21 yeah, this should work
22:57 Phil21 good work team
22:58 sri :D
22:59 jberger sri: resist the urge to try deep dish outside of chicago, even if you find it
22:59 sri yea
22:59 Phil21 yeah, definitely
22:59 purl yeah, definitely is, like, :)
22:59 Phil21 ok, I won't say that again. heh.
22:59 Phil21 and say no if it's not Lou's :)
22:59 Phil21 even when in Chicago
23:00 Phil21 and if someone tries to feed you Giodano's you are legally allowed to shoot them while within city limits
23:00 Phil21 Giordanos even
23:01 jberger Phil21: Uno's downtown is my favorite, though Lou's is probably the best you can get outside of River North
23:02 Phil21 yeah, I like Uno's a lot too

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