自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(109)
  • 资源 (30)
  • 收藏
  • 关注

原创 Dos递归遍历目录文件(支持环境变量延迟扩展)

目前Internet上上充斥的dos递归遍历目录文件都不支持环境变量延迟扩展,从而导致在对遍历出的文件进行进一步处理的时候会出现问题。本文提供了一种支持环境变量延迟扩展的目录文件遍历方式。echo offsetlocal enabledelayedexpansion::指定起始文件夹set DIR="%cd%":: 参数 /R 表示需要遍历子文件夹,去掉表示不遍历子文件夹:: %%f 是一个

2018-01-02 18:25:09 1189

原创 Combination Sum (lintcode 135)

Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.The same repeated number may be chosen from C unlimited number of t

2017-12-21 18:20:12 198

原创 amazon phone interview

Reverse the word in a sentence. Like: input ”Hello world Amazon”, output “olleH dlrow nozamA”#include <string>#include <iostream>#include <cstdio>using namespace std;class Solution{public: stat

2017-12-21 18:11:02 482

原创 Two Sum

Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution, and you may not use the same ele

2017-12-15 13:16:41 218

原创 Rotate Image

You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Note: You have to rotate the image in-place, which means you have to modify the input 2D matrix direct

2017-12-10 22:32:41 460

原创 Reverse Linked List

Reverse a singly linked list./** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */class Solutio

2017-12-07 13:05:51 188

