32位系统: 将文件放到c:\windows\system目录注册 运行:Regsvr32 c:\windows\system\xxx.ocx取消注册运行:Regsvr32.exe /u c:\windows\system\xxx.ocx 64位系统注册32位文件: 将文件放到c:\windows\...
分类:
其他好文 时间:
2014-06-29 06:08:08
阅读次数:
170
例子: typedef boost::unordered_map UserOnlineMap; UserOnlineMap userOnlineMap_; std::pair res = userOnlineMap_insert(std::make_pair(xxx, xxx)); if...
分类:
编程语言 时间:
2014-06-29 00:54:17
阅读次数:
717
755 vs 644在linux下载了Qt的软件仓库,拷贝了一份到windows下。在 msysgit 下,发现所有的文件都被修改了。用 git diff 查看,发现是:$ git diff util/webkit/mkdist-webkitdiff --git a/util/webkit/mkdi...
分类:
其他好文 时间:
2014-06-29 00:40:32
阅读次数:
678
wikipedia 发现的分类,发现还有好多没用过。。Unixcommand-line interfaceprograms andshell builtinsFile systemcatcdchmodchownchgrpcksumcmpcpdddudffilefsckfuserlnlsmkdirm....
分类:
系统相关 时间:
2014-06-29 00:19:07
阅读次数:
377
我們先假設使用者,已經在 python 官方網站下載各版本的 Windows Installer 並安裝在預設路徑下:python 2.6:C:\Python26python 2.7:C:\Python27python 3.2:C:\Python32我們希望在 command line 輸入 pyt...
分类:
编程语言 时间:
2014-06-28 23:47:33
阅读次数:
253
1- strip()方法可以从字符串去除不想要的空白符(role, line_spoken) = each_line.split(":", 1)line_spoken = line_spoken.strip()2- print() BIF的file参数控制将数据发送/保存到哪里print(...) ...
分类:
编程语言 时间:
2014-06-28 23:07:59
阅读次数:
318
Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".此题要注意的几个情况是:(1)输入字符串可能含有前缀0和后缀...
分类:
其他好文 时间:
2014-06-28 22:51:26
阅读次数:
261
好吧,纯吐槽向。嗯,身为一名怪异的全栈工程师(伪),从开始写方案到后台的DB、Server到前台的UI,JS全都搞一遍还属正常;既然要发布,自己管管IIS、Sql Server也算说得过去;既然平台都管了,那操作系统每日的更新、巡检也是能理解的;所以群集的管理不上肿么行?也弄吧;所以硬件防火墙也能吃...
分类:
其他好文 时间:
2014-06-28 22:22:02
阅读次数:
205
import socketdictlist ={};def ReadHost(): hosts = []; obn = open('d:/sss.txt', 'rb'); for line in obn: #sometime you should filter \r\...
分类:
其他好文 时间:
2014-06-28 21:53:30
阅读次数:
234
Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.此题是求直线上点最多的点数,根据两点构成一条直线,在同一条直线上,任意两点之间的斜率都相同,故需要对每个点...
分类:
其他好文 时间:
2014-06-28 20:59:44
阅读次数:
132