Dagu on June 1st, 2009

There are so many ways to extract zip or tar.gz or tar.bz2. You can use GUI or command line. In this tutorial, I would like to show you how to extract compressed files using command line.

Extract zip file:

unzip file_name.zip

Extract tar.gz file:

tar -xzf file_name.tar.gz

or

tar -xvzf file_name.tar.gz

Extract tar.bz2 file:

tar -xjf file_name.tar.bz2

or

tar -xvjf file_name.tar.bz2

Notice in tar command, there is -v parameter. It tells the application to show the extracted files (verbose).

Those are the standard way to extract. If you need more functionality, just use man command.

man unzip
man tar

Tags: , ,

Dagu on May 24th, 2009

Typing is like writing. Looks like an easy work, but it’s very difficult and annoying if you don’t know the secret. Whoever you are, you need to type fast and accurate while using computer. I have some tips to be a typing master.

  1. Use all of your fingers.
  2. You need to know where to place your finger.
  3. Never see the keyboard while typing. Just remember what finger will type it.
  4. More practices.

My first tip, use all of your fingers. Yes, you must use them. Don’t use “11 fingers” (your left and right index fingers) to type. You have ten fingers. Use them all. How? You will figure it out in my second tip.

The second tip, you need to know where to place your finger. This picture below shows where your finger should be placed.

Finger and Keyboard

Finger and Keyboard (click to zoom)

If you can’t see the picture, Here are the keys should be pressed by your finger.

