2008年11月30日星期日
2008年11月29日星期六
2008年11月28日星期五
blogger daily 11/28/2008
Using Top More Efficiently - Linux Forums
- Dynamic priority
- Nice value, also known as base priority
- Virtual Size of the task
- The size of RAM currently consumed by the task
- Some memory areas could be shared between two or more task
- init 进程为根进程,所有进程都是它的子进程
aux 以BSD风格显示进程 常用 m 开关,在顶部显示 free 信息 M 按内存占用排序。由大到小 P 按CPU占用排序。由大到小 - nohup
各大型网站架构分析收集 - 黄刚的专栏 - CSDNBlog
- www.taoshibao.com
Posted from Diigo. The rest of my favorite links are here.
2008年11月27日星期四
如何让手机和Google calendar同步
Google calendar是一个非常优秀的服务,方便的操作界面,支持多个日历,多种的通知方式,我一直在使用它。自从用了智能手机,我就非常希望手机的日程安排能和Google calendar同步,这样,我就能同时在手机和Google calendar上更新日程,而不用担心信息的不一致。Google了一下,发现了这个网站,正好能满足我的要求。
注册后,仔细看了一下,竟然不支持我的Windows Mobile,晕倒。只好再去Google。后来找到了一条曲线救国的道路。
Google calendar提供了一个小软件Google Calendar Sync,支持calendar和Outlook的同步,而我的手机也可以和Outlook同步,于是通过Outlook,打通了手机和calendar之间的道路。麻烦虽然是麻烦一点,但我喜欢:)
注册后,仔细看了一下,竟然不支持我的Windows Mobile,晕倒。只好再去Google。后来找到了一条曲线救国的道路。
Google calendar提供了一个小软件Google Calendar Sync,支持calendar和Outlook的同步,而我的手机也可以和Outlook同步,于是通过Outlook,打通了手机和calendar之间的道路。麻烦虽然是麻烦一点,但我喜欢:)
blogger daily 11/27/2008
底下那张图片不错,用来活动脖子
Posted from Diigo. The rest of my favorite links are here.
2008年11月26日星期三
blogger daily 11/26/2008
关于InetAddress和NetworkInterface的区别和用法 - - Java - JavaEye论坛
- 类InetAddress (这个类其实主要是和DNS打交道的)
- InetAddress实例中会存储主机名和ip地址信息
- 类 NetworkInterface(这个类代表了本地的网络接口)
Posted from Diigo. The rest of my favorite links are here.
2008年11月25日星期二
2008年11月23日星期日
blogger daily 11/23/2008
2008年11月22日星期六
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)