🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
7 messages
7 total messages Started by CousinStanley Mon, 13 Sep 2004 02:10
[xpn] : Python-Based News Reader
#155537
Author: CousinStanley
Date: Mon, 13 Sep 2004 02:10
34 lines
1529 bytes
Greetings .... 

  Just trying out a python-based news reader
  called  xpn  and wondering if anyone else
  might have any comments about it .... 

       http://sourceforge.net/projects/xpn 
       [ Download 98 KB ]

  Requires Python 2.3 and GTK-2 but it doesn't 
  take much to get it going, just un-pack and
  fire it up .... 

      $ python xpn.py

  My comments so far .... 

      o Decent GUI
      o Easy to configure  
      o Article searches may be limited,
         but I may need more experience with it     
      o Retrieving articles seems a bit slow


-- 
Cousin Stanley
Human Being
Phoenix, Arizona


  

    
Re: [xpn] : Python-Based News Reader
#155566
Author: Nemesis
Date: Mon, 13 Sep 2004 18:32
45 lines
2315 bytes
Mentre io pensavo ad una intro simpatica "<CousinStanley@HotMail.Com>"
scriveva:

> Greetings .... 

Hi, I'm the author. :-)

>   Just trying out a python-based news reader
>   called  xpn  and wondering if anyone else
>   might have any comments about it .... 
>        http://sourceforge.net/projects/xpn 
>        [ Download 98 KB ]
>
>   Requires Python 2.3 and GTK-2 but it doesn't 
>   take much to get it going, just un-pack and
>   fire it up .... 
>
>       $ python xpn.py

There is also a binary installer for windows. (5Mbyte)
With this version you don't need to download and install Python and
GTK2.

>   My comments so far .... 
>       o Decent GUI
>       o Easy to configure 

Thank you...

>       o Article searches may be limited,
>          but I may need more experience with it     

Why do you think it is limited? What are you missing?

>       o Retrieving articles seems a bit slow

Hmm maybe, the article retrieving is not so optimized. Have you tried it
online or with a local newssever?

-- 
A .45 beats a royal flush any time.
 
 |\ |       |HomePage   : http://nem01.altervista.org
 | \|emesis |XPN (my nr): http://xpn.altervista.org
Re: [xpn] : Python-Based News Reader
#155649
Author: Cousin Stanley
Date: Tue, 14 Sep 2004 18:04
100 lines
3544 bytes
Cousin Nemesis ....

  Thanks for providing  xpn  and  thanks for the reply ....
  
  I'm a  HUGE  Python fan, also a Python coder,
  and little would make me happier than seeing
  a Python-Based NewsReader widely accepted
  and successfully used .... 


>>    o Article searches may be limited,
>>      but I may need more experience with it     

> Why do you think it is limited ?  

  The article search function seems to be limited 
  to a  SINGLE  article .... 
  
  Is this so ?

 
> What are you missing ? 

    o Search  ALL  articles, not just 1
    o Search  Subjets

  Have I missed something obvious ?
      
    
>>  o Retrieving articles seems a bit slow

> Hmm maybe, the article retrieving is not so optimized. 
> Have you tried it online or with a local newssever ?

  I've only started the program while online
  directly from the command-line ....
  
      python xpn.py 
      
  This seems to be  ONLINE  but I'm not sure 
  about the terminology, and I don't have 
  a local NewsServer set up, just smtp via
  my ISP .... 
  
  The delays here in clicking on a header
  and having the article show up in the article pane
  are on the border-line of acceptability and many
  would probably deem it un-acceptable .... 
  
  I looked at a bit of the Python source code,
  and noticed that you use cPickle protocol 1
  for storing the files .... 
  
  Using cPickle protocol 2 might help,
  but that is only a guess based on
  some previous experience with pickling 
  a few config files ....
  

A few more comments/questions/suggestions .... 

  When using  Manage Groups  it seems that the Group List
  is being re-built each time I click on  Manage Groups .... 
  
  Will using  File/Export/News Source  circumvent this
  and then subseqently only check for  NEW  groups ?
  
  Would a  File/Import/News Source  then be required ?
  
  
  When adding groups, it might help the user
  to display a  progress bar  instead of the
  simple phrases that you now use in the status bar
  and that only change once at the on-set .... 
  
  Otherwise, there may be an impression 
  that the application is hung .... 
  
  It might be worth considering only adding the group
  to the groups list at this point in  Manage Groups 
  and delaying the group building until the user
  actually tries to enter the group back in the main GUI ....
  
  
