Programming
Custom Cursor for AS3
http://www.actionscript.org/forums/showthread.php3?t=154644
As conclusion
var cursor:MovieClip;
function initializeMovie ():void
{
cursor = new Cursor();
addChild (cursor);
cursor.enabled = false;
Mouse.hide ();
stage.addEventListener (MouseEvent.MOUSE_MOVE, dragCursor);
}
function dragCursor (event:MouseEvent):void
{
cursor.x = this.mouseX;
cursor.y = this.mouseY;
}
initializeMovie ();
Casting String to Number and Vise Versa
Hi,
Today i encounter a problem in AS3 where i want to cast a string to become a number and otherwise. So i googled and found 1 related article: http://www.wuup.co.uk/as3-quick-tips-string-to-number-conversion-and-vice-versa/
As summary:
// string to number var myString:String = "5"; var myNumber:Number = Number(myString);// number to string var myNumber:Number= 5; var myString:String= String(myNumber);// string to int (integer) var myString:String = "5"; var myInt:int = int(myString);
Terminal on CentOS
How to set Virtual Host
Virtual will redirect the ip to the folder.
location: /etc/httpd/conf/extra/httpd-vhosts.conf
<VirtualHost 202.190.179.23>
ServerName 202.190.179.23
ServerPath /skc
DocumentRoot /var/www/html/skc
</VirtualHost>
How to restart httpd server
service httpd restart
Go Back to Previous page using Javascript and PHP
Found a simple yet practical on how to implement simple Go Back link to previous page using javascript and PHP.
You can read the tutorial here:
http://perishablepress.com/press/2007/03/12/go-back-via-javascript-and-php/
Installing Java Development Kit(JDK) on Ubuntu
I have found good tutorial on installing Java JDK 6 on Ubuntu which is here: http://www.cyberciti.biz/faq/howto-ubuntu-linux-install-configure-jdk-jre/
It will show on how to install java jdk and then we set java path (java home) to the system.
Installing Xampp on Ubuntu. Make LAMP!
I found a great tutorial at http://humanlanguage.wordpress.com/2006/12/03/install-xampp-on-ubuntu/on how to install xampp on ubuntu. Now i can start web development using LAMP in Ubuntu~
Editing files from root using terminal
You might use terminal to edit files such as php.ini later on, so this is a good tutorial about it: http://www.howtoforge.com/faq/12_15_en.html
This is extra reference. You will not use it accept when getting a problem.
To install pear:
root@ubuntu:/usr# apt-get install php-pear
PECL requirement
root@ubuntu:/usr# apt-get install build-essential
Root User in Ubuntu
To install apps in ubunt, you need to be root user.
So this simple article will show you how to become a root user if you are the first person:
How do I login as root user?
- Open terminal at Accessories>Terminal
- and simply type the following command:
$ sudo bash
OR
$ sudo -s
Using service Builder
Objectives:
Creating Report Portlet
Steps:
- Create Service XML
- Build the service
Create folder com/ext/porlet/reports at ext-impl/src
Create a file named service.xml under that folder
Drag ext-impl/build.xml and do build-service-portlet-report
Result:
ext-services/src : It will now generate model, service, service.persistance AND
ext-impl/src: Implementation of service above
Installing Liferay
You can install liferay by following instructions at my friend’s blog: http://lazy-programmer.blogspot.com/2009/06/install-latest-version-of-liferay-522.html
IMPORTANT!
if you are using 5.2.3 or later , do not execute mysql queries. Follow these steps:
1. Create table lportal at mysql or other db
2. Clear up tomcat\tomcat\webapps\. LEAVE ONLY ROOT folder.
3. Start the tomcat server
USING EXT
Create 1 file called app.server.username.properties
Joomla User Access for Content
http://extensions.joomla.org/extensions/access-a-security/backend-a-full-access-control/9040
http://extensions.joomla.org/extensions/news-production/content-construction/5583
