Announcement

This site is temporarily shutdown!

Friday, November 9, 2007

Get mldonkey running in Mac OS.

I just upgraded my macbook OS to Leopard. Amule always crashes in new OS. In addition, Amule sucks in terms of download speed and resource occupancy. Now, let's move to mldonkey, the fastest, maybe most powerful in compatibility, and least memories usage emule currently. Following this instruction,you should be able to do the similar job in ubuntu as well. Leave me messages if you have questions.

Platform: Macbook, Intel duo core 2 2.16GHz
OS: Leopard
mldonkey: mldonkey-2.9.2.shared.-Darwin

1. Download the mldonkey via:
http://mldonkey.sourceforge.net/Main_Page

Go to the download site and
choose Darwin version.

2. Unpack the file to a folder, e.g., on the Desktop. I installed
STUFFIT EXPANDER, so it is done automatically.

3. Now go to the unpacked fol
der ~/mldonkey, create a txt-based file, named InstBatch with content as:

#! /usr/bin/perl -w
use strict;


die "Cannot locate the file : mlnet. Make sure it is in the mldonkey folder!\n" unless -s "mlnet";

die "/usr/bin is not existed. Please create!\n" unless -d "/usr/bin";
system "cp mlnet /usr/bin" ;

my $home=$ENV{HOME};
if (-e "$home/.profile") {

open PF,"< $home/.profile" or die "Cannot open the configuration file .profile\n"; my ($lang,$lc_all)=(0,0); while(){
chomp;

$lang++ if(/export\s*LANG\s*=\s*zh_CN.UTF-8/);
$lc_all++ if(/export\s*LC_ALL\s*=\s*zh_CN.UTF-8/);
}

if($lang==0 or $lc_all==0){
open PF,">> $home/.profile" or die "Cannot open the configuration file .profile!\n";

print PF "\nexport LANG=zh_CN.UTF-8\nexport LC_ALL=zh_CN.UTF-8\n";
close PF;
print "Language setup is succ
essful!\n"
}else{
print "Language setup has been done!\n";

}
}else{

open PF,">> $home/.profile" or die "Cannot open the configuration file .profile!\n";
print PF "\nexport LANG=zh_CN.UTF-8\nexport LC_ALL=zh_CN.UTF-8\n";

close PF;
print "Language setup is successful!\n"
}


Or download it from here. I just know Chinese setup for non-english language :). You can leave the language setup lines as blank if English is comfortable enough for you~


4. Open a terminal, make sure the InstaBatch is in the folder mldonkey. Then type:

Chmod +x InstBatch
sudo ./InstBatch


It should be installed after this step. There would be an mlnet in /usr/bin/.

5. In terminal you can run mlnet now. Type:

Macintosh-2:~ Sodomarch$
mlnet&

to put it as a background process. Now open your web browser and go to http://localhost:4080/. You can manage your mldonkey via UI now! And for convenience, you might want to drag it to you
r bookmark. To terminate the process, just simply input kill in the box as the screen shot below:


6. You can close your terminal during the running. Actually it cost so little memories usage that you can always open it as the background process. Now you wanna a locally client rather than the web UI. You have multiple choices. I am using sancho. Grab it and make sure your mldonkey is running when you double click sancho. You got your old-friend emule/amule's face like:


7. Go to the menu->tools->preference->all(Or preference->networks->donkey). You might want to do these parameter modifications:

Ed2k-port: for HighID port mapping, make sure the same as your router configurations. I use 4663.

ED2K-
max_connected_servers 30
max_hard_download_rate 5000
max_hard_download_rate_2 4000
max_hard_upload_rate 10
max_hard_upload_rate_2 100

Compared with emule/amule, you can connect to multiple servers as you like. Surely, you are encouraged to upload faster, like 1000k/s. Just change the max_hard_upload_rate parameter. lol~

To keep your score or past user info. in emule. Go to your emule and click the ed2k earch icon to show network information. Copy ed2k UserHash and KAD UserHash respectively (Also workable if use notepad to open emule folder
/config/cryptkey.dat). Fill these two hash into parameters in mldonkey:

client_private_key: Ed2k UserHash
md4: KAD UserHash

If you wanna the sancho GUI and background core process work simultaneously, check the preference->sancho:main->general

Then you do other stuffs: change the showing name as you like, setup max connections, enforce highID queuing, etc.

8. Import emule/amule temporary file. In web UI, use command
import_temp /EDTemp.

9. Download plugin
mldonkey_protocol_handler for your firefox. It enables your download links recognized in mldonkey.

10. In Finder, use
cmd+shift+g to navigate into an invisible directory, which is mldonkey default setup folder: ~/.mldonkey
Make alias of folder incoming and temp to your favorite directory. I just put them on desktop.


Well, it should be okay now. Your new donkey is stronger and faster. You may never feel you are running a P2P downloading program, which is supposed to be resource consuming. Just occasionally check the status of the program by web UI or sancho. Normally, it is invisible and you can always keep it on background. I am using comast in a home wireless environment. Forget the slow amule, you get 200+k/s speed easily!

