来自:http://shine-it.net/index.php/topic,16142.0.html 在openerp展示界面通常是通过定义class的view(xml文件)来实现的。 有时这种方法不能支持用户自定义字段的需求,于是就可以通过重写fields_view_get()、 read()来...
分类:
其他好文 时间:
2014-07-18 20:08:24
阅读次数:
271
今天再给Android项目工程中的包重命名时出现了这个错误(之前重命名的时候就没有出现,郁闷): An unexpected exception occurred while creating a change object. see the error log for more details 效...
分类:
其他好文 时间:
2014-07-18 20:05:21
阅读次数:
337
答案:这个比较简单//HTML进行编码和解码Console.WriteLine(System.Web.HttpUtility.HtmlEncode("我是中文字符!"));Console.WriteLine(System.Web.HttpUtility.HtmlDecode("<h1>我...
分类:
Web程序 时间:
2014-07-18 19:30:23
阅读次数:
202
题目:输入正整数a,b,c,输出a/b的小数形式,精确到小数点后c位。a,b #include#includeint main(){ int a,b,c,x,y,mod,m,r,i; while(~scanf("%d %d %d",&a,&b,&c)) { print...
分类:
其他好文 时间:
2014-07-18 16:27:38
阅读次数:
192
这里讲的是Firefly《暗黑世界》碎片合成的流程部分的代码,这个主要是消息解析的部分,好吧上代码,代码路径app/game/gatenodeapp/compound.py。#coding:utf8'''Created on 2013-3-21物品合成@author: lan (www.9miao....
分类:
其他好文 时间:
2014-07-18 09:09:27
阅读次数:
204
描述:本接口主要是根据城市名称 + 线路名称 模糊查找城市公交线路信息。
开源api接口:http://openapi.aibang.com/bus/lines?app_key=f41c8afccc586de03a99c86097e98ccb&city="+cityName+"&q="+line
其中cityName = URLEncoder.encode(cityName,"utf-8")...
1.rar
解压
rar e source.rar
2.tar.gz
解压
tar -zxvf source.tar.gz
压缩
tar -zcvf target.tar.gz source1 source2
3.bz2
解压
tar -jxvf source.bz2
压缩
tar -jcvf target.bz2 source1 source2...
分类:
系统相关 时间:
2014-07-17 15:17:52
阅读次数:
230
输入两个正整数nint main(){ int n,m,i; double sum; while(~scanf("%d %d",&n,&m)) { sum=0; for(i=n;i<=m;i++) { sum+=...
分类:
其他好文 时间:
2014-07-17 14:29:32
阅读次数:
300
读写分离(Read/Write Splitting)。1.原理:让主数据库处理事务性增、改、删操作(INSERT、UPDATE、DELETE),而从数据库处理SELECT查询操作。2.诞生原因:2.1 为了确保数据库产品的稳定性,很多数据库拥有双机热备功能。也就是,第一台数据库服务器,是对外提供增删...
分类:
数据库 时间:
2014-07-17 14:24:57
阅读次数:
264
int access(const char *filenpath, int mode);功 能: 确定文件或文件夹的访问权限。mode,要判断的模式在头文件unistd.h中的预定义如下:#define R_OK 4 /* Test for read permission. */#define W_...
分类:
数据库 时间:
2014-07-17 13:11:46
阅读次数:
327