Sunday, February 1, 2009

Installing Flash 9 on Ubuntu 6.10 (Edgy Eft)






I will show you how to install flash 9 on Ubuntu 6.10. After many research that I made, I came up with a very short way to install Flash 9 on Ubuntu 6.10. Many people in the web did many ways to install Flash 9 on Ubuntu. Some of them take long way to install Flash 9 on their Ubuntu.

The following are the 5 easy steps to install Flash 9 on Ubuntu 6.10:

1.) Download the install_flash_player_9_linux.tar.gz from this site: http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&promoid=BIOW

2.) Now, we have to unzip the install_flash_player_9_linux.tar.gz file. In the terminal, type the command below:

tar -xvzf install_flash_player_9_linux.tar.gz

3.) New directory was created to your current directory. The name of the new directory created is: install_flash_player_9_linux

In that new directory, libflashplayer.so and flashplayer.xpt must exist.

a.) Copy libflashplayer.so and flashplayer.xpt to /usr/lib/firefox/plugins/
b.) Copy libflashplayer.so and flashplayer.xpt to ~/.mozilla/plugins/

Type the following command:

sudo cp install_flash_player_9_linux/libflashplayer.so /usr/lib/firefox/plugins/
sudo cp install_flash_player_9_linux/flashplayer.xpt /usr/lib/firefox/plugins/

sudo cp install_flash_player_9_linux/libflashplayer.so ~/.mozilla/plugins/
sudo cp install_flash_player_9_linux/flashplayer.xpt ~/.mozilla/plugins/

4.) We will delete the directory install_flash_player_9_linux since we don't need it anymore. Type the following command to recursively delete the directory.

sudo rm -r install_flash_player_9_linux

5.) Open a new firefox browser, and type the following in URL

about:plugins


The following must appear:

Shockwave Flash
File name: libflashplayer.so
Shockwave Flash 9.0 r31

That's my five easy steps when I installed Flash 9 on my Ubuntu 6.10.



Make money from your Website or Blog with BidVertiser
Your Ad Here for FREE!

Ubuntu 6.10 - Building MSSQL module in PHP5






This is a tutorial on how to add MSSQL module in PHP under Ubuntu 6.10.

I assumed that you have already installed PHP5 in Ubuntu 6.10. MSSQL module for PHP5 is not available in apt-get. So we need to manually install mssql module for PHP5 in our linux box.

Step 1: Install freetds-dev package

#sudo apt-get install freetds-dev

Step 2: Get the php5 source

#sudo apt-get source php5

//assuming you are in your home directory (i.e. /home/yourname)
//the command in step 2 will download the php5 source files and it will be placed in your current directory. New directory will be created after issuing the command in step 2. Name of new directory that will be created is php5-5.1.6

Step 3: Build MSSQL module

#cd php5-5.1.6/ext/mssql
#sudo phpize
#./configure --with-mssql

//after executing the commands in step 3, new directory will be created. name of new directory is modules.

//assuming you're in your home directory. absolute path of new directory created is ~/php5-5.1.6/ext/mssql/modules

Step 4: Copy new module to php extension directory

since your current working directory is in ~/php5-5.1.6/ext/mssql, you need to change directory to modules

#cd modules
#cp mssql.so /usr/lib/php5/20051025

Step 5: Modify php.ini

//your php.ini can found in /etc/php5/apache2/php.ini
//you can use vi editor to edit the file

#sudo vi /etc/php5/apache2/php.ini

add the following line:

extension = mssql.so


Step 6: Restart your Apache Server

#sudo /etc/init.d/apache2 restart

//to confirm if MSSQL support is available, create a new php file and execute phpinfo() function. Run the php file to your browser and you can see the information about your PHP.

Thanks.



Make money from your Website or Blog with BidVertiser
Your Ad Here for FREE!

Java Programming - Returning a Value from a Method






A method returns to the code that invoked it when it completes all the statements in the method, reaches a return statement, or throws an exception, whichever occurs first.

You declare a method's return type in its method declaration. Within the body of the method, you use the return statement to return the value.

Any method declared void doesn't return a value. It does not need to contain a return statement, but it may do so.



Make money from your Website or Blog with BidVertiser
Your Ad Here for FREE!

Java Programming - Using the this keyword






Within an instance method or a constructor, this is a reference to the current object - the object whose method or constructor is being called. You can refer to any member of the current object from within an instance method or a constructor by using this.



Make money from your Website or Blog with BidVertiser
Your Ad Here for FREE!

PL/SQL Intro - The Dual Table






The dual table

1. dual is a table that contains single row
2. The dual table has one VARCHAR2 column named dummy
3. dual contains a single row with the value X.


The structure of the dual table:


SQL> DESCRIBE dual;
Name Null? Type
DUMMY VARCHAR2(1)


SQL> SELECT * FROM dual;

D
-
X



Make money from your Website or Blog with BidVertiser
Your Ad Here for FREE!

The Power Behind The Words You Say






Words

Many people just say the word that they want to say. They are not aware of the power of every word they say. I’d like you to understand that the words you say have the power to manifest.

You have to choose the word you say. If you say it’s impossible for you to become rich, you will attract that thought. But if you say you can be rich, you attract the things, situations, or people that would help you to become rich.

Successful people consciously or unconsciously choose the words they say. They always say positive things.



Make money from your Website or Blog with BidVertiser
Your Ad Here for FREE!

The Filipino Painter's Painting








I took this picture from a painter's house in Mandaluyong City. He's a great painter. I wasn't able to get his name. He's near in my boarding house here in Mandaluyong.

What do you think about his paint? Does it look good?

That's one of his paintings. I'll upload some of his paintings later.



Make money from your Website or Blog with BidVertiser
Your Ad Here for FREE!

17 Success Principles






I read the book 'Success Through A Positive Mental Attitude' by W. Clement Stone. It is one of the best books I've ever read. It would teach you how to reach your definite goal.

Here are the 17 Success Principles:

1. A Positive Mental Attitude
2. Definiteness of purpose
3. Going the extra mile
4. Accurate Thinking
5. Self-discipline
6. The master mind
7. Applied Faith
8. A pleasing personality
9. Personal Initiative
10. Enthusiasm
11. Controlled Attention
12. Teamwork
13. Learning From Defeat
14. Creative Vision
15. Budgeting Time and Money
16. Maintaining sound physical and mental health
17. Using cosmic habit force



Make money from your Website or Blog with BidVertiser
Your Ad Here for FREE!

UNIX command - recursive delete without any prompt






Last week, I was struggling to recursively delete a directory which contains files and subdirectories. I know how to do it in Linux but it's a bit different from UNIX. I'd like to share with you how I solved my problem.

Here is the UNIX command that I used:

[/home/username]\rm –rf name_of_directory



Make money from your Website or Blog with BidVertiser
Your Ad Here for FREE!

Tips on Making Your Own Decisions






The following are the tips on making your own decisions:

1. Don't permit the newspapers and the gossiping neighbors to do their thinking for you. If you are influenced by the opinions of others, you'll have no desire of your own.

2. You have a brain and mind of your own. Use it, and reach your own decisions.

3. Keep your eyes and ears wide open and your mouth closed, if you wish to acquire the habit of prompt decision.

"Deeds, and not words, are what count most".



Make money from your Website or Blog with BidVertiser
Your Ad Here for FREE!