Dedicate This Post To Goh & Poh Meng

This post has delayed for 1 week due to my laziness, but the thankfulness are not forgetable. After moving to Singapore to advance my career, I was seperated from my beloved family and friends, and not to forget my favorate pet, Kinky.



To work in an unfamiliar environment with all the new faces, loneliness really strike my feeling to rock bottom. I was feeling down and bored and how I wish my friend can pay me a visit.  I always wanted someone to visit me, because life here really suck, I do not have any entertainment, everyday just sit at home surt net. It's killing me.



When I was despair, this 2 idiot really came for me. I was half joking in MSN asking them to come, they replied without any hesitation and came in the same week.



[singlepic=103,350,250]



Thank you buddy. Even though you 2 are an idiot but I will cherish this friendship. Finally, this song is for you guys, my dear friend.



httpv://www.youtube.com/watch?v=_ghEdTra4Ks

Monday, October 27, 2008 | posted in , | 4 comments [ More ]

Yammer - A twitter for enterprise

What is Yammer. Yammer is an enterprise version of Twitter for company, you can use Yammer to keep up with colleagues, start a discussion, ask a question, or share a link. David Sacks, CEO of Yammer explains:




The purpose is to allow co-workers to share status updates. You post updates on what you are working on. You can post news, links, ask questions, and get answers for people in your company.



You can see most the most prolific people and the most followed people. It is a good way to discover who is the most influential in your company.




Yammer also serves as a company directory in which every employee has a profile and as a knowledge base where past conversations can be easily accessed and referenced. Anyone in a company can start their Yammer network and begin inviting colleagues. The privacy of each network is ensured by limiting access to those with a valid company email address. The basic Yammer service is free. Companies can pay to claim and administer their network.



To join Yammer network



1. Register from http://www.yammer.com by using your work email



2. Once you have join, you need to create a profile by filling in your fullname, job title, password, photo and report/manage/work with whom



yammer



yammer



3. After created the profile, you are all set and can start using yammer.



yammer



4. Invite more members to join your network and then you can start updating each other.



Reference post: http://davefleet.com/



Source: http://www.yammer.com/

| posted in , | 0 comments [ More ]

Coolest Hairstyle

This summary is not available. Please click here to view the post.

Playing DOS Game In Ubuntu

Long time since I last play the computer games. I don't know whether everyone feel the same, when I'm getting older, I have lost my interest in playing games, especially those strategy and online games that takes you a lot of time to accomplish.



But recently I have regained that interest and start looking for some very famous RPG games that I played before like 金庸群侠传 and 侠客英雄传. I know these 2 are very very old games, but I still enjoy playing it.



Since I'm using Ubuntu, so I have to install WINE and Dosbox in order to play the game.



1. To install WINE and Dosbox




sudo apt-get install wine dosbox




2. After installed WINE and Dosbox, use WINE to install the game




wine installer.exe




Eg:(Follow the wizard to complete the installation, if you are installing chinese game, change your gnome session to chinese in order to read the chinese character)



installer



3. Once finish install the game, run dosbox




Goto Applications>Games>DOSBox Emulator




4. Then type the following command in DOSBox Emulator




- mount c /home//.wine                           ### Mount C to wine directory



- c:                                                         ### Change to C Drive



- cd DRIVE_C/PROGRA~1/JINGYONG/  ### Go to your game installed directory



- PLAY.BAT                                          ### Execute the game




Eg:



dosbox



5. Enjoy the game ^_^



jingyong



*Note: If you encounter "DOS memory range unavailable" error, is because Linux kernel prevents programs (Wine) from accessing the first 64k of kernel memory. To solve this problem, run this command:




sudo sysctl -w vm.mmap_min_addr=0

Use Twitter Tweet As Messenger Status Message

Twitter has become so popular and have a fast growing user base in all over the world. You can use twitter to update your friends what you are doing at any given time, share your thoughts and feelings, and even you can use twitter to do marketing research or update your followers that your servers have just crashed from business perspective.



Like many social network tools, you can sync up your twitter tweet at many social network system like facebook, friendfeed and many more. Today, I'm going to show you how to updates your messenger status message at regular intervals to reflect your latest twitter tweet.



For Windows live messenger User (Windows)





  1. Download Twessenger (a Twitter add-in for Windows Live Messenger) from http://kunal.kundaje.net/twessenger/Twessenger.msi

  2. Before you install, make sure your have Windows Live Messenger 8.1 or higher and .NET Framework 2.0 installed in your XP or Vista machine.

  3. After install Twessenger, goto "Messenger Menu> Tools> Options".

  4. Select "Add-ins" from the items in the left pane of the options window.

  5. Click the "Add to Messenger" button, then go to C:\Program Files\Twessenger. Select the "Twessenger.Twessenger.dll" file.

  6. Click the "Settings" button, enter your Twitter username, and click OK.

  7. Click on your display name at the top of the Messenger contact list window. Click the "Turn on Twessenger" item in the drop-down menu. Your personal message should change to your latest Twitter tweet immediately.