Date Fields .... 

  Is it possible to display and subsequently sort
  the date fields in the header pane by Year-Month-Day
  instead of Day-Month-Year ? 
  
  The Day-Month-Year sorts are  VERY  confusing to me ....

  
Again, thanks for providing xpn ....


-- 
Cousin Stanley
Human Being
Phoenix, Arizona    
Re: [xpn] : Python-Based News Reader
#155664
Author: Nemesis
Date: Tue, 14 Sep 2004 19:36
123 lines
5397 bytes
Mentre io pensavo ad una intro simpatica "Cousin Stanley" scriveva:

[XPN]
>>>    o Article searches may be limited,
>>>      but I may need more experience with it     
>> Why do you think it is limited ?  
>
>   The article search function seems to be limited 
>   to a  SINGLE  article .... 
>   Is this so ?

Hmmm ... if continue pressing "Forward" XPN will find next articles
that match you search.


>> What are you missing ? 

>     o Search  Subjets
>   Have I missed something obvious ?

I think so :-)
In the "Find Article" window you can perform a search on these fields:
From,Subject,Message-ID,References,Body.
You can perform a search in each of these fields with a plain string or
with a regular expression, and then you can combine the results with AND
or OR logic.

>>>  o Retrieving articles seems a bit slow
>> Hmm maybe, the article retrieving is not so optimized. 
>> Have you tried it online or with a local newssever ?
>
>   I've only started the program while online
>   directly from the command-line ....
>   
>       python xpn.py 
>       
>   This seems to be  ONLINE  but I'm not sure 
>   about the terminology, and I don't have 
>   a local NewsServer set up, just smtp via
>   my ISP .... 

You used it online if you connected to a remote nntp server.

>   The delays here in clicking on a header
>   and having the article show up in the article pane
>   are on the border-line of acceptability and many
>   would probably deem it un-acceptable .... 
>   
>   I looked at a bit of the Python source code,
>   and noticed that you use cPickle protocol 1
>   for storing the files .... 
>   
>   Using cPickle protocol 2 might help,
>   but that is only a guess based on
>   some previous experience with pickling 
>   a few config files ....

I already use the binary dump. The problem is in another method, I'm
thinking for a workaround.

> A few more comments/questions/suggestions .... 
>
>   When using  Manage Groups  it seems that the Group List
>   is being re-built each time I click on  Manage Groups .... 

Yes, it's true, and it is very slow. This is another thing I have to
fix.

>   Will using  File/Export/News Source  circumvent this
>   and then subseqently only check for  NEW  groups ?
>   Would a  File/Import/News Source  then be required ?

No. "Export Newsrc" creates a file (newsrc) that contains informations
on the groups you follow and the articles you have already read. This
file has a "standard" format, you can use it with other newsreader, so
you will have the same groups subscribed, the same articles read ...

>   When adding groups, it might help the user
>   to display a  progress bar  instead of the
>   simple phrases that you now use in the status bar
>   and that only change once at the on-set .... 

I used the progress bar in this way in the past, but I changed my mind
because it was very slow.

>   It might be worth considering only adding the group
>   to the groups list at this point in  Manage Groups 
>   and delaying the group building until the user
>   actually tries to enter the group back in the main GUI ....

This would require to change a lot of things, and at the moment I don't
have time :-/

> Date Fields .... 
>
>   Is it possible to display and subsequently sort
>   the date fields in the header pane by Year-Month-Day
>   instead of Day-Month-Year ? 

No, at the moment you can only get the Day-Mont-Year format. But I can't
understand wich is the difference between a sort on Y-M-D and another
one on D-M-Y. A date is a date, and you always have one date that is
greater than the other one.
Maybe you are confused by the fact that the sort is made on a thread
base. I.e. the first threads are sorted (using the first article of the
thread) and then the article are sorte inside the thread.


>   The Day-Month-Year sorts are  VERY  confusing to me ....

It's also a cultural confusion, in Italy we never use YMD dates, we
alway use DMY :-D

