You should initialize most fields normally, not
lazily. If you must initialize a field lazily in order to achieve your
performance goals, or to break ...
分类:
编程语言 时间:
2014-05-09 18:32:56
阅读次数:
497
在oracle10g中,oracle默认将使用spfile启动数据库,如果spfile不存在,则就会出现上述错误。解决方法:将$ORACLE_BASE/admin/你的数据库名称/pfile/init.ora.628201264542(这串数字未必一样)
copy到$ORACLE_HOME/dbs目...
分类:
数据库 时间:
2014-05-09 16:26:52
阅读次数:
508
Check nagios配置文件报错如下:[nagios@2 etc]$ /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg Nagios Core 4.0.6Copyright (c) 2009-present Nagios Core Development Team and Community Contributor...
分类:
移动开发 时间:
2014-05-07 15:47:14
阅读次数:
449
Chef had an interesting dream last night. He dreamed of a new revolutionary chicken recipe. When he woke up today he tried very hard to reconstruct the ingredient list. But, he could only remember cer...
分类:
其他好文 时间:
2014-05-07 11:23:54
阅读次数:
330
这个问题只要:
1. setsebool -P ftpd_disable_trans 1
2. service vsftpd restart
太纠结了,呵呵...
分类:
其他好文 时间:
2014-05-07 08:22:48
阅读次数:
291
题目:
A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.
Return a deep copy of the list.
思路:
主要是深层复制的问题:
本题比较简...
分类:
其他好文 时间:
2014-05-07 02:44:38
阅读次数:
344
首先,我先说说怎样自定义导航控制器。
1.自定义导航控制器需要新建一个类继承UINavigationController。如图:
2.在initialize方法中,自定义一些属于自己的navigationBar的一些东西。比如:颜色,文字,适配IOS7等等...
/**
* 初始化(每一个类只会调用一次)
*/
+ (void)initialize
{
[UIColor...
分类:
其他好文 时间:
2014-05-06 22:32:33
阅读次数:
356
五一中间断了几天,开始继续。。。
1、
??
Copy List with Random Pointer
A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.
Return a...
分类:
其他好文 时间:
2014-05-06 18:54:59
阅读次数:
386
chen@chen-pc~/demo/abc/bin$railsc
/home/chen/.rvm/gems/ruby-2.0.0-p451/gems/execjs-2.0.2/lib/execjs/runtimes.rb:51:in`autodetect‘:CouldnotfindaJavaScriptruntime.Seehttps://github.com/sstephenson/execjsforalistofavailableruntimes.(ExecJS::RuntimeUnavailable)..
分类:
编程语言 时间:
2014-05-06 16:13:25
阅读次数:
407
Given a binary tree containing digits from 0-9
only, each root-to-leaf path could represent a number.An example is the
root-to-leaf path 1->2->3 which...
分类:
其他好文 时间:
2014-05-05 23:55:36
阅读次数:
407