using System; using LitJson; string configStr; void Start() { ArrayList info = LoadFile(Application.dataPath,"config1.txt"); ...
分类:
Web程序 时间:
2014-09-18 16:24:24
阅读次数:
143
1. handle exceptionimport systry: a=1/1except Exception, e: print "failed", sys.exc_info()[0]else: print "no exception"finally: print "e...
分类:
编程语言 时间:
2014-09-18 13:09:03
阅读次数:
174
看例子:? 数 据表 collect ( id, title ,info ,vtype) 就这4个字段,其中 title 用定长,info 用text, id 是逐渐,vtype是tinyint,vtype是索引。这是一个基本的新闻系统的简单模型。现在往里面填充数据,填充1...
分类:
数据库 时间:
2014-09-18 11:41:34
阅读次数:
231
------------------------------------
-- 1a. Setup the Org_id
------------------------------------
exec dbms_application_info.set_client_info('204');
------------------------------------
-- 1...
分类:
其他好文 时间:
2014-09-17 20:28:22
阅读次数:
504
iptables 日志LOG target 这个功能是通过内核的日志工具完成的(rsyslogd)LOG现有5个选项--log-level debug,info,notice,warning,warn,err,error,crit,alert,emerg,panic err和error,warn.....
分类:
其他好文 时间:
2014-09-17 18:25:42
阅读次数:
201
#include
#include
#include
#include
#include
using namespace std;
#define MAX_ORDER 11
map> process_info;
struct page{
struct page *lru;
};
struct list_head{
struct pa...
分类:
其他好文 时间:
2014-09-17 12:03:42
阅读次数:
244
# -*- coding: utf-8 -*-import osimport subprocessimport signalclass MockLogger(object): '''模拟日志类。方便单元测试。''' def __init__(self): self.info...
分类:
编程语言 时间:
2014-09-17 10:07:01
阅读次数:
388
http://forkme.info/about-event-loop/概述事件处理模型, 也即是全异步事件处理模型。在以前, 对于那些同时执行多项任务, 但仍能响应用户交互的应用程序通常需要实施一种使用多进程(如linux的fork操作)或者多线程的操作。对于低并发的环境, 这样做无疑能避免进程因...
分类:
其他好文 时间:
2014-09-16 23:41:11
阅读次数:
286
粗略看了一下关系数据库范式介绍,简单记录一下自己的理解 第一范式:指属性达到原子性,即属性不可再进行分割了。例如一张person 表,其中有个字段是个人信息p_info,这个个人信息可再分割成姓名,性别,年龄三个字段。那么person这张表就没有达到第一范式,应把个人信息分解成姓名,性别,年龄之后....
分类:
数据库 时间:
2014-09-16 23:27:01
阅读次数:
305
帮助命令1、man[manual]: /usr/bin/man 获得命令或配置文件的帮助文档,优先查看命令的帮助 格式:man [命令或配置文件] #会同时调用moreE.g. man ls #查看ls命令的帮助信息 man services #查看配置文件services的帮助信息 附-在Linux系统中帮助文件分为九种: 如: man 5 passwd //查看配置文件的帮助 ...
分类:
系统相关 时间:
2014-09-16 22:14:11
阅读次数:
249