To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.off-topic.geekOpen lugnet.off-topic.geek in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Off-Topic / Geek / 1470
1469  |  1471
Subject: 
Re: GUI LUGNET streaming news client in Java (Was: Pseudo-streaming live news (was: Re: Monitor Page))
Newsgroups: 
lugnet.off-topic.geek
Date: 
Mon, 3 Apr 2000 15:10:02 GMT
Viewed: 
2345 times
  
On Sat, 1 Apr 2000 07:13:58 GMT "Todd Lehman" <lehman@javanet.com> wrote
concerning 'Re: GUI LUGNET streaming news client in Java (Was: Pseudo-streaming live news (was: Re: Monitor Page))':
In lugnet.off-topic.geek, Dan Boger writes:
I was thinking of how we could remotely vote...  perhaps if there was a cgi
on lugnet that would accept remote votes, authunticating with the same code
that's on the cookie...  then to vote, the newsreader will have to send
something like "GET
http://www.lugnet.com/news/vote/?lugnet.off-topic.geek:1434&vote=100
&ID=<cookieinfohere>"
and it'll vote for you...

that make sense?

Nope, that would put sensitive data into the httpd logs!

hmmm... good point - though doesn't the login cgi end up in the logs
right now anyway, in plaintext?


Gonna hafta pass your cookie the regular way, not part of GET.

nod, shouldn't be a problem actually...  except, I wonder where I'll
get the cookie in the first place - I might be able to dig it out of
netscape/mozilla cache... otherwise I'll have to have the script log
in to get the cookie....


In addition to your cookie, here's what you wanna send via HTTP POST to
/news/rate.cgi, basically:

   RATE~newsgroup1:artnum1=rating1
   RATE~newsgroup2:artnum1=rating2
   RATE~newsgroup3:artnum1=rating3
   etc.

For example:

   RATE~lugnet.off-topic.geek:1434=100
   etc.

Also, please set the referring page (HTTP_REFERER) to the empty string so
that your HTTP request results in a very tiny confirmation page rather than
a normal article-view page.

nod, grok.


It also might be a good idea to spool up your outgoing ratings and only
dispatch them to rate.cgi after collecting a few (say, 5 or 10) data points
or after 2-3 minutes have passed, whichever happens first.  (You'll want
the part that calls rate.cgi to be on a separate thread anyway so that your
main UI thread stays responsive.)

yup, very good idea.


What keys are you guys using for making ratings?  It might be kinda neat to
be able to hit the number keys "1" through "9" for 10 through 90, and "0"
and ")" for 0 and 100...and have it advance to the next article on that
single keystroke...?

(nothing yet, just thinking)

but I'll prob try to stay within the numpad realm, for easy
browsing... so 0-9 and * for 100%... :)

Dan



Message has 1 Reply:
  Re: GUI LUGNET streaming news client in Java (Was: Pseudo-streaming live news (was: Re: Monitor Page))
 
(...) No, that's passed via POST, not GET. (...) Should be pretty easy to find it in your cookies.txt file...(?) (...) Ahhh, neat-o: lots of numpad keys. I like * for 100! :) The . key (labeled Del on most keyboard today) or the / key might also (...) (24 years ago, 3-Apr-00, to lugnet.off-topic.geek)

Message is in Reply To:
  Re: GUI LUGNET streaming news client in Java (Was: Pseudo-streaming live news (was: Re: Monitor Page))
 
(...) Nope, that would put sensitive data into the httpd logs! Gonna hafta pass your cookie the regular way, not part of GET. In addition to your cookie, here's what you wanna send via HTTP POST to /news/rate.cgi, basically: (...) (24 years ago, 1-Apr-00, to lugnet.off-topic.geek) ! 

66 Messages in This Thread:























Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR