Tuesday, March 20, 2007

Jad - the fast JAva Decompiler

I have started to work for ziqiang.net. It is a pleasant job for me but some source code badly needed is missing. Now I only have some compiled class files at hand. I'm thirsty for a decompiler.

Fortunately, I found jad, an execllent decompiler.

1. You can download it form here.
I am using Linux and hate to solve dependence problems manually, so I downloaded Jad 1.5.8e for Linux (statically linked).

2. Just untar it to a location as you wish.
Make sure that the location is in your PATH variable.

3.add alias jad="jad -sjava " to ~/.bashrc (or any other inital file for your shell)
If not, you have to run jad with arguement -sjava to decompile classes.

Tuesday, March 13, 2007

Install Linux on HP Jornada 690

I have bought a second hand HP Jornada 690 pda from taobao.com. Maybe it's completely a waste in the views of many people, but I consider it a treature.

The original OS of 690 is WinCE2.1 whose function is limited for it is out-of-date. I am wondering if Linux can run on it. If so, I will be enabled to do more. Fortunately, my need can be easily met by many volunteers' work.

OK, let's start the fantastic journey.

1. Download JLime, a GNU/Linux for 690
Download it from http://www.jlime.com/. (If your machine is 720, please select Mongo. Here I downloaded Donkey)

2.Extract it to your CF card.
Notice:file userland.tar.bz2 contains all the apps and config files. The original GUI in it is Opie. But it is very slow, even slower than WinCE! So I recommend you to download a userland contains IceWM form http://devfiles.jlime.com/Userlands/ . Once you get this file, replace the userland.tar.bz2 with it and rename it ro userland.tar.bz2 .

3.Run shlo.exe in your WinCE which will guide you all the way to JLime!
Notice: When it comes to the partition window, you'd better choose Manual Partition for the Automatic one may cause crash.

If you are using a HP690, you should enable 32MB mode for a better preformance.


4.Now a pda with Linux is right in front of you! Enjoy.

Opie


IceWM_1

IcwWM_2

Sunday, March 11, 2007

FTP Client Plugin For Firefox

https://addons.mozilla.org/firefox/684/

Watch Online Video Clips With Firefox

1.Download and install MediaPlayerConnectivity for Firefox:
https://addons.mozilla.org/firefox/446/

2.Specify different applications for different file types in menu:
Tools->MediaPlayerConnectivity->Configure..

PS: Now I can watch CCTV News at Xinhua video.

Thursday, March 8, 2007

How do I configure Gaim for Google Talk?

Once you download Gaim, you'll need to configure your client to connect to the Google Talk service. If you're connecting with a Google Apps account, please read the specific instructions in the Google Apps Help Center.

To configure your account:

  1. Open Gaim.
  2. Click Accounts at the bottom of the login page.



  3. Click Add from the Accounts window.



  4. Enter the following information in the Add Account window:

    • Protocol: Jabber
    • Screen Name: your Google Talk username (without any @ symbol or domain).
    • Server: gmail.com
    • If you're signing in with a Google Account that's not linked to any Google email service, enter gmail.com
    • Google Mail accounts should enter googlemail.com
    • Google Apps users, please visit the Apps Help Center for instructions.
    • Password: we suggest leaving this field blank for increased security, but if you'd like to log in automatically, enter your password
    • Alias: leave this field blank
    • Remember password: check the box if you'd like Gaim to remember your password (you won't be prompted to enter it each time you log in, if you select this option)
    • Auto-login: check the box if you'd like to connect to the Google Talk service each time you use Gaim

  5. Click the + next to Show more options.
  6. Enter the following information in the section that appears:

    • Jabber Options: Select Use TLS if available and leave the other boxes unchecked.
    • Port: 5222
    • Connect server: talk.google.com
    • Proxy type: Use Global Proxy Settings



  7. Click Save.
Congratulations! You're now ready to connect to the Google Talk service using Gaim.

Have questions about Gaim? Learn from the experts! Check out Gaim's FAQs. The Google Talk Team can only assist you in configuring your client to work with the Talk service.

Wednesday, February 14, 2007

Replace Scim With Fcitx

There is something wrong with scim. I found suprisely that it can not work well with firefox. Awful thing... So I replaced it with Fcitx.

1. Install Fcitx
2. Replace string scim in /etc/X11/xim.d/scim with string fcitx

Monday, February 12, 2007

Last Night in University

Chch101 leaves this morning, so does PangShapeng in the afternoon, which leaves me alone
in the dormitory. It is so quiet that I feel as if I were sharing the whole college with nobody.
I will leave tomorrow afternoon. Oh~My winter vocation begins.

File Operations in Java

File:


FileInputStream:


BufferedReader
:

Wednesday, February 7, 2007

IP Address in LumaQQ

Copy QQWry.dat to ~/.lumaqq2006
or
Make a symbol link.

Tuesday, February 6, 2007

Setting up Gvim

~/.vimrc

Enable highlight for source codes:
syntax enable

Set the number of spaces for a TAB:
set tabstop=4

Display line numbers:
set nu

Auto indent:
set autoindent

Print with line numbers:
set printoptions=number:y

Now, my .vimrc:
syntax enable
set tabstop=4
set autoindent
set nu

Lv.40 in WOW

