Study 学习
文章平均质量分 53
willpowerforever
这个作者很懒,什么都没留下…
展开
-
Linux Basics - 1
1> linux file types:ordinary, directory, block(harddisk...device), character(crt,...)2> file name:256 characters3> directories:/bin Contains the Linux system commands and programs (also ...2007-03-06 14:25:11 · 78 阅读 · 0 评论 -
Basics - Binary search
java 代码 public class BinarySearch { public static int search(int element, int[] sortedArray) { int length = sortedArray.length; int left = 0...2007-03-26 15:53:52 · 77 阅读 · 0 评论 -
The best chinese BAT tutorial(from www.boofee.net/bigfee/)
如何创建批处理文件? 不要听了批处理文件就感到很神气,其实这东西很简单的.你用过记事本没有?用过? 好的.将记事本打开,什么都不用写,然后选择文件,保存.保存类型选择所有文件,文件名则命名为 *.bat 这个*代表是文件名,你可以随便的起.保存好之后,看看你保存的地方,会出现一个白色窗口里有个黄色齿轮的图标.这东西就是你创建的批处理文件,双击他就可以运行,但他现在由于里面没有输入任何命令...2007-03-27 11:58:41 · 222 阅读 · 0 评论 -
How to know the main class of a jar file?
Easy. Here is an implementation from Hadoop.java 代码 /** * A micro-application that prints the main class name out of a jar file. * @author Owen O'Malley */ public cl...2007-04-02 15:18:39 · 84 阅读 · 0 评论 -
Daemon Thread Notes
1. 只要程式中的non-Daemon thread都結束了.. 就算有Daemon Thread仍在執行中... 程式一樣會被強制結束... 最簡單的例子就是garbage collector thread.. 2. 如果某個 Thread 是 daemon thread,則它所產生的所有 threads 天生就 具有 daemon 的特性 3. A daemon thread...2007-04-03 09:16:22 · 94 阅读 · 0 评论 -
Unicode and UTF8
What is Unicode?Unicode provides a unique number for every character,no matter what the platform,no matter what the program,no matter what the language.Fundamentally, computers just deal with num...2007-04-03 10:27:04 · 72 阅读 · 0 评论 -
Running IE from command line
Here's a simple way you can run Internet Explorer from the command line:Create a new text file that contains the following line:@start "" /b "C:\Program Files\Internet Explorer\iexplore.exe" %*R...2007-04-03 10:58:15 · 79 阅读 · 0 评论 -
Java performance tunning
http://www.javaperformancetuning.com/A quite useful website which contains everything on java performance tunning.2007-04-03 11:37:16 · 85 阅读 · 0 评论 -
Java cleanup code
Java shutdown hook guarantee that clean-up code is always run, regardless of how the user terminates the application.Here is an example from Hadoop:java 代码 /** * A class to track the ...2007-04-03 12:20:26 · 340 阅读 · 0 评论 -
Expressions Transform
Expressions, Conversion and Evaluation with C(All you need to know about Expressions)In this tutorial, I will be writing in detail about an important programming concept i.e. Algebraic Expressions,...2007-04-13 11:13:26 · 263 阅读 · 0 评论 -
数据仓库
数据仓库,英文名称为Data Warehouse,可简写为DW。 数据仓库之父Bill Inmon在1991年出版的“Building the Data Warehouse”一书中所提出的定义被广泛接受——数据仓库(Data Warehouse)是一个面向主题的(Su...2007-04-18 10:38:51 · 279 阅读 · 0 评论 -
Performance...
« I used to work for... | Main | Usability for Programmers » Google TechTalk: Open Source Performance TestingGoranka Bjedov - Using Open Source Tools for Performance Testing, Google TechTalk, ...2007-06-05 15:11:17 · 93 阅读 · 0 评论 -
解决java.lang.OutOfMemoryError: PermGen space(转帖)
解决方案就是:在启动服务器时加上指定PermGen区域的内存大小的配置.-XX:PermSize=128m -XX:MaxPermSize=256m 比如:nohup /usr/java/jdk1.5.0_08/bin/java -Dcom.sun.management.jmxremote -Xms512m -Xmx1024m -XX:=128m -XX:MaxPermSize=256m -j...2007-06-05 18:07:48 · 87 阅读 · 0 评论 -
lock-free
1. http://www.ibm.com/developerworks/java/library/j-jtp11234/--------------------------------------- 2.wait free synchronization2007-06-18 22:06:44 · 149 阅读 · 0 评论 -
Cray Reminiscences
Kirk Pepperdine's attendence of AMD's performance talk at JavaOne produced a cascade of fascinating memories about Cray optimizations. Here, Kirk relates some of the most interesting optimizations tha...2007-08-29 15:54:44 · 122 阅读 · 0 评论 -
Scalability?
严格上讲,scalability还没有正式定义, 甚至有人觉得这样的词完全是带有商业味的。但我觉得以下的解释很直观:(from Steve Haines) performance measures thespeed with which a single request can be executed, while scalabilitymeasures the ability o...原创 2008-10-07 14:07:51 · 428 阅读 · 0 评论 -
How to set up a simple LRU cache using LinkedHash
How to set up a simple LRU cache using LinkedHashMapCachesCaches are a simple way to improve the performance of an application that reads data from a "slow" source such as files on disk or ro...原创 2008-11-03 18:05:37 · 137 阅读 · 0 评论 -
MergeSort
MergeSort is a sample solution from the idea Dive - and - Conquer.I show my code below: java 代码 public class MergeSort { public static void sort(int[] arra...2007-03-23 17:26:16 · 79 阅读 · 0 评论 -
Graph data structure
1. adjacent matrixgood for border scan, bad for space O(n*n), spare matrix mostlyjava 代码 public class GraphMatrix { private int[][] nodeMatrix; private int mat...2007-03-23 12:04:05 · 117 阅读 · 0 评论 -
Linux Basics - 2
1>man(help), passwd(change password), su - root(switch user), who(who is logged in), date(date and time), echo(disply message)echo $PATH/usr/bin:/usr/local/bin echo My name is $USER - Home direc...2007-03-06 15:58:43 · 85 阅读 · 0 评论 -
多线程同步与互斥
和作者联系:djb_skyface@tom.com 接触多线程已经不少时间了,也做了不少事情,但是一直觉得用起来不那么顺手,在debug的时候,往往会比较担心在同步上出什么问题,想起"程序员最怕的是自己写的代码"这句话,觉得真是不假. 终于有一天,我觉得是时候把这个问题弄清楚了,所以,我就在网上找相关的内容看,结果竟然是找不到在我这个阶段应该看的,不是太简单,就是一笔带过...2007-03-07 11:44:29 · 155 阅读 · 0 评论 -
A useful MultiSemaphore
java 代码 public class MultiSemaphore { protected int value; public MultiSemaphore(int v) { value = v; } //The P method ...2007-03-07 11:50:36 · 78 阅读 · 0 评论 -
A simple thread pool implementation
java 代码 import java.util.Vector; /** * Thread pool */ public class ThreadPool implements Runnable { // Default ThreadPool minimum size ...2007-03-07 11:53:58 · 91 阅读 · 0 评论 -
Configuring JBoss SSL
There are a few web pages that describe configuring Secure Socket Layer (SSL) for JBoss, but most gloss over some of the details.Deep inside the guts of JBoss is an instance of another server called ...2007-03-08 19:02:07 · 74 阅读 · 0 评论 -
Comparing Struts 1 and 2
<script> var show = document.getElementById('show'); var hide = document.getElementById('hide'); var versionComment = document.getElementById('versionComment'); functi...2007-03-12 13:21:10 · 54 阅读 · 0 评论 -
Spring VS EJB
这篇文章和它的讨论实在是太精彩了, 所以收藏之....引自:http://www.cnblogs.com/raimundo/archive/2004/09/20/44697.html我知道我要挨扳砖,没事,来吧:) 赫赫,我来说一下spring vs EJB,首先强调,我不是ejb的拥护者,但我欣赏他的完整、他的学院气,同时也深感他的硬伤,我不是spring的拥护者,虽然去年3、4月间看...2007-03-14 11:39:26 · 164 阅读 · 0 评论 -
Spring VS EJB
这篇文章和它的讨论实在是太精彩了, 所以收藏之....引自:http://www.cnblogs.com/raimundo/archive/2004/09/20/44697.html我知道我要挨扳砖,没事,来吧:) 赫赫,我来说一下spring vs EJB,首先强调,我不是ejb的拥护者,但我欣赏他的完整、他的学院气,同时也深感他的硬伤,我不是spring的拥护者,虽然去年3、4月间看...2007-03-14 11:40:06 · 78 阅读 · 0 评论 -
Spring VS EJB
这篇文章和它的讨论实在是太精彩了, 所以收藏之....引自:http://www.cnblogs.com/raimundo/archive/2004/09/20/44697.html我知道我要挨扳砖,没事,来吧:) 赫赫,我来说一下spring vs EJB,首先强调,我不是ejb的拥护者,但我欣赏他的完整、他的学院气,同时也深感他的硬伤,我不是spring的拥护者,虽然去年3、4月间看...2007-03-14 11:40:29 · 101 阅读 · 0 评论 -
Spring VS EJB(1)
这篇文章和它的讨论实在是太精彩了, 所以收藏之....引自:http://www.cnblogs.com/raimundo/archive/2004/09/20/44697.html我知道我要挨扳砖,没事,来吧:) 赫赫,我来说一下spring vs EJB,首先强调,我不是ejb的拥护者,但我欣赏他的完整、他的学院气,同时也深感他的硬伤,我不是spring的拥护者,虽然去年3、4月间看...2007-03-14 11:43:31 · 59 阅读 · 0 评论 -
Spring VS EJB(1)
这篇文章和它的讨论实在是太精彩了, 所以收藏之....引自:http://www.cnblogs.com/raimundo/archive/2004/09/20/44697.html我知道我要挨扳砖,没事,来吧:) 赫赫,我来说一下spring vs EJB,首先强调,我不是ejb的拥护者,但我欣赏他的完整、他的学院气,同时也深感他的硬伤,我不是spring的拥护者,虽然去年3、4月间看...2007-03-14 11:53:05 · 102 阅读 · 0 评论 -
Spring VS EJB (2)
Re: 转贴:Spring vs. EJB 发表: 2005年02月07日 11:27 回复 ...2007-03-14 12:09:10 · 86 阅读 · 0 评论 -
SSL Configuration (solve "No trusted certificate found")
按照以下的步骤终于搞定了SSL Configuration, 收藏之...1.环境准备 Jdk1.4.2 Tomcat5.0.28 cas-server-2.0.12(没有采用更高版本,是因为它最简单明了) cas-client-java-2.1.1 2.在jdk上配置SSL 到http://java.sun.com/products/jsse/去下载jsse,我用的是1.0.3;下...2007-03-14 15:55:01 · 445 阅读 · 0 评论 -
Functional Programming For The Rest of Us
I like connect beautiful articles since I am afraid of losing them. This is a good one. So, I do it.And I think for those who are looking for some intro matrial on FP and cannot find a good one, thi...2007-03-23 10:24:46 · 311 阅读 · 0 评论 -
Functional Programming For The Rest of Us
I like connect beautiful articles since I am afraid of losing them. This is a good one. So, I do it.And I think for those who are looking for some intro matrial on FP and cannot find a good one, thi...2007-03-23 10:24:57 · 114 阅读 · 0 评论 -
Functional Programming For The Rest of Us
I like connect beautiful articles since I am afraid of losing them. This is a good one. So, I do it.And I think for those who are looking for some intro matrial on FP and cannot find a good one, thi...2007-03-23 10:39:29 · 263 阅读 · 0 评论 -
字符编码笔记:ASCII,Unicode和UTF-8 (引用)
字符编码笔记:ASCII,Unicode和UTF-8阮一峰 发表于 2007年10月28日 | 分类:首页 -> 档案 -> IT技术 今天中午,我突然想搞清楚Unicode和UTF-8之间的关系,于是就开始在网上查资料。结果,这个问题比我想象的复杂,从午饭后一直看到晚上9点,才算初步搞清楚。下面就是我的笔记,主要用来整理自己的思路。但是,我尽量试图写得...2009-01-07 10:39:20 · 108 阅读 · 0 评论