When resolving a ACM problem, it's not a good idea to simply write a compilable algorithm and submit to the ACM system in the hope of getting AC (accept). This way, we re relying on the system to provide some secret test cases to validate the
Having invested so much time on the web server, it still seems to be buggy. Based on feedback from qa team, the number of bugs is keeping on climbing. So, what's the problem with it?1. The requirement isn't clear enoughWe've got an design document
Generic is added to .net framework since version 2, which highly increase the re-usability of commonly used algorithms. It's well known that jit compiler will generate concrete type with given generic type argument at run time. So, it's possible
I generated a pdf file from a word document with word 2007. But the pdf file looks very uncomfortable in my pdf viewer. So I looked it closely to see what makes me feel so. The culprit is the spacing between characters. As shown in the image blow,
Before asking a question, it's a good habit to describe your intention clearly. Below is a real story happened between me and a coworker. CW: hey, do you know how to do B on windows? ME: o, yes. You can: 1. Blah blah 2. Blah blah 3.
A problem I encountered while developing my source filter's output pin is that inside FillBuffer method, the media type and size of the media sample is not exactly the same as the one I proposed in GetMediaType method. The strange thing is my pin
After google moved their service from china mainland to hongkong, I can't access google.com or google.cn from mainland anymore. I always get redirected to google.com.hk. Based off my experience with google.com.hk, it shows more noise information
當你看到這個題目時,你也許會對VS有一個重新的認識,這是MSDN上的一篇原文,雖然我的英語很爛,但感覺還能看懂,各位大俠看起來肯定比我要理解的深的多。VSHOST -- the Hosting Process If you have been using the new Visual Studio 2005 beta you have noticed a few new files showing up in the "bin" folder with the word "vshost" in
A friend asked my idea about the exercise 5.1-2 of introduction to algorithms. Here is the original question:Question:Describe an implementation of the procedure RANDOM(a, b) that only makes calls to RANDOM(0, 1). What is the expected running time
I was debugging memory leak bugs recently. The bug was caused by incorrect usage of the osip library. It's not uncommon that we meet problems when we rely on a library or framework that we don't fully understand. Symptom and debuggingThe symptom is
Personally, I prefer wireshark to network monitor for:Wireshark runs on many platforms including windows, linux, mac os x, etc. I need to work both on linux and windows, and I'd like to keep my toolbox as compact as possible. Wireshark uses a widely
I've used and enjoyed the benefits of reversion control system for several years. RCS makes my life a lot easier. And it pushes me to highly prefer text format files over binary files, because text files can be managed by RCS more easily. metauml
Symptom:Recently, we are experiencing process hang with the goAhead web server. The symptom can be reproduced if we disconnect the network cable while the browser is loading a page. When it occurs, we can see that the process doesn't occupy any cpu
I read the c programming language again to mourn Dennis Ritchie who passed away recently. I noticed below statements in section "4.2 Functions Returning Non-integers", which explains the question, why can we use printf without including stdio.h.The