Would that be well handy?

Yes   2 votes - 66 %
No   1 vote - 33 %
 
3 Total Votes
DIY by yicky yacky (2.00 / 0) #1 Sun Nov 05, 2006 at 12:22:19 PM EST
  • Log in, using a browser
  • Look at your cookies for hulver.com
  • Find the one called hulver-scoophost-com_session. Its content is your sesssion ID and looks uncannily like an MD5 hex-string (e.g. '8709958767a8b3a1cc04ab713505c57').
  • Write some code that grabs any page on which your 'new replies' would be shown (e.g. comments, font page, diaries, user info - the one with the least redundant info) using something like python, perl, ruby, php, java etc. (something with HTTP convenience code already written - the last thing you want is to mess around directly with sockets and char buffers),making sure you supply the requisite cookie info also.
  • Parse the returned string for the <div> with an id of 'hotlist-flex-replies'.
  • Parse the div in question in as complex or simple a fashion as you like. The nonexistence of the string 'No New Replies to your Comments' will probably at least indicate that you have some.

It all seems like a lot of hard work, though, doesn't it? Besides, you'll miss most of the interesting babble not directed at you.


----
Done.


It'd be less work to just build it into Scoop by priestess (2.00 / 0) #2 Sun Nov 05, 2006 at 02:27:11 PM EST
If I already had spent the time to learn how to hack on Scoop some. Plus, then it'd be useful to a lot more people than just me.

Still, you know, I'm not gonna force anyone into anything. It's just an idea for the idea-heap. I've got a whole bunch of 'em for the software I do already hack on.

I miss out on a lot of stuff everywhere, only so much time in a day, if I can better organise it I can get through it faster and then there's time for more.

Pre..........
---------
Yes! The Conspiracy Really Exists...
[ Parent ]

nah, wget should be enough by martingale (2.00 / 0) #6 Mon Nov 06, 2006 at 02:52:38 AM EST
There's a 5 line shell script to shebang it, but this comment is too small to contain it. Besides, it uses grep.
--
$E(X_t|F_s) = X_s,\quad t > s$
[ Parent ]

It would be an expensive query to use as an RSS by theantix (2.00 / 0) #3 Sun Nov 05, 2006 at 03:20:19 PM EST
Then again, you use it when you load every page so what the hell do I know?
____________________________________
I'm sorry, but your facts disagree with my opinion.


Possibly by priestess (2.00 / 0) #4 Sun Nov 05, 2006 at 05:41:47 PM EST
Presumably it could be cached for as long as a piece of string though, only invalidated with a page-view.

But I also know nothing about Scoop really. I treid to install it once, but it turns out it doens't work with Apache2 anyway and I'm hardly gonna downgrade my web server.

Pre........
---------
Yes! The Conspiracy Really Exists...
[ Parent ]

yes, of course by theantix (4.00 / 1) #5 Sun Nov 05, 2006 at 06:39:43 PM EST
It could be cached to memory or even to file on a periodic basis, but given that your hotlist refreshes it each pageview the value of a cached rss feed would be pretty low I think.

As for your other point, scoop should work with Apache2 now.  I got it working with apache2 eons ago in another lifetime, and I handed the patchset off a few times -- my understanding is that something was going to finally hit the tree with apache2 support a while ago.

I hear you though, not having Apache2 support is a good reason for a lot of people not to run scoop.  The problem was not with lazy scoop programmers but actually with problems with mod_perl2 -- end result is the same though, most people aren't going to downgrade their Apache no matter whose "fault" it is.
____________________________________
I'm sorry, but your facts disagree with my opinion.
[ Parent ]

Not expensive by hulver (2.00 / 0) #7 Mon Nov 06, 2006 at 03:34:14 AM EST
Comment replies go into a separate table now, so I'm not querying the comment table all the time.

Also, I've still not managed to get scoop working with Apache 2. Mostly because I can't get any mod_perl working with Apache 2 right now. I gave up and went back to 1.
--
smart, pretty, sane. pick two - georgeha
[ Parent ]

talk to ct about apache2 by theantix (2.00 / 0) #8 Mon Nov 06, 2006 at 04:02:18 PM EST
I handed him my apache2 patches and I think he made good use of them.  Apache2 and mod_perl2 work from debian packages now, except that mod_perl2 is last I checked poorly maintained and documented.  PHP may suck for a lot of reasons, but at least enough people use it that it's functional with current software.

Oh, and good to hear about the comment replies.  I imagine that it's still a pretty massive table though but if you index it properly I suppose it's all good eh?
____________________________________
I'm sorry, but your facts disagree with my opinion.
[ Parent ]

