自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

BPC's Domain

A Geek's Perspective On Life...

  • 博客(31)
  • 资源 (4)
  • 收藏
  • 关注

原创 ubuntu 10.04 笔记~

一。ubuntu 添加中文输入法英文版ubuntu 10.04默认安装了ibus只要敲下面命令就能装拼音输入法了sudo apt-get install ibus ibus-pinyin python-dbus 要开机自动启动ibus系统-首选项-启动应用程序添加启动/usr/bin/ibus-daemon  二。添加compizconfig桌面效果管理器

2010-04-30 22:54:00 1351 1

原创 禁用SELinux

禁用SELinux修改/etc/selinux/config将SELINUX=enforcing改为SELINUX=disabled反之启用 得重启~

2010-04-30 15:52:00 597

原创 查看系统中安装了哪些shell

more /etc/shells

2010-04-30 15:40:00 1046

原创 fedora下安装mplayer

 转载本站文章请注明,作者:jean本文连接http://www.zhangyiqun.net/435.html参考了不知名作者的安装步骤,编译安装时根据MPlayer v1.0rc2的./configure –help做了相应修改。下面是很黄很暴力的效果图(一) 下载的相关包下载路径:http://www.mplayerhq.hu/MPlayer/releases

2010-04-30 09:51:00 790

转载 在NS2中用GDB来调试

 原文地址:http://elennatuzi.spaces.live.com/blog/cns!1A9FD94426AD53B!359.entry 我想对于用NS来仿真的人来说,很重要的一个问题就是调试,因为并没有像VC那样方便的集成的调试环境。《NS与网络模拟》的书中介绍了tcl debug和KDevelop调试的方法,这里主要介绍gdb调试的方法。因为偶个人第一次写ns代

2010-04-29 16:56:00 3056 2

转载 理解NS2中Packet的包头

理解NS2中Packet的包头原帖:http://blog.csdn.net/lights_joy/archive/2007/08/16/1746949.aspx  ns2中的数据包全部是由Packet进行表示的,当我们需要创建一个新的数据包时,就调用Packet::alloc方法,下面看看Packet::alloc都做了什么:inline Packet* Packet::

2010-04-29 16:27:00 1412

转载 C语言字符串函数大全(全27个函数)

1.函数名: stpcpy 功  能: 拷贝一个字符串到另一个 用  法: char *stpcpy(char *destin, char *source); 程序例: #include  #include  int main(void) {    char string[10];    char *str1 = "abcdefghi";    stpcpy(string, str1); 

2010-04-27 15:08:00 2817