Left Hand
Index finger = 4 R F V 5 T G B
Middle finger = 3 E D C
Ring finger = 2 W S X
Little finger = 1 Q A Z ` Tab “Caps Lock” “Left Shift” “Left Ctrl”

Right Hand
Index finger = 6 Y H N 7 U J M
Middle finger = 8 I K ,
Ring finger = 9 O L .
Little finger = – [ ] ‘ / \ = Backspace Enter “Right Shift” “Right Ctrl”

Before start typing, place your fingers in the right place. Notice button F and J in your keyboard. There’s a kern below the letter. That’s the place where your index finger should be. Put your left index finger in F, and your right index finger in J. The rest of your fingers should be:

Left middle finger = D and the right middle finger = K
Left ring finger = S
and the right ring finger = L
Left little finger = A
and the right little finger = ;

Ctrl – Alt – Shift
To combine keys ctrl, alt or shift with another key, you should notice where’s the key, in the left hand side, or right hand side. For example, to combine Ctrl + L, you should know where’s the position of the L key. From the picture above, we know that L is in the right side. So you must press left Ctrl using your left little finger and press L using right ring finger. Easy right?

The third tip, maybe its a bit hard to do for the beginner. Don’t see your keyboard while typing. How come? You only need discipline. For the first time, you will type slowly. It’s OK. The baby crawl on hands and knees before he/she can stand, walk and run. If you remember where’s the key,  it will be so easy to type fast.

My last tip but not the least, more practices. Of course, we know that practice makes perfect. Not only typing, the other skill such as programming, need more and more practices.

Tags: ,

Dagu on May 21st, 2009

After releasing stable version (WordPress 2.7.1), WordPress.org releases new beta version, 2.8 Beta 1. This release is not stable and use for testing only. It’s not recommended to use in anyplace where your data is important. You need to backup your database before upgrading to this version.

If you want to participate, you may join tester list or if you are PHP programmer, you may report bugs you find while testing this beta release.

Download WordPress 2.8 Beta 1

Tags:

Dagu on May 16th, 2009

Why do we send message over linux console? We can send message using our favorite messenger. That’s right. But, imagine if you are working in a linux machine using a console and want to talk to another user without moving from your console. To do this, you can use a command named write.

Ummm… how if I want to know who’s accessing a linux machine? You can use command who. Ok how to use write command? It’s easy.

write user [ttyname]

Example:

$write dani
Hi.. how u doin?
You need to sign the contract.

You can write your message in the new line. If you want to stop it, you may use Ctrl+C.

What will appear in user dani?

Message from gunawan@linuxmachine on pts/3 at 09:16 ...
Hi.. how u doin?
You need to sign the contract.
EOF

notice that at the end of message you will see EOF.

Tags: , ,

Dagu on May 16th, 2009

An easy way to view who’s accessing a linux machine is using command named who.

$ who
dani          pts/0        May 16 08:16 (10.1.12.12)
akachan       pts/1        May 16 08:20 (10.1.12.51)
dewi          pts/2        May 16 08:39 (10.1.12.94)

easy isn’t it?

Tags: , ,

Dagu on May 6th, 2009

Tobacamp has released a new WordPress theme, Facebook Addict. It is a facebook-clone, just like the previous theme. But, I think it’s more Facebook than before.

Screenshot:


It has many features such as:

  • Facebook-like
  • Widget ready
  • Three columns layout
  • Auto thumbnail
  • Custom headline
  • FREE OF CHARGE

You can see the demo first or download it.

Tags: , ,

Dagu on April 24th, 2009
Sun - Oracle

Sun - Oracle

A few days ago, Oracle, a company which is known by it’s RDBMS, Oracle Database, bought Sun Microsystems ($7.4 billion.. wheewwww), a company which is known by it’s famous programming language, Java. As we know, Sun had bought MySQL, the famous open source database. Hmm… can you imagine how big Oracle now?

I just wonder what will happen tomorrow. Oracle has the enterprice market, meanwhile MySQL has SOHO market. Now Oracle has them all. I think Microsoft will be jealous. Microsoft SQL Server will not rule the Database World. Absolutely.

There are so many opinions about the future after Oracle bought Sun. May be Oracle will stop MySQL development, or still developing but not provide it as open source anymore. Or it will be better, MySQL will have Oracle features. What about Java? Do we have to pay to use Java like Microsoft does? Some people think it will be disaster. But I hope that Oracle won’t let open source community down.

Tags: , , ,

If you are a WordPress blogger and Facebook lover, you need to try a free WordPress theme from Tobacamp. They name it Facebook Lover. You can say this is a Facebook clone. With Facebook-like color, this theme looks beautiful, clean and soft. The most important thing is, it’s free to download.

These are screenshots from Tobacamp:

Facebook Lover

Facebook Lover

Single Page

Single Page

Are you interested in this theme? This theme is freely available at http://www.tobacamp.com/templates/free-wordpress-theme-for-facebook-lover/.

Source: http://www.tobacamp.com

Tags: ,

Dagu on April 19th, 2009

This tutorial is still about creating environment variables, just like my last tutorial. But now I create environment variable in Linux, not Windows.

To create or edit environment variable in linux is very easy. You may create or edit environment variable from terminal.

The syntax is: export VAR_NAME=var_content

For example:

export JAVA_HOME=/usr/lib/jvm/sun-java6

Yes, very easy right? If you want to append content to an existing variable, you can’t use command above. Command above will create a new variable, not append it. To append content, you may use command below.

The syntax is: export VAR_NAME=$VAR_NAME:var_content

For example:

export PATH=$PATH:/usr/lib/jvm/sun-java6/bin

or, if you have created JAVA_HOME variable, you may use command below:

export PATH=$PATH:$JAVA_HOME/bin

Easy right?

Note:
To define a variable, you don’t need ‘$‘ character. But when you use it (for example when you append variable content), don’t forget ‘$‘ character.

Tags: ,

Dagu on April 18th, 2009

If you are Windows user and need to create environment variables (some programming language need to set environment variables to run well), here is the step by step. Note that this tutorial is based on Windows XP.

1) Right click icon My Computer and choose Properties. You can find My Computer in Windows Explorer, or in Start Menu.

2) Click Tab Advanced. In this tab you will find Environment Variables Button below. Click that button.

Environment Variables Windows XP

Environment Variables Windows XP

3) There are two options. User Variables and System Variables. Click New button to create a new variable or Edit button to edit existing variable.

System Variables

System Variables

4) You’re done!

Tags: ,