- 2022-01-24学习书
日拱一卒wu
2022年书单一、Mac&iOS相关1.HackingandSecuringiOSApplications:StealingData,HijackingSoftware,andHowtoPreventIt2.【深入解析MacOSX&iOS操作系统】MacOSXInternals-ToTheApple'sCore3.【MacOSX技术内幕】MacOSXInternals:ASystemsApproa
- 在Mac&iOS App中使用ollvm
超哥__
Ollvm,是C/C++的跨平台混淆方式,它提供了指令平坦化的能力,可以吧逻辑变得相当复杂从而阻止逆向工程。网上有很多关于在Android平台使用ollvm的方法,而Windows/iOS/Mac/Linux上则很少介绍,下面对于其他系统简略介绍操作方法,重点介绍Mac/iOSAPP的混淆方法指令替换-mllvm-sub控制流伪造-mllvm-bcf控制流平坦化-mllvm-fla默认会变换所有函
- Mac&iOS退出程序的回调
本帅不良
-(void)applicationWillTerminate:(NSNotification*)aNotification{}程序退出会触发这个回调,当然如果直接点击xcode的stop按钮是不会触发的。目前确认的是:点击退出程序会触发这个方法。闪退会不会触发还不确定。今天要讨论的不是这个方法能用,而是说这个方法不触发的情况!如果小伙伴遇到这个方法不能触发,可以试着查看下info.plist文件
- Mac&iOS Socket
wanglang3081
ISOGame开发总结ISOApplication开发总结Mac开发学习Linux/UnixCandC++study
注:文档中设计涉及的代码也都在本人github目录下,分别为socketServer和socketClient.对应着各个分支。一.Socket简介在UNIX系统中,万物皆文件(Everythingisafile)。所有的IO操作都可以看作对文件的IO操作,都遵循着这样的操作模式:打开->读/写->关闭,打开操作(如open函数)获取“文件”使用权,返回文件描述符,后继的操作都通过这个文件描述符来
- 零基础自制 博客园 “Mac & ios 黑暗” 主题 制作详解 - 精简归纳
JERRY_Z..
JERRY'S教程大本营htmlcssweb网页设计
零基础自制博客园“Mac&ios黑暗”主题1制作详解-精简归纳JERRY_Z.~2020/8/29转载请注明出处!文章目录零基础自制博客园“Mac&ios黑暗”主题1制作详解-精简归纳一、简单说明(零基础、超详细)(1)、为什么要写这篇博客?(2)、博客园如何零基础定制自己的主题?、进入自己的博客主页点击管理、点击设置、当前页面下滑找到博客皮肤及定制CSS、选择一个博客皮肤模板,并写入要替换的CS
- Mac&iOS之多线程
我是一只懒虫
ios开发ios多线程threadfreebsd网络cocoa
转自https://github.com/kejinlu/objc-doc/blob/master/%E5%A4%9A%E7%BA%BF%E7%A8%8B.md#macios%E4%B9%8B%E5%A4%9A%E7%BA%BF%E7%A8%8B大纲一.线程概述二.创建线程1.使用NSThread2.使用NSObject3.POSIXThread三.多线程进阶1.NSOperation&NSOpe
- WebRTC@第四章@编译Mac&IOS版@V1.0.0
wpc320
驾驭开源库WebRTC第四章-编译Mac&iOS版作者:adam鸣谢:老张日期:2015-4-6版本:1.0.0欢迎转载,有问题反馈Q:2780113541,尽量完善系列教程。更新地址:https://github.com/wpc320/webrtc_doc.gitdepot_tools代理设置参考老张《史上最牛逼的墙内下载webrtc代码说明_20150401》0、官方源码svn自2015-
- Mac&iOS Socket
风中舵手
Socket网络编程
一.Socket简介在UNIX系统中,万物皆文件(Everythingisafile)。所有的IO操作都可以看作对文件的IO操作,都遵循着这样的操作模式:打开->读/写->关闭,打开操作(如open函数)获取“文件”使用权,返回文件描述符,后继的操作都通过这个文件描述符来进行。很多系统调用都依赖于文件描述符,它是一个无符号整数,每一个用户进程都对应着一个文件描述符表,通过文件描述符就可以找到对应文
- iOS开发常见错误代码对照表整理
weixin_30335575
登录|注册一样的世界,不一样的时间随手记点东西目录视图摘要视图订阅2016软考项目经理实战班学院周年礼-顶尖课程钜惠呈现微信公众平台应用开发CSDN2015年度社区之星荣誉榜Mac&iOS开发常见错误代码对照表2013-01-0816:4073882人阅读评论(0)收藏举报分类:iphone开发(180)Objective-c/**Copyright(c)1985-2008byAppleInc..
- xmind完全破解版,xmind zenv9.3.1中文绿色版(附注册机)
momo_19c
XmindZEN最新版是一款让你专注思维,捕捉每一个灵感瞬间的软件。美且好用的思维导图,历时三年打造桌面级思维导图绘图引擎,14款思维导图结构,包括经典思维导图、鱼骨图、组织架构图等多种图形结构;30个吸引眼球的主题,所有主题被重新设计,为你的每一张脑图注入新活力;多平台同步,XMind支持PC/Mac&iOS,你可以方便地实现跨平台操作。破解版本已经去除了全部的官方试用版的限制,让大家可以像正版
- xmind zen破解版_xmind zenv9.3.1中文破解版(附注册机)
momo_19c
XmindZEN最新版是一款让你专注思维,捕捉每一个灵感瞬间的软件。美且好用的思维导图,历时三年打造桌面级思维导图绘图引擎,14款思维导图结构,包括经典思维导图、鱼骨图、组织架构图等多种图形结构;30个吸引眼球的主题,所有主题被重新设计,为你的每一张脑图注入新活力;多平台同步,XMind支持PC/Mac&iOS,你可以方便地实现跨平台操作。破解版本已经去除了全部的官方试用版的限制,让大家可以像正版
- Mac&iOS Socket
J.Reno
MacSocketiOS
大纲一.Socket简介二.BSDSocket编程准备1.地址2.端口3.网络字节序4.半相关与全相关5.网络编程模型三.socket接口编程示例四.使用select五.使用kqueue六.使用流转载一.Socket简介在UNIX系统中,万物皆文件(Everythingisafile)。所有的IO操作都可以看作对文件的IO操作,都遵循着这样的操作模式:打开->读/写->关闭,打开操作(如open函
- 在Mac&iOS App中使用ollvm
超哥__
layout:posttitle:在Mac&iOSApp中使用ollvmcategories:Reverse_Engineeringdescription:在Mac&iOSApp中使用ollvmkeywords:url:https://lichao890427.github.io/https://github.com/lichao890427/在Mac&iOSApp中使用ollvmOllvm,是C
- Mac&iOS Socket
y角
大纲一.Socket简介二.BSDSocket编程准备1.地址2.端口3.网络字节序4.半相关与全相关5.网络编程模型三.socket接口编程示例四.使用select五.使用kqueue六.使用流转载一.Socket简介在UNIX系统中,万物皆文件(Everythingisafile)。所有的IO操作都可以看作对文件的IO操作,都遵循着这样的操作模式:打开->读/写->关闭,打开操作(如open函
- Mac&iOS Socket编程
jia12216
socketselectBSD-Socket服务器与客户端Mac-iOS
转自https://github.com/kejinlu/objc-doc/blob/master/Socket%E7%BC%96%E7%A8%8B.md这篇文章绝对是无往不利的神奇,我写socket就是从模仿它的例子开始。堪称socket巅峰之作。大纲一.Socket简介二.BSDSocket编程准备1.地址2.端口3.网络字节序4.半相关与全相关5.网络编程模型三.socket接口编程示例四.
- 【IOS网络通信】Mac&IOS Socket编程
lgm252008
大纲一.Socket简介二.BSDSocket编程准备1.地址2.端口3.网络字节序4.半相关与全相关5.网络编程模型三.socket接口编程示例四.使用select五.使用kqueue六.使用流注:文档中设计涉及的代码也都在本人github目录下,分别为socketServer和socketClient.对应着各个分支。 一.Socket简介 在UNIX系统中,万物皆文件(Everythingi
- Mac&iOS Socket
wwwang89123
linux互联网socketkernel网络编程tcpip
大纲一.Socket简介二.BSDSocket编程准备1.地址2.端口3.网络字节序4.半相关与全相关5.网络编程模型三.socket接口编程示例四.使用select五.使用kqueue六.使用流注:文档中设计涉及的代码也都在本人github目录下,分别为socketServer和socketClient.对应着各个分支。一.Socket简介在UNIX系统中,万物皆文件(Everythingisa
- Mac&IOS Socket编程
haogaoming123
转自 https://github.com/kejinlu/objc-doc/blob/master/Socket%E7%BC%96%E7%A8%8B.md 大纲一.Socket简介二.BSDSocket编程准备1.地址2.端口3.网络字节序4.半相关与全相关5.网络编程模型三.socket接口编程示例四.使用select五.使用kqueue六.使用流注:文档中设计涉及的代码也都在本人github
- 【iOS多线程】Mac&iOS之多线程
xuqiang918
多线程iosmac
一.线程概述二.创建线程1.使用NSThread2.使用NSObject3.POSIXThread三.多线程进阶1.NSOperation&NSOperationQueue2.GCD四.进程间通信1.和主线程的通信2.任意线程间的通信五.RunLoop一.线程概述有些程序是一条直线,起点到终点;有些程序是一个圆,不断循环,直到将它切断。直线的如简单的HelloWorld,运行打印完,它的生命周期便
- 【IOS网络通信】Mac&IOS Socket编程
xuqiang918
iossocketmac网络通信
转自 https://github.com/kejinlu/objc-doc/blob/master/Socket%E7%BC%96%E7%A8%8B.md 大纲一.Socket简介二.BSDSocket编程准备1.地址2.端口3.网络字节序4.半相关与全相关5.网络编程模型三.socket接口编程示例四.使用select五.使用kqueue六.使用流注:文档中设计涉及的代码也都在本人github
- Mac&iOS Socket 相关备忘 .
ernest201210
structsockaddr{unsignedshortsa_family;/*addressfamily,AF_xxx*/charsa_data[14];/*14bytesofprotocoladdress*/};sa_family是地址家族,一般都是“AF_xxx”的形式。通常大多用的是都是AF_INET,代表TCP/IP协议族。sa_data是14字节协议地址。此数据结构用做bind、con
- Mac&iOS之多线程
smking
转一个总结得比较好的文章:转自:http://geeklu.com/2012/02/thread/一.线程概述二.创建线程1.使用NSThread2.使用NSObject3.POSIXThread三.多线程进阶1.NSOperation&NSOperationQueue2.GCD四.进程间通信1.和主线程的通信2.任意线程间的通信五.RunLoop一.线程概述有些程序是一条直线,起点到终点;有些程
- Mac&iOS之多线程
ydj213
http://geeklu.com/2012/02/thread/一.线程概述有些程序是一条直线,起点到终点;有些程序是一个圆,不断循环,直到将它切断。直线的如简单的HelloWorld,运行打印完,它的生命周期便结束了,像昙花一现那样;圆如操作系统,一直运行直到你关机。 一个运行着的程序就是一个进程或者叫做一个任务,一个进程至少包含一个线程,线程就是程序的执行流。Mac和iOS中的程序启动,创建
- Mac&iOS Socket
ydj213
大纲一.Socket简介二.BSDSocket编程准备1.地址2.端口3.网络字节序4.半相关与全相关5.网络编程模型三.socket接口编程示例四.使用select五.使用kqueue六.使用流注:文档中设计涉及的代码也都在本人github目录下,分别为socketServer和socketClient.对应着各个分支。https://github.com/kejinlu/socketServe
- Mac&iOS Socket
Mamong
注:文档中设计涉及的代码也都在本人github目录下,分别为socketServer和socketClient.对应着各个分支。一.Socket简介在UNIX系统中,万物皆文件(Everythingisafile)。所有的IO操作都可以看作对文件的IO操作,都遵循着这样的操作模式:打开->读/写->关闭,打开操作(如open函数)获取“文件”使用权,返回文件描述符,后继的操作都通过这个文件描述符来
- Mac&iOS Socket编程
我是一只懒虫
ios开发
转自https://github.com/kejinlu/objc-doc/blob/master/Socket%E7%BC%96%E7%A8%8B.md大纲一.Socket简介二.BSDSocket编程准备1.地址2.端口3.网络字节序4.半相关与全相关5.网络编程模型三.socket接口编程示例四.使用select五.使用kqueue六.使用流注:文档中设计涉及的代码也都在本人github目录
- Mac&iOS Socket编程
cssmhyl
iosserversocketstruct服务器buffer
转自 https://github.com/kejinlu/objc-doc/blob/master/Socket%E7%BC%96%E7%A8%8B.md大纲一.Socket简介二.BSDSocket编程准备1.地址2.端口3.网络字节序4.半相关与全相关5.网络编程模型三.socket接口编程示例四.使用select五.使用kqueue六.使用流注:文档中设计涉及的代码也都在本人github目
- Mac&iOS之多线程
cssmhyl
thread多线程ios网络cocoaFreeBSD
转自 https://github.com/kejinlu/objc-doc/blob/master/%E5%A4%9A%E7%BA%BF%E7%A8%8B.md#macios%E4%B9%8B%E5%A4%9A%E7%BA%BF%E7%A8%8B大纲一.线程概述二.创建线程1.使用NSThread2.使用NSObject3.POSIXThread三.多线程进阶1.NSOperation&NSOp
- Mac&IOS Bonjour
cssmhyl
##Bonjour22 3+###一.Bonjour介绍 4+一般在进行Socket编程或者网络访问的时候,首先需要确认对方网络服务已经开启,且需要知道对方的域名或地址以及端口,然后才可以进行进一步操作。在互联网上好点,网络服务方一般常年开启,且一般IP地址是固定的,另由于DNS服务的存在,只要记住对方的域名便可以。但是在局域网,设备不一定连在上面,即使连上了,服务也不一定开了,每当设备连接到
- Java实现的简单双向Map,支持重复Value
superlxw1234
java双向map
关键字:Java双向Map、DualHashBidiMap
有个需求,需要根据即时修改Map结构中的Value值,比如,将Map中所有value=V1的记录改成value=V2,key保持不变。
数据量比较大,遍历Map性能太差,这就需要根据Value先找到Key,然后去修改。
即:既要根据Key找Value,又要根据Value
- PL/SQL触发器基础及例子
百合不是茶
oracle数据库触发器PL/SQL编程
触发器的简介;
触发器的定义就是说某个条件成立的时候,触发器里面所定义的语句就会被自动的执行。因此触发器不需要人为的去调用,也不能调用。触发器和过程函数类似 过程函数必须要调用,
一个表中最多只能有12个触发器类型的,触发器和过程函数相似 触发器不需要调用直接执行,
触发时间:指明触发器何时执行,该值可取:
before:表示在数据库动作之前触发
- [时空与探索]穿越时空的一些问题
comsci
问题
我们还没有进行过任何数学形式上的证明,仅仅是一个猜想.....
这个猜想就是; 任何有质量的物体(哪怕只有一微克)都不可能穿越时空,该物体强行穿越时空的时候,物体的质量会与时空粒子产生反应,物体会变成暗物质,也就是说,任何物体穿越时空会变成暗物质..(暗物质就我的理
- easy ui datagrid上移下移一行
商人shang
js上移下移easyuidatagrid
/**
* 向上移动一行
*
* @param dg
* @param row
*/
function moveupRow(dg, row) {
var datagrid = $(dg);
var index = datagrid.datagrid("getRowIndex", row);
if (isFirstRow(dg, row)) {
- Java反射
oloz
反射
本人菜鸟,今天恰好有时间,写写博客,总结复习一下java反射方面的知识,欢迎大家探讨交流学习指教
首先看看java中的Class
package demo;
public class ClassTest {
/*先了解java中的Class*/
public static void main(String[] args) {
//任何一个类都
- springMVC 使用JSR-303 Validation验证
杨白白
springmvc
JSR-303是一个数据验证的规范,但是spring并没有对其进行实现,Hibernate Validator是实现了这一规范的,通过此这个实现来讲SpringMVC对JSR-303的支持。
JSR-303的校验是基于注解的,首先要把这些注解标记在需要验证的实体类的属性上或是其对应的get方法上。
登录需要验证类
public class Login {
@NotEmpty
- log4j
香水浓
log4j
log4j.rootCategory=DEBUG, STDOUT, DAILYFILE, HTML, DATABASE
#log4j.rootCategory=DEBUG, STDOUT, DAILYFILE, ROLLINGFILE, HTML
#console
log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender
log4
- 使用ajax和history.pushState无刷新改变页面URL
agevs
jquery框架Ajaxhtml5chrome
表现
如果你使用chrome或者firefox等浏览器访问本博客、github.com、plus.google.com等网站时,细心的你会发现页面之间的点击是通过ajax异步请求的,同时页面的URL发生了了改变。并且能够很好的支持浏览器前进和后退。
是什么有这么强大的功能呢?
HTML5里引用了新的API,history.pushState和history.replaceState,就是通过
- centos中文乱码
AILIKES
centosOSssh
一、CentOS系统访问 g.cn ,发现中文乱码。
于是用以前的方式:yum -y install fonts-chinese
CentOS系统安装后,还是不能显示中文字体。我使用 gedit 编辑源码,其中文注释也为乱码。
后来,终于找到以下方法可以解决,需要两个中文支持的包:
fonts-chinese-3.02-12.
- 触发器
baalwolf
触发器
触发器(trigger):监视某种情况,并触发某种操作。
触发器创建语法四要素:1.监视地点(table) 2.监视事件(insert/update/delete) 3.触发时间(after/before) 4.触发事件(insert/update/delete)
语法:
create trigger triggerName
after/before 
- JS正则表达式的i m g
bijian1013
JavaScript正则表达式
g:表示全局(global)模式,即模式将被应用于所有字符串,而非在发现第一个匹配项时立即停止。 i:表示不区分大小写(case-insensitive)模式,即在确定匹配项时忽略模式与字符串的大小写。 m:表示
- HTML5模式和Hashbang模式
bijian1013
JavaScriptAngularJSHashbang模式HTML5模式
我们可以用$locationProvider来配置$location服务(可以采用注入的方式,就像AngularJS中其他所有东西一样)。这里provider的两个参数很有意思,介绍如下。
html5Mode
一个布尔值,标识$location服务是否运行在HTML5模式下。
ha
- [Maven学习笔记六]Maven生命周期
bit1129
maven
从mvn test的输出开始说起
当我们在user-core中执行mvn test时,执行的输出如下:
/software/devsoftware/jdk1.7.0_55/bin/java -Dmaven.home=/software/devsoftware/apache-maven-3.2.1 -Dclassworlds.conf=/software/devs
- 【Hadoop七】基于Yarn的Hadoop Map Reduce容错
bit1129
hadoop
运行于Yarn的Map Reduce作业,可能发生失败的点包括
Task Failure
Application Master Failure
Node Manager Failure
Resource Manager Failure
1. Task Failure
任务执行过程中产生的异常和JVM的意外终止会汇报给Application Master。僵死的任务也会被A
- 记一次数据推送的异常解决端口解决
ronin47
记一次数据推送的异常解决
需求:从db获取数据然后推送到B
程序开发完成,上jboss,刚开始报了很多错,逐一解决,可最后显示连接不到数据库。机房的同事说可以ping 通。
自已画了个图,逐一排除,把linux 防火墙 和 setenforce 设置最低。
service iptables stop
- 巧用视错觉-UI更有趣
brotherlamp
UIui视频ui教程ui自学ui资料
我们每个人在生活中都曾感受过视错觉(optical illusion)的魅力。
视错觉现象是双眼跟我们开的一个玩笑,而我们往往还心甘情愿地接受我们看到的假象。其实不止如此,视觉错现象的背后还有一个重要的科学原理——格式塔原理。
格式塔原理解释了人们如何以视觉方式感觉物体,以及图像的结构,视角,大小等要素是如何影响我们的视觉的。
在下面这篇文章中,我们首先会简单介绍一下格式塔原理中的基本概念,
- 线段树-poj1177-N个矩形求边长(离散化+扫描线)
bylijinnan
数据结构算法线段树
package com.ljn.base;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Set;
import java.util.TreeSet;
/**
* POJ 1177 (线段树+离散化+扫描线),题目链接为http://poj.org/problem?id=1177
- HTTP协议详解
chicony
http协议
引言
- Scala设计模式
chenchao051
设计模式scala
Scala设计模式
我的话: 在国外网站上看到一篇文章,里面详细描述了很多设计模式,并且用Java及Scala两种语言描述,清晰的让我们看到各种常规的设计模式,在Scala中是如何在语言特性层面直接支持的。基于文章很nice,我利用今天的空闲时间将其翻译,希望大家能一起学习,讨论。翻译
- 安装mysql
daizj
mysql安装
安装mysql
(1)删除linux上已经安装的mysql相关库信息。rpm -e xxxxxxx --nodeps (强制删除)
执行命令rpm -qa |grep mysql 检查是否删除干净
(2)执行命令 rpm -i MySQL-server-5.5.31-2.el
- HTTP状态码大全
dcj3sjt126com
http状态码
完整的 HTTP 1.1规范说明书来自于RFC 2616,你可以在http://www.talentdigger.cn/home/link.php?url=d3d3LnJmYy1lZGl0b3Iub3JnLw%3D%3D在线查阅。HTTP 1.1的状态码被标记为新特性,因为许多浏览器只支持 HTTP 1.0。你应只把状态码发送给支持 HTTP 1.1的客户端,支持协议版本可以通过调用request
- asihttprequest上传图片
dcj3sjt126com
ASIHTTPRequest
NSURL *url =@"yourURL";
ASIFormDataRequest*currentRequest =[ASIFormDataRequest requestWithURL:url];
[currentRequest setPostFormat:ASIMultipartFormDataPostFormat];[currentRequest se
- C语言中,关键字static的作用
e200702084
C++cC#
在C语言中,关键字static有三个明显的作用:
1)在函数体,局部的static变量。生存期为程序的整个生命周期,(它存活多长时间);作用域却在函数体内(它在什么地方能被访问(空间))。
一个被声明为静态的变量在这一函数被调用过程中维持其值不变。因为它分配在静态存储区,函数调用结束后并不释放单元,但是在其它的作用域的无法访问。当再次调用这个函数时,这个局部的静态变量还存活,而且用在它的访
- win7/8使用curl
geeksun
win7
1. WIN7/8下要使用curl,需要下载curl-7.20.0-win64-ssl-sspi.zip和Win64OpenSSL_Light-1_0_2d.exe。 下载地址:
http://curl.haxx.se/download.html 请选择不带SSL的版本,否则还需要安装SSL的支持包 2. 可以给Windows增加c
- Creating a Shared Repository; Users Sharing The Repository
hongtoushizi
git
转载自:
http://www.gitguys.com/topics/creating-a-shared-repository-users-sharing-the-repository/ Commands discussed in this section:
git init –bare
git clone
git remote
git pull
git p
- Java实现字符串反转的8种或9种方法
Josh_Persistence
异或反转递归反转二分交换反转java字符串反转栈反转
注:对于第7种使用异或的方式来实现字符串的反转,如果不太看得明白的,可以参照另一篇博客:
http://josh-persistence.iteye.com/blog/2205768
/**
*
*/
package com.wsheng.aggregator.algorithm.string;
import java.util.Stack;
/**
- 代码实现任意容量倒水问题
home198979
PHP算法倒水
形象化设计模式实战 HELLO!架构 redis命令源码解析
倒水问题:有两个杯子,一个A升,一个B升,水有无限多,现要求利用这两杯子装C
- Druid datasource
zhb8015
druid
推荐大家使用数据库连接池 DruidDataSource. http://code.alibabatech.com/wiki/display/Druid/DruidDataSource DruidDataSource经过阿里巴巴数百个应用一年多生产环境运行验证,稳定可靠。 它最重要的特点是:监控、扩展和性能。 下载和Maven配置看这里: http
- 两种启动监听器ApplicationListener和ServletContextListener
spjich
javaspring框架
引言:有时候需要在项目初始化的时候进行一系列工作,比如初始化一个线程池,初始化配置文件,初始化缓存等等,这时候就需要用到启动监听器,下面分别介绍一下两种常用的项目启动监听器
ServletContextListener
特点: 依赖于sevlet容器,需要配置web.xml
使用方法:
public class StartListener implements
- JavaScript Rounding Methods of the Math object
何不笑
JavaScriptMath
The next group of methods has to do with rounding decimal values into integers. Three methods — Math.ceil(), Math.floor(), and Math.round() — handle rounding in differen