- 博客(47)
- 收藏
- 关注
原创 unity3d入门
Unity3D中的脚本变量可见范围http://blog.163.com/shininglore@126/blog/static/961841802013412101454833/
2014-12-16 11:21:41 434
原创 git相关
git跟多个远程git服务器关联方法在远程服务器上做了mkdir /opt/git/test.git然后再cd /opt/git/test.gitgit init --bare在客户端已经关联了一个git服务器的git代码做以下操作以下命令会失败git remote add origin git@your_server:/opt/git/test.git
2014-11-30 11:25:35 400
转载 awake和start的区别
Awake在MonoBehavior创建后就立刻调用,Start将在MonoBehavior创建后在该帧Update之前,在该Monobehavior.enabled == true的情况下执行。
2014-11-25 09:18:06 579
转载 cocos2d-x相应知识问答
问:cocos2d-x的屏幕适配解决方案Cocos2d-x2.0.4之后pEGLView->setDesignResolutionSize(480, 320, kResolutionNoBorder);第三个参数,找到定义:讲得很清楚了:kResolutionExactFit:靠拉伸变形来填满屏幕,本例来说背景图会变形来填充屏幕,因为1024:768=1.3, 480:320=
2014-10-20 11:54:27 454
原创 unity lua资源更新
unity lua资源更新http://game.ceeger.com/forum/read.php?tid=18009&fid=16
2014-09-17 11:23:18 608
原创 Python information
sys.stdout.isatty()Exampleif sys.stdout.isatty(): # You're running in a real terminalelse: # You're being piped or redirected
2014-09-04 16:43:18 513
翻译 An interesting document about c10k and more
http://stackoverflow.com/questions/4391847/what-is-the-practical-hard-limit-on-socket-connections-per-server
2014-09-04 16:38:23 369
原创 linux最大文件数修改
修改最大文件限制临时性ulimit -n 20000长期修改:1)、解除 Linux 系统的最大进程数和最大文件打开数限制:vi /etc/security/limits.conf 复制代码代码如下:# 添加如下的行* soft noproc 11000* hard noproc 11000* soft nofile 4100
2014-08-14 17:34:42 356
转载 gevent的一片入门好文章
http://cmgs.me/life/gevent-good-bad-uglygevent: the Good, the Bad, the Ugly2011-11-01 by Kelvin Peng这是一篇翻译的文章,原文见http://code.mixpanel.com/gevent-the-good-the-bad-the-ugly/转载的话麻烦加入原文和
2014-07-30 17:58:30 1670
转载 cocos2d-x的socket多线程通信
http://blog.csdn.net/qinning199/article/details/17569273本文由qinning199原创,转载请注明:http://www.cocos2dx.net/?p=167最近做一个联网实时交互的游戏,游戏中需要使用socket保持长连接,来保证客户端与服务器端进行实时交互。以下贴出自己的一些代码:因为so
2014-07-28 22:40:24 1253
原创 statsd study
https://www.digitalocean.com/community/tutorials/installing-and-configuring-graphite-and-statsd-on-an-ubuntu-12-04-vps
2014-07-10 16:31:29 452
转载 设置ulimit值(Linux文件句柄数量)永久生效
http://blog.csdn.net/hishe/article/details/6078752http://blog.sina.com.cn/s/blog_520fb00d0100hnso.htmlinux 默认打开文件数linux 默认打开文件数为1024个,通过ulimit -a 可以查看open files修改这个限制可以使用ulimt -SHn
2014-07-07 11:54:51 8126
转载 比较提交 - Git Diff
比较提交 - Git Diff你可以用 git diff 来比较项目中任意两个版本的差异。$ git diff master..test上面这条命令只显示两个分支间的差异,如果你想找出‘master’,‘test’的共有 父分支和'test'分支之间的差异,你用3个‘.'来取代前面的两个'.' 。$ git diff master...testgit d
2014-06-24 12:31:46 635
转载 对初学者有用的10个Git技巧
对初学者有用的10个Git技巧来源: 作者:zltjiangshi 新兴技术是一个将开发模式和习惯做法带入主流的催化剂。有人称这是一种"真爱无价"现 象,这是一部80年代的电影名字,讲述一个书呆子想成为时尚人的故事,“租借”他高中暗恋的对象做其女朋友。最近的一个例子似乎就是Git的兴起。Git是一个开源的版本控制系统, 大幅度改善了正规化源代码管理的情
2014-06-23 11:33:14 397
转载 linker command failed with exit code 1 (use -v to see invocation)的错误调试
出处:http://blog.csdn.net/duxinfeng2010/article/details/8265273
2014-06-21 22:19:06 444
转载 CentOS 搭建pure-ftpd
http://hi.baidu.com/sudoer/item/a2d66dd12db20295260ae7f4CentOS 搭建pure-ftpd本文主要讲解pure-ftpd服务器的搭建,以及虚拟用户的添加与使用【虚拟用户没有涉及到MYSQL,如需MYSQL的虚拟用户,请掠过此文】 1、找到最新版本的PureFTPd去网站http://download.pureftpd
2014-06-11 10:08:07 875
转载 Redis配置文件参数说明
http://www.cnblogs.com/wenanry/archive/2012/02/26/2368398.htmlRedis配置文件参数说明配置文件参数说明: 1. Redis默认不是以守护进程的方式运行,可以通过该配置项修改,使用yes启用守护进程 daemonize no2. 当Redis以守护进程方式运行时,Redis默认会把pid写入/var/r
2014-05-29 18:13:36 512
原创 python的sftp管理
python的http://www.pythonforbeginners.com/modules-in-python/python-secure-ftp-module
2014-05-11 11:16:23 752
转载 cdn相关
A (Address) 记录是用来指定主机名(或域名)对应的IP地址记录。用户可以将该域名下的网站服务器指向到自己的web server上。同时也可以设置您域名的二级域名。 别名记录(CNAME)也被称为规范名字。这种记录允许您将多个名字映射到同一台计算机。 通常用于同时提供WWW和MAIL服务的计算机。例如,有一台计算机名为“host.mydomain.com”(A记录)。 它
2014-05-06 23:10:37 429
原创 fabric
fabrichttp://docs.fabfile.org/en/latest/usage/env.htmlfabric中的env作用
2014-04-16 16:58:33 776
原创 python相应包
Fabric boto==2.9.9', 'gevent==0.13.8', 'pycrypto==2.6', 'ws4py==0.2.4', 'supervisor==3.0b2', 'superlance==0.8', 'requests==1.2.3', '
2014-04-16 14:15:40 642
原创 python中的安装
easy_install的安装wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | sudo python安装完成以后可以轻松:easy_install d
2014-04-14 16:14:46 398
原创 vim环境创建for python
centos 中ctag的安装http://hi.baidu.com/zjial1/item/f139f527431baecaa5275aee
2014-04-14 11:37:18 358
原创 python中的多进程
https://docs.python.org/2/library/multiprocessing.htmljiang'ji
2014-04-11 22:40:12 481
转载 python中的os模块
http://www.cnblogs.com/now-fighting/p/3534847.htmlos可以获取进程的信息
2014-04-11 13:11:55 388
转载 面试中的常用算法
http://www.csdn.net/article/2014-04-10/2819237-Top-10-Algorithms-for-Coding-Interview
2014-04-11 12:49:46 424
原创 nginx 403 forbidden问题
nginx 403 forbidden问题查看nginx.conf配置把user nobody改成user '用户'中的用户改成跟你被forbidden的资源是一样的用户,如root等
2014-03-27 17:12:28 925
原创 mysql数据库常用命令和方法
1.导出数据库(sql脚本) mysqldump -u 用户名 -p 数据库名 > 导出的文件名 mysqldump -u root -p db_name > test_db.sql
2014-03-14 14:44:22 385
原创 nginx根据http_user_agent中包含的内容进行跳转
在nginx.conf中加上了以下配置location /api/ { root /opt/sites/gac.release3.haalee.com; if ($http_user_agent ~* "Version/10001"){ rewrite ^/(.*) http://gac.stg.haalee
2014-03-14 14:08:42 1118
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人