2007-02-28

Accessing google talk service from port 443

Keywords: gaim google talk 443 https firewall

Working for a company with firewall like me, it could be problems to get IM clients connected. For the google talk service, it's help tells you to use port 5222 while my company blocks this one.

Luckily, we can use port 443(standard https port) to access the google talk service. For my gaim 2.0.0b6 (installed with Ubuntu Feisty Fawn), I just followed the instructions given by google talk help and change the port to 443.

It seems the google talk developer did this: link

2007-02-27

Open Office 2007 Files In Office 2003

Install the Microsoft Office Compatibility Pack. link

2007-02-26

Mount ISO image

sudo mkdir /media/iso

sudo modprobe loop

sudo mount file.iso /media/iso/ -t iso9660 -o loop

Ubuntu iso images

they are all here: http://cdimage.ubuntu.com

including the newest Feisty.

Adding a sitemap of blogger to google webmaster tools

For the google webmaster tools, if we can add a site map to it. It will index our site quicker.



You can add your full blog feed as the site map, and as google webmaster tools require a highest-level directory for the sitemap file. The url will be:



http://yourname.blogspot.com/atom.xml



2007-02-25

BOAT


BOAT, originally uploaded by Archive My Life.

BOAT AT SEA SHORE.

MONT BLANC BAG


MONT BLANC BAG, originally uploaded by Archive My Life.

MY NEW YEAR GIFT. THANK YOU, HONEY !

Saving flickr photos in blogger

Flickr's free accounts have the following limits:

  • Photostream views limited to the 200 most recent images
  • Only smaller (resized) images accessible (though the originals are saved in case you upgrade later)
Which we can address through flickr API and blogger API.



Fake code:

  1. for each photo in your flickr account

  2. get URLs of small/medium/large/orgninal size of photo
  3. if cannot get orgninal size photo URL, construct it from the medium URL(insert '_o' before .jpg).
  4. get the taken date of the photo
  5. get tags
  6. post to blogger, display the medium or small size of photo, add links to all other sizes, using the date of taken date.
  7. loop for each.


Resolve Nvidia driver and Ndiswrapper conflict in Ubuntu

Use the latest kernel, nvidia driver and ndiswrapper. Currently these are: kernel 2.6.20, nvidia driver 1.0-9746, ndiswrapper 1.37.



Work perfectly in my dell 620 with Dell Wireless 1390 WLAN MiniCard(Broadcom BCM4311).



ref: Ndiswrapper wifi and Nvidia driver conflict.

Soff被告,输

看这里:
http://bjgy.chinacourt.org/public/detail.php?id=43944
可怜的soff,成了被告,要付11w。我的偶像啊,记得前一段时间,他说在soff.net上放google的广告,一天能收入150+ USD。现在成了tencent的眼中钉,被整了。
可怜。

2007-02-23

V


V, originally uploaded by Archive My Life.

SKY AND SEA

OCEAN


OCEAN, originally uploaded by Archive My Life.

SEASIDE


SEASIDE, originally uploaded by Archive My Life.

STREET OF YANTAI


STREET OF YANTAI, originally uploaded by Archive My Life.

2007-02-22

A BRAND NEW YEAR PLAN

a. Eat less meat.
b. Drink more water.
c. Get bed before 23:00
d. Run at 21:30 every night.


Let's check this out the same date next year.

2007-02-21

THE GHOST HOUSE


THE GHOST HOUSE, originally uploaded by Archive My Life.

BY THE SEA. YANTAI, CHINA.

VERY OLD HOUSE. LOOKS LIKE A GHOST HOUSE WITH THE GREEN LIGHT.

THE SHARK


THE SHARK, originally uploaded by Archive My Life.

THE SHARK, BY THE SEA. YANTAI, CHINA.

OLD HOUSE


OLD HOUSE, originally uploaded by Archive My Life.

THE OLD HOUSE BY THE SEA. YANTAI, CHINA.

春节没人上网...

gaim上只有我自己。

FW: 10 Linux commands you've never used

http://bashcurescancer.com/10-linux-commands-youve-never-used.html



briefing:



1. pgrep = ps + grep + awk '{print}'

...

