Dedian  
-- 关注搜索引擎的开发
日历
<2024年11月>
272829303112
3456789
10111213141516
17181920212223
24252627282930
1234567
统计
  • 随笔 - 82
  • 文章 - 2
  • 评论 - 228
  • 引用 - 0

导航

常用链接

留言簿(8)

随笔分类(45)

随笔档案(82)

文章档案(2)

Java Spaces

搜索

  •  

积分与排名

  • 积分 - 64852
  • 排名 - 816

最新评论

阅读排行榜

评论排行榜

 

hehe, get from friend's blog:
 
New Manager (do you remember ?)
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
posted @ 2006-04-19 02:05 Dedian 阅读(237) | 评论 (0)编辑 收藏
 
Well, I just want to know how to do file searching in Linux as something like dir <file_name> /s in DOS...
 
by google, i found two methods:
 
ls -R | grep file_name
 
or
 
find . -name file_name
 
^-^
posted @ 2006-04-19 02:04 Dedian 阅读(356) | 评论 (0)编辑 收藏
 
I feel interested in the web style of Wikipedia web site. Coz there are more and more forum websites applying this style, including our group internal website, or external Eclipse Pedia site.
In my view, this kind web style is very clean and functional for knowledge-based or information-based websites, and also suitable for personal or enterprise-scaled discussion board.

It is not hard to get source code of this kind of web site, esp. in this open source era. Look at the right-bottom of main page, we can find an icon "powered by MediaWiki". hmmm, Meidawiki, that is what I want. I can download the software package from there.

But, unfortunately, the source code seems written by PHP. well, I guess i need install PHP at first in my Linux system (Apache 2 has been in CentOS). and also, i need to learn something about it...
posted @ 2006-04-19 02:03 Dedian 阅读(195) | 评论 (0)编辑 收藏
 
/sbin - This directory contains all the binaries that are essential to the working of the system. These include system administration as well as maintenance and hardware configuration programs. Find lilo, fdisk, init, ifconfig etc here. These are the essential programs that are required by all the users. Another directory that contains system binaries is /usr/sbin. This directory contains other binaries of use to the system administrator. This is where you will find the network daemons for your system along with other binaries that only the system administrator has access to, but which are not required for system maintenance, repair etc.

/bin - In contrast to /sbin, the bin directory contains several useful commands that are used by both the system administrator as well as
non-privileged users. This directory usually contains the shells like bash, csh etc. as well as much used commands like cp, mv, rm, cat, ls.
There also is /usr/bin, which contains other user binaries. These binaries on the other hand are not essential for the user. The binaries in /bin however, a user cannot do without.

/boot - This directory contains the system.map file as well as the Linux kernel. Lilo places the boot sector backups in this directory.

/dev - This is a very interesting directory that highlights one important characteristic of the Linux filesystem - everything is a file or a directory. Look through this directory and you should see hda1, hda2 etc, which represent the various partitions on the first master drive of the system. /dev/cdrom and /dev/fd0 represent your CDROM drive and your floppy drive. This may seem strange but it will make sense if you compare the characteristics of files to that of your hardware. Both can be read from and written to. Take /dev/dsp, for instance. This file represents your speaker device. So any data written to this file will be re-directed to your speaker. Try 'cat /etc/lilo.conf > /dev/dsp' and you should hear some sound on the speaker. That's the sound of your lilo.conf file! Similarly, sending data to and reading from /dev/ttyS0 ( COM 1 ) will allow you to
communicate with a device attached there - your modem.

/etc - This directory contains all the configuration files for your system. Your lilo.conf file lies in this directory as does hosts, resolv.conf and fstab. Under this directory will be X11 sub-directory which contains the configuration files for X. More importantly, the /etc/rc.d directory contains the system startup scripts. This is a good directory to backup often. It will definitely save you a lot of re-configuration later if you re-install or lose your current installation.

/home - Linux is a multi-user environment so each user is also assigned a specific directory which is accessible only to them and the system administrator. These are the user home directories, which can be found under /home/username. This directory also contains the user specificsettings for programs like IRC, X etc.

/lib - This contains all the shared libraries that are required by system programs. Windows equivalent to a shared library would be a DLL file.

/lost+found - Linux should always go through a proper shutdown. Sometimes your system might crash or a power failure might take the machine down. Either way, at the next boot, a lengthy filesystem check using fsck will be done. Fsck will go through the system and try to recover any corrupt files that it finds. The result of this recovery operation will be placed in this directory. The files recovered are not likely to be complete or make much sense but there always is a chance that something worthwhile isrecovered.

/mnt - This is a generic mount point under which you mount your filesystems or devices. Mounting is the process by which you make a filesystem available to the system. After mounting your files will be accessible under the mount-point. This directory usually contains mount points or sub-directories where you mount your floppy and your CD. You can also create additional mount-points here if you want. There is no limitation to creating a mount-point anywhere on your system but convention says thatyou do not litter your file system with mount-points.

