摘要: 使用time命令可以在Linux系统中了解单个程序和它的同步子程序的运行性能。它报告实际时间,也就是从程序开始到结束所使用的时间(real),也报告由该程序使用的 CPU 时间。使用方法如下: 908869@CNSHA05NB70810 ~$ time ./test4 2 1 9 5 8 7 0 3 60 1 2 3 4 5 6 7 8 9real 0m0.240suser 0m0.01... 阅读全文
posted @ 2012-01-18 15:53 __BSD__ 阅读(465) 评论(0) 推荐(0) 编辑
摘要: Python中自带Web服务器模块,通过它可以建立简单的web服务器。命令 python -m WebServerModule[Port]注意 默认的端口号为8000 服务器根目录就是运行python的工作目录。使用方法直接在命令行中启动。 908869@CNSHA05NB70810 ~$ python /usr/lib/python2.6/SimpleHTTPServer.... 阅读全文
posted @ 2012-01-18 15:32 __BSD__ 阅读(2772) 评论(0) 推荐(0) 编辑
摘要: 语法 sqlplus username/passwortd@//host:port/sid例子在sqlplus中连接 908869@CNSHA05NB70810 ~$ sqlplus /nologSQL*Plus: Release 11.2.0.1.0 Production on Tue Jan 17 16:55:46 2012Copyright (c) 1982, 2010,... 阅读全文
posted @ 2012-01-17 17:35 __BSD__ 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 1. dual1.1. The dual Tabledual is a table that contains a single row. The dual table has one VARCHAR2 column named dummy.dual contains a single row with the value X. describe dual; Name Null Typ... 阅读全文
posted @ 2012-01-17 16:55 __BSD__ 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 在默认状态下,Windows会打开很多“服务端口”,如果想查看本机打开了哪些端口、有哪些电脑正在与本机连接,可以使用netstat命令。 netstatnetstat是Windows自带的命令,能够显示当前的 TCP/IP 网络连接情况。注意:只有安装了TCP/IP协议,才能使用netstat命令。其中Local Address代表本机IP地址和打开的端口号(图中本机打开了135端口),Forei... 阅读全文
posted @ 2012-01-17 16:01 __BSD__ 阅读(817) 评论(0) 推荐(0) 编辑
摘要: 记录一下在Oracle中创建用户的全过程。进入“Start --> Oracle - OraDb11g_home1 --> SQL Plus” SQL*Plus: Release 11.2.0.1.0 Production on Thu Jan 12 17:24:55 2012Copyright (c) 1982, 2010, Oracle. All rights reserve... 阅读全文
posted @ 2012-01-16 20:43 __BSD__ 阅读(984) 评论(0) 推荐(0) 编辑
摘要: 发现一个提供免费PDF杂志下载的网站。URL: 免费杂志网站从这里可以发现如下杂志每一期的下载链接:American WoodworkerGunsPlay Boy速度有点慢,不过还能忍受。通过 Wiz 发布 阅读全文
posted @ 2012-01-13 17:59 __BSD__ 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 1. First programThe C program is a set of functions.The program execution begins by executing the function main (). #include <stdio.h>main() {printf("Hi \n");}2. C Language Keywords auto doub... 阅读全文
posted @ 2012-01-13 17:19 __BSD__ 阅读(373) 评论(0) 推荐(0) 编辑
摘要: Emacs中<tab>的默认显示宽度过长。为更改其默认宽度,修改如下: ;; 设置tab为4个宽度(setq-default tab-width 4)(setq tab-width 4)设置tab宽度为4个空格键宽。通过 Wiz 发布 阅读全文
posted @ 2012-01-12 15:49 __BSD__ 阅读(688) 评论(0) 推荐(0) 编辑
摘要: 插入排序(Insertion Sort),是一种简单直观的排序算法。它的工作原理是通过构建有序序列,对于未排序数据,在已排序序列中从后向前扫描,找到相应位置并插入。算法插入排序在实现上,通常采用in-place排序(即只需用到O(1)的额外空间的排序),因而在从后向前扫描过程中,需要反复把已排序元素逐步向后挪位,为最新元素提供插入空间。 算法描述如下: 从第一个元素开始,该元素可以认为已经被排序... 阅读全文
posted @ 2012-01-12 15:10 __BSD__ 阅读(364) 评论(0) 推荐(0) 编辑