自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 资源 (1)
  • 收藏
  • 关注

原创 [转]sed 学习笔记

       【转载自】http://bbs.chinaunix.net/viewthread.php?tid=166936 一. 替换1.神奇变换(y命令的使用)sed y/ori_letter_list/target_letter_list/ filename  cat filename1234

2009-10-09 15:39:00 665

转载 Linux at命令定时关机

From: http://www.pcstu.com/system/Linux/20090804/65873.htmlFrom: http://blog.csdn.net/xiaoming444/archive/2009/03/06/3963425.aspx  本文介绍下linux at命令的另一个作用:linux下使用linux at命令定时关机。 首先创建一个文件,写入:

2009-10-30 12:55:00 2313

转载 随机数产生

1.有一个随机数发生器,能以概率p生成0,以概率1-p生成1,问如何做一个随机数发生器使得生成0和1的概率相等。int f2(){ int a, b; do { a = f(); b = f(); }while(a == b); return (a - b + 1) / 2;}  2.用上面那个生成0和1的概率相等的随机数发生器,怎样

2009-10-29 20:25:00 873

转载 [转]install Python eggs

From: http://maomaode.javaeye.com/blog/102014 install Python eggs安装package真的是每天都会碰到事情, 而且从来都不是一件简单的事情因为你安装的包, 会依赖其他的包, 这种依赖关系, 盘根错节, Maven是Java里安装管理软件, 他会帮助你找到所依赖的包.其他语言,比如, php, ruby, perl等 也有类

2009-10-28 15:33:00 479

转载 [转]一个类似于watch命令的小脚本

From: http://roclinux.cn/?p=1631 看IBM developeworks的一篇文章,里面讲解了watch命令,这个命令大概的作用就是每隔特定时间运行一次用户设定的命令。在其文章中,还相应的给出了一个精简版的simplewatch.sh的实现: 大家可以试着在自己的Linux上运行下,还是很有用的一个小工具。over~

2009-10-23 15:22:00 774

转载 Sort and Search in C and C++

Sorting in C++ VS. Chttp://theory.stanford.edu/~amitp/rants/c++-vs-c/DataTypeC(library)C(hand-coded)NumericalRecipesRatio1C++(C array)C++(vector class)Ratio2int5.90-5.92 1.54-1.6

2009-10-21 10:01:00 650

原创 Ubunt修改源

方法一:System--->Administration--->"Software Sources"在"Ubuntu Software"标签下点击"Download from:"选择“Other...",在跳出窗口中选择"Select Best Server",测速完成后会自动标记最快的源这时选择"Chose Server"。 方法二:1、首先备份sources.lis

2009-10-21 09:43:00 522

原创 Ubuntu常用安装

Ubuntu常用安装 Python中的easy_install 安装小技巧Python中的easy_install安装小技巧2009-09-30 16:47Python中的easy_install工具很爽,它的作用类似于Php中的pear,或者Ruby中的gem,或者Perl中的cpan。如果想使用easy_install工具,可能需要先安装setuptools,不过更

2009-10-20 00:08:00 1342

原创 清空输出缓冲区

下面的代码动态刷新当前进度: #include #include using namespace std;int main(){ int i = 0; printf("Progress ... %2d",i); for(i = 0; i < 100; i++){ printf("/b/b"); printf("%2d",i); f

2009-10-19 22:48:00 1127

转载 nanosleep is better than sleep and usleep

From: http://cc.byexamples.com/20070525/nanosleep-is-better-than-sleep-and-usleep/ Don’t know whether you aware of the example code at Tap the interrupt signal, I am using sleep(1) within endless

2009-10-19 22:12:00 741

转载 Linux信号

From: http://cc.byexamples.com/20070520/tap-the-interrupt-signal/ When you hit control+c, you are actually send a SIGINT ( Interrupt signal ) to your program. By default, your program will be term

2009-10-19 21:50:00 536

转载 [转]文件压缩tar

http://www.21andy.com/blog/20060820/389.htmllinux解压 tar命令tar命令tar [-cxtzjvfpPN] 文件与目录 .... 参数: -c :建立一个压缩文件的参数指令(create 的意思); -x :解开一个压缩文件的参数指令! -t :查看 tarfile 里面的文件!

2009-10-12 21:47:00 778

转载 [转]C/C++ 数据对齐知识摘要

#include using std::cout;using std::endl;#include using std::setw;using std::left;// 数据对齐// 环境: windows 2003 + Intel Celeron CPU 2.53GHz + VC6.0// 资源参考:《Linux 内核设计与实现 第二版》ISBN:7-11

2009-10-07 11:29:00 727

JenaDoc

HP的Jena是在语义网领域开发应用的工具包。此chm电子书是从jena.sourceforge.net下载API页面制作而成,目的是为了方便查找。

2008-08-08

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除