< Browse > Home / Archive by category 'Programming'

| RSS

   

Singapore Individual Income Tax Calculator for 2012

IRAS (Inland Revenue Autority of Singapore) has revised the income tax rate for 2012. Now lower income groups can enjoy lesser tax rate compare to year 2007 to 2011. To accurately calculate the amount you need to pay for 2012, you can download the excel sheet calculator from IRAS (somehow it didn’t working when I [...]

[ More ] December 21st, 2011 | 1 Comment | Posted in Programming |

Perl – Migrating User Accounts From Old To New Linux Distribution

Migrating user accounts can be very troublesome when you have a large numbers of users. So, is always recommended to deploy active directory or LDAP to have a centralized authentication system. If your organization don’t have AD or LDAP and have large portion of users needed to transfer from 1 to another server. Don’t worry, [...]

[ More ] October 22nd, 2008 | 6 Comments | Posted in Programming |

PHP – Tax Calculator

I wrote a simple tax calculator with PHP, feel free to use it. This tool only supports Singapore Tax 2008. All calculations are based on the documents and formula from the official site (http://www.iras.gov.sg). Please report to me if you found any errors or miscalculations. Tax Calculator

[ More ] October 10th, 2008 | 2 Comments | Posted in Programming |

Filter ifconfig with Perl

Linux/Unix: Below is the commands to filter ifconfig to show only the eth0 IP address in Linux. Perl Script: Option 1 eth0 | grep “inet addr”| awk {‘print $2′} | perl -e ‘while(<>){ ($a,$b)=split/:/; print $b; }’ Option 2 ifconfig eth0 | grep “inet addr” | perl -e ‘while (<>) { ($inet, $addr, $ip, $others) [...]

[ More ] October 7th, 2008 | 6 Comments | Posted in Programming |