maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   witter - a python twitter client (https://talk.maemo.org/showthread.php?t=35596)

joshua.maverick 2010-03-25 18:01

Re: witter - a python twitter client
 
Hey dwould, I'm down to build you some custom icons if you'd like. Drop me a pm with the specs and I'll get started.

Thanks

nosa101 2010-03-25 18:08

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 582166)
double tap is a bit weird.. it's actually 'activated' since there doesn't seem to be a double tap event. this basically means if you click on a tweet, then click on it again you open the actions.
so if you are not selected, a double tap does as expected.
if you are already selected, then a double tap is fast enough to trigger the event twice.
if anyone knows a better event handle to use, please let me know

Oh ok. I guess that's how it works

ofels 2010-03-25 20:37

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 582132)
you can use the trends view to find out what is trending and the search view to search for the trending #tag or whatever.....or have I missed something?

Yes :D
As each result seems to be a list item on its own it would come in handy to open the corresponding search tweet by a single click and hold (or, more trendy these days, a double click :p) instead of showing the search HTTP request (which is completely inconvenient to use anyway imho).

dwould 2010-03-25 20:59

Re: witter - a python twitter client
 
Quote:

Originally Posted by joshua.maverick (Post 582174)
Hey dwould, I'm down to build you some custom icons if you'd like. Drop me a pm with the specs and I'll get started.

Thanks

thanks for the offer. my plan is to figure out a way to be able to switch icon sets, and support a relatively simple way for people to basically make icon themes. i will certainly let you know the details once I've figured them out.

nosa101 2010-03-26 02:31

Re: witter - a python twitter client
 
i tried shortening a url today and...nothing happened

dwould 2010-03-26 07:41

Re: witter - a python twitter client
 
Quote:

Originally Posted by nosa101 (Post 582754)
i tried shortening a url today and...nothing happened

have you configured your bitly uid and application key correctly?

dwould 2010-03-26 14:53

Re: witter - a python twitter client
 
Question, is 0.3.1-9 worthy of Extras? I'm aware that there are still a fair number of people who would not go near extras-testing.
Is Witter now good enough for that? or are people still experiencing random instability or serious usability problems?
I realise there are plenty of other features to develop, but I am now interested in stabalising the code for long enough to get a version into Extras, before implementing new stuff.

nosa101 2010-03-26 15:43

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 582885)
have you configured your bitly uid and application key correctly?

Oh, you need a bitly account to use it? I thought it worked like tweetdeck

UPDATE: bitly working good. Just tried it. You should push it to extras. We have to vote for it, right? Where at?

Quote:

Originally Posted by dwould (Post 582885)
Question, is 0.3.1-9 worthy of Extras? I'm aware that there are still a fair number of people who would not go near extras-testing.
Is Witter now good enough for that? or are people still experiencing random instability or serious usability problems?
I realise there are plenty of other features to develop, but I am now interested in stabalising the code for long enough to get a version into Extras, before implementing new stuff.

I think it is
It is as good or if not better than ubertwitter and that's a lot. The aesthetic elements of it might be a bit meh but it works and that is all that matters.

dwould 2010-03-26 15:55

Re: witter - a python twitter client
 
Quote:

Originally Posted by nosa101 (Post 583373)
Oh, you need a bitly account to use it? I thought it worked like tweetdeck

yeah, when I set out to add support I didn't realise I needed to require an id, but I think this way it tracks the urls' you've shortened, and gives you stats or some such.

I wonder if they'd give me an id for witter as an application so I could just do it that way....

mece 2010-03-26 16:18

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 582166)
double tap is a bit weird.. it's actually 'activated' since there doesn't seem to be a double tap event. this basically means if you click on a tweet, then click on it again you open the actions.
so if you are not selected, a double tap does as expected.
if you are already selected, then a double tap is fast enough to trigger the event twice.
if anyone knows a better event handle to use, please let me know

you probly already know all this, but I might as well post it anyway.

haven't checked your code, but I simply validate the event like so:
if event.type == gtk.gdk._2BUTTON_PRESS:
and it works fine.
you get 3 events from a doubleclick. the first click gives gtk.gdk._BUTTON_PRESS and the second gives gtk.gdk._BUTTON_PRESS and gtk.gdk._2BUTTON_PRESS. you can set the speed required to register a doubleclick. I don't remember exactly how, but it's in the ref manual.

if you're using Qt then I have no idea, but it might be similar.

ofels 2010-03-26 21:14

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 583317)
Question, is 0.3.1-9 worthy of Extras? I'm aware that there are still a fair number of people who would not go near extras-testing.
Is Witter now good enough for that? or are people still experiencing random instability or serious usability problems?

