[fw][ATL]An excellent tutorial: ATL and Connection Points

    http://users.iafrica.com/d/da/dart/zen/Articles/ATLConnectionPoints/ATLConnectionPoints.html Introduction: This article shows how to implement connection points using ATL. This can be done automatically using the AppWizard etc. I chose not to use this method for two reasons. Firstly there seems to be a bug with VC++ 6.0 (I assume its fixed in the service pack)...阅读全文
    作者:bettermanlu | 分类:ATL, windows internals | 阅读: | 标签:

    [fw][ATL]Handling COM Events in ATL

    http://resources.esri.com/help/9.3/arcgisdesktop/com/com/vcpp/events.htm Below is a summary of terminology used here when discussing COM events in Visual C++ and ATL. Inbound interface This is the normal case where a COM object implements a predefined interface. Outbound Interface This is an interface of methods that a COM object will fire at various times. Fo...阅读全文
    作者:bettermanlu | 分类:ATL, windows internals | 阅读: |

    [fw][HTTP] HTTP Cookies

    Cookies Cookies allow web servers to store state information in the browser. They are often used to store session variables, user preferences, or user identity. Cookies are not part of the HTTP specification; however, they have become ubiquitous and are sometimes needed for proper interactions with some web sites. Cookies work in the following way: when a serv...阅读全文
    作者:bettermanlu | 分类:HTTP | 阅读: |

    [fw]FPO

    http://blogs.msdn.com/b/larryosterman/archive/2007/03/12/fpo.aspx FPO  I was chatting with one of the perf guys last week and he mentioned something that surprised me greatly.  Apparently he’s having perf issues that appear to be associated with a 3rd party driver.  Unfortunately, he’s having problems figuring out what’s going wrong because ...阅读全文
    作者:bettermanlu | 分类:debug, windows internals | 阅读: |

    [HTTP]所有 HTTP 状态代码及其定义

    所有 HTTP 状态代码及其定义。 代码 指示 2xx 成功 200 正常;请求已完成。 201 正常;紧接 POST 命令。 202 正常;已接受用于处理,但处理尚未完成。 203 正常;部分信息 — 返回的信息只是一部分。 204 正常;无响应 — 已接收请求,但不存在要回送的信息。 3xx 重定向 301 已移动 — 请求的数据具有新的位置且更改是永久的。 302 已找到 — 请求的数据临时具有不同 URI。 303 请参阅其它 — ...阅读全文
    作者:bettermanlu | 分类:HTTP | 阅读: |

    [Forward][python]How do I pass a variable by reference?

    http://stackoverflow.com/questions/986006/python-how-do-i-pass-a-variable-by-reference Question The Python documentation seems unclear about whether parameters are passed by reference or value, and the following code produces the unchanged value ‘Original’ class PassByReference:     def __init__(self):         self.variable = 'Original'         ...阅读全文
    作者:bettermanlu | 分类:python | 阅读: |

    [python]time.clock vs time.time

    Recently I need to calculate the time cost for some test cases running on Linux.  After searching online, I got an answer: using time.clock or time.time. And I did a sample test on Windows with time.clock which works well. But when running it under Linux. The result is totally different. My code as below which is quite simple by calling time.clock or time.time...阅读全文
    作者:bettermanlu | 分类:python | 阅读: |

    [FW]Software Testing to Software Engineering

    Software Testing to Software Engineering Full article is here: http://www.logigear.com/september-issue-2011/1110-vipul-gupta.html 读后感 当前离岸软件测试的变化:不再是之前的简单执行测试用例,而是要尽可能早的投入到软件的各个生命周期中,对测试软件做更深入的分析,使用更多的测试工具/平台及不同的测试策略(有哪些策略呢?),进行有针对的、多维度(功能,性能,安全等)...阅读全文
    作者:bettermanlu | 分类:software testing | 阅读: |

    [python]How to implement Singleton in Python

    Unlike other OOP language, such as C++/Java, which provides private access mechanism to prevent its constructor be accessed and then be instanced, Python doesn’t have such mechanism, i.e, “Private” instance variables that cannot be accessed except from inside an object don’t exist in Python. So how to implement Singleton in Python without “Private&...阅读全文
    作者:bettermanlu | 分类:python | 阅读: |

    [python]datetime tip

    Below code is to get the current date and the following one month date, then covert them to a string. =====mydate.py===== import datetime today = datetime.datetime.now() nextMonth = today + datetime.timedelta( days=30 ) startDate = today.strftime(“%Y-%m-%d”) endDate = nextMonth.strftime(“%Y-%m-%d”) print startDate, endDate.   阅读全文
    作者:bettermanlu | 分类:python | 阅读: |