maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] GRead : yet another Google Reader application... (PyQt) (https://talk.maemo.org/showthread.php?t=60564)

fpp 2010-09-20 13:27

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Suggestion : at the top of libgreader.py, replace :

Quote:

import simplejson as json
with:

Quote:

try:
import json
except:
import simplejson as json
This way your code will run unchanged on Python > 2.5.

Just tried on my PC, it was the only change needed :-)

I need to understand how your "views" are designed, to see if I could make a simple one for Maemo4...

Twidi 2010-09-21 00:18

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Great time in Strasbourg :)

Used some time in the train to work a little on GRead, with some work on controls :
  • add context menu on each window, with actions available for the selected item plus the ones available on the window menu. Very useful in portrait mode (but the menu is long to appear on long press, i have an idea to tweak this, but... later !)
  • add more shortcuts :
    • J/N and K/P to move down/up in each list (just select the next/previous entry, without activating it, you can either use enter to activate it, or another shortcut to do an action on the item)
    • O to change the orientation (useless in portrait mode :D)
    • shift-A and shift-M on a selected feed in the feeds list to mark the feed as read (without asking confirmation !), same shortcuts as on the items list
  • libgreader now use the python json lib instead of simplejson if available (python >= 2.6. Note : it's python 2.5 on Maemo5, but it can be useful for other platforms)

The application if fully usable now, with all these controls, and with the "pseudo-offline" capabilities, i used it this week-end without network some times (or really poor bandwidth) and i had no problems at all, just sometimes long to fetch feeds content but it was attended.

And just to say... i'm thinking a lot about storage :)

Frank Banul 2010-09-21 03:00

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Hi Twidi,

I used Gread over the weekend. I like it. Consider making it a preference to turn off the self hiding header of each item. I suppose you would appreciate git pushes (not sure on the terminology)?

I have a question though. I changed it to sort by date, oldest first. But this needs a fetch of all outstanding items to work correctly. This seems to consume a lot of memory, at least the device feels sluggish when I have around 800 items fetched. Is there a way to ask Google for the oldest items? Then I can go back to fetching a subset of all outstanding items. I source dived for a bit but didn't see an obvious method to do this.

thanks,
Frank

fpp 2010-09-21 06:00

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Quote:

Originally Posted by Frank Banul (Post 821954)
Hi Twidi,
I used Gread over the weekend. I like it. Consider making it a preference to turn off the self hiding header of each item. I suppose you would appreciate git pushes (not sure on the terminology)?

Do you mean turn off the title itself, or turn off the self-hiding ?

fpp 2010-09-21 11:26

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Quote:

Originally Posted by Twidi (Post 821912)
Great time in Strasbourg :)
Used some time in the train to work a little on GRead, with some work on controls :
  • add context menu on each window, with actions available for the selected item plus the ones available on the window menu. Very useful in portrait mode (but the menu is long to appear on long press, i have an idea to tweak this, but... later !)
  • add more shortcuts :
    • J/N and K/P to move down/up in each list (just select the next/previous entry, without activating it, you can either use enter to activate it, or another shortcut to do an action on the item)
    • O to change the orientation (useless in portrait mode :D)
    • shift-A and shift-M on a selected feed in the feeds list to mark the feed as read (without asking confirmation !), same shortcuts as on the items list
  • libgreader now use the python json lib instead of simplejson if available (python >= 2.6. Note : it's python 2.5 on Maemo5, but it can be useful for other platforms)
The application if fully usable now, with all these controls, and with the "pseudo-offline" capabilities, i used it this week-end without network some times (or really poor bandwidth) and i had no problems at all, just sometimes long to fetch feeds content but it was attended.
And just to say... i'm thinking a lot about storage :)

All good stuff, thanks again ! Almost perfect now... almost :-)

hotzigetty 2010-09-21 11:42

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Has the app been packaged?? Is it there under extra-devel??

SallyJane 2010-09-21 14:11

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Quote:

Originally Posted by hotzigetty (Post 822241)
Has the app been packaged?? Is it there under extra-devel??

