自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

zhyh1435589631的专栏

向来缘浅, 奈何情深, 彼此豆蔻,谁许谁地老天荒, 敌不过似水流年, 逃不过此间少年

  • 博客(460)
  • 资源 (23)
  • 收藏
  • 关注

转载 用python爬虫抓站的一些技巧总结

点我进入原文用python爬虫抓站的一些技巧总结原文出处: observer   学用python也有3个多月了,用得最多的还是各类爬虫脚本:写过抓代理本机验证的脚本,写过在discuz论坛中自动登录自动发贴的脚本,写过自动收邮件的脚本,写过简单的验证码识别的脚本,本来想写google music的抓取脚本的,结果有了强大的gmbox

2016-05-03 21:36:22 1548

转载 Python爬虫模拟登录带验证码网站

点我进入原文Python爬虫模拟登录带验证码网站这篇文章主要介绍了Python爬虫模拟登录带验证码网站的相关资料,需要的朋友可以参考下爬取网站时经常会遇到需要登录的问题,这是就需要用到模拟登录的相关方法。python提供了强大的url库,想做到这个并不难。这里以登录学校教务系统为例,做一个简单的例子。首先得明白cookie的作用,

2016-05-03 21:32:34 10443 2

原创 python 爬虫实战--登陆学校教务系统获取成绩信息

1. 前言之前写的爬虫都是不需要使用cookie的, 这次我们瞄上了学校的教务系统, 每次登陆都那么几个步骤好费劲啊, 写个爬虫直接获取成绩多好啊~~2. 项目分析首先, 我们的目标页面是: http://yjs.ustc.edu.cn/ 查看网页源码 我们发现我们框选出来的地址就是我们验证码的地址:http://yjs.ustc.edu.cn/checkcode.asp利用chrome

2016-05-03 21:28:03 18952 6

转载 windows下cmd命令行显示UTF8字符设置(CHCP命令)

点我进入原文windows下cmd命令行显示UTF8字符设置(CHCP命令)     在中文Windows系统中,如果一个文本文件是UTF-8编码的,那么在CMD.exe命令行窗口(所谓的DOS窗口)中不能正确显示文件中的内容。在默认情况下,命令行窗口中使用的代码页是中文或者美国的,即编码是中文...       在中文Windows系统中,如果

2016-05-03 13:39:35 23958

原创 python 爬虫实战 抓取学校bbs相关板块的发帖信息

1. 前言之前也因为感兴趣, 写过一个抓取桌面天空里面喜欢的动漫壁纸的爬虫代码。这两天突然看到有人写了这么一篇文章: 爬取京东本周热卖商品基本信息存入MySQL 觉得蛮有趣的, 正好临近找工作的季节, 就想着能不能写个爬虫, 把咱们学校bbs上面相关的板块里面的发帖信息给记录下来。2. 项目分析首先我们打开我们的目标网页http://bbs.ustc.edu.cn/main.html 结

2016-05-03 13:32:55 9811 5

转载 Python爬虫实战一之爬取糗事百科段子

点我进入原文需要注意的是, 距离作者的原文发布的时间有一段距离了, 糗百的html 代码发生部分变化, 因而 正则表达式模块需要自己重新根据实际情况进行编写~~Python爬虫实战一之爬取糗事百科段子大家好,前面入门已经说了那么多基础知识了,下面我们做几个实战项目来挑战一下吧。那么这次为大家带来,Python爬取糗事百科的小段子的例子。首先,糗事百科

2016-05-02 16:02:21 2275

转载 百度高级搜索技巧

点我进入原文百度高级搜索技巧  1.“”——精确匹配如果输入的查询词很长,百度在经过分析后,给出的搜索结果中的查询词,可能是拆分的。如果您对这种情况不满意,可以尝试让百度不拆分查询词。给查询词加上双引号,就可以达到这种效果。如:“上海大学”,搜索结果中的上海大学四个字就不会是分开的。2.(-)——消除无关性逻辑“非”的

2016-05-02 13:39:26 5048

转载 便利的开发工具 CppUnit 快速使用指南

点我进入原文便利的开发工具 CppUnit 快速使用指南本文从开发人员的角度,介绍 CppUnit 框架,希望能够使开发人员用最少的代价尽快掌握这种技术。下面从基本原理,CppUnit 原理,手动使用步骤,通常使用步骤,其他实际问题等方面进行讨论。以下讨论基于 CppUnit1.8.0。背景