原创 Triangle

Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the following triangle[ [2], [3,4], [6,5,7],

2017-12-05 19:15:14 359

原创 全排列生成的迭代算法

Given a collection of distinct numbers, return all possible permutations.目前web上大多数解法都是递归解法,基于“所有的递归算法都存在对应的迭代算法”的基本原理,本文提出了一种迭代算法,通过online judge。class Solution {public: static vector<vector<int> >

2017-12-04 23:57:39 1657

原创 Trie树(字典树)的实现

Lintcode 442上实现Trie树 http://www.lintcode.com/zh-cn/problem/implement-trie/class TrieNode{public: TrieNode() { for(int i = 0; i < 26; i++) { children[i] = nullptr;

2017-11-28 18:47:28 310

原创 linux shell awk常用函数积累

去空格字符串处理函数function ltrim(s) { sub(/^[ \t\r\n]+/, "", s); return s }function rtrim(s) { sub(/[ \t\r\n]+$/, "", s); return s }function trim(s) { return rtrim(ltrim(s)); }

2017-11-24 18:51:20 351

原创 awk日期转时间函数实现

版本1function date2ms(params, param_len){ for(cursor=1; cursor <= param_len; cursor++) { printf params[cursor]" " } result = (params[1]-1973-(params[1]-19

2017-10-26 20:11:00 2073

原创 基于docker的TensorFlow开发环境搭建

build docker-based tensorflow platform

2017-08-21 17:11:32 445

原创 RFID、LoRa和NB-IoT相关总结

RFIDLoRaNB-IoTu-blox(符合3GPP R13 NB-IoT标准的SARA-N2模块)Boudica 120和Boudica 150(华为) 上海移远BC95集成开发Boudica 120模块(与该公司的M35 GPRS模块管脚兼容)北京传承互联开发的NB-IoT物理网DTU透传模块集成了移远的BC95模块

2017-06-22 19:45:11 6583

原创 c++中的Raw String的Macro用法

宏定义在C++中用于引用Raw String的方案总结

2017-05-15 18:27:43 2045

原创 基于SignalR的Web实时消息交互方式的原理、使用和调试工具

SignalR文档和手册 https://www.asp.net/signalrGithub上的SignalR相关Wiki https://github.com/SignalR/SignalR/wikiMicrosoft开源的dotnet中的SignalR实现原理的源码 https://github.com/Microsoft/dotnet在调试和验证SignalR的过程中使用的Web调试工具

2017-04-26 21:24:47 2397

转载 手机设计公司最基本的六个部门:ID、MD、HW、SW、PM、Sourcing、QA

用一个较简单的阐释,一般的手机设计公司是需要最基本有六个部门:ID、MD、HW、SW、PM、Sourcing、QA。1、ID(Industry Design)工业设计 包括手机的外观、材质、手感、颜色配搭,主要界面的实现与及色彩等方面的设计。 例如摩托罗拉“明”翻盖的半透明,诺基亚7610的圆弧形外观,索爱W550的阳光橙等。这些给用户的特别感受和体验都是属于手机工业设计的范畴,一部手机是否

2017-03-20 17:03:06 1929

原创 流程图设计工具开发

基于VS2010和QT5.5的流程图设计工具代码:http://download.csdn.net/download/liushaofang/9767610

2017-03-02 10:25:49 814

原创 Android绕过usb主机permision确认对话框framework修改方案

在Android平板上连接USB读卡器,每次启动应用程序时总是会出现USB权限确认对话框提示(如下图所示)。 即使点选“默认情况下用于该USB设备后”在设备重启后也会出现该权限提示,最后笔者通过修改Android Framework层的代码解决,解决方案的原理可以自行分析Android Framwork源码。 解决方案如下:修改 ($ANDROID_PROJ)\frameworks\ba

2017-01-11 21:08:21 3798 1

原创 android opengl es入门示例

自己依据https://developer.android.com/training/graphics/opengl/index.html写的一个直接使用opengl es操作示例。其中用到的shader使用的developer guide中的triangle shader,有时间再详细解释代码含义。下载链接为:http://download.csdn.net/detail/liushaofang/

2016-11-25 19:25:19 400

原创 分布式监控系统

美团CAT https://github.com/dianping/cat http://tech.meituan.com/CAT_in_Depth_Java_Application_Monitoring.htmlAkamai互联网实时监控 https://www.akamai.com/cn/zh/solutions/intelligent-platform/visualizing-akam

2016-11-10 18:14:19 544

原创 手机root后system file提示Read-only的解决办法

adb -s 设备名 shell 进入手机su切换为root账户mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system 重新挂载system文件系统Done!!!对于Android 6.0以上的系统,需要调用disable-verity,因此整个命令序列为: adb root adb disable-verity ...

2016-10-28 12:06:14 10005

原创 p2p网络架构

BitTorrent Client http://www.bittorrent.org/ http://www.utorrent.com/intl/zh/ https://github.com/qbittorrent/qBittorrent http://www.libtorrent.org/ https://transmissionbt.com/Tracker ServerDHT

2016-10-10 17:01:12 729

原创 mbed相关资源

mbed官网:https://www.mbed.com/zh-cn/ 开发者社区:https://developer.mbed.org/ 官方代码仓库https://github.com/ARMmbed/mbed-os 国内镜像 http://git.oschina.net/snikeguo/mbedOS源码阅读工具推荐:QT Creator、Source Insight

2016-09-19 19:51:35 789

原创 Keil uVision5 导入pack问题

从http://www.keil.com/dd2/Pack/#/eula-container上下载找到自己要下载的standalone的pack文件后,在安装过程中一定断网,不然Package Installer默认会先在线进行下载,断网后选择离线pack文件后才能够正常安装。

2016-08-21 00:03:53 40115

原创 小米盒子3的刷机方式

对于不能将小米盒子和PC连接到LAN中的同学,可以采用如下方式对小米盒子3进行刷机 1. 找一根公对公的标准USB接口数据线,并将小米盒子3和PC进行连接; 2. 通过adb发现设备后执行adb reboot recovery; 3. 迅速将小米盒子端连接的USB线拔下,将带有刷机包的U盘插入到小米盒子3中(这一步至关重要,速度一定要快,要赶在小米盒子正常启动前完成); 4. 系统能够正常进

2016-08-07 19:31:36 25605 8

原创 基于libfiber的高并发服务优化策略

在网络和IO访问并发程度较高的应用场景中,通过使用libfiber进行优化,通过ab压力测试工具和perf性能测试工具进行测试发现,使用fiber(协程)能够显著优化并发访问质量,原因是协程将操作系统基于线程的调度策略修改为基于IO资源的调度策略,一个线程中可以有多个协程,但是同时运行的只有一个协程,并且存在一个epoll协程,epoll协程的主要作用是进行协程间的调度。 libfiber的源码地

2016-07-27 18:35:00 1443

原创 设计模式分类及介绍

http://blog.csdn.net/wulingmin21/article/details/6753363

2016-06-27 18:11:20 349

原创 Machine Vision知识积累

0. 视觉系统基本组成 (注.本部分转自以下链接http://www.cnblogs.com/yssongest/p/4524472.html) ①工业相机与工业镜头 ②光源 ③传感器 ④图像采集卡 ⑤PC平台 ⑥视觉处理软件 ⑦控制单元 1. 行业应用软件 汉王MVStudio 2. 机器视觉库 HALCON:大恒机器视觉库 visionPr

2016-06-02 15:20:03 685

原创 bypass android usb host permission confirmation dialog

http://stackoverflow.com/questions/13726583/bypass-android-usb-host-permission-confirmation-dialog http://blog.csdn.net/mlj1668956679/article/details/14122787

2016-05-24 12:42:54 1339

原创 Google I/O 2016 Keynote个人总结

Google I/O 2016于05月18~05月20日在Mountain View的Shoreline Amphitheatre举办,从Google CEO Sundar Pichai发布的Keynote presentation video中,个人进行对相关技术关键字进行了总结。 1. Google Search 2. Google Translation 3. Google AI

2016-05-22 12:18:39 1372

原创 OJ平台汇总

leetcode: https://leetcode.com/ 提交错误能够给出错误的数据,比较好调试。浙江大学 Online Judge(ZOJ): http://acm.zju.edu.cn/ 国内最早也是最有名气的OJ,打开速度快。北京大学 Online Judge(POJ): http://acm.pku.edu.cn/JudgeOnline/ 举行在线比赛比较多,数据比ZOJ上的

2016-05-22 11:22:02 19857

原创 Minimum Window Substring

Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).For example, S = “ADOBECODEBANC” T = “ABC” Minimum window is “BANC”.Note:

2016-05-15 22:28:29 371

原创 Substring with Concatenation of All Words

You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a concatenation of each word in words exactly once and wit

2016-05-15 16:29:37 494

原创 Longest Substring Without Repeating Characters

Given a string, find the length of the longest substring without repeating characters.Examples:Given “abcabcbb”, the answer is “abc”, which the length is 3.Given “bbbbb”, the answer is “b”, with the le

2016-05-08 22:36:22 615

原创 Intellij IDEA, Android Studio, Eclipse,Gradle, Maven, Ants关系概述

越来越多的Android项目开始抛弃Eclipse+ADT的开发环境采用Android Studio+Gradle进行开发,在Github上clone源码偶尔又会发现需要采用Maven进行构建,这些工具集之间到底存在什么关系呢?0. 为什么要引入这些IDE和Build Tools借用网上的一句话来回答引入这些IDE和Build Tools的原因: ”一般而言,一个比较正规的项目都不会基于IDE 进

2016-05-05 10:50:09 1130

原创 Add Two Numbers

You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linke

2016-05-04 23:08:00 471

原创 Partition List

Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.You should preserve the original relative order of the nodes in each of the

2016-05-04 22:12:01 366

原创 Minimum Depth of Binary Tree

Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node./** * Definition for a binary tree node.

2016-05-03 09:44:50 310

原创 Maximum Depth of Binary Tree

Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node./** * Definition for a binary tree node.

2016-05-03 09:16:11 339

原创 Two Sum

Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution.Example: Given nums = [2, 7, 1

2016-05-03 08:37:00 334

Linux网络子系统

论文描述了Linux网络子系统的实现,包括Socket编程中用到的系统调用在Linux内核中的实现。这是最近研究Linux网络的过程中发现的一篇较好的文章。愿意通过CSDN与同行共享。

2011-05-01

git community book

一个总结社区git使用的电子书,个人觉得非常实用,原文链接为:http://gitbook.liuhui998.com/index.html

2015-11-28

chromiumrenderingpipeline.pdf

webview chromium rendering pipeline technology share. Android WebView渲染流程技术分享。

2020-03-25

VC6.0串口编程实用教程

由于项目需要用到串口编程,博览群书,发现本教程最实用,不敢独享特共享于CSDN中为中国的软件事业做出贡献的社会精英。全书分别描述了通过DOS API、Windows API、MSComm控件、第三方串口通信类进行串口程序设计的方法,并通过西门子短信服务模块TC35的串口控制模块的开发融汇了前面的串口编程,我强烈推荐。

2009-02-17

mac pdfsplit command tool

小而美的mac版pdf拆分命令行工具 使用方式:pdfsplit 页号,比如pdfsplit 10,总页数为10,会拆分为[1-10]页和[11-20]页两个子文件

2022-04-12

CPU技术指标查看工具如VT-X

一个能够在windows上查看CPU的位数、DEP支持和硬件虚拟化支持的小工具

2010-12-14

Mac的Visual Studio Code的CodeLLDB插件

mac visual studio code的CodeLLDB插件,用于调试C/CPP代码,插件配合Code Runner进行使用,下载后可以通过code --install-extension 插件路径进行离线安装。

2020-10-20

Concurrent Programming in Java Design Principles and Pattern

Concurrent Programming in Java Design Principles and Pattern英文版 2.48M Java并发编程设计原则与模式_第二版(原书中文版) 19.4M Concurrent_Programming_in_Java_Design_Principles_Lecture DougLea

2018-07-27

嵌入式Linux用户态操作GPIO接口代码和测试程序

嵌入式Linux中在用户态中操作GPIO接口的代码及相应的测试程序

2015-11-13

SimpliciTI协议栈

TI提供的自组网协议栈SimpliciTI,安装后包括文档和代码以及相关驱动文件,官网很难下,所以就上传了,方便同仁,希望能对大家的工作有所帮助

2013-02-22

android mediacodec surface sample

android mediacodec解码MP4文件H264视频的示例代码,音频解码后续加上

2016-11-28

基于Qt 5.5的流程图设计开发代码(QT自带)

本工程是使用QT 5.5和VS2010开发的流程图设计简易工具,QT SDK和VS的QT插件下载请参考:http://blog.csdn.net/joy58061678/article/details/50982576,源码参考URL为:http://doc.qt.io/qt-5/qtwidgets-graphicsview-diagramscene-example.html

2017-03-01

android opengl es sample

自己依据Displaying Graphics with OpenGL ES Developer Guide编写的open gl es示例程序。可供Render入门学习。

2016-11-25

嵌入式Linux ADC、串口GPRS、用户态操作GPIO接口、基于距离传感器的车辆通过性检测算法

采用较好的接口封装与回调的方式实现了ADC距离传感器数据的采集,用户态GPIO接口的读写控制,串口GPRS模块的通信和基于距离传感器的车辆通过检测算法。

2015-11-13

嵌入式Linux UUID生成代码接口及测试程序

嵌入式Linux中采用软件方式动态生成UUID的代码接口和测试程序

2015-11-13

嵌入式linux串口操作接口及测试代码

嵌入式Linux的串口操作接口及测试代码

2015-11-13

logtool Android系统日志抓取脚本

支持在安装adb的window上抓取系统日志,同时支持用户指定应用的包名抓取指定应用的日志,使用起来非常方便,比自己通过Android Studio下面去选择然后复制粘贴要快很多。

2016-04-23

apk反编译工具集合

apk反编译常用工具:apktool dex2jar auto_sign smali baksmali axmlprinter2等。 (建议大家搜索源头下载,这样能够保证工具是最新的,这些工具只能保证是上传时间的官网最新工具。)

2015-12-22

pdf password remover

解压后将脚本文件和exe文件放到需要去掉密码的pdf目录,在bat脚本中将密码修改为实际的密码,即能去掉pdf文件的密码,免除每次打开文档都需要需要输入密码的痛苦。

2018-01-02

crack_tools.zip

apk解包和封包工具apktool 2.3.4版本; dex2jar、jd-gui及backsmali代码逆向分析工具; signapk等签名工具集合; jadx-gui去壳分析工具及非root设备导出文件工具。

2020-05-29

shell_detacher.7z

非Root的Android设备的脱壳工具集合,包括VirtualXposed、FDex2、TotalCommander和Jadx,目前验证正常脱壳。

2020-02-18

VMwareTools9.9.0在32位Ubuntu 14.04中的安装补丁

因为交叉编译工具在64-bit的linux上运行问题多多,所以果断在VMware Workstation 11.0.0 build-2305329上安装了32-bit的ubuntu 14.04 LTS版本,但是在安装VMware Tools的过程中出现了无法发现主机win7操作系统和客户机ubuntu操作系统的共享文件夹的问题,后来发现是VMware Tools在安装过程中出现了各种版本的错误,主要原因是Ubuntu 14.04的内核版本为3.19.0,因此出现了函数不兼容的问题,主要包括“没有f_dentry成员“、”没有找到d_alias成员“、”smp_mb_before_clear_bit函数找不到“、”smp_mb_after_clear_bit函数找不到“等问题,用了几天用光盘共享文件,实在受不了了,决定解决,好好看了引用的头文件和各种结构体,把遇到的问题解决了,并且成功实现了win7主机操作系统和客户机ubuntu操作系统的文件共享,既然解决了就共享吧,有和我用相同平台的可以试试,有啥不明白的,还可以继续站内探讨!^_^,顺带感谢阿里的一位内核工程师带给我的共享精神,自己也会将这次研发的驱动努力上传到Linux Kernel中。

2015-10-08

win7 64 python Scrapy安装库

win7 64上安装scrapy需要的库文件,自己逐个下载之后进行了测试和打包,安装步骤链接为:http://www.cnblogs.com/zhxhdean/p/3580224.html,大家也可以根据链接逐个下载。

2016-11-21

linux网络编程示例

Internet domain server启动命令:./server 端口号 Internet domain client启动命令:./client 服务器IP地址 端口号 Unix domain server启动命令:./U_server 不存在的文件路径 Unix domain client启动命令:./U_client 不存在的文件路径

2018-01-25

ios_jailbreak_tools.zip

altserver_installer_and_patcher Impactor_0.9.52 MobileTerminal.ipa Cydia AFC2 lib patcher

2020-03-20

tomcat6.0虚拟目录和域名配置

本文详细介绍了tomcat6.0下的虚拟目录和域名配置,以飨web开发同行

2008-11-16

研究生论文撰写原则和指南

概述了论文撰写的规范和投稿原则,主要讨论了研究方法和科技论文撰写和投稿的注意事项

2008-12-01

Computer Architecture-A Quantitative Approach (3ed & 4ed)

计算机体系结构-量化的研究方法,包括第三版和第四版的中文和英文对照版本,希望能够对同行的体系结构学习与研究有所帮助,并期待第5版的共享,谢谢!

2012-03-26

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除