Yes, please can someone package this now ? :)

Frank Banul 2010-09-21 14:15

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Quote:

Originally Posted by fpp (Post 822011)
Do you mean turn off the title itself, or turn off the self-hiding ?

Remove it altogether. It's redundant, eats screen space, and the self hiding eats CPU effectively delaying you from beginning to read the content while it moves.

Please keep in mind that my opinion above is just that. No disrespect intended to this fine application.

Frank

fpp 2010-09-21 16:10

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Quote:

Originally Posted by fpp (Post 822214)
All good stuff, thanks again ! Almost perfect now... almost :-)

*Alert!*

If I'm not mistaken there is a regression in this version... all the new stuff you listed is there, but it seems all navigation has disappeared from the "post view": not only the keys (j/k/n/p) but also the "furtive buttons" don't work any more...

Is it only me ?

fpp 2010-09-21 16:25

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Quote:

Originally Posted by Frank Banul (Post 822386)
Remove it altogether. It's redundant, eats screen space, and the self hiding eats CPU effectively delaying you from beginning to read the content while it moves.
Frank

Frank, I fully agree with #1 and #3... but it leads me to the exactly opposite conclusion :-)

- yes, it takes some screen space, but it's often useful because some feeds have little to no content except the title. And for large posts with a lot of content you generally scroll the page anyway...

