摘要: tail --follow=name Mylog_20110720.log | grep --line-buffered LINUX > linux.log 阅读全文
posted @ 2011-07-21 00:32 史莱姆 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 问题1: 15ms 内多次调用 GetSystemTime / GetLocalTime(java 中对应的函数为 System.currentTimeMillis()), 返回相同的值 解决办法, 使用GetSystemTime 作为baseline, 然后用windows 提供的高精度计时器 QueryPerformanceCounter(java 中相应的函数为 System.nanoTime()) 做计时,精确时钟为baseline + 计时器时间。问题2: QueryPerformanceCounter/QueryPerformanceFrequency 的问题这个问题主要取决与wi 阅读全文
posted @ 2011-06-14 23:57 史莱姆 阅读(3611) 评论(0) 推荐(0) 编辑
摘要: Windows API:GetSystemTime/GetLocalTimeJAVA:Calendar cal = new GregorianCalendar(TimeZone.getTimeZone("GMT"));15 毫秒内调用多次, 只能得到相同的timestamp 阅读全文
posted @ 2011-06-09 03:33 史莱姆 阅读(285) 评论(0) 推荐(0) 编辑
摘要: http://www.tcpipguide.com/free/t_TCPBasicOperationConnectionEstablishmentManagement.htm 阅读全文
posted @ 2011-06-03 23:38 史莱姆 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 大潮退去,海啸声声。 美国参议院常设调查委员会(Senate permanent subcommittee on investigations)长达2年的调查显示,投资银行设计、出售、交易以及从中获利的抵押贷款有关的结构性金融产品是金融危机的主要原因之一。 投行是灾难的受害者,也是制造者。笔者试图根据这份《金融危机调查报告》,以德银和高盛为代表,还原其在金融危机前所作所为。 1.圈套 “我们必须要赚钱,客户的幸福是第二位的。” 金融危机的源头之一在于美国房价下跌,而按揭房贷作为资产被打包放入RMBS (住房抵押贷款支持证券)和债务抵押债券(CDO)产品中,并创造了与之挂钩的CDS(信用违约掉. 阅读全文
posted @ 2011-04-27 00:38 史莱姆 阅读(244) 评论(0) 推荐(0) 编辑
摘要: When a transition between user mode and kernel mode is required in an operating system, a context switch is not necessary; a mode transition is not by itself a context switch. However, depending on the operating system, a context switch may also take place at this time. 阅读全文
posted @ 2011-04-26 05:22 史莱姆 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 2007年一个寒冷的上午,在华盛顿特区朗方广场地铁站里,一位男子用一把小提琴演奏了6首巴赫的作品,共演奏了45分钟。他前面的地上,放着一顶口子朝上的帽子。显然,这是一位街头卖艺人。没有人知道,这位在地铁里卖艺的小提琴手,是约夏·贝尔,世界上最伟大的音乐家之一。他演奏的是一首世上最复杂的作品,用的是一把价值350万美元的小提琴。在约夏·贝尔演奏的45分钟里,大约有2000人从这个地铁站经过。大约3分钟之后,一位显然是有音乐修养的中年男子,他知道演奏者是一位音乐家,放慢了脚步,甚至停了几秒钟听了一下,然后急匆匆地继续赶路了。大约4分钟之后,约夏·贝尔收到了他的第一块美 阅读全文
posted @ 2011-04-18 06:55 史莱姆 阅读(373) 评论(0) 推荐(0) 编辑
摘要: http://engin.bzzzt.biz/embeddeddb.shtmlUPDATE 20-OCT-2008:Instead of creating a DBCommand for each iteration, I started to use one DBCommand instance, as any normal person would do in the first place. And it chagned the results quite a bit. It looks like object initiation for Firebird is expensive.. 阅读全文
posted @ 2011-04-04 02:11 史莱姆 阅读(739) 评论(0) 推荐(0) 编辑
摘要: http://www.validfix.com/fix-analyzer.html 阅读全文
posted @ 2010-12-10 06:26 史莱姆 阅读(252) 评论(0) 推荐(0) 编辑
摘要: The auto script is including two parts.1. Use crontab to modify and install the daily jobcrontab -e0 20 * * * /path/upload.sh crontab: installing new crontabcrontab will run script at /path/upload.sh at 8PM everyday. 2. script upload.shThis script is to batch upload *.csv file to xxx.xxx.xxx.xxx xx 阅读全文
posted @ 2010-12-10 06:21 史莱姆 阅读(377) 评论(0) 推荐(0) 编辑