Install and set up Adobe Flex SDK on CentOS

1. Install JDK
Yum install java

2. Download Adobe Flex SDK (Free Adobe Flex SDK)
http://opensource.adobe.com/wiki/display/flexsdk/Downloads
wget  http://download.macromedia.com/pub/flex/sdk/flex_sdk_4.6.zip
3. if run as root, you can create directory in /opt/flexsdk or other places
cd /opt/flexsdk
unzip ~/flex_sdk_4.0.0.14159.zip
if work as normal user
mkdir ~/flexsdk
cd ~/flexsdk
unzip ~/flex_sdk_4.0.0.14159.zip
4. change the variables
vi ~/.bashrc
#add the following lines
export PATH=$PATH:/opt/flexsdk/bin:~/flexsdk/bin

5. Test
$mxmlc –help

fix kloxo ftp connection refused

Just follow the bellow steps


yum -y downgrade pure-ftpd
sh /script/upcp
sh /script/cleanup
yum -y update
service xinetd restart

How to Install Kloxo

You have to disable SELinux by editing /etc/sysconfig/selinux and changing the line to selinux=disabled. This will keep SELinux from being enabled on your server next boot.

Then you must run the following command as root to disable SELinux for the current session:


# su - root
# setenforce 0


If you are unsure this procedure worked, you can run /usr/sbin/sestatus to check its status. Failure to correctly disable SELinux will render your Kloxo install useless and an OS reload may be required to properly reinstall it.
Also, make sure the ports 7778/tcp and 7777/tcp are open in your server firewall or you won't be able to connect to Kloxo web panel when the install completes.

Installing Kloxo

Kloxo installation consists of downloading kloxo-installer.sh from download.lxcenter.org and executing it as root. The script will present you with a few questions and sometimes ask for a password (enter your root password).

If you don't have MySQL server already installed, you must run:

# su - root
# yum install -y wget
# wget http://download.lxcenter.org/download/kloxo/production/kloxo-installer.sh

To install as Master (Default Single Server):
# sh ./kloxo-installer.sh --type=master

To install as Slave:
# sh ./kloxo-installer.sh --type=slave


If you already have MySQL installed and set a root password, you must run:

# su - root
# yum install -y wget
# wget http://download.lxcenter.org/download/kloxo/production/kloxo-installer.sh
# sh ./kloxo-installer.sh --type= --db-rootpassword=PASSWORD


Once kloxo is installed, you can connect to http://YOUR_SERVER_IP:7778 and you will be presented with a login screen. Login as admin with password admin and once you are in, Kloxo will ask you to change the default password to a secure one.

Source : http://wiki.lxcenter.org/Kloxo+Installation+Guide

Unescaping string in PHP that was escaped in AS3

This one is a must if  you are posting a UTF-8 char from actionscript,

html_entity_decode(preg_replace("/%u([0-9a-f]{3,4})/i","&#x\\1;", urldecode($str)), null, 'UTF-8');

How to setup squid proxy as load balancer

What is the Reverse Proxy (httpd-accelerator) mode? 

An accelerator caches incoming requests for outgoing data (i.e., that which you publish to the world). It takes load away from your HTTP server and internal network. You move the server away from port 80 (or whatever your published port is), and substitute the accelerator, which then pulls the HTTP data from the "real" HTTP server (only the accelerator needs to know where the real server is). The outside world sees no difference (apart from an increase in speed, with luck).

How do I set it up?

Several configurations are possible. The ConfigExamples section details several variations of Reverse Proxy.

Running the web server on the same server

While not generally recommended it is possible to run both the accelerator and the backend web server on the same host. To do this you need to make them listen on different IP addresses. Usually the loopback address (127.0.0.1 or ::1) is used for the web server.
In Squid this is done by specifying the public IP address in http_port, and using loopback address for the web server
http_port the.public.ip.address:80 accel defaultsite=your.main.website
cache_peer 127.0.0.1 parent 80 0 no-query originserver
AndApache may be configured like in httpd.conf to listen on the loopback address:
Port 80
BindAddress 127.0.0.1
Other web servers uses similar directives specifying the address where it should listen for requests. See the manual to your web server for details.

Load balancing of backend servers

To load balance requests among a set of backend servers allow requests to be forwarded to more than one cache_peer, and use one of the load balancing options in the cache_peer lines. I.e. the round-robin option.
cache_peer ip.of.server1 parent 80 0 no-query originserver round-robin
cache_peer ip.of.server2 parent 80 0 no-query originserver round-robin
Other load balancing methods is also available. See squid.conf.default for the full the description of the cache_peer directive options.

Source : http://wiki.squid-cache.org/SquidFaq/ReverseProxy

 


 

online banner maker

I'm very exited to announce our  new online banner maker. i hope this will be a great tool for online advertisers. Currently  banner builder can publish in swf format. now the tool is in beta stage and we are working to improve the tool features. full release will include export JPEG png and gif feature. to me to most importent feature of this tool is you can publish your banners for Google adwords too.  

Some of the features are following
  1. predefined standers banner size
  2. customizable to any size
  3. final out put   to swf 
  4. 200+ banner template for easy to use
  5. google adwords optimized
  6. very user friendly
  7. nothing to install
  8. run in any platform
  9. interactive banners
  10. extendable with plugins
  11. Developer api
  12. template import export 
  13. easy to use editor
banner builder site :http://www.corpgenie.com/

Actionscript 3 Random Password generator

Hi,

Here is a random password generator


function createPassword(length:Number=10):String
{
var chars:String="abchefghjkmnpqrstuvwxyzQWERTYUIOPLKJHGFDSAZXCVBNM0123456789";
var i:Number=0;
var pass:String="";
var nLenght:Number=chars.length;
while(i<=length)
{
var num:Number=Math.round(Math.random()*nLenght);
pass+=chars.charAt(num);
i++;
}
return pass;
}


PHP developer Cochin |PHP developer Kerala | PHP developer India | Flash developer/programmer Cochin | Flash developer/programmer Kerala | Flash developer/programmer India | web programmer kerala |web programmer Cochin |web programmer India |web developer kerala |Web developer Cochin | Kerala PHP | PHP freelancer| flash actionscript freelancer