现在位置: 首页 > negligent发表的所有文章
  • 06月
  • 20日
数据库 ⁄ 共 997字 评论关闭
数据字典相关连接: Oracle数据字典:常用字典 Oracle数据字典:user_视图 ALL_ 视图返回有关用户可访问的所有对象的信息,而无需考虑其所有者。例如,对 ALL_TABLES 的查询不仅返回用户拥有的所有关系表的列表,还返回其所有者明确授权给用户访问的所有关系表的列表。 以下查询可返回有关用户有权访问的所有对象的信息。 SQL> SELECT object_name, object_type FROM all_objects;  ALL_ 视图中的各种表如下: 表 说明 ALL_TABLES  包含所有可访问表的所有者和这些表的名称 ALL_CATALOG  包含所有可访问表、视图和同义词......
阅读全文
  • 06月
  • 12日
综合 ⁄ 共 1304字 评论关闭
代理模式:封装对对象的访问 主要分为3类               远程代理: 例如java  rmi               虚拟代理:例如图片缓冲技术              保护代理:实现对象访问控制 demo 远程代理 顾名思义,提供对象的远程访问,在早起的jdk版本中我们编写rmi的时候是需要手动生成stub和skeleton的。这两部分的作用是隐藏对象远程调用的细节,对于上层程序像使用本地对象一样调用远程对象。完整的反射弧是,程序向stub发出调用请求,stub通过socket向skeleton发出请求,skeleton调用本地对象,本地对象返回参数给skeleton,skeleton向stub传递......
阅读全文
  • 07月
  • 14日
综合 ⁄ 共 958字 评论关闭
- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section;    // fixed font style. use custom view (UILabel) if you want something different - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { // create the parent view that will hold header Label UIView* customView = [[UIView alloc] initWithFrame:CGRectMake(10.0, 0.0, 300.0, 20.0)]; // create the button object UILabel * headerLabel = [[UILabel alloc] initWith......
阅读全文
  • 05月
  • 25日
综合 ⁄ 共 492字 评论关闭
    这道题目的URL:http://acm.hdu.edu.cn/showproblem.php?pid=1397     这道题目的解题要点是先用筛选法求出所有给定范围内的素数,然后哈希法查找。     这是我的AC代码:     #include<iostream> using namespace std; const int Max = (1<<15) + 10; bool prime[Max]; void calcPrime() { memset(prime, true, sizeof(prime)); for(int i=2; i<Max; i++) { for(int j=i*2; j<Max; j+=i) prime[j] = false; } prime[0] = prime[1] = false; } int main() { int num, cnt; calcPrime(); whi......
阅读全文
  • 05月
  • 12日
综合 ⁄ 共 1437字 评论关闭
新的linux服务器,不知道具体的配置: 一:查看cpu more /proc/cpuinfo | grep "model name" grep "model name" /proc/cpuinfo 如果觉得需要看的更加舒服 grep "model name" /proc/cpuinfo | cut -f2 -d:   二:查看内存 grep MemTotal /proc/meminfo grep MemTotal /proc/meminfo | cut -f2 -d: free -m |grep "Mem" | awk '{print $2}' 三:查看cpu是32位还是64位 查看CPU位数(32 or 64) getconf LONG_BIT 四:查看当前linux的版本 more /etc/redhat-release cat /etc/redhat-release 五:查看内核版本 uname......
阅读全文
  • 04月
  • 25日
综合 ⁄ 共 1167字 评论关闭
昨天看了看概率DP的题,主要都是在推公式。状态转移方程是把该状态分成disjoint sample space,再向后转移。 dp[i][j]常用于该状态到最终状态的期望值,所以状态向后转移。 这里面,dp[i,j]=2+p[i,j,0]*dp[i,j]+p[i,j,1]*dp[i,j+1]+p[i,j,2]*dp[i+1,j] +2是因为只要要进行选择,无论结果如何,一定会消耗2 energy,然后下一步可能在[i,j],[i+1,j],[i,j+1] 这一题也可以记忆化搜索,直接从后向前递推也OK。 之前WA了一次是因为少了特判p[i][j][0]=0,因为出现在分母上,我print了一下发现如果分母=0那个dp[i][j]就不会输出== #incl......
阅读全文
  • 04月
  • 12日
