Camelia, the Perl 6 bug

IRC log for #metacpan, 2011-08-05

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

All times shown according to UTC.

Time Nick Message
00:05 castaway_ joined #metacpan
00:05 castaway left #metacpan
00:05 castaway_ is now known as castaway
00:47 theory left #metacpan
01:11 klapperl joined #metacpan
01:16 klapperl_ left #metacpan
01:20 preflex_ is now known as preflex
01:21 rwstauner left #metacpan
01:53 theory joined #metacpan
02:47 theory left #metacpan
02:50 theory joined #metacpan
03:00 theory left #metacpan
03:34 theory joined #metacpan
04:21 oalders sartak: FWIW i've just started the front end locally and i'm able to log in via twitter: starman -p 5001
04:34 Getty just before i go to sleep, there should be the list of the authors who +1 like it on the page, or? (bottom left looks good ;) )
04:35 oalders a list on the page of authors who have +1 the dist you're looking at?
04:35 Getty oalders: btw, i think i'm a very massive +1 example now LOL, i see that i like many stuff what others should like, too (DBI, i'm the first liker of it)
04:35 Getty oalders: other around, but that list is also good
04:35 Getty oalders: i meant on the distribution/modules packages the list of the +1 givers
04:36 oalders as did i, just did not express that clearly :)
04:36 Getty oh sorry :)
04:36 Getty oh yes now when i read it again
04:36 Getty 8-)
04:36 Getty (6:30 am here....)
04:36 oalders missing a comma :)
04:36 oalders you should be going to sleep any time then?
04:36 Getty i was
04:37 Getty but hey i released a new module today and linked to metacpan for showing it
04:37 oalders yeah, i'd like to see a more social aspect of it. a list of actual authors who gave +1 would go a long way towards that
04:37 Getty with the new speed i can also FINALLY think about twittering them on release
04:37 Getty oalders: i also would love to add it to facebook..... but i think i'm the dude who have to add this code then
04:38 Getty oalders: (so metacpan writes on my facebook page that i +1 a module)
04:38 oalders Getty: can't we just add like button for that?
04:38 Getty oalders: i dont want to make more stress for myself
04:38 Getty i want one button for +1 and spread it on social networks
04:38 oalders http://www.addthis.com/ is an easy way to go
04:38 dipsy [ AddThis - The #1 Bookmarking & Sharing Service ]
04:38 Getty yeah bla....
04:38 Getty that is just sharing
04:39 Getty other world
04:39 Getty suxx totally
04:39 Getty the integration of the workflow is the gag
04:39 Getty only then people do it
04:39 Getty i linked my youtube to my facebook and so every like is seen there, without any extra stress
04:39 oalders well, then that might fall to you :)
04:39 Getty yeah ;) but you see the point, or?
04:39 oalders i see the light, yes
04:39 Getty :D
04:40 Getty http://www.youtube.com/watch?v=EprQGmZ3Imw
04:40 dipsy [ ?Genesis - Jesus He Knows Me (1991)?? - YouTube ]
04:40 Getty ;)
04:40 oalders :)
04:41 Getty yeah i'm an addict, got a youtube link for everything
05:21 theory left #metacpan
06:25 * Ranguard wouldn't want his +1's appearing anywhere else other than metacpan - so if you do build something please have it optional :)
06:27 Ranguard hmm, just logged in again for the first time - get 'Error: in order to change your provifile...connect PAUSE' - 'ERROR' seems a bit harsh for the first message to see after signin up!
06:29 * apeiron sets Ranguard's lp0 on fire
06:39 xsheep left #metacpan
07:04 plu n/
07:16 am0c joined #metacpan
07:21 sheepx joined #metacpan
07:23 sheepx is now known as Mithaldu
07:28 plu mo++
07:44 clintongormley joined #metacpan
08:02 timbunce joined #metacpan
08:05 woldrich 'Getty just added "2 girls 1 cup" to his favorites. Please click HERE to watch.'
08:10 am0c left #metacpan
08:26 pithub joined #metacpan
08:33 clintongormley Noooooooooooooooooooo
08:33 clintongormley ¡que asco!
08:33 plu hm? :)
08:34 clintongormley 2 girls 1 cup
08:34 clintongormley don't search for it unless you have a really strong stomach
08:34 plu hehe ok
08:35 plu the curiosity kills the cat and makes me puke, almost
08:35 plu thanks for the warning though :)
08:35 mauke yeah, I didn't like it. it was shit
08:35 clintongormley hahahaha
08:36 plu I closed it after 5 seconds, that was enough
08:36 clintongormley i'm a doctor. i've worked with dead rotting corpses
08:36 plu yummy :)
08:36 clintongormley never inspired to puke
08:36 clintongormley until that video
08:38 plu I added some bot here which reacts on github issue urls like https://github.com/CPAN-AP​I/metacpan-web/issues/205 - if it's bothering anyone, just let me know or kick "him". I think it's quite nice to see the title once somebody posts an url to an issue, to see if I'm interested to take a closer look at it
08:38 dipsy [ #205: gravatar fallback url doesn't use https, causing browser warnings - Issues - CPAN-API/metacpan-web - GitHub ]
08:38 pithub Issue#205: gravatar fallback url doesn't use https, causing browser warnings (0 comments) http://tinyurl.com/3pjero5
08:38 dipsy [ #205: gravatar fallback url doesn't use https, causing browser warnings - Issues - CPAN-API/metacpan-web - GitHub ]
08:39 plu oh hm. Maybe I should remove that tinyurl to avoid dipsy double postings
08:39 plu and dispy is already showing the title. Hm. Bye bye pithub, that was a short life :)
08:39 pithub left #metacpan
08:43 clintongormley does anybody know of any module that would allow me to accept a regex as user input, but sanitise it to disallow any execution of code, eg this construct: (?{ code })
08:45 mauke yes
08:45 * clintongormley waits with bated breath
08:45 mauke well, it's not a module
08:45 mauke it's called 'perl'
08:46 clintongormley <sigh>
08:46 clintongormley and, pray tell, how would you use perl to sanitise the regex
08:46 mauke like this:
08:46 mauke ^ zero statements
08:46 plu hm. But even if you find a way to disable that, this one can harm too: perl -e '/(?{??})/' (causes segfault)
08:47 mauke now if you'd asked for a way to allow (?{ code }) from user input, that would be harder
08:47 mauke and requires a module
09:00 timbunce clintongormley: the Safe module might help, but wouldn't simply checking the regex for m/\Q(?{/ suffice?
09:01 clintongormley timbunce: it may do, but there are so many features of the regex engine, that i wanted to be sure that i wasn't missing anything
09:01 clintongormley it wasn't for anything serious
09:01 clintongormley i've added a simple bot to the #elasticsearch channel and wanted to support things like:
09:01 clintongormley s/^bring me.+/Get it yourself/
09:01 clintongormley but allowing those to be added from the channel
09:02 clintongormley no worries :)
09:02 timbunce Safe should be safe enough for that kind of thing
09:03 mauke what the heck
09:03 timbunce How goes the reindex?
09:03 mauke ok, I'll spell it out
09:03 mauke perl does not allow code execution via user input in regexes
09:04 mauke you don't need to sanitize or check anything
09:04 miyagawa unless you say use re 'eval'
09:05 clintongormley mauke: i'm not talking about adding the user input as \Q\E - i would want to support back references etc
09:05 mauke clintongormley: so am I
09:05 mauke why is this so hard to understand?
09:05 mauke perl does not allow code execution via user input in regexes
09:05 timbunce $ perl -we '$a="(?{warn 1})"; 2 =~ $a'
09:05 timbunce Eval-group not allowed at runtime, use re 'eval' in regex m/(?{warn 1})/ at -e line 1.
09:06 clintongormley ahhh  - had no idea about that
09:06 clintongormley mauke: and that is why it is hard to understand
09:06 timbunce I'd forgotten. Thanks mauke
09:06 mo timbunce: it's done
09:06 timbunce mo: \o/
09:07 timbunce now I can get back to hammering on the server :)
09:07 mo can't wait to ban you again ;)
09:08 timbunce I promise to be better behaved! Do shout if it gets painful though.
09:10 mo sure, could you provide a custom UA, so we know that it's you?
09:11 mo clintongormley: we should add mget to the api ...
09:11 clintongormley yep
09:11 mo why is searchme so slow?
09:12 clintongormley note: some people have found occasional errors when mget'ing thousands of docs, so not completely bug free yet
09:12 clintongormley mo: i don't know - i assumed it was just freenode latency
09:12 mo other bots seem to work fine
09:29 am0c joined #metacpan
09:41 mo timbunce: the status field might not be set correctly at the moment
09:41 mo timbunce: status latest is set ok
09:41 mo but status cpan vs backpan not yet
09:42 mo the indexer has to through them again and set the correct bit, do you rely on the status field being set to backpan?
09:42 timbunce mo: ok (I don't use status, I mostly care about versions and (now) file.stat.size)
09:43 mo timbunce: great, then query away :)
09:51 acme timbunce: what are you up to? would it be easier to index yourself rather than calling over the net?
09:53 timbunce acme: writing a utility to work out exactly what's installed in a perl lib, including exactly which distro versions. Kind'a like bdfoy's http://blogs.perl.org/users/brian_d_foy/2011/03/​recreating-a-perl-installation-with-mycpan.html See also http://blog.timbunce.org/2011/​07/21/upgrading-from-perl-5-8/
09:53 dipsy urgh. long url. Try http://tinyurl.com/3kdsbxa
09:53 dipsy [ brian d foy at blogs.perl.org: Recreating a Perl installation with MyCPAN ] [ Upgrading from Perl 5.8 � Not this? ]
09:55 mo can dipsy please stop shortening those urls? it's pointless!
09:58 timbunce and, when dispy does shorten a url, it could add it to the title message.
10:01 mo or that
10:01 mo whose bot is it?
10:01 mo dipsy: who is your master?
10:01 dipsy mo: your master is 5327bcc5f0089a1028215dc7b2ba9d09ad1f8a10
10:01 mo meh
10:02 mauke seen slavorg
10:02 dipsy slavorg was last seen in #miltonkeynes.pm 3 days 1 hours ago saying 'Ok'.
10:02 mauke same hostname
10:10 acme timbunce: ah kind of like https://github.com/devstructure/blueprint does for servers
10:10 acme neat
10:11 dipsy [ devstructure/blueprint - GitHub ]
10:12 timbunce acme: I guess so. It's a crazy problem that simply wouldn't exist if all perl module installers kept a record of what releases they installed. [Sigh]
10:14 acme ah yes, that's on my never-ending todo list
10:17 miyagawa timbunce: you'll like cpanm 1.5
10:17 miyagawa and carton
10:17 miyagawa it will save MYMETA files into a site lib much like .packlist but with more information
10:18 timbunce miyagawa: Great! I still need to deal with legacy installs though :)
10:18 miyagawa right
10:33 mst timbunce: remember the "install via cpan and save the sources/ tree as a minicpan snapshot" trick I talked about a couple years ago?
10:33 mst timbunce: carton achieves basically the same thing but in a much user-friendlier way
10:34 timbunce mst: right, cool. I've half an eye on carton. It may be useful to $work later.
10:38 plu what do I need to do to get _source.pod working in my local index?
10:46 timbunce left #metacpan
10:51 timbunce joined #metacpan
10:58 plu hm. Looks like the POD has not been indexed here
11:24 mst <@Tux> BTW /me wants devel versions more obvious available in metacpan
11:24 mst agree entirely
11:25 mst if there's a dev release since the last stable it'd be REALLY cool to flag it up
11:27 yko dev. releases are not visible at metacpan at all?
11:28 mst I mean make it really obvious
11:54 mo plu: running cpan-api locally?
11:58 plu mo: yep
11:58 mo running es?
11:58 plu everything works but /pod/
11:58 plu yep
11:58 plu indexed modules, authors and updated latest
11:59 mo how did you index?
11:59 plu on a part of a minicpan
11:59 mo /pod/ get's the pod form the tarball, not _source.pod
11:59 plu basically following that instructions: https://github.com/CPAN-API​/cpan-api/wiki/Installation
11:59 dipsy [ Installation - GitHub ]
11:59 mo create a file metacpan_server_local.conf
11:59 mo and insert:
12:00 mo cpan ~/PATHTOMINICPAN/
12:04 plu done
12:04 mo is it working? :)
12:04 plu but still not working. I reindexed the modules again
12:05 plu and run the command to update latest again
12:05 plu in ES I can see this btw: org.elasticsearch.search.SearchParseException: [cpan_v3][0]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"fields":["_source.pod","id"],"quer​y":{"filtered":{"query":{"match_all":​{}},"filter":{"or":[]}}},"size":0}]]
12:06 mo is that something you wrote?
12:06 plu nope
12:06 plu it's from accessing this URL: http://localhost:5000/module/Astro::Catalog
12:06 plu that module is indexed, http://localhost:5000/release/Astro-Catalog is working for example
12:07 mo you get that when you are searching, right?
12:07 plu 127.0.0.1 - - [05/Aug/2011:16:04:26 +0400] "GET /pod/Astro::Catalog HTTP/1.1" 404 23 "http://localhost:5001/pod/Astro::Catalog" "Mozilla/5.0 (compatible; U; AnyEvent-HTTP/2.13; +http://software.schmorp.de/pkg/AnyEvent)"
12:07 dipsy [ AnyEvent ]
12:07 plu search is working too
12:07 mo the error is search related
12:07 mo so what exactly is not working? :)
12:08 plu http://localhost:5000/module/Astro::Catalog doesn show up the POD :)
12:08 plu everything else is working fine
12:08 mo http://localhost:5001/pod/Astro::Catalog
12:08 plu {"message" : "Not found"}
12:09 plu do I need to do an additional step to get the POD indexed?
12:09 mo ah right you need the full path to cpan
12:09 mo ~ is not resolved here
12:09 plu ah :)
12:16 plu mo++ # yay, thanks! It's working now :)
12:16 mo glad to have another core hacker :)
12:16 mo what are you up to btw?
12:17 plu diff single files versus the version on github :)
12:17 plu if repo is set etc
12:18 mo good luck with that :)
12:18 plu just wanna play around a bit with it, even if you think it's a bad idea and it will never make it to the site. I just wanna play with it :)
12:18 plu hehe thanks
12:18 mo no it's a great idea :)
12:18 mo looking forward to it
12:18 plu thanks :)
12:18 plu how's your master thesis going? :)
12:19 mo meh, don't ask, shouldn't even hang around here :)
12:19 plu oh! I'll stop bugging you then right now, I promise! Thanks for the help :)
12:19 mo but I'm forced to use IE in the institute, and I was quite surprised to see how well metacpan works with it
12:19 mo plu: please don't :)
12:20 plu hah :)
12:20 plu yea it's quite good with a modern IE
12:20 mo yep, IE8
12:20 plu at work we have ie6, there it looks a bit funny
12:22 plu but imo sites should not support ie6 anymore, if not absolutely necessary (customers' the king e.g.). If sites do not stop supporting it, it will never R.I.P
12:32 am0c left #metacpan
12:55 am0c joined #metacpan
13:34 mstratman joined #metacpan
13:54 bricas "Make sure you download the latest version (0.16)." -- 0.16 isn't the latest version. maybe this should be reworded to specify a minimum version?
13:55 clintongormley ...download the latest version from http://www.elasticsearch.org/download/
13:55 dipsy [ elasticsearch - download - Download ]
14:14 bricas lovely. :)
14:34 ilbot2 joined #metacpan
14:34 Topic for #metacpan is now http://metacpan.org | A better search and API for the CPAN | Fork away at https://github.com/CPAN-API/metacpan-web and https://github.com/CPAN-API/cpan-api | http://irclog.perlgeek.de/metacpan/
14:41 clintongormley plu: what are you using for autocomplete? jquery UI or what?
18:17 ilbot2 joined #metacpan
18:17 Topic for #metacpan is now http://metacpan.org | A better search and API for the CPAN | Fork away at https://github.com/CPAN-API/metacpan-web and https://github.com/CPAN-API/cpan-api | http://irclog.perlgeek.de/metacpan/
18:42 genehack joined #metacpan
20:48 timbunce joined #metacpan
22:26 achromic joined #metacpan
23:35 confound https://metacpan.org/search?q=Template
23:36 dipsy [ Search for "Template" - metacpan.org ]
23:36 confound https://metacpan.org/module/Template shows up under TT's distribution, but links to CGI-Application-Structured-Tools
23:36 dipsy [ Template - metacpan.org ]
23:36 confound even the link from https://metacpan.org/release/Template-Toolkit goes to the wrong place
23:36 dipsy [ Template-Toolkit-2.22 - metacpan.org ]
23:49 doy my guess is that's because the reindex isn't done yet
23:49 doy the modules are all loaded, but the "unauthorized" bits aren't set yet, or something
23:59 nicomen joined #metacpan

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