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 ]