- 博客(54)
- 资源 (2)
- 收藏
- 关注
转载 cocos2d-x 3.x CallFunc
http://blog.csdn.net/star530/article/details/18216679
2014-11-15 22:00:01 807
原创 Xcode6.1 code =4
Unable to run app in SimulatorAn error was encountered while running (Domain = FBSOpenApplicationErrorDomain, Code = 4)
2014-11-05 18:12:23 579
转载 android 1
http://eaglesakura.hatenablog.com/entry/2014/01/12/221356Android NDKでprotocol buffersを利用するProtocol BuffersとはProtocol Buffersは2008年の7月7日=鑑純夏さんの誕生日にGoogleが公開したデータシリアライズ・デシリアライズライブラ
2014-10-29 11:56:15 804
转载 cocos2d-x各种Size
CCEGLView::sharedOpenGLView()->setDesignResolutionSize() //设计分辨率大小及模式 CCDirector::sharedDirector()->setContentScaleFactor() //内容缩放因子 CCFileUtils::sharedFileUtils()->setResourceDirectory() //deprec
2014-10-17 17:37:26 676
转载 cocos2d-x3.2 多点缩放单点滑动
#ifndef __HELLOWORLD_SCENE_H__#define __HELLOWORLD_SCENE_H__#include "cocos2d.h"USING_NS_CC;class HelloWorld : public cocos2d::Layer{public: // there's no 'id' in cpp, so we recommend retu
2014-10-16 17:24:07 948
原创 centos6.5 升级 Python
命令 1 mkdir /usr/local/python27 2 cd '/home/shedlon/Documents/Python-2.7.8' 3 ./configure --prefix=/usr/local/python27 4 make 5 make install 6 mv /usr/bin/python /usr/bi
2014-09-17 13:12:07 483
转载 protocol buffers Scalar Value Types
https://developers.google.com/protocol-buffers/docs/proto
2014-09-11 13:46:27 654
转载 windows下游戏服务器端框架Firefly安装说明及demo运行
http://blog.csdn.net/wangqiuyun/article/details/11150503__________________________________________________________________________________________________1、安装python,我用的是pyt
2014-09-06 11:15:56 590
转载 memcached设定
设置memcached,启动该服务后,memcached服务默认占用的端口是11211,占用的最大内存默认是64M。如果需要修改这两个参数,比如修改端口为10000,内存为512,则输入: D:\memcached\memcached.exe -p 10000 -m 512 -d start , -p 表示要修改的端口, -m表示占用的最大内存(单位为M)。
2014-09-06 10:58:41 567
转载 centos升级python
http://meiyitianabc.blog.163.com/blog/static/10502212720133192489840/查看python的版本[root@localhost ~] python -V Python 2.4.31.先安装GCCyum -y install gcc2.下载Python-2.7.2
2014-08-26 16:31:24 512
转载 cocos2d-x3.2 单点触控
#ifndef _PADDLE_H_#define _PADDLE_H_#include "cocos2d.h"USING_NS_CC;typedef enum tagPaddleState { kPaddleStateGrabbed, kPaddleStateUngrabbed} PaddleState; class Paddle : public Spri
2014-08-22 10:10:10 560
转载 Cocos2d-x3.2 多点触控
//GameScene.h #include "cocos2d.h" USING_NS_CC; class GameScene : public cocos2d::Layer{public: static cocos2d::Scene* createScene(); virtual bool init(); //多点触控回调函数 virt
2014-08-22 10:07:19 669
原创 正则验证
时间HH:MM:II /^(([0-1]?[0-9])|([2][0-3])):([0-5]?[0-9])(:([0-5]?[0-9]))?$/
2014-08-01 10:46:49 466
转载 Cocos2d-x 3.0 动作
//执行一个action动作对象 runAction("action对象"); //暂停一个对象的动作 Director::sharedDirector()->getActionManger()->pauseTarget("对象"); //暂停所有对象的动作 Director::sharedDirector
2014-06-14 19:33:56 850
原创 windows定时删除一天前备份
@echo offd:cd D:/sharedfoldforfiles /S /M *.* -d -1 /c "cmd /c del /f @path"bat文件然后添加window
2014-06-13 18:09:57 762
原创 页面抓取,去除超链接
$page="http://brazil2014.yahoo.co.jp/schedule/list";$html = file_get_contents($page,'r'); $pattern = "/(.*?)/si";preg_match_all($pattern,$html,$pg);//print_r($pg);die;foreach($pg['1'] as $k=>$v){
2014-06-13 12:58:35 608
原创 下载
$rootPath=$_SERVER['DOCUMENT_ROOT'];$filePath = $_GET [filePath];if ($filePath == "")return null;else{$servername = $_SERVER["HTTP_HOST"];$needstr="/^(http:\/\/)?([^\/]+)/i";if(pre
2014-06-09 10:54:19 488
原创 两个时间差几天几小时
$time1=strtotime("2014-6-15 00:00:00"); $time2=strtotime("now"); $sec=$time1-$time2; if($sec < 0){ $sec = -$sec; $datedis['0']="-"; }else{ $datedis['0']="+"; } $year=floor($sec/3600/24
2014-06-09 10:18:25 550
转载 Win7+IIS+PHP+MySql 配置
http://blog.csdn.net/vanglen/article/details/8224683
2014-04-07 11:55:10 730
原创 centos挂在一个共享文件夹
以前服务器只在自己的硬盘做备份,为了防止本机器突然出现大故障,决定将备份同时保存在2个地方。执行命令mount -t cifs //192.168.xx.xx/helpdeskweb_backup /home/backup -o username=yourusername,password=yourpassword,rw,file_mode=0777,dir_mode=0777
2014-03-19 10:17:11 579
转载 MyEclipse中配置struts.xml自动提示
MyEclipse中配置struts.xml自动提示http://www.360doc.com/content/13/0312/01/11719795_270918934.shtml
2014-01-24 15:00:55 628
转载 PHP生成随机字符串,必须包含三项 大写小写数字
public function random_str() { $str = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; $str = str_shuffle($str); return substr($str, 0,8); }在别的function里添加一个正则认证,防止某种形式漏掉
2014-01-09 12:44:30 1246
转载 how to install phpmyadmin on centos6
http://centossrv.com/phpmyadmin.shtml<!--if(self !=top){top.location.href=self.location.href;}// --> window.___gcfg = {lang: 'ja'}; (function() { var po = docume
2014-01-08 10:56:15 51704
转载 Excel生成随机字符串(数字大小写混合)
http://blog.163.com/lpdb2001@126/blog/static/358157642007112094224541/随机小写字母:=CHAR(INT(RAND()*25+97))随机大写字母:=CHAR(INT(RAND()*25+65))随机数字:=CHAR(INT(RAND()*9+48))随机数字大小写字母:IF(INT(RAND()*2)
2014-01-07 16:48:27 2860
原创 xampp新配置,添加一个zend的新站
例如‘ http://localhost:8081/ 连接到一个站的index.php配制方法一。httpd.conf 给Listen增加一个端口,以前是listen 80,现在增加一个,成为Listen 80Listen 8081并且要增加一个ServerNameServerName localhost:8081--------
2013-12-05 08:54:23 741
原创 postfix送mail
安装启动postfix,打开25好端口,http://centossrv.com/postfix.shtml打开25号位置设置好qmail,发信尝试
2013-10-28 10:35:30 581
原创 export mysql data to csv by mysql command
SELECT *FROM t_historyINTO OUTFILE 'D:\1history.csv'FIELDS TERMINATED BY ','ENCLOSED BY '"'LINES TERMINATED BY '\n'
2013-10-24 17:30:28 575
原创 Excel字符串连接
现象: &连接字符串,前面是日期的时候,后面的结果变成数字。解决方法,例子说明 ……&C5&D5 ,假设D5是日期,结果最后变成数字串。解决 ……&C5&TEXT(D5,"yyyy-m-d")就好了现象: 原来8位数字,前面的0全部消失。比如00000033,连接之后变成33解决……&C5&TEXT(D5,"#00000000")
2013-09-05 10:03:50 1551
原创 php 根据指定日期,求出该日期所在周的始末时间和所在月的始末时间
//the Saturday of this week$lastday=date("Y-m-d",strtotime("2013-08-28 Saturday"));echo $lastday;//the first day of this week$endlastday=date("Y-m-d",strtotime("2013-09-27 Saturday"));$endfirstday=d
2013-08-29 10:17:34 824
转载 chart制作
chart.class.php<?phpclass Chart { private static $_first = true; private static $_count = 0; private $_chartType; private $_data;
2013-08-26 12:51:04 715
转载 How to Allow MySQL Client to Connect to Remote MySQL server
http://tweenpath.net/?p=852Bs not allow remote clients to connect to the MySQL database.If you try to connect to a remote MySQL database from your client system, you will get “ERROR 1130: Ho
2013-08-23 15:22:28 1149
原创 svn 流程
[sheldon@localhost Desktop]$ suPassword: [root@localhost Desktop]# vi /etc/passwd[root@localhost Desktop]# service httpd startStarting httpd: [ OK ][r
2013-08-23 14:04:16 758
原创 sendmail发信
(1)配置HOSTNAME在/etc/sysconfig/network里面更改,直接将HOSTNAME=sr-sv-helpdesk-02更改/etc/hosts,内容更改为127.0.0.1 sr-sv-helpdesk-02 sr-sv-helpdesk-02.localdomain localhost4 localhost4.localdomain4::1
2013-08-20 16:38:08 1141
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人