Camelia, the Perl 6 bug

IRC log for #metacpan, 2013-10-18

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

All times shown according to UTC.

Time Nick Message
01:36 mtj_ joined #metacpan
01:47 klapperl joined #metacpan
03:43 preflex_ joined #metacpan
03:45 ether joined #metacpan
03:53 ether_ joined #metacpan
05:09 szabgab joined #metacpan
05:09 szabgab oalders: hi
05:10 oalders szabgab: hello :)
05:10 oalders did you want to go over the perltv.org integration?
05:10 szabgab yes, that's what I thought
05:11 szabgab but I am not sure if this is a good time
05:12 szabgab so I can supply a json file listing all the videos
05:12 oalders i was actually just about to wrap things up for the evening.  what time is it where you are?
05:12 szabgab 8 am
05:12 oalders ah, ok. that's not bad. 1 am here.  we can maybe just make a quick start here
05:13 oalders i think if you supply the JSON file that's a good start
05:13 oalders we can set something up in metacpan-web that caches the JSON and then uses it when generating the /module pages
05:14 oalders that should actually be pretty straightforward
05:14 szabgab I have a json mapping modules to videos
05:14 oalders perfect
05:14 szabgab and a separate one mapping tags to videos
05:14 szabgab but I can generate any other json
05:14 oalders if you're motivated to do the integration you'd just need to get metacpan-web up and running
05:15 oalders well, as long as it maps module => video url
05:15 oalders you can either just run metacpan-web on your machine locally or you can grab a VM at https://github.com/CPAN-API/metacpan-developer  to get started
05:15 dipsy [ CPAN-API/metacpan-developer · GitHub ]
05:16 oalders i would say we should get it working first and then figure out where in the UI it looks best
05:16 szabgab "MetaCPAN::API::Tiny":[{"title":"(Ab)using the MetaCPAN API for Fun and Profit","path":"abusing-the-met​acpan-api-for-fun-and-profit"}]
05:17 oalders if we could get the full url in there, that might make for less confusion
05:17 szabgab these are the entries, but I can provide the full URL if it makes it easier  (basically prefix with perltv.org/v/
05:17 oalders i see the path should have a leading /v/
05:18 oalders ah, we're on the same wavelength
05:18 szabgab ok, I can supply that
05:18 oalders i would say full url would be good so that if/when the urls change on your end we don't have to know about it
05:18 szabgab I already have the web frontend installed
05:18 oalders perfect. so it should be pretty easy from there
05:18 szabgab and would you like to have only a text entry, or maybe even add thumbnails
05:19 szabgab ?
05:19 szabgab like I have in the top right corner of each video
05:19 omega_ thumbnail++
05:20 oalders yeah, if you can have the path to the thumbnail in there, that will give it more visibility
05:21 oalders omega_: you're back from vacation?
05:21 szabgab And if thumbnail, then where should the thumbnail be fetched from? I embed it from Youtube
05:21 szabgab so visitors will load it from their server
05:21 omega_ oalders: briefly :P new vacation in a week, hehe
05:21 omega_ hiking in peru this time
05:21 oalders omega_: nice!
05:21 omega_ but been swamped with work last few weeks :/
05:22 oalders i won't bug you about Changes for a while then ;)
05:22 oalders szabgab: good question. we don't really deal much with external assets other than gravatars
05:22 oalders i think we could stick with the youtube thumbnails to start with
05:23 oalders keep it simple
05:23 szabgab ok, and then if I start to index videos from other sources, then we'll see if they have thumbnails or if I put them on perltv.org
05:24 oalders yeah, let's not worry about that stuff right now. i'm more interested in just getting a very simple thing working
05:25 oalders you could use something like WWW::Mechanize::Cached to fetch the JSON
05:25 omega_ as long as perltv sends a thumbnail url in the json, the metacpan can stay the same
05:25 oalders exactly
05:25 oalders you can set a custom cache object with a sensible expiration. so page load times won't be affected at all
05:25 oalders i think that's really all we need to get started
05:25 [Sno] joined #metacpan
05:26 szabgab ok, I'll put the modules.json on the perltv site and try to integrate it in the web interface
05:26 oalders great
05:26 oalders we can argue a bit over where on the page the thumbnail looks best once you get to that point
05:26 szabgab but I am not sure I understand the comment about cache object
05:26 oalders szabgab: https://metacpan.org/module/WWW::Mechanize::Cached
05:26 dipsy [ WWW::Mechanize::Cached - Cache response to be polite - metacpan.org - Perl programming language ]
05:26 oalders see the SYNOPSIS
05:26 szabgab we can argue :)  (I thought the bottom of the right hand side)
05:26 omega_ can just add it to the other requests for the module page perhaps?
05:27 omega_ or is that perhaps most for the metacpan api requests
05:27 oalders omega_: the issue is that szabgab will be hosting the JSON file and we don't need to fetch it on every request
05:28 omega_ ahh
05:28 oalders so, some kind of caching would probably be best
05:28 oalders i think WWW::Mechanize::Cached is probably a very simple way to do it. not much code and it "just works"
05:29 oalders szabgab: i'm going to call it a night.  ping me again if you have any questions.  lots of people in this channel who can help out as well
05:29 szabgab I'll look at it
05:29 oalders thanks for doing this. it's going to be a nice addition to the site :)
05:29 szabgab oalders:   thanks and good night!
05:29 oalders good night!
06:24 dpetrov_ joined #metacpan
08:24 ribasushi o/
08:24 ribasushi what is an easy way to ask ES "Gimme all releases for dist X and the tarball urls"
08:26 ranguard ribasushi: have you looked here: https://github.com/CPAN-API/metacpan-examples/ ?
08:26 dipsy [ CPAN-API/metacpan-examples · GitHub ]
08:26 ribasushi perfect
09:01 ribasushi hmmm
09:01 ribasushi http://paste.scsys.co.uk/272331
09:01 dipsy [ magnet_web paste from Someone at 217.168.150.38... ]
09:02 ribasushi ranguard: ^^ I am not getting all of the dists for some reason, can you tell me what am I doing wrong?
09:02 ribasushi (I am expecting from 0.04 to 0.400, lots of them)
09:17 ranguard sorry, not sure of the top of my head - oalders ^^ ?
09:31 tianon joined #metacpan
09:38 daxim joined #metacpan
11:45 Lucas1 joined #metacpan
11:46 neilb joined #metacpan
14:12 ribasushi oalders: repoking whether you are up
14:48 oalders ribasushi: was at the dentist.  just got back :)
14:48 ribasushi ouch, nasty ;)
14:48 oalders first time in 6 years. it took a long time to get me fixed up :)
14:48 ribasushi ouch... that's worse ;)
14:48 danaj joined #metacpan
14:49 oalders just looking at what you pasted
14:49 ribasushi oalders: basically I want to get the contents of the "go to version" dropdown in metacpan
14:49 ribasushi and get the urls for each, nothing more
14:50 oalders ribasushi: you need to set a size param in your query
14:50 oalders it defaults to 10
14:50 ribasushi ahhhhhh
14:50 ranguard heh, doh, sorry should have thought of that
14:51 ribasushi ok in this case (when I know the result is at most a 100) is it safe to just say size:verylarge, or I should look into a cursor etc?
14:51 oalders that's easy to overlook.  i should set a size explicitly in the examples
14:51 ribasushi asking from a "best practice pov"
14:51 oalders ribasushi: you can get up to 5000 without a cursor
14:52 oalders for this kind of query i don't think you need to worry about it, unless you're running it constantly
16:14 ribasushi uh oh
16:14 ribasushi metacpan throws 502s
16:32 mmp_ joined #metacpan
16:39 [Sno] joined #metacpan
16:52 neilb joined #metacpan
17:02 neilb joined #metacpan
17:10 trs 502s are the new 500s
17:11 trs we're just keeping up with the cool kids
17:13 oalders ribasushi: where are you seeing a 502?
17:15 ribasushi oalders: homepage and stuff
17:15 ribasushi seems ok now
17:15 oalders ribasushi: ok, thanks :)
17:32 neilb joined #metacpan
18:47 bowtie_ joined #metacpan
19:16 Mike-PerlRecruiter_ joined #metacpan
19:20 neilb joined #metacpan
20:58 oalders there will be a quick reboot in the next few minutes
21:09 ether_ joined #metacpan
22:16 tobyink joined #metacpan
22:17 tobyink MetaCPAN seems to be missing several hours of uploads. (Everything between Throwable-X-0.007 and IO-All-0.50.) Is this a known problem?
22:20 oalders tobyink: we rebooted but that shouldn't cause i problem. i'll have  a look
22:20 tobyink I definitely uploaded two files in that period, and they show OK in PAUSE.
22:21 tobyink And search.cpan.org shows them.
22:24 tobyink An example - https://metacpan.org/release/Type-Tiny is not showing version 0.030. (Not even in the "Go to version" drop down.)
22:24 dipsy [ Type-Tiny-0.028 - tiny, yet Moo(se)-compatible type constraint - metacpan.org - Perl programming language ]
22:24 oalders yeah, there's a problem for sure
22:25 oalders i'm re-indexing everything that got skipped in the last 24 hours
22:25 tobyink They've appeared!
22:26 oalders that should be sorted now
22:26 oalders thanks for pointing that out
22:26 oalders we really need some kind of monitor on the recent releases
22:27 oalders for now, humans serve that purpose
22:33 ether for anyone who doesn't know, #cpantesters is a feed of all uploads

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