2016-05-01 22:54:22 475

转载 用CPPUnit做单元测试

点我进入原文地址4. 使用VS2013编译的话,会出现下面的错误:“error MSB8031: Use of MBCS encoding in MFC projects require an additional library to be downloaded and installed. Please see http://go.microsoft.c

2016-05-01 22:50:59 1147

原创 CPPunit 1.13.2 + vs2013 配置与使用

1. 前言最近越来越发现测试的重要性, 我们在做头条的测试题的时候, 发现思路是正确的, 不过提交的时候总是存在各种各样的bug, 于是我们想, 如果能够找到一个比较方便的测试工具, 该多好, 于是我们想到了 cppunit。2. 下载与配置2.1 下载我们首先找到cppunit 的官方站点 https://www.freedesktop.org/wiki/Software/cppunit/ 发现

2016-05-01 22:21:54 6121 2

原创 Lab 相关---四相机同步拍摄说明

1. 前言这部分是我们所做的实验室图像采集系统中的一个功能模块。 我们的相机采集系统本来是可以直接进行采图存图操作的, 但是并不保证同步, 或者说他们之间的同步性能并不高。 由于, 老板要求实现精确的同步采图功能, 所以这个模块需要我们进行修改。2. 处理流程2.1 查阅资料因为这是一个新的项目需求, 我们就想从相机的角度出发, 看看相机自身有没有给我们提供了这个一个相关的处理方法, 如果有的话,

2016-04-28 13:46:05 2685 1

转载 在win7、win8、win8.1上安装使用vb6.0

点我进入原文地址个人网盘地址:http://pan.baidu.com/s/1mh7ihZU前言由于我们是写c++的, vb 也不是特别懂, 今天我们家大美女跑来问我vb6.0 环境怎么搭建, 因为需要编写vb 程序, 我第一反应是 直接用 vs 2013 来编写呗, 结果vs 2013 无法打开自带的 vb 例程, 没办法, 只能装vb6.0 , 然而由于兼容

2016-04-28 13:02:33 3769

原创 Android : The import java.util cannot be resolved

1. 前言昨天在 csdn 上看到一位大神 写的 android 端 用来连接 BLE 终端设备的 android 工程源码, 于是download 下来, 打算研究一下, 不过 导入工程之后出现了这个错误The import java.util cannot be resolved2. 网上解决方案 ——解决方案——————– 解决方案: 右键项目——-buildpath——–最下

2016-04-28 08:44:44 1890

原创 LeetCode 51/52. N-Queens i, ii

1. 题目描述 The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other. Given an integer n, return all distinct solutions to the n-queens p

2016-04-27 18:33:04 776

原创 LeetCode 45/55. Jump Game i, ii

1. 题目要求 Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position.

2016-04-27 16:19:46 359

原创 LeetCode 61. Rotate List

1. 题目要求 Given a list, rotate the list to the right by k places, where k is non-negative. For example: Given 1->2->3->4->5->NULL and k = 2, return 4->5->1->2->3->NULL.2. 解题思路题目要求是从右向左k个数据,

2016-04-26 21:13:56 383

原创 LeetCode 60. Permutation Sequence

1. 题目要求 The set [1,2,3,…,n] contains a total of n! unique permutations. By listing and labeling all of the permutations in order, We get the following sequence (ie, for n = 3): “123”

2016-04-26 21:07:57 550

原创 LeetCode 57. Insert Interval/56. Merge Intervals

1. 题目要求 Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary). You may assume that the intervals were initially sorted according to their start

2016-04-26 20:58:54 467

原创 LeetCode 54/59. Spiral Matrix i, ii

