原创 CSS Study Notes— Selectors for Class/Div/Attribute

— Combinators Also refer to: http://www.w3schools.com/css/css_combinators.asp 1.   Descendant Selector div p:matches a

原创 LeetCode Solutions : Rotate List

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

原创 JQuery Study Notes— A small demo for Smooth Animated Menu

1. Before expanding: 2.  coding: <!DOCTYPE html> <html> <head> <title>Smooth Animated Menu</title> <script src

原创 LeetCode Solutions : Reorder List

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

原创 HDFS小文件合併問題的優化:copyMerge的改進

1.問題分析 用fsck命令統計 查看HDFS上在某一天日誌的大小,分塊情況以及平均的塊大小,即 [hduser@da-master jar]$ hadoop fsck /wcc/da/kafka/report/2015-01-11 D

原创 譯 Programming with typesafe enums and annotations in Java 5

原文爲: Java 101: The next generation: The essential Java language features tour, Part 2    Programming with typesafe enu

原创 微博廣告推薦中有關Hadoop的那些事

一、背景        微博,一個DAU上億、每日發博量幾千萬的社交性產品,擁有龐大的數據集。如何高效得從如此規模的數據集中挖掘出有價值的信息,以增強用戶粘性,提高信息傳播速度,就成了重中之重。因此,我們引入了hadoop 分佈式計算

原创 LeetCode Solutions : Find Minimum in Rotated Sorted Array

【題目描述】 Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 

原创 VisuAlgo 學習筆記:Bitmask

原資源鏈接爲:http://visualgo.net/bitmask.html 其中各個模塊代表的含義: - Create: 初始值s - Set bit(j): s or 第j位 - Check bit(j):s an

原创 LeetCode Solutions : Sort List

【題目描述】Sort a linked list in O(n log n) time using constant space complexity. 【算法思路】時間複雜度限制在O(n log n),我們可以第一時間想到常用的二路歸

原创 MapReduce原理與設計思想

簡單解釋 MapReduce 算法 一個有趣的例子 你想數出一摞牌中有多少張黑桃。直觀方式是一張一張檢查並且數出有多少張是黑桃? MapReduce方法則是: 給在座的所有玩家中分配這摞牌 讓每個玩家數自己手中的牌有

原创 集羣擴展:Hadoop環境搭建

hadoop安裝步驟: 系統需要安裝的包 ssh,rpm,gcc,make yum -y install openssh-server openssh-clients 檢測ssh安裝和rpm安裝 a. ssh localhost

原创 Hbase配置項粗解

Hbase配置項粗解(1) 重讀hbase文檔,把所有的配置項整理一遍。 hbase.tmp.dir:本地文件系統的臨時目錄,默認是java.io.tmpdir/hbase−{user.name}; hbase.rootdir:hbase

原创 HBase API——封裝成工具類Utils

前面介紹了HBase的常用API並給出了實例:HBase之Java API 爲了便於以後使用,把對HBase表的常見CRUD操作,封裝在一個類HBaseUtil裏面,實現爲: import java.io.IOException; i

原创 LeetCode Solutions : Remove Duplicates from Sorted List II

【題目描述】 Given a sortedlinked list, delete all nodes that have duplicate numbers, leaving only distinct numbersfrom the