Tag Archives: code

Pidgin & Facebook: problemi su Ubuntu Karmic

Pidgin FacebookNon me ne vogliate, ma Empathy proprio non mi piace, anche perché non sono riuscito a far funzionare la chat di Facebook (che dovrebbe funzionare comunque, visto che alla fine è tutto in salsa Purple). E poi Empathy è proprio brutto. Non mi piace. Ecco.

Detto questo, da alcune settimane avevo notato difficoltà a fare il login su Facebook da Pidgin (versione 2.6.2 come da repository ufficiali Canonical per Ubuntu Karmic). La chat di Facebook, che su Pidgin si utilizza tramite il plugin pidgin-facebookchat, pur essendo accessibile dall’esterno e documentata, non rispetta uno standard consolidato come l’XMPP. Lo farà in futuro, ma per il momento è possibile, e anche probabile, che alcune modifiche al protocollo la rendano inutilizzabile dai software di terze parti.

E così è successo per Pidgin su Karmic. La soluzione è semplice: basta installare una versione aggiornata del plugin. Il deb, che va bene sia per Ubuntu che per Debian1, si trova alla pagina principale del progetto Pidgin Facebook Chat. Basta scaricarlo e installarlo (bastano un paio di click con il mouse, non pensiate di usare ancora il terminale!) per risolvere il problema.

Giacché siamo in vena di aggiornamenti, suggerisco anche di inserire nei propri repository il PPA ufficiale degli sviluppatori di Pidgin. Chi utilizza Karmic Koala (che personalmente consiglio vivamente) può aggiungere il nuovo repository inserendo dal programma Sorgenti Software (dal menu Sistema -> Amministrazione) la riga:

ppa:pidgin-developers/ppa

Istruzioni più complete e che funzionano anche sulle altre release di Ubuntu sono presentate in dettaglio nella pagina di Pidgin dedicata alla distribuzione africana. Una volta completato l’upgrade, la versione di Pidgin passerà dalla 2.6.2 (dei repository di Karmic) alla 2.6.3 che è invece la release più recente.

I più pigri possono installare sia Pidgin che il plugin per Facebook cliccando su questi due link (magie dell’APT):

  1. Non si ricorda mai abbastanza che Ubuntu senza Debian non avrebbe mai iniziato e non potrebbe continuare []

Clickable links in Twitter html/js badge

In standard Twitter badges, web addresses you write in your posts are not clickable and you need to copy and paste the link in the address bar to visit them. I partly modified the Twitter html/js badge javascript code to automatically recognize the http addresses and change them to proper links.

Twitter linkable badge

If you want to use it, you only need to change the code of your html badger, substituting “http://twitter.com/javascripts/blogger.js” in “http://www.soccio.it/code/twitter/blogger.js“.

Twitter code edit

If you want you can also download the file and place it in another place, or just copy the code and insert it inside your html code.

Magnificent Update!

Alan Hogan made an excellent work on the original script solving a bug and also making the @user clickable as well! Now everytime you address a twit to another user, the script will automatically insert a link to the addressed user twitter page. A great applause to Alan!

@User clickable

The old script has been updated: if you hot-linked it, you won’t need to change anything and it will start working automatically. Otherwise download it again.

Small Update [23 August 2008]

As asked by Jimmy in a comment, the script has been modified to handle links which are written without the classic http://. Now the script also recognizes addresses starting by www. So if you post an address remember to write the www at the beginning (unless there is already a http or other protocols prefix).

This is a quick and dirty edit maybe could be improved. if you hot-linked it, you won’t need to change anything and it will start working automatically. Otherwise download it again.

License [25 October 2008]

Alan and I were asked about the license. We decided the better license for this snippet is the BSD License. This means you can modify and distribute this code in both source and binary form, as long as you keep the copyright notice. A copy of the license is available as standalone file and is also included in the blogger.js file itself.