How to Setup Timezone on Debian Squeeze
Run the following command as root or using sudo: And then select your timezone from the prompts. After that UTC time and local time will be shown as in the following example:
Run the following command as root or using sudo: And then select your timezone from the prompts. After that UTC time and local time will be shown as in the following example:
Screen is a full-screen window manager that multiplexes a physical terminal between several processes (typically interactive shells). The same way tabbed browsing revolutionized the web experience, GNU Screen can do the same for your experience in the command line. Instead of opening up several terminal instances on your desktop or using those ugly GNOME/KDE-based tabs,…
Rsync is awesome tool for synchronize local files or directories with files and directories on remote server. Rsync is commonly used for data backup. For rsync installation you can read this article. Below is command line how to use rsync with ssh. You will be asked for a ssh password before rsync can start synchronizing….
This error message shown up when I tried to draw chart using JpGraph: To fix the problem, edit file gd_image.inc.php inside JpGraph folder, and disable the line start with JpGraphError::RaiseL(25128); in function SetAntiAliasing:
The following function is used to get first image URL from WordPress post. Paste below function on /wp-includes/functions.php file. Now you can show the image using this syntax:
Few days ago I got complain from my hosting company that my website which is WordPress produced high CPU usage all the time. Below are what I’ve done to fix the problem: I disabled all plugins in WordPress. Result: failed. I switched to default twenty-ten WordPress themes while still disabled all plugins. Result: failed. I…
Images as static content on website are usually be cached by browser. Using PHP we can make the image can’t be cached and always loaded from server by putting random number behind the image file. The HTML output will be: The number 1331835943 is generated dynamically by PHP that forces the browser to always load…
We can use iptables, service, and chkconfig commands to enable and disable firewall in Centos. iptables is an administration tool for IPv4 packet filtering and NAT. service is a command to run a System V init script. It is used to save, stop, and start services. chkconfig command is used to update and query runlevel…
This guide will show you how to create transparent div element in HTML. What we need is 1 x 1 pixel transparent .png file which is created using Photoshop. 1. Create new image in Photoshop with dimension 1 x 1 pixel. 2. Press Ctrl-+ few times to magnify the image to 1600% 3. Click Paint…
Before installing Ice Cream Sandwich (ICS) on Samsung Galaxy SII (SGS2), your handphone must be rooted. Read this article for rooting SGS2. Download ICS firmware from this website. You have to register first before able to download. Still on sammobile.com website, download Odin downloader. Extract both files and open Odin. Check Re-Partition option. Press PIT…