- it's only redundant because it's also in the window caption, only not so useful because you often see only a small part of it. Especially in portait mode, and of course when "scrolling marquee" is turned off (I also can't stand it :-).

- OTOH there is another useful bit of info that's often lacking from the "view post" page, especially when browsing through the "all posts from all feeds" list : the feed from which the current post came from. That name is generally shorter and would fit well in the caption.

So my personal preference (which I pompously call "the Fred mode") would be :

* feed name in the windows caption

* post title at top of page, as it is now, but not fading and scrolling with the rest...

Twidi 2010-09-21 20:37

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
i'll reply to you guys in few hours, not the time right now.

Just a word about the bug described by fpp, i did a quick update for this couple of hours ago

fpp 2010-09-22 19:33

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Hmm, there's been a lot going on today :-)

Just a quick question :

I grew tired of repeatedly downloading the Tar archive from Github, especially as it was often out of date (though less so, strangely than the Zip). Then untarring, renaming, etc.

So like you & grog I apt-get-installed git-core and learned the two commands needed to clone & update GRead on my N900 (first time I ever used a VCS :-).

Seems to work quite well, and makes it much easier to keep up.

The only unpleasant part is that the git-core package does not seem to be "optified" : apt-get pulled in about 7 Megs, and after that my free rootfs was down by roughly the same amount...

Is there any way around that ?

Twidi 2010-09-23 03:03

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Frank Banul : for the titles options i'll add some settings soon. For the sort by date , older first, i know it's possible with google reader but it's not actually possible with the lib i use. I put it on my todo and i'll check this later. (and of course you can propose path on github via your own fork)

hotzigetty & SallyJane : no, not packaged... i should do this quickly, really !

fpp : doni really don't know about the git package, sorry

Now, some news from GRead :
  • internal work to separate "basic" ui and special maemo5 one (which is based on the "basic" one and add only stuff like orientation, information boxes), with auto-detection of which one should be activated. It's now easier to add more views (fpp, you could look at this if you want to do a maemo4 view mode)
  • correct some bugs in navigation
  • change the O shortcut from "change orientation" to "open the currently selected category/feed/item". To change orientation the shortcut is now "shift-O"
  • change the color of the text in selected rows to the good one. grog, it was the only color that wasn't the good one, so now it should work in your theme)
  • add the "U" shortcut to the feed list to switch between all and unread only mode (this shortcut was already available in the item list)
  • set the tooltips of the arrows (item content view) to the titles of previous and next items. And hide these arrows when not needed
  • better count of unread on the feed list
  • resolve bug where friends items where also counted as shared items
  • handle more timeout errors (not sure, need more tests)

Only minor things (except the work on separating basic and maemo ui), but it's better day after day (i use it a lot, every day)

fpp 2010-09-23 08:14

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Quote:

Originally Posted by Twidi (Post 823990)
[*] internal work to separate "basic" ui and special maemo5 one (which is based on the "basic" one and add only stuff like orientation, information boxes), with auto-detection of which one should be activated. It's now easier to add more views (fpp, you could look at this if you want to do a maemo4 view mode)

I'd gathered as much :-)

Now I need to find some example code of PyQt for Maemo4 to see what's reasonably possible to "Hildonize" an app on that platform...

Quote:

Only minor things (except the work on separating basic and maemo ui), but it's better day after day
Indeed ! Minor but always useful... it's the little details that make the difference between a so-so app and a great one :-)

Quote:

(i use it a lot, every day)
So do I. It's been a good while since I used anything else than GRead on the N900, and I sorely miss it on the N810...

fpp 2010-09-23 11:37

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Quote:

Originally Posted by Twidi (Post 823990)
Read :
  • change the O shortcut from "change orientation" to "open the currently selected category/feed/item". To change orientation the shortcut is now "shift-O"

Actually, there is *one* thing I don't find useful, and even less practical than before, and that's the one above.

Why rebind "O" to "open" when Enter already did that just fine ? And plain "O" was a lot easier to change orientation at the start of a session...

A side question while I'm at it :

When I'm in src/views/maemo5/__init__.py, in the View class, near the update_*_title() methods... is there an easy way I can access the feed name for the item being displayed ?... :-)

Frank Banul 2010-09-23 13:45

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
So no one has mentioned this so it makes me think I'm the only one seeing this...

In item view, using the on screen next/previous buttons seems a bit off. If you press the next button, >, then on the next screen, the "mouse" is still over the next button so the tooltip just sits there with the item highlighted and flashes until you click somewhere else.

I tried to fix this but was unsuccessful.

thanks,
Frank

fpp 2010-09-23 15:56

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
I mostly use landscape with keyboard so I might not have noticed in my quick tests.

I'll look closer in portrait when home...

Frank Banul 2010-09-23 16:32

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Quote:

Originally Posted by fpp (Post 824479)
I mostly use landscape with keyboard so I might not have noticed in my quick tests.

I'll look closer in portrait when home...

Sorry if I wasn't clear, this is in landscape mode.

And I too prefer keyboard but would like to have touchscreen control, but having to click twice seems like a problem.

Frank

fpp 2010-09-23 19:36

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Ah yes, I had managed not to see the little buggers on first try... mental block, probably : first we had the scrolling marquee titles, and now the blinking arrow tooltips... will it ever end ? :-)

Distracting, yes, and they don't always seem to appear. However, I couldn't reproduce your having to click the arrows twice. Maybe you're supposed to hit them *between* blinks ? :-)

Frank Banul 2010-09-23 19:40

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Quote:

Originally Posted by fpp (Post 824678)
Distracting, yes, and they don't always seem to appear. However, I couldn't reproduce your having to click the arrows twice. Maybe you're supposed to hit them *between* blinks ? :-)

They appear whenever there is mouse activity it seems. But if you use one by clicking on next for example, the virtual mouse location stays where you last clicked. So now on the next page, the next button stays highlighted and the tool tip flashes until you click anywhere else on the screen besides the next button.

It's not that you have to click the button twice to get the next item. It's that you have to click it once to get the next item and then click outside of the button area to let it fade away and stop putting the tool tip up.

Frank

Twidi 2010-09-24 17:48

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
fpp : the "O" key is now bound to the "open" function to respect the shortcuts under google reader. I understand you find this annoying but... few days ago there was no key at oll for this function so... But perhaps you have another suggestion than shift-O (a suggestion which is not "O" :D ) ?

For the title, you should better redefine the "get_title" method in the "maemo5/itemview.py". In the "__init__.py" you only have objects/methods which are "global" to all views, and in each view you can redefine whatever you want. And if you want your redefined method to call the original one you can use the "super" statement, but you may not want to for your case.

