`
JackyCheng2007
  • 浏览: 250123 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
首先,了解堆的定义:堆是这样一种类似于完全二叉树的数据结构,要求双亲结点的值比子节点大(或者小)。如果是大,就叫大根堆;如果小,就是小根堆。由此,根节点一定是最大数或者最小数。 这样,算法就分为下面几个步骤: 1. 把序列整理成大根堆 2. 把大根堆的根和序列最后一个数交换 3. 把除去最后一个数后剩下的子序列再变成大根堆 4. 重复2和3直到序列的第二个数为止 那么如何把一个序列变成大根堆,这是一个递归算法,大凡树结构相关的算法,递归总是少不了的,因为树本身就是一个递归结构。假设一棵树的左右子树已经是大根堆,那么要把这棵树变成大根堆的过程就是: 1. 在根和他的左右子节点中找到最大值: 2. ...
在Linux中,使用su db2inst1用户登陆后,运行db2cc命令后报错, 错误如下: Xlib: connection to ":0.0" refused by server Xlib: No protocol specified 解决办法如下: 使用在终端中以root身份登陆,运行xhost local:db2inst1,然后再以db2inst1身份登陆后运行db2cc,问题解决
List profiles: /opt/ibm/WebSphere/ProcServer/bin/manageprofiles.sh -listProfiles Delete profile ./manageprofiles.sh –delete –profileName [profile name]   
To remove your DB2 product:    1. Optional: Drop all databases. You can drop databases using the Control Center (on Linux platforms only) or the drop database command. Database files remain intact on your file systems when you drop an instance without dropping databases first.    2. Stop the DB2 Adm ...

DB2 常用命令

    博客分类:
  • DB
显示连接 db2 list applications db2 list applications | grep IP db2 list applications | grep IP | grep keywords 统计个数 db2 list applications | grep IP | grep keywords | wc -l 断开连接 db2 force application all db2 force application ( 122, 55458 )
From: http://blog.csdn.net/zhouyin1988/archive/2009/07/05/4323004.aspx Linux:mount命令挂载共享文件 挂接Windows文件共享   Windows网络共享的核心是SMB/CIFS,在linux下要挂接(mount)windows的磁盘共享,就必须安装和使用samba软件包。现在流行的linux发行版绝大多数已经包含了samba软件包,如果安装linux系统时未安装samba请首先安装samba。可以到www.samba.org网站下载最.新的版本。   当windows系统共享设置好以后,就可以在linux ...
大家都说Python简洁高效,我也得学会用她来提高我的做事效率。哈哈 引用 From: http://www.woodpecker.org.cn:9081/doc/abyteofpython_cn/chinese/ch01s04.html 读一下像ESR这样的超级电脑高手谈Python的话,你会感到十分有意思:     *       Eric S. Raymond是《The Cathedral and the Bazaar》的作者、“开放源码”一词的提出人。他说Python已经成为了他最喜爱的编程语言。这篇文章也是促使我第一次接触Python的真正原动力。     *       ...
有时候用VNC View打开远程linux桌面时,桌面显示不出来,只有一个灰色背景加上一个命令行。这时候需要在vnc server上设置一下: 编辑 /root/.vnc/xstartup [root@localhost ~]# vi /root/.vnc/xstartup 去掉下面两行的注释: unset SESSION_MANAGER exec /etc/X11/xinit/xinitrc 执行下面的命令重启vnc server [root@localhost ~]# vncserver -kill :1 [root@localhost ~]# vncserv ...
假设在windows server1 上共享了一个文件夹share,如果想在别的linux上mount这个目录: mount -fs //server1\\share /mnt/share -o username=username,password=password 用户名和密码是指访问windows server1的这个共享目录的用户名和密码。
定义函数 - def func(): def fib(n): # write Fibonacci series up to n """Print a Fibonacci series up to n.""" a, b = 0, 1 while b < n: print(b, end=' ') a, b = b, a+b print() def 是函数定义关键字。后面跟函数名称和参数列表,以冒号结尾,另起一行,并缩进一个TAB开始函 ...
   http://blog.csdn.net/pongba/archive/2009/01/14/3776586.aspx 应当最大限度地加强和发挥自己独特的组合,而不是寻求单项的超越。    1. 专业领域技能:成为一个专业领域的专家,你的专业技能越强,在这个领域的不可替代性就越高。这个自是不用多说的。    2. 跨领域的技能:解决问题的能力,创新思维,判断与决策能力,Critical-Thinking,表达沟通能力,Open Mind 等等。    3. 学习能力:严格来说学习能力也属于跨领域的技能,但由于实在太重要,并且跨任何领域,所以独立出来。如何培养学习能力,到目前为止我所 ...
Business Process Choreographer - Human Task Manager & Business Flow Manager four eyes principle Business Process Choreographer provides instance- and rule-based authorization for business processes and tasks enabling you to model sophisticated authorization scenarios based on process context, o ...
WebSphere Process Server Service Component Architecture (SCA) Business Process Choreographer (BPC) Service Integration Bus (SIB) Service Oriented Architecture (SOA) Open Service Oriented Architecture (OSOA) Infrastructure layer - Persistence & Service Integration Bus Runtime layer - SCA ru ...
    在一个良好架构里,良好的安全性是必不可少的。Web Service的安全是SOA架构里的重要内容。 1. 认证 Authentication     认证就是验证你就是那个你说的你。不然,你说你是谁你就是谁吗?这的核实一下,或者你得提供口令,来证明你的身份。最常见的一种方式就是通过用户名和密码。还有一种比较复杂的就是基于X.509数字证书。这个证书是有你信任的机构(比如Verisign)颁发的。这书里包含身份信息,公钥和私钥。私钥加密,公钥解密。这种方式常用于Web Service的提供者和消费者之间的认证。 1. 完整性 Integrity     同样的方式可以用于保证数据传输的完 ...
1. 函数定义 - 字符串连接 def stringConnection(params): ''' comments block ''' return "\n".join(["%s=%s" % (k, v) for k, v in params.items()]) #comments line if __name__ == "__main__": myParams = {"server":"mpilgrim", \ ...
Global site tag (gtag.js) - Google Analytics