原创 ls 命令的實現

      在 linux 下,我們用的最多的命令應該是 ls 吧,那麼,你有沒有想過這個命令怎麼是實現呢?其實瞭解了 UNIX 環境的相關接口後,也就不難了~       目標:       可以用 ls 列出目錄的簡略信息, ls

原创 【源碼剖析】tornado-memcached-sessions —— Tornado session 支持的實現(三)

新地址:https://github.com/AngryHacker/articles/issues/5#issue-372211594      童鞋,我就知道你是個好學滴好孩子~來吧,讓我們進行最後的探(zuo)索(si)!    

原创 【LeetCode】Algorithms 題集(七)

Contains Duplicate 題意:      Given an array of integers, find if the array contains any duplicates. Your function sho

原创 【LeetCode】Algorithms 題集(六)

Sort Colors 題意:      Given an array with n objects colored red, white or blue, sort them so that objects of the same

原创 linux cpu 信息分析

    在 Linux 下如何查看 CPU 信息呢?只要查看 /proc/cpuinfo 文件就好了。 cat /proc/cpuinfo    在我的電腦下得到如下結果:     其中包含了很多信息,比較重要的字段是:    

原创 Ubuntu 下安裝 Nginx ( Nginx + Php5-fpm )

     nginx 的介紹我就不羅嗦了,先說下系統的安裝環境。      0. 安裝環境      系統:Ubuntu 14.04      PHP 版本:5.5.9      已有服務器軟件:Apache (基本不影響,後文會提到)

原创 【LeetCode】Algorithms 題集(二)

Linked List Cycle 題意:     Given a linked list, determine if it has a cycle in it.     Follow up:     Can you solve i

原创 【LeetCode】Algorithms 題集(五)

Merge Two Sorted Lists 題意:      Merge two sorted linked lists and return it as a new list. The new list should be ma

原创 【LeetCode】Algorithms 題集(八)

Kth Smallest Element in a BST  題意:     Given a binary search tree, write a function kthSmallest to find the kth small

原创 【LeetCode】Algorithms 題集(四)

Maximum Subarray 題意:     Find the contiguous subarray within an array (containing at least one number) which has the

原创 【源碼剖析】tinyhttpd —— C 語言實現最簡單的 HTTP 服務器

   文章新地址:https://github.com/AngryHacker/articles/issues/2#issue-369871321    如有問題請在新地址提問       tinyhttpd 是一個不到 500 行的超輕

原创 【LeetCode】Excel Sheet Column Number

     題意: Related to question Excel Sheet Column Title Given a column title as appear in an Excel sheet, return its c

原创 【LeetCode】Algorithms 題集(九)

Product of Array Except Self  題意: Given an array of n integers where n > 1, nums, return an array output such that outp

原创 【LeetCode】Remove Duplicates from Sorted List

     題意: Given a sorted linked list, delete all duplicates such that each element appear only once. For example, Giv

原创 Sphinx/Coreseek 4.1 執行 buildconf.sh 報錯,無法生成configure文件

    之前在安裝 coorseek 的時候,遇到了一些錯誤,在官網根本看不到解決方案,最後 google 在一個大牛博客的評論區找到了解決方法,頓時把膝蓋獻上去了~~      整理到這裏是爲了方便一些人找到,長城防火牆畢竟讓 goog