Trucs de geek

[Updated 2] Atom-PubSub module for ejabberd

Posted on juin 19, 2008

As requested, the Atom PubSub bridge

This module offersr an AtomPub interface to ejabberd PubSub data. Currently in two unfinished flavors, one for use with yaws embedded. One for use with ejabberd_http server

Howto

You need to have Yaws available. It will start in embedded mode, with the mod_yaws module (included). To build, edit the Makefile to match your erlang install and make Put the resulting beams in some place where ejabberd will find them.

Also you’ll need to set the BASEURL macro in atom_pubsub.erl to your webserver hostname.

You’ll also need to add the module to your ejabberd.cfg in the mmodules section:


{mod_yaws,[{logdir, "/tmp/"},
    {servers, [
    {"localhost", 5224, "/opt/var/yaws/www", [
     {dir_listing, true},
     {appmods, {"/atom",     atom_pubsub}}
     ]}
   ]}
  ]}

What you get

The AtomPub interface passes the Atom Protocol Exerciser (though some warnings remain).

It means that any AtomPub clients will be able to post to a specific node in your PubSub tree.

It also means that your PubSub tree will also be available as an AtomFeed.

Of course, each time an item is posted through AtomPub or PubSub on a node you are subscribed to, you’ll get the notification.

Can I have it with OpenFire and Epeios ?

That’s not possible. At some point, there’s no way around hitting directly the PubSub mnesia tables. So you can’t extract the code as a component.

Moreover, it only works with PubSub nodes derived from the default node type. (because of the mnesia tables stuff)

What’s next ?

I’ll update the code soon. A few of things I’d like to implement :

  • remove all calls to mnesia and work through mod_pubsub API.
  • add HEAD, etag and slug support (that’s a patch for ejabberd though)
  • remove that baseurl horrible macro
  • add node subscription through REST
  • as soon as ejabberd 2.1 is published remove dependency from yaws
  • add binary collections support

Mickaël Rémond from Process-One kindly offered to host atom-pubsub on the ejabberd_modules svn.


svn co https://svn.process-one.net/ejabberd-modules/atom_pubsub/trunk/

There’s a quick port to the ejabberd_http server at this location : You need to be running ejabberd 2.1 or current trunk to have it work.


svn co https://svn.process-one.net/ejabberd-modules/atom_pubsub/branches/ejabberd_http_branch/

Check out the README for installation.

Shoot your questions in the comment or via email (anything on this weblog domain goes to my inbox)

Serveur Jabber en ligne

Posted on juin 19, 2008

En fait, non. Je l’ai coupé. Je le remettrais un jour.

En attendant pour me joindre via XMPP : cstar chez ohmforce point com

(Celui d’Ohm Force, s’il tombe, je me fais taper sur les doigts).

Ouverture du blog d'Ohm Force

Posted on juin 09, 2008

Cid, notre nouveau responsable de la communication à Ohm Force, reprend en main le blog d’Ohm Force.

C’est ici, c’est enrichi très régulièrement, alors ajoutez-moi ça à votre NetNewsWire, Google Reader ou Netvibes.

Y a un concours de tutorial vidéo en ce moment, avec des tas de cadeaux (oui, des plugins Ohm Force bien sûr).

Une journée bien longue

Posted on juin 09, 2008

A 19h heure de Paris, soit moins de 10h, début de la keynote WWDC de Steve Jobs.

Comme trois fois par an, c’est le 24 décembre, et le Père Noël va arriver.

Il arrive en deux fois :

  • en direct sur twitter, MacBidouille, Ars Technica

  • en différé, mais avec le son et le col Mao.

Pas de pronostics, bien que mon MacBook Pro vieillisse, et que Martin a presque réussi à casser mon iPhone (mais c’est vraiment indestructible ce truc).

La table de nuit la plus cool du monde ...

Posted on mai 14, 2008

… C’est la mienne :)
photo.jpg

Le pied

Une SGI Indigo avec une IP20, un CPU R4000SC à 100MHz, 32Mo de RAM, la board graphique XZ, et un disque de 1Go.

Je l’ai achetée avec son écran de 19”, son clavier blindé, et la souris.

L’OS est IRIX 6.5.20, si je me souviens bien. Ca fait un moment que je ne l’ai pas démarré. Beaucoup trop bruyante.

je m’en suis servie plus d’un an en tant que machine principale en 2000-2001. La RAM manquait pour Netscape alors celui-ci tournait sur un serveur linux derrière, et était déporté avec X11 sur l’Indigo.

L’Indigo est célèbre pour avoir été utilisé dans la synthèse du T1000 liquide dans Terminator 2.

La tablette

La tablette est une slab, une NextStation N1100.

Dedans il y a un 68040 à 25MHz, de la RAM et un disque dur et une boîtier en magnésium (je crois). Je ne l’ai jamais démarrée, sans clavier, sans écran, impossible ; c’est encore en tablette qu’elle me sert le mieux …

C’est sentimental de toute façon. Je me souviens avoir lu jusqu’à l’usure le SVMMac annonçant la sortie de la première NeXT et je me suis dit “Un jour elle sera mienne, oh oui, Un jour elle sera mienne”.

Bref, elle ne tourne pas. C’est pas grave. Je suis en train de taper ce texte sur la version actuelle de NeXTstep, Mac OS X.

L’ensemble

L’accord couleur n’est pas parfait. Et je sais que Significant Other ne l’aime pas beaucoup.

Mais c’est le top du top de 1990. J’aimais déjà beaucoup les machines à cette époque (j’avais 13 ans). Surtout celles que je pouvais pas me payer ; La NeXTStation valait $5 000 et l’Indigo dans les $20 000.