转载 linux下的virtualbox共享文件夹

   鉴于支付宝等服务无视我们Linux用户的存在,没办法,那只好在Linux上用VirtualBox虚拟一个Windows系统了。系统装好了,在日常使用过程中,往往要从VirtualBox的客户机(guest system)中使用主机(host system)里面的文件,那么通过共享文件夹的方式可以达成此目的。      我在这里写了个图文教程,说明设置过程,希望对大家有所帮助。(注

2010-04-27 14:59:00 5415

原创 linux下建立iso文件(用mkisofs命令)

太方便了,太方便了。。看man会看晕,直接看实例: 示   例:1)建立映像文件 (把目录a下的内容做成iso文件)$mkisofs  -r -o a.iso    a/2)建立映像文件 (把目录a下的内容做成iso文件,并指定不把文件b.txt放到iso中)$mkisofs -m b.txt -r -o a.iso    a/3)建立映像文件 (把目录a下的内容做成iso文件,并指定

2010-04-27 13:30:00 5927

转载 在进行UDP编程的时候,一次发送多少bytes好?

以下是别人的回帖,存下来~   在进行UDP编程的时候,我们最容易想到的问题就是,一次发送多少bytes好?       当然,这个没有唯一答案,相对于不同的系统,不同的要求,其得到的答案是不一样的,我这里仅对       像ICQ一类的发送聊天消息的情况作分析,对于其他情况,你或许也能得到一点帮助:       首先,我们知道,TCP/IP通常被认为是一个四层协议系统,包括链路层,网络层

2010-04-27 10:46:00 919

原创 Linux下的ftp工具及中文乱码的解决

安装gftpyum install gftp 默认状态下gftp是没有设置字符编码的,所以我们上FTP的时候,看到里面的中文文件名全部是乱码,或则不部分文件看到文件夹却没名字; 其实在gftp-2.0.17以后的版本都已经很好支持汉字了,我的设置方法是对它的配置文件修改即可! 一般的软件配置文件会放在用户目录下,例如我用root登陆,我就打开终端,在进

2010-04-25 09:35:00 13271 1

原创 Prime Palindromes (1004)

。。好久没写代码了 这么个东西调了半天c++的string类很浪费内存,竟然出现过Memory Limit Exceed只好用原始的了~ #include #include #include #include #include #include using namespace std;int plist[100000];bool isPrime(in

2010-04-21 15:09:00 727

原创 Mixing Milk (1003)

#include #include #include using namespace std;typedef pair pnm;int main(){ int sum, n; while(cin >> sum >> n) { pnm p; vector nm; for(int i=0; i<

2010-04-20 21:26:00 574

原创 Fedora Linux 下安装 source navigator 的 bug shoot!

安装后运行snavigator 出现Cant find a usable tk.tcl in the following directories: /opt/sourcenav/share/tk8.3/opt/sourcenav/share/tk8.3/tk.tcl: no event type or button # or keysymno event ty

2010-04-17 11:03:00 927

转载 Fedora Linux 下安装配置C开发环境Code::Blocks

一、提前的话  要说C语言和Linux的关系大家应该都不会陌生,Linux系统内核就是用C语言开发的,所以所有的Linux系统下面 都会有C的编译调试工具,不过这些工具都是命令式的,正式开发的话会很不方便。Fedora在安装的时候可以选择安装Fedora Eclipse,这个IDE很强大,C,C++,Java,Python等等都支持,而且编译,调试和测试等功能也很完善。不过一般太强大的东西都有

2010-04-15 17:10:00 1459

原创 Linux查看开机时间和进程情况

一个是top (查看进程) 一个就是uptime(查看开机到现在有多久) 

2010-04-15 11:09:00 711

原创 linux下截图软件

fedora:yum install scrot -y ubuntu:sudo apt-get install scrot 用法: 1. 抓取整个桌面:scrot desktop.png,该命令将当前的整个桌面抓取下来,并保存为 desktop.png 文件。可以在当前的目录中找到此图像文件。 2. 抓取窗口:scrot -bs window.png,选

2010-04-14 16:07:00 624

原创 让Fedora能够打开RAR文件

下载RAR 3.71 for Linux这个文件:http://www.rarlab.com/rar/rarlinux-3.7.1.tar.gz文件大小759K,解压之后大小1.5M然后:[root@localhost rar]# cd ~/rar[root@localhost rar]# makemkdir -p /usr/local/binmkdir -p /usr

2010-04-14 15:08:00 592

原创 编辑fedora开始菜单

想修改就编辑/usr/share/applications下以.desktop开头的文件想删除就删除此文件

2010-04-13 19:30:00 1112

转载 ubuntu的.deb包和redhat下fedora的.rpm包转化

Alien GUI支持rpm,deb,tgz三种软件包互相转化,操作简便,目前最新版本为0.99.1,现在在ubuntu上装软件可以选择新立得,apt-get,网上下载软件包(像deb一键点击安装极其方便,rpm过去就可以通过alien转化为deb,而且现在alien gui又开始支持一些tgz包的转化了,像其他一些源码包则可以通

2010-04-13 18:40:00 4012

原创 ns2资料的网站汇总

国外一大学的:http://www.cse.msu.edu/~wangbo1/ns2/ 百思论坛:http://58.213.153.47/forum-440-1.html NS by Example:http://nile.wpi.edu/NS/NS-2 Trace Formats(一牛说要想分析数据,nam没啥用,但这个要看懂):http://nsnam

2010-04-13 17:45:00 1048 1

原创 Gnuplot绘图

一,基础篇:在linux命令提示符下运行gnuplot命令启动,输入quit或q或exit退出。 plot命令gnuplot> plot sin(x) with line linetype 3 linewidth 2 或 gnuplot> plot sin(x) w l lt 3 lw 2 %用线画,线的类型(包括颜色与虚线的类型)是3,线的宽度是2

2010-04-13 17:41:00 1085 1

原创 fedora 播放mp3文件

方法一rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpmrpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

2010-04-13 15:00:00 604

原创 安装xgraph

首先要:yum install libXp

2010-04-13 10:59:00 1173

原创 tar命令总结

tar-c: 建立压缩档案-x:解压-t:查看内容-r:向压缩归档文件末尾追加文件-u:更新原压缩包中的文件这五个是独立的命令,压缩解压都要用到其中一个,可以和别的命令连用但只能用其中一个。下面的参数是根据需要在压缩或解压档案时可选的。-z:有gzip属性的-j:有bz2属性的-Z:有compress属性的-v:显示所有过程

2010-04-13 10:34:00 431

原创 fedora安装openoffice(转)

先是root登录,接着输入以下命令:# yum groupinstall "Office/Productivity" 然后执行以下命令,查找你所要安装使用的语言包,底下以正体中文为例: # yum list openoffice* . . .(略) openoffice.org-langpack-ta_IN.i386 1:3.0.0-9.10.fc10

2010-04-12 13:06:00 1071

原创 删除已安装的内核

1、用rpm -qa|grep kernel命令找到内核包的名子(例如kernel-2.4.21-4.EL)2、用rpm -e kernel-2.4.21-4.EL 删除这个内核或者编辑grub的menu.lst再把/boot目录下对应的kernel删掉就可以了,还有/lib/module/对应的目录。如果是以rpm或deb方式安装的kernel执行相关操作即可。rp

2010-04-12 11:33:00 897

原创 挂载iso

在linux下默认的ISO挂载点位于"/media"目录,下面是挂载一个ISO文件的方法:sudo mkdir /media/cdimage  #建立一个文件夹作为ISO挂载点sudo mount -o loop myfile.iso /media/cdimage   #挂载ISO文件,使用参数 -o loop

2010-04-12 11:32:00 472

转载 Fedora 12安装显卡驱动终极教程(转载)

由于我的电脑是NVIDIA的显卡,所以在这里我们只介绍NVIDIA的显卡驱动的安装方法首先我们要做一些准备工作,以便在装好显卡驱动后不会发生进不了桌面的杯具!1. 阻止kernel加载nouveau模块# gedit /boot/grub/grub.conf在你要安装显卡驱动的kernel行的末尾加上 rdblacklist=nouveau如图:在此请抄下你

2010-04-12 10:49:00 1401

原创 vim配置文件

Vim的配置文件保存在两个地方,  1> 在目录 /etc/vim/vimrc的文件,这是系统中公共的vim配置文件,对所有用户都有效。(在fedora里是/etc/vimrc)  2> 在每个用户的主目录下,都可以自己建立私有的配置文件,命名为:“.vimrc”。例如,/root目录下,通常已经存在一个.vimrc文件 " 使用utf-8编码set encoding=utf-

2010-04-12 10:08:00 561

原创 ns2的安装

要想不麻烦  就要按最新版的gcc和ns2这样一般一点问题也没有。。要不就悲剧了。。 首先得安装必备软件包# yum install autoconf automake gcc-c++ libX11-devel xorg-x11-proto-devel /libXt-devel libXmu-devel 贴几个出现的问题~ 问题一(2.33) >na

2010-04-12 09:42:00 758

The design of design

Making Sense of Design Effective design is at the heart of everything from software development to engineering to architecture. But what do we really know about the design process? What leads to effective, elegant designs? The Design of Design addresses these questions. These new essays by Fred Brooks contain extraordinary insights for designers in every discipline. Brooks pinpoints constants inherent in all design projects and uncovers processes and patterns likely to lead to excellence. Drawing on conversations with dozens of exceptional designers, as well as his own experiences in several design domains, Brooks observes that bold design decisions lead to better outcomes. The author tracks the evolution of the design process, treats collaborative and distributed design, and illuminates what makes a truly great designer. He examines the nuts and bolts of design processes, including budget constraints of many kinds, aesthetics, design empiricism, and tools, and grounds this discussion in his own real-world examples—case studies ranging from home construction to IBM's Operating System/360. Throughout, Brooks reveals keys to success that every designer, design project manager, and design researcher should know.

2011-08-22

NS中文手册精美版.pdf

当参考书文档不错 ns方面的中文资料太少。。

2010-04-14

Inside the C++ object model

Inside the C++ Object Model focuses on the underlying mechanisms that support object-oriented programming within C++: constructor semantics, temporary generation, support for encapsulation, inheritance, and "the virtuals"-virtual functions and virtual inheritance. This book shows how your understanding the underlying implementation models can help you code more efficiently and with greater confidence. Lippman dispells the misinformation and myths about the overhead and complexity associated with C++, while pointing out areas in which costs and trade offs, sometimes hidden, do exist. He then explains how the various implementation models arose, points out areas in which they are likely to evolve, and why they are what they are. He covers the semantic implications of the C++ object model and how that model affects your programs.

2008-09-10

空空如也

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

TA关注的人

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