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

'Nodes you wrote' root revisited

by jethro (Monsignor)
on Aug 04, 2008 at 16:09 UTC ( #702099=monkdiscuss: print w/replies, xml ) Need Help??

This is a plea to provide something similar to 'nodes you wrote' but with root node links

My usual "work flow" with PM in the morning is that I use 'Nodes you wrote' to locate the threads I posted in the last one or two days. Either to answer further questions of the thread poster or to read and learn from suggestions made by others in the thread. And (with shame I confess) look at the xp to see if my node meets approval or not. At the moment this means open up my nodes of the last one or two days in separate tabs and then go through each tab and click the root node link "in thread ...". Obviously I'm not interested in what I wrote but the rest of the thread.

I might be wrong, but this seems to me to be the main use for 'nodes you wrote'. The only other use that comes to mind is 'Didn't I write about this already, lets find that node', but that would not be something you'd need to do every day.

A similar suggestion (587896) was already posted at the end of 2006 (at least that was the only one I found with Super Search). The scripts posted there by ikegami and tye seem redundant by now. I suspect the root node link on every sub-node came after that(!?), maybe inspired by that node. But the basic suggestion was not implemented obviously

Now my proposal would be to either:

1) Change 'nodes you wrote' to have a root node link on every line and show fewer lines per default (20 or less). If I'm right about the main use of 'nodes you wrote' then this would be overall less strain on the servers because of fewer node lines to display and fewer web server accesses

2) even better a new node similar to 'nodes you wrote' but showing only the threads where you posted to in the last 2 days. This node could be called 'My recently active threads'.

2a) Maybe even with a list of nodes that were posted after your node (similar to 'recently active threads') so you can see immediately which nodes in these threads you haven't seen yet (courtesy of browser link highlighting).

I often see that a thread in SoPW becomes stale quickly and followup questions often get no answers. Such a cross between 'nodes you wrote' and 'recently active threads' as proposed in 2a could improve that a little because monks can keep track of changes/care for/look after those threads they know something about and ignore others where the question is about module Obscure::Never::Used::It.

UPDATE/SUMMARY:

It seems there are two solutions to the root link problem: Using a preloaded super search or enhancing 'nodes you wrote' aka PMUS with javascript provided by ikegami/tye/shmem. The latter is nicer since it also shows node rep, but for anyone to know it he has to first find this or the other thread mentioned above (as with all monasteries you have to work to transcend into a higher plane of existence).

jdporters suggestion of enhancing either Recently Active Threads or Super Search with features of the other to get a working automatic watch list is great and I hope turns up some time on the todo list of one of the site devs. Meanwhile there is the semi-automatic watcher which is useful for threads you have a high interest in, but a bit too much to type for watching every thread you were active on.

