fuopen

 

2013年3月31日

Using Mathematica to create chromosome ideogram,a fine atlas of selection distribution--figure

摘要: 阅读全文

posted @ 2013-03-31 10:23 fuopen 阅读(135) 评论(0) 推荐(0)

Using Mathematica to plot chromosome ideogram--code

该文被密码保护。 阅读全文

posted @ 2013-03-31 10:16 fuopen 阅读(0) 评论(0) 推荐(0)

2012年8月28日

R 字符串处理(2)

摘要: R之字符串相关1.strsplit(m,n) 分割字符串:将字符串m,在含有字符n的地方进行分割 如:strsplit("abcdef","e"):结果为:[[1]][1] "abcd" "f"strsplit(c("ab","cde","mnd"),"e") 结果为:[[1]][1] "ab"[[2]][1] "cd"[[3]][1] "mnd"2.substr(m,inde 阅读全文

posted @ 2012-08-28 12:54 fuopen 阅读(445) 评论(0) 推荐(0)

R 字符串处理 转自http://blog.csdn.net/sophiazhou/article/details/7602029

摘要: R之字符串相关1.strsplit(m,n) 分割字符串:将字符串m,在含有字符n的地方进行分割 如:strsplit("abcdef","e"):结果为:[[1]][1] "abcd" "f"strsplit(c("ab","cde","mnd"),"e") 结果为:[[1]][1] "ab"[[2]][1] "cd"[[3]][1] "mnd"2.substr(m,inde 阅读全文

posted @ 2012-08-28 12:46 fuopen 阅读(136) 评论(0) 推荐(0)

shell 脚本的字符串比较与截取

摘要: Linux 的字符串截取很有用。有八种方法。假设有变量 var=http://www.hao.com/123.htm..一 # 号截取,删除左边字符,保留右边字符。echo ${var#*//}其中 var 是变量名,# 号是运算符,*// 表示从左边开始删除第一个 // 号及左边的所有字符即删除 http://结果是 :www.hao.com/123.htm ..二 ## 号截取,删除左边字符,保留右边字符。echo ${var##*/}##*/ 表示从左边开始删除最后(最右边)一个 / 号及左边的所有字符即删除http://www.hao.com/结果是 123.htm..三 %号截取,删 阅读全文

posted @ 2012-08-28 09:53 fuopen 阅读(272) 评论(0) 推荐(0)

2012年5月13日

ubuntu 12.04 显卡安装

摘要: sudosh/usr/share/ati/fglrx-uninstall.shsudoapt-getremove--purgefglrxfglrx_*fglrx-amdcccle*fglrx-dev*到AMD网站下载相应显卡的驱动:http://support.amd.com/us/gpudownload/Pages/index.aspx到英文官网下载的一般比中文的新。sudoapt-getinstallbuild-essentialcdbsfakerootdh-makedebhelperdebconflibstdc++6dkmslibqtgui4wgetexecstacklibelfg0dh 阅读全文

posted @ 2012-05-13 19:17 fuopen 阅读(391) 评论(0) 推荐(0)

转:修改Ubuntu MAC地址(临时修改)

摘要: 1、停用网卡:sudo ifconfig eth0 down2、修改MAC地址:sudo ifconfig eth0 hw ether MAC上面命令中的MAC就是要将要修改成的地址,格式为:0a:1b:2c:3d:4c:5f3、重新起用网卡:sudo ifconfig eth0 up4、重启系统的网络服务:sudo /etc/init.d/networking restart 阅读全文

posted @ 2012-05-13 10:46 fuopen 阅读(408) 评论(0) 推荐(0)

2012年5月3日

linux 下 ssh 代理 firefox

摘要: ow all you need to do is login your remote computer that you have access to with SSH then issue this 1 command:ssh -D 9999 -C me@ipaddress.comThe -D switch - Specifies a local “dynamic” application-level port forwarding. We are also adding the -C switch for compression.Next we need to put the settin 阅读全文

posted @ 2012-05-03 09:10 fuopen 阅读(188) 评论(0) 推荐(0)

2012年4月23日

C语言函数textcolor

摘要: 函数名: textcolor 功 能: 在文本模式中选择新的字符颜色 用 法: void textcolor(int newcolor); 参数说明:其中参数newcolor为要设置的颜色,它的取值可以是下面的符号常量: BLACKBLUEGREENCYANREDMAGENTABROWNLIGHTGRAYDARKGRAYLIGHTBLUELIGHTGREENLIGHTCYANLIGHTREDLIGHTMAGENTAYELLOWWHITE 程序例1:(一个很经典的程序例程) #include <conio.h> int main(void) { int i, j; clrsc... 阅读全文

posted @ 2012-04-23 11:19 fuopen 阅读(1518) 评论(0) 推荐(0)

2012年4月17日

在unix/linux下对目录的一个操作

摘要: 最近老板要求把之前做Graduate procruste analysis的代码update一下,顺便就把之前对linux系统下文件目录的操作重新整理了,根据目录是否存在,去生成或者读取目录。源代码如下://FileSys.h#ifndef _FILESYS_H_#define _FILESYS_H_#include<dirent.h>#include<cstdio>#include<cstdlib>#include<cstring>#include<errno.h>#include<strings.h>#include& 阅读全文

posted @ 2012-04-17 09:27 fuopen 阅读(167) 评论(0) 推荐(0)

导航