> Again, thanks for providing xpn ....

Thank you for you feedback.

-- 
Always drink upstream from the herd.
 
 |\ |       |HomePage   : http://nem01.altervista.org
 | \|emesis |XPN (my nr): http://xpn.altervista.org
Re: [xpn] : Python-Based News Reader
#155815
Author: Cousin Stanley
Date: Sat, 18 Sep 2004 00:09
123 lines
6148 bytes
On 2004-09-14, Nemesis <nemesis@nowhere.invalid> wrote:
> Mentre io pensavo ad una intro simpatica "Cousin Stanley" scriveva:
>
> .... 
>
> No, at the moment you can only get the Day-Mont-Year format. 
>
> But I can't understand wich is the difference between 
> a sort on Y-M-D and another one on D-M-Y. A date is a date, 
> and you always have one date that is greater than the other one.
>
> Maybe you are confused by the fact that the sort is made on a thread
> base. I.e. the first threads are sorted (using the first article of the
> thread) and then the article are sorte inside the thread.
>
>
>>   The Day-Month-Year sorts are  VERY  confusing to me ....
>
> It's also a cultural confusion, 
>
> in Italy we never use YMD dates, 
> we alway use DMY :-D

Cousin Nemesis ....
  
  Sorry for the delay but it took me a couple of days
  to figure out how I might better explain the confusion
  I have with the date sorts in xpn .... 
  
  In xpn when a group is first selected and the list of headers
  is presented, they seem to be in chronological order from oldest
  to newest .... 
  
  However, if the header list is re-sorted
  by clicking on the  Date  label in the header pane,
  the list no longer seems to be in chronological order,
  e.g.  the months are mixed up .... 
  
  In my mind and in your mind the difference
  in  Da-Mo-Year  and  Year-Mo-Da  formats 
  is only cultural and I could probably adapt 
  to the former after using it for a while .... 
  
  However, common sort algorithms don't adapt quite as easily
  as a human might and will not render a list of dates 
  into  *chronological order*  unless presented with data
  that is pre-formatted in just the right manner .... 
  
  The necessary input date format for a chronological order sort 
  entails not only the  [ Da-Mo-Year , Year-Mo-Da ] order, 
  but the number of digits used to specify the Month and Day as well ....
  
  That is, Month and Day can be both be coded as either 1 or 2 digits,
  where the 2 digit codes are zero-filled as required when <= 9 .... 
  
      [ 1 :  01 , 2 :  02 , 3 :  03 .... ]
   
  As humans, we can cope with either 1 or 2 digits, no probelm,
  but when sorting dates, the 1-digit codes and 2-digit zero-filled
  code behave quite differently ....

  Consider the following results from sorting a list
  of randomly generated dates that are formatted 
  in 4 different ways ....
  
        Year-M-D        D-M-Year        Year-Mo-Da    Da-Mo-Year

        2004-1-10      10-1-2004        2004-01-10    01-03-2004
        2004-1-10      10-1-2004        2004-01-10    04-07-2004
        2004-6-21      21-6-2004        2004-01-18    05-09-2004
        2004-4-20      20-4-2004        2004-02-11    06-12-2004
        2004-9-28      28-9-2004        2004-02-14    07-12-2004
        2004-6-14      14-6-2004        2004-02-24    08-10-2004
        2004-10-9      9-10-2004        2004-03-01    09-10-2004
        2004-12-15    15-12-2004        2004-03-14    09-10-2004
        2004-2-14      14-2-2004        2004-03-16    10-01-2004
        2004-8-15      15-8-2004        2004-04-15    10-01-2004
        2004-7-16      16-7-2004        2004-04-20    10-06-2004
        2004-4-15      15-4-2004        2004-04-27    11-02-2004
        2004-2-24      24-2-2004        2004-05-25    11-11-2004
        2004-11-11    11-11-2004        2004-06-10    11-11-2004
        2004-12-6      6-12-2004        2004-06-14    14-02-2004
        2004-4-27      27-4-2004        2004-06-21    14-03-2004
        2004-10-8      8-10-2004        2004-07-04    14-06-2004
        2004-1-18      18-1-2004        2004-07-16    15-04-2004
        2004-6-10      10-6-2004        2004-07-27    15-08-2004
        2004-7-27      27-7-2004        2004-08-15    15-12-2004
        2004-5-25      25-5-2004        2004-09-05    16-03-2004
        2004-11-11    11-11-2004        2004-09-19    16-07-2004
        2004-7-4        4-7-2004        2004-09-28    18-01-2004
        2004-9-5        5-9-2004        2004-10-08    19-09-2004
        2004-3-1        1-3-2004        2004-10-09    20-04-2004
        2004-12-7      7-12-2004        2004-10-09    21-06-2004
        2004-9-19      19-9-2004        2004-11-11    24-02-2004
        2004-10-9      9-10-2004        2004-11-11    25-05-2004
        2004-2-11      11-2-2004        2004-12-06    27-04-2004
        2004-3-14      14-3-2004        2004-12-07    27-07-2004
        2004-3-16      16-3-2004        2004-12-15    28-09-2004

  In columns 1 and 2, where 1-digit Month and Day format is used,
  and the dates are mirror images, the columns are sorted 
  into exactly the same sequence ....
  
  However, neither column 1 or column 2 is in chronological order ....
  
  In columns 3 and 4, where 2-digit Month and Day format is used,
  column 3 is in chronological order, but column 4 is not,
  e.g.  the months are mixed ....
  
  The Python code that generated the above lists
  is at .... 
  
      http://fastq.com/~sckitching/Python/dates_sort.py
      [ 3.3 KB ]

  Hopefully, this better explains that I don't think
  all of my confusion is totally cultural ....

    