1. 题目描述54 Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. For example, Given the following matrix: [ [ 1, 2, 3 ], [ 4, 5,

2016-04-26 20:51:48 496

原创 【中国科大精密机械与仪器系2014】图像处理大作业之门牌号码识别大作业 opencv 版本

1. 前言当时做图像处理大作业的时候, 用的是matlab,因为比较懒就没有使用 opencv 写, 最近突然心血来潮用opencv实现了一下2. 题目描述 PI05302: Digital Image Processing Homework #6 Problem 1 用相机自行拍摄一幅图像,编程实现图像边缘检测、图像分割、特征提取以及图 像识别等任务。 拍摄的图像

2016-04-25 18:39:42 3796 9

原创 LeetCode 64/62/63. Minimum Path Sum/ Unique Paths i, ii

1. 题目描述1.1 62 A robot is located at the top-left corner of a m x n grid (marked ‘Start’ in the diagram below). The robot can only move either down or right at any point in time. The robot is try

2016-04-25 11:01:33 538

原创 LeetCode 65. Valid Number

1. 题目描述 Validate if a given string is numeric. Some examples: “0” => true ” 0.1 ” => true “abc” => false “1 a” => false “2e10” => true Note: It is intended for the problem stat

2016-04-25 10:49:22 420

原创 LeetCode 67. Add Binary/ 66. Plus One

1. 题目描述67. Given two binary strings, return their sum (also a binary string). For example, a = “11” b = “1” Return “100”.66. Given a non-negative number represented as an array of di

2016-04-25 10:41:42 383

原创 LeetCode 68. Text Justification

1. 题目描述 Given an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) justified. You should pack your words in a greedy appro

2016-04-23 16:22:09 359

原创 蓝牙资料备份

1. 前言今天晚上的时候突然看到csdn 上推荐的一篇文章,讲的是使用蓝牙连接小米手环的方法, 里面讲述的东西和我们之前做的连接小蚁遥控器的方法有些相似, 当时卡在uuid上面, 这次忽然发现可以使用 lightblue 查看uuid, 后来搜索的过程中发现, android 上面也有可以直接查看 uuid 的软件 nRF Master Control Panel (BLE) 打算明天去实验室实

2016-04-23 00:36:00 853

转载 一个Sqrt函数引发的血案

点我进入原文一个Sqrt函数引发的血案  好吧,我承认我标题党了,不过既然你来了,就认真看下去吧,保证你有收获。  我们平时经常会有一些数据运算的操作,需要调用sqrt,exp,abs等函数,那么时候你有没有想过:这个些函数系统是如何实现的?就拿最常用的sqrt函数来说吧,系统怎么来实现这个经常调用的函数呢?  虽然有可能你平时没有想过这个问题,不过正所

2016-04-22 20:33:47 677

原创 LeetCode 69. Sqrt(x)

1. 题目描述 Implement int sqrt(int x). Compute and return the square root of x.2. 解题思路使用牛顿迭代方法, 可以非常容易的解决这个问题3. codeclass Solution {public: int mySqrt(int x) { double a = x / 2.0, b =

2016-04-22 20:30:33 348

原创 LeetCode 70. Climbing Stairs

1. 题目描述 You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?2. 解题思路非常easy 的一道题目,

2016-04-22 20:19:08 374

原创 LeetCode 71. Simplify Path

1. 题目描述 Given an absolute path for a file (Unix-style), simplify it. For example, path = “/home/”, => “/home” path = “/a/./b/../../c/”, => “/c” click to show corner cases. Corner C

2016-04-22 20:13:45 334

原创 LeetCode 72. Edit Distance

1. 题目描述 Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.) You have the following 3 operations permitted

2016-04-22 15:27:23 340

原创 LeetCode 73. Set Matrix Zeroes

1. 题目描述 Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. click to show follow up. Follow up: Did you use extra space? A straight forward s

2016-04-22 14:55:00 329

原创 LeetCode 74. Search a 2D Matrix

1. 题目描述 Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted from left to right. The first inte

2016-04-22 14:22:07 370

原创 LeetCode 75. Sort Colors

1. 题目描述 Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue. Here, we will use th

2016-04-21 23:07:52 363

原创 LeetCode 77. Combinations

1. 题目描述 Given two integers n and k, return all possible combinations of k numbers out of 1 … n. For example, If n = 4 and k = 2, a solution is: [ [2,4], [3,4], [2,3],

2016-04-21 22:56:39 394

原创 LeetCode 79. Word Search

1. 题目描述 Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent cell, where “adjacent” cells are those horizontally or

2016-04-21 22:46:45 453

原创 LeetCode 33,81. Search in Rotated Sorted Array i, ii

1. 题目描述33 Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). You are given a target value to search. If found in th

2016-04-21 15:51:51 486

原创 Lab 相关 --- 相机曝光度自动调节

1. 前言仅用作自己备份使用, 有些内容比较私密, 就不再写出2. 效果:配置失败时候, 会提示请手动配置, 配置成功会提示配置成功3. 一些配置文件说明:请在相机AVT.exe 文件对应目录下, 放置一个配置文件 expo.ini 其格式为 左相机曝光度下限, 左相机曝光度上限, 右相机曝光度下限, 右相机曝光度上限, 左相机曝光度调节步长, 右相机曝光度调节步长。2.程序会优先读取

2016-04-21 12:05:57 813

转载 Visual Studio 调试小技巧

点我进入原文11个强大的Visual Studio调试小技巧伯乐在线注:我们在@程序员的那些事 微博上推荐了英文原文,感谢@halftone_被禁用了的热心翻译。简介调试是软件开发周期中很重要的一部分。它具有挑战性,同时也很让人疑惑和烦恼。总的来说,对于稍大一点的程序,调试是不可避免的。最近几年,调试工具的发展让很多调试任

2016-04-20 14:12:55 497

转载 TCP连接的状态详解以及故障排查

点我进入原文TCP连接的状态详解以及故障排查2014-08-16      0 个评论    来源:guisu,程序人生。  收藏    我要投稿我们通过了解TCP各个状态,可以排除和定位网络或系统故障时大有帮助。(总结网络上的内容)1、TCP状态LISTENING:侦听来自远方的TCP端口的连接请求. 首先服务端需要打开一个so

2016-04-19 22:32:27 989

原创 LeetCode 26, 80, 81, 82, . Remove Duplicates from Sorted Array/ List i, ii

1. 题目描述1.1 26 Remove Duplicates from Sorted Array Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra sp

2016-04-19 18:31:45 489

ResourceHacker

用来提取应用程序资源的工具

2017-03-13

扫雷程序可执行文件

由于win10去掉了原先自带的扫雷程序,因而这里从网上找了一个扫雷程序过来,作为目标进行分析

2017-03-13

pcl点云数据文件 兔子

pcl 的点云数据文件, 安装完毕可以利用这个文件来测试下是否安装成功

2017-01-17

diskgenuis

用于系统分区的神器

2017-01-06

unetboot工具

制作系统启动盘的基本工具

2017-01-06

Win32DiskImager-0.9.5

用来制作U盘启动项的基本工具

2017-01-06

ImageWatch

http://blog.csdn.net/zhyh1435589631/article/details/53996182 博客中介绍的opencv 神器 官方地址: https://marketplace.visualstudio.com/items?itemName=WolfKienzle.ImageWatch

2017-01-03

visual odometry part1

视觉里程计的综述文章

2016-12-10

相机模型绘制的工程文件autocad

autocad 工程文件, 用来绘制相机模型

2016-12-09

计算机多视图几何

多视图几何的英文版

2016-11-28

30天自制操作系统 pdf part1

参考博文 http://blog.csdn.net/zhyh1435589631/article/details/53262659 30天自制操作系统 电子书 的一部分

2016-11-22

30天自制操作系统 电子书 part2

参考博文 http://blog.csdn.net/zhyh1435589631/article/details/53262659 30天自制操作系统的电子书 第二部分

2016-11-22

30天自制操作系统的光盘part1

参考博文 http://blog.csdn.net/zhyh1435589631/article/details/53262659 30天自制操作系统的附加光盘文件的一部分

2016-11-22

winHex18.5 x86_x641

参考博文 http://blog.csdn.net/zhyh1435589631/article/details/53262659 用来编辑16进制文件的使用工具

2016-11-22

opencv 类似matlab 绘图

参考博文 http://blog.csdn.net/zhyh1435589631/article/details/53241566

2016-11-20

chatbot3 源码

http://www.codeproject.com/articles/36106/chatbot-tutorial 上面 chatbot3 部分源码, 由于国内把dropbox 墙了, 于是就传到这边来了

2016-11-19

华为oj解答

个人的华为oj刷题代码

2016-09-14

vc_mbcsmfc.part2

vs2013 用来打开多字符集项目必须的支持文件

2016-05-01

8皇后问题七届源代码

博客http://blog.csdn.net/zhyh1435589631/article/details/45842823的配套源代码,使用于N皇后问题的求解,C++方式实现

2015-05-19

vs2013+opencv2.4.9配置环境

vs2013+opencv2.4.9配置环境 只需ctrl + H 替换相应路径即可,相应博文地址 http://blog.csdn.net/zhyh1435589631/article/details/45649709

2015-05-11

poj 1782 run length encoding 测试数据

poj 1782 run length encoding 测试数据

2015-01-17

空空如也

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

TA关注的人

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