摘要: 原文:http://dev.10086.cn/cmdn/bbs/viewthread.php?tid=13719&page=1&extra英文 http://dev.chinamobile.com/cmdn/bbs/thread-13718-1-1.html 如果你有兴趣为Android平台开发游戏,有很多你需要了解的东西。我是Light Racer,Light Racer 3D以及Wixel的开发者,这些游戏目前在Android Market上 有售。我以前也开发过游戏,但Light Racer是我的第一个Android应用程序,我从中学到了很多Android游戏开发知识,也 阅读全文
posted @ 2012-02-09 09:08 sofakeer 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 参考资料Cygwin下如何用fakeclip插件让vim支持用系统粘贴板进行复制粘贴http://www.newsmth.net/pc/pccon.php?id=4842&nid=268217为方便大家学习cygwin,整理一下网上乱起八糟的东东,提高一下大家用cygwin的热情。默认安装cygwin,通过cygwin.bat脚本启动是不支持直接粘贴复制的,这样会带来很多不便。下面是本人实战:基本设置:启动cygwin,右击任务栏中cygwin,选择Properties(属性)-->Misc(选项)-->Quick Edit(快速编辑模式),选中”快速编辑模式“--> 阅读全文
posted @ 2011-10-20 17:04 sofakeer 阅读(1570) 评论(0) 推荐(0) 编辑
摘要: Android 传感器 都有哪些?1 方向传感器2 加速传感器3 重力传感器4 光线传感器5 陀螺仪传感器Sensor.TYPE_ACCELEROMETER:加速度传感器。Sensor.TYPE_GYROSCOPE:陀螺仪传感器。Sensor.TYPE_LIGHT:亮度传感器。Sensor.TYPE_MAGNETIC_FIELD:地磁传感器。Sensor.TYPE_ORIENTATION:方向传感器。Sensor.TYPE_PRESSURE:压力传感器。Sensor.TYPE_PROXIMITY:近程传感器。Sensor.TYPE_TEMPERATURE:温度传感器。深入探讨 Android 阅读全文
posted @ 2011-10-18 23:25 sofakeer 阅读(516) 评论(0) 推荐(0) 编辑
摘要: functioncreateXHR(){returnwindow.XMLHttpRequest?newXMLHttpRequest():newActiveXObject("Microsoft.XMLHTTP");}functiongetappkey(url){xmlHttp=createXHR();xmlHttp.open("GET",url,false);xmlHttp.send();result=xmlHttp.responseText;id_arr='';id=result.match(/namecard=\"true\& 阅读全文
posted @ 2011-06-29 13:12 sofakeer 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 1 (int)是一种类型转换;当我们从int类型到long,float,double,decimal类型,可以使用隐式转换,但是当我们从long类型到int类型就需要使用显式转换,否则会产生编译错误。 2 int.Parse()是一种类容转换;表示将数字内容的字符串转为int类型。   如果字符串为空,则抛出ArgumentNullException异常; &nbsp... 阅读全文
posted @ 2011-06-24 11:15 sofakeer 阅读(205) 评论(0) 推荐(0) 编辑
摘要: function createXMLHTTPRequest(objct) { if (window.XMLHttpRequest) { //Mozilla objct = new XMLHttpRequest(); // if (objct.overrideMimeType) { // objct.overrideMimeType("text/xml"); // } } else if (window.ActiveXObject) { //IE try { objct = new ActiveXObject("Msxml2.XMLHTTP"); } ca 阅读全文
posted @ 2011-06-16 17:23 sofakeer 阅读(823) 评论(0) 推荐(0) 编辑
摘要: @{string a="<a>111</a>";} 想要输出html,可以三种方式:@Html.Raw(a)@MvcHtmlString.Create(a)@{WriteLiteral(a);}@(new HtmlString( "<h1>asdfasd</h1>")) @(Html.Encode("<h1>asdfasd</h1>")) 阅读全文
posted @ 2011-06-14 13:27 sofakeer 阅读(1892) 评论(1) 推荐(0) 编辑
摘要: <html></STYLE> <script type="text/javascript"> function Clock() { var date = new Date(); this.year = date.getFullYear(); this.month = date.getMonth() + 1; this.date = date.getDate(); this.day = new Array("星期日", "星期一", "星期二", "星期三", 阅读全文
posted @ 2011-06-13 00:02 sofakeer 阅读(184) 评论(0) 推荐(0) 编辑
摘要: linux 上网xp 为host ,linux 为guest 一直不能用linux上网搞了两天,上网查了很多资料基本上都不得要领,还好总算能上网了了,总结一下:VM虚拟机连接网络(bridge接方式)A. 在VM虚拟机中选择VM-settings-Hardware-EthernetB. 在Device Status中选择Connect at power on, 在Network connection中选择Bridged.C. 在Linux下,红帽-系统设置-网络,在网络配置中选择新建-以太网连接-vmnics(eth0)-静态设置的IP地址,设置IP如下: 地址:192.168.18.71 子 阅读全文
posted @ 2011-06-11 07:58 sofakeer 阅读(6160) 评论(0) 推荐(0) 编辑
摘要: 'm trying to work through their notepad tutorial and it describes how the Eclipse project should automagically build and re-generate the auto-generated code when a file is saved. That wasn't happening, and looking at their debugging, they suggest the "reset adb" link in the DDMS pe 阅读全文
posted @ 2011-05-27 22:48 sofakeer 阅读(1796) 评论(0) 推荐(0) 编辑