Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Tuesday, December 23, 2008

Mirroring files via FTP

대용량 데이터베이스를 다운 받고, Up-to-date 로 유지하기 위해서 Database mirroring이 필요하다.

이때, lftp를 쓰면 간편하게 작업을 수행할 수 있다.

예로, NCBI의 GEO DB 중 SeriesMatrix 폴더 하의 파일들을 mirroring하고 싶으면


>lftp ftp.ncbi.nlm.nih.gov/pub/geo/DATA/SeriesMatrix
>mirror

Thursday, March 13, 2008

Remove ^M character

When you edit text file created in Windows system,
you sometimes encounter '^M' character at the end of each line
and found you can't remove '^M' because you can't type '^M' character.

The reason why those files contain ^M character is that the new line
character in Windows system '\r\n' while it's '\n' in unix system.

^M can be removed in VIM with below command
( ^M could be typed by cntl+v+enter )


:%s/^M//g

Tuesday, March 11, 2008

VIM Configuration

Recently , I installed Ubuntu on a computer in the lab.
It's been a long time to handle linux configuration files for me.
When I use VI, my favorite text editor, I encountered unusual
VI environment where I can't use cursor keys to move around
the editor. Moreover there's no auto highlighting on syntax
and no auto indentation.

Yes, I needed to configure VIM and I did !
Followings are what I did for make them work in VIM.

1. Make cursor keys work !
  • First, download vim-full !
  • Type ' set nocp ' in command mode of VIM for temporal or in vimrc ( .vimrc for users ) file for permanent setting
2. Auto indentation
  • Insert ' set autoindent ' line in vimrc file

3. Auto highlighting
  • Insert ' syntax on ' line in vimrc file

4. Etc.
  • Rather than what I described above, there are more configuration you can change in configuration file (vimrc file ).
  • Each user can define own configuration file with .vimrc at the home directory

Monday, November 12, 2007

BioLinux course

URL : http://genome.ku.dk/courses/biolinux/
University of cofenhagen에서 개설된 course로
Bioinformatics 연구 시, OS로 널리 쓰이는 Linux
의 이용과 다양한 bioinformatics approache 이용을
목표로 함.