摘要: 利用闲余时间,把之前的按键录制和播放整理了一些,开发了一个iOS版按键录制、播放的越狱APP,类似按键精灵、触动精灵等按键类的基本功能。脚本采用lua语法格式,可直接执行lua脚本,通过lua和objective-c交互,实现lua脚本执行其他函数的功能。 整个核心模块和架构已经完成,接下来就是各种 阅读全文
posted @ 2017-09-14 11:11 Ethan_村长 阅读(7595) 评论(1) 推荐(0) 编辑
摘要: 先列个大纲 1.模板匹配 2.直方图比较 3.感知哈希算法 4.特征点匹配 阅读全文
posted @ 2017-08-03 18:24 Ethan_村长 阅读(943) 评论(0) 推荐(0) 编辑
摘要: //命令原型:sh -c "echo 密码 | su -c 'ls --help' " //转载请注明:http://www.cnblogs.com/bandy/p/7069503.html NSTask *task = [NSTask new]; [task setL... 阅读全文
posted @ 2017-06-23 13:38 Ethan_村长 阅读(1734) 评论(0) 推荐(0) 编辑
摘要: 1.下载:https://bitbucket.org/chromiumembedded/cef/wiki/BranchesAndBuilding 差不多15G 2.编译:https://bitbucket.org/chromiumembedded/cef/wiki/AutomatedBuildSet 阅读全文
posted @ 2017-06-22 11:50 Ethan_村长 阅读(1007) 评论(12) 推荐(0) 编辑
摘要: 需求分析: 作为以需求为驱动的IT公司,有再奇怪的需求都不奇怪,所以“24小时循测第三方应用”这样的需求也可以接受。业务需求重点为: 1.24小时循测 2.无人值守,自动完成 3.自动界面操作(点击、滑动、输入) 4.比较每个页面是否有bug显示 技术分析: 根据以上业务需求做技术分析: 1.And 阅读全文
posted @ 2016-11-09 14:01 Ethan_村长 阅读(12659) 评论(2) 推荐(0) 编辑
摘要: 原文地址:http://www.jianshu.com/p/f6300eb3ec3d 一、关于runtime 之前在项目中有遇到过用runtime解决改变全局字体的问题,所以再一次感受到了runtime黑魔法的强大,趁现在有机会分享一下对runtime的一些理解。在对象调用方法是Objective- 阅读全文
posted @ 2016-03-03 09:19 Ethan_村长 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://d3caifu.com/ebook/MultiThread.html随着计算机/移动设备不断发展,提供了越来越强大的计算能力和资源,从硬件层面来看首先是CPU的芯片集成度越来越高,提供更快的处理能力;其次是多核化多CPU发展;最后剥离一些图片动画渲染等到独立的协处理器处理,硬... 阅读全文
posted @ 2016-01-27 09:36 Ethan_村长 阅读(920) 评论(0) 推荐(0) 编辑
摘要: int main(int argc, const char * argv[]) { // insert code here... string str3 = "/Users/Ethan/Downloads/aaa/platform-tools/adb shell scre... 阅读全文
posted @ 2016-01-14 09:07 Ethan_村长 阅读(339) 评论(0) 推荐(0) 编辑
摘要: #region 解决中文乱码 Ethan 2016-01-06[DllImport("iTunesMobileDevice.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "AMDeviceCopyValue")]pub... 阅读全文
posted @ 2016-01-12 15:13 Ethan_村长 阅读(827) 评论(0) 推荐(0) 编辑
摘要: 1.需要在设备上安装插件“设置”--“开发者”的选项2.启动"com.apple.mobile.screenshotr"服务3.和设备scoket通讯,拿到截图。 阅读全文
posted @ 2016-01-12 11:48 Ethan_村长 阅读(525) 评论(0) 推荐(0) 编辑
摘要: JPEG文件由八个部分组成,每个部分的标记字节为两个,首字节固定为:0xFF,当然,准许在其前面再填充多个0xFF,以最后一个为准。下面为各部分的名称和第二个标记字节的数值,用ultraedit的16进制搜索功能可找到各部分的起始位置,在嵌入式系统中可用类似的数值匹配法定位。 段结构:段标... 阅读全文
posted @ 2015-11-11 15:09 Ethan_村长 阅读(3277) 评论(0) 推荐(0) 编辑
摘要: cv::Mat leftMat,rightMat,depthMapMat; UIImageToMat(leftImage, leftMat); UIImageToMat(rightImage, rightMat); if (leftMat.type()>0) { ... 阅读全文
posted @ 2015-08-25 16:04 Ethan_村长 阅读(400) 评论(0) 推荐(0) 编辑
摘要: +(void)writeFile:(NSString *)filePath withQuality:(int)quality{ //初始化图片参数 UIImage *image=[UIImage imageNamed:@"testimg.bmp"]; JSAMPLE *image_... 阅读全文
posted @ 2015-08-15 13:55 Ethan_村长 阅读(362) 评论(0) 推荐(0) 编辑
摘要: 由于某种原因,xcode帮我按照了几千个开发和上线证书,需要删除这部分证书: #dir="/Users/Ethan/Library/MobileDevice/Provisioning Profiles/"dir="/Users/Ethan/Desktop/test/"filelist=`ls ... 阅读全文
posted @ 2015-06-03 11:32 Ethan_村长 阅读(476) 评论(0) 推荐(0) 编辑
摘要: Step 1.Make sure the SOCKS tunnel on your work computer allows LAN connections so your iPhone/iPod Touch can connect to it.ssh -N -g -D 1080 user@doma... 阅读全文
posted @ 2015-05-19 16:06 Ethan_村长 阅读(2528) 评论(0) 推荐(0) 编辑
摘要: 1.找到javah命令所在的目录 我的为 /usr/bin/javah2.打开eclipse如图点击第二项3.配置 如图${project_loc}/src-classpath ${project_loc}/bin/classes -d ${project_loc}/jni -jni ${java_... 阅读全文
posted @ 2015-04-22 18:18 Ethan_村长 阅读(452) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://blog.csdn.net/watkinsong/article/details/9849973有一种方式不需要自己配置所有的Sun JDK, Android SDK以及NDK,Eclipse等设置,使用已经配置好的开发套件就可以进行直接的开发,由NVIDIA开发的开发套件T... 阅读全文
posted @ 2015-04-21 14:48 Ethan_村长 阅读(1922) 评论(0) 推荐(0) 编辑
摘要: 参考:http://blog.micro-studios.com/?p=4212代码:http://pan.baidu.com/s/1sjukSDf 阅读全文
posted @ 2015-04-21 13:00 Ethan_村长 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 官方文档:https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/LoadingCode/Tasks/LoadingBundles.htmlframework制作:http://www.cocoachina.com... 阅读全文
posted @ 2015-04-20 17:25 Ethan_村长 阅读(6499) 评论(3) 推荐(0) 编辑
摘要: 加参数可以提升更新的速度方法1:pod install --verbose --no-repo-updatepod update --verbose --no-repo-update方法2: $ pod repo remove master $ pod setup $ pod installcoco... 阅读全文
posted @ 2015-04-17 16:51 Ethan_村长 阅读(354) 评论(0) 推荐(0) 编辑
摘要: 在iOS中使用Quartz画图时,第一步就是要获取画布(图形上下文),然后再画布上做各种操作。先看下CoreGraphics.h这个头文件,就可以知道能够创建多少种上下文类型。#include #include #include #include #include #include #inclu... 阅读全文
posted @ 2015-04-13 12:25 Ethan_村长 阅读(1594) 评论(0) 推荐(0) 编辑
摘要: 线程使用Instruments的CPU strategy view查看代码如何在多核CPU中执行。创建线程可以使用POSIX 线程API,或者NSThread(封装POSIX 线程API)。下面是并发4个线程在一百万个数字中找最小值和最大值的pthread例子:#import struct thre... 阅读全文
posted @ 2015-03-19 18:14 Ethan_村长 阅读(1269) 评论(0) 推荐(0) 编辑
摘要: 代码片段1cv_contourMask_step_tmp=cv_contourMask.clone(); cv::Mat maskImage; UIImageToMat(pathimg, maskImage,true); // m_UIImageToMat1(pathimg, mas... 阅读全文
posted @ 2015-03-19 11:30 Ethan_村长 阅读(751) 评论(0) 推荐(0) 编辑
摘要: Quartz 2D是一个二维图形绘制引擎,支持iOS环境和Mac OS X环境,官方文档:Quartz 2D Programming Guide。一、坐标体系这样的坐标体系就导致我们使用Quartz 2D画的图是倒转的,我们要做以下处理才能得到我们想要的图片效果:1.画布延Y轴下移height2... 阅读全文
posted @ 2015-03-17 16:41 Ethan_村长 阅读(1766) 评论(0) 推荐(0) 编辑
摘要: 最近业余时间整理的一个ios播放器,界面采用storyboard,以前几乎都是用代码布局,但是用过一个项目storyboard后,就感觉storyboard很靠谱,团队合作版本控制的问题解决其实很简单,每个人一个storyboard就可以了。播放代码使用的是avplayer,最大的优化就是播放界... 阅读全文
posted @ 2015-03-13 12:12 Ethan_村长 阅读(4472) 评论(0) 推荐(0) 编辑
摘要: 封装了一下显示和隐藏的脚本,方便mac上的文件隐藏和显示if [ `defaults read com.apple.finder AppleShowAllFiles` = "1" ]; thendefaults write com.apple.finder AppleShowAllFiles -b... 阅读全文
posted @ 2015-03-13 11:58 Ethan_村长 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 解三元二次方程组X,Y,R为未知数,x1,y1,x2,y2,x3,y3为3点坐标(x1-X)²-(y1-Y)²=R²(x2-X)²-(y2-Y)²=R²(x3-X)²-(y3-Y)²=R²- (void)drawRect:(CGRect)rect { CGPoint point1=CGPoin... 阅读全文
posted @ 2015-03-11 10:19 Ethan_村长 阅读(898) 评论(1) 推荐(0) 编辑
摘要: 1.关于 https://itunes.apple.com/us/app/shui-shui-bo-ke-yuan/id512394144?ls=1&mt=8 项目目前为V3.0版,也是我开发的最新版,目前已无法在appstore下载,项目介绍:http://www.cnblogs.com/band 阅读全文
posted @ 2015-03-02 09:42 Ethan_村长 阅读(3280) 评论(21) 推荐(12) 编辑
摘要: 通用库/General LibraryOpenCV无需多言。RAVLRecognition And Vision Library. 线程安全。强大的IO机制。包含AAM。CImg很酷的一个图像处理包。整个库只有一个头文件。包含一个基于PDE的光流算法。图像,视频IO/Image, Video IOF... 阅读全文
posted @ 2015-01-28 11:50 Ethan_村长 阅读(2111) 评论(0) 推荐(0) 编辑
摘要: 获取轮廓#import #import #import @implementation OpenCVHelper+(UIImage *)getImageOutLine:(UIImage *)iputimg{ cv::Mat cvImage; UIImageToMat(iputimg, c... 阅读全文
posted @ 2015-01-23 12:12 Ethan_村长 阅读(726) 评论(0) 推荐(0) 编辑
摘要: #!/bin/sh# autoBuild.sh# CTest## Created by Ethan on 14-11-3.# Copyright (c) 2014年 Ethan. All rights reserved.####################################... 阅读全文
posted @ 2014-12-26 10:10 Ethan_村长 阅读(2652) 评论(0) 推荐(0) 编辑
摘要: 配置好证书,然后在命令行转到项目目录1.清除EthantekiiMac:CTest ethan$xcodebuild clean2.编译EthantekiiMac:CTest ethan$ xcodebuild -target CTest -configuration Release3.打包ipaE... 阅读全文
posted @ 2014-11-03 11:24 Ethan_村长 阅读(6495) 评论(0) 推荐(0) 编辑
摘要: $ sudo apachectl -k start$ httpd -v /Library/WebServer/Documents 阅读全文
posted @ 2014-07-01 20:05 Ethan_村长 阅读(585) 评论(0) 推荐(0) 编辑
摘要: 1.创建一个单例模式来管理xmpp的连接和操作 1 +(XMPPManager *)share 2 { 3 static XMPPManager *_share=nil; 4 static dispatch_once_t onceToken; 5 dispatch_once(... 阅读全文
posted @ 2014-05-28 09:57 Ethan_村长 阅读(17805) 评论(6) 推荐(0) 编辑
摘要: 1.下载XMPPFramework,下载地址:https://github.com/robbiehanson/XMPPFramework2.创建项目并将XMPP库引入:3.添加需要的库文件:4.配置KissXML:OTHER_LDFLAGS 添加 -lxml2HEADER_SEARCH_PATHS ... 阅读全文
posted @ 2014-05-27 10:20 Ethan_村长 阅读(901) 评论(0) 推荐(0) 编辑
摘要: 1.下载ejabberd,下载链接http://www.process-one.net/en/ejabberd/downloads/2.安装,使用默认配置即可,next..3.启动ejabberd,找到路径/Applications/ejabberd-14.05/bin/目录,双击start,在终端... 阅读全文
posted @ 2014-05-27 09:57 Ethan_村长 阅读(839) 评论(0) 推荐(0) 编辑
摘要: CocoaHTTPServer下载地址:https://github.com/robbiehanson/CocoaHTTPServer实现效果:在电脑端输入192.168.0.100:8080,出现上传网页,即可将电脑上的文件上传到app目录中。其实现是在app端建立socket服务监听,将传输的文... 阅读全文
posted @ 2014-05-17 15:31 Ethan_村长 阅读(7527) 评论(0) 推荐(0) 编辑
摘要: 前言ZXing(Github镜像地址)是一个开源的条码生成和扫描库(开源协议为Apache2.0)。它不但支持众多的条码格式,而且有各种语言的实现版本,它支持的语言包括:Java, C++, C#, Objective-C, ActionScript和Ruby。我上周在iOS项目开发中使用了ZXin... 阅读全文
posted @ 2014-02-26 10:24 Ethan_村长 阅读(1530) 评论(0) 推荐(0) 编辑
摘要: 1. 退出xcdoe, 打开终端(Terminal),进入到你的项目目录下2. 在终端键入 git rm --cached [YourProjectName].xcodeproj/project.xcworkspace/xcuserdata/[YourUsername].xcuserdatad/Us... 阅读全文
posted @ 2014-02-21 10:13 Ethan_村长 阅读(2418) 评论(0) 推荐(0) 编辑
摘要: 一、下载链接:http://itunes.apple.com/us/app/shui-shui-bo-ke-yuan/id512394144?ls=1&mt=8二、支持ios5.0+,iphone4+三、截图四、关于 1.icon和界面:不会设计、只会photoshop简单功能。界面山寨?是的。 2.以阅读为主 3.“收藏”和“关注”栏目的数据是存储在客户端,重装会丢失数据 4.内容来源:部分抓取、部分API,抓取的代码是动态配置,网站改了结构我只用改配置。 5.前一版疏于更新,抱歉。 6.维护:基本上不用更新APP,我在网上放了配置,解析dom结构的代码也是配置。 7.请多支持 阅读全文
posted @ 2014-01-19 18:16 Ethan_村长 阅读(3678) 评论(31) 推荐(11) 编辑