1、动态加载Atlas,并用NGUITools添加Sprite1 UIAtlas MyAtlas = Resources.Load("MyAtlas", typeof(UIAtlas)) as UIAtlas;2 GameObject bagBox = GameObject.Find("BagBox...
分类:
其他好文 时间:
2014-07-19 20:04:52
阅读次数:
195
public Bitmap drawTextToBitmap(Context mContext, int resourceId, String mText) {
try {
Resources resources = mContext.getResources();
float scale = resources.getDisplayMetri...
分类:
其他好文 时间:
2014-07-18 21:23:53
阅读次数:
258
1. 创建maven项目 需要手工创建src/main/java src/main/resources src/test/.. 4个code package2. 把项目转成dynamic web project(Project Facets) 需要配置context root和content...
分类:
Web程序 时间:
2014-07-18 15:28:44
阅读次数:
273
cluster集群要实现vmotion、DRS、HA等功能,EXSI主机必须是两台或以上的数量。那怎么判断vmotion等漂移功能在哪些主机执行的呢?这就引出了集群cluster的概念。所有基于vmotion的功能都是在集群内的EXSI主机实现的,VM只会在集群内做漂移。所有EXSI主机加入集群后,CPU、内存等..
分类:
其他好文 时间:
2014-07-17 20:31:28
阅读次数:
278
cluster集群要实现vmotion、DRS、HA等功能,EXSI主机必须是两台或以上的数量。那怎么判断vmotion等漂移功能在哪些主机执行的呢?这就引出了集群cluster的概念。所有基于vmotion的功能都是在集群内的EXSI主机实现的,VM只会在集群内做漂移。所有EXSI主机加入集群后,CPU、内存等..
分类:
其他好文 时间:
2014-07-17 20:20:52
阅读次数:
194
grails.war.resources = { staginDir,args -> //staginDir 代表项目下的target目录 delete(includeEmptyDirs: true, verbose: true, quiet: false, failonerror: true).....
分类:
其他好文 时间:
2014-07-17 17:36:51
阅读次数:
190
方法一1、57*57像素的png图片方形的就可以。2、拖放到xcode的resources文件夹里。3、选中resources文件夹,addtoproject然后找到图片。方法二找到项目的_info.plist在属性栏里,找到iconfile如果没找到这个属性可以手动添加属性,设置相应的文件路径。
分类:
其他好文 时间:
2014-07-16 16:38:32
阅读次数:
215
在使用DevExpress是总是会出现一些状况。这次同事在他的机器上调试完毕的代码发过来,却出现“未将对象引用设置到对象的实例”的错误,提示是Resources.resx的问题。还有一个提示是LC.exe错误。...
分类:
其他好文 时间:
2014-07-15 12:29:21
阅读次数:
217
出现Out of resources when opening file './xxx.MYD' (Errcode: 24)错误是因为打开的文件数超过了my.cnf的--open-files-limit。open-files-limit选项无法在mysql命令行直接修改,必须在my.cnf中设定,最...
分类:
数据库 时间:
2014-07-14 21:16:24
阅读次数:
247
3Permissions and Security Policy3.1The Permission ClassesThe permission classes represent access to system resources. The java.security.Permission cla...
分类:
编程语言 时间:
2014-07-14 19:14:43
阅读次数:
519