11 2011 档案

摘要:设备文件linux沿袭Unix的风格,将所有设备认成一个文件。设备文件分两种:块设备文件(b),字符设备文件(c); 设备文件一般存放在 /dev 目录下。常用的块设备文件/dev/hd[a-t]:IDE设备/dev/sd[a-z]:SCSI设备/dev/fd[0-7]:标准软驱/dev/md[0-31]:软raid设备loop[0-15]:本地回访设备ram[0-19]:内存/dev/null:无限数据接收设备/dev/zero:无限零资源/dev/tty[0-31]:虚拟终端/dev/ttyS[0-9]:串口/dev/lp[0-3]:并口/dev/console:控制台/dev/fb[0- 阅读全文
posted @ 2011-11-25 17:21 维唯为为 阅读(407) 评论(0) 推荐(0) 编辑
摘要:检测一个无符号数是不为2^n-1(^为幂): x&(x+1) 将最右侧0位改为1位: x | (x+1)二进制补码运算公式: -x = ~x + 1 = ~(x-1)~x = -x-1 -(~x) = x+1~(-x) = x-1x+y = x - ~y - 1 = (x|y)+(x&y) x-y = x + ~y + 1 = (x|~y)-(~x&y) x^y = (x|y)-(x&y)x... 阅读全文
posted @ 2011-11-24 14:00 维唯为为 阅读(554) 评论(0) 推荐(0) 编辑
摘要:位运算的思想可以应用到很多地方,这里简单的总结一下用位运算来实现整数的四则运算。 1.整数的加法 view plain intMyAdd(inta,intb) { for(inti=1;i;i<<=1) if(b&i) ... 阅读全文
posted @ 2011-11-24 13:53 维唯为为 阅读(4186) 评论(0) 推荐(0) 编辑
摘要:数据库笔记2(oracle DML、事务、视图、索引、序列)创建保存点 SQL> savepoint p16_00;保存点已创建。 通过查询创建表 create table my_empas select id,last_name,start_datefrom s_empwhere dept_id=41; 插入数据 insert into my_em... 阅读全文
posted @ 2011-11-19 11:45 维唯为为 阅读(284) 评论(0) 推荐(0) 编辑
摘要:杰普oracle笔记1(oracle配置、函数、查询、连接、建表、数据字典) 配置环境window 用户: 1.cmd 2.sqlplus system 3.password 4.create user briup identified by briup; 5.grant resource,connect to briup; 6.conn briup/briup; 7.show user; 8.alter session set nls_date_language=english; 9.执行脚本,导入数据表: @d:\summit2.sql 10.select * from tab; ---- 阅读全文
posted @ 2011-11-18 10:59 维唯为为 阅读(336) 评论(0) 推荐(0) 编辑
摘要:项目源码包下载地址:http://dl.dbank.com/c0rhpnjrm2 brwBook项目开发文档:http://dl.dbank.com/c08jp2n6ib 文件结构 界面见项目文件,略。。。。。。后台数据库表设计 数据表.sqlcreate table Book( id number primary key, name... 阅读全文
posted @ 2011-11-11 01:34 维唯为为 阅读(287) 评论(0) 推荐(0) 编辑
摘要:压缩 gzip [root@redhat root]# gzip test1.txt//压缩 gunzip[root@redhat root]# gunzip test1.txt.gz//解压 [root@redhat root]# gzip -d test1.txt.gz//解压 [root@redhat root]# zcat test1.txt.g... 阅读全文
posted @ 2011-11-10 23:56 维唯为为 阅读(573) 评论(0) 推荐(0) 编辑