Archive for July, 2009

Email Hacking Facts and Fictions

Lots of newbies keep asking or search for techniques to hack someones email password like yahoo gmail msn etc.
First of all it should be noted that getting someone’s password out of a server is something impossible for the very simple reason that in most cases the password is stored no-where. Newbies think and make attempts [...]

Unicode UTF-8 characters in Wordpress Blog Title

Sometime back I was trying to put unicode characters(utf-8) in the title of a blog from wp-admin > settings > general. After saving it became like ?????????.
All pages had utf-8 in their meta tags so the issue was somewhere else. A working solution was found :

Open View MS Access mdb files in Ubuntu Linux

MDB Viewer is a tool which can be used to open and view mdb files on Linux.
On Ubuntu it can be installed from synaptic via the command :
sudo apt-get install mdbtools-gmdb

Draw Plot Graphs with PHP

Googling up for graph plotting solutions in PHP , found these free libraries :
1. PHPLOT – Can create Pie Charts , Bar Graphs , Line Graphs , Point Graphs etc.

Create AutoIncrement column/field in Apache Derby

While creating a table a particular column / field can be made autoincrement as :

CREATE TABLE students
(
id INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1),
name VARCHAR(24) NOT NULL,
address VARCHAR(1024),
CONSTRAINT primary_key PRIMARY KEY (id)
) ;

PHP redirect – go back to previous page

To go back to the previous page the superglobal variable $_SERVER can be used.
$_SERVER['HTTP_REFERER'] has the link to the previous page.
So to redirect simply :
#Method to go to previous page
function goback()
{
header("Location: {$_SERVER['HTTP_REFERER']}");
exit;
}

PHP Format numbers to Indian Numerical System

The numerical system used in India differs from the Western system in terms of the placement of the thousands separator.
Example :
Number -> 1000000
Indian System -> 10,00,000 (Ten Lakh)
Western System -> 1,000,000 (1 Million)

non-www to www redirection with .htaccess

Opening a domain as domain.com or www.domain.com takes to the same page. From the SEO perspective , many suggest that search engines may consider the two to be different sites. So the fix is to apply a redirection to redirect domain.com to www.domain.com