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 Little Snail 阅读(131) | 评论 (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 Little Snail 阅读(104) | 评论 (0) 编辑
摘要: interesting post about bits operation http://www.coranac.com/documents/bittrick/阅读全文
posted @ 2010-03-18 14:35 Little Snail 阅读(14) | 评论 (0) 编辑
摘要: 如何在程序中检测本系统的Endianess?可调用下面的函数来快速验证,如果返回值为1,则为Little Endian;为0则是Big Endian:int testendian() {int x = 1;return *((char *)&x);}阅读全文
posted @ 2010-03-14 21:46 Little Snail 阅读(34) | 评论 (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 Little Snail 阅读(19) | 评论 (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 Little Snail 阅读(22) | 评论 (0) 编辑