上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要: 环境:Ubuntu、python2.7、django1.9.5 当用django-admin.py startproject projectName创建对应的django项目时出现command not found: django-admin.py情况的解决方案: 找到对应的文件django-adm 阅读全文
posted @ 2016-04-21 23:13 JohnRey 阅读(4276) 评论(0) 推荐(0) 编辑
摘要: 新建django项目: django-admin.py startproject project-name 新建app: python manage.py startapp app-name 或者django-admin.py startapp app-name 同步数据库:当在models.py中新增类时,运行相关命令可以在数据库中创建对应的数据表 ... 阅读全文
posted @ 2016-04-21 21:52 JohnRey 阅读(174) 评论(0) 推荐(0) 编辑
摘要: public void CreateConfigFile (Transform cellParent) { XmlDocument xmlDoc = new XmlDocument (); string rootName = "ChessBoard"; XmlDeclaration xmldecl = xmlDoc.CreateXmlD... 阅读全文
posted @ 2016-04-07 09:48 JohnRey 阅读(1876) 评论(0) 推荐(0) 编辑
摘要: 当此选项设置为Yes,表示自动内存管理当次选项设置为No,表示手动内存管理默认次选项值为Yes,即自动内存管理 阅读全文
posted @ 2016-03-02 13:44 JohnRey 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 安装命令如下:curl-LsSfhttp://github.com/mxcl/homebrew/tarball/master|sudotarxvz-C/usr/local--strip1当brew安装成功后,随意安装自己想要的软件。如wget,命令如下:sudobrewinstallwget 如tr... 阅读全文
posted @ 2016-01-06 11:05 JohnRey 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 下面是我总结的、在u3d中的,三种截屏方法:1、使用Application类下的CaptureScreenshot方法。[csharp]view plaincopyvoidCaptureScreen(){Application.CaptureScreenshot("Screenshot.png",0... 阅读全文
posted @ 2015-08-03 14:54 JohnRey 阅读(564) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.cnblogs.com/sifenkesi/archive/2012/03/12/2391330.html在PC上和IOS上读取XML文件的方式略有差别,经测试,IOS上不支持如下方法载入XML文件:XmlDocument xmlDoc = new XmlDocument... 阅读全文
posted @ 2015-06-10 10:59 JohnRey 阅读(499) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://www.unitymanual.com/thread-23491-1-1.html相信大家在开发过程中,难免会保存一些文件在客户端进行本地化操作。如:配置文件,状态文件,Assetbundle文件等等...最近总有人问我:保存了一个xml在客户端,能读取里面的数据,可是不能修改... 阅读全文
posted @ 2015-06-10 09:55 JohnRey 阅读(733) 评论(0) 推荐(0) 编辑
摘要: 在Android程序设计中,有时候我们需要自定义Toast提示信息的背景颜色和边框颜色,例如下图: 默认的Toast无法实现我们所需要的效果,那么我们只能自定义布局文件,另外Toast的背景形状是圆角的,所以我们需要自定义Shape文件。 步骤如下: 1、在drawable-hdpi下新建一个my_ 阅读全文
posted @ 2015-05-26 17:41 JohnRey 阅读(333) 评论(0) 推荐(0) 编辑
摘要: WIFI 获取WIFI状态 WifiManager wifiManager = (WifiManager)context.getSystemService(Context.WIFI_SERVICE); if(wifiManager != null){ int wifiState = wifiManager.getWifiState(); } 附:Wifi状态有以下... 阅读全文
posted @ 2015-04-30 10:39 JohnRey 阅读(1780) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 下一页