Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Applets | Applets Twitter [and Identi.ca] applet
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Applets | Applets

Subjects Author Language Messages Last message
[Locked] Twitter [and Identi.ca] applet [Bug #268]
Page : 1 2 3 4 5 6
Eduardo Mucelli English 118 matttbe [Read]
09 May 2015 à 10:10

Eduardo Mucelli, Monday 05 March 2012 à 16:17


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.

http://dl.dropbox.com/u/1433190/Twitter/notification.png

The idea on this is just to make it work at its most simple way. If possible, test it a lil.

@fab:
  1. 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.
  2. 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.
  3. 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.

Eduardo Mucelli, Monday 05 March 2012 à 16:22


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?

Eduardo Mucelli, Tuesday 06 March 2012 à 15:16


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.

Eduardo Mucelli, Tuesday 06 March 2012 à 15:58


Subscription date : 05 August 2009
Messages : 285
@mattbe: Done, great, thank you!

Eduardo Mucelli, Tuesday 06 March 2012 à 16:59


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 )

Eduardo Mucelli, Thursday 08 March 2012 à 17:00


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

Eduardo Mucelli, Thursday 08 March 2012 à 23:38


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

fabounet, Friday 09 March 2012 à 12:23


Subscription date : 30 November 2007
Messages : 17118
I am thinking about create also an Identi.ca plugin

excellent, I really miss the Identi.ca support !

but for me, it would be useful to post on the 2 networks at once.
I don't want to type 2 times my text
and I think that most of people just want the largest coverage of their messages, so they just want to post them on the most networks possible.

plus I personnaly prefer to minimize the number of applets

so I think that a list in the config that gives the choice of the networks would be nice (twitter/identica/maybe something else), with twitter activated by default (and multi-instance available, this way we can still have 2 icons, one for each network)

Eduardo Mucelli, Friday 09 March 2012 à 13:58


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

Eduardo Mucelli, Saturday 10 March 2012 à 23:20


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?

Eduardo Mucelli, Sunday 11 March 2012 à 17:28


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.

fabounet, Tuesday 13 March 2012 à 17:22


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

Applets | Applets

Subjects Author Language Messages Last message
[Locked] Twitter [and Identi.ca] applet [Bug #268]
Page : 1 2 3 4 5 6
Eduardo Mucelli English 118 matttbe [Read]
09 May 2015 à 10:10


Glx-Dock / Cairo-Dock List of forums Applets | Applets Twitter [and Identi.ca] applet Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.