C++常考面试题:实现内存拷贝函数...
                            
                            
                                分类:
编程语言   时间:
2015-01-30 15:57:13   
                                阅读次数:
221
                             
                    
                        
                            
                            
                                1.1 使用oradebug
--启动任务
oradebug setmypid
--设置dump文件的名称标示
alter session set tracefile_identifier=undo
--查看dump文件
SQL> oradebug tracefile_name;
c:\opt\oracle\product\10.2.0\admin\rundb\udump\rundb...
                            
                            
                                分类:
数据库   时间:
2015-01-30 15:57:27   
                                阅读次数:
278
                             
                    
                        
                            
                            
                                4 事务与一致性
4.1 undo segment header 事务表及事务控制表(TRN TBL and TRN ctl)
--undo header 包含事务表TRN TBL
用于标示最近事务的简单列表,
 TRN TBL::
  index  state cflags  wrap#    uel         scn            dba            pa...
                            
                            
                                分类:
数据库   时间:
2015-01-30 15:57:02   
                                阅读次数:
307
                             
                    
                        
                            
                            
                                1. An Axiomatic Basis for Computer Programming. 1969年的一篇论文,主要讲用公理基础证明计算机编程的正确性,包括赋值/递推/组合/循环等。不是那么容易读懂,特别是一些数理符号,想要完全看懂估计得查不少书。扫过重要的部分,关键就是
 P{Q}R, 即前置条件满足assert(P) 为true,Q是一段程序(可以是多个子程序的组合),后置条件R是人们...
                            
                            
                                分类:
其他好文   时间:
2015-01-30 15:54:24   
                                阅读次数:
201
                             
                    
                        
                            
                            
                                介绍
上一节,我们对PhotoView开源项目进行了剖析解读, 这一节呢, 我们说说Emoji表情,大家每天都在用的QQ,微信或者其他聊天工具都有这个。
在我接触到的Emoji中,大致可以分为两类:
 
 系统支持的Emoji图标
 自定义Emoji图标
 
这一节我们讨论系统支持的Emoji图标,掌握了这类,自定义Emoji表情也就水到渠成了
功能特性
 常用系统Emoji图标...
                            
                            
                                分类:
其他好文   时间:
2015-01-30 15:54:02   
                                阅读次数:
979
                             
                    
                        
                            
                            
                                【题目】
在由N个正整数的集合S中,找出最大元素C,满足C=A + B 其中A,B都是集合S中元素,请给出算法描述,代码与时间复杂度分析。
【分析】
1,对集合S进行排序(快排),从小到大排序
2,让C指向集合最后一个元素(最大元素)
3,让i指向S中第一个元素,让j指向C的前一个元素
4,如果,A[i]+A[j]==C则return C;
5,如果if(A[i]+A[j]
6...
                            
                            
                                分类:
其他好文   时间:
2015-01-30 15:54:30   
                                阅读次数:
162
                             
                    
                        
                            
                            
                                一,配置多个tomcat
编辑环境变量:vi /etc/profile
#java环境配置
export JAVA_HOME=/usr/java/jdk1.7.0_71/
export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$...
                            
                            
                                分类:
系统相关   时间:
2015-01-30 15:53:47   
                                阅读次数:
198
                             
                    
                        
                            
                            
                                背景:1Y!!!调试一个小时。没有仔细看题,V 2 1,实际上表示的是第二列第一行,因为这个调试了好久。要逐渐养成耐心读代码的习惯!
思路:把行和列的分别记录在两个数组你,让后从边长为1开始枚举出所有即可!
学习:1.scanf读取字符的时候一定要考虑到,换行行符在键盘缓冲区的遗留问题!
#include
#include
int main(void){
#ifdef LOCAL
 ...
                            
                            
                                分类:
其他好文   时间:
2015-01-30 15:54:09   
                                阅读次数:
133
                             
                    
                        
                            
                            
                                You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a link...
                            
                            
                                分类:
其他好文   时间:
2015-01-30 15:55:05   
                                阅读次数:
196
                             
                    
                        
                            
                            
                                经典的状态压缩dp,有几个点要注意
1)必须用三维的状态才能合理的进行状态的转移,用二维的状态约束性不够
2)初始化是必须要同时初始化前两行的所有状态
3)注意位运算的使用。
代码如下:
#include
#include
#include
using namespace std;
int total[1000],cur[110];
int dp[110][200][2...
                            
                            
                                分类:
其他好文   时间:
2015-01-30 15:54:09   
                                阅读次数:
148
                             
                    
                        
                            
                            
                                “直方图”工具提供了数据的一元(一个变量)描述。此工具对话框用于显示感兴趣数据集的频率分布并计算汇总统计数据。...
                            
                            
                                分类:
其他好文   时间:
2015-01-30 15:53:09   
                                阅读次数:
292
                             
                    
                        
                            
                            
                                Given two integers representing the numerator and denominator of a fraction, return the fraction in string format.
If the fractional part is repeating, enclose the repeating part in parentheses....
                            
                            
                                分类:
其他好文   时间:
2015-01-30 15:55:05   
                                阅读次数:
123
                             
                    
                        
                            
                            
                                Reqiurement:
As we known, Managed Navigation is that the navigation items will be represented using a Managed Metadata term set. SharePoint provide the default control, but the
 design...
                            
                            
                                分类:
其他好文   时间:
2015-01-30 15:54:05   
                                阅读次数:
235
                             
                    
                        
                            
                            
                                1. 下载并运行"Root大师" PC版
2. 运行"Root大师"以root我的红米1s手机
3. adb shell
4. su
5.  运行下列命令使 /system分区可写.
root@HM2014501:/ #mount -o rw,remount -t yaffs2 /system
mount -o rw,remount -t yaffs2/system
root@HM2...
                            
                            
                                分类:
移动开发   时间:
2015-01-30 15:53:23   
                                阅读次数:
177
                             
                    
                        
                            
                            
                                概述:
    内核空间与用户空间经常需要进行交互。举个例子:当用户空间使用一些配置命令如ifconfig或route时,内核处理程序就要响应这些处理请求。
    用户空间与内核有多种交互方式,最常用的有以下四种:通过/proc虚拟文件系统,通过/sys虚拟文件系统,通过ioctl系统调用,通过Netlink socket。 其中编写程序时最常使用ioctl,这四种方式中有两种是通过虚拟...
                            
                            
                                分类:
系统相关   时间:
2015-01-30 15:55:02   
                                阅读次数:
407
                             
                    
                        
                            
                            
                                突然 squid 就启动不了了,打开 squid.out,发现报错:
WARNING: Cannot write log file: /var/log/squid/cache.log
/var/log/squid/cache.log: Permission denied
         messages will be sent to 'stderr'....
                            
                            
                                分类:
系统相关   时间:
2015-01-30 15:54:30   
                                阅读次数:
673
                             
                    
                        
                            
                            
                                Android官方入门文档[14]停止和重新启动一个Activity活动
这节课教你
1.停止您的Activity活动
2.启动/重新启动您的Activity活动...
                            
                            
                                分类:
移动开发   时间:
2015-01-30 15:53:01   
                                阅读次数:
280