Sunday, November 8, 2009

This Week [46] Motivation

If you want something you never had,
do something you have never done.


Don't go the way life takes you,
take the life the way you go.


And remember you are born to live and 
not living because you are born.

Sunday, November 1, 2009

Hobby - Cubik Cube 3x3

This is the faster and easier way I found how to solve this historical world phenomena.
There are only 6 algorithm to solve this cube.

1. Ri Di R D
2. U R Ui Ri Ui Fi U F
3. Ui Li U L U F Ui Fi
4. F R U Ri Ui Fi
5. R U Ri U R U U Ri
6. U R Ui Li U Ri Ui L

 Need to memories.
1. The center edges is the colour references
2. Remember the algorithm

F is front side
R is right side
L is left side
U is upper side
D is down side
i is inverter


Procudure :
1. Choose white side as your base side
2. Solve this white cross and first;two layer edges
3. When you get white cross on the top, use algorithm 1 to solve the first top layer.
4. The when the white base and 1st layer solve, turn the white base as a down side.
5. To solve 2nd layer, choose the edge and the center with the same color. Then,
   5a. if the edges opposite is same as a right side; use algorithm 2
   5b. if the edges opposite is same as a left side; use algorithm 3
6. After 1st and 2nd layer solve, you need to get upper side cross - yellow cross. To get this, use algorithm 4. Repeat the algorithm until you get the yellow cross.
7. Next use algorithm 5 to get 4 side's edges at 3rd layer same color as the center color. You will get top yellow cross and 3rd layer edges color on the right place.

8. Then use algorithm 6 to get 4 corner pieces at the right place. This time the color is at right place but did not match with the center color. But don't worry...
9. Repeat algorithm 1 to match the 4 corner pieces with the center color.

It is amazing.. it have done.. try yourself..

p/s - for Putrajaya resident.. give me a call for consultancy..

This Week [45] Motivation

One of the most satisfying thing in the life is the knowledge that there is always room fro growth within.
Every moment, everyday of our lives there are new things to learn.
There's always room for personal growth.

For a start, be true to yourself and accept this as a fact.
Personal growth achieves a level of heightened awareness that brings mind, body and spirit together in harmony.
This means being in better control of our lives.

As the year go by when we look back, be proud of the growth path we took on our journey through life. Let us take one day at a time, rejoicing and be glad of the blessings that come our way each day.

Sunday, October 25, 2009

Linux CLI - Remove/Delete



1. To remove files
rm


2. To remove empty directory
rmdir 


3. To remove a directory along with all of its contents, type:
rm -fr

*use this with caution as there is no undelete.


4. To uninstall packages
apt-get remove  

Linux CLI - How to clear history

For fast clearing just type 'history -c' command that will clears the terminal history.

Another alternative by googling..

 1. Just put this command in your .bashrc file

a. If you don't even want to keep on in the first place
export HISTSIZE=0

b. Prevent less from creating a history file.
export LESSHISTFILE="-"

c.Prevent a bash history file from ever being saved.
unset HISTFILE


2. Your history will be available in ram for each bash session, but will be gone once you log out

rm -fr ~/.bash_history

ln -s /dev/null ~/.bash_history


3. You could add the following line to the end of your .bash_logout file:

rm -f .bash_history


Test it!!!

Linux CLI - Check size of Directory and sub-directories

1. Display free disk space

df --


2. Display disk usage statistics

du --


Example:


1. Check disk total free space
df -h


2. Check size of directory by list down all the contents
du -ah /path/to/dir



3. Only display total directory size
du -sh /path/to/dir



p/s - normally I only use du -sh & df -h

This Week [44] Motivation

Stop fooling around..
Just do it!