摘要:
注意到推酷之后,自己也想着做个类似的主题网站,从别的具有相同主题(茶叶)的站点上抓取文章,汇聚成一个站点,充实站点的内容, 靠内容取胜。思来想去,准备做一个以“茶叶”为核心主题的内容站, 名字就叫聚茶吧(域名是jucha8.com, 取"聚茶吧"的谐音)。准备使用爬虫抓取100万左右的文章,充实茶叶相关的内容,尽可能的引流吧…… 阅读全文
摘要:
先附源码:package java.util;import java.io.*;/** * This class implements a hash table, which maps keys to values. Any * non-null object can be used as a ke... 阅读全文
摘要:
Session是由服务器端的应用服务器容器(如Tomcat、Jetty)存储的。下面分析一下Tomcat是如何管理Session的。 转自:tomcat架构分析 (Session管理) Tomcat中主要由每个context容器内的一个Manager对象来管理session。对于这个manager对 阅读全文
摘要:
A peak element is an element that is greater than its neighbors. Given an input array where num[i] ≠ num[i+1], find a peak element and return its inde 阅读全文
摘要:
Given an array of sizen, find the majority element. The majority element is the element that appears more than⌊ n/2 ⌋times.You may assume that the arr... 阅读全文
摘要:
Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 26 ->... 阅读全文
摘要:
Write an efficient algorithm that searches for a value in anmxnmatrix. This matrix has the following properties:Integers in each row are sorted from l... 阅读全文
摘要:
Given an array withnobjects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, wh... 阅读全文
摘要:
转载:ubuntu搭建hadoop-Ver2.6.0完全分布式环境笔记自己在搭建hadoop平台时,碰到一些困难,按照该博文解决了问题,转载一下,作为记录。2 先决条件确保在你集群中的每个节点上都安装了所有必需软件:JDK ,ssh,Hadoop3 实验环境搭建3.1 准备工作操作系统:Ubuntu... 阅读全文
摘要:
Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7might become4 5 6 7 0 1 2).You are given a target value t... 阅读全文