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 / 1464
1463  |  1465
Subject: 
Re: GUI LUGNET streaming news client in Java (Was: Pseudo-streaming live news (was: Re: Monitor Page))
Newsgroups: 
lugnet.off-topic.geek
Date: 
Sat, 1 Apr 2000 07:13:58 GMT
Highlighted: 
! (details)
Viewed: 
2332 times
  
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!

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:

   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.

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.)

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...?

--Todd



Message has 2 Replies:
  Re: GUI LUGNET streaming news client in Java (Was: Pseudo-streaming live news (was: Re: Monitor Page))
 
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))': (...) hmmm... good point - though doesn't the login cgi end (...) (24 years ago, 3-Apr-00, to lugnet.off-topic.geek)
  Re: GUI LUGNET streaming news client in Java (Was: Pseudo-streaming live news (was: Re: Monitor Page))
 
(...) Oh! Two other thing about the above... First, don't worry about passing multiple data points for a single article -- only the last one listed is used. The simplest thing to do for queueing up outgoing ratings is probably just to write them out (...) (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))
 
In lugnet.off-topic.geek, Jeremy H. Sproat writes: bite? (...) or, have it connect to your spooling message server... (...) nope, though Todd said it's possible to have it in the avid.cgi output... I was thinking of how we could remotely vote... (...) (24 years ago, 29-Mar-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