2008年11月20日星期四
2008年11月19日星期三
blogger daily 11/19/2008
» 编程珠玑番外篇-4. Linux 下的 Facade 程序 | 4G spaces
- ssh name@server.com < script.py
- 就可以直接把本机上的 script.py 放在服务器上跑, 无需把文件先拷贝过去.
- 鸟哥的Linux私房菜
Smartly load your properties - JavaWorld
- ClassLoader.getResourceAsStream() 不需要/开头,都使用绝对路径
Class.getResourceAsStream() 以/开头,绝对路径;否则,是相对路径
用class load资源,可以有两种路径的写法。 - post by lithium
- ClassLoader.getResourceAsStream() 不需要/开头,都使用绝对路径
Posted from Diigo. The rest of my favorite links are here.
2008年11月18日星期二
blogger daily 11/18/2008
A. Sundararajan's Weblog - Annotated
- I looked at heapViewer.c and it does miss Agent_OnAttach function
- AgentLoadException: Failed to load agent library 异常的原因,可能是miss Agent_OnAttach function. - post by lithium
- JNIEXPORT jint JNICALL
Agent_OnAttach(JavaVM *vm, char *options, void *reserved) {
printf("attached..\n");
return Agent_OnLoad(vm, options, reserved);
}
- With the Mustang JDK you can now attach
jconsole to any application, even if it wasn't launched with the magic
-Dcom.sun.management.jmxremote - You can load any suitably coded native or Java agent
into running JVM using the attach API. - VirtualMachine vm = VirtualMachine.attach(args[0]);
- vm.loadAgent(args[1], null);
- 山寨版的唐骏
Google 黑板报 -- Google 中国的博客网志: 中文搜索:公正性是实现准确性的根本—中国搜索行业应当立即行动起来、正视搜索公正性 - Annotated
- 3. 我们呼吁所有的搜索引擎,加入谷歌、腾讯、雅虎的行列,作出下列承诺:
(1) 明确标识和区分广告及自然搜索结果,以免误导用户;
(2) 珍惜搜索结果页面的黄金区域,决不让第一页搜索结果全部为广告充斥,让中文用户彻底告别搜索从第二页开始的历史;
(3) 绝不滥用自身的市场地位,绝不以收费或变相收费的形式来改变或删除搜索结果。- 剑指百度呀,哈哈 - post by lithium
SourceForge.net: Highly Scalable Java
- These are intended as direct replacements for the java.util.* or java.util.concurrent.* collections but with better performance when many CPUs are using the collection concurrently.
- 口气够大的,找时间来看看 - post by lithium
怎样最有效地测试异常? - ajoo - JavaEye技术网站
- @Test(expected=FooException.class)
- public void testDoSomethingBadAfterInitializeSomething() {
- initializeSomething();
- doSomethingBad();
- }
- 用JUnit4可以这样测试异常,简洁明了 - post by lithium
Posted from Diigo. The rest of my favorite links are here.
2008年11月16日星期日
Java Concurrency in Practice
JavaConcurrency in Practice
几位Java大牛的作品,绝对值得一读!

下载
Threads are a fundamental part of the Javaplatform. As multicore processors become the norm, usingconcurrency effectively becomes essential for buildinghigh-performance applications. Java SE 5 and 6 are a huge stepforward for the development of concurrent applications, withimprovements to the Java Virtual Machine to supporthigh-performance, highly scalable concurrent classes and a rich setof new concurrency building blocks. In Java Concurrency inPractice, the creators of these new facilitiesexplain not only how they work and how to use them, but also themotivation and design patterns behind them.
However, developing, testing, and debuggingmultithreaded programs can still be very difficult; it is all tooeasy to create concurrent programs that appear to work, but failwhen it matters most: in production, under heavy load. Java Concurrency inPractice arms readers with both the theoreticalunderpinnings and concrete techniques for building reliable,scalable, maintainable concurrent applications. Rather than simplyoffering an inventory of concurrency APIs and mechanisms, itprovides design rules, patterns, and mental models that make iteasier to build concurrent programs that are both correct andperformant.
This book covers:
几位Java大牛的作品,绝对值得一读!
下载
Threads are a fundamental part of the Javaplatform. As multicore processors become the norm, usingconcurrency effectively becomes essential for buildinghigh-performance applications. Java SE 5 and 6 are a huge stepforward for the development of concurrent applications, withimprovements to the Java Virtual Machine to supporthigh-performance, highly scalable concurrent classes and a rich setof new concurrency building blocks. In Java Concurrency inPractice, the creators of these new facilitiesexplain not only how they work and how to use them, but also themotivation and design patterns behind them.
However, developing, testing, and debuggingmultithreaded programs can still be very difficult; it is all tooeasy to create concurrent programs that appear to work, but failwhen it matters most: in production, under heavy load. Java Concurrency inPractice arms readers with both the theoreticalunderpinnings and concrete techniques for building reliable,scalable, maintainable concurrent applications. Rather than simplyoffering an inventory of concurrency APIs and mechanisms, itprovides design rules, patterns, and mental models that make iteasier to build concurrent programs that are both correct andperformant.
This book covers:
- Basic concepts of concurrency and threadsafety
- Techniques for building and composingthread-safe classes
- Using the concurrency building blocks injava.util.concurrent
- Performance optimization dos and don'ts
- Testing concurrent programs
- Advanced topics such as atomic variables,nonblocking algorithms, and the Java Memory Model
订阅:
博文 (Atom)