Jorge Albaladejo

Hard & Soft design…

ActionScript 3 and cross-domain problem

without comments

One of the most typical problems when coding AS3 to, let’s say, read data from an external XML source, is the cross-domain problem. According to security policies, not an url outside the domain where the AS application is being executed can be read, and different subdomains (such as www.yourdomain.com and yourdomain.com) are considered as different ones.

If the external resources you are trying to use come from your own application in another domain / server that you manage, then it can be fixed by adding a cross-domain policy file. This file must be defined on the content source server, and your AS application has to explicitly declare this server as allowed.

?View Code ACTIONSCRIPT
Security.allowDomain("domainone.com");
Security.allowDomain("domaintwo.com");

 

But if this is not the case and the content source is on a different remote server like, for instance, when implementing an RSS news reader which grabs content from sources like online news sites, then this problem can be worked out with a PHP proxy file.

Read the rest of this entry »

Written by Jorge Albaladejo

September 6th, 2010 at 8:37 pm

Basic web mapper

without comments

Sometimes it is useful to have an automated tool to get the full web map of your site. Perhaps not your own web site, since you have already implemented some kind of automatic generation and notification to Google (have not yet?), but a client’s one.

There are a few tools to map an external web site, I tried some in my particular case. They were just adware, or demos, or they obscured the links in the final report… Yeah, of course, sometimes a $30 license is worth it, but you might not want to acquire a new piece of proprietary software every time you need a new feature, might you?

So I decided to write it myself in PHP, not for the money, but for the fun :)

Read the rest of this entry »

Written by Jorge Albaladejo

August 21st, 2010 at 9:00 am

Scrum / agile development

without comments

Some resources and useful information about this development technique:

Read the rest of this entry »

Written by Jorge Albaladejo

July 29th, 2010 at 8:53 pm

MySQL clean reinstall

without comments

To perform a clean reinstall of the MySQL server (which regenerates start scripts, databases and config files) use:

1
2
3
4
sudo apt-get install mysql-server</li>
sudo apt-get remove --purge mysql-server</li>
sudo apt-get autoremove mysql-server</li>
sudo apt-get install mysql-server</li>

Some times is useful!

Written by Jorge Albaladejo

July 27th, 2010 at 8:08 pm

Posted in MySQL

Tagged with ,

FTP server on Ubuntu

without comments

I write this post more as a reminder for myself than as a generic tutorial. Anyway, it is about a precise FTP server configuration on Ubuntu that might or might not be useful for other people. It is just useful in the environment I am using (web server, just one Unix user, some FTP accounts). Here we go:

The server that I’ve used in several cases, and which I prefer just because it is simple enough to have it running quickly, is VSFTP (Very Simple FTP). It works in integration with the machine’s users so that we only need to add users to the server in order to have them available for the FTP daemon.  Once the server is installed, a few configurations must be done. In file /etc/vsftpd.conf:

Read the rest of this entry »

Written by Jorge Albaladejo

July 6th, 2010 at 9:12 pm

This site is protected with Urban Giraffe's plugin 'HTML Purified' and Edward Z. Yang's Powered by HTML Purifier. 1123 items have been purified.