Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

User Profile Element: CPAN author ID

by jdporter (Paladin)
on Apr 04, 2022 at 18:38 UTC ( [id://11142675]=monkdiscuss: print w/replies, xml ) Need Help??

We have just added a new field to the user profile: CPAN author ID. You can put your PAUSE author ID in this field. When someone views your profile, they will see it and it will be a link to the corresponding page on metacpan.

Do you like this? It can be removed if it is unpopular.

Update:

I have turned off users' ability to set this value themselves.
The field itself is still supported, and you can see it displayed on certain monks' homenodes.
If you would like to have your CPAN ID on your homenode, please just /msg gods with your request. Thanks!

Update 2:

As a convenience, I have added the CPAN IDs to user profiles based on the info provided in this CPAN api (about 30 monks) and in this MetaCPAN api (about 185 monks). Interestingly, there was almost no intersection between those two sets of data.

I reckon we are the only monastery ever to have a dungeon staffed with 16,000 zombies.

Replies are listed 'Best First'.
Re: User Profile Element: CPAN author ID
by stevieb (Canon) on Apr 04, 2022 at 18:49 UTC
    Do you like this?

    What's not to like? If someone doesn't like it, they can leave it blank.

      Exactly this. Great work.

Re: User Profile Element: CPAN author ID
by kcott (Archbishop) on Apr 04, 2022 at 23:04 UTC

    G'day jdporter,

    This works fine. I didn't encounter any issues using it. As already stated, it's optional; so if you don't use it, there's no "CPAN ID:" entry on your home node.

    The "Help for this page" links to "How do I change my home node?". This should be updated with info about this new field: with minor rewording, what you have in the first paragraph of the OP should suffice.

    — Ken

      Hopefully someone in the SiteDocClan will step up and make the edits.

      Done.

Re: User Profile Element: CPAN author ID
by cavac (Parson) on Apr 04, 2022 at 20:01 UTC

    This makes things much easier. Thank you very much!

    perl -e 'use Crypt::Digest::SHA256 qw[sha256_hex]; print substr(sha256_hex("the Answer To Life, The Universe And Everything"), 6, 2), "\n";'
Re: User Profile Element: CPAN author ID
by jdporter (Paladin) on Apr 05, 2022 at 20:25 UTC

    One unfortunate thing is that we don't (yet?) validate what the user enters in this field. She could put someone else's author ID... or even just junk.

    We do, however, at least, reject any value which isn't /^\w+$/.

      While it would probably be far too much work for the small benefit, I'll just mention that MetaCPAN has a "Profiles" section for each user which allows them to specify their accounts at various other sites. One of these sites is PerlMonks so MetaCPAN may already be linking back to the monastery for some users. If you could verify that both ends of this connection say the same thing (eg. PerlMonks user Foo says in their profile that their PAUSE ID is BAR, and user BAR at MetaCPAN says their PerlMonks ID is Foo) then that should suffice for validation.


      🦛

        I'm not seeing any "profiles" section on metacpan. Can you please provide a link to it? tia.

Re^2: User Profile Element: CPAN author ID
by jdporter (Paladin) on Apr 18, 2022 at 20:46 UTC

    If you visit your homenode and find that the CPAN ID field has mysteriously appeared, and you would rather it not, you may edit your profile and delete /msg me or gods and we'll remove it. It will not be automatically re-added. (But why would you?)

    I reckon we are the only monastery ever to have a dungeon staffed with 16,000 zombies.
      When I look at https://www.cpan.org/authors/00whois.xml, I only see 17 that mention perlmonks in the <homepage> node or anywhere else in that download... so I'm curious what the matching pattern was on the other 14? (Or if you used arcane knowledge, like maybe mapping the whois email to recovery email at perlmonks, that's obviously something I cannot see from just the whois download).

      Using the metacpan API, https://fastapi.metacpan.org/v1/author/_search?q=profile.name:perlmonks&size=200 tells me there are 185 in the metacpan authors list that have set their perlmonks ID in their profile.

      It's obviously up to you and the other gods who to include automatically and who must actually request it (and I was happy that I made it in the small window where I could do it myself, though I probably would've ended up /msg-ing if I missed my chance), but if you wanted more to automatically link, that's a slightly more inclusive list. ;-)

      (I was also one of the lucky few who was still logged in at metacpan, although I had already set my perlmonks profile there years ago. However, while trying to figure out where I was logged in, I accidentally clicked logout, and there were a few days when, no matter which github or google login I used, I could not log in to metacpan at all. I played around over a few more days as I had bits of time here and there, and eventually tried re-associating my PAUSEID with one of my google logins or my github... that never quite seemed to work, but I eventually found myself logged back into metacpan, with my correct ++ list and my github linked, and my profiles correctly listed; and I was then able to log in using github id on my phone and it was logged in to the same account... So that was nice. But when I tried adding my S.O. profile, it never properly saved (it would say it saved it, but when I refreshed the page, it was back to not listing that profile).)

        Thank you for that info. Yes, metacpan seems to be pretty broken wrt all that stuff.

        what the matching pattern was on the other 14?

        Look for perlmonk.org

        I'm inclined to add everything I can find*, including the 185 from the other feed you identified. It's a service to the community; I find it hard to imagine that anyone would object...

        *Edit for clarity: I am not going to scour the internet for this information. Rather, I will only use information which is already publicly available from either [Meta]CPAN.org or PAUSE. In fact, I've already taken that step, and have no plans to do anything further.

        Dang. You're right. I forgot. I think I'm the one who needs more coffee.
        Will update node above.

        I think it's still deactivated ...

        It is a matter for the gods, I think. Maybe ask erzuuli.

        It was created to be editable by mere monks, but after a few days changed back to godly spheres.

        Cheers, Sören

        Créateur des bugs mobiles - let loose once, run everywhere.
        (hooked on the Perl Programming language)

Re: User Profile Element: CPAN author ID
by syphilis (Archbishop) on Apr 19, 2022 at 09:55 UTC
    We have just added a new field to the user profile: CPAN author ID. You can put your PAUSE author ID in this field.

    I've been displaying that information on my user profile for years as "CPAN Directory".
    Looks like I wrote it all into the "Location" field, as was suggested to me by some other monk.
    (It definitely wasn't my own original solution, but it has provided what I wanted.)

    Cheers,
    Rob

      OK, Cool.... What do you think of switching to this new "official" method?

        What do you think of switching to this new "official" method?

        I think just do it - though the "authentication" issue is interesting.
        I'd probably be a bit pissed off if someone else claimed that he had the CPAN ID "Sisyphus".
        But then, there's nothing to stop anyone who could be bothered editing their "Location" setting from doing that right now, anyway.

        Cheers,
        Rob
Re: User Profile Element: CPAN author ID
by talexb (Chancellor) on Apr 22, 2022 at 12:48 UTC
      Note: If you have a PAUSE account but have never published anything to CPAN, this will be a broken link.

    Guilty. I always fret that any module I post won't measure up. Still.

    Alex / talexb / Toronto

    Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

      It's all relative. No doubt whatever you might release will be superior to Net::FullAuto for example.

      FWIW I do encourage you to consider releasing at least one dist. It will not be 100% perfect first time but then nor is anyone else's. But what will happen is that you will receive feedback - this will come from CPANTesters, CPANTS, cpancover.com, etc. but also occasionally from users. It's all grist to the mill and by taking it onboard you and your code will almost certainly improve.

      I was also somewhat daunted at first release but am now very glad that I did so. My code may never be as top-drawer as MIYAGAWA's but that really doesn't matter. In the years since then it has improved noticeably to me as a direct result and it has also made me less reticent in contributing to others' projects (whether with patches/PRs/MRs or reporting bugs, etc.). So, take the plunge - what do you have to lose?


      🦛

      I always fret that any module I post won't measure up.

      Measure up to what?

      I used to be that way, then things changed. Now I have clients that use my work, we've integrated several of my distributions into the code of my current job, I get feedback and patches from all over the globe.

      Just make sure that you have good, complete documentation, and ensure you have a very good test suite that verifies what your documentation says is accurate.

      I urge you to upload your work. Who cares what anyone else will think. To be realistic though, you've been around a long time so I'm quite confident that you'd get positive feedback anyway.

      Besides, the CPAN needs more representation from Toronto ;)

        Thank you. This post made my day, my week, and probably my month.

        Alex / talexb / Toronto

        Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: monkdiscuss [id://11142675]
Approved by erzuuli
Front-paged by erzuuli
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-16 16:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found