bricas / cpanhq Goto Github PK
View Code? Open in Web Editor NEWPerl from the trenches
Perl from the trenches
Yesterday I Tried CPANHQ's OpenID Authentication and today I got this in the mail from the Mandriva security :
Security Warning: World Writable files found :
So these directories are world-writable. It should not be this way, and may pose a security risk.
Regards,
-- Shlomi Fish
After a user has logged in, they should be presented with a dashboard. Ideally this would be customisable. Some possible elements:
If you're a CPAN author we could extend that to include a special CPAN author section with:
The point would be to make this a section the user would want to check frequently as the information is quite dynamic.
I think a wiki page for every perl dist should be available and linked wherever there is a detail or semi-detail view of a CPAN dist.
diff --git a/Makefile.PL b/Makefile.PL
index 8408fd6..957990b 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -22,12 +22,17 @@ requires 'Config::General';
requires 'CPAN::Mini';
requires 'DBIx::Class';
requires 'DBIx::Class::TimeStamp';
+requires 'File::Next';
+requires 'File::Slurp';
requires 'File::Spec';
requires 'File::Temp';
requires 'Graph::Easy';
requires 'List::Util';
requires 'parent';
+requires 'Parse::CPAN::Packages';
+requires 'Parse::CPAN::Whois';
requires 'Rose::HTML::Form';
+requires 'Software::License';
requires 'YAML::XS';
test_requires 'Test::WWW::Mechanize::Catalyst';
Currently sub auto { ... } in lib/CPANHQ/Controller/Root.pm reads:
sub auto : Private {
my( $self, $c ) = @_;
my $rss = XML::RSS->new;
$rss->parse( get( 'http://twitter.com/statuses/user_timeline/36758099.rss' ) );
$c->stash( tweets => $rss );
return 1;
}
As can be seen, the RSS file is fetched every time a page is loaded, and $rss->parse() will fail with a warning or error if get() failed, because the return value of get() is not checked. The latter is happening now due to twitter.com being down.
Regards,
-- Shlomi Fish
The common convention in web-sites is for the top-left icon to link to the front page. See github's logo for instance. According to our chat on IRC, we agreed that CPANHQ should do it too.
I tried doing:
<div id=header>
I think CPANHQ could really benefit from a simple, binary rating system akin to "i use this" -- perhaps "i like this", or a star/heart icon.
CPANRatings has some problems: a 1-5 rating system can be subjective, and the textual ratings lend themselves to controversy and even bug reports masked as ratings.
The "i like this" rating could also be used to enhance the search results.
We need to display the POD of the .pm/.pod files (after converting them to (X)HTML of course). Maybe see how kobesearch is doing it:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.