Install FFmpeg in Linux (RPM Version)

How to Install FFmpeg in Linux ~The Easy Way~
Original Post
FFmpeg is so important if you are planning to run a video website with streaming with conversion of video files to different video formats. This tutorial is intended for Centos/Redhat versions of Linux where any novice user [...]

Compiling PHP 5.2.x / cannot find -lltdl

When compiling PHP from source, some of the CentOS users reported that they getting errors like below:

/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status

What you need to do, is just follow the below steps.

Verify that the libtool and libtool-ltdl packages are installed.
Symlink libltdl.so to libltdl.so.x.x.x

If libtool and libtool-ltdl already exist, you may go [...]

Linux Firewalls with IPTABLES (Good Tutorials)

I found good examples for this.
- Quick HOWTO (from LinuxHomeNetworking.com) – download
- Sample IPTABLES Configuration (RedHat/CentOS) – download

RPM failed to start

When you’re running REDHAT/CENTOS platform for your server, sometimes the RPM wont run normally or become stuck. This caused by the RPM database not properly builded or been corrupted.
Errors would be like :
rpmdb: Program version 4.3 doesn’t match environment version
error: db4 error(-30974) from dbenv->open: DB_VERSION_MISMATCH: Database environment version mismatch
error: cannot open Packages index using [...]

How to protect your website using simple PHP scripts

Just put below on your top line of the scripts :
$ips = array(”127.0.0.1″,”aaa.bbb.ccc”,”xxx.yyy.zzz”);
$userip = $_SERVER['REMOTE_ADDR'];
foreach ($ips as $ip) {
if (!preg_match(”/$ip/i”, $userip)) {
echo “Access Denied!”;
exit;
}
}
Notes:
$ips is the allowed IP address range
Other way, you can use .htaccess to protect directories/files.

HTML Color Codes (Charts)

Major hexadecimal color codes

Color
Color Code
Color
Color Code

Red
#FF0000
White
#FFFFFF

Turquoise
#00FFFF
Light Grey
#C0C0C0

Light Blue
#0000FF
Dark Grey
#808080

Dark Blue
#0000A0
Black
#000000

Light Purple
#FF0080
Orange
#FF8040

Dark Purple
#800080
Brown
#804000

Yellow
#FFFF00
Burgundy
#800000

Pastel Green
#00FF00
Forest Green
#808000

Pink
#FF00FF
Grass Green
#408080

Color code chart

Be your own Certificate Authority (CA)

I declare from the beginning that I am no authority on digital certificates.
This document is a summary of all the articles I have read about openssl. It describes in short how to become your own Certificate Authority (CA) and how to create and sign your own certificate requests. Make no mistake, these certificates are good [...]

Sendmail Problem

There are often problems with sendmail once it has been installed due to the tightening up of sendmail to stop spammers

Sendmail-8.11.6-15 Connection refused
Sendmail & tcp wrapper rejection
Cannot relay from valid ip address (Outlook)

CSS Underscore Hack

Original Post

Update: note that this article is from 2003. The CSS hack described is outdated and (maybe) shouldn’t be used.
I learned another CSS hack today – the underscore hack. You can read all about it in detail, but in essence it’s very simple.
Browsers are supposed to simply ignore CSS properties that they don’t understand. [...]

A 9 years old whiz-kid, writes an iPhone application

SINGAPORE, Feb 5 – While most children his age sketch on paper with crayons, nine-year old Lim Ding Wen from Singapore, has a very different canvas — his iPhone.
Lim, who is in fourth grade, writes applications for Apple’s <AAPL.O> popular iPhone. His latest, a painting program called Doodle Kids, has been downloaded over 4,000 times [...]