-- 
Cousin Stanley
Human Being
Phoenix, Arizona
Re: [xpn] : Python-Based News Reader
#155834
Author: Nemesis
Date: Sat, 18 Sep 2004 08:56
55 lines
3262 bytes
Mentre io pensavo ad una intro simpatica "Cousin Stanley" scriveva:

>
> Cousin Nemesis ....
>   
>   Sorry for the delay but it took me a couple of days
>   to figure out how I might better explain the confusion
>   I have with the date sorts in xpn .... 

LOL :-)
   
>   In xpn when a group is first selected and the list of headers
>   is presented, they seem to be in chronological order from oldest
>   to newest .... 
>   
>   However, if the header list is re-sorted
>   by clicking on the  Date  label in the header pane,
>   the list no longer seems to be in chronological order,
>   e.g.  the months are mixed up .... 

OK, you are right, I've just checked, and the sorting is not working.
I've to look for the reason.


>   However, common sort algorithms don't adapt quite as easily
>   as a human might and will not render a list of dates 
>   into  *chronological order*  unless presented with data
>   that is pre-formatted in just the right manner .... 
[cut]

You explained the problem very well, however I solved the problem. When
I introduced the Date sorting, in order to avoid such problems like
those you explained I decided to convert every date in "unix time", i.e.
in seconds from a fixed time (on *nix the starting time is 1/1/1970). In
this way I have a single absolute number representing the date, and I
can perform a sort quickly.
I written the code, changed the methods and so on ... but I forgot to
update the line that tells to TreeView wich value it has to use in order
to sort using the dates ^__^;;

If you want to try by yourself open the file xpn_src/Thread_Pane.py
go to the line number 137 and change _id(3) in _id(6)
And now XPN should sort the date correctly :-)
   
>   Hopefully, this better explains that I don't think
>   all of my confusion is totally cultural ....

Yes, thank you very much.

-- 
Early to bed, early to rise makes people suspicious.
 
 |\ |       |HomePage   : http://nem01.altervista.org
 | \|emesis |XPN (my nr): http://xpn.altervista.org
Re: [xpn] : Python-Based News Reader
#155891
Author: Cousin Stanley
Date: Sun, 19 Sep 2004 12:48
19 lines
1399 bytes
On 2004-09-18, Nemesis <nemesis@nowhere.invalid> wrote:

> ....    
>
> If you want to try by yourself open the file xpn_src/Thread_Pane.py
> go to the line number 137 and change _id(3) in _id(6)
> And now XPN should sort the date correctly :-)

Cousin Nemesis .... 

  Thanks .... 
  
  I'm glad there was an easy fix available ....
   

-- 
Cousin Stanley
Human Being
Phoenix, Arizona
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads