zhao-sun.com

April 9, 2004

AOL IM Express

Filed under: Computer — blogadmin @ 10:35 pm

    There are a couple ways to start AOL IM.

  • the easiest one: appletviewer http://toc.oscar.aol.com/tic.html

  • or in web browser try: http://www.aim.com/get_aim/express/aim_expr.adp

  • or try: http://www.aim.com/other/quick_buddy.adp

Setup PPTP client in Linux

Filed under: Computer — blogadmin @ 10:34 pm

  • go pptpclient, and download current version of PPTP-linux 1.0.2

  • install pptp, type in

    make

  • Add following line to: /etc/ppp/chap-secrets

    “jzhao” * “password”

  • put “noauth” in the file /etc/ppp/options or at the end of the pptp line put “noauth”

  • To support mppe, download ppp-mppe from http://www.mirrors.wiretapped.net/security/network-security/pptp-linux/. To make it compile, I need to install linux source files and apply two patch files, ppp-2.4.0-mppe.patch and openssl-0.9.6-mppe.patch.

  • Read this doc http://www.schumann.cx/wavelan/. It might be helpful as well.

  • Become root, and run

    pptp vpn.724.com name jzhao

    or pptp vpn.724.com name jzhao mppe-128 mppe-stateless mtu 1492

    route add -net 192.168.0.0 netmask 255.255.0.0 ppp0

  • If being logged off, become root, then run

    route del -net 192.168.1.6 netmask 255.255.255.255 ppp0

    ifconfig ppp0 “192.168.1.45” down

    “kill pppd process”

    rm -r /var/run/pptp/

    then run step 5 again

  • For mounting to a remote server, run

    mount -v -t nfs uyr01:/yrless /yrless

    mount -v -t nfs uyr02:/integration /net/uyr02/integration

Setup MovableType in Linux

Filed under: Computer — blogadmin @ 10:23 pm

  • go http://www.movabletype.org, and download the lastest stable version of Movable Type. I’m using MT-2.51-full-lib.tar.

  • go http://www.mysql.com, and download the lastest stable version of MySQL database. I’m using mysql-max-3.23.55-pc-linux-i686.tar.

  • Install MySQL server on my linux box first.

    shell> groupadd mysql

    shell> useradd -g mysql mysql

    shell> cd /usr/local

    shell> gunzip shell> ln -s full-path-to-mysql-VERSI

    shell> cd mysql

    shell> scripts/mysql_install_db

    shell> chown -R root .

    shell> chown -R mysql data

    shell> chgrp -R mysql .

    shell> bin/safe_mysqld –user=mysql &

    or

    shell> bin/mysqld_safe –user=mysql &

    if you are running MySQL 4.x

    or

    to allow remove connection from another pc, I have to start MySQL with this command “bin/safe_mysqld –user=mysql –skip-grant-tables”. And I “cp /usr/local/mysql/support-files/mysql.server /etc/rc.d/init.d/”. So, MySQL server will start automatically at boot time.

  • Modify /etc/httpd/conf/httpd.conf to let Apache eval cgi
    script:

    <Directory>

    Options FollowSymLinks

    Options +ExecCGI (Note: NEW ADDED)

    AllowOverride None

    </Directory>



    AddHandler cgi-script .cgi (Note: NEW ADDED)

  • Install MySQL program on the same box as running Movable Type.

  • Install — for connecting MySQL from Perl.

    go http://www.mysql.com/downloads/api-dbi.html/, download :

    DBI-1.18.tar.gz

    Data-ShowTable-3.3.tar.gz

    Msql-Mysql-modules-1.2216.tar.gz

    For each of these three .gz fils, unzip first, and as root, run :

    shell> perl Makefile.PL

    shell> make

    shell> make test

    shell> make install

  • On the MySQL pc, run this command to test whether you can connect to MySQL server:

    shell> mysql -h HOST -u USER

    After login, run this for testing:

    mysql> SELECT VERSION(), CURRENT_DATE;

  • go http://www.movabletype.org/docs/mtinstall.html, to install Movable Type. Test with “http://www.your-site.com/mt/mt-check.cgi”, and with “http://www.your-site.com/mt/mt-load.cgi” to initialize the system. (Have to remove mt-load.cgi from the “Movable Type” directory afterwards.)

  • go to “http://www.your-site.com/mt/mt.cgi” to login. The
    first time, log in with the author name Melody and the password
    Nelson.

A joke of teachers

Filed under: Entertainment — blogadmin @ 2:00 am

笑倒一大片;不知道大家是不是也有此经历!

文章来源: 看来 于 6/12/2001 4:05:00 PM:

一

高中的时候,有一个对我们班很有偏见的老师,一上我们班的课就要把我们全班都饶上训一顿,所以全班同学商量好,只要是那个老师的可是上午最后一节,全班就要整整他。下课铃一响,全班一半人去买饭,剩下一半人轮流去问问题,等前一半人吃饭回来,全班换班继续去问问题,另一半人去吃饭。可怜的老师只有快一点才能吃上自己泡的方便面。——leeyu (爱上一块会发芽的石头)

二

呵,偶们一个年纪比较大的老师,眼睛极近视,要求很严格,不许迟到的。结果,终于,还是有个同学迟到了,偷偷摸摸的从后门进去,不幸的很,还是被老师发现了,看他坐下了,老师大步冲他走过去,大家都提心吊胆的看,老师生气地对坐在他前面的另一位同学问道,你为什么迟到?——pkmw (月涌大江流)

三

初中的时候新来一个政治老师女的,刚毕业,挺漂亮的一次小测验她坐在讲台上监考我们后面几个男生也不答卷就趴在桌子上,眼睛直直的看着她老师一会儿脸就红了开始低头看报纸,于是我们就开始狂抄。——Seanjiang (绯村剑心)

(more…)

A joke of programmers

Filed under: Entertainment — blogadmin @ 1:59 am

程序员与妓女

文章来源: 基本一样 于 6/9/2001 7:16:00 PM:
1、都是靠出卖为生。
2、吃青春饭,人老珠黄肯定混不下去。
3、越高级收入越高,当然中间人的抽头会更高。
4、生活没有规律。以夜生活为主,如果需要,凌晨也要加班。
5、名声越大,越容易受到青睐。
6、必须尽最大可能满足客户各种各样非正常的需求。
7、鼓励创新精神。
8、喜欢扎堆。程序员集中的地方称为软件园,妓女集中的地方叫红灯区。
9、流动性较大,正常情况下没有工会。
10、如果怀孕了,既不能做程序员,也不能做妓女。
11、都为防病毒的问题而烦恼…
12、当然, 个中高手还专门以制毒传毒为乐
13、一个是Plug & Play,一个是Plug $ Play
14、工作状态相同。工作时精神高度集中,最怕外界干扰。 工作完毕身心放松,体会
到一种不可替代的工作快乐。
15、女孩子最好还是不要做这两个职业,但还是有很多女孩子做。
16、除非在转行以后,否则都不愿意结婚。
17、他们都痛恨微软。

April 8, 2004

The evoluation of a programmer

