dimanche 22 juin 2008

[french] Visualisation des séismes du RENASS via KML(s)

Ce post est un "Google docs export" => page orginale à jour ici, dossier KML(s)
> KML des derniers tremblements de Terre
  • visualisez le KML (lien ci-dessus) dans Google Earth, World Wind, Virtual Earth, etc
  • derniers tremblements de Terre en premier dans la liste
> Visualisation dans Google Maps Search:
  • Centré France, rendu "Terrain"
  • Centré Monde, rendu "Terrain"
> Visualisation via Google Maps API:
  • Centré France
  • Centré Monde
> Visualisation via Open Layers sur carte Open Street Map:
  • Centré France
> Flux RSS pour se tenir au courant des derniers séismes (expérimental)
  • Flux RSS

vendredi 30 mai 2008

OSMaware, visualising OpenStreetMaps mapping activity via KML(s)

More informations here: http://code.google.com/p/osmlab/

thanks for the "Lolcat of awesomeness" award :)

dimanche 25 mai 2008

OS X 10.5 Leppard: "express" Python, PIL and WxPython please

Python on OS X 10.5...

It is not recommended to mess-up with the Python 2.5 installed by default, and while wanting to install PIL and WxPython, I discovered and lost myself in the jungle of Python "distros" and their prerequisites (Fink, MacPorts, DarwinPorts, AciveState, MacPython ...)

In a hurry? go to the source: python.org (MacPython)

1) search and install the universal installer for OS X:

This new Python will be the default one when you invoke "Python" in a shell.
It's installed in "/Library/Frameworks/Python.framework"
(the original OS X python is in: "/System/Library/Frameworks/Python.framework").
The new libs are in "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages"

2) download and install PIL, WxPython (or other packages) from:

More informations about MacPython:

An interesting read about the Python distributions (especially in a scientific context)

samedi 16 février 2008

Flex: how-to access remote data (xml) through a proxy?

Flash player (used by Flex) has a very strict security policy: it's not possible to access public data from another domain than the one where your swf stands (unless a crossdomain.xml file is present on the distant server you want to access).

If the crossdomain file doesn't exist it is always possible to copy a minimal proxy file on your server (where your swf is present). This way flash player will communicate locally with the proxy, the proxy will give the result back to flashplayer, and there won't be any remote domain seen by flashplayer.

How-to use a proxy with Flex and Action Script3? (code and example)


vendredi 15 février 2008

How to programmatically draw in Flex 3?

I was surprised by the lack of documentation( and working example) for this simple task.

Here's what I've got so far:

  • Flex doesn't like "Shape" objects? replace them with "UIcomponent"
  • a "UI component" must be attached to a container (like a canvas, a panel,...)
  • the shape will be visible when it is added has a child of the container: myCanvas.addChild(myCircle)
Here's an example with 3 buttons (1 to create a rectangle, 1 to create a circle, 1 to move them appart):

Run (right click at runtime then "view source" to see the code):

Code in plain text:

samedi 26 janvier 2008

Blogger: paste HTML, tags, code

Blogger is not really code friendly. You need to "escape" each tag (replacing <>). Also spaces disappear and you may need to add a "pre" tag.

As I'm learning Flex/Air I've developed a small on-line tool to automate the process if you need to paste HTML or tags/code:


If you have any comments or feature request thanks to let me know.