In order to print Card objects in a way that people can easily read, we need a mapping from the integer codes to the corresponding ranks and suits. A ...
分类:
其他好文 时间:
2014-10-03 16:16:04
阅读次数:
206
In the previous section we added two Time objects, but you also might want to add an integer to a Time object. The following is an alternative version...
分类:
其他好文 时间:
2014-10-03 00:43:13
阅读次数:
212
看来有的人还是对schema的真正含义不太理解,如今我再次整理了一下,希望对大家有所帮助。我们先来看一下他们的定义:A schema is a collection of database objects (used by a user.). Schema objects are the logic...
分类:
数据库 时间:
2014-10-02 20:11:13
阅读次数:
232
Sometimes it is useful for a function to modify the objects it gets as parameters. In that case, the changes are visible to the caller. increment, whi...
分类:
其他好文 时间:
2014-10-02 14:14:33
阅读次数:
232
In the next few sections, we’ll write two versions of a function called add_time, which calculates the sum of two Time objects. They demonstrate two k...
分类:
其他好文 时间:
2014-10-02 11:48:22
阅读次数:
116
--1.查询被锁的情况
select object_name,machine,s.sid,s.serial#
from v$locked_object l,dba_objects o ,v$session s
where l.object_id = o.object_id
and l.session_id=s.sid;
--2.用下面语句kill掉死锁的进程
al...
分类:
数据库 时间:
2014-09-30 16:37:31
阅读次数:
352
We can change the state of an object by making an assignment to one of its attributes. For example, to change the size of a rectangle without changing...
分类:
其他好文 时间:
2014-09-30 02:18:01
阅读次数:
190
The Observer PatternThe Observer is a design pattern where an object (known as a subject) maintains a list of objects depending on it (observers), aut...
分类:
编程语言 时间:
2014-09-29 03:15:49
阅读次数:
287
同事发来2个语句,说语句1跑得慢,语句2很快就出结果。一执行,果然很慢。仔细发现,2个语句不等价。
语句1:
select l.*,o.object_name
from v$locked_object l left join all_objects o on l.object_id=o.object_id;
语句2:
select l.*,o.object_name
from v$...
分类:
其他好文 时间:
2014-09-25 12:15:08
阅读次数:
350
5.使用centreon命令之Commands详细使用,请参考:http://documentation.centreon.com/docs/centreon-clapi/en/latest/user/objects/commands.html#使用centreon的commands参数,可以增、删、改nagios的检查命令。①.列出可用的Nagios命令,使用SHOW动作:1)、命令:centreon-u..
分类:
移动开发 时间:
2014-09-24 16:59:28
阅读次数:
365