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

IRC log for #mojo, 2015-12-16

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

All times shown according to UTC.

Time Nick Message
00:26 batman sri: I'm still maintainer of Mojo::mysql.
00:27 batman But I'm also busy as a bee (and not using it)
00:27 * batman gets breakfast
00:29 sri batman: shut up and enjoy your vacation!
00:44 jberger batman: why are you having breakfast at dinner time :p
00:46 preaction everyone loves brinner!
00:46 voldemortensen joined #mojo
00:52 batman Oh. Wait. I am using it @work. Just forgot that :)
00:52 batman But I got a really old DBD::mysql version, so I thought the weirdness was because of that...
00:53 batman (Transactions doesn't work @work)
00:53 batman sri: ok, ok!
00:53 batman :)
00:53 batman jberger: I went back in time!
00:54 * batman goes to cooking class
01:15 nnutter joined #mojo
01:22 asarch joined #mojo
01:34 nnutter joined #mojo
01:48 jberger batman: I thought it was forward
02:14 sri every now and then someone says in a github issue that they'd like to work on it, but then just vanish
02:15 * sri wonders what's up with that
02:34 Zoffix joined #mojo
02:50 kaare joined #mojo
02:59 sri guess it's hard to get involved if you don't want to use irc
03:05 jberger But mibbit
03:06 jberger In #pdl the primary maintainer reads the irclog and hops on via mibbit when something needs discussing
03:07 jberger Not the best arrangement but it suffices
03:07 sri wonder if we should use mibbit links in the docs
03:08 jberger The counterpoint to that is more derpers who don't want to read the doc
03:09 good_news_everyon joined #mojo
03:09 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/v0Kou
03:09 good_news_everyon mojo/master df53aa7 Sebastian Riedel: update prettify.js to version 8-Dec-2015
03:09 good_news_everyon left #mojo
03:10 jberger Maybe a halfway house
03:11 jberger Link to mibbit but not a one click link to the channel?
03:12 jberger Btw I don't think I'm going to code tonight, I ran myself down last week and as a result I'm sick today
03:12 jberger :(
03:12 sri :(
03:12 sri watch childhood's end then, it's great
03:13 jberger I was hoping to catch my branch up to the backport
03:13 jberger Syfy? Is it streaming somewhere?
03:13 genio The Expanse started as well
03:13 genio The books were great, I'm holding off on a review of the series for now
03:14 sri the expanse seems to get better and better with every episode so far
03:14 jberger I also need to watch the show you were all watching last season
03:14 genio mr robot?
03:14 sri i bet you've not even watched jessica jones yet :o
03:15 genio slacker!
03:15 jberger Nope,  nor daredevil
03:15 sri :O
03:15 jberger I'm a bad geek
03:15 jberger Where do you all get the time?
03:16 sri i'm a robot
03:16 jberger That's true
03:16 genio 🤖
03:19 jberger I wish I were sometimes :p
03:22 sri actually, i've been running a lot on a treadmill this year, and started to binge watch seasons of stuff i like while running ;p
03:30 noganex joined #mojo
03:32 jberger That's a good thought
03:32 jberger Wait robots don't need a treadmill!
03:34 sri http://www.gifbin.com/bin/022010/1266318479_big_dog_slipping.gif
03:34 * jberger stands corrected
03:35 jberger That's pretty spectacular reaction
03:36 sri yea, google bought the lab that makes those a few months back i think
03:37 jberger Have they shut it down yet ;p
03:38 sri this seems to be the last video they've released, 10 months ago :o https://www.youtube.com/watch?v=M8YjvHYbZ9w
03:41 vanHoesel joined #mojo
03:45 genio I can't help but feeling that all of those mean people kicking that poor robot are going to rue the day that they have done so before long. :)
03:55 sri http://0.media.collegehumor.cvcdn.com/19/36/2afac19a88b1e246381c259998a4a6f3.gif
03:55 sri that's what everybody watching that video is thinking :)
04:04 hernan604 joined #mojo
04:06 nnutter joined #mojo
04:09 genio Starting childhood's end now
04:18 nnutter joined #mojo
04:42 nnutter joined #mojo
04:42 melo joined #mojo
05:13 inokenty-w joined #mojo
05:25 zivester joined #mojo
05:55 hgichon joined #mojo
05:57 voldemortensen joined #mojo
05:59 hgichon hi~ i have fork problem in mozo. When stopping mozo, a daemon which started in mozo, port changed to mozo port!!
06:01 hgichon mozo daemon had port 3000. when mozo killed, a daemon port is changed to 3000. - -;;
06:02 hgichon the damon is network service (smbd, nmbd ... every thing)
06:03 hgichon left #mojo
06:04 hgichon joined #mojo
06:06 hgichon forking method is system(), IPC::Cmd::run_forked,  PC::exec ...
06:14 hgichon When I test with HTTP::Daemon, every thing ok!
06:38 hgichon here my sample test code.
06:38 hgichon #!/usr/bin/env perl
06:38 hgichon use Mojolicious::Lite;
06:38 hgichon get '/' => sub {
06:38 hgichon my $c = shift;
06:38 hgichon my $result = system( '/etc/init.d/smb', 'start' );
06:38 hgichon $c->render(text => 'Hello World! res='.$result);
06:38 hgichon };
06:38 hgichon app->start;
06:38 hgichon [root@vnode1 test]# netstat -nap | grep 8000
06:38 hgichon tcp        0      0 0.0.0.0:8000                0.0.0.0:*                   LISTEN      15707/smbd
06:39 sri hgichon: please don't paste into the channel, it's very rude
06:40 hgichon oh yes.
07:10 mtths joined #mojo
08:05 AndrewIsh joined #mojo
08:09 hgichon I found same problem, http://www.perlmonks.org/?node_id=1013743
08:11 Vandal joined #mojo
08:15 eseyman joined #mojo
08:20 osfabibisi joined #mojo
08:29 trone joined #mojo
08:49 Lee joined #mojo
09:06 CandyAngel Okay, looking at the code for Mojo::IOLoop->client and from that, it looks like Mojo::IOLoop::Client is not important beyond setting up the Mojo::IOLoop::Stream.. is that right?
09:21 jontaylor joined #mojo
09:27 melo joined #mojo
09:45 sri that's an important task
09:45 sri but no, it does not set up a stream, just a handle
09:46 CandyAngel Oh yeah, sorry, it's IOLoop->client that sets up the stream, for the handle IOLoop::Client makes
09:54 dvinciguerra joined #mojo
10:05 Lee_ joined #mojo
10:37 bpmedley_ joined #mojo
10:46 sue joined #mojo
10:56 Averna joined #mojo
11:05 CandyAngel Hm.. is there established way of dealing with constants?
11:07 CandyAngel or should I be doing something like.. $telnet->will('terminal_type'), and translating that to the constant?
11:12 Averna joined #mojo
11:17 Averna joined #mojo
11:18 meshl joined #mojo
12:03 HtbaaPi joined #mojo
12:10 neilhwatson joined #mojo
12:11 kaare joined #mojo
12:14 trone_ joined #mojo
12:32 sue joined #mojo
13:02 hernan605 joined #mojo
13:14 zivester joined #mojo
14:35 * sri didn't realize CGI.pm was over 3000 lines of code :o
14:37 sri had to check after seeing http://blog.schmorp.de/2015-12-15-tidbits-cgipm-a-data-point.html
14:38 ajr_ joined #mojo
15:03 CandyAngel I hope it's not just me and RFC1143 is confusingly or incorrectly written >.<
15:04 CandyAngel It says himq is a bit of EMPTY/OPPOSITE, but sets it to NONE as some point >.<
15:04 CandyAngel at some*
15:10 genio because cpan CGI is so difficult?
15:11 genio ugh. shmorp--
15:12 jberger CGI.pm is a perfect case example
15:12 jberger Removing it is "breaking" things
15:13 jberger And yet it was not maintained for years
15:13 jberger And it certainly isn't recommended
15:14 jberger And with the "no cpan" culture in done companies that makes CGI the only option
15:14 jberger *some
15:14 jberger Removing it to cpan makes those companies make a choice
15:14 jberger I don't think that's wrong
15:16 genio I think it's completely dishonest of shmorp to write stuff like that
15:17 jberger Of course it is
15:17 jberger Take one example of clearly ... misunderstood ... deployment
15:18 jberger And call that an example of p5p not caring
15:19 preaction and then try to say that's not what he's saying by saying "oh, this is just one data point". he's the Perl equivalent of Glenn Beck
15:20 genio I don't think he's someone I could sit and have a beer with.
15:26 genio but yea, CGI.pm is a huge monster.  Lee++ for jumping in and maintaining it.
15:36 asarch joined #mojo
15:51 voldemortensen joined #mojo
15:58 CandyAngel Yes, this RFC is definitely wrong somewhere
15:58 CandyAngel I'm guessing EMPTY and NONE are the same
16:07 sri if an rfc is wrong there's errata attached
16:12 zivester joined #mojo
16:15 CandyAngel Type RFC - Experimental (February 1990; No errata)
16:16 CandyAngel It says you can make it into 2 state machines with 6 states (NO, WANTNO_EMPTY, WANTNO_OPPOSITE, WANTYES_EMPTY, WANTYES_OPPOSITE, YES)... but that means that the reference to setting himq to NONE is wrong, because they would mean 8 states per machine
16:16 CandyAngel because that*
16:20 dod joined #mojo
16:30 sri a) your rfc has already been obsoleted, b) you should report an errata and get it sorted out, c) your interpretation of the rfc is wrong
16:31 sh4 joined #mojo
16:34 sri anyway, telnet is a dead protocol, i doubt you'll be able to find much qualified help here
16:35 gryphon joined #mojo
16:36 CandyAngel Mhm, I'll figure something out :)
16:37 CandyAngel I've read a message that says there is a flaw in the way this RFC handles things anyway, just wanted a starting point
16:46 sri childhood's end is getting worse :/
16:47 sri at least the expanse is getting better and better
16:49 CandyAngel What's that?
16:49 sri new syfy shows
16:49 CandyAngel Ah I see
17:03 jberger sri: don't start me on a thing only to tell me it's getting worse!
17:36 PryMar56 joined #mojo
17:37 genio sri: I haven't watched the second episode yet, but with the way the first childhood's end episode ended, I can't imagine it going in good places
17:37 miller joined #mojo
17:38 genio The first episode was pretty good, but the ending left me thinking it's only going to go badly from here on out
17:39 genio I haven't yet watched the second episode of the Expanse either
17:40 miller How does one determine the currently active route by inspecting the controller?
17:40 sue joined #mojo
17:41 miller figured it out:  $c->req->url
17:42 human39 joined #mojo
17:42 genio miller: https://metacpan.org/pod/Mojolicious::Controller#match might be more what you're looking for
17:51 dvinciguerra joined #mojo
18:09 berov miller: https://metacpan.org/pod/Mojolicious::Plugin::DefaultHelpers#current_route
18:09 miller ty both
18:09 berov you can use it from your controller as $c->current_route
18:47 disputin joined #mojo
19:04 CandyAngel Got to love it when spam message templates don't get parsed correctly: Our records show that your account has a debt of $553.{rand(10,99)}}. Previous attempts of collecting this sum have failed.
19:07 Grinnz heheh
19:10 genio sri: this is kind of annoying.  in episode 1, Ricky and his hot fiance were roughly in their late 20s.  Yet, 20 years later they're trying to get pregnant and don't look any older?
19:12 PryMar56 joined #mojo
19:36 sue joined #mojo
19:44 jberger genio: i didn't care so much about the look, but yes they would have to have been much younger to still be trying
19:45 jberger also <<insert character here>> is in your barn, your husband is dying and you are about fertility
19:45 jberger *care
19:46 genio Also, the giant ouija board has made me more meh than anything else in this series.  I think I'll just tap out now
19:46 punter joined #mojo
19:48 jberger its only one more part, i'll probably finish it
19:48 jberger but yeah
19:49 jberger also they can pull apart a house but he just hides behind a one way mirror
19:50 geheimnis` joined #mojo
19:50 genio yea. I'll just get back to the expanse now.
19:57 berov1 joined #mojo
19:59 sue joined #mojo
20:01 ZoffixW joined #mojo
20:01 ZoffixW Hm, 6.37 broke one of my module's tests :) https://github.com/zoffixznet/Test-Mojo-Role-SubmitForm/issues/9
20:02 ZoffixW I wonder if it was because the test is making incorrect assumptions (/me looks closer)
20:03 Grinnz_ i dont see fails on cpantesters
20:04 ZoffixW This one's hot off the presses (the reporter is one of the cpantesters)
20:05 Grinnz_ yeah he's always popping up with reports :P
20:08 ZoffixW Looks like submitted <input type="hidden" name="©☺♥" value="24"> ends up in $c->req->params->to_hash as '�&3A&65'
20:08 * ZoffixW tries to make a small test case
20:10 Grinnz_ maybe this commit https://github.com/kraih/mojo/commit/84a856c73820971ea78ff4014d8c3a3c331c85d3
20:12 Grinnz_ charset is set even if not defined in %options
20:13 ZoffixW I can't seem to reproduce this in small tests case
20:21 ZoffixW Hm, if I dump $t->tx->req->body (in the test) I get  %A9%263A%2665=24 for that input
20:22 Grinnz_ what is $t->tx->req->body->charset ?
20:23 ZoffixW And my browser submits it as %C2%A9%E2%98%BA%E2%99%A5=24
20:23 Grinnz_ that part looks correct
20:24 ZoffixW Grinnz_, are you sure that's the right method?
20:24 ZoffixW ->body is a string
20:24 Grinnz_ no it's a Mojo::Parameters
20:24 Grinnz_ oh maybe not
20:24 ZoffixW Nope
20:24 Grinnz_ body_params is what i was thinking of
20:25 ZoffixW 'UTF-8'
20:25 Grinnz_ yeah that would be unaffected
20:25 sue joined #mojo
20:26 Grinnz_ don't see at a glance any other commits that look related
20:26 berov1 Guys, who fo you made   Mojo::JSON::MaybeXS?
20:26 Grinnz_ <--
20:26 berov1 hi Grinnz_
20:26 * ZoffixW itches for MaybeMojo::MaybeJSON::MaybeXS::YouJustNeverKnow
20:27 Grinnz_ BKB would love that one
20:27 ZoffixW With ::TryYourLuck as the "::Simple" variant :)
20:27 berov1 something changed now tih some of the latest Mojolicious releases
20:27 berov1 It now uses JSON::PP
20:27 Grinnz_ right, to load the booleans
20:28 berov1 and somehow now MaybeXS
20:28 Grinnz_ that shouldn't matter, JSON::MaybeXS only has the preferential logic to JSON::XS if it's already loaded
20:28 Grinnz_ not JSON::PP
20:28 berov1 does not override true and fals
20:28 Grinnz_ wha?
20:28 berov1 ook, let me try to explain
20:29 berov1 I am using Swagger + Mojo::JSON::MaybeXS
20:29 berov1 I have a specification in which I specify a field in a schema as boolean
20:30 berov1 and I get the following validation error "Expected boolean - got JSON::PP::Boolean."
20:30 berov1 It is not a Swagger Issue
20:30 ZoffixW berov1, what's a "boolean"?
20:30 dvinciguerra joined #mojo
20:30 berov1 like in the Swagger2 specification
20:30 ZoffixW hm
20:31 berov1 ok it does not matter now exactly this
20:31 berov1 the point is I am getting a JSON::PP::Boolean
20:31 Grinnz_ berov1: all of the JSON modules now return a JSON::PP::Boolean
20:32 berov1 altough MaybeXS does a monke_patch
20:32 ZoffixW Grinnz_, did I interpret your responses correctly that %A9%263A%2665=24 is incorrect?
20:32 berov1 ahhh, really?
20:32 Grinnz_ ZoffixW: yes
20:33 Grinnz_ berov1: Mojo::JSON, JSON::PP, and Cpanel::JSON::XS all do at least
20:33 Grinnz_ JSON::XS uses a boolean which is aliased to it so it looks like one too
20:33 Grinnz_ so what is not allowing a JSON::PP::Boolean?
20:33 berov1 so that is why "monkey_patch 'Mojo::JSON', 'true',  sub () { $TRUE };" actually happens to be the same as in Mojo::JSON?
20:34 Grinnz_ usually it will be yes
20:34 berov1 hm... then I have to ask batman: what to do
20:36 berov1 Thanks guys!!!
20:37 ZoffixW I think I found the issue and a way to replicate it. But I need to do $work ATM, will report it later today
20:42 Grinnz_ ZoffixW: %26 is a url-encoded ampersand btw... strange
20:45 ZoffixW Well, this is meant to replicate the incorrect encoding, but for some reason I'm not getting any output :S perl -MMojo::UserAgent -Mutf8 -wlE 'say Mojo::UserAgent->new->build_tx(GET => "/" => form => { "©☺♥" => 42 })->req->body'
20:50 ZoffixW hm ->params does give correct result
20:50 * ZoffixW & commute
20:55 sue joined #mojo
21:03 ZoffixMobile joined #mojo
21:05 ZoffixMobile Grinnz_, but in this case, those are hex codes. The 26 is accidental
21:06 ZoffixMobile so it percent encodes with % + hex code... maybe it's right, I dunno
21:09 tyldis joined #mojo
21:20 CandyAngel joined #mojo
21:26 ZoffixMobile joined #mojo
21:30 melo joined #mojo
21:37 meshl joined #mojo
21:43 melo joined #mojo
22:09 Zoffix joined #mojo
22:19 Zoffix "Code has to be run through Perl::Tidy with the included .perltidyrc"  ... it would be really nice if that line in Contributing doc included a nice copy-pastable oneliner for how to run perl tidy with the included .perltidyrc...
22:19 Zoffix I don't use Perl tidy so now I have to jump through an extra barrier in order to contribute
22:21 Zoffix *sigh* quick glance through Perl::Tidy pod and perltidy --help doesn't tell me anything
22:23 stephan48 doesn't peltidy search for a .perltidyrc automatically? so just run it from the repo base?
22:23 stephan48 it should find the corresponding file
22:23 Zoffix I don't know what it does or doesn't automatically
22:23 stephan48 me neither but i thought i read something about it doing that somewhen in the past
22:23 Zoffix I ran it and it just sitting there
22:24 Zoffix sri, ->charset($options{charset}) on this line should read ->charset($options{charset}//'UTF-8') https://github.com/kraih/mojo/blob/84a856c73820971ea78ff4014d8c3a3c331c85d3/lib/Mojo/UserAgent/Transactor.pm#L178
22:24 Zoffix sri, it was broken by this commit: https://github.com/kraih/mojo/commit/84a856c73820971ea78ff4014d8c3a3c331c85d3
22:24 Zoffix sri, and resulted in errors in parsing (like this bug report): https://github.com/zoffixznet/Test-Mojo-Role-SubmitForm/issues/9
22:24 Zoffix I tested it locally and the fix works, but I don't know how to run perltidy, so I can't submit a PR.
22:25 Zoffix Also Grinnz++ for spotting that
22:25 stephan48 you could try: perltidy -pro=$REPOPATH/.perltidyrc ...
22:26 Grinnz_ i usually just do something like perltidy path/to/File.pm > path/to/File.pm.new
22:26 preaction :set equalsprg=perltidy %
22:26 Grinnz_ the .perltidyrc in the root will set everything up
22:29 Zoffix_ joined #mojo
22:36 Zoffix Man, this really upset me -_-
22:36 * Zoffix opens another beer
22:37 meshl joined #mojo
23:17 trone joined #mojo
23:17 jberger https://github.com/jberger/dotfiles/blob/master/.vimrc#L97
23:17 jberger I stole that from someone, maybe sri
23:18 melo joined #mojo
23:19 preaction the equalsprg is generally for tidying. then it's not ,t it's just =
23:19 Zoffix heh, well I don't use vim either :P
23:19 jberger I don't have any idea what my command does
23:19 Grinnz_ non-vim high five
23:20 jberger To be fair only like three people understand vim to that level

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