Linux has rdesktop utility.
It is a client for remote desktop protocol (RDP), used in a number of Microsoft products including Windows NT Terminal Server, Windows 2000 Server, Windows XP and Windows 2003 Server.
You do not need to install VNC server.
All you need is rdesktop client on Linux or BSD workstation.

Install rdesktop
$ apt-get install rdesktop

Then,
connect to Windows server called vista.postech.ac.kr, type :

$ rdesktop vista.postech.ac.kr
 
Programming/Python | Posted by 알 수 없는 사용자 2008. 1. 11. 16:47

regular expression

Simple Patterns

  • metacharacters :
    • .  ^  $  *  +  ?  {  [  ]  \  |  (  )
  • [abc] = [a-c] : will match any of the characters "a", "b" or "c"
  • metacharacters are not active inside classes.
    • [abc$] : will match any of the characters of "a", "b", "c" or "$"
    • "$" is usually a metacharacter, but inside a character class it's stripped of its special nature.
  • not within the range-- complementing
    • [^5] : will match any character except "5"
  • .
    • match anything except a newline character
  • "\" is used to escape all the metacharactes so you can still match them in patterns
    • \[ or \\ : match "[" or "\"
  • \d = [0-9]
    • match any decimal digit
  • \D = [^0-9]
    • match any non-digit character
  • \s = [\t\n\r\f\v]
    • match nay whitespace character
  • \S = [^\t\n\r\f\v]
    • match any non-whitespace character
  • \w = [a-zA-Z0-9_]
    • match any alphanumeric character
  • \W = [^a-zA-Z0-9_]
    • match any non-alphanumeric character


Programming/Python | Posted by 알 수 없는 사용자 2008. 1. 3. 23:28

connect to DB in python

import MySQLdb

# Create a connection object and create a cursor
Con = MySQLdb.Connect ( host = "kle.postech.ac.kr", user="joe", passwd = "secrete", db = "onto_web" )
Cursor = Con.cursor ()

#Make SQL string and execute it
sql = "show tables"
Cursor.execute ( sql )

#Fetch all results from the cursor into a sequence and close the connection
Results = Cursor.fetchall ()
Con.close ()
Linux & Ubuntu/Linux tips | Posted by 알 수 없는 사용자 2007. 12. 27. 22:02

Archiving with Tar

Archiving with Tar

Tar files place several files or the contents of a directory or directories in one file. This is a good way to create backups and archives. Usually, tar files end with the .tar extension.

To create a tar file, type:

tar -cvf filename.tar files/directories

In this example, filename.tar represents the file you are creating and files/directories represents the files or directories you want to put in the new file.

To extract the contents of a tar file, type:
tar -xvf foo.tar

This command does not remove the .tar file, but it places copies of the .tar contents in the current working directory.

The tar command does not compress files automatically. You can compress tar files with:

tar -czvf foo.tar

Compressed tar files are conventionally given the extension .tgz and are compressed with gzip.

To expand a compressed tar file type:

create:

tar -cvf mystuff.tar mystuff/
tar -czvf mystuff.tgz mystuff/

extracting:

tar -xvf mystuff.tar
tar -xzvf mystuff.tgz

testing/viewing:

tar -tvf mystuff.tar
tar -tzvf mystuff.tgz

Note that .tgz is the same thing as .tar.gz
Tar "tars up" a bunch of files into one "tar-file"
gzip is compression, but only works on one file, so the entire "tarfile" is compressed.

tar xvf **.tar.tar

Linux & Ubuntu/Linux tips | Posted by 알 수 없는 사용자 2007. 12. 26. 11:26

how to check folder size

$ du -hs /path/to/directory
Linux & Ubuntu/Linux tips | Posted by 알 수 없는 사용자 2007. 12. 11. 20:48

vi: search and replace

Vi: Search and Replace

Change to normal mode with <ESC>.

Search (Wraped around at end of file):

  Search STRING forward :   / STRING.
  Search STRING backward:   ? STRING.

  Repeat search:   n
  Repeat search in opposite direction:  N  (SHIFT-n)

Replace: Same as with sed, Replace OLD with NEW:
 
 First occurrence on current line:      :s/OLD/NEW
  
 Globally (all) on current line:        :s/OLD/NEW/g 

 Between two lines #,#:                 :#,#s/OLD/NEW/g
  
 Every occurrence in file:              :%s/OLD/NEW/g 
Linux & Ubuntu/Linux tips | Posted by 알 수 없는 사용자 2007. 12. 11. 09:34

[linux]check and kill all process of certain user

check all process of certain user :


$ top -u johndoe
OR
$ top -u 500
OR
$ top -U johndoe








kill all process of certain user:
kill -9 `ps -u <username> -o "pid="`

Linux & Ubuntu/ubuntu | Posted by 알 수 없는 사용자 2007. 12. 11. 07:19

update VMWARE in Ubuntu 7.10

After update the ubuntu to version 7.10,
get some trouble to continue to run VMWARE.

Steps to solve :
1. sudo vmware-config.pl
.....
ERROR :
location of the directory of C header files

METHOD to solve :
sudo apt-get install linux-headers-$(uname -r)

2. Next ERROR :

make[2]: *** [/tmp/vmware-config0/vmmon-only/linux/driver.o] Error 1
make[1]: *** [_module_/tmp/vmware-config0/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.12-9-amd64-generic'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config0/vmmon-only'
Unable to build the vmmon module.

For more information on how to troubleshoot module-related problems, please
visit our Web site at "http://www.vmware.com/download/modules/modules.ht ml" and
"http://www.vmware.com/support/reference/linux/pre built_modules_linux.html".

Execution aborted.


METHOD to solve :
from web :
What version you are installing? With 5.0 you need to apply the any-any-update94 patch and at 5.5 you should have no problems.

what I try :
download vmware-any-any-update115.tar.gz
and install it

after install it, run vmware-config.pl
this time, it succeed!


Programming/Python | Posted by 알 수 없는 사용자 2007. 12. 4. 09:10

python




From www.python.or.kr
( These are PDF files. )

1. 개요
2. 파이썬 기초
3. while문
4. list, for문
5. tuples
6. functions
7. dictionary
8. files
9. exceptions
10. classes
11. module
12. string
13. regular expression
14. Tkinter GUI
15. 수치연산 모듈
16. Internet Programming

카테고리 없음 | Posted by 알 수 없는 사용자 2007. 11. 29. 16:18

literature mining

Scientific Literature Mining (LitMiner)

Information Analysis and Retrieval

Scientific Literature Mining (LitMiner)

How can scientific researchers hope to know about all of the latest advances and new discoveries in their field, given that more than 40,000 scholarly articles are published in the scientific literature every month? How can they be sure of finding all of the relevant knowledge “hidden” in journal articles?

Even with the advent of massive numerical and structural databases, the scientific literature still holds the newest information and the intelligence surrounding the data. The problem is that researchers cannot hope to read all the articles relevant to their field of study if they are also to conduct research.

In response to this pressing challenge, the NRC Institute for Information Technology (NRC-IIT), in collaboration with the NRC Institute for Biological Sciences (NRC-IBS), the Canada Institute for Scientific and Technical Information (CISTI), the Samuel Lunenfeld Institute and Blueprint International, is developing a unified collection of text and language processing tools to solve the real information needs of genomic and proteomic scientists.

In the short-term, the goal is to save researchers time by letting computers assume some of the tasks. In the longer term, the goal is to support hypothesis formation in ways that are not possible with the current organization of the literature.

The LitMiner project is currently in its first stage, which is to integrate several existing text tools into a proof-of-concept prototype. More elaborate scenarios of use will be possible from that prototype, which will ultimately lead to more useful systems.

The research is being conducted in both in text processing and bio-informatics. Most of the tools being combined in LitMiner are machine learning, information retrieval or text mining algorithms, either new or based on novel modifications of existing algorithms.

While the application to the scientific literature is driving the further development of these algorithms, the research is important in its own right.