Frank Banul : this "bug" (which was not really a bug) is now resolved in the latest commit (for this, when the arrow is clicked i "move the mouse" away of the arrow)

fpp 2010-09-24 18:32

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Quote:

Originally Posted by Twidi (Post 825441)
fpp : the "O" key is now bound to the "open" function to respect the shortcuts under google reader. I understand you find this annoying but... few days ago there was no key at oll for this function so... But perhaps you have another suggestion than shift-O (a suggestion which is not "O" :D ) ?

What do you mean, no key at all ? "Enter" is not a key ? :-)

Quote:

For the title, you should better redefine the "get_title" method in the "maemo5/itemview.py". In the "__init__.py" you only have objects/methods which are "global" to all views, and in each view you can redefine whatever you want. And if you want your redefined method to call the original one you can use the "super" statement, but you may not want to for your case.
Fine, no problem, thanks... but the original question was, "how do I access the feed name of the current post when I'm in get_title ?" :)

mavit 2010-09-24 18:36

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Quote:

Originally Posted by Twidi (Post 825441)
fpp : the "O" key is now bound to the "open" function to respect the shortcuts under google reader. I understand you find this annoying but... few days ago there was no key at oll for this function so... But perhaps you have another suggestion than shift-O (a suggestion which is not "O" :D ) ?

If it auto-rotated based on that handset's accelerometer, would a key even be needed?

Frank Banul 2010-09-24 19:28

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Quote:

Originally Posted by Twidi (Post 825441)
Frank Banul : this "bug" (which was not really a bug) is now resolved in the latest commit (for this, when the arrow is clicked i "move the mouse" away of the arrow)

Indeed, the buttons are now a pleasure to use.

Sorry if bug is the wrong term, I just didn't understand the intended design.

Frank

Twidi 2010-09-25 15:00

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
fpp : i said there was no key for toggle orientation, not for enter :)

mavit : i know i know. I don't like how the orientation is managed in maemo, it's a sort of hack. It works by window and with a multi-window application there si a glitch. But i will add this again to GRead later, for sure.

Frank : no pbm, i noticed this "strange behavior" too, and now it's ok :)

fpp 2010-09-25 15:41

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Quote:

Originally Posted by Twidi (Post 826037)
fpp : i said there was no key for toggle orientation, not for enter :)

Before the last change there was already one, "O", which was fine. And "open" was "Enter", which is fine too.

Now we have two redundant, unshifted keys for "open" (O and Enter), and orientation has moved to shift-O, which is less convenient.

I just don't see the logic, especially as I don't use Google Reader on the desktop, because Feedly is so much better for keyboard navigation :-)

grog 2010-09-25 19:32

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
A suggestion for orientation. How about landscape when the keyboard is open, portrait when it's closed. Would work for me :)

fpp 2010-09-25 20:56

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Sounds good !

Twidi 2010-09-26 00:20

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
i'll look for this.

I've just added a tool to easily switch to whatever feed you want.
Just hit "shift-space" in a view (either feed list, item list or item content) and a dialog will open. Just type some letters of a feed, navigate with up and down arrows and select with enter (or click in the list) and the feed will open.

Twidi 2010-09-26 21:28

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
New trick in GRead : press "H" to display all available shortcuts (yes i know the font size is very tiny but it's the only way to display all shortcuts, and it's not part of the main UI so i decided it was ok :D)

Little reminder : don't forget than GRead work on desktop too (if Qt and PyQT are installed on your desktop, linux or windows or whatever)

Twidi 2010-09-26 22:41

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
(about the desktop version, i just committed an update, now it uses a toolbar instead of the menubar, which allow to view checked menu items)

fpp 2010-09-27 09:50

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Quote:

Originally Posted by Twidi (Post 826885)
Little reminder : don't forget than GRead work on desktop too (if Qt and PyQT are installed on your desktop, linux or windows or whatever)

Another reminder is that GRead also runs on Diablo (Maemo4, N8x0) after a couple of lines have been removed from the UI files.