7. ldd = depends walker

...

10. lsof = list all open files.

Access new blogger from the traditional blogger clients.

If your blogger account has been migrated into the new blogger, then:

server: http://www2.blogger.com/api
username: your google account name
password: your google account password
Done.

2007-02-19

Beryl but no window border

If you are using nvidia driver, issue the following command:



sudo nvidia-xconfig --add-argb-glx-visuals



which will add the following line into xorg.conf



"AddARGBGLXVisuals" "true"



Then restart your X.

2007-02-18

Moving Blog From Live Spaces To Blogger

Microsoft Live Spaces and Google Blogger both provide APIs. So you can easily move our blog from live spaces to blogger, just like what I just did.

Google's API is "Blogger Data API", you can read more about it here.
Microsoft Live Spaces API is "MetaWeblog API", you can read more here.

Google provides Java/.NET/PHP/JavaScript libraries of it's API, and MetaWeblog is kind of XMLRPC. So Java can be the programming language.

Tricks of programming:

1. I use apache xmlrpc library to access the live spaces. It cannot parse the date format correctly. You need to implement a custom type factory by following the sample of apache xmlrpc's doc(read "Custom data types" of this page). And the date format should be the following:


private DateFormat newFormat() {
return new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
}


2. Live spaces API can not return more than 20 posts at one xmlrpc call. So that's what I did:

a. get the most recent post, record the id of the very recent one.
b. post it to blogger
c. update the post's date to 50 years ago.
d. keep a list of all the posts that we modified.
e. loop to a, until reach the recorded very recent post.
f. iterate all the posts we modified, change the date back.

That should be the only way to get all posts of live spaces.

Limits:

There are no APIs of Live Spaces to get the photos/attachments/comments, so we cannot migrate them to the blogger. That is not a problem to me as I don't have much of them.

I've made such an application and moved my blog from http://archivemylife.spaces.live.com to this site. Feel free to contact me if you need it too.

2007-02-17

nm-applet cannot work with static ip address

cannot understand how the application was designed...

2007-02-14

Ndiswrapper wifi and Nvidia driver conflict.

The result is there will be a line like following displayed at the console after like 15 or 20 minutes:

 kernel: [17181336.380000] Disabling IRQ #177

Then the wifi just stops working.

Now all that I can do is removing the Nvidia driver......

Keyring, plz do not ask me the password anymore.

ref1: http://www.ubuntuforums.org/showthread.php?t=187874
ref2: http://www.hekanetworks.com/opensource/pam_keyring/

If your keying password is the same as your login password, you can do the following steps:


1. Get pam_keyring source
2. sudo apt-get install build-essential libtool libglib2.0-dev libgnome-keyring-dev libpam0g-dev
3. tar xzvf
4. ./configure --prefix=/usr --libdir=/lib
5. make
6. sudo make install
7. sudo vi /etc/pam.d/gdm

add the following lines to the end of the file:

 auth optional pam_keyring.so try_first_pass
 session optional pam_keyring.so

Done.

Firefox quick search tip

1. Press "/"
2. Type what ever you want to find
3. It will disappear automatically.

Config QT based app under ubuntu.

Skype is based on QT3. To support chinese characters correctly, we need to config QT3 application font. The gnome-based ubuntu does not have qtconfig installed, so:

    sudo apt-get install qt3-qtconfig
    qtconfig &

2007-02-13

Install XMLRPC::Lite (SOAP::Lite) in ubuntu

sudo apt-get install libsoap-lite-perl
sudo apt-get install libio-socket-ssl-perl

using cpan to get and compile may get error while compiling the ssl support.

2007-02-12

Easytag with unicode support

ref: http://ubuntuforums.org/showpost.php?p=1714180

steps recorded:

1. install build env:

 sudo apt-get install build-essential binutils cpp cpio dpkg-dev file gcc libc6-dev make patch perl dh-make debhelper devscripts fakeroot lintian

2. install all needed to build libid3

 sudo apt-get build-dep libid3-3.8.3c2a

3. get sources

 mkdir ~/build && cd build
 apt-get source libid3-3.8.3c2a

4. edit the erring file:

 vi id3lib3.8.3-3.8.3/src/io_helpers.cpp

