自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 资源 (3)
  • 收藏
  • 关注

原创 Programming Perl----------Column1

Problem 3.    This problem let us write all the solutions, and run, then based on the results we can get the most effective solution.Now I don't want to compare these solutions including last file

2012-05-31 14:03:53 525

转载 google-perftools安装

source link:http://blog.sina.com.cn/s/blog_704836f40100yvyx.html1.编译libunwind库 因为使用的是X86_64的Linux系统,因此需要安装libunwind库。安装方法很简单,常见的configure,make,make install的套路。 wget http://down

2012-05-21 15:30:56 3788 1

原创 RedHat Enterprise 5 升级firefox

一开始的时候总是无法升级firefoxXPCOMGlueLoad error for file /opt/firefox/libxpcom.so:libxul.so: cannot open shared object file: No such file or directoryCouldn't load XPCOM.# yum remove libavcodec52Remo

2012-05-16 18:14:47 2966

原创 go语言Exercise: Equivalent Binary Trees

1. Implement the Walk function.2. Test the Walk function.The function tree.New(k) constructs a randomly-structured binary tree holding the values k, 2k, 3k, ..., 10k.Create a new channel ch an

2012-05-09 17:48:08 1707

原创 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.NewReader function takes an io.Reader (a stream of gzipped data) and returns

2012-05-09 16:24:14 2688

原创 go语言Exercise: Images

Remember the picture generator you wrote earlier? Let's write another one, but this time it will return an implementation ofimage.Image instead of a slice of data.Define your own Image type, imple

2012-05-09 16:08:27 1500

原创 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 error value when given a negative number, as it doesn't support complex numbers

2012-05-09 15:41:02 2127

原创 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's method amounts to repeating:Find the cube root of 2, just to make sure the

2012-05-09 13:19:22 1076

原创 go语言Exercise: Fibonacci closure

Let's have some fun with functions.Implement a fibonacci function that returns a function (a closure) that returns successive fibonacci numbers.package mainimport "fmt"// fibonacci is a fu

2012-05-09 12:52:33 2322 1

原创 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. When you run the program, it will display your picture, interpreting the integ

2012-05-09 12:44:37 2395

原创 go语言Exercise: Maps

Implement WordCount. It should return a map of the counts of each “word” in the string s. The wc.Test function runs a test suite against the provided function and prints success or failure.You mig

2012-05-09 11:02:44 1161

原创 Go 语言实现exercise--Loops and Functions

求平方根的一种叫牛顿算法的文字,先给出一个猜测值,用连续逼近方法求出平方根。首先我们设要求的这个数为a,它的平方根为x;然后我们一开始令x=a;然后我们进入一个循环,不断的令x=(x+a/x)/2,就是令x等于 x和a/x的平均值,这样迭代了7-10次左右就可以得到a的平方根x的近似值。package mainimport ( "fmt" "math")func Sqrt(x

2012-05-08 16:37:49 1167

linux sbull 源码

该源码是在原基础上修改可以运行在内核版本为2.6.32上的源代码文件。

2011-06-04

SSD6 选择题题库

卡耐基梅隆大学的SSD6 网页课程 选择题题库,期末考试选择题基本上都可以从这里找到,是一个很不错的资源

2011-03-14

武汉大学学分GPA奖学金计算工具增强版

直接运行 输入教务部用户名和密码 运算很准确 很强大 本科同学做的

2011-02-25

空空如也

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

TA关注的人

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