+(1) +(1) +(1) -(3) +(1) +(1) +(1) +(1) +(4) +(3) +(3) +(3) +(1) +(1)
Ruby XMPP handler 18/05/08 20:11

What ?

I’m trying to make a little ruby wrapper around few XMPP/Jabber functionalities.

  1. handling xmpp:// URLs (add a contact, send a message, etc…) XEP-0147
  2. update status for all (or one) compliant clients (such as PSI )

Using Xmpp4R or even Jabber::Simple it should pretty straightforward…

A bit more tricky :

to have an handler for msn: URL able to pick the name of the gateway and make a good JID !

Why ?

  1. because psi can’t do that and it’s a pity. Plus, it’s really easy to do !
  2. to be able to script on that, for example to set status “Away” when you close your lid…
“Clever” completion 18/05/08 02:36

I was thinking..

It could be cool to be able, in Bash shell, to toggle a kind of “clever” completion, with features like that :

  1. completion before and after a command : pdf [TAB] => xpdf
  2. completion based on functionalities : jabber [TAB] => psi | gajim | etc...
  3. completion based on the following file’s type (from extension or MIME-type) : [TAB] toto.pdf => xpdf toto.pdf

Maybe completion is not really good for all of this.

  • The second is kind of implemented in Debian with their alternatives !
  • The third could be a little script (name ie. “open”) which will try to open the file with a software based on its type, with perhaps a menu for the user to choose his preferred one, why not with setting of preferences !
Update:
  • first one : dmenu -i does it ! I was using dmenu when first thinking about all that, and now I’ve RTFM
My first post ever ! Mon tout premier post ! 15/05/08 21:55

Hello,

This is my very first post ever on my own blog !

It’s really moving…

But it’s not really a blog that I’m starting here, more a tumblelog !

In fact don’t expect too much for this blog, it is only aimed to be a repository for my thoughts, my tips and tricks, the things I must not forget and maybe loads of other stuff…

Enjoy !

I don’t think I’ll be able to make a double-language version for each post, those who do not speak both languages will be stuck, but for the first one here is the French translation :


Salut,

c’est mon tout premier post sur mon blog à moi depuis toujours…

C’est assez émouvant !

Mais ce n’est pas vraiment un blog que j’ouvre ici, plutot un tumblelog !

D’ailleurs, mieux vaut ne pas attendre trop de ce blog, il est seulement prévu pour ramasser mes pensées, mes astuces, les choses que je ne dois pas oublier ainsi que sûrement pleins d’autres trucs…

Profitez !

Je ne pense pas pouvoir faire de version dans les deux langues pour tous les posts, ceux qui ne parlent pas la bonne langue risquent d’être coincés, mais pour le premier post, je fais un effort !