关于Unity3d程序方面的细节及优化(基于移动开发)1、每次创建的脚本对于用不到的Start(),.Update()函数都可以删除掉,尤其后者,即使什么都不做也会在更新。2、不要做复杂的数学运算,比如开方运算Mathf.Sqrt()等,当我们求两个对象的距离的时候,可以直接自己计算求开方根上一级的...
分类:
编程语言 时间:
2014-11-08 13:22:35
阅读次数:
225
MVC中 webapi的使用 和 在其他网站中如何来调用(MVC) 1、webapi的路由规则注册在App_Start\WebApiConfig.cs文件中2、webapi控制器继承父类 apiController 3、调用webapi的方式: get请求http://localhost/api/....
Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree. For example:Given the below binary tree, 1 ...
分类:
其他好文 时间:
2014-11-08 08:11:54
阅读次数:
244
1 在环境变量中不配置JAVA_HOME或者JRE_HONE的情况下(正确配置java的路径)不影响java的使用 2 5 可以正常使用 java -version .... 6 7 但是这种情况下 无法在Tomcat的bin目录下正常启动 start.bat(DOS界面一闪而过10 ...
分类:
其他好文 时间:
2014-11-07 23:27:32
阅读次数:
413
建立序列后,还需要触发器,在插入的时候,新增自增create sequence "seq_unit" increment by 1 start with 1 minvalue 1 maxvalue 999 cycle nocache order;CREATE OR REPLACE TRIGGER "...
分类:
其他好文 时间:
2014-11-07 18:54:37
阅读次数:
189
根据 Google 提供的start for google map sdk for iOS进行一系列的设置,这里就不多说了https://developers.google.com/maps/documentation/ios/startgoogle map sdk for iOS提供了全套的定位和...
分类:
移动开发 时间:
2014-11-07 18:24:35
阅读次数:
216
查找特定字符串并颜色显示
[root@fwq test]# grep -n 'the' regular_express.txt --color=auto
8:I can't finish the test.
12:the symbol '*' is represented as start.
15:You are the best is mean you are the no. 1.
16:The world is the same with "glad".
18:google is the...
分类:
系统相关 时间:
2014-11-07 17:08:59
阅读次数:
251
TL;DR: Please stop using SVN with svn co https://www.metasploit.com/svn/framework3/trunkand start using the GitHub repo with git clone git://github.co...
分类:
Web程序 时间:
2014-11-07 14:40:37
阅读次数:
843
public?class?MainActivity?extends?Activity?implements?OnTouchListener?{
//?放大缩小
Matrix?matrix?=?new?Matrix();
Matrix?savedMatrix?=?new?Matrix();
PointF?start?=?new?Poi...
分类:
移动开发 时间:
2014-11-07 13:16:31
阅读次数:
315
??一般来说网络通讯常用的方式有2种:文本通讯和二进制通讯。php与erlang之间实现文本通讯比较简单,这里就不做讨论,本文主要讨论的是php与erlang实现二进制通讯的实现方法。实现步骤如下:erlang端代码:-module(server).
-export([start/0]).
-define( UINT, 32/unsigned-little-integer).
-define(...
分类:
Web程序 时间:
2014-11-07 13:09:12
阅读次数:
218