Perl 6 - the future is here, just unevenly distributed

IRC log for #metacpan, 2014-10-04

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

All times shown according to UTC.

Time Nick Message
00:49 vroom joined #metacpan
01:50 FROGGS_ joined #metacpan
02:12 vroom joined #metacpan
02:31 vroom joined #metacpan
03:27 oalders i pushed a fix for tidying on the VM. i didn't see an IRC notification, but it's there in the puppet config
03:48 vroom joined #metacpan
06:00 kentnl joined #metacpan
07:21 neilb joined #metacpan
07:38 andreea joined #metacpan
08:45 neilb joined #metacpan
08:55 dp_ joined #metacpan
09:45 neilb joined #metacpan
12:06 andreea joined #metacpan
12:11 Shadow joined #metacpan
12:49 vroom joined #metacpan
13:16 vroom joined #metacpan
13:59 neilb joined #metacpan
14:06 andreea joined #metacpan
14:24 vroom joined #metacpan
14:54 vroom joined #metacpan
14:57 andreea joined #metacpan
15:05 superluser joined #metacpan
15:33 Ralesk joined #metacpan
15:37 khisanth_ joined #metacpan
15:37 vroom joined #metacpan
15:52 Ralesk joined #metacpan
16:27 vroom joined #metacpan
16:42 andreea joined #metacpan
16:46 vroom joined #metacpan
16:55 vroom joined #metacpan
17:17 andreea joined #metacpan
17:43 neilb joined #metacpan
17:51 vroom joined #metacpan
18:31 neilb joined #metacpan
20:28 gshank_ joined #metacpan
20:56 ether is there an API to access a user's gravatar URL, as they have entered it into their profile data?
20:58 ether Acme::CPANAuthors->gravatar_url does a lookup on the email address in 00whois data, falling back to id@cpan.org, which isn't necessarily the same as what's in metacpan
20:58 ether so Acme::CPANAuthors::Nonhuman is showing the wrong image in a few cases
21:01 ether it would be easier if metacpan didn't allow for a separate gravatar URL - but instead used the primary email address given to PAUSE
21:02 ether but that ship has probably sailed
21:23 haarg ether: http://api.metacpan.org/author/ETHER
21:26 haarg or http://explorer.metacpan.org/#/1cca9ed091490c08e0fd
21:26 dipsy [ MetaCPAN Explorer ]
21:26 ether that second link returns nothing for me
21:27 haarg noscript
21:27 haarg ?
21:27 ether bleh, the url has the size embedded in it
21:28 haarg yes
21:28 haarg which rather sucks
21:28 haarg really, for gravatars the api shouldn't have anything in it
21:28 ether yeah
21:28 haarg and we should just use gravatar as the default if nothing is specified
21:29 haarg everything else probably should be proxying through metacpan.org
21:29 haarg so we don't get mixed http/https
21:31 * ether briefly considers changing Acme::CPANAuthors::Nonhuman to have an internal hash of overridden urls, to fix the current issues; decides against it
21:32 ether but it doesn't feel right to hammer metacpan with lots of lookups at dist build time, either
21:35 haarg how many requests is it?
21:35 ether presently 35
21:35 ether can I do them all in one go?
21:35 haarg also, using my second example, you could extend the filter with an or and do it all in one
21:36 haarg but 35 requests is pretty much nothing
21:37 haarg every view of a page in the Moose dist does ~100 api requests from the browser
21:38 ether what should I be using to make programmatic requests? I see MetaCPAN::API is now marked deprecated.
21:38 haarg for contributor gravatars
21:38 haarg (which is something we should fix eventually)
21:38 haarg MetaCPAN::Client
21:38 haarg or manually.  depending on your taste.
21:38 ether maybe I should be embedding javascript and doing the id -> avatar lookups dynamically, rather than at dist build time
21:39 ether that's outside my pay grade though
21:39 haarg that would get stripped
21:39 haarg metacpan itself does the id->avatar lookups for contributors like that, in the browser
21:39 haarg but it really shouldn't be
21:40 haarg but nothing like that would be allowed through in the pod
21:41 ether ok, I'll ahve to do it statically then
21:54 haarg ether: http://explorer.metacpan.org/#/ed5bef33d28eb9258a88
21:54 dipsy [ MetaCPAN Explorer ]
22:03 ether where is the actual request? all I see is /author in the top bar
22:04 ether oh I see it's the full nested thingy
22:04 ether I just wrote  map { $_ => ($decoder->decode(( HTTP::Tiny->new->get('http://api.metacpan.org/v0/author/' . $_) // {})->{content}) // {})->{gravatar_url} } @ids
22:22 superluser joined #metacpan

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