as far as I am concerned the answer is "Yes, it is"

digittante 2010-03-26 21:41

Re: witter - a python twitter client
 
+1 for that. Witter has come a LONG way in the last 10 days.

nosa101 2010-03-27 12:45

Re: witter - a python twitter client
 
i just noticed something today, my timestamps are bit off. 5 hrs ahead. i'm guessing it's british time

dwould 2010-03-27 13:09

Re: witter - a python twitter client
 
Quote:

Originally Posted by nosa101 (Post 584224)
i just noticed something today, my timestamps are bit off. 5 hrs ahead. i'm guessing it's british time

timestamps are as presented by twitter in the returned json.
do you have a +/- nnnn after the time? eg all mine say
13:07:00 +0000
since I'm gmt. wondering if your timestamps show different offset, and as such parng the time would get the right value, or if I'd need to parse assume gmt and figure out local timezone from device to present the correct time

nosa101 2010-03-27 23:05

Re: witter - a python twitter client
 
nope it comes out just like yours

anapospastos 2010-03-28 09:33

Re: witter - a python twitter client
 
One bug that I mentioned is when I m writing tweets with greek characters they take space for 2 and not for 1 which normally happens with english. So, my tweets must be very little:(

dwould 2010-03-28 09:49

Re: witter - a python twitter client
 
Quote:

Originally Posted by anapospastos (Post 585203)
One bug that I mentioned is when I m writing tweets with greek characters they take space for 2 and not for 1 which normally happens with english. So, my tweets must be very little:(

i'm not sure how to fix this as the length is as reported by the text entry box. however I have stopped witter imposing the 140 limit, so it's just an indicator now. it's possible twitter would then do the right thing, even if witter thinks it's 380 chars.

twister 2010-03-28 10:07

Re: witter - a python twitter client
 
Hey ..... thx for the great app and time you put into it.

I just updated to the most recet version from testingdevel and I have a question. How do I search? When I click search all I get is a blank page and my tweet textfield which I used the first try to search and instead tweeted my search term.

Is there functionality yet to delete tweets accidently made?

anapospastos 2010-03-28 10:31

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 585218)
i'm not sure how to fix this as the length is as reported by the text entry box. however I have stopped witter imposing the 140 limit, so it's just an indicator now. it's possible twitter would then do the right thing, even if witter thinks it's 380 chars.

At the moment I cant tweet writing with greek chars. I m going continuous on -x chars!!

Rob1n 2010-03-28 11:28

Re: witter - a python twitter client
 
Quote:

Originally Posted by twister (Post 585240)
I just updated to the most recet version from testingdevel and I have a question. How do I search? When I click search all I get is a blank page and my tweet textfield which I used the first try to search and instead tweeted my search term.

Hehe - did that myself the first time. You type in the search terms into the tweet textfield, then use the "refresh" buttton on the left of the textfield to submit the search.

twister 2010-03-29 00:07

Re: witter - a python twitter client
 
thx Rob1n :)

does the search keep refreshing? If not is there a way to keep an active search or is it a feature that is planned? If not I hereby request it :)

dwould 2010-03-29 07:03

Re: witter - a python twitter client
 
Quote:

Originally Posted by twister (Post 586069)
thx Rob1n :)

does the search keep refreshing? If not is there a way to keep an active search or is it a feature that is planned? If not I hereby request it :)

search is currently fairly basic, it simply fetches the last 20 results. it always clears out previous search results when it runs.

at some poont i'll look into how to integrate with the twitter saved search thing. at that time i might look at retaining search hits.

nosa101 2010-03-31 03:21

Re: witter - a python twitter client
 
couldn't use virtual keyboard after retweeting. someone else can check it out though.

and the timestamp is british time

mece 2010-03-31 06:47

Re: witter - a python twitter client
 
Since the last update I feel that witter is a fully useable twitter client for me, and the only one I use while on the move. A couple of minor things bother me though, all of which should be pretty trivial to fix:

A link like this : "mece66: iron sky (http://www.ironsky.net)"
is parsed, but the ( ) are included in the url, so the browser wont open it properly unless you manually remove the parantheses..

some special characters, for example < and > are html encoded and are displayed like
Code:

&lt;
so they need to be decoded when displayed, for example with HTMLparser.unescape IIRC.

the RT function is rendered wrong imo. it's now "RT: @mece66 : blahblah" and it should be "RT @mece66: blahblah"

RT function should work on too long texts, but cut off the end if tweeted while too long. -14 chars left or something like that could be displayed if text is too long.

lastly, and this might not be a bug, just me... How do I use twitpic? I mean where do I enter the text? What happens when I click the "twitpic" button after selecting an image?

