soledad penadés
repeat 4[fd 100 rt 90]

Archive for September, 2007

20070924 Security sandbox violation? How come!

I've received a few error reports on a for-fun-only flash thing/experiment/joke I did some time ago, the next captcha generation for myspace forms.

At first I thought it had been my fault, due to my inexperience in flash, but after having been working more time with sounds in flash, I found the problem is not in my code but in Flash's internals. For some reason, if you're calling, for example, computeSpectrum in one movie and at the same time there's another flash movie being executed and playing any type of media in another tab, your movie will begin to trigger Security sandbox violation errors.

It seems to happen because the player doesn't distinguish between different movies, and treats all the sounds as if they belonged to the same soundspace (like a namespace, but for sounds :D), hence it tries to mix them all together and process the soundSpectrum of this global mix. Obviously, they don't belong to the same domain, and that's why you'll soon get errors.

And you might wonder what's going wrong, because you've got your policy files and everything sorted out, everything seems fine but it's not when you try to access global sound stuff. Hopefully now you know why (although you can't do anything about that).

I'm not sure if this should be an expected behaviour or they just didn't think that we could execute several flash movies in different tabs. Obviously, this only shows up if you're using the debug version of the player. In any other case, all these errors are lost in a flash log file which is hidden somewhere in your hard disk.

Anybody knows of any solution or work around? It seems to be happening to a few more people as well.

20070905 Fed up with comment spam?

Akismet has caught 52.000+ spam comments since I installed wordpress. That was a year and a half ago, which is pretty impressive for a non popular blog.

Most of the comments come from pingbacks, so it's a good idea to install some kind of plug-in which disables pingbacks on posts after a certain time (~3 months), or just run a query to disable all comments from time to time, etc.

But I just got an e-mail with the definitive solution, and you don't need to install anything. See by yourself how easy is it:

hello , my name is Richard and I know you get a lot of spammy comments ,
I can help you with this problem . I know a lot of spammers and I will ask them not to post on your site. It will reduce the volume of spam by 30-50% .In return Id like to ask you to put a link to my site on the index page of your site. The link will be small and your visitors will hardly notice it , its just done for higher rankings in search engines. Contact me icq 45452xxxx or write me texxxxxxxx(at)yahoo.com , i will give you my site url and you will give me yours if you are interested. thank you

I feel very relieved now that I found the solution… I think I'm going to answer him immediately, so he can speak to the spammers and tell them not to spam my site. He's such a nice guy!