|> KML des derniers tremblements de Terre |
dimanche 22 juin 2008
Publié par Francois Schnell à 06:54
vendredi 30 mai 2008
dimanche 25 mai 2008
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
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
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):
Code in plain text:
samedi 26 janvier 2008
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.