Ray's playground

 

2009年10月29日

Recipe 19.1. Writing a range-like Function with Float Increments

摘要: [代码][代码]Outputs:1.01.52.02.53.03.54.04.5 阅读全文

posted @ 2009-10-29 22:50 Ray Z 阅读(176) 评论(0) 推荐(0) 编辑

C++ templates chapter 12(Specialization and Overloading)

摘要: Two function templates with the same name can coexist, even though they may be instantiated so that both have identical parameter types.[代码]Function signature:The unqualified name of the function (or ... 阅读全文

posted @ 2009-10-29 21:02 Ray Z 阅读(299) 评论(0) 推荐(0) 编辑

2009年10月26日

Hello NHibernate(Chapter 2 of NHibernate in action)

摘要: [代码][代码][代码][代码][代码] 阅读全文

posted @ 2009-10-26 22:55 Ray Z 阅读(232) 评论(0) 推荐(0) 编辑

2009年10月24日

How to set connections in windows mobile emulator?

摘要: 1. Make sure that Windows Mobile 6 SDK is installed2. Run the tools Cellular Emulator under WM 63. Check the value at bottom left of Cellular Emulator (DE: COM*), Remember this value4. Open mobile 6 e... 阅读全文

posted @ 2009-10-24 11:17 Ray Z 阅读(208) 评论(0) 推荐(0) 编辑

2009年10月21日

C++ templates chapter 11(Template Argument Deduction)

摘要: Explicitly specifying template arguments on every call to a function template (for example, concat<std::string, int>(s, 3)) can quickly lead to unwieldy code. Fortunately, a C++ compiler can oft... 阅读全文

posted @ 2009-10-21 21:38 Ray Z 阅读(248) 评论(0) 推荐(0) 编辑

2009年10月20日

Rule 9: Reduce DNS Lookups(Chapter 9 of High performance Web Sites)

摘要: The Internet is based on finding servers through IP addresses.Because IP addressesare hard to remember, URLs typically contain hostnames instead, but the IP addressis still necessary for the browser t... 阅读全文

posted @ 2009-10-20 21:45 Ray Z 阅读(368) 评论(0) 推荐(0) 编辑

2009年10月19日

C++ call COM written in C#

摘要: [代码][代码] 阅读全文

posted @ 2009-10-19 21:39 Ray Z 阅读(292) 评论(0) 推荐(0) 编辑

2009年10月18日

Developing Your First Smartphone Application(Chapter3 of Professional Microsoft Smartphone Programming)

摘要: Required ToolsVisual Studio 2005Windows Mobile 6.0 SDK ActiveSync [代码] 阅读全文

posted @ 2009-10-18 13:05 Ray Z 阅读(148) 评论(0) 推荐(0) 编辑

2009年10月15日

Rule 8: Make JavaScript and CSS External(Chapter 8 of High performance Web Sites)

摘要: In Raw Terms, Inline Is FasterThe fewer page views per user, the stronger the argument for inlining JavaScript andCSS.If every page on your site uses the same JavaScript and CSS, using external files ... 阅读全文

posted @ 2009-10-15 21:32 Ray Z 阅读(257) 评论(0) 推荐(0) 编辑

C++ templates chapter 10(Instantiation)

摘要: On-Demand InstantiationThis on-demand instantiation feature sets C++ templates apart from similar facilities in other compiled languages. It is sometimes also called implicit or automatic instantiatio... 阅读全文

posted @ 2009-10-15 20:53 Ray Z 阅读(387) 评论(0) 推荐(0) 编辑

导航