twessenger twessenger



Source: http://kunal.kundaje.net/twessenger/



For Pigin User (Linux)





  1. Download pidgin-twitterstatus from http://pidgin-twitterstatus.googlecode.com/files/twitter-0.3.0.pl

  2. Copy twitter-0.3.0.pl to ~/.purple/plugins/

  3. Install XML::XPath perl module

  4. Open Terminal, type





    1. perl -MCPAN -e shell

    2. get XML::XPath

    3. make XML::XPath

    4. test XML::XPath

    5. install XML::XPath


  5. Using Pidgin, navigate to Tools | Plugins and find Twitter Status Feed. Enable it, and Click the Configure Plugin button to open the plugin configuration dialog. Enter your Twitter username and click Close.

  6. Restart pidgin

  7. Now, you should see Twitter tweet at the bottom of Pidgin windows.




pidgin pidgin



Source: http://code.google.com/p/pidgin-twitterstatus

Saturday, October 25, 2008 | posted in , | 3 comments [ More ]

Random Quote of the Day

ladder



"Obstacles don't have to stop you. If you run
into a wall, don't turn around and give up.
Figure out how to climb it, go through
it, or work around it."
- Michael Jordan




I hope my gf read this.

Thursday, October 23, 2008 | posted in | 6 comments [ More ]

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 recommend to deploy active directory or LDAP.



If your organization didn't deploy centralized user database like AD & LDAP and have large portion of users needed to transfer from Old server to the new one. Don't worry, you don't need to manually key in all the records 1-by-1, there's always a faster way to achieve this by using script.



I have written 2 perl scripts to perform the migration.





  • [download#3] (run in old server) - migrate user accounts from old server and generate a library with all the captured user data.

    • Sample library - [download#4]



  • [download#5] (run in new server) - include the library generated by migrate_passwd.pl and add all the user_account to the new server.




Steps:



1)  Download migrate_passwd.pl in the old server and run it




./migrate_passwd.pl /etc/passwd /tmp/accounts.pm




2)  Then copy the /tmp/accounts.pm to the new server (put this file into the same directory of serversetup.pl)



3) Download serversetup.pl in the new server and run it




./serversetup.pl




4) Done

Wednesday, October 22, 2008 | posted in , | 2 comments [ More ]

Lowyat.net being Hack?!

OMG! lowyat.net being hacked?! Just moment ago when I was watching drame that Goh purposely copy from Malaysia to me, my friend Mr. William message me, asked me to open lowyat.net website, he said he couldn't reach it.



So, I helped him and when I go to the website, It seems like the website being hijacked and the  fontpage has been customized by someone. The background of the website has changed, and there is a big title,




Rabbits have infested Lowyat.NET and unplugged it from the Internet! We will be back when the exterminators arrive. Meanwhile, play around in our chatroom..




Seems like this evil "Rabbit" has invaded the biggest forum in Malaysia!



lowyat being hacked




| posted in , | 6 comments [ More ]

Use firefox browser to do ping and tracert

The title says it all, you can run ping and traceroute in your internet browser. It's can be handy for sys admin to do their troubleshooting without the need to open a terminal/command prompt.



Steps



1. Open up your firefox browser.



2. Bookmark these 2 links and put a “ping” & “tracert” keyword for each.




http://network-tools.com/default.asp?prog=ping&host=%s
http://network-tools.com/default.asp?prog=trace&host=%s




3. To create a keyword for your bookmark,  if you are using firefox, hit <Ctrl> + <B> then search for the 2 URL's that you have added just now. When you found it, right click and choose "Properties" on it and you will see something like this



bookmark






5. After clicking "Properties", a window will pop up and from there you can see there is a "Keyword" field. So just enter the keyword accordingly.





  • "ping" keyword for bookmark http://network-tools.com/default.asp?prog=ping&host=%s

  • "tracert" keyword for bookmark http://network-tools.com/default.asp?prog=trace&host=%s




Example:



ping



4. Ok, you are all set. Now try to type "ping www.google.com" or "tracert www.google.com" without the double quote on your browser URL address bar



Example:



urlbar



5. See, the ping/tracert result is showing in the browser



result






Quite handy isn't it.

Friday, October 17, 2008 | posted in , | 4 comments [ More ]

Tax Calculator

I wrote a simple tax calculator with php, feel free to use it. Currently this tool only support Singapore Tax, later on I will include more country like Malaysia, Australia, UK and etc.



