Gmail - TB

pop: pop.gmail.com, 995, SSL, smtp: smtp.gmail.com, 587, TLS,

2006-10-19 · wuan

regex_replace

#include <iostream> #include <string> #include <boost/regex.hpp> int main() { boost::regex reg("(Colo)(u)(r)", regbase::extended | regbase::icase); std::string s="Colour, colours, color, colourize"; s=boost::regex_replace(s,reg,"$1$3"); std::cout << s; } #g++ test.cpp -lboost_regex #./a.out Color, colors, color, colorize

2006-10-19 · wuan

老外恶搞

I’m not sure which forum to post this, but I just wanted to share one of my stories with you guys . I had recently read a few articles on submersion cooling, where you take your computer and dump it into a tub of non-electrically-conductive oil. It seemed to work really well, and was cheap. So I saw it as a type of poor man’s water-cooling. I bought a large aluminium oven tray and 9 litres of canola oil. Since I didn’t really want to screw up my good computer, I tested it out on an old Pentium II 266 with Nvidia Riva TNT2 Ultra. I placed the motherboard in the tray, and began pouring canola oil all over it, until it was partially submerged. And it worked. The computer booted into Windows 98 fine, and I even started up...

2006-10-18 · wuan

一句话的道理

而实情往往是这样的: 我们只是无所事事地对我们的感受、观点还有理论进行哲学化的探讨,却没有设法取得实际进展。

2006-10-16 · wuan

揭开正则表达式的神秘面纱

转自 http://www.regexlab.com/zh/regref.htm

2006-10-16 · wuan