Export SIOC pour Dotclear v0.2

Nouvelle version du plug-in d’export SIOC pour Dotclear:

  • Affichage des posts dans une page dediée à sioc:Forum, et ajout de lien vers les posts précédents (de manière à ce qu’un browser / scrapper puisse tout visualiser / agréger);
  • Export de la catégorie du billet, et de ses tags (si le plug-in twTags est installé) via sioc:topic;
  • Export des liens (pas de distinction interne / externe) du post via sioc:related.

Cette version se base sur les specs en cours, et non pas sur les changements proposés recemment.

Si vous utilisez le plug-in sur votre blog, pensez à l’indiquer sur cette page wiki.

Edit 12h10: Avec le lien, ca sera plus pratique: http://apassant.net/share/semweb/dotclear-sioc-0.2.phps

Edit 25/05 07:10 Bugfixes sur l’export du forum et le content-type avec la v0.2.1.

Maps on Nokia770 ?

I tried to load a Google Map on my Nokia770, but seems it doesn’t work. The script maked the browser freeze, and I can’t navigate through the map. It worked one or two times for the first action on the map but then it freezed again.

I also tried Yahoo maps, but the flash map doesn’t seem to load.

Has anyone manage to make one of those run properly on the N770 ?

(While posting this, I’ve read that others already got the problem)

Inline queries in Semantic Mediawiki

I’ve just got a mail on the swikig ML about the v0.4 release of Semantic Mediawiki, which should happen tomorrow.

{{The most remarkable item on the list of changes are probably the new inline queries which allow you to insert semantic search results into articles }}

Indeed, that’s really cool !

Have a look at SemWiki list of papers, and especially its source. The provided list of papers is a single line query, retrieving all accepted (and annotated as) papers created among the Wiki.

 <ask format="ul">[[Category:Paper]] [[accepted by::SemWiki2006]]</ask>

This means that the wiki is not only a tool for creating and querying triples, but also an RDF-consummer. Here, the wiki and the data are locally stored, but we can imagine to use a distributed query system among different tools / 3stores to get webpages – wikis or not – constantly up-to-date thanks to Semantic Web and distributed knowledge.

So now, let’s wait until tomorrow to know more about other features :)

Firsts steps with Ruby On Rails

As I mentioned before, I planned to rewrite recordShops in Ruby on Rails. Actually, more that rewriting this particular application, I’ll try to write a generic “locate and review” tool, with usual tagging and Google Maps stuff.

So, let’s talk about RoR. I’ve already looked at it before, but started seriously to play with it today. And that’s really cool!

Reading Four Days in Rails and with only a few lines of code, I got an object oriented item/reviews model with the appropriate editing forms.

  • You want each item to have a name ? Just add validates_presence of :name in your item model and the form won’t validate if name is empty.
  • Reviews need to be at least 20 chars ? Add validates_length_of :review, :minimum=>20
  • And you want a dropdown country list ? Type <%= country_select 'item', 'country' %> in your form.

Nice isn’t it ?

Then, I looked for an authentication plugin and installed auth_manager. This plugin includes e-mail validation of accounts, password reminder, different user levels, protected webpages …

Next step was tagging. Acts_as_taggable seems to be the way to add tag features to items.

I still need to integrate Google Maps (Cartographer plugin uses v1 API so I’ll have to look at its code before making it run with the new one), but at the moment, I’m really impressed with RoR features to easilly write “basic” online apps.

Développement sous IE, help !

Je viens de passer plus d’une heure à me battre avec du Javascript sous IE, dont une bonne partie pour me rendre compte qu’il ne suivait pas certains specs du DOM, notamment en ce qui concerne le setAttribute.

Quelqu’un connait-il un bon équivalent à la Web Developer Toolbar pour IE ? Un truc super utile que j’ai découvert aujourdhui et que j’aimerai retrouver sous IE est la possbilité de voir le source courant de la page, et non celui crée au moment de l’appel (hyper pratique quand on ajoute des éléments dynamiquement à une page en manipulant justement le DOM, pour voir ce qui passe et qui ne passe pas).

Des suggestions ?

European streets on Google Maps

I’ve just discovered – via dowhatimean.net – that Google Maps now displays European street names!

The API has also be updated (you have to make the changes by yourself if you use it), and also offers nice features as tabbed infos windows or control maps.

I think this integration of European streets is really great, especially for services that allow to get location from maps, which couldn’t be done easilly before for European stuff. Actually, I was waiting for it for a service I’m currently rewriting from ning.com to Ruby on Rails: recordShops. I hope I can write about it (and release) soon.

Finally, I’ve upgraded FOAFMap and already existing maps to handle this new API. Here’s a list of changes you’ll certainly need to make to update your app:

  • gPoint(long, lat) => gLatLng(lat, long) to create a point (be careful with the new args order which is really annoying when upgrading static data);
  • map.getZoomLevel() => map.getZoom() to retrieve current zoom level of the map;
  • map.centerAndZoom(GPoint, ZoomLevel) => setCenter(GLatLng, ZoomLevel) to center/zoom to the map