Overcommits KVM allows for both memory and disk space overcommit. However, hard errors resulting from exceeding available resources will result in gue...
分类:
其他好文 时间:
2014-07-14 23:36:34
阅读次数:
385
修改代码:AppDelegate.cpp// set FPS. the default value is 1.0/60 if you don't call thispDirector->setAnimationInterval(1.0/30);还有就是:Cocos2dxRenderer.java//...
分类:
其他好文 时间:
2014-07-14 23:16:29
阅读次数:
592
http://www.111cn.net/database/mysql/55392.htm本文章来给各位同学介绍关于mysql 5.5与5.6 timestamp 字段 DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP的区别,希望此教程对各位...
分类:
数据库 时间:
2014-07-14 21:20:53
阅读次数:
377
HttpWebResponse类的作用用于在客户端获取返回的响应的信息,还记得HttpResponse类吗?你是否在写B/S程序的时候,经常用到Response.Write()呢? HttpResponse用于在服务器端设置服务端的响应信息,而HttpWebResponse类用于客户端获取服务器端....
分类:
Web程序 时间:
2014-07-14 20:14:34
阅读次数:
253
交换操作
class HasPtr
{
friend void fun2();
friend void swap(HasPtr&, HasPtr&);
public:
// HasPtr()=default;
HasPtr(const string &s=string()):ps(new string(s)), i(0){}
//对ps指向的stri...
分类:
编程语言 时间:
2014-07-14 17:18:06
阅读次数:
314
接到现场实施的反馈:现在有一系统慢,整个系统卡住了。诊断过程:
1. 检查应用日志,即weblogic日志,发现有堵塞的线程,查到代码是调用的接口
<ExecuteThread: '7' for queue: 'default' has been busy for "994" seconds working on the request "Http Request: /we...
分类:
其他好文 时间:
2014-07-14 17:05:52
阅读次数:
241
#!/usr/bin/pythonimportredefbuffer_line():buf=open("/etc/sae/buffer_1").read()ifnotbuf:return0else:returnint(re.findall("^\d*",buf)[0])defset_last_pos(pos):open("/etc/sae/buffer_1","w").write(str(pos))if__name__==‘__main__‘:appname={}fh=open("/data0/l7.acce..
分类:
编程语言 时间:
2014-07-14 16:41:57
阅读次数:
319
在测试android调用其他应用的activity时,提示找不到对于的activity,经过检查发现在intent-filter的<category>中忘了写<categoryandroid:name="android.intent.category.DEFAULT"/>,自己定义的filter一定要写上这句,这是android默认添加的要求。
分类:
移动开发 时间:
2014-07-14 16:30:02
阅读次数:
223
android.permission.ACCESS_CHECKIN_PROPERTIES允许读写访问"properties”表在checkin数据库中,改值可以修改上传( Allows read/write access to the “properties” table in the checki...
分类:
移动开发 时间:
2014-07-14 16:00:04
阅读次数:
263
打开数据服务netstartmssqlserver关闭数据服务netstopmssqlserver创建数据库createdatabase数据库名引用数据库Use数据库名创建表createtable表名约束--primarykey主键--identity自动增长--default默认--check约束--notnull不为空删除表delete表名--delete删除表内容droptable表..
分类:
数据库 时间:
2014-07-14 11:48:49
阅读次数:
266