自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Bo Yang's Blog

About the only thing you can't do is ignore him.

  • 博客(365)
  • 资源 (7)
  • 收藏
  • 关注

原创 Dot(.) after the file permission flags in Redhat

Phenomenon:$ rsh coolnjmcl033 'ls -l /opt/cool/tools/lib/COOLvirtenv'ls: cannot access /opt/cool/tools/lib/COOLvirtenv: Permission denied

2011-09-21 10:36:33 692

原创 rup:<servername>: RPC: Program not registered in RHEL6.1

I just installed Redhat Enterprise Linux 6.1 on one HP server. Following error met when rup it on other servers:$rup coolnjmcl033rup:cool

2011-09-20 14:49:26 1790

原创 c++filt

c++filtdecodes (demangles) low-level names into user-level names so that the linker can keep these overloaded functions from clashing.

2011-09-14 11:15:14 5878

原创 RHEL5和RHEL6中的sctp_event_subscribe定义大不同

近来碰到一个关于SCTP的问题:某个产品跑在Monta Vista上,其内核版本号为2.6.21;可每次该产品泡在我们的Red Hat Enterprise Linux 5.5上时,都会报错错误信息如下:^?0 2011-08-16 09:11:57.316267 coolnjm

2011-08-24 14:39:13 1725

原创 Linux Commands For Shared Library Management & Debugging Problem & strace

【声明】:本文内容来自网络,如有侵权请尽快通知本人(发表这篇文章的人肯定不懂中文,哈哈)。原文链接:http://www.cyberciti.biz/tips/linux-shared-library-management.htmlLinux Commands For

2011-08-19 17:07:32 1825

原创 Displacement Activity

你是否有过这样的经历:眼看考试或某个任务、活动的大限将至,自己很是担心,可你却不是在努力准备,而是看电影、玩游戏或者和朋友聊天? 至少对于我,这样的矛盾行为并不罕见。今天才知道,这种行为叫做Displacement Activity,是人和动物身上的一种普遍存在的行为。Dis

2011-08-02 08:54:46 3357 1

原创 选中Excel单元格自动导入多个Excel worksheets

前日完成将多个Excel文件批量导入某个Excel文件中老婆规定的任务后,老婆又提出了新的要求:可以update每个worksheet对导入的worksheets进行排序自动匹配代导入文件的文件名将导入的worksheets中的特定多个单元格(cells)的内容自动填充到某一表格的特定区域本文中用到的Excel文件及VBA宏可以在此处下载。表1  选中的单元格

2011-07-13 09:39:32 1816

原创 将多个Excel文件批量导入某个Excel文件中

这是我老婆提出的一个需求:(1)选中Excel表格中的某些行或列,运行某个Macro,自动根据选中的cells创建新的worksheets,worksheets的名字就是选中的cells的名字。(2)创建新的worksheet的同时,要把某指定目录下与新的worksheet同名的

2011-07-11 15:32:19 4690

原创 Solaris下/usr/lib/secure/0@0.so.1的错误

这两天一直被下面的错误所困扰:AP13: lb -m ccmscell uptime ld.so.1: uname: fatal: /usr/lib/secure/0@0.so.1: open failed: No such file or directoryksh[216]: 4412 Killedld.so.1: uptime: fatal: /usr/lib/secure/0@0.

2011-06-22 17:28:00 886

转载 Common FTP Commands

Basic FTP Commands 原文:http://www.cs.colostate.edu/helpdocs/ftp.htmlCommon FTP Commands ? to request help or information about the FTP commands ascii to se

2011-06-13 15:09:00 565

原创 ksh中包含变量的命令调用

当一个含有变量a的命令存储在某个变量b中时, 利用$($b)时有可能会报错。如下面的代码,有时可以成功执行,有时会发生“ipcs|grep xxx can not be found"的错误。 IFS=""if isLinuxthen IPCSCMD="ipcs"else IPCSCMD="ipcs|grep $LOGNAME"fifor Eachline in

2011-06-03 20:04:00 893

原创 chroot, setuid() & set gid

<br />这篇文章搜集整理了网上chroot, setuid() & set gid相关的文章。Best Practices for UNIX chroot() OperationsHow to break out of a chroot() jailSetuid DemystifidIntroduction to Unix file permissions

2011-06-02 17:33:00 794

转载 Linux下ipcs的10种用法

原文:http://www.thegeekstuff.com/2010/08/ipcs-command-examples/ IPC stands for Inter-process Communication.This technique allows the processes to communicate with each another.Since each process

2011-05-24 16:42:00 5785

原创 如何判断一个(压缩)文件的类型,以及zcat/gzcat

