ITeye博客

2007 年文章归档

共 46 篇文章

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 that helped make Cray's superfast - and how that relates to your Java programs. Published July 2007, A…

2007-08-29 15:54 · Study 学习

lock-free

1. http://www.ibm.com/developerworks/java/ library/j-jtp11234/ --------------------------------------- 2. wait free synchronization

2007-06-18 22:06 · Study 学习

解决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 -Xm x1024m -XX:=128m -XX:MaxPermSize=256m -jar oc4j.jar& HOHO,问题解决了,上网查了一个PermGen space是咋回事,原来: PermGen space的全称是Permanent Generation space,是指内存…

2007-06-05 18:07 · Study 学习

Performance...

« I used to work for... | Main | Usability for Programmers » Google TechTalk: Open Source Performance Testing Goranka Bjedov - Using Open Source Tools for Performance Testing, Google TechTalk, 8 September 2006. Goranka provides a great overview of how Google are doing performance testing "solving p…

2007-06-05 15:11 · Study 学习

a nice way to see google video

http://www.isaacmao.com/meta/2006/07/how-to-view-google-video-locally-in.html

2007-06-05 15:10 · Others 杂文

数据仓库

数据仓库 ,英文名称为 Data Warehouse ,可简写为 DW 。 数据仓库之父Bill Inmon在1991年出版的“Building the Data Warehouse”一书中所提出的定义被广泛接受——数据仓库(Data Warehouse)是一个面向主题的(Subject Oriented)、集成的(Integrated)、相对稳定的(Non-Volatile)、反映历史变化(Time Variant)的数据集合,用于支持管理决策(Decision Making Support)。 ◆面向主题:操作型数据库的数据组织面向事务处理任务,各个业务系统之间各自分离,而数据仓库中的数…

2007-04-18 10:38 · Study 学习

TOP500

全球500强 http://cn.biz.yahoo.com/overseas/top500.html

2007-04-16 17:43 · Others 杂文

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, different expression notations like Prefix, Postfix and Infix evaluation of the expressions, how to…

2007-04-13 11:13 · Study 学习

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 list of DFS clients, so that they can be closed * on exit. * @author Owen O'Malley */ private static class ClientF…

2007-04-03 12:20 · Study 学习

Java performance tunning

http://www.javaperformancetuning.com/ A quite useful website which contains everything on java performance tunning.

2007-04-03 11:37 · Study 学习

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" %* Rename the file e.bat Copy this file to your profile folder C:\Documents and Settings\your_account_name…

2007-04-03 10:58 · Study 学习

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 numbers. They store letters and other characters by assigning a number for each one. Before Unicode wa…

2007-04-03 10:27 · Study 学习

Daemon Thread Notes

1. 只要程式中的non-Daemon thread都結束了.. 就算有Daemon Thread仍在執行中... 程式一樣會被強制結束... 最簡單的例子就是garbage collector thread.. 2. 如果某個 Thread 是 daemon thread,則它所產生的所有 threads 天生就 具有 daemon 的特性 3. A daemon thread should be used for some background task that might provide a service to the applications. e.g. a Server thr…

2007-04-03 09:16 · Study 学习

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 class PrintJarMainClass { /** * @param args */ public static void main(String[] args) { try { JarFile jar_file = new JarFile(args[0]); …

2007-04-02 15:18 · Study 学习

The best chinese BAT tutorial(from www.boofee.net/bigfee/)

如何创建批处理文件? 不要听了批处理文件就感到很神气,其实这东西很简单的.你用过记事本没有?用过? 好的.将记事本打开,什么都不用写,然后选择文件,保存.保存类型选择所有文件,文件名则命名为 *.bat 这个*代表是文件名,你可以随便的起.保存好之后,看看你保存的地方,会出现一个白色窗口里有个黄色齿轮的图标.这东西就是你创建的批处理文件,双击他就可以运行,但他现在由于里面没有输入任何命令,所以他运行了并不会做任何事情.当我们想往这个*.bat文件中添加东西时,只要右键选择他,然后选择编辑,就可以打开记事本往内输入命令了. 批处理文件中的命令是什么? 批处理文件中的命令暂时先可以理解为dos命…

2007-03-27 11:58 · Study 学习

Basics - Binary search

java 代码 public class BinarySearch { public static int search(int element, int[] sortedArray) { int length = sortedArray.length; int left = 0; int right = length - 1; while (left <= right) { int mid = (left + right) / 2; if (sortedArray[mid]==element) { return mid; } else if (sortedArray[mid] > elem…

2007-03-26 15:53 · Study 学习

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[] array, int i, int j) { if (j-i == 1) { if (array[i]>array[j]) { int tmp = array[i]; array[i] = array[j]; array[j] = tmp; } } else { int mid = (i + …

2007-03-23 17:26 · Study 学习

Graph data structure

1. adjacent matrix good for border scan, bad for space O(n*n), spare matrix mostly java 代码 public class GraphMatrix { private int[][] nodeMatrix; private int matrixSize; public GraphMatrix(int matrixSize) { this.matrixSize = matrixSize; nodeMatrix = new int[matrixSize][matrixSize]; init(); } privat…

2007-03-23 12:04 · Study 学习

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, this is for u. From: coffeemug@gmail.com Functional Programming For The Rest of Us Monday, June 19, 200…

2007-03-23 10:39 · Study 学习

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, this is for u. From: coffeemug@gmail.com Functional Programming For The Rest of Us Monday, June 19, 200…

2007-03-23 10:24 · Study 学习