- 博客(49)
- 资源 (49)
- 收藏
- 关注
原创 __cyg_profile_func_enter print function nam
#include #import void __cyg_profile_func_enter (void *, void *) __attribute__((no_instrument_function));void __cyg_profile_func_exit (void *, void *) __attribute__((no_instrument_function));
2014-08-10 00:02:15
2017
转载 ffmpeg convert format
down voteacceptedIf you are looking just for stream copy you can do this quite easily.You can refer following steps.//1. Do initialization using av_register_all();// 2. Open inpu
2014-05-14 17:06:13
760
转载 记几个IOS工具网站
记几个IOS工具网站http://www.scoop.it/t/ios-dev ios 工具推荐网站http://blog.devtang.com/blog/2012/12/02/use-cocoapod-to-manage-ios-lib-dependency/ ios包依赖管理http://sparkinspector.com/ IOS动态运行时分析
2014-05-06 12:37:18
735
转载 kill application from other application on ios 6 using void kill dont work
kill application from other application on ios 6 using void kill dont workup vote2down votefavoritei got jailbreak iphone ios 6in my tweak on ios 4&5
2014-05-06 12:26:34
913
转载 IOS高级开发~开机启动&无限后台运行&监听进程
非越狱情况下实现:开机启动:App安装到IOS设备设备之后,无论App是否开启过,只要IOS设备重启,App就会随之启动;无限后台运行:应用进入后台状态,可以无限后台运行,不被系统kill;监听进程:可获IOS设备运行除系统外的App(包括正在运行和后台运行);配置项目 plist文件添加:UIBackgroundModes
2014-05-06 09:29:01
548
转载 android ndk 获取设备信息(设备SN, 机型,sdk版本)
#include //读取序号 __system_property_get("ro.serialno",m_szDevID); LOGE("%s", m_szDevID); //读取机型 __system_property_get("ro.product.model",m_szDevModel); LOGE("%s", m_sz
2014-03-26 16:17:43
1842
转载 android 自动加所有cpp文件
ALLFILES = $(call walk, $(LOCAL_PATH)/../../Classes) FILE_LIST := hellocpp/main.cppFILE_LIST += $(filter %.cpp, $(ALLFILES)) LOCAL_SRC_FILES := $(FILE_LIST:$(LOCAL_PATH)/%=%)LOCAL_C_IN
2014-02-08 16:27:22
619
原创 android des 加密解密
/** 加密 */ public byte[] enDES(byte[] datasource, String password) { byte[] data = null; try { Log.e("Haj", "data:"+datasource.length+" password:" + password.length()); SecretKeySpec key = n
2014-01-13 14:17:06
972
1
转载 Shell脚本简单总结及编写脚本中的小技巧
主要从以下几个方面进行bash入门级的总结:1、命令历史、命令补全2、管道、重定向3、命令别名和命令替换4、命令行编辑5、文件名通配6、Bash的相关配置文件及变量7、编程(条件判断、循环控制)8、bash中的数组9、shell编程技巧和编程规范 1、命令历史、命令补全 查看命令历史:history-c:清空命令历史-d OFFSET [n]: 删除指定位置的命令-w:保存命令历史至历史文件中,这
2013-12-20 09:01:14
712
转载 MethodSwizzle
void MethodSwizzle(Class aClass, SEL orig_sel, SEL alt_sel){ Method orig_method = nil, alt_method = nil; // First, look for the methods orig_method = class_getInstanceMethod(aClass, orig_se
2013-11-13 11:16:17
553
转载 iOS 6.1 evasi0n jailbreak
iOS 6.1 evasi0n jailbreakThe latest jailbreak is out, and it’s time to dissect it and document all the exploits and techniques it contains. These days, jailbreaks are so well tested that it’s easy
2013-09-13 09:01:31
714
转载 Ituns与iphone的通信协议usbmuxd解析
最开始研究与iphone通信, 都会想当然的google下usb协议, 必经iphone是通过usb线连接到电脑. 其实不然, iTunes是通过TCP协议与iPhone通信的usbmuxdiTunes使用一种叫”usbmux”的东西与iphone通信, 这个东西提供了一个USB - TCP的转换服务. 这个服务在Mac端是由/System/Library/PrivateFramewo
2013-09-02 13:18:34
2402
翻译 coreText
https://developer.apple.com/library/mac/documentation/TextFonts/Conceptual/CocoaTextArchitecture/FontHandling/FontHandling.html#//apple_ref/doc/uid/TP40009459-CH5-SW18Querying Font MetricsNSFont
2013-08-29 08:55:02
651
原创 ios 计算utf8 的字符个数.
支持所有语言的utf8编码的字符串.汇编: 时间效率//// LenUTF8.s// TestASM//// Created by doorxp on 7/5/13.// Copyright (c) 2013 doorxp. All rights reserved.////extern int lenutf(const char *src, bool noAs
2013-07-05 13:44:02
1193
转载 Fixing old libtool installation error
Since lately I’ve been using this blog just as a pinboard for useful stuff, today I will share something with my readership (and more importantly, google’s spiders)I tried to install the dieharder t
2013-06-04 13:32:08
673
转载 How To: Cross compiling libraries for iOS (armv6/armv7/i386)
UpdateI don’t have access to a Mac computer now (actually it has been 3 months) and I couldn’t update the guide to Xcode 4.5 (iOS 6), but the fine gentlemanbengl3rt has done so and the updated s
2013-06-03 12:17:22
1030
转载 tesseract-ocr3.02字符识别过程操作步骤
1、 从http://code.google.com/p/tesseract-ocr/downloads/list下载tesseract-ocr-3.02-vs2008、tesseract-ocr-3.02.chi_sim.tar、tesseract-ocr-3.02.02.tar、tesseract-ocr-3.02.02-doc-html.tar、leptonica-1.68-win32-l
2013-06-03 09:11:26
1093
转载 acl_cpp 非梗阻模块的IPC通信机制
教导的本质恰是在于降服本身身上的动物本能和成长人所特有的全部个性。 在 acl_cpp 的非梗阻框架的设计中,充沛哄骗了操纵体系平台的高并发机制,同时简化了异步编程的过程。然则,并不是所有的操纵都长短梗阻的,实际的法度应用中存在着多量的梗阻式行动,acl_cpp 的非梗阻框架中设计了一种经由过程 ipc 模式使梗阻式函数与 acl_cpp 的非梗阻过程相连络的机制。便是说,在 acl_cpp
2013-05-24 13:10:28
974
转载 acl_cpp中流式编程的设计
一、为什么需要流式编程 首先解释一下什么是流式编程,所谓流式编程是指编程接口可以接收部分输入数据,边接收边处理,不必等待完整数据。这好比 TCP 数据流,因为网络传输的因素,每次读操作并不能保证会获得完整的数据块,每次仅读取一部分数据,多次读取才可能会读到一块完整的数据,基于 TCP 的应用服务也比较多,象 HTTP/SMTP/POP 等服务都是基于 TCP 传输协议进行数据传输
2013-05-24 13:03:11
522
原创 objc 禁止 deprecated 函数 警告
#pragma clang diagnostic push#pragma clang diagnostic ignored "-Wdeprecated-declarations" //deprecated 函数调用#pragma clang diagnostic pop
2013-05-13 09:28:07
758
转载 在cocos2d-x2.0上用shader实现灰度图
简述情况:·游戏运行平台:Android·Cocos2d-x引擎版本:cocos2d-2.0-x-2.0.2·注意:目前cocos2d-x 2.0运行时如果按home键再返回游戏,shader显示会有问题,估计是因为Android将游戏切到后台时释放纹理所导致,这个问题如果我能解决就解决,解决不了的话只能待哲哥他们修复后再用shader吧。 之前在用cocos2d-x 1.0的
2013-05-06 19:26:26
951
转载 GLSL. 语法基础
GLSL语法跟C语言非常相似:1.数据类型:GLSL包含下面几种简单的数据类型float bool :false or tureint向量:vec {2,3,4} 长度为2, 3, 4的float向量bvec {2,3,4} 长度为2, 3, 4的bool向量ivec {2,3,4} 长度为2, 3, 4的int向量矩阵:m
2013-04-18 17:06:43
509
转载 GLSL学习笔记
GLSL语言内置的变量,包括内置的顶点属性(attribute)、一致变量(uniform)、易变变量(varying)以及常量(const),一方面加深印象,另一方面今天的文章可以为以后的编程做查询之用。顶点属性—— 指顶点的信息,OpenGL据此绘制各个图元,对于传统的顶点属性包括坐标、纹理坐标、颜色等GLSL都会设置一个内置变量与之对应,以便在需要时可以在 顶点或片元着色器中直接引用,这
2013-04-18 16:21:55
452
转载 gcc, g++ - GNU 工程的 C 和 C++ 编译器
NAME gcc, g++ - GNU 工程的 C 和 C++ 编译器 (egcs-1.1.2)总览 (SYNOPSIS) gcc [ option | filename ]... g++ [ option | filename ]...警告 (WARNING) 本手册页 内容 摘自 GNU C 编译器 的 完整文档, 仅限于 解释
2013-04-17 12:59:03
2119
转载 C/C++中宏使用总结
.C/C++中宏总结C程序的源代码中可包括各种编译指令,这些指令称为预处理命令。虽然它们实际上不是C语言的一部分,但却扩展了C程 序设计的环境。本节将介绍如何应用预处理程序和注释简化程序开发过程,并提高程序的可读性。ANSI标准定义的C语言预处理程序包括下列命令: #define,#error,#i nclude,#if,#else,#elif,#endif,#if
2013-04-17 09:05:05
496
转载 移除LC_CODE_SIGNATURE
首先保证是二进制文件是 thin的,不能是fat binary(multiarchitecture binary)fat减肥方法lipo -thin armv7 old.bin -o new.bin或者ditto --arch armv7 bin1. 修改load命令的数目,位于0×10处,4个字节 比如,如果load命令的数目是 0x2c,就改为0x2B2.
2013-04-15 12:58:03
1153
转载 Ubuntu上ldid编译和使用
iPhone程序签名时要用到ldid,你可以下载安装ldid:$ sudo apt-get install ldid如果找不到,可以从源代码编译和安装1. 从saurik下载 ldid$ wget http://www.linuxidc.com/system/systemfiles/2011/03/ldid-1.0.610.tgz2. 解压$ tar -zxf ldid-
2013-04-15 09:20:10
777
转载 命令行编译iPhone版的Objective-C程序
开发环境Mac OS X 10.6.7XCode 4.2 /iOS5 SDK源文件hello.m#import int main(int argc, const char *argv[]){ NSLog (@"hello, objective-c!"); return 0;}在命令行编译/Developer/Platforms/iPh
2013-04-13 19:29:59
692
原创 自定义的高效加密解密算法
相同的key每一次加密的密文都不一样.难于破解.整个密文相关.修改其中一段后,以后的数据解密不正确typedef unsigned int Unit;std::string encrypt(const std::string &src,Unit key){ Unit seed = 0; const size_t unitlen = sizeof(Unit);
2013-04-05 23:56:29
4292
原创 3DES 返回数据不对
size_t 返回数据字节长度 = (数据字节长度 + kCCBlockSize3DES-1) & ~(kCCBlockSize3DES - 1);des求返回数据长度,就是求比原数据长度大的最小的8的倍数的数注意红色部分,否则解出的数据后面会多几个字节的数据,内容不定
2013-04-01 18:10:41
532
转载 解决安装macports,不能更新的问题
执行命令 sudo port -v selfupdate,出现超时68-245-171-115:var fanshulin$ sudo port -v selfupdatePassword:---> Updating MacPorts base sources using rsyncrsync: failed to connect to rsync.macports.org:
2013-03-27 16:28:34
3010
转载 删除 Mac OS X 中“打开方式”里重复或无用的程序列表
如果右键菜单的「打开方式」里出现了已不存在的应用程序或者重复的项目,打开终端,执行以下命令:/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local
2013-03-27 16:24:42
2028
原创 JNI 调用 java.lang.String的substring方法
string subStr(const string& m, size_t to){ string retStr = ""; JniMethodInfo minfo; if(JniHelper::getMethodInfo(minfo,"java/lang/String","substring","(II)Ljava/lang/String;")) //此处的分号
2013-03-22 17:49:25
1311
转载 类成员函数的地址
如果是static类型的类成员函数,可以输出其地址,假如是类a;成员函数是staticshuchu();则可以这样输出它的地址。cout一个类在不继承(或者单继承)、多继承、virtual继承、未定义这四种情况下,其“成员函数指针”的大小分别是4, 8, 12, 16字节。以下是转帖:摘要:介绍了如何取成员函数的地址以及调用该地址.关键字:C++成员函数 this指针 调用约定
2013-03-19 09:10:54
2939
原创 常用部分汇编代码与机器码
nop;->90mov al,01;->B0 01mov ax,01;->B8 01 00mov eax,01;->66 B8 01 00 00 00JMP ->E9/EBios:nop->c0 46movs r0,#01->01 20movs r1,#00->00 21cmp r0, #0-> 00 28
2013-03-13 12:41:59
933
转载 xcode 环境变量
Variable ExamplePATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
2013-03-13 09:23:30
1432
转载 get ip address & mac address
#include #include #include #include #include #include #include #include #include #include #include #include #include #include //#include "GetAddresses.h" #define min(a
2013-03-09 00:04:34
837
转载 eclipse console 中文乱码
建置全UTF-8的環境:1.在eclipse.ini的-vmargs下面加上「-Dfile.encoding=UTF-8」。2.eclipse-->Window-->Preferences-->General-->Workspace-->Text file encoding-->UTF-83.Installed JREs-->Default VM Arguments:-->-Dfile
2013-03-08 19:22:03
1438
原创 Android — get MEID
NDKJNIEnv *env;jobject context;/* then call (with error-checking) */jclass cls = (*env)->FindClass(env, "android/context/Context");jmethodId mid = (*env)->GetMethodID(env, context_cls, "getSys
2013-03-07 16:45:15
1645
Synalyze It! Pro Version 1.22 (1.22) 已破解
2019-02-15
010 Editor v9.0.1 64bit for mac
2019-02-15
TexturePacker3.2.1
2014-02-07
TexturePacker3.1.3
2013-09-29
TotalFinder 1.4.18 破解版
2013-07-25
Cornerstone-2.7.10 64bit 破解版
2013-07-24
比较两波形的相似度
2012-06-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人