综合 ⁄ 共 851字 评论关闭
The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the total number of bits in the code, print the sequence of gray code. A gray code sequence must begin with 0. For example, given n = 2, return [0,1,3,2]. Its gray code sequence is: 00 - 0 01 - 1 11 - 3 10 - 2 Note: For a given n, a gray code sequence is not uniquely defined. For example, [0,2,3,1] is also a valid gray code sequence accordin......
阅读全文
  • 02月
  • 15日
综合 ⁄ 共 250字 评论关闭
#define asmlinkage __attribute__((regparm(0)))  define fastcall __attribute__((regparm(3))) 意思是,最多可以使用3个寄存器(或许是eax,edx,ecx)来传送前3个参数,其他参数则压入栈中,那么 #define asmlinkage __attribute__((regparm(0))) 的意思就是使用0个寄存器来进行参数传递,是使得调用这个函数时的所有参数都压入栈中, 相对于fastcall的使用方式当然是要慢一些了.
阅读全文
  • 02月
  • 07日
综合 ⁄ 共 5016字 评论关闭
【文章标题】: 乱涂C#多线程05【文章作者】: 有酒醉【作者邮箱】: wuqr32@sina.com【下载地址】: 自己搜索下载【作者声明】: 只是感兴趣,没有其他目的。失误之处敬请诸位大侠赐教!--------------------------------------------------------------------------------【详细过程】记住,我们只能使用监督程序同步访问对象引用,而不是值类型.当Monitor.Enter接收值类型时,它首先将进行一次封箱,每一次封箱产生新的对象,这将不会导致同步访问.   示例 - 传递值类型  // CValueTypeDemo.cpp// Author by Yzl#using < mscorlib.dll......
阅读全文
  • 02月
  • 06日
综合 ⁄ 共 253字 评论关闭
SQL Server 2005远程连接 错误error:40错误 SQL2005 远程连接出现error:40错误 原因是因为 SQL Server2005 默认的设置为不允许远程连接,就会导致此失败。 提示:provider:命名管道提供程序, error:40-无法打开到 SQL Server 的连接)。实例(默认是“SQLEXPRESS”) 方法: 开始->配置工具->SQL Server 外围应用配置器->服务和连接外围应用配置器-> 选database Engine的“远程连接”->本地连接和远程连接 ,设置为使用 TCP/IP即可。
阅读全文
  • 01月
  • 15日
综合 ⁄ 共 3234字 评论关闭
The Famous ICPC Team Again Time Limit: 30000/15000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 555    Accepted Submission(s): 257 Problem Description When Mr. B, Mr. G and Mr. M were preparing for the 2012 ACM-ICPC World Final Contest, Mr. B had collected a large set of contest problems for their daily training. When they decided to take training, Mr. B would choose one of them from the problem set. All the problems in the problem set had been sorte......
阅读全文
  • 01月
  • 14日
综合 ⁄ 共 4814字 评论关闭
官方网站  www.opencv.org.cn 一前辈的日志  : http://vinjn.spaces.live.com/?_c11_BlogPart_BlogPart=blogview&_c=BlogPart 另一前辈的日志  : http://blog.csdn.net/gnuhpc/category/549384.aspx opencv 数据读写操作+图像噪声+ MFC下OpenCV源代码  : http://www.opencv.org.cn/forum/viewtopic.php?f=1&t=5299 OpenCV能实现运动目标的自动提取再跟踪吗  : http://www.opencv.org.cn/forum/viewtopic.php?f=1&t=7885&start=0 利用MFC的Picture控件显示图像和视频/摄像头画面(VS2008+OpenCV2.0) ......
阅读全文