br, @mece66

nosa101 2010-03-31 06:58

Re: witter - a python twitter client
 
a reboot fixed my virtual keyboard problem

dwould 2010-03-31 07:11

Re: witter - a python twitter client
 
Quote:

Originally Posted by mece (Post 589230)
Since the last update I feel that witter is a fully useable twitter client for me, and the only one I use while on the move. A couple of minor things bother me though, all of which should be pretty trivial to fix:

A link like this : "mece66: iron sky (http://www.ironsky.net)"
is parsed, but the ( ) are included in the url, so the browser wont open it properly unless you manually remove the parantheses..

i wouldn't expect a url like that to be parsed, snce i look for 'words' that start http however if urls end with random chars then how do i know what is url and what is not? at the moment i assume a url starts with http and ends with a space.
not sure how else to do this.

Quote:

Originally Posted by mece (Post 589230)
some special characters, for example < and > are html encoded and are displayed like
Code:

&lt;
so they need to be decoded when displayed, for example with HTMLparser.unescape IIRC.

the text is rendered using pango, which is like html, it would interpret unescaped < chars as relevant to it's markup. not sure how to make it render those normally.
Quote:

Originally Posted by mece (Post 589230)
the RT function is rendered wrong imo. it's now "RT: @mece66 : blahblah" and it should be "RT @mece66: blahblah"

so the problem is the : after the RT? or also the space after username? again I detect usernames as starting with @ and ending in a space.
Quote:

Originally Posted by mece (Post 589230)
RT function should work on too long texts, but cut off the end if tweeted while too long. -14 chars left or something like that could be displayed if text is too long.

doesn't it do exactly that now? eg it puts whole tweet in place but with -14 indicator?
Quote:

Originally Posted by mece (Post 589230)
lastly, and this might not be a bug, just me... How do I use twitpic? I mean where do I enter the text? What happens when I click the "twitpic" button after selecting an image?

br, @mece66

write you comment in entry field, then go to twitpic menu option select picture. when you hit 'twitpic' picture and comment are sent.
currently if there is no text in the entry field, it doesn't send.
I'm aware this needs a proper pop up warning, or just to post with no comment

mece 2010-03-31 08:36

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 589245)
i wouldn't expect a url like that to be parsed, snce i look for 'words' that start http however if urls end with random chars then how do i know what is url and what is not? at the moment i assume a url starts with http and ends with a space.
not sure how else to do this.

ok fine, it did however parse it for some reason. there was a button with open url (http://asdf) and it opened that exact string in the browser. Weird stuff.

Quote:

Originally Posted by dwould (Post 589245)
the text is rendered using pango, which is like html, it would interpret unescaped < chars as relevant to it's markup. not sure how to make it render those normally.

That one should render properly if markup is used, so the problem is somewhere else. For example double escaping the & character would do this, making the string &amp;lt; instead of &lt;
Perhaps line 799 in account.py version 0.3.1-9?

Quote:

Originally Posted by dwould (Post 589245)
so the problem is the : after the RT? or also the space after username? again I detect usernames as starting with @ and ending in a space.

Well both of them, as they are redundant characters. Perhaps one could parse users starting with @ and ending with space or :
anyway I now just manually edit the thing, but the "RT @user:" method seems to be commonly used. (tweetdeck, echofon and gravity use that method at least)

Quote:

Originally Posted by dwould (Post 589245)
doesn't it do exactly that now? eg it puts whole tweet in place but with -14 indicator?

Oh yes, right you are. Don't know what it didn't work just now. My bad.

Quote:

Originally Posted by dwould (Post 589245)
write you comment in entry field, then go to twitpic menu option select picture. when you hit 'twitpic' picture and comment are sent.
currently if there is no text in the entry field, it doesn't send.
I'm aware this needs a proper pop up warning, or just to post with no comment

Cool, Thanks!

dwould 2010-03-31 08:47

Re: witter - a python twitter client
 
0.3.1-10 includes support for themed icons.
anyone can create a set of icons with the same filenames as the default theme and make them availiable to witter.
basically just create a folder under /opt/witter/icons/
that is the name of your theme, and in that folder place you icons (default icons are all 48x48)
then run witter and your theme will show up in preferences->select theme

themes could be made separately installable just need to put their files in the right place.
see my blog for full list of icon files required.

markusm 2010-03-31 19:59

Re: witter - a python twitter client
 
1 Attachment(s)
I've just made a set of custom icons for Twitter - see the attached screenshot.

Anyone interested in using them just let me know :)

EDIT A bigger screenshot here: http://www.moubail.com/temp/maemo/wi...tter-icons.png

dwould 2010-03-31 20:06

