摘要: dd if=/dev/zero of=/empty_file; rm /empty_file 出现提示输入y,回车 如果不清理的话,用df -h看,如果/被占满了,安装其他东西的时候就会报告no space left on device了 阅读全文
posted @ 2008-07-22 01:30 new 维生素C.net() 阅读(465) 评论(0) 推荐(1) 编辑
摘要: AssemblyName aName = new AssemblyName("DynamicAssemblyExample"); AssemblyBuilder ab = AppDomain.CurrentDomain.DefineDynamicAssembly( aName, AssemblyBu... 阅读全文
posted @ 2008-07-20 23:14 new 维生素C.net() 阅读(574) 评论(0) 推荐(0) 编辑
摘要: 看了http://wiki.centos.org/HowTos/Subversion上的tutorial. 但是完全按照这个教程来做,必须忽略中间的一个问题: 在完成第1、2步后, tutorial上说: Go test out whether or not you can access your repository from a web browser: http://yourmachine/... 阅读全文
posted @ 2008-07-18 00:53 new 维生素C.net() 阅读(1130) 评论(1) 推荐(0) 编辑
摘要: wget http://www.lighttpd.net/download/lighttpd-1.4.19.tar.gztar zxvf lighttpd*cd lightt*./configure 这时候说缺少pcre-devel yum install pcre-devel./configure --with-pcremakemake install 在ubuntu下用apt-get inst... 阅读全文
posted @ 2008-07-14 12:15 new 维生素C.net() 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 如果有这样一个类M function M(a,b){ this.n=a*10+b;} 调用代码: var n=1;var result=M(n, 1);console.log(n);console.log(result.n); 能看到两个地方的问题: n=11,不再等于1了 result is undefined 虽然调用都是new M()的方式,但是这样显得麻烦. 参考了John的方... 阅读全文
posted @ 2008-07-13 18:21 new 维生素C.net() 阅读(621) 评论(0) 推荐(0) 编辑
摘要: rmmod pcspkr 搞定它 set bell-style none (/etc/inputrc) 在/etc/modprobe.d/blacklist里增加blacklist pcspkr似乎没用... 阅读全文
posted @ 2008-07-13 16:32 new 维生素C.net() 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 0:000> !dumpheap -thinlock ------------------------------ Heap 0 Address MT Size 02d07a80 7a7aac2c 28 ThinLock owner 13 (1c5124d0) Recursive 0 02d279d0 02b88b54 116 Thin... 阅读全文
posted @ 2008-07-13 13:03 new 维生素C.net() 阅读(1185) 评论(3) 推荐(0) 编辑
摘要: 刚才被它唬了一把,幸好后来意识到了. 在性能计数器里的.net clr memory下有个# gc handles计数器, 这个计数器的值相比其他的是比较特殊的. 关于gc的计数器,绝大多数都是在gc结束的时候值才改变,但是这个却不是这样的. 比如当我们通过托管代码去请求创建一个handle,这时候这个值就加1了. 但是出于性能的考虑.net对它没有interlocked这样机制,所以这个值可能会... 阅读全文
posted @ 2008-07-10 01:17 new 维生素C.net() 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 看了提高一下dotnet程序的效率一中关于exception的部分和相关的评论,我觉得有些知识点可能大家平时没有注意到或没有深入的了解: Exception在没有产生exception的时候,换句话说没catch到exception的时候没有效率影响. 这是不对的,try里面的语句不会被compiler优化,compiler能编译程序不是主要用途,能优化才是它的价值所在. win... 阅读全文
posted @ 2008-07-07 03:22 new 维生素C.net() 阅读(2957) 评论(21) 推荐(1) 编辑
摘要: !dumpobject应该是通常用的最多的,每次遇到System.Xml.XmlDocument的时候就很头疼了.DumpXmlDocument这个命令非常实用,也很简单,看图说话: 阅读全文
posted @ 2008-07-07 02:03 new 维生素C.net() 阅读(254) 评论(2) 推荐(0) 编辑