Convert Post From Wordpress to Blogger

Google-blog-converters-appengine is a converter to/from various blog formats like wordpress2blogger, blogger2wordpress and etc.
Let's take an example, says we are going to convert blog post from wordpress to blogger with google-blog-convertes-appengine.

Steps:
1. Download google-blog-converters-appengine from http://google-blog-converters-appengine.googlecode.com/files/google-blog-converters-1.0-r64.tar.gz
2. Extract the file
3. Download XML export file from wordpress
 


4. Open Terminal and go into "google-blog-converters-1.0-r64/bin". Assume the file located at Desktop
cd ~/Desktop/google-blog-converters-1.0-r64/bin
5. Type below command in Terminal
./wordpress2blogger.sh ~/Desktop/wordpress..xml | tee result.xml
6. Done. You can now import result.xml to blogger host service.

Troubleshooting

If you find any errors when execute "./wordpress2blogger.sh ~/Desktop/wordpress..xml | tee result.xml".
Might be caused by the XML syntax errors. Check the error message.

Example:
Traceback (most recent call last):
File "./../src/wordpress2blogger/wp2b.py", line 467, in
translator.Translate(wp_xml_doc, sys.stdout)
File "./../src/wordpress2blogger/wp2b.py", line 138, in Translate
xml.sax.parseString(doc, self)
File "/usr/lib/python2.6/xml/sax/__init__.py", line 49, in parseString
parser.parse(inpsrc)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 211, in feed
self._err_handler.fatalError(exc)
File "/usr/lib/python2.6/xml/sax/handler.py", line 38, in fatalError
raise exception
xml.sax._exceptions.SAXParseException: :2678:45: not well-formed (invalid token)

Check the line number highlighted with red color.


The correct syntax for this should be:
<![CDATA[Google crhome, Overall, pros & cons, tips & tricks]]>

Sunday, April 5, 2009 | posted in | 0 comments [ More ]

Get Mail From Hotmail To Google

Simply goto the Accounts tab from Gmail settings page and click on "Add a mail account you own". Type the Hotmail address and use the following settings:


Later you will be ask whether you want to use this account to send email, click 'yes' if you want, then an email will be sent with a confirmation code. Type the code in the confirmation page and you will be able to use this account to send email. After you have completed above steps, you will be able to see this account in 'Labels' table.

| posted in | 0 comments [ More ]

Install Conky - a system monitor for Ubuntu

Conky is a light weight system monitor that uses to display system information on your Desktop. You can display various information like CPU, memory, network, hard disk capacity and etc using conky on the Desktop, a very handy tools to monitor system info.

Conky  

Install Conky

- Open terminal and type the following command:

sudo apt-get install conky
- Once the installation is completed, copy the example config by copying the file from /usr/share/doc/conky/examples/conky.conf.gz to ~/.conkyrc. Just type in the terminal:
zcat /usr/share/doc/conky/examples/conky.conf.gz > ~/.conkyrc
- Done, you can test by typingbelow command in terminal:
conky
Customize Conky config(conkyrc)

- Open terminal and type the following command: 
sudo gedit ~/.conkyr