My little human warlock reached his level 40 today. Now he can ride horse happily.

Sunday, February 4, 2007

VLC Player Runs on My openSUSE

I have installed VLC player. It's really a cool tool which can meet all my demands.


Thursday, February 1, 2007

Fast openSUSE Mirrors

Fucking mirror in Japan:
http://ftp.novell.co.jp/pub/opensuse/distribution/

A fast mirror in g=Germany
http://packman.iu-bremen.de/

Another fast Mirror in Austria:
http://packman.inode.at/

Exams End

I finished the last exam which means my vocation started.
Maybe another good time to study?

Wednesday, January 31, 2007

An Excellent YaST Source for openSUSE10.2

http://packman.inode.at/

I find it today. It is really cool!!!

Math Passed

My Math passed. Wow...

Sunday, January 28, 2007

BT Client

I downloaded the latest Azureus, an excellent BT client software. Then I enabled port needed by it in firewall.
I tried downloading a movie form greedland.com. It was so fast. So cool!

Friday, January 26, 2007

Java Progress:extends


//Name:Extends
//Description:Practise using extends
//Auther:CrackCell
//Date:26-Jan-07

class Human{
String name=null;
int sex; //0=male,1=female
Human(){
System.out.println("Human");
}
}

class Student extends Human{
String studentID;
Student(){
System.out.println("Student.");
}
}

public class Extends{
public static void main(String[] args){
Student S1=new Student();
S1.name="TanMenglong";
S1.sex=0;
S1.studentID="200632580051";
System.out.println(S1.name);
}
}

Bought a book

I went to Guanggu Book Store to buy books with ZhangYaqian, YangZiqing, LiuYu and WangFei today. I bought Data Structure and Alogrithms in Java. It will be useful in winter vocation. The other bought some wonderful books, such as WangFei's C++ Primer and YangZiqing's Operating System Design.

Thursday, January 25, 2007

Math Exam

We dumped the annoying Math exam yesterday. I didn't do well in it, so I am afraid of losing marks from it. But at least I can enjoy a free time right now without worrying about anything.
God blesses me!

Sunday, January 21, 2007

Note on table in HTML

I learned how to make a nice table with HTML today.
Here is a sample production:





ABC
123456
789

Friday, January 19, 2007

Upgrade Operating System

I have upgraded SLED10.1 to openSUSE10.2 today. But everything didn't go so smoothly. Some strange faults occurred during the process. I had to redo everything again. It was really awful! Fortunately, everything is OK now. The drivers for graphics card works well with XGL, so I can use my favourite 3D desktop now.

Tuesday, January 16, 2007

Beautiful Snow in Wuhan University

It has been snowing today. This is the first snow in Wuhan and also, it's the first snow I have ever experienced in big city. When I got up early this morning, I was suprised to see so much snow in front of my eyes. Snow on the ground, snow on roofs, trees and heads of every happy guys. Many fresh men rushed into the world of white to make snowmen.
After the exam in the afternoon, Lu Jiaguang, Huang Ligeng and I went to Section 1 of our university to take photos. When we arrived at the Slope of Lovers, I could not help catching every byte of the landscape with Pang Shapeng's Sony T9.

Here I paste some photos, enjoy.

No.1 Pretty trees

No.2 Me

No.3 Slope of Lovers

No.4 Slope of Lovers


No.5 Slope of Lovers

No.6 I came back in caliginous light

Build crosscompile environment for Motorola E680G

For my old cellphone can't satisfy my needs, I'm thirsty for a new one. After days's hunting, I have chosen Moto E680G for its Linux operating system and expansibility which enable me to develop my own software on it. But the first thing I should do is to build a crosscompile environment on my Laptop so that I can write code for it in SLED.

Saturday, January 13, 2007

Failed code

It seems that I have learned the operating of linked list in C language.I feel it is not easy to use linked list in pure C. I just want more, something object-oriented(OO).To tell the truth, being used to Java, I don't like the style of pure C very much. I have just tried operating linked list in C, but failed. It said Segmentation fault. Faint! Later I will try again.

Comfortable relaxation

I got up early this morning. The minute I got rid of the bed, I found the other three Rubbish was still sleeping.
I played the WOW for about an hour in the midday. I accomplished the task for 30 Level warlock. Now I can use the fourth pet to fight with others. But it is not so powerful as my little monster.
After finishing supper, I went to bed early. Lying in bed, reading and coding, is really the most comfortable thing I have ever experienced. Before I fell asleep, I recited the prepared answers to our Politics exam. It is quite a huge nubmer that I have to remember 49 quizs.
But I could now code and read leisurely, good feelings.

Friday, January 12, 2007

Relaxation Before Exam

The coming final exam makes me very nervous. But I still feel easy to enjoy such a free weekend. I bought a GTK+ Programming Language, C edtion from the library. I really want to learn something on GTK+, but I don't have time to do that at present. So, just forget it till winter vocation during which time I have to learn JSP as well. Err... It seems that I am going to have a tense holiday.
Finally, I have determined myself to taje a chance on Whu OJ. I ACed a quiz yesterday followes by another one today. It's really a great thing to be able to AC. I have posted the detail code on my Code Blog.

May be a good place to write down something..

Nobody knows I'm here. It's great to write down something for myself, not anyone else.