Subscription date : 05 August 2009
Messages : 285
|
I've been struggling a lot with the Twitter Stream API to create the notification for this applet. I've done it. On the background what is going on is: there are two threads working as producer/consumer. One gets the new tweets from the Twitter streaming service and put it into a queue. And the other, from time to time, reads the queue to see if there is something on it. At this point, the code is awful, so, I will need many more commits to make "presentable", there are many #TODOs and things that "you should not try at home ". By now, the notification is just the number of new tweets shown as the QuickInfo, see image. But there is also a TODO to make available the animation too.
The idea on this is just to make it work at its most simple way. If possible, test it a lil.
@fab:
- Reply a tweet could be done showing each one of the received tweets as a sub-icon. When the user clicks over one, the reply box (like the one to send the tweet) appears. I agree that the idea of the applet should not be replace none of the well-known clients.
- To redirect the user to its page is ok, but would be nice to put him/her on the point to reply that specific tweet, and this I dunno how.
- Hahahaha! I laughed about the "or even something I would have posted and forgotten
". I dunno how to do that yet, actually I did not see yet. If I figure out how to get the previous tweets, Im going to include, sure.
|
Subscription date : 05 August 2009
Messages : 285
|
And I forgot to mention, I enabled the support for threads on the Python interface. Without that, the threads were being "iterated" and, summarizing the history, the applet was not working well. |
matttbe, Tuesday 06 March 2012 à 14:41
|
|
Subscription date : 24 January 2009
Messages : 12573
|
Thank you for all these new modifications!
And I forgot to mention, I enabled the support for threads on the Python interface. Without that, the threads were being "iterated" and, summarizing the history, the applet was not working well. What's the impact of this change? What does it happen for all other applets that don't use a threads? |
Subscription date : 05 August 2009
Messages : 285
|
@matttbe: It allows multiple threads to get serialized access to the Python GIL. For those that do not use it, nothing is going to change. |
matttbe, Tuesday 06 March 2012 à 15:42
|
|
Subscription date : 24 January 2009
Messages : 12573
|
Ok, Thank you!
It's merged
PS: if you want to change your nickname (currently it's: 'eduardo <eduardo@eduardo-desktop-64>'), simply launch this command: bzr whoami "NICK <YOU@MAIL>" where 'NICK' is your name, you nickname or what you want and 'YOU@MAIL' is your email address linked to your launchpad account. |
Subscription date : 05 August 2009
Messages : 285
|
@mattbe: Done, great, thank you! |
Subscription date : 05 August 2009
Messages : 285
|
Ok, now I proposed a merge with a better and presentable code, now you can take a look if you want |
fabounet, Wednesday 07 March 2012 à 12:26
|
|
Subscription date : 30 November 2007
Messages : 17118
|
thanks a lot for all these changes !
I'll test that (and maybe read the code, but I think you're much more skilled than me in Python now ) |
Subscription date : 05 August 2009
Messages : 285
|
I am thinking about create also an Identi.ca plugin. Identi.ca has the lesser documented Oauth I've ever seem. Anyway, If I get successful with that, my intention is not attach both applets with the same interface, i.e., I would create a new plugin, Identi.ca. What do you think?
Im asking that because I saw the blueprint saying Twitter/Identi.ca plugin. |
SQP, Thursday 08 March 2012 à 19:51
|
|
Subscription date : 03 July 2010
Messages : 1081
|
One module to rule them all |
Subscription date : 05 August 2009
Messages : 285
|
@SQP: and then BOOOM the applet explodes! |
SQP, Friday 09 March 2012 à 00:30
|
|
Subscription date : 03 July 2010
Messages : 1081
|
One module to find them,
One module to bring them all
and in the dockness bind them
lol didn't even knew that word existed : Dockness |
Subscription date : 05 August 2009
Messages : 285
|
@fab: got the point, and agree with you.
Ah, for a better visual compatibility with other applets (Facebook, and Gmail), I've added the red emblem created by jesuisbenjamin. It is used to show the number of new received tweets. I created a small class to encapsulate the emblem creating in a proper way. |
matttbe, Friday 09 March 2012 à 17:06
|
|
Subscription date : 24 January 2009
Messages : 12573
|
for a better visual compatibility with other applets (Facebook, and Gmail), I've added the red emblem created by jesuisbenjamin. It is used to show the number of new received tweets. it should be ported to the 'QuickInfo' API  |
Subscription date : 05 August 2009
Messages : 285
|
Guys, from the Blueprint, there are two things missing, reply a direct message, and retweet a tweet. The first is not possible, the API does not allow it. For the second I thought one possibility, show each tweet received as a sub-icon. When clicking the in any icon, the user would be asked if want to retweet the respective tweet. To put each tweet as a sub-icon, I was thinking to reduce from 20 to 10 the number of "last tweets" that can be shown, otherwise, it will be messed up to draw all those sub-icons on the screen. What do you think? Better close the "features" here and start with the Identi.ca support, or add more this? Or do you have a better idea on how to manage the retweet thing?
There is also the last tweets Fabounet asked, but there is not a direct api method for this, I'm gonna see if there is a possibility on a different way. |
matttbe, Sunday 11 March 2012 à 01:53
|
|
Subscription date : 24 January 2009
Messages : 12573
|
Hello and thank you for these new modifications
reply a direct message (...) is not possible, the API does not allow it. I think we can just add '@USER' at the beginning of a tweet to post an answer.
retweet a tweet (...): I thought one possibility, show each tweet received as a sub-icon. Yes, it's a good idea. Or maybe a GTK menu just like Gmail applet.
There is also the last tweets Fabounet asked, but there is not a direct api method for this, I'm gonna see if there is a possibility on a different way. Is it possible to receive all (or only 10) tweets posted by an user? |
Subscription date : 05 August 2009
Messages : 285
|
I think we can just add '@USER' at the beginning of a tweet to post an answer.
I do not use Twitter, but I think It could mislead the user to post private content as a tweet with mention. Direct messages have a private meaning, therefore, when saying to the user that he/she would be posting a reply to a message, it would be obvious another private message, instead of a tweet. The thing is, Twitter does not keep an ID for the messages, it just order them temporaly, that is why it is not possible to reply a specific message. What I'm going to use is, the user is going to send another message to the one that sent it to him. It is not going to be a reply, but it is going to be a direct message, and can keep the private characteristic.
Or maybe a GTK menu just like Gmail applet.
I'm going to check that out.
Is it possible to receive all (or only 10) tweets posted by an user?
Yes, it is possible, I saw it now. |
Subscription date : 30 November 2007
Messages : 17118
|
for a better visual compatibility with other applets (Facebook, and Gmail), I've added the red emblem created by jesuisbenjamin. It is used to show the number of new received tweets.
it should be ported to the 'QuickInfo' API
I also think so.
about re-tweet, I admit I don't use it myself IIUC, it's like a "+1" ? like a vote on the tweet you like ? |
SQP, Tuesday 13 March 2012 à 18:16
|
|
Subscription date : 03 July 2010
Messages : 1081
|
I don't use twitter at all, but I guess it sounds more like a forward : give to you followers an information you hope they don't already know |
|