Perl 6 - the future is here, just unevenly distributed

IRC log for #metacpan, 2014-08-09

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

All times shown according to UTC.

Time Nick Message
01:31 klapperl joined #metacpan
01:32 FROGGS_ joined #metacpan
02:56 oiami joined #metacpan
03:03 priodev joined #metacpan
04:08 talina_ joined #metacpan
04:54 khisanth_ joined #metacpan
06:52 neilb joined #metacpan
07:23 oiami joined #metacpan
08:58 talina_ joined #metacpan
08:59 neilb joined #metacpan
09:00 rashi joined #metacpan
10:46 neilb joined #metacpan
11:38 n0body joined #metacpan
11:44 neilb joined #metacpan
12:04 neilb joined #metacpan
12:30 rashi joined #metacpan
13:01 neilb joined #metacpan
13:05 rashi joined #metacpan
14:17 neilb joined #metacpan
14:18 neilb joined #metacpan
14:39 oiami joined #metacpan
15:38 trs the bootstrap3 headers are much harder to distinguish from normal text.
15:39 trs see https://metacpan.org/pod/Catalyst::Delta for example
15:39 dipsy [ Catalyst::Delta - Overview of changes between versions of Catalyst - metacpan.org ]
15:39 trs even just h1, h2, h3, h4 { font-weight: bold } makes it better
16:10 oiami trs:  do you have example of which line you mean to ?
16:21 trs oiami: look at any of the headings under VERSION 5.90060+
16:21 trs for example: "Support passing Body filehandles directly to your Plack server."
16:22 trs it appears that none of the headings use bold, and rely on font-size alone.
16:22 trs which doesn't really work all that well.
16:22 oiami I see, I can't remember if it was bigger before
16:25 trs it was bold before
16:26 oiami ok, I can fix that :D
16:28 trs :)
16:32 EClaesson joined #metacpan
17:55 metacpan joined #metacpan
17:55 metacpan [metacpan-web] rwstauner pushed 1 new commit to master: http://git.io/6hCV3g
17:55 metacpan metacpan-web/master 9ed3614 oiami: Do not display table header when no data found and add no result msg
17:55 metacpan left #metacpan
17:55 dipsy [ Do not display table header when no data found and add no result msg · 9ed3614 · CPAN-API/metacpan-web · GitHub ]
17:56 metacpan joined #metacpan
17:56 metacpan [metacpan-web] rwstauner pushed 2 new commits to master: http://git.io/4eqbMg
17:56 metacpan metacpan-web/master 1122456 oiami: Update news about Bootstrap upgrading and remove news of removed feature
17:56 metacpan metacpan-web/master ae71cf1 Randy Stauner: Merge pull request #1268 from oiami/update_bootstrap_news...
17:56 metacpan left #metacpan
17:56 dipsy [ Comparing 9ed3614ff39a...ae71cf14ad52 · CPAN-API/metacpan-web · GitHub ]
18:05 metacpan joined #metacpan
18:05 metacpan [cpan-api] rwstauner pushed 1 new commit to master: http://git.io/DOwKgA
18:05 metacpan cpan-api/master 1db6059 Randy Stauner: Wrap data prep tests in a subtest for cleaner TAP...
18:05 metacpan left #metacpan
18:05 dipsy [ Wrap data prep tests in a subtest for cleaner TAP · 1db6059 · CPAN-API/cpan-api · GitHub ]
18:20 kentnl :( metacpan api is blocked by CORS :(
18:25 kentnl its either that, or I'm using ES JS libraries wrong. Either is possible
18:35 trs kentnl: no, the api should allow CORs
18:35 trs kentnl: rt.cpan.org makes use of it
18:38 trs to know why you're seeing blockage, you'd have to look at the HTTP headers.
18:39 kentnl yeah, I'm using the Official ElasticSearch JS library, and I'm not seeing anything obvious, it does a CORS request, and the subsequent gets a 500 error
18:39 kentnl browser console says "CORS PROBLEM!"
18:39 kentnl http://kentfredric.github.io/metacpan-status/recent.html # <-- basic test
18:39 dipsy [ Once-A-Week/Month/Day countdowns ]
18:40 kentnl the code is probably wrong, but I haven't gotten to a point where I get data back yet
18:42 trs metacpan parrots back Origin: as Access-Control-Allow-Origin:, but it doesn't parrot back Access-Control-Request-{Headers,Method} as Access-Control-Allow-{Headers,Method}
18:42 trs and your request is sending
18:42 trs Access-Control-Request-Headers:accept, content-type
18:42 trs Access-Control-Request-Method:POST
18:43 ranguard wonder if it's because there are GET params in the request as well as the POST
18:43 ranguard the reply header looks ok: Access-Control-Allow-Origin:http://kentfredric.github.io
18:44 * ranguard has only done CORS on GETS
18:45 trs I don't think you're reading what i wrote.
18:45 trs the reply headers *aren't* ok because it isn't allowing the things requested by the browser
18:45 kentnl trs: I don't know what I'm supposed to do here, because I'm literally just using elasticsearch.js and the relevant glue, I'm not doing anything in that department. :/
18:45 ranguard trs: doh, missed the important line!
18:46 trs metacpan's support of this (or lack thereof) has been discussed before.  metacpan should just use the CrossOrigin middleware configured correctly, or at the least start parroting back more things itself.
18:47 trs kentnl: well, if you're not going to change how the software you're using is making requests, then you need to change how metacpan responds.
18:47 ranguard Oh yea, https://github.com/CPAN-API/cpan-api/blob/master/lib/MetaCPAN/Server/Controller/Root.pm#L55 there is SO much more to CORS - should be using the Plack MW
18:47 dipsy [ cpan-api/Root.pm at master · CPAN-API/cpan-api · GitHub ]
18:47 trs exactly :)
18:48 kentnl so metacpan is DoingItWrong™ ?
18:48 trs metacpan is Doing It Only Kinda Sorta
18:48 trs basically, anything simple or hand crafted is fine.
18:48 * kentnl sees that source.
18:48 kentnl wow. 1 line CORS implementation :D
18:49 ranguard kentnl: remove that line, change the app.psgi to use https://metacpan.org/pod/Plack::Middleware::CrossOrigin
18:49 dipsy [ Plack::Middleware::CrossOrigin - Adds headers to allow Cross-Origin Resource Sharing - metacpan.org ]
18:49 ranguard send pull request :)
18:50 * kentnl will need glue to put his brain back in with
18:50 trs make sure you configure Accept: and Content-type: to be allowed, along with the normal defaults CrossOrigin provides.
18:50 ranguard Oh, actuall change https://github.com/CPAN-API/cpan-api/blob/master/lib/MetaCPAN/Server.pm to use it
18:50 dipsy [ cpan-api/Server.pm at master · CPAN-API/cpan-api · GitHub ]
18:50 ranguard oh, feck I don't know.. one of those :)
18:51 * kentnl is just going ô.ô
18:51 kentnl too early in the timespace for this
18:51 * ranguard goes back to his drink
18:58 EClaesson_ joined #metacpan
19:55 neilb_ joined #metacpan
20:35 rashi joined #metacpan

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