自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(52)
  • 收藏
  • 关注

转载 [Linux] Swat left me with a blank bar.

When I first use swat to admin my samba, I met many problems, the largest one is: no matter what I click, the swat left me with a blank bar.The solution is simple:sudo apt-get remove libpam-s...

2013-04-13 15:34:00 136

转载 [linux] 如何在后台运行程序

In case of bash:$ cmd &In case of ssh (we want cmd to be executed after we input the password):$ ssh -f user@host cmdIn case of sudo (we want cmd to be executed after we input the pas...

2013-01-18 11:06:00 108

转载 [Kate] Kate's line length limitation

I do not know why, but Kate(http://kate-editor.org) really have a line length limitation, with the default value of 1024 characters. When a file containing a line with more then 1024 characters i...

2012-12-29 21:31:00 127

转载 [Vim] Some tips on vim

:iabbrev i18n internationalization转载于:https://www.cnblogs.com/unimous/archive/2012/11/03/2752416.html

2012-11-03 13:12:00 96

转载 [bash] Some Tips for the Bourne Again Shell

1. bash命令行中的变量赋值语句只适用于该命令This example comes from A practical guide to Fedora and Red Hat Enterprise Linux (6th ed.).$ cat my_scriptecho $TEMPDIR$ TEMPDIR=/home/sam/temp ./my_script/home...

2012-10-27 10:49:00 89

转载 [Linux] Update DHCP ip address in Linux.

$ dhclient -r$ dhclient转载于:https://www.cnblogs.com/unimous/archive/2012/10/24/2736675.html

2012-10-24 10:25:00 101

转载 [linux] How to update locate database?

How to update locate database?There is the solution:$ sudo updatedb转载于:https://www.cnblogs.com/unimous/archive/2012/10/20/2731938.html

2012-10-20 10:22:00 85

转载 [linux] How to grep a string that do no cantain another substring?

How to grep a string that do no cantain another substring?There is the solution:$ ls | grep -ivE 'unimous'Here is a practical example of using it. If you want to find all the files with nam...

2012-10-20 10:20:00 74

转载 [linux] How to pipe some file names to rm: xargs

How to pipe some file names to rm, here is the solution:$ ls | xargs rm转载于:https://www.cnblogs.com/unimous/archive/2012/10/20/2731936.html

2012-10-20 10:18:00 68

转载 [Vim] 关于Vim的编码问题

Vim有四个与编码相关的选项:encoding,termencoding,fileencoding,fileencodings,具体参见Reference 1。为防止乱码,可在~/.vimrc脚本中添加如下几行set encoding=utf-8set termencoding=utf-8set fileencodings=ucs-bom,utf-8,cp936,gb18...

2012-10-19 13:26:00 59

转载 [Linux] Single quote vs. Double quote inside Shell script

Single QuoteUse single quote when you want to literally print everything inside the single quote. Even the special variables such as $HOSTNAME will be print as $HOSTNAME instead of printing the...

2012-10-16 11:36:00 156

转载 [Ubuntu] Four different ways to take a screenshot in Ubuntu

Print Screen: Take a screenshot.Ctrl+Print Screen: Take a screenshot (Without saving dialog).Alt+Print Screen: Take a screenshot of a window.Shift+Print Screen: Take a screenshot of an ar...

2012-10-04 20:24:00 79

转载 [TeX] How to escape TeX special character?

To getYou must use#\#$\$%\%&\&\\textbackslash{}^\^{} OR \textasciicircum{}_\_{\{}\}~\~{} OR \textasciitil...

2012-09-28 09:19:00 71

转载 [Ubuntu] Solution: "E: Could Not Get Lock /var/lib/apt/lists/lock"

sudo rm /var/lib/apt/lists/locksudo apt-get cleansudo apt-get update转载于:https://www.cnblogs.com/unimous/archive/2012/09/16/2687629.html

2012-09-16 16:52:00 65

转载 [Database] MySQL基本命令

To login# mysql -u root -pShow databasesmysql> show databases;Switch to a databasemysql> use [db name]Show tables (relations)mysql> show tables;转载于:ht...

2012-09-16 08:40:00 78

转载 sth about user privacy

The data contained within a CRM application is often a company's most critical asset, yet because of the pivotal role this information plays in day-to-day business activities, it also often the...

2012-08-10 19:26:00 81

转载 [English] Discussing Phrases

I have learnt some discussing phrases this week, just list some of them here:Asking for Opinions: What do you reckon about?Giving Opinions: As far as I'm concerned...Agreeing: I'm incline...

2012-07-07 15:19:00 111

转载 [Linux技巧] 同时运行两个X sessions

系统启动时自动运行的那个X,或者当你输入startx运行的那个X是默认的screen 0上的,使用如下命令可一启动另一个X:startx -- :1后面的1指的是screen 1Referencehttp://www.tuxfiles.org/linuxhelp/multiple-x.html转载于:https://www.cnblogs.com/unim...

2012-04-24 23:20:00 139

转载 [English] Vocabulary

Some useful words connected with Computer Science.mandatory /ˈmændəˌtɔri/ adj. <that you must do, have, obey, etc.> 强制的;必须做、有或服从的e.g.: The crime carries a mandatory life sectence.Wh...

2012-04-23 14:30:00 100

转载 [TEST] 此文用以测试样式中的各种标签

Les Misérables (literally "The Miserable Ones"; usually play /leɪ ˌmɪzəˈrɑːb/; French pronunciation: [le mizeʁabl(ə)]), translated variously from the French as The Miserable , The Wretched, The P...

2012-04-10 19:22:00 219

转载 [TEST] 测试博客园博客中能否放置javascript代码与CSS

这篇文章用于测试博客园里的文章是否可以使用CSS与Javascript。Hello WorldLa Guida CompletaCodice prelevabile dal sito www.informatica.mcgraw-hill.itC++Quarta edizioneLa guida di riferimen...

2012-04-10 17:23:00 91

转载 Vim技巧:设置自动折行

:set wrap:set nowrap转载于:https://www.cnblogs.com/unimous/archive/2012/04/06/2435106.html

2012-04-06 18:43:00 216

转载 [Linux文件系统层次结构] /etc/motd文件

在用户登录系统之后,系统会显示一条简短的消息,被称作当日消息(Message Of The Day, motd),该消息存放于/etc/motd文件中。系统管理员可以直接编辑这个文件以显示不同的消息,通常,这个文件的内容不应该超过一屏显示。此文件通常包含一些问候语,下次备份时间,下次关机时间,上次系统更新的内容,等等。在用户登录之前,系统也会提示一些信息,详见/etc/issue...

2012-04-05 11:00:00 208

转载 [linux技巧] Linux中的Ctrl-组合键

Linux系统中的Ctrl-组合键列表如下:Ctrl-S告诉系统停止向屏幕发送数据(意外地按到Ctrl-S会使屏幕静止);Ctrl-Q告诉系统继续向屏幕发送数据(多按几下Ctrl-Q不会产生什么额外影响);Ctrl-C告诉系统终止当前程序(并做相应清理工作);Ctrl-\告诉系统终止当前程序(立即终止,不做任何清理工作);Ctrl-H向前删除一个字符;Ctrl...

2012-04-04 09:03:00 206

转载 [Linux文件系统层次结构] /etc/issue 与 /etc/issue.net 文件

在使用文本设备(关于文本设备的例子,见下面的说明)登录Linux系统之前,系统会显示一条被称作“issue”的消息:若是通过本地文本设备(如本地终端,本地虚拟控制台等)登录,则该信息存放与/etc/issue文件中;若是通过远程本文设备(如通过ssh或telnet等)登录,则该信息存放与/etc/issue.net文件中。1. 第一映像:unimous@uni...

2012-04-03 22:49:00 244

转载 Ubuntu安装telnet与ssh服务器

1. Install telnet server$ sudo apt-get install telnetd$ sudo /etc/init.d/openbsd-inetd restart2. Install openssh server$ sudo apt-get install openssh-server$ sudo /etc/init.d/ssh rest...

2012-04-03 18:03:00 83

转载 [VirtualBox技巧] 如何在虚拟机中输入特殊的组合键

在虚拟机中常常会遇到这样的问题:想输入某个组合键到虚拟机中,却被宿主机给截取了。例如:我的宿主机是Ubunut,虚拟机是fedora,在fedora中输入 Ctrl+Alt+F1 会自动被Ubuntu截取。当让,VirtualBox的设计者已经为我们考虑好了这个问题:http://www.virtualbox.org/manual/ch01.html#idp7707936Vi...

2012-03-31 11:48:00 484

转载 [Linux技巧] 选中文本即为复制,中键粘贴

如题,在linux中,选中某段文本,系统会自动将该段文本复制到选择缓冲区(selection buffer)中,在需要粘贴的地方单击鼠标中键即可粘贴。多的也什么好说的,试试看吧。转载于:https://www.cnblogs.com/unimous/archive/2012/03/31/2426541.html...

2012-03-31 10:44:00 2173

转载 [C/C++] 关于strncpy函数

C/C++中的strncpy()函数功能为将第source串的前n个字符拷贝到destination串,原型为:char * strncpy ( char * destination, const char * source, size_t num );各个参数的含义显而易见,其中返回值与destination相同。这个函数会出现三种情况:1、num<sourc...

2012-03-05 23:26:00 978

转载 [English] “i.e.”和“e.g.”的区别

在英语中,经常遇到两个容易弄混淆的缩写:“i.e.”和“e.g.”。“e.g.”是拉丁语“exempli gratia”的缩写,表示“例如”,就是“for example”的意思;“i.e.”是拉丁语“id est”的缩写,表示补充说明,就是“that is”的意思;还有一个缩写也比较常用:“etc.”,它是拉丁语“et cetera”的缩写,表示“等等”,就是“and so on”...

2012-02-29 23:05:00 185

转载 [Linux技巧] 让date命令的输出格式符合你的习惯

写着代码,想知道时间(或者日期,看你的想法),Linux中有个很好的命令:date。Have a try...unimous@unimous-f41:~$ dateSun Feb 26 22:39:43 CST 2012So strange... 可能我们都很不习惯看这种默认的“星期、月、日、时间”,还加个“CST”(美国中部标准时间?为什么?)、然后“年”的格式,...

2012-02-26 23:01:00 96

转载 [C/C++] 关于C/C++操作符的结合律

Associativity RulesThe associativity rules of a language specify which operator is evaluated first when two operators with the same precedence are adjacent in an expression.当一个表达式中有两个相同优先级的...

2012-02-25 12:00:00 186

转载 什么是up2date

up2date是较早版本的Red Hat Linux Enterprise, Client OS 和 Fedoa Core使用的一个包管理工具,从RHLE5和Fedora Core 5开始被YUM替代。又被称作:Red Hat Update Agent。转载于:https://www.cnblogs.com/unimous/archive/2012/01/13/2321302.h...

2012-01-13 10:35:00 345

转载 什么是pirut

pirut是Fedora Core 5到Fedora 8中使用的包管理器,是yum的图形化版本。发音同pirate /ˈpaɪrət/。为Package Install Remove, and Update Tool的缩写。参见:http://fedoraproject.org/wiki/Tools/pirut转载于:https://www.cnblogs.com/uni...

2012-01-13 10:29:00 156

转载 关于Engine

最近对车产生了浓厚的兴趣,进而对引擎也产生了兴趣,这里记录了一些网站:http://www.animatedpiston.com/Home.htmhttp://www.animatedengines.com/备忘。转载于:https://www.cnblogs.com/unimous/archive/2011/10/09/2204867.html...

2011-10-09 23:21:00 78

转载 【网络安全】RIP 路由选择攻击(RIP Routing Attacks)

路由选择信息协议(RIP)攻击常见于使用了最初 RIP 协议的路由器中。路由选择信息协议(RIP)用于在网络中发布路由选择信息,如最短路径,并从本地网络向外广播路径。RIP 没有内置的验证机制,RIP 数据包中所提供的信息通常未经检验就已经被使用。攻击者可以伪造 RIP 数据包,宣称其主机“X”拥有最快的连接网络外部的路径。然后,所有需要从那个网络发出的数据包都会经 X 转发,而在 X ...

2011-08-18 21:29:00 813

转载 【资料】 关于计算机网络的书籍、教程、资料。

1. 【书籍】《计算机网络(第4版)》;特南鲍姆(Tanenbaum, A. S.)著;潘爱民译;北京:清华大学出版社;2004.8。这是我见过的计算机入门级最好的书。这本书写的太详细,太精彩了。第5版已经出版了,但是现在在中国还买不到。2. 【教程】 Network Essentials+ http://network3000.brinkster.net/MCSE_Trai...

2011-07-30 16:40:00 197

转载 [firefox 技巧] 火狐的快捷键

此文章产生的缘由:每次试图回到主页的时候都要用鼠标点击主页按钮,太过麻烦,于是Google了一下,发现了FF中,Alt+Home是主页的快捷键。此文章摘录自:http://support.mozilla.com/en-US/kb/Keyboard%20shortcuts。注:firefox不提供任何自定义键盘快捷键的方法(至少在5.01及之前是这样的)。一、导航相关的快捷键:...

2011-07-18 18:58:00 119

转载 [备忘] 关于Ubuntu包管理器的一个奇怪的错误的解决方案

sudo rm -vf /var/lib/apt/lists/*转载于:https://www.cnblogs.com/unimous/archive/2011/06/26/2090655.html

2011-06-26 15:17:00 108

转载 [网络] RFC下载地址

所有RFC的打包下载地址:http://www.rfc-editor.org/download.html纯文本版:ftp://ftp.rfc-editor.org/in-notes/tar/RFC-all.tar.gzPDF版:ftp://ftp.rfc-editor.org/in-notes/tar/pdfrfc-all.tar.gz转载于:https://www.cn...

2011-06-15 02:25:00 311

空空如也

空空如也

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

TA关注的人

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