Filed under: Entertainment — blogadmin @ 11:30 pm
High school
10 PRINT "HELLO WORLD"
20 END
First year in College
program Hello(input, output)
begin
writeln('Hello World')
end.
Senior year in College
(defun hello
(print
(cons 'Hello (list 'World))))
New professional
#include <stdio.h%gt
void main(void)
{
char *message[] = {"Hello ", "World"};
int i;

for(i = 0; i
Seasoned professional
#include <iostream.h%gt
#include <string.h%gt

class string
{
private:
int size;
char *ptr;

public:
string() : size(0), ptr(new char('')) {}

string(const string &s) : size(s.size)
{
ptr = new char[size + 1];
strcpy(ptr, s.ptr);
}

~string()
{
delete [] ptr;
}

friend ostream &operator
Apprentice Hacker
#!/usr/local/bin/perl
$msg="Hello, world.n";
if ($#ARGV = 0) {
while(defined($arg=shift(@ARGV))) {
$outfilename = $arg;
open(FILE, "" . $outfilename) || die "Can't write $arg:
$!n";
print (FILE $msg);
close(FILE) || die "Can't close $arg: $!n";
}
} else {
print ($msg);
}
1;
Experienced Hacker
#include %lt;stdio.h
#define S "Hello, Worldn"
main(){exit(printf(S) == strlen(S) ? 0 : 1);}
Seasoned Hacker
% cc -o a.out ~/src/misc/hw/hw.c
% a.out
Guru Hacker
% cat
Hello, world.
^D
New Manager
10 PRINT "HELLO WORLD"
20 END
Middle Manager
mail -s "Hello, world." bob@b12
Bob, could you please write me a program that prints "Hello,
world."?

I need it by tomorrow.
^D
Senior Manager
% zmail jim
I need a "Hello, world." program by this afternoon.
Chief Executive
% letter
letter: Command not found.
% mail
To: ^X ^F ^C
% help mail
help: Command not found.
% damn!
!: Event unrecognized
% logout

Open Source Contest

Filed under: Computer — blogadmin @ 3:37 pm

Vote in O’Reilly’s “Open Source Goes to COMDEX” Contest
O’Reilly is working with COMDEX to organize an Open Source Innovation Area on the COMDEX Exhibit Floor. We’ve nominated 21 projects and we’d like you to help us select the six projects we’ll send to COMDEX. The winning projects will be recognized by COMDEX and we’ll invite a leader from the project to come to COMDEX and run demos on the show floor. This will give Open Source projects an opportunity to go where only commercial software vendors have gone before.

The COMDEX Contest is now closed. Please visit http://www.oreillynet.com/pub/wlg/3957 for the results.

Here is the list of projects that participated in our contest:
Audacity
Audacity is a free audio editor. You can record sounds, play sounds, import and export WAV, AIFF, and MP3 files, and more. Use it to edit your sounds using Cut, Copy, and Paste (with unlimited Undo), mix tracks together, or apply effects to your recordings. It also has a built-in amplitude envelope editor, a customizable spectrogram mode, and a frequency analysis window for audio analysis applications. Built-in effects include Bass Boost, Wahwah, and Noise Removal, and it also supports VST plug-in effects. Available for Mac OS, Mac OS X, Windows, Linux, and other *nixs.

Eclipse
Eclipse is a kind of universal tool platform–an open extensible IDE for anything and nothing in particular. The real value of Eclipse comes from tool plug-ins that “teach” Eclipse how to work with things: java files, web content, graphics, video, etc. Eclipse allows you to independently develop tools that integrate with other people’s tools seamlessly.

Evolution
Ximian Evolution is the premier personal and workgroup information management solution for Linux and Unix-based systems. Ximian Evolution integrates email, calendar, contact, and task list management in one powerful, fast, and easy-to-use application. With full support for key data exchange and communications standards, such as IMAP, POP, SMTP, LDAP, iCalendar, vCard, and more, Ximian Evolution enables tight integration with Microsoft Exchange, Lotus Notes, and other messaging systems. Ximian supports Evolution on a broad range of leading Linux distributions and Unix variants.

Gaim
Gaim is an all-in-one IM client that resembles AIM. Gaim lets you use AIM, ICQ, Yahoo, MSN, IRC, Jabber, Napster, Zephyr, and Gadu-Gadu, all at once.

Gimp
The GIMP is the GNU Image Manipulation Program. It is a freely distributed piece of software suitable for such tasks as photo retouching, image composition, and image authoring.

Gnome
The GNOME project has built a complete, free, and easy-to-use desktop environment for the user, as well as a powerful application framework for the software developer, built on the *nix core. In rivalry with KDE for the best desktop environment.

GNUCash
GnuCash allows you to track bank accounts, stocks, income, and expenses. As quick and intuitive to use as a checkbook register, it is based on professional accounting principles to ensure balanced books and accurate reports. It is backed by an active development community and is blossoming into a full-fledged accounting system.

KDE
KDE is a powerful open source graphical desktop environment for Unix workstations. It combines ease of use, contemporary functionality, and outstanding graphical design with the technological superiority of the Unix operating system. Often seen as the neck-n-neck rival of the Gnome desktop for best desktop environment for *nix.

MoinMoin
MoinMoin is a Python clone of WikiWiki.

mplayer
A video player for Linux.

NoCatAuth
NoCatAuth is the Perl-based authenticating captive portal. You use an authenticating captive portal to control access to your 802.11 access point (similar to what Starbucks/T-Mobile might employ).

OpenOffice
OpenOffice.org is the open source project through which Sun Microsystems is releasing the technology for the popular StarOffice productivity suite.

phpMyAdmin
phpMyAdmin is a tool written in PHP, intended to handle the administration of MySQL over the WWW. Currently it can create and drop databases, create/drop/alter tables, delete/edit/add fields, execute any SQL statement, and manage keys on fields.

Plone
Plone is a leading content management system that combines great ease of use with a powerful workflow engine and the industry’s first standards compliant templating system. Plone is powered by Zope and Python.

SpamAssassin
SpamAssassin is a mail filter that uses a wide range of heuristic tests on mail headers and body text to identify spam. Once identified, the mail can then be optionally tagged as spam for later filtering. It provides a command line tool to perform filtering, a client-server system to filter large volumes of mail, and Mail::SpamAssassin–a set of Perl modules that implement a Mail::Audit plug-in, allowing SpamAssassin to be used in a Mail::Audit filter, a spam-protection proxy POP/IMAP server, or almost anywhere.

SquirrelMail
SquirrelMail is a PHP4-based web email client. It includes built-in pure PHP support for IMAP and SMTP, and renders all pages in pure HTML 4.0 for maximum compatibility across browsers. It also has MIME support, folder manipulation, etc.

Subversion
The goal of the Subversion project is to build a version control system that is a compelling replacement for CVS in the open source community.

TightVNC
TightVNC is an improved version of VNC, a free, cross-platform, remote desktop package. It allows you to control your computer remotely over TCP/IP networks. It offers many new features, improvements, and bug fixes over the standard VNC, and allows more configuration options in the GUI. TightVNC can be used to perform remote administration tasks in Windows, Unix, and mixed network environments. Also, it can be useful in distant learning and remote customer support.

XMMS
XMMS is a multimedia player based on the look of WinAmp. XMMS plays MPEG layer 1/2/3, Ogg Vorbis, WAV, all formats supported by libmikmod, and CD audio. XMMS has a plug-in system for Input / Output / Effects / Visualization, and through plug-ins it can play a lot more sound and video formats.

Zope
Zope is a free, open source web application platform used for building high-performance, dynamic web sites. It contains a powerful and simple scripting object model, and a high-performance, integrated object database.

——————————————————————————————–

Open Source @ Comdex Winners & Results.

Steve Mallett

Nov. 06, 2003 04:50 PM
Permalink
Print
Email weblog link
Discuss
Blog this

Ladies and Gentleman, we are very pleased to announce the winners, as you voted, for the projects that will be attending Comdex at the “Open Source Pavilion”:
In order of most votes:
Plone 1690
KDE 1334
OpenOffice 1302
Zope 1069
Gimp 705
Gnome 551
Eclipse 501
mplayer 458
Evolution 429
Subversion 410
SpamAssassin 364
GNUCash 292
Audacity 256
Gaim 229
SquirrelMail 184
tightVNC 165
XMMS 137
phpMyAdmin 125
Zoe 121
MoinMoin 89
NoCatAuth 60

The top six projects have been contacted and have confirmed their attendance for the Pavilion.

If you are in the neighborhood of Vegas during the week of the 17 – 20th we encourage you to stop in to say hello and bring potential converts. On hand will also be Rael Dornfest and Rob Flickenger, authors of Google Hacks & Mac OS X Hacks, and Linux Server Hacks & Wireless Hacks respectively.

Thanks to everyone who took the time to participate in voting, I know the winners certainly appreciate it.

« Newer Posts

Powered by WordPress