2016年3月31日
摘要:
原地址:http://bitcrank.com/blog/2012/02/07/how-to-stop-non-jailbroken-pirates-theory/ Please Note: The following is an approach I have put together to he
阅读全文
posted @ 2016-03-31 13:38
kelisi_king
阅读(245)
推荐(0)
2015年12月8日
摘要:
1.写文件:echo "内容" >> "$path/log.txt"2.判断文件是否存在if [ ! -e "$CODE_PATH" ];thenelsefi3.取时间 (http://www.cnblogs.com/mfryf/archive/2012/03/23/2413362.html)ech...
阅读全文
posted @ 2015-12-08 20:07
kelisi_king
阅读(183)
推荐(0)
2015年4月15日
摘要:
1.cocos2dx 3.0 auto batchhttp://blog.csdn.net/musicvs/article/details/282262992.Lua__index,__newindex,rawget和rawsethttp://blog.csdn.net/wangbin_jxust/...
阅读全文
posted @ 2015-04-15 14:57
kelisi_king
阅读(115)
推荐(0)
2015年3月5日
摘要:
@echo offsetlocal enabledelayedexpansion>tmp.vbs echo On Error Resume Next>>tmp.vbs echo Set jFile = CreateObject("WIA.ImageFile"):jFile.LoadFile WScr...
阅读全文
posted @ 2015-03-05 16:09
kelisi_king
阅读(1275)
推荐(0)
2015年2月4日
摘要:
http://stackoverflow.com/questions/26383926/luhn-algorithm-java 1 static boolean luhn(String pnr){ 2 // this only works if you are certain all inp...
阅读全文
posted @ 2015-02-04 14:41
kelisi_king
阅读(701)
推荐(0)
2015年1月22日
摘要:
1.NDK_ROOT :"please define NDK_ROOT"解决:在build_native.sh 中添加路径NDK_ROOT="/Users/pc/Documents/android/android-ndk-r9d"2.加密库cryptopp编译不过,错误fd_set 不认识解决:ht...
阅读全文
posted @ 2015-01-22 10:29
kelisi_king
阅读(891)
推荐(0)
2015年1月21日
摘要:
1.解压缩n Linux and Mac OS X (Darwin): Download the appropriate package from this page. Open a terminal window. Go to the directory to which you download...
阅读全文
posted @ 2015-01-21 15:54
kelisi_king
阅读(552)
推荐(0)
2013年8月29日
摘要:
subclass UIButton类 重载drawrect方法:- (void)drawRect:(CGRect)rect { // Get the Render Context CGContextRef ctx = UIGraphicsGetCurrentContext(); // Measure the font size, so the line fits the text. // Could be that "titleLabel" is something else in other classes like U...
阅读全文
posted @ 2013-08-29 20:24
kelisi_king
阅读(864)
推荐(0)
2013年8月5日
摘要:
动态替换类的方法在不能改变原有代码的情况下,提供了一种解决方法。貌似这种方法不太常用,不过记下来以备后患~。 功能:用这种方法可以给你的程序提供一些一般方法不能实现的功能。 例子:UIWebView的delegate接口提供了一个shouldStartLoadWithRequest()方法,可以通过NSURLRequest这个对象得到所要装载网页 的详情(head头信息等),但你不能修改这个对象(添加或修改你需要的HTTP请求头信息,比如:“User-Agent”字段),如果HTTP请求的对端,(比如硬件设备)需要各种特殊的头信息,将束手无策。但如果使用方法混合(Method Swizzli.
阅读全文
posted @ 2013-08-05 18:39
kelisi_king
阅读(928)
推荐(0)
2013年7月29日
摘要:
http://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/Multithreading/Introduction/Introduction.html#//apple_ref/doc/uid/10000057i-CH1-SW1/*首先往消息中心注册一个检测针对的observer。*/[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleResult:) name:@"PostNO." ob
阅读全文
posted @ 2013-07-29 19:53
kelisi_king
阅读(2112)
推荐(0)