change the line 368 from

 unicode_t ch = (data[i] << 8) | data[i+1];

to

 unicode_t ch = (static_cast<unsigned char>(data[i]) << 8) | static_cast<unsigned char>(data[i+1]);

5. change the debian package version

 vi id3lib3.8.3-3.8.3/debian/changelog

change the version info of the first line, for
 
 id3lib3.8.3 (3.8.3-5.1.0.0.jason.1) ...

6. build it !

 cd id3lib3.8.3-3.8.3
 dpkg-buildpackage -us -uc -rfakeroot

7. got the deb @ ~/build and install it...

2007-02-10

Install fcitx in Ubuntu 6.10

1. get fcitx

sudo apt-get install fcitx

2. config fcitx to start with X11

sudo sh -c " echo 'export XMODIFIERS=@im=fcitx ; export GTK_IM_MODULE="fcitx" ; fcitx ' > /etc/X11/Xsession.d/95xinput "
sudo chmod 755 /etc/X11/Xsession.d/95xinput

3. modify /etc/gtk-2.0/gtk.immodules

modify the line: "xim" "X Input Method" "gtk20" "/usr/share/locale" "ko:ja:th:zh" to:

 "xim" "X Input Method" "gtk20" "/usr/share/locale" "en:ko:ja:th:zh"

Apply themes in Ubuntu 6.10 Edgy Eft

Some themes downloaded from gnome-look.org cannot display correctly. It may because lack of one package:

$sudo apt-get install gtk2-engines-pixbuf

2007-02-09

Font problem in Gaim chat window

There may be weired font in Gaim MSN chat window, but gtalk works well at the same time.

The reason is MSN protocol messages carry font information along with the text. The Gaim tries to display accordingly. When there is no exact font in your machine, Gaim (or the font rendering system) will try to find a replacement which may not be the same as your system font configuration.

To revolve this problem, just go to "Tools->Preferences" and uncheck the "Show formatting on incoming messages".

Performancing keyboard shortcut

Press F8 to activate it...

Disable Ubuntu Window Animation

$ gconf-editor

expand /apps->metacity->general

check "reduced resources"

goto "System->Preferences->Assistive Technology Preferences", enable it. (to avoid the wiring thing while moving windows).


powered by performancing firefox

2007-02-07

Config Dell 1390 Wireless Adapter in Ubuntu

You should use Ndiswrapper to drive the Dell 1390 wireless adapter.

1. install ndiswrapper
 sudo apt-get install ndiswrapper-common
 sudo apt-get install ndiswrapper-utils-1.8
 sudo apt-get install ndisgtk


2. download dell driver:
 http://ftp.us.dell.com/network/R115321.EXE

3. extract the R115321.EXE using unzip and get the bcmwl5.inf and bcmwl5.sys

4. add the free wireless driver to black list
 echo 'blacklist bcm43xx' | sudo tee -a /etc/modprobe.d/blacklist

5. attach the driver
 sudo ndiswrapper -i bcmwl5.inf

6. list the driver
 sudo ndiswrapper -l

7. install the WPA support
 sudo apt-get install wpasupplicant

8. install the network-manager
 sudo apt-get install network-manager
 sudo apt-get install network-manager-gnome

9. update config

 sudo gedit /etc/network/interfaces

Comment out everything other than “lo” entries in that file and save the file
Create a file called /etc/default/wpasupplicant, add entry ENABLED=0 and save the file

 sudo touch /etc/default/wpasupplicant

Reboot your system


powered by performancing firefox

Install Java plugin 1.4 in firefox under Linux

1. download java installer from sun
2. install the jdk or jre
3. Symbol link the plugin file under ......./jre/plugin/i386/ns610-gcc/libjavaplugin_oji.so to the firefox plugin directory.
4. access about:plugins from firefox.


powered by performancing firefox

Post to Windows Live / MSN Spaces using performancing

Firstly you need to enable "Email publishing" and choose a secret word for the email publishing. Then if your live space URL is http://username.spaces.live.com, you should login using "username" and the secret word.

--
2007-02-13

This strange username/password combination comes from MS MetaWeblogAPI: details