一。查看内核版本命令:1) [root@SOR_SYS ~]# cat /proc/versionLinux version 2.6.18-238.el5 (mockbuild@x86-012.build.bos.redhat.com) (gcc version 4.1.2 20080704 (Re...
分类:
系统相关 时间:
2014-06-25 22:40:48
阅读次数:
361
/*首页调用指定分类下的销售排行*/function get_cats_top10($cat = ''){ $sql = 'SELECT cat_id, cat_name ' . 'FROM ' . $GLOBALS['ecs']->table('category') . "WHE...
分类:
其他好文 时间:
2014-06-25 17:04:26
阅读次数:
231
启动:
sudo /etc/init.d/mysql start
停止:
sudo /etc/init.d/mysql stop
重启:
sudo /etc/init.d/mysql restart
查看日志:
cat /var/log/mysql.err
cat /var/log/mysql/error.log...
分类:
数据库 时间:
2014-06-24 23:06:43
阅读次数:
242
一:勘误
classifier类中: def fprob(self, f, cat):
if self.catcount(cat) == 0:
return 0
#notice: rember change int to double or float
# + 0.0 or *1.0 is ok, other wise, may get 0.
return self.fc...
分类:
其他好文 时间:
2014-06-24 17:49:42
阅读次数:
211
OK,上一篇总结了executionmodules的用法。这一篇准备总结一下statemodules该怎么写。顺便把上一篇executionmodules遗留下来的那个装饰器给写一下。看一下写的这个模块
root@salt-master:~#cat/srv/salt/_modules/liss.py
importsalt.utils.decoratorsasdecorators
importos
@d..
分类:
其他好文 时间:
2014-06-24 17:00:37
阅读次数:
265
充电时刻——模块
python的标准安装包括一组模块,称为标准库。
模块
>>> import math
>>> math.sin(0)
0.0
模块是程序
任何python程序都可以作为模块导入。
$ cat hello.py
#!/usr/bin/python
print "Hello,signjing!"
$ ./hello.py
Hello,signjing!...
分类:
编程语言 时间:
2014-06-22 15:13:33
阅读次数:
181
我在编写游戏的时候遇到了这个问题, 物理引擎其他的内容还好理解, 就这三个函数就是没找到有人详细的解释一下。 我不知道这个都没弄明白,游戏是怎么做出来的。那我就不吐糟了, 下面的所有内容都是我的个人推断。不知道正不正确。 反正我目前是这么理解的。
我们先来看看这三个函数的定义:
/**
* A mask that defines which cat...
分类:
其他好文 时间:
2014-06-22 08:01:58
阅读次数:
217
local_listener参数有两种书写格式,提供了不同的功能。
监听文件上,1521和1526端口上都有动态监听端口。
[oracle@dbsv admin]$ cat listener.ora
LISTENER=
(DESCRIPTION=
(ADDRESS_LIST=
(ADDRESS=(PROTOCOL=tcp)(HOST=dbsv)(PORT=1521))...
分类:
数据库 时间:
2014-06-21 22:09:49
阅读次数:
400
大纲1、文件的切分和合并工具2、文件的切分:split3、语法格式4、split实战演练5、合并:cat6、文件完整性校验1、文件的切分和合并工具有时候我们可能遇见这种情况,有时文件比较大,想上传到服务器上,但由于服务器管理员为了安全考虑,把上传空间作了限制,比如只能上传20M的..
分类:
其他好文 时间:
2014-06-21 19:38:03
阅读次数:
312
root@OpenstackIcehouse2:~# cat /etc/nova/nova-compute.conf [DEFAULT] compute_driver=libvirt.LibvirtDriver [libvirt] virt_type=qemu libvirt_inject_part...
分类:
其他好文 时间:
2014-06-21 16:38:02
阅读次数:
580