- 博客(56)
- 资源 (3)
- 收藏
- 关注
转载 Clang vs GCC
Clang vs GCC (GNU Compiler Collection)Pro's of GCC vs clang:GCC supports languages that clang does not aim to, such as Java, Ada, FORTRAN, Go, etc.GCC supports more targets than LLVM.GCC support
2018-01-16 19:32:38
780
原创 makedepend 安装
问题: 编译openssl时,提示makedepend找不到 解决方法: $ apt-cache search makedepend xutils-dev - X Window System utility programs for development$ sudo apt-get install xutils-dev
2018-01-16 13:06:19
6414
1
原创 Mock 测试应用场景
Mock 应用场景 1. 真实对象具有不可确定的行为 2. 真实对象很难被创建 3. 真实对象某些行为很难触发 4. 真实情况令程序的运行速度变慢 5. 真实对象有用户界面 6. 测试时需要了解真实对象如何被调用 7. 真实对象实际上不存在
2017-12-04 15:58:14
3069
原创 iptables 端口映射
映射80 –> 8080 iptables -t nat -I PREROUTING -p tcp -s 192.168.111.1/24 -d 192.168.111.1 –dport 80 -j REDIRECT –to-port 8080
2017-12-04 15:21:31
330
原创 批处理bat设置网络IP
set IP=192.168.137.1 set MASK=255.255.255.0 set GATEWAY=192.168.137.1set NAME="USB-LAN" netsh interface ip set address %NAME% static %IP% %MASK% %GATEWAY%
2017-12-04 15:04:54
2789
原创 adb命令打开手机设置页面
adb命令打开手机设置页面设置主页面adb shell am start com.android.settings/com.android.settings.Settings安全adb shell am start com.android.settings/com.android.settings.SecuritySettings手机无线信息adb shell am start com.androi
2017-12-04 14:24:28
54307
2
原创 staruml 免费版
staruml 免费版 https://sourceforge.net/projects/staruml/files/staruml/5.0/
2017-08-15 15:52:56
6625
原创 OkHttp 下载文件实现
OkHttp 下载文件实现 public static boolean DownloadFile(final String uri, final String filePath) { OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder().url
2017-01-13 12:44:52
3546
原创 androdstudio工程提交svn过滤文件列表
过滤这些文件 *.iml .gradle /local.properties /.idea/workspace.xml /.idea/misc.xml /.idea/libraries /build
2016-12-15 10:35:01
377
翻译 adb backup 文件格式解析
# STRUCTURE OF THE ADB BACKUP HEADER # 1. Magic: ANDROID BACKUP# 2. Version (1 only): 1# 3. Compression (1=compressed):
2016-12-02 13:25:10
3314
转载 GPIO端口各种模式的区别
GPIO端口各种模式的区别 (1)GPIO_Mode_AIN 模拟输入 (2)GPIO_Mode_IN_FLOATING 浮空输入 (3)GPIO_Mode_IPD 下拉输入 (4)GPIO_Mode_IPU 上拉输入 (5)GPIO_Mode_Out_OD 开漏输出 (6)GPIO_Mode_Out_PP 推挽输出 (7)GPIO_Mode_AF_OD 复用开漏输出
2016-09-09 15:48:24
16851
原创 最经典错误代码调试
最经典错误代码调试if语句较长后加了“;”号,结果条件总是被执行, 大牛也纳闷,反汇编调试找了半天原因sh脚本有两行还有中文换行符,执行时被莫名自动跳过,看代码检查不出问题。
2016-09-07 14:37:25
441
转载 防火墙安全策略之敲门暗号
防火墙安全策略之敲门暗号增强计算机安全性的最后一种方案是最激进的:关闭打开的端口,这会让任何攻击都无法攻破您的计算机。只向能够提供 “秘密敲门暗号” 的用户开放所需的端口,让用户能够输入密码并访问计算机。敲门守护进程 knockd;它监视敲门序列,当发现有效的序列时执行相应的操作,iptables开放指定的端口给用户。配置文件 [opencloseSSH] sequence= 7000,8
2016-09-06 12:09:07
1357
转载 微信里的隐藏功能
微信的隐藏功能(神秘代码) 用法: 在聊天窗口输入框,输入代码,然后发送,会弹出响应内容↓↓↓ 编号 代码 解释 1 //traceroute 打开诊断网络 2 //pickpoi 定位当前位置 3 //fullexit 完全退出微信 4 //sightinfo 打开查看小视频参数(以后你小视频的时候就都显示了) 5 //getf
2016-08-24 18:01:23
916
转载 socat端口转发-穿透网络
------------ | Server | |w/ public IP| ------------ / \ {|<Firewall>|} {|<Firewall>|} |
2016-08-23 12:13:44
7223
转载 有道翻译书签,支持网页翻译和划词翻译
有道翻译书签,支持网页翻译和划词翻译javascript:%20void((function()%20{var%20element%20=%20document.createElement('script');element.id%20=%20'outfox_seed_js';element.charset%20=%20'utf-8',element.setAttribute('src',%20'h
2016-08-22 17:41:34
1630
翻译 智能指针使用指南
智能指针使用指南### SmartPtr Guidelinevoid f( widget* ); (a)void f( widget& ); (b)void f( unique_ptr<widget> ); (c)void f( unique_ptr<widget>& ); (d)void f( shared_ptr<widget>
2016-07-20 09:22:44
338
翻译 android uid gid
#define AID_ROOT 0 /* traditional unix root user */#define AID_SYSTEM 1000 /* system server */#define AID_RADIO 1001 /* telephony subsystem, RIL */#define AID_BLUETOOTH
2016-07-19 17:29:48
534
翻译 MQTT 物联网连接协议
MQTT is a machine-to-machine (M2M)/”Internet of Things” connectivity protocol. It was designed as an extremely lightweight publish/subscribe messaging transport. It is useful for connections with remot
2016-06-21 13:20:31
629
翻译 Linaro Project & Yocto Project
LinaroLinaro’s mission is to bring together industry and the open source community to work on key projects, deliver great tools, reduce industry wide fragmentation and redundant effort, and provide com
2016-05-27 10:21:49
1052
原创 修复img文件挂载错误
挂载错误mount: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error In some cases useful info is found in sysl
2016-05-26 15:03:17
3595
转载 Detect ARM MOVW/MOVT relocations in shared library links
Detect ARM MOVW/MOVT relocations in shared library linksFrom: "Joseph S. Myers" To: binutils at sourceware dot orgDate: Mon, 27 Apr 2009 22:06:39 +0000 (UTC)Subject: Detect ARM MOVW/MOVT relocatio
2016-05-25 16:53:25
582
原创 virtualbox磁盘压缩空间
virtualbox磁盘压缩空间"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" list hdds"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" modifyhd "0d025e3b-b909-43e1-bb96-9a13f9e81381" compact
2016-05-25 11:25:13
1360
原创 MinGW编译的DLL versuffix
编译 libcurl 生成的dll 文件名 libcurl-4.dll, 文件名里多了个数字,从哪里来的?### MinGW libtool versuffix age="$number_minor" *cygwin* | mingw* | *cegcc*) func_arith $current - $agemajor=$func
2016-05-24 10:04:13
333
原创 CURL下载的参数使用
curl_easy_reset(m_pCurl); curl_easy_setopt(m_pCurl, CURLOPT_USERAGENT, "XXX/1.0"); curl_easy_setopt(m_pCurl, CURLOPT_URL, request.url.c_str()); curl_easy_setopt(m_pCurl, CURLOPT_HEADERDAT
2016-05-23 10:03:17
1153
原创 saleae logic 逻辑分析仪
Debug hardware like the pros with the logic analyzer you'll love.官方网站:https://www.saleae.com/
2016-05-20 13:02:47
4443
原创 MinGW 安装和常见库编译
安装程序https://sourceforge.net/projects/mingw/files/Installer/Installing MinGW and MSYSDownload and run mingw-get-inst Select "Use pre-packaged repository catalogues".Review and accept the Lic
2016-05-19 11:38:41
4204
原创 wireshark抓包 TCP 字段详解
在TCP层,字段有以下几个标识:SYN, FIN, ACK, PSH, RST, URG. 它们的含义是: SYN表示建立连接, FIN表示关闭连接, ACK表示响应, PSH表示有 DATA数据传输, RST表示连接重置。 其中,ACK是可能与SYN,FIN等同时使用的,比如SYN和ACK可能同时为1,它表示的就是建立连接之后的
2016-05-19 11:08:38
15295
原创 makedepend: command not found
交叉编译时,碰到的问题:makedepend: command not found解决方案:修改MakefileMAKEDEPEND=$(CC) -M参考:When I set CROSS_COMPILE, `MAKEDEPEND=makedepend` breaks. To fix it, I open the Makefile and cha
2016-05-18 11:43:16
3501
原创 gdb 远程调试
远程调试器gdbserver 192.168.137.1:6006 ./test本地调试器cross-compile-gdb target remote 192.168.137.2:6006 file ./test
2016-03-30 11:04:10
509
原创 Android 开发环境搭建
1. JDK安装 环境变量设置2. Eclipse Eclipse IDE for Java Developers 版本 32位版本和jdk匹配 Eclipse ADT plugin 下载启动Eclipse,点击 Help菜单 -> Install New Software… ?,点击弹出对话框中的Add… 按钮。
2016-03-28 14:11:46
269
COM规范 - the COM specfication
2009-07-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人