Perl 6 - the future is here, just unevenly distributed

IRC log for #metacpan, 2013-12-14

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

All times shown according to UTC.

Time Nick Message
00:47 alnewkirk is not
00:52 fernando joined #metacpan
00:53 fernando hi!
00:53 fernando using the metacpan API, how can I get the number of distributions on CPAN?
01:29 trs fernando: clarify what you mean by distributions.  Moose or ETHER/Moose-2.1005?
02:00 fernando Moose
02:28 klapperl_ joined #metacpan
02:53 trs use an elasticsearch facet on release.distribution, I expect.
02:54 trs nm, there's a distribution index
02:56 trs curl http://api.metacpan.org/distribution/_search -d '{"query":{"match_all":{}},"size":0}'
02:56 trs and extract ->{hits}{total} :)
04:06 preflex_ joined #metacpan
04:30 oalders rafl: have you had a chance to look at the ipv6 setup yet?
04:31 oalders Mithaldu, ribasushi: we were just made aware of the ipv6 issues a few days ago
04:32 Mithaldu \o/
04:33 oalders i think there's an AAAA record we can remove for the time being if that helps
04:36 oalders *.bm-n2.metacpan.org has an AAAA record for 2001:41c8:10:1044:5054:ff:fe77:1b9d
04:38 oalders ranguard thought that maybe the wildcard was the problem
06:48 mst does metacpan record the contents of the pause index somewhere or just maintain a single 'latest' copy and use that?
08:01 bowtie_ joined #metacpan
09:03 ranguard oalders: rafl needed to turn something back on for ipV6 - wasn't the DNS just a config thing - not sure what it was though
09:51 mst ranguard: happen to know where I'd look to answer my question?
15:21 oalders mst: it's a combination of whatever is the latest version of the files in CPAN and watching for changes https://github.com/CPAN-API/cpan-api/blob/master/lib/MetaCPAN/Script/Watcher.pm#L47
15:21 dipsy [ cpan-api/lib/MetaCPAN/Script/Watcher.pm at master · CPAN-API/cpan-api · GitHub ]
19:10 Mike-PerlRecruiter_ joined #metacpan
22:10 fernando trs: thanks! is there any way to not receive so much data? To receive only the total?
22:36 [Sno] joined #metacpan
22:42 trs fernando: it's really very little data. size: 0 in the request is asking for no results, just the summary data.
22:44 trs or use this ;)
22:44 trs curl -s -XPOST http://api.metacpan.org/distribution/_search -d '{"query":{"match_all":{}},"size":0}' | perl -MJSON -E 'undef $/; say decode_json(<>)->{hits}{total}'
22:45 trs I mean, the response body is only 211 bytes as-is.
22:53 fernando trs: thanks, i am doing that way, but in js
22:53 fernando For my Pm group's Page...
22:53 fernando Thanks!

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