Not that big by hulver (2.00 / 0) #9 Mon Nov 06, 2006 at 04:51:12 PM EST
1700 records in a table that's mostly ints.
--
smart, pretty, sane. pick two - georgeha
[ Parent ]

Right by hulver (2.00 / 0) #10 Wed Nov 08, 2006 at 09:42:01 AM EST
There you go.
--
smart, pretty, sane. pick two - georgeha


It's a bit primitive right now by hulver (2.00 / 0) #11 Wed Nov 08, 2006 at 09:43:50 AM EST
It doesn't show the content of the comment in the RSS feed, or anything other than the subject really.

If you've got any comments on how to improve it, let me know.
--
smart, pretty, sane. pick two - georgeha
[ Parent ]

Wicked by priestess (2.00 / 0) #12 Thu Nov 09, 2006 at 05:23:07 AM EST
Thank you.

The feed has no title, which is presumably fairly easy to fix, and at the moment it has no entries which is fair becasue there's no replies to my comments right now. Have to see how it works as we go on.

Cheers dude.

Pre............
---------
Yes! The Conspiracy Really Exists...
[ Parent ]

It does have a title by hulver (2.00 / 0) #13 Thu Nov 09, 2006 at 08:38:00 AM EST
It should be "Replies to usernames comments"
--
smart, pretty, sane. pick two - georgeha
[ Parent ]

Ahha by priestess (2.00 / 0) #14 Thu Nov 09, 2006 at 08:43:56 AM EST
I see, just actually looked at the URL for the first time. It's http://www.hulver.com/scoop/rss_replies/ which hasn't got my username in it which means it's using my cookies to know who's info to grab.

Only, unforunately, I use an online RSS reader which  obviously doens't have my cookies.

Damn. That'll be why there's no title then, it's probably throwing an error even without the cookies set.

Pre..........
---------
Yes! The Conspiracy Really Exists...
[ Parent ]

Ah yes. by hulver (2.00 / 0) #15 Thu Nov 09, 2006 at 09:38:16 AM EST
I'm not letting people see other peoples outstanding replies.

That would be impolite.
--
smart, pretty, sane. pick two - georgeha
[ Parent ]

Furry Muff by priestess (2.00 / 0) #16 Fri Nov 10, 2006 at 05:46:18 AM EST
Anyone who was really interested could gather the data with a robot of course, but that doens't mean you should make it easy for 'em.

Oh well. Was worth a try. Cheers anyway :)

Pre.........
---------
Yes! The Conspiracy Really Exists...
[ Parent ]

No they couldn't by hulver (2.00 / 0) #17 Fri Nov 10, 2006 at 06:07:44 AM EST
You can't tell if a person has read a comment or not, unless you are that person.
--
smart, pretty, sane. pick two - georgeha
[ Parent ]

Ah by priestess (2.00 / 0) #19 Fri Nov 10, 2006 at 07:46:55 AM EST
Yeah, that's true. But the feed doesn't have to have that information of course, my RSS reader will take care of that bit. The feed would, ideally, just list the last dozen or so replies sorted by date I guess.

Pre..........
---------
Yes! The Conspiracy Really Exists...
[ Parent ]

Eh? by hulver (2.00 / 0) #20 Sat Nov 11, 2006 at 09:10:16 AM EST
The feed only contains comments that you haven't read yet.

That's sort of it's purpose in life.

So without that information, the feed is empty.
--
smart, pretty, sane. pick two - georgeha
[ Parent ]

If it contained the last 20 of 'em posted by priestess (2.00 / 0) #21 Sat Nov 11, 2006 at 12:00:37 PM EST
Then my RSS reader would automatically disguard the ones I've already read, it only presents me with new things in the feed. That's kinda the RSS readers purpose in life too see ;)

Pre..........
---------
Yes! The Conspiracy Really Exists...
[ Parent ]

Ah by hulver (4.00 / 1) #22 Sat Nov 11, 2006 at 06:36:27 PM EST
I don't store that though. I only store unread comments, and delete the record when you read them.
--
smart, pretty, sane. pick two - georgeha
[ Parent ]

I could by hulver (2.00 / 0) #18 Fri Nov 10, 2006 at 06:11:06 AM EST
Add a preference that you could set to say "I don't care if people see my unread comments", and then enable anonymous viewing of your replies if that pref is set.

I'll look into it.
--
smart, pretty, sane. pick two - georgeha
[ Parent ]