03 2010 档案

摘要:Use HttpApplication.CompleteRequest Instead of Response.End   HttpApplication.CompleteRequest is preferable to use for aborting a request in an ASP.NET application over Response.End, because it... 阅读全文
posted @ 2010-03-19 12:53 octoberfirst 阅读(388) 评论(0) 推荐(0) 编辑
摘要:A low-level Look at the ASP.NET Architecture Getting Low Level This article looks at how Web requests flow through the ASP.NET framework from a very low level perspective, from Web Server, through I... 阅读全文
posted @ 2010-03-19 11:18 octoberfirst 阅读(770) 评论(0) 推荐(0) 编辑
摘要:interesting post about bits operation http://www.coranac.com/documents/bittrick/ 阅读全文
posted @ 2010-03-18 14:35 octoberfirst 阅读(137) 评论(0) 推荐(0) 编辑
摘要:如何在程序中检测本系统的Endianess?可调用下面的函数来快速验证,如果返回值为1,则为Little Endian;为0则是Big Endian:int testendian() {int x = 1;return *((char *)&x);} 阅读全文
posted @ 2010-03-14 21:46 octoberfirst 阅读(331) 评论(0) 推荐(0) 编辑
摘要:long count_bits(long n) { unsigned int c; // c accumulates the total bits set in v for (c = 0; n; c++) n &= n - 1; // clear the least significant bit set return c;}http://gurmeetsingh.wordpress.co... 阅读全文
posted @ 2010-03-13 23:19 octoberfirst 阅读(171) 评论(0) 推荐(0) 编辑
摘要:The best method for counting bits in a 32-bit integer v is the following: http://graphics.stanford.edu/~seander/bithacks.html#CountBitsSetParallel B[0] = 0x55555555 = 01010101 01010101 01010101 01010... 阅读全文
posted @ 2010-03-13 21:43 octoberfirst 阅读(313) 评论(0) 推荐(0) 编辑