- 浏览: 1373414 次
-
最新评论
-
TryIT1993:
你好,我想问个问题,value代表的是什么值,是获胜的次数,还 ...
围棋博弈程序的实现与思考(1)——局面评估 -
zhiquanliu:
这个代码对于IE浏览器是有问题的 , 当按住ctrl 滚动滚轮 ...
JavaScript获取文本框光标的像素位置 -
comdevlihun:
有源码吗?
围棋博弈程序的实现与思考(7)——运行结果 -
wenjinglian:
taominghua 写道我就是一个码农,很迷茫.我不甘于落后 ...
我在淘宝这7年 -
taominghua:
我因为一首歌去想念一个人,喜欢一个城市去与一个人邂逅,因为这个 ...
因为一首歌,想念一个人?
文章列表
今年因为期末考试刚好是一月初,所以写这个总结怕影响期末考试,一直拖到现在,现在补上。
2011年,感觉是颇受波折的一年,对我的成长有蛮大的意义的吧。
先讲讲学习,很幸运得学习成绩拿了专业第一,然后9月份很狗 ...
- 2012-01-17 10:08
- 浏览 761
- 评论(0)
//
// xmlParser.h
// htpp
//
// Created by MeMac.cn on 10-4-21.
// Copyright 2010 cc_team. All rights reserved.
//
#ifndef CC_XML_PARSER
#define CC_XML_PARSER
#ifdef __OBJC__
#import <Foundation/Foundation.h>
// SAX parse method
#if __IPHONE_OS_VERSION_MAX_ALLOWED <= __IPHONE ...
- 2012-01-16 20:11
- 浏览 781
- 评论(0)
//
// CCXml.m
// CCFC
//
// Created by xichen on 11-12-19.
// Copyright 2011 ccteam. All rights reserved.
//
#import "CCXml.h"
@implementation CCXmlProperty
- (id)initWithAttr:(xmlAttrPtr)attr
{
self = [super init];
if(self)
{
_attr = attr;
...
- 2012-01-16 20:09
- 浏览 472
- 评论(0)
//
// CCXml.h
// CCFC
//
// Created by xichen on 11-12-19.
// Copyright 2011 ccteam. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <libxml/parser.h> // libxml2.2.dylib or some dylib is like this
@interface CCXmlProperty : NSObject
{
@privat ...
- 2012-01-16 20:08
- 浏览 723
- 评论(0)
//
// CCUIWindow.m
// CCFC
//
// Created by xichen on 11-12-17.
// Copyright 2011年 ccteam. All rights reserved.
//
#import "CCUIWindow.h"
#import "CCLog.h"
@implementation UIWindow(cc)
//
+ (UIWindow *)addImgToStatusBar:(UIImage *)img withRect:(CGRect)imgRect
{
CGR ...
- 2012-01-16 20:07
- 浏览 761
- 评论(0)
这道题的大意就是求割点,并且求出假如去掉这个割点后,整个图被分为了几部分
看的北大那本图论书,无向图的点连通性的求解。
然后就把代码打上来了。
书上是用邻接矩阵存储,我改用了vector
并且书上的代码也有一些问题,就是没有处理好边和回边的问题
因为low数组的定义,就是low[u] = min(dfn[u], low[w], dfn[v])
其中w是u的子女,而(u,v)是一条回边
所以在DFS的过程中,加入一个变量father,用来判断是否是回边,不是回边的话,显然是不能进行处理的
#include <iostream>
#include <vector ...
- 2012-01-15 22:51
- 浏览 1022
- 评论(0)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1044
题意有点类似于红白机上玩过的吃豆子游戏,呵呵。在规定的时间内逃出迷宫,并带走丢在路上的宝石们,价值尽可能的大。
最直接的想法是以宝石为结点,DFS暴力搜索,这样首先需要求俩宝石的最短路径,用A*算法。
然后就TLE了……
然后剪枝吧,比如从A点出发,如d(AC) == d(AB) + d(BC),那么C点是已经搜索过,continue。并且用了贪心策略,按离当前点的距离远近排序待搜索的结点。
然后继续TLE……
然后反省,是不是我对自己写 ...
- 2012-01-15 19:22
- 浏览 809
- 评论(0)
TS and Tuning
Instance/database:v$databasev$instancev$optionv$parameterv$backupv$px_process_sysstatv$processv$waitstatv$system_event
Disk:v$datafilev$filestatv$logv$log_historyv$dbfilev$tempfilev$tempstatv$segment_statistics
Contention:v$lockv$rollnamev$rollstatv$waitstatv$latch
Memory:v$buffer_p ...
- 2012-01-15 18:07
- 浏览 841
- 评论(0)
statspack报告,对数据库做一次全面的体检。
参考书:《Oracle database 10g performance tuning tips & techniques 》
《Your Performing toolkit》 TOM大师
DD and Special Views
dba_tables,dba_tab_columns
dba_clusters
dba_indexes,index_stats
index_histogram,dba_tab_histograms
This statistical information is static until yo ...
- 2012-01-15 18:07
- 浏览 848
- 评论(0)
User Trace Files
bdump保存alert文件与background_trace文件。
udump保存用户trace文件。
desc v$session
select sid,serial#,username from v$session;
1-10是后台进程,11是SYS用户。
show user可以看到是SYS用户。
打开另一会话,conn hr/hr
再执行一次select,会看到多了一个会话。
ps -ef|grep oracle 可以看到有两个服务器进程,此时代表SYS与HR用户连上来了。
HR用户:ALTER SESSION SET sql_tra ...
- 2012-01-15 18:06
- 浏览 708
- 评论(0)
Chapter02 Diagnostic and Tuning Tools
诊断与调优工具
Objectives:1.Identify key tuning components of the alert log file.理解alert log file中关于调优的重要信息。2.Identify key tuning components of background trace files.理解后台trace文件关于调优的信息。3.Identify key tuning components of user trace files.了解用户trace文件关于调优的信息。4.Collect ...
- 2012-01-15 18:05
- 浏览 785
- 评论(0)
//
// CCUIWindow.h
// CCFC
//
// Created by xichen on 11-12-17.
// Copyright 2011年 ccteam. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "CCConfig.h"
@interface UIWindow(cc)
//
+ (UIWindow *)addImgToStatusBar:(UIImage *)img withRect:(CGRect)imgRect;
+ (void ...
- 2012-01-15 14:10
- 浏览 775
- 评论(0)
//
// CCUIViewController.m
// CCFC
//
// Created by xichen on 11-12-28.
// Copyright 2011 ccteam. All rights reserved.
//
#import "CCUIViewController.h"
@implementation UIViewController(cc)
- (UIBarButtonItem *)addLeftBarButtonItem:aTitle
...
- 2012-01-15 14:09
- 浏览 846
- 评论(0)
//
// CCUIViewController.h
// CCFC
//
// Created by xichen on 11-12-28.
// Copyright 2011 ccteam. All rights reserved.
//
#import <Foundation/Foundation.h>
#define MACRO_COMMON_LOAD_VIEW \
- (void)loadView \
{ ...
- 2012-01-15 14:08
- 浏览 899
- 评论(0)
//
// CCUIView.m
// CCFC
//
// Created by xichen on 11-12-17.
// Copyright 2011年 ccteam. All rights reserved.
//
#import "CCUIView.h"
#import <QuartzCore/QuartzCore.h>
@interface UIView(ccPrivate)
- (id)text;
- (id)font;
@end
@implementation UIView(cc)
@dynamic x, y, wid ...
- 2012-01-15 14:06
- 浏览 849
- 评论(0)