原创 go語言Exercise: Images

Remember the picture generator you wrote earlier? Let's write another one, but this time it will return an implementati

原创 ed命令簡介

http://bbs.chinaunix.net/thread-1262996-1-1.html ed 命令簡介: 在 unix/linux 平臺下,首先要學習的就是文本編輯,而 ed 編輯器是 unix/linux

原创 Guide to Setup Gmail IMAP in Outlook 2010

Source:http://www.lytebyte.com/2009/08/11/guide-to-setup-gmail-imap-in-outlook-2010/ Gmail is one of the email servic

原创 讀《程序員到底怎麼了》 感想

無意中在網上看到了一篇文章,一開始以爲有事吐槽的文章,說神馬程序員沒有前途的嘮叨,一開始還抱着尋求心理安慰的態度去讀,讀完之後,發現自己錯了,雖然不能說自己像其他人那樣每天抱怨程序員多麼沒前途,但至少不是熱愛這個行子,在即將面臨的找工作的

原创 go語言Exercise: Slices

Implement Pic. It should return a slice of length dy, each element of which is a slice of dx 8-bit unsigned integers.

原创 go語言Advanced Exercise: Complex cube roots

Let's explore Go's built-in support for complex numbers via thecomplex64 and complex128 types. For cube roots, Newton'

原创 go語言Exercise: Equivalent Binary Trees

1. Implement the Walk function. 2. Test the Walk function. The function tree.New(k) constructs a randomly-structured bi

原创 go語言Exercise: Rot13 Reader

A common pattern is an io.Reader that wraps another io.Reader, modifying the stream in some way. For example, the gzip

原创 can not open so many files 錯誤處理

在運行server的時候總是會遇到這個錯誤,在linux下open files的數量是有限制的,一般爲1024,如果運行server,總是會需要修改這個值的,查看本機limit的數量的方式: ulimit -a  # -a 表示顯示所有的

原创 go語言Exercise: Fibonacci closure

Let's have some fun with functions. Implement a fibonacci function that returns a function (a closure) that returns suc

原创 Go 語言實現exercise--Loops and Functions

求平方根的一種叫牛頓算法的文字,先給出一個猜測值,用連續逼近方法求出平方根。 首先我們設要求的這個數爲a,它的平方根爲x;然後我們一開始令x=a;然後我們進入一個循環,不斷的令x=(x+a/x)/2,就是令x等於 x和a/x的平均值,

原创 Build and Run HDFS

今天再一次配置HDFS,決定記錄下來以備不時之需。 首先你的電腦需要安裝上java JDK 1.6 這一步就不解釋了,網上太多資料 安裝ant http://ant.apache.org/bindownload.cgi ant 官網地址

原创 c/c++在線編譯器

原文鏈接:http://hi.baidu.com/jrftsy96/item/5c936daa867ee7f215329be1 一直以來都喜歡用手機看書,尤其是在上班時。看的最多的是編程一類的書,主要是C++,看着就想寫寫代碼,可是電

原创 google-perftools安裝

source link:http://blog.sina.com.cn/s/blog_704836f40100yvyx.html 1.編譯libunwind庫   因爲使用的是X86_64的Linux系統,因此需要安裝libunw

原创 go語言Exercise: Errors

Copy your Sqrt function from the earlier exercises and modify it to return an error value. Sqrt should return a non-nil