Re: witter - a python twitter client
 
Quote:

Originally Posted by markusm (Post 590341)
I've just made a set of custom icons for Twitter - see the attached screenshot.

Anyone interested in using them just let me know :)

sweet! are you interested in creating a theme package so people can install from the repository?

or can you send me the files to include in the main package?

markusm 2010-03-31 20:12

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 590349)
sweet! are you interested in creating a theme package so people can install from the repository?

or can you send me the files to include in the main package?

You should have mail :)

dwould 2010-03-31 20:41

Re: witter - a python twitter client
 
Quote:

Originally Posted by markusm (Post 590359)
You should have mail :)

cool, received. just fixing a couple of places where my theme doesn't change all icons.
suggestions for the name of this new theme?
unless it should just be called 'markusm'

markusm 2010-03-31 21:01

Re: witter - a python twitter client
 
How about 'Monochrome' ?

dwould 2010-03-31 21:15

Re: witter - a python twitter client
 
0.3.1-11 on it's way to extras devel with new Monochrome theme icons :-)

dwould 2010-04-01 08:41

Re: witter - a python twitter client
 
0.3.1-12 on it's way to fix the few places I'd still missed icon references which cause it to always show busy.

cy8aer 2010-04-06 20:29

Re: witter - a python twitter client
 
I am happy with witter and an own ("Other") status.net server since 0.3.1-11 now. But...

... just some new problem since 0.3.1-13:

Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
self.run()
File "/usr/lib/python2.5/threading.py", line 446, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/user/src/witter/fremantle/src/opt/witter/witter/refresh_thread.py", line 41, in _start
File "/opt/witter/witter.py", line 705, in getMentionsWrapper
self.activeAccount.getMentions(auto=autoval, older=get_older, get_count=more)
File "/home/user/src/witter/fremantle/src/opt/witter/account/account.py", line 298, in getMentions
File "/home/user/src/witter/fremantle/src/opt/witter/account/account.py", line 995, in parse_time
File "/usr/lib/python2.5/_strptime.py", line 330, in strptime
(data_string, format))
ValueError: time data did not match format: data=Sun Apr 04 23:39:48 +0200 2010 fmt=%a, %d %b %Y %H:%M:%S +0000


So I have the question again: Bug or feature? Localising problem? And: Do you prefer bug reports in garage?

dwould 2010-04-06 20:44

Re: witter - a python twitter client
 
Quote:

Originally Posted by cy8aer (Post 598285)
I am happy with witter and an own ("Other") status.net server since 0.3.1-11 now. But...

... just some new problem since 0.3.1-13:

Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
self.run()
File "/usr/lib/python2.5/threading.py", line 446, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/user/src/witter/fremantle/src/opt/witter/witter/refresh_thread.py", line 41, in _start
File "/opt/witter/witter.py", line 705, in getMentionsWrapper
self.activeAccount.getMentions(auto=autoval, older=get_older, get_count=more)
File "/home/user/src/witter/fremantle/src/opt/witter/account/account.py", line 298, in getMentions
File "/home/user/src/witter/fremantle/src/opt/witter/account/account.py", line 995, in parse_time
File "/usr/lib/python2.5/_strptime.py", line 330, in strptime
(data_string, format))
ValueError: time data did not match format: data=Sun Apr 04 23:39:48 +0200 2010 fmt=%a, %d %b %Y %H:%M:%S +0000


So I have the question again: Bug or feature? Localising problem? And: Do you prefer bug reports in garage?

this is fine as a bug report. it seems twitter is frustratingly inconsistent in the timestamps it reports back, so the parsing is breaking due to some wrong assumptions. I *thought* it always gave UTC timestamps with a certain format. apprently for you it is a) giving an offset (which the python time parsing routine doesn't support)
b) it doesn't have a comma after the day, but it does for me.

back to the drawing board....

El Amir 2010-04-06 22:29

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 590429)
0.3.1-11 on it's way to extras devel with new Monochrome theme icons :-)

I think you should seriously consider making the Monochrome theme the default one! :)

luizcesta 2010-04-07 00:55

Re: witter - a python twitter client
 
Witter is not refreshing automaticaly. Can I do that?

Thanks in advance!!!

geneven 2010-04-07 01:16

Re: witter - a python twitter client
 
On the subject of search -- one thing that bugs me is that there is no way to save multiple searches. For example, I often search on #N900 and #kindle.

I don't program, so I don't know how they do this, but you know how browsers let you click in the url area and you get a list of urls recently chosen? If you could click somewhere and get a list of searches recently done, that would be cool, for starters.


All times are GMT. The time now is 12:07.

vBulletin® Version 3.8.8