- 博客(37)
- 收藏
- 关注
原创 2011书单
1月: 1.Pro JavaScript with MooTools [img]http://static.ppurl.com/u/26/4396726/cover.png[/img] 2月: 2.Objective-C 2.0程序设计 [img]http://images.china-pub.com/ebook195001-200000/195824/shupi.jpg[/img...
2011-01-15 14:33:29
189
原创 2011了,列个计划吧
去年的三个计划: 引用 1.把国家助学贷款还了. 2.帮家里还部分债. 3.努力学技术,找一个更好的公司 2010又过去了,去年的计划基本没怎么完成,-_-!!! 今年一定要完成前4个。1.还完国家助学贷款 2011.10.26 2.家里面还有2w左右的债务 3.读12+本的书 4.学车 5.给家里买个42寸的电视,再配台...
2011-01-09 19:40:47
184
原创 Javascript Closure
转自:http://jibbering.com/faq/notes/closures/ 好文,仔细看完基本能理解javascript closure. [b]Introduction[/b] Closure A "closure" is an expression (typically a function) that can have free varia...
2010-07-27 10:44:57
149
原创 merge sort
[code="js"] function merge(array, p, q, r){ var lArray = [], rArray = []; for(var i = p; i
2010-07-19 23:46:29
109
原创 Button Fun
:lol: 第二章,熟悉了一下iphone里的mvc。 [img]http://dl.iteye.com/upload/attachment/268030/2da5fab8-6692-3eab-a207-c351af98c47d.png[/img]
2010-06-23 23:04:32
148
原创 Iphone, Hello World
:lol: [img]http://dl.iteye.com/upload/attachment/267339/9ba17001-53bf-3648-8632-1c3cca57c1de.png[/img]
2010-06-22 20:27:27
106
原创 球衣还不错,-_-!!!
:cry: 周六跑了好几家ad都没小号的,只能在淘宝上买了一件,-_-!!!,发现穿上球衣,肚子上都有凸起了,-_-!!!,加紧减肥,把肚子减掉,-_-!!! [img]http://dl.iteye.com/upload/attachment/261575/a647b5c7-e865-381e-88e7-a22ee5a4af99.jpg[/img] [img]http://dl.iteye...
2010-06-08 19:39:22
132
原创 4.1
[code="c"] #include int strrinde(char s[], char t[]){ int i, j, k, pos = -1; for(i = 0; s[i] != '\0'; i++){ for(j = i, k = 0; t[k] != '\0' && s[j] == t[k]; j++, k++) ; if(k > 0 && t...
2010-05-20 00:07:44
103
原创 [转载]雷人or油菜 还是来捣乱的应聘者?
[img]http://www.bowerpower.cn/wp-content/uploads/2009/06/235955_5fyx5ffgd3r91ee1.jpg[/img] [img]http://www.bowerpower.cn/wp-content/uploads/2009/06/235955_bxqsvns1ugo66xk1.jpg[/img] :wink: 出自:h...
2010-05-09 23:38:14
113
1.19
[code="c"] #include void reverse(char s[]); main(){ int len; char line[1000]; while((len = getline(line, 1000)) > 0){ reverse(line); printf("%s\n", line); } } void r...
2010-03-17 00:03:00
114
Item 66
[code="java"] public class StopThread { private static boolean stopRequest; public static void main(String[] args) throws InterruptedException { Thread thread = new Thread(new Ru...
2010-03-04 23:19:14
99
原创 Happy Birthday to myself
祝自己生日快乐,2年多了,时间真的可以改变很多东西,许的愿是真心的希望你幸福 [img]http://dl.iteye.com/upload/attachment/210507/8439ce20-c7ba-3540-9ee3-aaf83e89ad86.jpg[/img] ...
2010-02-28 20:45:27
151
原创 西班牙人理论 & 英国人理论
西班牙人的理论坚持认为地球上只有一个固定数量的价值,因此通往积累财富的道路就是学会从土地或者人身上更有效的榨取财富,而英国人的理论认为价值可以通过天才和技术创造出来。因此英国就产生了工业革命,而西班牙人就转动起了车轮,开始开拓疆土和剥削在新大陆的印第安人....
2010-01-30 00:52:22
1913
require 'net/https' no such file to load -- openssl
[code="java"] apt-get install openssl libssl-dev [/code] [code="java"] cd rubySourceRoot/ext/openssl ruby extconf.rb make sudo make install [/code] nnd,编译安装的ruby1.9,当require 'net/ht...
2009-10-30 03:00:34
161
Class access
However, if a static member of that class(class which has no access specifier) is public, the client programmer can still access that static member even though they cannot create an object of that c...
2009-10-16 16:41:39
112
Statci initialize
重新开始再看一遍Thinking In Java,今天发现一点小问题. Chapter 4 They(static variable) are initialized only when the first Table object is created (or the first static access occurs) 其实这个描述应该不是非常的正确,比如我用Table.clas...
2009-10-14 12:41:01
96
明天去看燕姿...嘿嘿
第一次那么奢侈..明天去看燕姿...嘿嘿 (*^__^*) [img]http://www.iteye.com/upload/attachment/133391/c80778b6-da18-363a-89ee-9044031a2603-thumb.jpg?1249650776[/img]
2009-08-07 21:15:09
96
原创 no such file to load -- zlib (LoadError)
ubuntu下从源码安装ruby: ./Configure –prefix=/usr/local/ruby-1.9.1 sudo make && make install 装完后试试gem list --local出现no such file to load -- zlib (LoadError) ,sudo apt-get install zlib1g-dev即可,然后到源码目录的ext...
2009-07-27 00:49:42
148
irb中不能显示历史命令
前几天从源码安装了ruby1.9, 但是在irb下,按向上的方向键,显示不出历史命令,而是[[A,弄了好几天,弄死我了,论坛里好像也搜索到一个帖子也是这个问题, http://www.iteye.com/post/220404 不过我install了curses也没用, nnd,弄了一晚上终于找到了一个解决办法,记录一下 http://discuss.joyent.com/viewtopi...
2009-05-12 01:19:04
236
再听燕姿的第一张专辑
:oops: 俺不会说什么煽情的话,只是喜欢听燕姿的歌,很纯,能引起共鸣,不知道je爱听燕姿歌的闷骚男多不,嘿嘿。 [img]http://fantasybei.iteye.com/upload/picture/pic/36639/50b14365-88fb-3b6d-9538-7aea9f45efec.jpg[/img]...
2009-05-10 23:41:49
89
原创 JavaScript:The World's Most Misunderstood Programm
[size=x-large]JavaScript:The World's Most Misunderstood Programming Language[/size] [align=center]Douglas Crockford www.crockford.com[/align] [url=http://www.crockford.com/javascript]JavaScript...
2009-05-01 02:03:17
157
JavaScript: The Good Parts 读书笔记(3)
第四章主要讲的是Function. function有四种调用的pattern,重点是要注意这4种pattern下,function中的this分别指什么。 1.the method invocation pattern function被作为某个对象的property时,我们把这个function叫做method,当在那个对象...
2009-04-29 22:33:16
108
今年的愿望
突然感觉自己还太不成熟了,有时候也会经常想起自己还有很多责任,但是没几天又抛到一边了。 现在就写下来吧,希望能提醒下自己。 今年的计划: 1.把国家助学贷款还了. 2.帮家里还部分债. 3.努力学技术,找一个更好的公司...
2009-04-26 00:03:43
86
JavaScript: The Good Parts 读书笔记(2)
第2章没什么东西,第三章主讲了下object literal还有prototyep,基本没什么太多内容,都是犀牛书上讲过的,倒是了解到了一个小细节: 我们一般object literal来创建对象是这样的, [code="js"] var obj = { "first-name": "Lee", "last_name": "fantasybei" } ...
2009-04-25 12:58:05
127
JavaScript: The Good Parts 读书笔记(1)
the good part: 1.functions It is Lisp in C's clothing.呵呵,披着c外衣的lisp,怪俺菜了点,sicp也 看过一段时间,结果好久没看了,还没理解到function programming的精髓。 2.loose typing strong typing和loose typin...
2009-04-25 00:32:12
137
stack的java实现
[code="java"] import java.lang.Exception; class MyStack { private static final int MAX_SIZE = 5; private int[] t = new int[MAX_SIZE]; private int top = -1; public void push(int x) throw...
2008-11-24 12:05:13
420
2.5
[code="java"]Show that we can represent pairs of nonnegative integers using only numbers and arithmetic operations if we represent the pair a and b as the integer that is the product 2a 3b. Give the ...
2008-11-14 17:22:34
133
1.6
Alyssa P. Hacker doesn't see why if needs to be provided as a special form. ``Why can't I just define it as an ordinary procedure in terms of cond?'' she asks. Alyssa's friend Eva Lu Ator claims this ...
2008-10-28 15:03:31
177
SICP习题1.5
(define (p) (p)) (define (test x y) (if (= x 0) 0 y)) (test 0 (p)) 分别在使用applicative-order evaluation和normal-order evaluation的interpreter上执行(test 0 (p)),分析其结果? ...
2008-09-16 13:21:26
207
Java的动态代理机制
第一篇blog文章,自己是个菜鸟,希望大家能有指出文章中的错误,大家一起进步。 上图是代理模式的实现,代理模式主要是用于客户端对真实对象访问之前进行一些控制,例如日志输出,权限控制等,如上图,客户程序只能通过SubjectProxy来访问RealSubject,因为代理类和实现类都是实现一个同一个Subject接口,所以在客户程序看来,他只知道访问的是实现Subject接口的一...
2008-05-29 13:37:04
86
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人