//-----------------------------------------------------------------------------
// File: bulkloop.c
// Contents: Hooks required to implement USB perip...
分类:
其他好文 时间:
2014-08-16 09:36:50
阅读次数:
254
今天的异常很有意思,叫做android.view.InflateException: Binary XML file line #95: Error inflating class(out of memory) 。
其实是因为out of memory,导致 xml是不可能被充气成功,因此activity的onCreate方法中,
setContentView(R.layout.***)也就不...
分类:
移动开发 时间:
2014-08-16 01:04:09
阅读次数:
313
简单介绍以下几个宏:1) __VA_ARGS__ 是一个可变参数的宏,这个可变参数的宏是新的C99规范中新增的,目前似乎只有gcc支持(VC6.0的编译器不支持)。宏前面加上##的作用在于,当可变参数的个数为0时,这里的##起到把前面多余的","去掉,否则会编译出错。2) __FILE__ 宏在预编...
分类:
其他好文 时间:
2014-08-16 01:00:59
阅读次数:
155
译至:http://d.hatena.ne.jp/hyoshiok/20140813/p1 虽然摩尔法则比较有名(18个月半导体的性能翻番),但与之相比布鲁克斯法则大家对之知之甚少。 http://commons.wikimedia.org/wiki/File%3AFred_Brooks.jpg *...
分类:
其他好文 时间:
2014-08-15 23:40:49
阅读次数:
305
#include
int f(int n);
main()
{
int a=3,s;
s=f(a);
s=s+f(a);
printf("%d\n",s);
}
int f(int n)
{
static int a=1;
n+=a++;
return n;
}static...
分类:
其他好文 时间:
2014-08-15 22:33:19
阅读次数:
170
即时打开innodb_file_per_table选项,依然需要为回滚日志和其他系统数据创建共享表空间,没有把所有数据放在其中是明智的做法,但最好还是关闭它自动增长,因为无法在不重新导入全部数据的情况下给共享表空间瘦身。一些人喜欢是用innodb_file_per_table,只是因为特别容易管理,...
分类:
数据库 时间:
2014-08-15 22:22:19
阅读次数:
238
MyEclipse设置编码方式1、windows->Preferences……打开"首选项"对话框,左侧导航树,导航到general->Workspace,右侧Text file encoding,选择Other,改变为UTF-8,以后新建立工程其属性对话框中的Text file encoding即...
分类:
系统相关 时间:
2014-08-15 20:54:39
阅读次数:
373
1 package Aug14.IO; 2 3 import java.io.*; 4 5 public class TestIO2 { 6 7 public static void main(String[] args) { 8 File file = new Fi...
分类:
其他好文 时间:
2014-08-15 20:50:49
阅读次数:
294
Linux下别名alias设置(输入一个别名即可打印日志)
alias showLog='tail -100f /pboss/iom/domain/iom/log.log'...
分类:
系统相关 时间:
2014-08-15 17:52:09
阅读次数:
273
Found existing config file ./my.cnf on the system.
Because this file might be in use, it was not replaced,
but was used in bootstrap (unless you used --defaults-file)
and when you later start...
分类:
数据库 时间:
2014-08-15 17:50:09
阅读次数:
239