恰似“一师是个好学校”,dd是个好工具——只消用它逐字copy出某个文件第一个block的内容,就可以判断出该文件的类型!!!bjbldd>1> dd if=MMEgolden.tar bs=512 count=1 > dd_tmp1+0 records in1+0 records outbjbldd>> file dd_tmpdd_tmp: USTAR tar archivebjbldd>> dd if=varofvar bs=512 count=1 > dd_tmp

2011-05-20 17:33:00 7704

原创 Perl的library设置

<br />参考链接:http://stackoverflow.com/questions/841785/how-do-i-include-a-perl-module-thats-in-a-different-directoryhttp://stackoverflow.com/questions/185114/how-do-i-use-a-perl-module-in-a-directory-not-in-inc<br /> <br />在Fedora/RHEL/CentOS中,perl 的library默

2011-05-16 16:46:00 3503

原创 yum的proxy设置

<br />方法一:<br />export http_proxy="proxy:portnum" <br />方法二:(http://www.fedoraforum.org/forum/showthread.php?t=742)<br />create the following files in /etc/profile.d, and then this will work in *any* shell for *any* user of the system<br /><br />#proxy.sh

2011-05-16 15:03:00 5203

原创 How to list processes attached to a shared memory segment in linux?

本文整理自网络,参考网页(references):http://stackoverflow.com/questions/5658568/how-to-list-processes-attached-to-a-shared-memory-segment-in-linuxhttp://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=%2Frzahz%2Fipcs.htm[Question]:How do I determine wha

2011-05-13 15:16:00 1006

原创 Shell浮点数运算

<br />Shell本身不支持浮点数运算,(())之类的数学运算符只能进行整数运算。要想在shell中运算浮点数,只能借助于bc, Awk或者Perl。 如<br />a=0.1b=0.2c=$(echo "$a+$b" | bc -l) <br />或者<br />perl -e "print STDOUT $a + $b;" <br /> <br />需要注意的是,如果数学表达式中有负数,则必须确保运算符(+ - * /)与其前后的表达式之间至少有一空格。如:<br />[bonn@bonn

2011-05-03 22:27:00 3319

原创 groff初体验

“所见即所得(WYSIWYG,What you see is what you get)”编辑器可以使简单的工作更简单,却无法完成某些复杂的工作。nroff/troff是UNIX下经典的typesetting工具,groff是GNU的*roff实现,并对troff的功能进行了增强。与LaTeX相比,体积较小,且大多为*nix自带,使用较为方便。虽说TeX为Donald Knuth所创,排版效果非常好,但体积相当庞大(安装完差不多3.5GB),而且通篇的/xx语法确实把我雷倒了——还是先由groff入手吧。已

2011-04-20 22:18:00 2656 1

转载 How to remove space or newline characters from a string?

<br />[原文]:http://mydebian.blogdns.org/?p=144<br /> <br /> How to remove space or newline characters from a string.<br />Well, let me first explain that in Bash a set of words separated by one or more space characters is a very common thing because it is v

2011-04-18 17:10:00 698

原创 “渐冻症”病人去世前用脚贡献了最后一个补丁

<br />早晨看到这样一则消息:http://linux.solidot.org/linux/11/04/11/038257.shtml。<br /> <br />肌肉萎缩性侧索硬化症(ALC)是一种渐进和致命的神经退行性疾病,病人的肌肉会逐渐衰弱、萎缩,丧失运动能力。Adrian Hands是一位ALC病人,在去世前三天他贡献了最后一个补丁,修正了Gnome中一个有9年历史的bug。虽然,当时他已经失去了运动能力,双手残废无法使用键盘。他是用脚在一个莫尔斯码键盘模拟器上输入代码的。<br /> <b

2011-04-12 09:39:00 1501

原创 QEMU常用命令

Boot from an ISO image: qemu -cdrom image.isoCreate new hard disk for a VM: qemu-img create disk.bin 2GInstall OS into the virtual disk: qemu -hda disk.bin -cdrom image.isoBoot VM from virtual disk: qemu disk.bin

2011-04-05 20:09:00 2679

原创 Excel文件转换为XML以及Linux文件编码格式转换

今天需要将多个Excel文档转换为XML格式,本打算用MS Office自带的另存为XML文件的功能,结果转换成MS Office2003 XML之后的文件就是一坨屎!Office 2007自带的XML文档转换的功能也TMD超级繁琐,根据帮助手册自己建了.xsd文件导入到Exce

2011-03-21 22:52:00 4275 2

转载 Linux TimeZone设置

<br />最近遇到一个有关timezone的问题:有些application需要环境变量TZ,可是我们刚刚装好的RHEL没有设置TZ,而我又没有root权限去改,查了半天资料,发现所有对timezone的改动都需要重启机器才能生效,没有办法即时生效……Anyway,还是把查到的资料罗列在下面,以备将来用到。Linux Clock ConfigurationHowto: Linux server change or setup the timezone<br /> <br /> <br />原文:http:

2011-03-17 10:49:00 8486

原创 在/etc/hosts中定义Linux的hostname

<br />今天碰到这样一个问题:一个程序在刚刚装好的Linux server上获取IP地址时永远都是0x7f000001。一开始没有注意,后来仔细一想,0x7f000001不正好就是127.0.0.1嘛!有同事查了一下/etc/hosts,发现在该文件中有这样一行:<br />127.0.0.1 mylinuxsvr localhost.localhost.localdomain localhost <br />其中,mylinuxsvr是这个server的名字。难怪每次都只能获取到127.0

2011-03-10 14:41:00 1533

原创 Plan9 Files -- Notes of Introduction to OS Abstractions Using Plan 9 from Bell Labs(IV)

<br /> 2.1 Input/OutputMost of the times, standard input, standard output, and standard error go to /dev/cons. This file represents the console for your program.It is the interface to use the device that is known as the console, which corresponds to your t

2011-03-07 09:23:00 749

转载 Modifying Linux Kernel Parameters

<br />本文转载自:http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?topic=/com.ibm.db2.udb.uprun.doc/doc/t0008238.htm。<br /> <br />另外,http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/index.jsp?topic=/com.ibm.db2.luw.qb.server.doc/doc/t0008238.html

2011-03-04 09:11:00 1069

转载 C/C++ 位域(Bit Fields)

<br />今天中午与同事讨论位域的问题,越讨论越迷糊,最终还是求救Google,找到一些文章,把比较好两篇的转载于下。<br /> <br /> <br /> <br />1. 原文:http://www.cs.cf.ac.uk/Dave/C/node13.html<br /> <br /><br /> We have seen how pointers give us control over low level memory operations.<br />Many programs (e.g. s

2011-03-03 13:52:00 1565

原创 regexp -line逐行匹配

<br />以前没注意到Tcl/Tk的正则表达式命令regexp还有一个逐行匹配的选项-line(其实是三个-line, -lineanchor和-linestop,第一个是后两者的综合),因此碰到需要在多行内容中匹配某一行的中的某字符(串)是总是不得不用AWK,PERL等其他工具,现在有了-line,直接regexp -line <pattern> <var>就搞定了!

2011-03-02 09:24:00 1491

原创 Plan9 Environment Variables -- Notes of Introduction to OS Abstractions Using Plan 9 from Bell Labs(III)

Theinterface for using environment variables in Plan 9 is a fileinterface. All interfaces of environment variables can be foundunder /env.Toobtain the value for a environment variable, from a C program, we canuse the getenvsystem call. If the

2011-02-27 23:28:00 614

原创 Notes of Introduction to OS Abstractions Using Plan 9 from Bell Labs(II)

<br /> <!-- @page { margin: 0.79in } P { margin-bottom: 0.08in } --><br />man:section 1 is for commands, section 8 is for commandsnot commonly used by users (i.e., they are intended to administer thesystem), and<br />section2 i

2011-02-26 18:48:00 564

原创 Plan9自动获取IP地址

Plan 9的Manual和Wiki上面关于网络配置的介绍,都是以server为原型,前提条件是这些server都会有固定的IP地址,集成DHCP、DNS乃至自己的子网。可我的Plan 9是在VirtualBox4.0的虚拟机上装的,Host是Fedora 14,通过家用无线路由器上网,IP地址动态获取,不可能有固定IP和固定的DNS、Gateway等等。因此http://cm.bell-labs.com/wiki/plan9/Network_configuration/index.html和http://

2011-02-24 20:54:00 1940

原创 Plan 9安装Go

I、安装python和mercurial(hg)首先是在term中输入9fs sources, 然后cd到/n/sources/contrib下,参照Plan 9的contrib index,找到"From fgb's contrib"的python用户名。 % 9fs sources% /n/sources/contrib/fgb/root/rc/bin/contrib/install fgb/contrib% contrib/install -f bichued/python% contri

2011-02-21 22:24:00 2055

原创 Plan 9中使用Abaco

<br />Abaco是Plan 9的一个非常原始的浏览器,要想使用它,必须首先按照下列步骤:term%  webcookies (可选,如果webfs可以直接运行的话,不必运行webcookies)term%  webfsterm%  abaco<br />如果不启动webfs的话,很可能你会遇到这样的错误:<br />term% abaco*abaco: can't initialize webfs: '/mnt/web/ctl' does not exist*

2011-02-21 21:07:00 838

原创 最后的晚餐

最近关于乔帮主的消息不断,先是说生命垂危,只剩六周时间,后来一大群人出来澄清,最终帮主还是以实际行动参加奥巴马的科技界人士的晚宴粉碎了谣言。可喜的是关于那个晚宴只有一张图片,图片中只有帮主的背影,没有正面,但从干枯的手臂上应该能看出帮主的身体状况非常不佳。上图的文字是http://searchengineland.com/的注释,根据《华尔街时报》的报道显示,上图“No Idea”的女士为KPCB合伙人John Doerr的太太, Ann Doerr; 而那位“No Idea”的男士为奥巴马的白宫高级顾问V

2011-02-19 09:52:00 779

原创 xterm中删除键无法使用

一个困扰了我很久得问题:xterm中或键无法删除敲错的字符,只能使用Ctrl+H或者VI删除模式,很不方便。操作系统是Red Hat Enterprise Linux 5.5。Google之后发现这个问题比较普遍,但是很多建议都不能解决问题。最终在http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1298028466012+28353475&threadId=1158640发现了一个可行的办法:stty

2011-02-18 19:32:00 7501

转载 9vx tutorial: running a cpu server from kfs (RFC)

本文是yiyus发布在9fans上的一篇教程。文中用到的9vx是yiyus维护的分支:http://bytebucket.org/yiyus/vx32/overview。根据yiyus在9fans中的说明,他的9vx分支是从ron的分支上更改的。vx32/9vx的创始人Russ Cox最近在9fans中声明他本人已经放弃了对9vx的维护,准备将所有权限转交给ron minnich(八卦一下:Russ Cox现在是Google Go语言的核心成员之一,正与Rob Pike,Ken Tompson等原plan9

2011-02-16 22:57:00 1244

原创 Tools for Manipulating Object Files

There are a number of tools available on Unix systems to help you understand and manipulate object files. In particular, the GNU binutils package is especially helpful and runs on every Unix platform.AR : Creates static libraries, and inserts, deletes, lis

2011-01-19 23:11:00 553

转载 Commenting out a range of lines in VIM

Reference: http://vim.wikia.com/wiki/Commenting_out_a_range_of_linesA -VISUAL BLOCK- can also be used to comment out lines. Start by typing "Ctrl-V" and then highlight a strip downwards by hitting "down/j". After that, type capital "I" to insert for all hi

2011-01-18 14:38:00 543

原创 祝福乔布斯

这些天我一直纳闷,1月份都过了一多半了,为什么一年一度的Apple开发者大会迟迟没有消息呢? 难道就拿前几天的Verizon版iPhone打发我们了?那我苦苦等待的iPad 2怎么办呢?直到刚刚看到Steve Jobs再次休病假的消息,我才明白为什么Apple在今年的1月份没有乔布斯的新品发布个人秀。这一关,老乔恐怕很难过去了。尽管我是衷心的希望他能继续带领Apple给我们带来更多的划时代的产品。一年多前刚刚换了肝脏,6年前罹患胰腺癌后死里逃生,佛祖已经对他不薄了——也许佛祖也是想借老乔来普渡我们的:kee

2011-01-17 23:28:00 581

将多个Excel文件批量导入某个Excel文件中去的VBA宏

压缩文件中包括一个包含宏代码的Excel文件Sheet Macros.xls以及其他四个测试文件工作表 1~4。 宏的功能为(1)选中Excel表格中的某些行或列,运行某个Macro,自动根据选中的cells创建新的worksheets,worksheets的名字就是选中的cells的名字。(2)创建新的worksheet的同时,要把某指定目录下与新的worksheet同名的Excel文件的内容copy到新的worksheet中去。

2011-07-11

Network Programming with Perl

Perl网络编程的经典书籍,浅显易懂,值得推荐

2010-06-23

Exploring Expect(英文完全版)

Exploring Expect by Don Libes Publisher: O'Reilly Media, Inc. Pub Date: December 1, 1994 Print ISBN-10: 1-565-92090-2 Print ISBN-13: 978-1-565-92090-3 Pages: 608

2009-09-29

Sun云计算平台-Sun Cloud Computing

本文(Sun Cloud Computing)详细介绍了Sun的云计算平台,对于云计算平台的学习非常有帮助。

2009-08-18

面向对象数据库

面向对象数据库系统及其应用

2007-11-14

Matlab与VC混合编程

利用VC调用Matlab C语言接口,实现VC和Matlab的混合编程。

2007-05-24

空空如也

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

TA关注的人

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