ITeye博客

tmrp

tmrp · 共 37 篇文章

PhantomReference

在java中,引用的强度有以下四个级别:1.Strong Referece 2. soft reference 3. weak reference 4 PhantomReference 关于PhantomReference有以下几点需要注意: 1 the PhantomReference.get() method always returns null 2 another difference is that the PhantomReference is enqueueed only after the finalize() method has been called. 3 If you…

2010-06-01 13:36 · 评论(0)

summary of best practices for exception handling

The nature of Exceptions there are three different situations that cause exceptions to be thrown: Exceptions due to programming errors Exceptions due to client code errors Exceptions due to the resource failures Types of Exceptions in java Checked Exceptions Unchecked Exceptions Best Practices for …

2010-04-29 16:53 · 评论(0)

内部类 inner class

内部类,静态类,reference to the following link: http://viralpatel.net/blogs/2009/10/inner-classes-in-java.html

2010-04-07 20:24 · 评论(0)

text file vs binary file

http://www.cs.umd.edu/class/sum2003/cmsc311/Notes/BitOp/asciiBin.html

2010-03-11 21:45 · 评论(0)

LL VS LR文法

http://www.panopticoncentral.net/archive/2009/03/13/24813.aspx

2010-03-06 23:44 · 评论(0)

Java 注意字符

原来JAVA中转义字符就很简单的四种: 1.八进制转义序列:\ + 1到3位5数字;范围'\000'~'\377' \0:空字符 2.Unicode转义字符:\u + 四个十六进制数字;0~65535 \u0000:空字符 3.特殊字符:就3个 ":双引号 ':单引号 \:反斜线 4.控制字符:5个 ' 单引号字符 \ 反斜杠字符 \r 回车 \n 换行 \f 走纸换页 \t 横向跳格 \b 退格 点的转义:. ==> u002E 美元符号的转义:$ ==> u0024 乘方符号的转义:^ ==> u005E 左大括号的转义:{ ==> u007B 左方括号的转义:[ ==> u005B 左…

2010-03-03 22:48 · 评论(0)

词法分析

今天项目碰到一个小问题,需要利用到词法分析。 可惜大学的时候没有好好学习编译原理啊 :? ,在网上搜索到了一篇文件,讲的很基础,大家分享一下。 http://www.blogjava.net/qujinlong123/archive/2007/05/08/113773.html

2010-03-03 22:30 · 评论(0)

some links maybe useful

http://www.jarbao.com/index.htm //jar包下载中心 http://www.cn-java.com //中文Java技术网 http://java.chinaitlab.com //中国IT实验室 http://www.iteye.com //JavaEye 软件开发交流社区 http://www.qpsh.com //网页特效地址 http://www.sourceforgecn.net //开源无界 http://www.diybl.com //DIY部落 http://www.mscto.com //SD软件开发网 http://www.51cto.co…

2010-03-01 14:40 · 评论(0)

Some readings in distributed systems

You can find some good readings in distributed systems on this page http://bytepawn.com/readings-in-distributed-systems/

2010-02-27 18:14 · 评论(0)

Some notes about disk

Disk: ~100MB/S sequential writes ~1.5MB/S random writes --~10ms to seek --~5ms on expensive 15k rpm disks SSD ~100MB/s random writes. also ,you can find more information about disk from the jeff dean's keynotes.(jeff dean,google fellow)

2010-02-27 11:40 · 评论(0)

what is a thread

thread到底是什么,在程序中到底表示什么? Simply put, a thread is a program's path of execution. Most programs written today run as a single thread, causing problems when multiple events or actions need to occur at the same time. Let's say, for example, a program is not capable of drawing pictures while reading keys…

2010-02-24 22:32 · 评论(0)

sleep,wait,notify in java And how to stop a thread

对于多线程之间的交互和如何有效的停止一个线程。 这边文章讲的比较详细How to stop a thread or a task http://forward.com.au/javaProgramming/HowToStopAThread.html 对于sleep,wait, notify的讲解: http://www.blogjava.net/fhtdy2004/archive/2009/06/08/280728.html 也还不错

2010-02-24 20:59 · 评论(0)

Vi 打开txt文件乱码问题

.vimrc中或.exrc中设置 Q: 1)通常在非中文编码方式的文本中输入中文后,vi不能保存文件.错误信息如下: test.txt" 不能写入 -- 转换失败 请按 ENTER 或其它命令继续 2)而且删除中文字符时,总是半个半个的删除,过长的行还会显示乱码. A: 在用户的home目录下的.vimrc或.exrc文件中,加入 set encoding=cp936或set encoding=gb2312;则很好地可以解决这些问题,如果没有这个文>件,可以自己建立. Q: 如果文本文件的编码是utf-8 Unicode,用vi打开会乱码. A: 在用户的home目录下的.vim或.exrc…

2010-01-07 16:36 · 评论(0)

字符,字节和编码

http://www.regexlab.com/zh/encoding.htm

2010-01-07 15:36 · 评论(0)

java 的转义字符,在正则表达式中应用

点的转义:. ==> u002E 美元符号的转义:$ ==> u0024 乘方符号的转义:^ ==> u005E 左大括号的转义:{ ==> u007B 左方括号的转义:[ ==> u005B 左圆括号的转义:( ==> u0028 竖线的转义:| ==> u007C 右圆括号的转义:) ==> u0029 星号的转义:* ==> u002A 加号的转义:+ ==> u002B 问号的转义:? ==> u003F 反斜杠的转义: ==> u005C

2010-01-05 14:01 · 评论(0)