Shorthand Vector

Short tip for fellow devs, it seems that old Flash CS4 has a problem compiling one of it's own language features. There's this cool shorthand for writing a Vector
var v:Vector.<int> = new <int>[];
However this yields error
invalid xml name
Either stay away from compiling with Flash IDE at all (which would make you a happier human), or compile with Flash CS5 and onwards.
Posted in Flash | Tagged | Leave a comment

Server POST request magically transformed to GET

Spent quite some time trying to figure out why all my POST requests ended up as GET requests on the server.
<?php
	echo "REQ Method : " . $_SERVER['REQUEST_METHOD'];
?>
Luckily I found the answer at Stackoverflow. which reminded me of the dumb rewrite rule i had set on my server.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^lazylady.se
RewriteRule (.*) http://www.lazylady.se/$1 [R=301,L]
This effectively rewrites all "lazylady.se" requests to "www.lazylady.se". To remedy the problem remove the rewrite rule from the server's root .htaccess.
Posted in Misc | Tagged | Leave a comment