PHP Format numbers to Indian Numerical System

By | July 1, 2009

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) While echoing numbers in PHP it is possible to format numbers with such separators using functions like number_format…. Read More »

Screen Resolution 1440 x 900 in Ubuntu

By | June 8, 2009

Ubuntu 9.04 did not detect the native resolution of my new LCD monitor which was 1440 x 900. Fix : 1. Get the modeline for the required resolution + refresh rate using the gtf command. The modeline is to be added to the xorg.conf file at /etc/X11/xorg.conf Take a backup of the file before editing… Read More »

SYN Flood DOS Attack with C Source Code (Linux)

By | May 3, 2009

TCP/IP 3-way handshake is done to establish a connection between a client and a server. The process is : 1. Client –SYN Packet–> Server 2. Server –SYN/ACK Packet –> Client 3. Client –ACK Packet –> Server The above 3 steps are followed to establish a connection between source and destination. SYN Flood DOS attacks involves… Read More »