/opt - This directory contains all the software and add-on packages that are not part of the default installation. Generally you will find KDE and StarOffice here. Again, this directory is not used very often as it'smostly a standard in Unix installations.

/proc - This is a special directory on your system. We have a more detailed article on this one here.

/root - We talked about user home directories earlier and well this one is the home directory of the user root. This is not to be confused with the system root, which is directory at the highest level in the filesystem.

/tmp - This directory contains mostly files that are required temporarily. Many programs use this to create lock files and for temporary storage of data. On some systems, this directory is cleared out at boot or at shutdown.

/usr - This is one of the most important directories in the system as it contains all the user binaries. X and its supporting libraries can be found here. User programs like telnet, ftp etc are also placed here. /usr/doc contains useful system documentation. /usr/src/linux contains thesource code for the Linux kernel.

/var - This directory contains spooling data like mail and also the output from the printer daemon. The system logs are also kept here in
/var/log/messages. You will also find the database for BIND in /var/named and for NIS in /var/yp.

reference:

http://www.freeos.com/articles/3102

http://www.pathname.com/fhs/
posted @ 2006-04-19 02:01 Dedian 阅读(210) | 评论 (0)编辑 收藏
 
I saw this article today, sort of funny, but i believe it is true. Something like idolt customer complained to technical guys. This artical is from CentOS team, one of Linux systems team. I guess there much be many such funny stories in other big companies's (such Microsoft) customer technique support....anyway, I felt that CentOS guy is very patient
 
posted @ 2006-04-19 02:00 Dedian 阅读(206) | 评论 (0)编辑 收藏
 
I have used VSS under windows to control my source code or team's development, so I am thinking to control my Java source code under Linux. Well, CVS is good stuff to apply. My linux system has installed that, plus, Eclipse supports its management. So i don't need know those command line for CVS.
 
Following are my step to use CVS in Eclipse:
1. create the root folder for my CVS modules:
for example: /home/usrname/cvs/CVSROOT
and add a variable environment for CVSROOT in .bashrc script
2. create a folder under CVSROOT for module that to be imported
3. use Eclipse wizard to add CVS repository: start Eclipse: File --> New --> Projects ... --> Checkout Project from CVS --> Create a new repository location --> Enter Repository Location information [Host, Repository Path, User, Password, Connect Type(I use extssh here)] --> if host connected sucessfully, it will show all modules under CVSROOT folder, the empty folder created in step 2 will be seen, select that one, click next to add a new project under your current workspace.
4. if the repository has been created, you can use Eclipse checkout wizard (like step 3) to use existing repository location to select one, and then select visible modules under this location,and then check out as a project in the workspace
5. choose any tag for check out
6. now, these is only a blank project (both client and server) under your workspace, right click project name in Package Explorer --> import... --> File system --> import those source code you want to put into server and check out for client users
7. Synchronize with server (commit source code to server): right click project name --> Team --> Commit... --> edit some scripts for committing..
8. Well, the source code has been in both server and client (under your own workspace folder), for further changes or modifcation of source code, just need synchronize between client and server.
 
reference:
http://www.fluidthoughts.com/howto/cvs/
http://help.eclipse.org/help30/index.jsp?topic=/org.eclipse.platform.doc.user/reference/ref-40a.htm

P.S. for internal in our company, we still use Perforce to control our source code
posted @ 2006-04-19 01:59 Dedian 阅读(169) | 评论 (0)编辑 收藏
 
I am thinking about using some UML tool for my distributed search  engine design. I guess there must be a UML tool for Eclipse which is open source IDE i am using...

Fortunately, I found that UML2 is one of Eclipse projects which should be best to support Eclipse. To install UML2 in Eclipse by update manager, the EMF (Eclipse Modeling Framework) should be installed at first, which is also one of Eclipse projects.

The update site information for EMF:
* Name: EMF Update Manager Site
* URL:    http://download.eclipse.org/tools/emf/updates/site.xml (Releases)
 (or):    http://download.eclipse.org/tools/emf/updates/site-interim.xml (I, M and S Builds)

The update site information for UML2
* Name: UML2 Update Manager Site
* URL: http://download.eclipse.org/tools/uml2/updates/site.xml

references:
http://www.eclipse.org/uml2/
http://www.eclipse.org/emf/
http://www.developer.com/design/article.php/1593811
posted @ 2006-04-19 01:57 Dedian 阅读(452) | 评论 (0)编辑 收藏
仅列出标题
共6页: 上一页 1 2 3 4 5 6 
 
Copyright © Dedian Powered by: 博客园 模板提供:沪江博客