自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(19)
  • 问答 (2)
  • 收藏
  • 关注

转载 Java中的位运算

Java中的位运算Java的位运算(bitwise operators )直接对整数类型的位进行操作,这些整数类型包括long、int、short、char 和byte,位运算符具体如下表:运算符说明左移位,在低位处补0>> 右移位,若为正数则高位补0,若为负数则高位补1>>

2016-07-27 13:56:38 287

原创 知乎爬虫(二)

JAVA爬虫--增加多线程爬取1.项目更新由于工作原因,博主从上海飞到了遥远的呼和浩特→_→,继续上一篇文章之后,其实项目一直在更新,但是博客却没有跟上,过了好几个月才更新~我们的项目目前增加了多线程爬取功能,在Initial.java里配置的dayCount和threadNum,来控制爬取的天数和线程数目,比如目前配置的是从当前天数往前爬取100天,分给10个

2016-01-12 22:41:27 525

原创 知乎爬虫(一)

JAVA爬虫--httpClient模拟发送请求1.项目背景使用JAVA编写的知乎爬虫,根据“轮带逛”这一原理,搜索轮子哥的所有动态,根据关键字来筛选感兴趣的问题。2. Cookie原理HTTP是无状态的面向连接的协议, 为了保持连接状态, 引入了Cookie机制Cookie是http消息头中的一种属性,包括:Cookie名字(N

2015-11-13 19:20:48 1079

原创 jqgrid 一些要点

jqgrid cellsubmit属性:1)设置为remote,单元格内容改变后将启动ajax请求cellurl配置的地址保存到服务器上。此数据行的id和修改的内容被附加到url上。配置了mtype为post提交,那么将会post提交键值对内容。例如,保存一个名为mycell的单元格 {id: rowid, mycell: cellvalue} 将会作为附加数据附加到url上。 2)设

2015-09-21 11:14:12 502

原创 Struts2 显示日期类型

jsp页面显示日期类型可用如下代码:         struts2类型转换:public class SSHDateConverter extends StrutsTypeConverter { private DateFormat dateFormat; { dateFormat = new SimpleDateFormat("yyyy-MM-dd"); } @

2015-09-17 18:39:42 388

转载 Spring实现AOP的4种方式

Spring实现AOP的4种方式   先了解AOP的相关术语:1.通知(Advice):通知定义了切面是什么以及何时使用。描述了切面要完成的工作和何时需要执行这个工作。2.连接点(Joinpoint):程序能够应用通知的一个“时机”,这些“时机”就是连接点,例如方法被调用时、异常被抛出时等等。3.切入点(Pointcut)通知定义了切面要发生的“故事”和时间

2015-08-24 15:03:33 351

转载 SMP、NUMA、MPP体系结构介绍

SMP、NUMA、MPP体系结构介绍【转】认识 Numa架构     从系统架构来看,目前的商用服务器大体可以分为三类,即对称多处理器结构(SMP : Symmetric Multi-Processor),非一致存储访问结构(NUMA: Non-Uniform Memory Access),以及海量并行处理结构(MPP: Massive Parallel Process

2014-11-18 17:23:07 683

原创 行式数据库与列式数据库

开发用了很久的Vertica,一直都知道它是“列式数据库”

2014-11-18 16:41:06 6654 3

原创 LeetCode Valid Sudoku

Q:Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled with the character '.'.A partial

2014-07-22 21:50:09 438

原创 LeetCode Palindrome Number

Q:Determine whether an integer is a palindrome. Do this without extra space.

2014-07-18 15:07:03 571

原创 LeetCode Remove Nth Node From End of List

Q:Given a linked list, remove the nth node from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After removing the second node from the en

2014-07-18 14:56:14 510

原创 LeetCode Roman to Integer && Integer to Roman

Roman to Integer

2014-06-25 09:43:03 602

原创 LeetCode Pow(x, n)

Q: Implement pow(x, n).

2014-06-19 09:23:46 526

原创 LeetCode Reorder List

Q:Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes' values.For example,Given {1,2,3,4}, reorde

2014-05-20 21:11:24 628

原创 LeetCode Max Points on a Line

Q:Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.hao

2014-05-15 16:03:27 498

原创 LeetCode 3Sum

Q:Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.Note:Elements in a triple

2014-05-15 15:17:21 490

原创 LeetCode String to Integer (atoi)

Q:自己实现一个atoi函数这题k

2014-05-15 15:05:29 491

原创 Leet Code LRU Cache

首先w什么是LRU算法? LRU是Least Recently Used的缩写,即最少使用页面置换算法,是为虚拟页式存储管理服务的。

2014-05-15 14:56:40 740

原创 LeetCode Linked List Cycle && Linked List CycleII

Linked List Cycle

2014-05-13 15:02:27 553

空空如也

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

TA关注的人

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