Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Personal Nodelet Maintenance

by coreolyn (Parson)
on Dec 04, 2003 at 16:12 UTC ( [id://312236]=monkdiscuss: print w/replies, xml ) Need Help??

Fellow Monks,

One feature that I find is in need of maintenance for my account is my personal Nodelet. I use it to mark every node I feel I might want to refer to in the future. Being the pack-rat that I am and the length of time I've been using it, it has become quite large. What would be nice is to be able to delete and/or sort it. Maybe there's something I can do already but am not aware of it, or possibly one of the highly skilled gremlins around here could add it as a feature?

Replies are listed 'Best First'.
Re: Personal Nodelet Maintenance
by idsfa (Vicar) on Dec 04, 2003 at 16:16 UTC

    Anything in my personal nodelet that sits unused for a week, I move to my scratchpad. That makes a dandy place for long term storage and keeps my page load time low.

    • click on link in nodelet
    • click on add to scratchpad
    • delete it from my nodelet when I have the time (go to user settings on your home node and scroll down)

    Perhaps a checkbox in your personal nodelet to delete links from it, or to move them to your scratchpad in one step would fit this bill?


    My parents just came back from a planet where the dominant life form had no
    bilateral symmetry, and all I got was this stupid F-Shirt.

      In my opinion Scratchpad has some limitations:

      • space is limited and nothing will warn you when you reach the limit of 64Kb;
      • nodes are added using href links, wasting even more space but probably saving some load to the server;
      • it isn't devoted only to bookmarks;
      • it doesn't detect duplicates (Personal Nodelet has the same problem of course);
      • it cannot be accessed by programs if it is marked as 'not public', even if you provide your login and want to access your scratchpad.
      Using your brower bookmarks isn't a good solution, because it may be difficult to obtain a 'bookmarkable' address after you voted on a note.
      So, I think coreolyn has some reason on his side, but I would ask for something different: a third link to something external and user defined that would receive the id of the node currently showed. This solution would provide a hook to implement your really personal way to set bookmarks.

      Ciao, Valerio

      update: fixed an error

      update2: Coruscate is right, it is possible to access your own scratchpad parsing user info, but the canonical solution remains broken.
      In the meanwhile, larsen informed me that there is a patch from belg4mit that would solve the href problem.

      update3: clarification for tye: the canonical solution is to use displaytype=xml on a user node. In normal conditions, with scratchpad public, I see the content in the data section; otherwise it is not shown. Using displaytype=raw with node 108949 is not a good solution, because the page would be rendered, altering the original content.

        it cannot be accessed by programs if it is marked as 'not public', even if you provide your login and want to access your scratchpad.
        it is possible to access your own scratchpad parsing user info, but the canonical solution remains broken.

        I don't understand this. Perhaps you need to define "the canonical solution" for me because I can't find any solution that cares whether your own scratchpad is public or not (if you provide your login information or cookie).

        I just used a program to access my scratchpad that I had marked as "not public". I did not use "edit user information". I simply pulled down the scratchpad page. It was as easy as:

        perl -S GET "http://perlmonks.org/?node=scratch+pad+viewer;user=tye;di +splaytype=raw;op=login;passwd=yeah,right"
        where "displaytype=raw" is optional, you can replace "node=..." with "node_id=108949", and you can replace "op=login;passwd=..." with a cookie.

        Perhaps you are hoping for "displaytype=xml" to work. It doesn't, even if your scratchpad is public. The solution for that is to split scratchpads out of the 'user' table (which solves several other problems and even reduces DB load).

        What am I missing?

                        - tye

        it cannot be accessed by programs if it is marked as 'not public', even if you provide your login and want to access your scratchpad.

        Wanna bet? :) (replace 'xxxxxx' in below code with your homenode id)

        use LWP::Simple; use XML::Simple; my $home_id = 'xxxxxx'; my $f = XMLin(get 'http://www.perlmonks.org/index.pl?node_id=' . $home_id . '&displaytype=xml' ); print $f->{data}{field}{scratchpad}{content};

        Update, moments after posting this reply: I am too tired. My eyes read "it cannot be accessed by programs even if it is marked as 'not public'". I still maintain that you can get the scratchpad contents of a non-public scratchpad. Simply parse the textarea from the edit user information page. Also, why do you mention that as a bad side effect of scratchpads? You can't access the personal nodelet in any special outside manner either...

      Perhaps a checkbox in your personal nodelet to delete links

      No, no! That'd be tons of check boxes. The "add this to my personal nodelet" link needs to become "delete this from my personal nodelet" when you are on a node that is already in your personal nodelet.

                      - tye

      Good idea! (Should have thought of that one myself.) The checkbox idea really sounds sweet.

Re: Personal Nodelet Maintenance (off-line edit)
by tye (Sage) on Dec 04, 2003 at 17:08 UTC

    I went to super search to look for non-replies that had "personal" and "nodelet" in their titles and quickly found what I was looking for: Personal Nodelet Extractor and Personal Nodelet Restorer.

    I didn't look at them to verify my recollection, but I believe you can use them to backup your personal nodelet, edit it, then upload it again. I also recall these not handling some types of links, but it sounds like you are mostly using lots of node-ID-based links, which would be what they'd support first.

                    - tye
Re: Personal Nodelet Maintenance
by pfaut (Priest) on Dec 04, 2003 at 17:49 UTC

    Every once in a while I go through my personal nodelet and move anything I want to save to my home node. That keeps a permanent reference to the node and leaves my scratchpad available for other things. Your scratchpad and home node are both maintained from your user information page so it's pretty easy to move from one to the other.

    90% of every Perl application is already written.
    dragonchild
Re: Personal Nodelet Maintenance
by zby (Vicar) on Dec 04, 2003 at 16:49 UTC
    As an alternative to the Personal Nodelet you can use your browser bookmarks to save links for useful information. The browser for sure have much superior mechanisms for managing bookmarks.

    This only applys if you browse mostly from one computer and browser of course.

Re: Personal Nodelet Maintenance
by dominix (Deacon) on Dec 29, 2003 at 10:30 UTC
    when one walk around in the monastery, looking for inspiration, adding things in the Personnal Nodelet||PN is so easy that it quickly get full. so from time time to time I reorganise these links, compacting titles of node this way: I put in user setting in the add zone the links of 3 or 4 lines of my PN with just one significant word
    for example to manage my node I've got this in one line
    <a HREF="/index.pl?node_id=306473">me</a> <a HREF="/index.pl?displayty +pe=edit&node_id=306473">stuff</a> <a HREF="/index.pl?node=user%20sett +ings">settings</a> <a HREF="/index.pl?node_id=108949&user=dominix">Pa +d</a> <a HREF="/index.pl?node_id=43037">shortcuts?</a>
    which look like me stuff settings Pad shortcuts?
    try it with your hown node #
    or another example
    <a HREF="/index.pl?node_id=1322">debug</a> <a HREF="/index.pl?node_id= +69927">Refs</a> <a HREF="/index.pl?node_id=252477">POD</a> <a HREF="/ +index.pl?node_id=216602">Cheat</a> <a HREF="/index.pl?node_id=perlbot +">OO</a> <a HREF="/index.pl?node_id=224666">Pack</a>
    which give a single line of helpfull links instead of six
    debug Refs POD Cheat OO Pack
    of course it's just nice looking, it keep the same amount of space in the database, but it is the begining of a classification.
    just my 2 cents
    --
    dominix

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (8)
As of 2024-04-19 13:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found