http://pkgs.repoforge.org/rpmforge-release/
分类:
其他好文 时间:
2014-05-13 01:49:34
阅读次数:
224
今天想使用String.Format,和平时的用法不一样。直接上代码: [Test]
public void TestMethod6() { string A = "A"; string B = "B"; ...
分类:
其他好文 时间:
2014-05-12 19:38:59
阅读次数:
296
1、格式化字符串操作String.prototype.format = function(args)
{ if (arguments.length>0) { var result = this; if (arguments.length == 1
&& typeof (args) == "objec...
分类:
编程语言 时间:
2014-05-12 04:17:43
阅读次数:
314
Xfce是linux系统下的一个桌面环境,安装方法如下:利用系统自带的yum源,找不到xfce,更新yum源,#wgethttp://mirrors.ustc.edu.cn/epel/6Server/x86_64/epel-release-6-8.noarch.rpm#rpm-ivhepel-release-6-8.noarch.rpm#yumsearchxfce4#yumgroupinfoXfce#yumgroupinstallXfce#..
分类:
其他好文 时间:
2014-05-12 03:46:55
阅读次数:
348
SimpleDateFormate sdf = new
SimpleDateFormate("yyyy-MM-dd HH:MM:ss");String s =
sdf.format(Date)然后这个s输出时的月份老是不对后来看了一下API"yyyy-MM-dd HH:MM:ss"这段室友讲究的M代...
分类:
编程语言 时间:
2014-05-12 03:05:56
阅读次数:
249
volatile 影响编译器编译的结果,指出,volatile
变量是随时可能发生变化的,与volatile变量有关的运算,不要进行编译优化,以免出错,(VC++
在产生release版可执行码时会进行编译优化,加volatile关键字的变量有关的运算,将不进行编译优化。)。例如:volatile ...
分类:
其他好文 时间:
2014-05-11 23:27:27
阅读次数:
404
cocos2dx2.2.1在linux下引用#include "SimpleAudioEngine.h",报错找不到该文件。
修改makefile文件,添加
SHAREDLIBS += -lcocosdenshion
COCOS_LIBS +=$(LIB_DIR)/linux/release/libcocosdenshion.so
并将cocos2d-x-2.2.1/CocosDe...
分类:
系统相关 时间:
2014-05-11 21:12:01
阅读次数:
449
涉及到内存管理,只读,多线程等很多功能时,setter和getter方法也就没那么简单了;当然@property依然强大,很好用; 1:内存管理相关参数:
*:retain: (如果是oc对象类型),生成的setter会自动release旧值,retain新值; *:assign:...
分类:
其他好文 时间:
2014-05-11 17:59:45
阅读次数:
306
Given an array of words and a length L, format
the text such that each line has exactly L characters and is fully (left and
right) justified.You shoul...
分类:
其他好文 时间:
2014-05-11 15:15:29
阅读次数:
287
HFileV2文件
HFileV2文件写入通过StoreFile.Writer-->HFileWriterV2进行写入。
文件格式通过hfile.format.version配置。默认为2,也只有2这个值在0.96可用。
可通过cf中配置DATA_BLOCK_ENCODING配置dataBlock的encoding,
可配置值:NONE,PREFIX,DIFF,FAST_DIFF,PREF...
分类:
其他好文 时间:
2014-05-11 02:57:42
阅读次数:
589