When you launch it as :

Quote:

run-standalone.sh python gread.py
it's even half-way "hildonized" in that it looks less strange and the full-screen button works. It still opens separate windows, but they cover each other, and the tablets have an Escape button so it's quite usable.

The main issues are that the system menu is not converted automatically as in Fremantle, and the default font is too tiny to read, with the zoom keys not working.

These could probably be corrected more or less easily with a custom "maemo4" view, to make a workable GRead for the old tablets...

Speaking of which, I found another way to detect the host type and choose a view accordingly :

N900 : "Maemo 5" in os.environ.values()

N8x0 : "OS 2008" in os.environ.values()

grog 2010-09-27 13:22

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
I don't know when it happened but I no longer have a link to browse "All" feeds at once. Just me, or was that removed? TX

grog 2010-09-27 13:32

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Quote:

Originally Posted by Twidi (Post 823990)
  • change the color of the text in selected rows to the good one. grog, it was the only color that wasn't the good one, so now it should work in your theme)

Finally got around to trying the Okuda theme & unfortunately I still can't see the content. Seems that the message body stays black against the black background of the theme. In an article for example from Slashdot, the comments are on a while background so they're readable, whereas the main article is not.

TX

grog 2010-09-27 13:33

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Quote:

Originally Posted by grog (Post 827423)
I don't know when it happened but I no longer have a link to browse "All" feeds at once. Just me, or was that removed? TX

And of course I update & the problem goes away. Sorry for the noise :o

fpp 2010-09-27 13:33

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
It escaped once, but was caught back :)
(see github)

Frank Banul 2010-09-27 13:41

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Twidi,

Why use an iPhone user agent? No reason to prop up the iPhone mindshare.

A couple of times over the weekend while using the on screen next button, it was left highlighted on the next item. Unfortunately I can't figure out what causes it. It happened maybe 1-2% of the time.

Frank

Twidi 2010-09-27 14:43

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Quote:

Originally Posted by fpp (Post 827252)
Another reminder is that GRead also runs on Diablo (Maemo4, N8x0) after a couple of lines have been removed from the UI files.

When you launch it as :



it's even half-way "hildonized" in that it looks less strange and the full-screen button works. It still opens separate windows, but they cover each other, and the tablets have an Escape button so it's quite usable.

The main issues are that the system menu is not converted automatically as in Fremantle, and the default font is too tiny to read, with the zoom keys not working.

These could probably be corrected more or less easily with a custom "maemo4" view, to make a workable GRead for the old tablets...

Speaking of which, I found another way to detect the host type and choose a view accordingly :

N900 : "Maemo 5" in os.environ.values()

N8x0 : "OS 2008" in os.environ.values()

I have a n800 somewhere at home, could you please give me all details for installing python on it ? Perhaps it's aready packaged ? I could try to install GRead on it and make a Maemo view (it sould be easy, except for specific buttons if needed but i will not spend too much time on it...)

fpp 2010-09-27 14:54

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Quote:

Originally Posted by Twidi (Post 827489)
I have a n800 somewhere at home, could you please give me all details for installing python on it ? Perhaps it's aready packaged ? I could try to install GRead on it and make a Maemo view (it sould be easy, except for specific buttons if needed but i will not spend too much time on it...)

If you have all the extra-* repos enabled, you should see the PyQt full-install package on HAM, that should do it.

The zoom keys should be easy, they're just bound to F6/F7 or something like that.

fpp 2010-09-27 14:56

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Quote:

Originally Posted by Frank Banul (Post 827445)
Twidi,

Why use an iPhone user agent? No reason to prop up the iPhone mindshare.

A couple of times over the weekend while using the on screen next button, it was left highlighted on the next item. Unfortunately I can't figure out what causes it. It happened maybe 1-2% of the time.

Frank

I guess it's because of his cell carrier, which has a proxy filtering on user-agent. But the N900 MicroB should work just as well...


All times are GMT. The time now is 15:32.

vBulletin® Version 3.8.8