2010年12月6日 星期一

Environment

1. u can set the perl lib enoment using the perl Using the PERL5LIB
~/.bashrc
{{{
# For perl lib
export PERL5LIB=/home/Andy/GRC/MyProgram/perlLib
}}}
* Look ~/perlLib content
{{{
[Andy@blast2 fasta]$ ls /home/Andy/GRC/MyProgram/perlLib
Init_V1.pm LineFunction_V1.pm
}}}
* Usage perl selft package
{{{
require "Init_V1.pm";
require "LineFunction_V1.pm";

}}}

2010年11月30日 星期二

Bash and bash Programming

1. Stadin using the file
* using the hyphen (-) reresent input file
{{{
cat $RMDEPTHFILE |
# Delete the header and print repeat name and depeth fields
awk '{
if (NR > 1) print ($10, $NF);
}' |
# Using the stadin in symbol mini
TwoColumnsStatistic.pl -
}}}

2010年10月28日 星期四

Cooking Content

---------------------------------------
紅豆湯
a. 紅豆先泡一個晚上
b. 一鍋看比例放水, 在放入電鍋
c. 最後在加糖

-------------------------------------
Lemon juice
a. 一顆 lemon, 一升的水
b. 在放水前先加糖, 使 lemon 和糖 1:1

--------------------------------------
potato 乳酪
0. potato 削皮
a. potato 切丁
b. 放入 microware 大約 6 minutes, 能分成interspre 2 ms
c. 過濾掉水
c. 最後將乳酪片切成小片放入 potato
d. micro 30 second

---------------------------------------
烤 omit
a. 將

2010年10月18日 星期一

key generate SSH

LOOK:
http://plog.longwin.com.tw/post/1/293


1。创建了用户abc
2.#su - abc
3.#mkdir .ssh
4.#chmod 700 .ssh
5.#ssh-keygen -t rsa
6.#cd .ssh
7.#cat ./id_rsa.pub >> authorized_keys
8.#chmod 644 ./authorized_keys

2010年10月12日 星期二

Reference

1. good content
http://www.perlmeme.org/howtos/using_perl/dereferencing.html



2. orielly book
http://oreilly.com/catalog/advperl/excerpt/ch01.html

3. office good
http://perldoc.perl.org/perlref.html

Object

1. network tutourial

http://www.tutorialspoint.com/perl/perl_oo_perl.htm

http://www.perl.com/pub/2001/11/07/ooperl.html

2. book
http://www.tutorialspoint.com/perl/perl_oo_perl.htm

2010年10月11日 星期一

File exist

File Checking

The -e part is the existence test. After that we have a space, followed by the file we want to test. As in the other sections, we could also use a variable to hold the file name:

$neededfile="myfile.cgi";
if (-e $neededfile)
{
#proceed with your code
}


Reference:
http://www.pageresource.com/cgirec/ptut17.htm