Icon

Sylvain Combes

g33k stuff & notes

How to install pdt aptana and FDT 5

Step 1, PDT : Download PDT here, extract the content and put it somewhere on your disk

Step 2, Aptana : Launch your brand new PDT and go to Help>Install New Software click add, fill the fields with ‘Aptana’ and this url http://download.aptana.com/studio3/plugin/install , click ok, check the checkbox and install. When you’re prompted to restart eclipse, restart

Step 3, adding java stuff for FDT 5 requirements : Again return to Help>Install New Software click Add and enter p2 for the name and this repo (depend on your eclipse version, mine is indigo) : http://download.eclipse.org/releases/indigo/ ,click ok and look for Eclipse Java development tools in Programming Languages, check and install restart if you’re asked for.

Step 4 FDT5 : Help>Install New Software : Add, enter FDT5 in name and http://fdt.powerflasher.com/update/fdt5/ for the location, click ok check the checkbox and install, restart eclipse

Step 5 : Enjoy your pdt + aptana + fdt eclipse combo :)

How to quickly access to system infos on Windows 7

How to quickly access to system infos on Windows 7 ?
- Just press Windows + Pause

How to quickly open a command line prompt in the current folder on Windows 7

We often need to open command line prompt and have to change to a path to launch some commands.

Here is a quick way to do it :
Just press and hold SHIFT key and press the right mouse button, in the context menu you’ll see an entry with something like « Open command prompt here » (i have a french OS) et voilà :).

Facebook Graph API & Flash Internet Explorer INET_E_DOWNLOAD_FAILURE

On a project I have to do some flash and facebook connect. I did it with OAuthGraph and the classes you can found on http://blog.yoz.sk. At the end (after some pain) everything work. After some time we had report that under internet explorer the facebook connect fails. That was a surprise since nothing in code has moved.
After some investigation i found that the error occured on the call on /me here is the scenario :
Call on :

https://graph.facebook.com/me?access%5Ftoken=XXXXXXXXX [...]

With Debug bar in internet explorer under Info & cache we can see :

Error result: 0x800c0008
Error constant: INET_E_DOWNLOAD_FAILURE
Error description: The download has failed (the connection was interrupted)
Extended error result: 0x2f7e

I search solutions and explanations but didn’t found concrete solid answers. It seems that the facebook header make internet explorer to try to launch a download and fail.
Finally i saw that some coders published the swf with flash player 10 and it resolved the issue. I did that and yes it does working again.
So i note this ugly patch here to remember.
But this is driving me mad because i can’t see relation between the bug issue and the version of the player.
Furthermore it worked well for several days with a swf in flash palyer 9 version …
If someone has understand what’s going on with this one, don’t hesitate to leave a comment

A great license

Today I discovered a great license, it’s the WTFPL License.
The license is approved as a GPL-compatible free software license by the Free Software Foundation and best of all is fun.

From Wikipedia, the free encyclopedia
The WTFPL (Do What The Fuck You Want To Public License) is an uncommonly used, extremely permissive free software license. The original Version 1.0 license, released March 2000, was written by Banlu Kemiyatorn who used it for Window Maker artwork. Samuel “Sam” Hocevar, a French programmer who was the Debian project leader from 17 April 2007 to 16 April 2008, wrote version 2.0. It allows for redistribution and modification of the software under any terms—the licensee is encouraged to “do what the fuck [they] want to”. The license was approved as a GPL-compatible free software license by the Free Software Foundation.

I like it so much that I think I will use it on my next « free » projects.
Here is an exemple of what it’s look like :

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004

Copyright (C) 2004 Sam Hocevar
14 rue de Plaisance, 75014 Paris, France
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

0. You just DO WHAT THE FUCK YOU WANT TO.

Learn more on wikipedia

ZendAMF

At work i have to do some AMF3 delivered through php, so i finally have an excuse to have a look at ZendAMF.

First i follow the classic implementation which is pretty simple, you can found it here. It works well and i found no problem using it.

Then (thanks to my geek friend max) i read articles about how to deliver AMF through HTTP requests on the cool Rob[on]code blog

The main advantage i like in this approach is the possibility to have a progression info, cool.

The other cool thing is that rob offer us two articles, one with php sending AMF to flash and the other flash sending AMF to php.

Everything is very well explained and gave us example with custom data format aka class mapping.

There are some tips revealed that can save your day, like adding a newline in your php to have correct interpretation in flash or avoid URLVariables in flash, or how to get flash AMF from php with this :

1
2
3
4
// Get the contents from the stream
$amf = file_get_contents('php://input');
// Remove first byte (new line)
$amf = substr($amf, 1);

You can found the articles on the Rob[on]code blog here :

MultiLink

Finally an update : another free open source flash extension just for you !

MultiLink extension link movieclip to a class. The linkage matches the selection you made in the flash ide (on stage or in the library).

To learn more about this extension and to download it :
Go grab MultiLink flash extension now !

PS : Yes it’s been a looooong time and nothing new on this blog. I’ll try to change that and publish content more often.

Instances Grab

One day i just can’t bear anymore to declare manually all my instances form the flash ide in my classes.

Lazy as i am, i created an extension to manage this issue. With this extension i can now just select my instances launch the command and paste in my classes without the painful and time-costing manual method.

Now i just can’t live whithout it :)

You can get an use freely Instances Grab, i hope it can be as useful as it is for me :
Go get Instances Grab now !

Happy coding !

Category