首页 > 其他
vim打开文档出现的^M是什么
我查找了^M没效果,应该是特殊的控制字符,查找换行符结果不是,在每一行的末尾不是换行就是回车吧,对于不同的系统对按行的编码定义不一样。 linux中用\n 0x0a mac 中用\r 0x0d win 中用\r\n 0x0d0a 这里的问题可能是回车符,于是查找回车符成功。 去掉方法:现在已经明白了,是由于0x0d0a组成的换行,把0d去掉即可。...
分类:其他   时间:2014-06-01 09:40:11    收藏:0  评论:0  赞:0  阅读:478
μCOS-II系统之事件(event)的使用规则及MUTEX实例
*************************************************************************************************************************** 作者:EasyWave 时间:2014.05.31 类别:μC/OS-II-操作系统...
分类:其他   时间:2014-06-01 09:39:33    收藏:0  评论:0  赞:0  阅读:575
我的软考之路(九)——总结篇
经过两个月的备战,软考总算结束了。软考虽然结束了,但是还需要简单的总结一下得与失。我从时间安排,到讲课做真题简单的回顾一下软考的整个过程。    时间安排:         对于时间的安排,整个小组成员每个人都有自己的看法,我就不在这里吐槽了。对于我来说,时间安排有点仓促,看书的时间是拿晚上的休息时间补过来的。看书让我将课本的概念性的知识简单的过了一遍,即补充了当初学习的不足,也恶补...
分类:其他   时间:2014-06-01 09:46:01    收藏:0  评论:0  赞:0  阅读:444
Solr在结果中返回函数值
假设你有一个服务,你的用户可以搜索不同的公司,用户输入一个简单的关键字,可以返回匹配关键字的公司,但是有一天,用户要求返回的公司列表中可以显示公司跟用户的距离,这是该怎么做呢? 准备工作 在开始之前,需要先了解字段别名功能,具体可以参看这里 怎么做 1.假设我们在 schema.xml 中定义了如下索引结构: 2.我们需要定义 location...
分类:其他   时间:2014-06-01 09:45:18    收藏:0  评论:0  赞:0  阅读:453
LeetCode: Scramble String [87]
【题目】 Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively. Below is one possible representation of s1 = "great": great / gr eat / \ / g r e at / ...
分类:其他   时间:2014-06-01 09:40:45    收藏:0  评论:0  赞:0  阅读:393
C数据结构-栈和队列,括号匹配举例
1.栈和队列是两种特殊的线性表             运算操作被限定只能在表的一端或两端插入,删除元素,故也称它们为限定的线性表结构 2.栈的基本运算 1).Stackinit(&s) 构造一个空栈 2).Stackempty(s) 判断s是否为空栈,当s为空栈时,函数返回值1 否则 0 3).Push(&s,x)  在栈s 的顶部插入元素x,简称将x入 栈 4).Pop(&...
分类:其他   时间:2014-06-01 09:08:15    收藏:0  评论:0  赞:0  阅读:596
LeetCode: Merge Sorted Array [088]
【题目】 Given two sorted integer arrays A and B, merge B into A as one sorted array. Note: You may assume that A has enough space (size that is greater or equal to m + n) to hold additional elements from B. The number of elements initialized in A and B are...
分类:其他   时间:2014-06-01 09:21:00    收藏:0  评论:0  赞:0  阅读:354
μCOS-II系统之事件(event)的使用规则及Semaphore实例
*************************************************************************************************************************** 作者:EasyWave                                                时间:2014.05.31...
分类:其他   时间:2014-06-01 09:12:55    收藏:0  评论:0  赞:0  阅读:391
projecteuler---->problem=10----Summation of primes
title: The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below two million. 翻译: 10以下的质数的和为2 + 3 + 5 + 7 = 17。 请求出200,0000以下所有质数的和。 import math,time d...
分类:其他   时间:2014-06-01 09:12:10    收藏:0  评论:0  赞:0  阅读:306
Acdream1084 寒假安排 求n!中v因子个数
题目链接:点击打开链接 寒假安排 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 128000/64000 KB (Java/Others) SubmitStatistic Next Problem Problem Description 寒假又快要到了,不过对于lzx来说,头疼的事又来了,因为众多的后...
分类:其他   时间:2014-06-01 09:42:46    收藏:0  评论:0  赞:0  阅读:337
μCOS-II系统之事件(event)的使用规则及Semaphore的互斥量用法
*************************************************************************************************************************** 作者:EasyWave                                                时间:2014.05.31...
分类:其他   时间:2014-06-01 09:07:31    收藏:0  评论:0  赞:0  阅读:451
Apriori算法
Apriori算法是数据挖掘中一种挖掘关联规则的频繁项集算法。其核心是基于两阶段频集思想的递推算法。 先来了解下关联规则挖掘: 发现事务数据库,关系数据, 或其它信息库中项或数据对象集合间的频繁模式。关联,相关,或因果关系结构。 频繁模式:在数据库中频繁出现的模式(项集, 序列, 等)。 动机是发现数据中的规律性。 如: 购物篮分析:哪些产品更经...
分类:其他   时间:2014-06-01 09:51:56    收藏:0  评论:0  赞:0  阅读:443
LeetCode: Gray Code [089]
【题目】 The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the total number of bits in the code, print the sequence of gray code. A gray code sequence must begin with 0. ...
分类:其他   时间:2014-06-01 09:16:11    收藏:0  评论:0  赞:0  阅读:369
机房收费系统学生下机结账小结
这几天一直在考虑机房收费系统学生下机操作。学生下机,一则需要添加学生下机记录信息;还需要计算学生在整个上机过程中所花费的金额,并且更新学生余额。那么如何做在性能上或者扩展上更好一些呢?   操作     1.添加学生下机信息   2.计算学生上机时间   3.根据上机时间来计算学生所花费的金额   4.更新学生的余额 设计模式   在...
分类:其他   时间:2014-06-01 09:36:18    收藏:0  评论:0  赞:0  阅读:400
Sketch Nyquist plot 徒手绘制Nyquist 曲线
Sketch Nyquist plot 这是相当纠结的领悟。我始终没明白Nyquist曲线究竟是怎么回事,简直痛苦 之前讲了 波特图入门 徒手绘制波特图 波特图就是讲幅频特性和相频特性分别绘制在两幅图片上,而Nyquist曲线是将这两幅图合并成一幅图。               现实生活中多是黑箱模型,系统内部的结构是不知道的,为了...
分类:其他   时间:2014-06-01 09:06:47    收藏:0  评论:0  赞:0  阅读:482
每日算法之二十三:Reverse Nodes in k-Group
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. If the number of nodes is not a multiple of k then left-out nodes in the end should remain as it is...
分类:其他   时间:2014-05-31 22:30:20    收藏:0  评论:0  赞:1  阅读:620
HDU - 4813 Hard Code (长春赛区水题)
Description Some strange code is sent to Da Shan High School. It's said to be the prophet's note. The note is extremely hard to understand. However, Professor Meng is so smart that he successfully ...
分类:其他   时间:2014-06-01 09:18:15    收藏:0  评论:0  赞:0  阅读:472
从状态模式看“大神”和“菜鸟”的区别
《大话设计模式》中讲状态模式这一节名字叫做“无尽加班何时休-状态模式”。菜鸟由于编程经验不足,解决问题的能力不够而不得不牺牲时间去不断的写代码结果还是反复出错。而大神每次都能深入到问题的根源运用自己的思想去写代码,每个问题都完美的解决。        加班的菜鸟一天各个时间段状态都不一样,从开始的精神百倍到越来越疲惫。自己写出的代码不断带来问题。        代码是程序员思维智慧的结晶,菜鸟...
分类:其他   时间:2014-06-01 10:08:13    收藏:0  评论:0  赞:0  阅读:347
projecteuler---->problem=11----Largest product in a grid
In the 2020 grid below, four numbers along a diagonal line have been marked in red. 08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08 49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 ...
分类:其他   时间:2014-06-01 10:04:14    收藏:0  评论:0  赞:0  阅读:498
HDU1230 火星A+B
火星A+B Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 10288    Accepted Submission(s): 3409 Problem Description 读入两个不超过25位的火星正整数A和B...
分类:其他   时间:2014-06-01 10:33:08    收藏:0  评论:0  赞:0  阅读:432
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!