一个int占多少个字节?这个问题我们往往得到的答案是4.可是int究竟占多少个字节,却跟你的机器环境有关.As you can see, the typical data type sizes match the ILP32LL model, which is what most compilers...
分类:
其他好文 时间:
2014-07-25 19:05:41
阅读次数:
272
AJAX ?? what: 一种改善客户端体验的技术。本质上就是在客户端使用js代码,通过浏览器中一个特殊的对象(XMLHttpRequest)异步(浏览器不会销毁当前的页面,客户可以在页面继续其他的操作而不被打断)的向服务器端...
分类:
编程语言 时间:
2014-07-25 00:09:04
阅读次数:
219
什么是游戏开发实体系统框架(一)原文链接:http://www.richardlord.net/blog/what-is-an-entity-framework原文很长,译文将分开几部分,此为第一部分。上周我发布了Ash(一个Actionscript 游戏开发的实体系统框架),后来很多朋友问我说:“...
分类:
其他好文 时间:
2014-07-24 17:24:45
阅读次数:
282
How to use Virstalbox to share files with Linux and Windows, and to move the mouse in and out Virtualbox freely without click Ctrl key, herewith what I have done to achieve both....
private void TestHandlerMessage(){ Message msg = new Message(); msg.what = 1; handler.sendMessage(msg);}在很多Android工具书上,经常出现与上面代码相似的片段。而在真正接触项目,需要对性...
分类:
移动开发 时间:
2014-07-23 15:36:29
阅读次数:
282
WHAT?提高代码运行速度的方法,减少代码的资源占用WHY?这里提出的都是“可以尝试的”方法,有的或许在你的环境根本不起作用,有的则能实实在在产生很好的效果HOW?Logic - 逻辑在知道答案后停止判断按照出现频率来调整判断顺序:让运行最快和判断结果最肯能为真的判断先行,即,让程序更容易进入常见状...
分类:
其他好文 时间:
2014-07-23 15:20:05
阅读次数:
201
Given an input string, reverse the string word by word. For example, Given s = "the sky is blue", return "blue is sky the". Clarification: What consti...
分类:
其他好文 时间:
2014-07-22 23:41:47
阅读次数:
380
What is Application Application和Activity,Service一样是android框架的一个系统组件,当android程序启动时系统会创建一个 application对象,用来存储系统的一些信息。通常我们是不需要指定一个Application的,这时系统会自动帮我....
分类:
移动开发 时间:
2014-07-22 22:47:14
阅读次数:
265
(英文部分为转的。代码是个人代码)
1 What’s inotify
The inotify API provides a mechanism for monitoring file system events. Inotify can be used to monitor individual files, or to monitor directories. When a direc...
分类:
系统相关 时间:
2014-07-22 22:39:53
阅读次数:
476