The principle to create Object Constants is that make variables shouldn't be changed stand out using all caps and add constants as static properties t...
分类:
编程语言 时间:
2014-07-02 20:28:47
阅读次数:
210
安装下载,解压和安装:其他下载地址GitHub,Google Code。$ wget http://download.redis.io/releases/redis-2.8.11.tar.gz$ tar xzf redis-2.8.11.tar.gz$ cd redis-2.8.11$ make编译...
分类:
其他好文 时间:
2014-07-02 19:40:00
阅读次数:
275
1) Append a slice b to an existing slice a: a = append(a, b...)2) Copy a slice a to a new slice b: b = make([]T, len(a))copy(b, a)3) Delete item at in...
分类:
移动开发 时间:
2014-07-02 18:52:39
阅读次数:
182
在centos 5下安装软件遇到的问题,google了一圈,是因为系统没有安装编译器,那安装就是了,嘿嘿。解决办法,在SSH下输入下面的命令yum -y install gcc automake autoconf libtool makelinux xinetd 服务不能启动:[root@capaa...
分类:
Web程序 时间:
2014-07-02 17:34:23
阅读次数:
288
废话不多说
1:下载nodejs包
下载地址如下:http://www.nodejs.org/download/
下载source code版本需要解压后到其目录执行./configure,然后make && make install;
而binaries的tar.gz解压后即可.
2:下载mongodb
下载地址如下:http://www.mongodb.org/dow...
分类:
数据库 时间:
2014-07-02 16:42:42
阅读次数:
365
先配置erlang依赖环境yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel安装erlang 16B03rpm --import http://binaries.erlang-solutions.co...
分类:
其他好文 时间:
2014-07-02 10:32:45
阅读次数:
240
今天碰到一个比较坑爹的问题,在centos上用yum安装编译环境,运行:
yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel
结果导致编译cocos2d-x出现错误:
cc1plus: error: unrecognized command line option "-std=c++11"...
分类:
其他好文 时间:
2014-07-02 08:23:01
阅读次数:
290
在现有类和结构体的类型基础上,扩展新的功能。 语法:extension SomeType{// new functionality to add to SomeType goes here}An extension can extend an existing type to make itadopt one or more protocols.Where this is the case,the...
分类:
其他好文 时间:
2014-07-02 07:36:22
阅读次数:
244
postfix_编译时make:***[xsasl_cyrus_server.o]Error1make:***[update]
//如果编译出错,检查出错情况,一般是有包忘了装,要不是参数路径错误;
【注释】:
xsasl_cyrus_server.c:598:error:‘SASL_OK‘undeclared(firstuseinthisfunction)
xsasl_cyrus_server.c:600:warning:fo..
分类:
其他好文 时间:
2014-07-02 06:24:31
阅读次数:
1272
监听和替换多台服务器之间的来回切换一.安装tar zxvf keepalived-1.1.15.tar.gzcd keepalived-1.1.15./configure --prefix=/usr/local/keepalivedmake && make install# 这段配置只是为了使用的方...
分类:
其他好文 时间:
2014-07-01 17:48:39
阅读次数:
215