Tax Calculator

Saturday, October 11, 2008 | posted in , | 0 comments [ More ]

Find Out Your Salary Offered by Fortune 500 Companies

Just go to the following link to search the actual salaries offered by various fortune 500 companies. The search result is based on the data which is published by department of labor, USA. Those whose have no ideal what is fortune 500 companies, fortune 500 is the top 500 US public corporations as measured by their gross revenue and you may find all the companies from here



link: http://payrate.appspot.com/
search keyword: Linux Engineer; System Engineer; Network Engineer



Here is the search result for my field of work (Web Infrastructure & Security Engineer)



salary



On average, the annual income for Web Infrastructure Engineer are around $90k and that is F***king alot! Not FAIR! How come those people's earning so much and I'm earning so little though we have the same title and am also working in one of the fortune 500 company.



Damn, I need to negotiate more increment next time.

Wednesday, October 8, 2008 | posted in , | 0 comments [ More ]

Ubuntu 8.10 (Intrepid Ibex)

On October 30, Ubuntu going to release Ubuntu 8.10 , code name "Interpid Ibex". Just few more days from now, let's count down for the new release of this wonderful OS.





If you can't wait and wanted to try it immediately, you may upgrade to Ubuntu 8.10 beta now. The following link provide the details steps on how to upgrade from Ubuntu 8.04 to Ubuntu 8.10 beta.


http://www.ubuntugeek.com/upgrade-ubuntu-804-hardy-heron-to-ubuntu-810-intrepid-ibex-beta.html

Tuesday, October 7, 2008 | posted in , | 2 comments [ More ]

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) = /(\w+)\s+(\w+):(\S+)\s+(.*)/; print $3."\n";}'

Google Project 10 power 100

Google committing $10 million to help you implement your projects, as long as your ideas is to change the world by helping as many people as possible. You may think what does it mean by helping?
Well, can be anything, example saving energy, building an University or building a website to help finding life partner. It may or may not be.
So, if you have ideas, submit it before 20th October 2008. Good luck, and may those who help the most win.

For more information, http://www.project10tothe100.com/why.html

Source: http://www.google.com/tenthbirthday/#2008

Gnome DO aka Linux Launchy

gnome-do



Ubuntu: Last time when I saw my Windows user friend showing off how fast he's able to launch his application using 'Launchy', I was so impressed and thinking why don't we have similar application running in Ubuntu Desktop. So I did a search and finally I found an application called Gnome Do, a launcher allows you to quickly search for many items in your desktop environment. And it do not only allows you to search items, it also allows you to specify actions to perform on search results.



To install Gnome DO:



Steps



1. open terminal and type




sudo apt-get install gnome-do



2. Once Gnome Do is installed, first you need to manually run the application, then only you can summon it by pressing Super<Windows Key> + Space.

3. Instead of running Gnome-do manually everytimes, you can add Gnome-do to become startup programs. Just go to System>Preferences>Sessions>Startup Programs tab





  • Click Add

  • Enter any name on "Name:" field

  • Enter "/usr/bin/gnome-do" on "Command:" field

  • reboot




session



4. Now everytimes you login, Gnome-do will be running on backgroup. So you can summon gnome-do by only pressing Super<Windows Key> + Space



5. Done



To use Gnome-do, press the summon key and type the keyword of the file or application which you wanted to open or run.



gnome-do



Source: https://wiki.ubuntu.com/GnomeDo

Birthday Surprise

Yesterday was my 25th birthday, to think that I do not have any friend and relative here, I thought my birthday will be just like a normal day.

I WAS WRONG, I experienced something that I never experience before during my birthday. Something HORRIFIED.

What happens is, when I am sleeping that night, I felt something pressing my chest and the feeling is like being pressed by a heavy object, the pressure made me hard to breathe and hearing breathing sound whispering on my ears, so I awake from my sleep and trying to move my body but I can't.

So I opened up my eyes and I saw some white object looks like cloud surrounding my chest! Yes, CLOUD! I'm scared to be honest and start chanting "Amitabha" on my mind. The sensation fade away immediately after the chanting.

The feeling is so real yet it's like a bad dream to me, so I also cannot tell whether it's really happened or not. Anyhow, after I'm free to move my body, I continue my sleep eventhough I am scared.

Sweat~!! I don't know why I got so much guts to continue my sleep or maybe I'm just tired..

I think this is what people's called "Ghost Press Bed" in Mandarin and the "Sleep Paralysis" in medical term. To think something like this happened during my birthday, am I just being bad luck or some unknown object want to wish me Happy birthday? ... AMITABHA! AMITABHA

Thursday, October 2, 2008 | posted in , | 10 comments [ More ]