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)

Rob1n 2010-04-08 08:27

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 600592)
the problem with the latest versions in extras-devel is I'm attempting to parse timestamps properly..
for some reason twitter does not deliver timestamps in a consistent way.
whenever witter sees a timestamp in an unexpected format it suffers an exception which stops operation continuing.

0.3.1-15 should be better and deffinately solves one of the issues. but there is still work to do to completely fix this.
i would not have guessed dealing with timestamps and timezones would have been this much of a pain.

Have you looked at what other twitter apps are doing? If a scripting language like python's having issues, I can't imagine trying to implement a timestamp parser in C/C++.

dwould 2010-04-08 08:40

Re: witter - a python twitter client
 
Quote:

Originally Posted by Den in USA (Post 600156)
I know this sounds petty, but, for the Diablo version I don't like the icon's white backround. The Yellow "W" is fine. (when it is minimized at left):

Attachment 8727

The diablo version has had no updates for a long time, my 810 was giving me grief and I basically couldn't be bothered to maintain both versions.
updating the icon would be pretty trivial to do if that's all you wanted. just download the new icon from the project page and overwrite the old one. I think at that version its in /usr/local/witter/icons/

dwould 2010-04-08 08:42

Re: witter - a python twitter client
 
Quote:

Originally Posted by Rob1n (Post 600667)
Have you looked at what other twitter apps are doing? If a scripting language like python's having issues, I can't imagine trying to implement a timestamp parser in C/C++.

I didn't, but the problem seemed to be a combination of factors. I believe now fixed in 0.3.1-16

Python on maemo doesn't support the offset notation (+0000) in it's timestamp parsing. there are libraries that would, but I'd have to bring a whole new library onto maemo which I didn't want to do.
Turns out there are at least 3 different formats of timestamp that twitter might return, depending on your location and the API call.
I think they all now work.

nosa101 2010-04-09 00:06

Re: witter - a python twitter client
 
Is there a way for witter to be sped up using a cache?

dwould 2010-04-09 06:56

Re: witter - a python twitter client
 
Quote:

Originally Posted by nosa101 (Post 601984)
Is there a way for witter to be sped up using a cache?

what sort of cache? cache what? sorry, i don't understand the question.

evil_m0nkey 2010-04-09 09:11

Re: witter - a python twitter client
 
love the app and monochrome theme.

keep up the good work sir. also, any plans on making a portrait version?

dwould 2010-04-09 10:39

Re: witter - a python twitter client
 
Quote:

Originally Posted by evil_m0nkey (Post 602417)
love the app and monochrome theme.

keep up the good work sir. also, any plans on making a portrait version?

not as such, haven't really given it much thought. I guess it would depend on how much of a pain it would be to re-layout things.
Probably not going to do much for a week or two, will have to think about what the next thing on my list is when I have time again.

nosa101 2010-04-09 15:16

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 602295)
what sort of cache? cache what? sorry, i don't understand the question.

you know the way websites boot up faster because some data has been stored? Something like that

It might not be possible though

on startup, witter loads up tweets like new even if i had it it running like 5 mins ago.
Is there a way for witter to show you the old tweets until the new ones appear?

dwould 2010-04-09 15:27

Re: witter - a python twitter client
 
Quote:

Originally Posted by nosa101 (Post 602989)
you know the way websites boot up faster because some data has been stored? Something like that

It might not be possible though

on startup, witter loads up tweets like new even if i had it it running like 5 mins ago.
Is there a way for witter to show you the old tweets until the new ones appear?

In theory witter could persist tweets to disc and reload them at startup, however that's an overhead in itself, and leads to questions like how many do you store, how and when do you clean up etc etc.
it's not something I'd consider a speed improvement as such, though it would in theory be faster to seeing a tweet (depending on the cost of loading the data back into memory), but only to seeing a tweet you've already seen.

to be honest it is not high on my list of things to add.

nosa101 2010-04-10 02:36

Re: witter - a python twitter client
 
The Twitter for blackberry app claims in app caching improves performance


All times are GMT. The time now is 16:43.

vBulletin® Version 3.8.8