- Below is my conky config, you may base on this to configure your conky if you like. The config below actually conky general setting on desktop like where should conky to be place, using what text style, border and etc.
background no text_buffer_size 2048 use_xft yes xftfont Eurostile:size=7 xftalpha 0.7 update_interval 5.0 total_run_times 0 own_window yes own_window_type override own_window_transparent yes own_window_colour hotpink own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager double_buffer yes minimum_size 260 5 draw_shades no draw_outline no draw_borders no draw_graph_borders no stippled_borders 3 border_margin 9 border_width 10 default_color grey default_shade_color black default_outline_color black alignment top_right gap_x 10 gap_y 35 no_buffers yes uppercase no cpu_avg_samples 2 net_avg_samples 2 override_utf8_locale no use_spacer yes show_graph_scale no show_graph_range no
Below code is what will be show in the conky bar
TEXT ${font arial black:size=10}${color orange}SYSTEM${color}${font arial black:size=9}INFORMATION${color orange} ${hr 2}$color$font $nodename - $sysname $kernel on $machine ${color lightgrey}Distro: ${pre_exec cat /etc/issue | grep Ubuntu | cut -c1-13} $machine ${color lightgrey}Uptime:$color $uptime ${color lightgrey}- Load:$color $loadavg ${color lightgrey}Battery: ${battery_percent CMB1}% ${battery_bar CMB1}$color ${font arial black:size=10}${color orange}CPU${color}${font arial black:size=9}INFORMATION${color orange} ${hr 2}$color$font ${color lightgrey}CPU Temp: ${acpitempf}F HDD Temp: ${execi 600 sudo hddtemp --unit=C /dev/sda2 | cut -c 24-30} ${color lightgrey}CPU Usage:${color #cc2222} $cpu% ${cpubar} ${color red}${cpugraph 0000ff 00ff00} ${color}Name PID CPU% MEM% ${color #ddaa00} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1} ${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2} ${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3} ${color}Mem usage ${color #ddaa00} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1} ${color lightgrey} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2} ${color lightgrey} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3} ${font arial black:size=10}${color orange}MEMORY${color}${font arial black:size=9}INFORMATION${color orange} ${hr 2}$color$font ${color lightgrey}RAM Usage:$color $mem/$memmax - $memperc% ${membar} ${color lightgrey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar} ${color lightgrey}Processes:$color $processes ${color grey}Running:$color $running_processes ${font arial black:size=10}${color orange}DISK${color}${font arial black:size=9}INFORMATION${color orange} ${hr 2}$color$font ${font arial black:size=9}VOLUME${goto 116}TYPE${goto 180}USED${alignr 1}SIZE$font ${font arial black:size=9}ROOT:$font${goto 120}${fs_type /}${goto 190}${fs_used /}${alignr}${fs_size /} ${fs_bar 4 /}$color ${font arial black:size=9}Windows:$font${goto 120}${fs_type /home/chenhow/windows}${goto 190}${fs_used /home/chenhow/windows}${alignr}${fs_size /home/chenhow/windows} ${fs_bar 4 /}$color ${font arial black:size=10}${color orange}NETWORK${color}${font arial black:size=9}INFORMATION${color orange} ${hr 2}$color$font ${font arial black:size=7}LOCAL:$font${addr ppp0} $alignr ${color} ${font arial black:size=7}DOWN: $font$color${downspeed ppp0} k/s ${alignr}${font arial black:size=7}UP: $font${upspeed eth0} k/s ${downspeedgraph ppp0 25,140 0000ff 00ff00} ${alignr}${upspeedgraph ppp0 25,140 0000ff 00ff00}$color ${font arial black:size=9}TOTAL: $font${totaldown ppp0} ${alignr}${font arial black:size=9}TOTAL: $font${totalup ppp0} ${color orange}${hr 2}$color ${color #ddaa00}Port(s)${alignr}#Connections $color Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768 61000 count}${alignr}ALL: ${tcp_portmon 1 65535 count} ${color #ddaa00}Inbound Connection ${alignr} Local Service/Port$color ${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lservice 0} ${tcp_portmon 1 32767 rhost 1} ${alignr} ${tcp_portmon 1 32767 lservice 1} ${tcp_portmon 1 32767 rhost 2} ${alignr} ${tcp_portmon 1 32767 lservice 2} ${tcp_portmon 1 32767 rhost 3} ${alignr} ${tcp_portmon 1 32767 lservice 3} ${tcp_portmon 1 32767 rhost 4} ${alignr} ${tcp_portmon 1 32767 lservice 4} ${color #ddaa00}Outbound Connection ${alignr} Remote Service/Port$color ${tcp_portmon 32768 61000 rhost 0} ${alignr} ${tcp_portmon 32768 61000 rservice 0} ${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 1} ${tcp_portmon 32768 61000 rhost 2} ${alignr} ${tcp_portmon 32768 61000 rservice 2} ${tcp_portmon 32768 61000 rhost 3} ${alignr} ${tcp_portmon 32768 61000 rservice 3} ${tcp_portmon 32768 61000 rhost 4} ${alignr} ${tcp_portmon 32768 61000 rservice 4} ${color orange}${hr 2}$color ${color}TODO: ${execi 20 cat /home/chenhow/Desktop/TODO.txt | fold -w40 }
The above configurations are the default setting that I used in my system. When you are more familiar with it, you can change it to suit your needs. Attached is my conky config, feel free to download and modify.  

Download chenhow conky config file: http://www.chenhow.net/downloads/conkyrc.zip

| posted in | 0 comments [ More ]

Using apt-p2p For Faster Upgrades From Intrepid to Jaunty

apt-p2p is a p2p proxy for apt dowloads, it will act as a proxy between apt requests and a repository server, downloading any request files from peers (if possible), else will fallback to direct HTTP download. In general, apt-p2p save bandwidth, use limited cpu and memory resources and reduce congestion on the ubuntu mirrors.

So how apt-p2p can increase the upgrade speed?
As mentioned earlier, apt-p2p will get the request files from peers, therefore, it will avoid the congestion on the ubuntu mirrors.

Steps:

1. Install apt-p2p

sudo apt-get install apt-p2p
2. Prepare sources.list
#Backup sources.list chenhow@chenhow:-$ sudo cp /etc/apt/sources.list /etc/apt/sources.list-apt-p2p-backup
3. Edit sources.list
#Add "localhost:9977" after the "http://" deb http://localhost:9977/archive.canonical.com/ubuntu hardy partner deb-src http://localhost:9977/archive.canonical.com/ubuntu hardy partner deb http://localhost:9977/*mirror-address*/ubuntu/ hardy main universe restricted multiverse deb-src http://localhost:9977/*mirror-address*/ubuntu/ hardy main universe restricted multiverse
4. Update packages
sudo rm -rf /var/cache/apt-p2p/cache/* chenhow@chenhow:-$ sudo apt-get update
5. Start upgrade from Interpid to Jaunty
chenhow@chenhow:-$ sudo update-manager -d
6. Check peers, downloads and uploads speed and DHT statistics
Open Internet browser, go to http://localhost:9977
7. Done

| posted in | 0 comments [ More ]

Spotted by Google

Oh man, thanks to LinkedIn, I'm actually spotted by Google, can this really be true or I was dreaming?

google

For those who never heard of LinkedIn, LinkedIn is actually an interconnected network of experienced professionals from around the world, representing 170 industries and 200 countries. You can find, be introduced to, and collaborate with qualified professionals that you need to work with to accomplish your goals.

Saturday, March 14, 2009 | posted in | 0 comments [ More ]

I'm Back!

It has been a while since my last post, to me it feels like I didn't update my blog for decades. In fact, the last 3 months I was extremely busy with my office work, everyday when I reach home already late night and I really don't have extra energy to write. Anyway, now I have completed some of my projects, I should be able to squeeze some of my time to continue to run this blog again.

Hopefully, by this week I can post some technical tips that I've learned in the past 3 months to enrich you knowledge. By the way, happy belated christmas, CNY, and valentine's.

~CHEER

Friday, March 13, 2009 | posted in | 0 comments [ More ]

SITEX 2008

sitex
SITEX 2008, something like Malaysia PIKOM PC FAIR, the longest running IT event in Singapore. Will be held in Singapore Expo (one of the largest exhibition and convention centres in South East Asia) on 27 – 30 November 2008, from 11am to 9pm.
I'm looking forward to this event since is not far away from my place, just need to take mrt to Expo Mrt Station (4 station away from mine), and hoping to find some bargains.
Those who never been to Singapore Expo before may refer to the following map link. (actually i also never been there before)

http://www.streetdirectory.com/asia_travel/travel/travel_id_8146/travel_site_76688/

Friday, November 21, 2008 | posted in | 6 comments [ More ]

Speed Boost With Third Generation USB (USB 3.0)

After 3 years effort, Intel finally released USB 3.0 Controller Interface Spec aka xHCI (Extensible Host Controller Interface).

From USB 1.1 with maximum transfer rate of 12Mbits/second to USB 2.0 with maximum transfer rate of 40 Mbits/second. Now USB 3.0 has break the gigabit mark with 4.8Gbit/second. Even faster than firewire 3.2Gbit/s.


USB 1.1 12 Mbits/second
USB 2.0 40 Mbits/second
USB 3.0 4.8 Gbits/second

The performance compare with USB1.0, 2.0 and 3.0 has been demo by WinHEC
Comparison sample for data transfer of 25GB HD movie:


  • USB 1.0: 9.3 hours
  • USB 2.0: 13.9 minutes
  • USB 3.0: 70 seconds

It's fascinating, you can now transfer Gigabyte files within a few seconds .. :)

| posted in | 1 comments [ More ]

Goh Tag

Since I'm so lazy and demotivated to work today, play your tag to kill some time la..

Those who have no idea how to play this tagging game, read on then you will know how it work. (at first I thought this is a time wasting game, now.... i still feel the same..haha.. anyway can help me to relax abit)

Let's get started.

第一:被点者请在自己的 BLOG里写下答案
第二 : 请传另外十位的人.=)
第三 : 传阅人‘请在于这十位当中斗留言版’ 告知他(她) 被点名了..
第四 : 这当中的十位的人‘不得拒绝’
第五: 被点者‘请注明被谁点了’ 在哪接到‘在传给下十位’
第六: 这些被点名者’ 你们被点会得到祝福‘并且愿望会实现’ 也会得到幸福.^^

‘幸福套餐^开始咯!!^^

幸福套餐 NO。1♥

01 你的绰号 : Ah Chow or 超哥 ... XD
02 年龄 : 25
03 生日 : 30-09-1983
04 星座 : Libra
05 兴趣 : 球类运动like羽毛球, 听歌,看戏
06 专长 : 浪费时间

幸福套餐 NO。2♥

01 你有没有喜欢的人? : Yes
02 是否在交往? : Yes
03 现在幸福吗? : 还好,如果有钱会更幸福
04 如果上天给你勇气,最想做什么事? : 做废材
05 如果有天,你爱的人跟你告白的话? : 你做了明智的选择

幸福套餐 NO。3♥

01 点你的人是: Ah Lock
02 他是你的 : 老大
03 他的个性? : 冲动,率直,轻微暴力倾向,但很讲义气
04 认识他多久? : 两年
05 你觉得他怎样? : 外强中弱
06 你想对他说什么 : 冷静将会是你成功的关键

幸福套餐 NO。4♥

01 最爱的节目 : 之前是超级星光大道,现在没有
02 最爱的音乐 : 好听的音乐
03 最爱的季节 : 不懂,没有experience过不同的季节,但想看下雪
04 最爱的卡通 : one piece and naruto
05 最爱的人 : 爱的定义很广,有爱情,亲情和友情,看你指的是哪一样lor
06 最爱的颜色 : obviously, white and blue
07 最爱的国家 : Malaysia,因为那里有我爱的人
08 最爱的天气 : 晴天,阴天和雨天

幸福套餐 NO。5♥

01 如果上天给你三个愿望:
1。大家身体永远健康,但我不要长生不死
2。大家每一天都能快乐的生活
3。用不完财富

02 你是很专一的人吗 : Yes
03 最深刻的回忆? : 第一次牵女朋友手的感觉
04 你是个很有信心的人吗? : 还好
05 你很爱微笑吗 : Yes
06 如果你要放弃你现在的生活,你愿意吗 : 如果给我更好的生活,yes我愿意
07 妄想什么样的生活 : 有钱可以让我每天挥霍,吃饱等拉屎的生活,多么的悠游自在
08 是否横刀夺爱才是爱 : siao, 那来的道理...

调卷到此结束‘点人者请至于被点者的留言版’ 告知被点名了.

我看算了,应该没有人会陪我玩tagging game.. Orz

Thursday, November 20, 2008 | posted in | 4 comments [ More ]

MySQL Gone Away Error

This week me and my readers are having difficulty to access my blog, it took aged to load the page and it showing some error message, saying "error: [MySQL server has gone away]".

This error mean either the database has been shutdown or the connection to database has been terminated. After some investigation, I found that the database are still alive, so the conclusion is the connection between wordpress to mysql are having some problem.

So, I started to find the root cause behind this, I went through the Mysql variables and saw the "wait_timeout" are set to 100 sec. It just too short to cater some large queries and when the cpu is heavily loaded, connection to Mysql will reach it bottleneck and fails. Some of you may wonder what is "wait_timeout" variable?

wait-timeout is the number of seconds the server waits for activity on a non-interactive connection before closing it. This timeout applies only to TCP/IP and Unix socket file connections, not to connections made via named pipes, or shared memory.
I reported this issue immediately to the web hosting provider and within 24 hours, they alter the "wait_timeout" variables to 500 sec. Problem solved.
Source:http://dev.mysql.com

Friday, November 14, 2008 | posted in | 6 comments [ More ]

Salary Guide In 2008/09

Wondering whether your paid is competitive with your peers in same line?
Wondering whether you are under/over paid by your company?
Thinking to change job but worry about the current economy situation?

You may refer the salary handbook by Kelly services to help you make your decision whether to stay/leave your current job. Recession storm are hitting the world and let's forget about bonuses or salary increment, as long as you still have your job, you are consider lucky.

Malaysia - salaryguidemalaysia2008
Singapore - salaryguidesingapore2008
Source: www.kellyservices.com

| posted in | 2 comments [ More ]

Happy 5th Anniversary to Me & Cherry

5th Anniversary



An anniversary is a time to celebrate the joys of today, the memories of yesterday, and the hopes of tomorrow.



To be able to maintain such a long (five year) relationship with someone I know from ICQ, who would have thought we can make it this far.



Through thick and thin we have been, though we have quarrel sometimes like any other couples did but true love stories never end merely with quarrel.



On this our anniversary, we may not have wealth, but we do have each other. Let's work harder on this relationship and hope we can have everlasting love.



Happy Anniversary Cherry~

Wednesday, November 5, 2008 | posted in , | 5 comments [ More ]

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 ]