`
文章列表
一些笔记来自《Chapter 3 of Inside the Java Virtual Machine》         1。JAVA的一些安全机制: type-safe reference casting structured memory access (no pointer arithmetic) automatic garbage collection (can't explicitly free allocated memory) array bounds chec ...
归并与归并排序算法: MergeAB(Item c[] ,int N,Item b[],int M){ Int I,j,k; For(i=0,j=0,k=0;k<N+M;k++){ If(i==N){c[k]=b[j++];continue} If(j==M){c[k]=a[i++];continue} c[k]=a[i]>b[j]?a[i++]:b[j++]; } 原地归迸(开一个辅助数组,有一部分倒了序方便作哨兵): Item aux[maxN]; Merge(Item a[],int l,int m,int r){ Int I,j,k; Fo ...
RegexBuddy: http://www.regexbuddy.com/RegexBuddyCookbook.exe Expresso:www.ultrapico.com/Expresso.htm The Regulator:http://sourceforge.net/projects/regulator PowerGREP:www.powergrep.com/PowerGREPCookbook.exe Windows Grep:www.wingrep.com 在线工具:www.regexpal.com; regex.larsolavtorvik.com; www.nregex.com w ...

声明式事务

  不成熟说法: 当一个带事务的方法A内再嵌套另一个带事务的方法B,当B抛出异常的时候,A有可能会因为B的回滚而提交错误 如果是B抛异常回滚了,A是捕捉不到B的异常而继续执行,A执行到最后准备提交 的时候发现B已经回滚了,那么A也会回滚
Chapter 20 of Inside the Java Virtual Machine Thread Synchronization       1.Java's monitor supports two kinds of thread synchronization: mutual exclusion and cooperation.   2.. On a Java virtual machine implementation that doesn't time slice, however, a higher priority thread that is ...
命令(SQL*PLUS): 查看数据文件结构:desc dba_data_files; 查看数据文件的同步信息:select file#,name,checkpoint_change# from v$datafile; 了解控制文件信息:select * from v$controlfile; 查看重做日志文件:select * from v$log; 日志切换:alter system switch logfile; 查看表空间存储限制:select * from dba_tablespaces; 查看进程:select * from V$BGPROCESS; 查看日志缓冲区: ...
官方手册 http://java.sun.com/products/java-media/2D/forDevelopers/sdk12print.html       应用经验:XP上很正常,到AIX上不正常,AIX上不能用AWT包的打印API,要用新的API包

一段怪程序段

    博客分类:
  • java
String astr = "hello" change(astr); System.out.println(astr); private void change(Sting str){    str ="world"; } hello!!!!!!     其实String赋值会重新分配内存

垃圾回收器研究

    博客分类:
  • java
《Inside the Java Virtual Machine》电子版相关章节: http://www.artima.com/insidejvm/ed2/gcP.html   amazon 上预看地址: http://www.amazon.com/Inside-Java-2-Virtual-Machine/dp/0071350934/ref=sr_1_1?ie=UTF8&qid=1305164589&sr=1-1-spell#reader_0071350934       当看到phantom reference 时可参看: http://develope ...
转自:http://weblogs.java.net/blog/alexfromsun/archive/2011/05/05/swing-better-world-generics-and-arrays   Posted by  alexfromsun   on May 5, 2011 at 2:37 PM EDT Generics doesn't work well with arrays. Everybody knows that you can't create a generified array, but not many people really know wh ...

RBAC

RBAC 三级模型 权限管理方面

动态规划

a good reference from baidu: http://wenku.baidu.com/view/0f407401bed5b9f3f90f1c5e.html
REST:Representational State Transfer REST是一种架构,而SOAP只是一个协议; Ruby on Rails 支持REST;   references: http://baike.baidu.com/view/2231325.htm http://zh.wikipedia.org/wiki/REST http://www.infoq.com/cn/articles/rest-introduction   WEB服务概念: http://zh.wikipedia.org/wiki/Web%E6%9C%8D%E5%8A%A1   WSDL ...
concepts: effective uid and gid
oracle 自带命令:exp(导出),imp(导入),在终端输入即可。 可以用PL/SQL DEV来辅助命令的可视化使用。 imp mps2/mps file=c:\xx.dmp full=y exp mpstest/mpstest@cls file=c:\xx.dmp owner=(mpstest)
Global site tag (gtag.js) - Google Analytics