Sunday, August 19, 2007

Construction Gets Stuck

Err.. I probably have to change a site to construct again.

Thursday, July 26, 2007

Back to Mac

Yes, I am back to Mac today. It looks still cool enough to attract me. Also, an old friend, Linux has been set down in the Parallels, but a Kubuntu version.
One more thing, I sit in a really awesome conference session today. Our department did have tremendous contribution in the past. Hey, boy, great figure has retired, and it is your turn now: Keep working on a normal Ph.D. level or move on to glory paths? Take the blue pill or the red one?

Thursday, July 5, 2007

Research time.

What is research? In some sense, it is searching and searching again (Re-Search) to get proper solutions. They might have been existing in other domain or not. In the latter case, you need more creativity!



Saturday, June 30, 2007

Friday, June 15, 2007

C u 2morrow~

Just now, when I opened my refrigerator to fetch the ice cream, one fly was trying to "visit" foods suddenly. Because of no uncovered food, I close the door quickly. C u guy~

Friday, May 18, 2007

Choke

Yes, final is just finished. Is it an end of busy or beginning of hard time? I do not know. I have no idea about the exact meaning of this summer. It really depends on my altitude and working effect. Compared to the last summer, I know the ironic meaning and get deeper understanding the repeating stories in one's life.

Travel and enjoyable dreams seem being killed. I moved my album to flickr. Now I suddenly realize that I have a long time for not watching movie nor a soccer game. Photography might be the second entertainment for me. The music should be changed back to "Lonely Avenue".

Wednesday, April 25, 2007

Messy gossip

Well, recently what I did is coding in Java and getting around some new stuffs, like my new camera K100D.
First, let's move to Java. I am developing a program for displaying the energy consumption. Basically, I wrote classes which implemented new features in Java 6. It is called system tray class. Although you might have seen that in C or Delphi/Pascal codes long time before, the system tray in Java is really a new feature in 6 version. One problem is the listener in the tray cannot capture some actions, such as MouseEntered. Anyway, I implement it by other methods. The project require me to test the codes in Linux and Macintosh too. However, Macintosh by now does not support Java 6. Oops, I have to convince the instructor to forget it in Macintosh...
I would like to talk about my new camera K100D as well. Pentax is also a strong and old DSLR producer. But, to be honest, the operation in that camera is not convenient enough compared to Nikon D80. The menu design, the human interface and the displaying aesthetic aspects are not so good as D80. Of course, not all the things are bad. For example, the quality of pictures generated by K100D is pretty good and amazing under specific light conditions. In the same contexts, some pictures are even better than D80's! Actually, the camera, with two lenses, is a gift for my family. I hope my parents enjoy it!

Saturday, April 7, 2007

New MacBook.

I just got my new MacBook this week. By now, I have installed Vista on that. It looks working perfectly. Here is a picture. But, it's only a try for me. I will stick to Macintosh. Anyway, Vista is a much better one than XP.

Thursday, March 8, 2007

Picasaweb was updated to 1G!

Google keeps improving. Just last week, I was wondering whether I should move to another public album for more photos. Now this concern seems being solved! I will try the community function later.

Laser Scanning

You can be different from normal looking by scanning. Give me a scanning device piercing my shell!

Saturday, February 24, 2007

Hip-hop competition@CMU

Well, it is really a cool stuff. Enjoy it!


From Hip-hop@CMU

Monday, February 19, 2007

Chinese New Year Here.

Anyway, let's cheers! More pictures are uploaded.

Thursday, February 8, 2007

Some YouTube web movies.

Here I am just using Mac's ad for a embed test.















Wednesday, January 31, 2007

Payday's food.

It is really a hectic time now!


Thanks to the camera enabling my enjoyable tiny slots!

Tuesday, January 30, 2007

Try my camera.

It is hard to neglect the impact of DSLR in that everyone could afford them now. I am just shooting my items in my office and post some photos in my album.
Well, I have been clearly joined in the Nikonians with a D80 by now. God bless my time for allowing me to improve my photography skills.

Wednesday, January 24, 2007

Congrats to Chang Hao.

Congrats to Chang Hao. Defeating Lee is so difficult, especially in recent years. It is our honor to share this victory with you! Hold on in future games!

Sunday, January 21, 2007

Speed up your web pages.

Google Web Accelerator is a relatively new item in your Google account. I tried it today. In fact, you cannot see any improvements when you are visiting websites located in US.

However, now we are in a special period that cables are broken because of the earthquakes happened in
Taiwan. As a result, downloading this client software, if I can define it as that, is REALLY helpful when you are trying to visit Chinese websites, such as chinaren. Though it may take a longer time than usual to visit, at least, you can visit instead of refreshing the pages time and time again but get nothing except annoying moods.

Hopefully, the cables can be fixed ASAP. But do remember, you have Google Web Accelerator anyway.

Tuesday, January 9, 2007

Now, I am trying Google eBlogger.

I don't know why Google works with blogger. They could have been offering this eBlogger for quite a while. If it is good enough, I will move my google pages here!