> KML des derniers tremblements de Terre
| |
dimanche 22 juin 2008
[french] Visualisation des séismes du RENASS via KML(s)
Publié par Francois Schnell à 06:54 0 commentaires
vendredi 30 mai 2008
OSMaware, visualising OpenStreetMaps mapping activity via KML(s)
thanks for the "Lolcat of awesomeness" award :)
Publié par Francois Schnell à 07:32 0 commentaires
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:
http://www.python.org/download/
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:
http://pythonmac.org/packages/py25-fat
More informations about MacPython:
http://wiki.python.org/moin/MacPython
An interesting read about the Python distributions (especially in a scientific context)
Publié par Francois Schnell à 03:00 0 commentaires
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)
Publié par Francois Schnell à 09:41 0 commentaires
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)
Run (right click at runtime then "view source" to see the code):
http://francois.schnell.free.fr/flex/draw/draw.html
Code in plain text:
http://docs.google.com/Doc?id=dgqhgsgm_153dc6cvzf7
Publié par Francois Schnell à 13:07 4 commentaires
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:
BloggerPaste:
http://francois.schnell.free.fr/tools/BloggerPaste/BloggerPaste.html
If you have any comments or feature request thanks to let me know.
Publié par Francois Schnell à 15:12 1 commentaires
Libellés : blogger flex