Replies are listed 'Best First'.
Re: 'Nodes you wrote' root revisited
by shmem (Chancellor) on Aug 04, 2008 at 19:32 UTC
    The scripts posted there by ikegami and tye seem redundant by now. I suspect the root node link on every sub-node came after that(!?), maybe inspired by that node.

    Read ikegami's reply again. It is titled Free Nodelet Hack: Add parent & root links to nodes in 'Nodes You Wrote'. There. Nodes You Wrote. Which means it is for Super Search.

    update: tye's code completed with XPath expressions to rewrite links in Perl Monks User Search:

    <script type="text/javaScript"> // <!-- function xq (query) { return document.evaluate(query,document,null,XPathResult.ORDERED_N +ODE_SNAPSHOT_TYPE,null); } function xl (query) { var r = xq(query); var a = new Array; for ( var i=0 ; i < r.snapshotLength; i++ ) a.push(r.snapshotItem( +i)); return a; } if (xl("//body[@id='id-6364']")[0]) { // only for super search var list = xl("/html/body[@id='id-6364']/center/table/tbody/tr/td[ +1]/table[@id='writeups']/tbody/tr/td[2]/a"); for (var i in list) { var link = list[i]; var container = document.createElement('span'); container.innerHTML = ( '' + '<a href="' + link.href + ';_redir=root">r</a>' + ' ' + '<a href="' + link.href + ';_redir=parent">p</a>' + '&nbsp;&nbsp;' ); link.parentNode.insertBefore(container, link); } } var params= window.location.search; if( 0 <= params.indexOf( ";_redir=root" ) ) { window.location.search= "?node_id=`root_id`"; } else if( 0 <= params.indexOf( ";_redir=parent" ) ) { window.location.search= "?node_id=`parent_id`"; } else if( 0 <= params.indexOf( ";_redir=author" ) ) { window.location.search= "?node_id=`author_id`"; } --></script>

    That still loads your node first, but redirects it to its parent or root node, after loading, which saves you a click.

    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
      Sadly no. Posted your code into my nodelet, can see the free nodelet (so it's activated), but neither in super search nor 'nodes you wrote' do I get redirected after klicking on the node link.

      Is it me or the script?

      I tried tye's code by the way and didn't put enough attention to the sentence '... is left as an exercise'. It is only now that I grasp what that sentence was about.

      UPDATE: The script is working now. It probably was me, not noticing the links.

Re: 'Nodes you wrote' root revisited
by kyle (Abbot) on Aug 04, 2008 at 16:52 UTC

    Here's a second. I often go through the same procedure as you to find other comments in threads I participated in recently. If there were a link to the root on each line, I'd be pounding that directly instead of jumping through my own node.

Re: 'Nodes you wrote' root revisited
by jdporter (Canon) on Aug 04, 2008 at 17:59 UTC

    There has been some reluctance to add features to the PMUS. The feeling has been that the more powerful PMUS is, the less it distinguishes itself from SS, and thus the less reason for its existence. Indeed, my first thought when I read your request was to suggest using SS; it already has the capability you want.

    However, PMUS currently has one nice feature lacking in SS — namely, reporting the reputation of your own nodes, when viewing "Nodes You Wrote". So my conclusion is to make a counter-proposal:
    Add reporting of node rep in SS (for those nodes you're allowed to see the rep of: your own nodes, and nodes you have voted on).

    Another thing I'd like to see added to the SS results listing is the number of replies.

    So now we're really talking about combining the display power of RAT with the search capabilities of SS...

    Between the mind which plans and the hands which build, there must be a mediator... and this mediator must be the heart.

      Very true. In the ideal case, we'd have a really improved SS with customizable output, thread view, and possibly a few simplified interfaces to called. This would require lots of more work though.

      Also, sorry I bring this up again, but it would also help a bit if you could watch threads you post to and other threads you're interested in.

      However, PMUS currently has one nice feature lacking in SS namely, reporting the reputation of your own nodes, when viewing "Nodes You Wrote".
      Besides the reputation and root node link, there are other differences when comparing NYW and SS:
      • NYW alternates the background color of the rows, which I prefer.
      • NYW wastes space on Node ID. To me, this is an implementation detail which should not appear in this search results summary.
      • Both SS and NYW include the date of node creation, but only NYW lists the time of node creation. I'd like to see the time listed.
      • Usability: NYW requires no setup, a saved SS requires setup.
      Replace Node ID with an SS-style root node link and NYW will be perfect! It's a great spot for it, too, as the SS-style root node link indicates the section where the node lives.

      Can you customize the column order and row highlighting in SS results? If not, that's why I'd like a modified NYW rather than reputation added to SS.

      (Cool, I just saw that from the results page you can save a Super Search for later access with one click!)

Re: 'Nodes you wrote' root revisited
by jettero (Monsignor) on Aug 04, 2008 at 17:34 UTC
    I would probably use this feature if it existed.

    -Paul

Re: 'Nodes you wrote' root revisited
by ysth (Canon) on Aug 04, 2008 at 17:35 UTC
    I'd like to see Recently Active Threads use of various flags ^vFAUPRC, with appropriate mouseover texts, used to the extent that makes sense in several other places. But not enough to have worked on it myself.
Re: 'Nodes you wrote' root revisited
by igelkott (Priest) on Aug 04, 2008 at 18:47 UTC
    ... not interested in what I wrote but the rest of the thread

    Might be oversimplifying but doesn't the /msg me when there's a reply to one of my posts setting in Message Settings take care of this? You get msg'ed by root whenever someone replies to one of your posts.

      No. I'm looking for other replies to things that I replied to (which are typically not my own nodes and therefore do not trigger a /msg to me when they receive replies that interest me).

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2021-05-15 18:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (150 votes). Check out past polls.

    Notices?