2008年11月19日星期三

文件搜索闪电侠

我一直很不满意Windows XP下的搜索,常常文件在那里也搜不到,每次还跑出来那只讨厌的小狗。可是公司里面不让装Google Desktop,MS自己出的MSN 搜索也不敢用,结果搜索就成了我一块心病。

前两天意外的发现了一个工具Everything, 我对其评价就如我题目写的--文件搜索闪电侠!

Everything是个小巧的工具,它能进行文件搜索,可以使用简单的正则表达式,而我最看重它的品质是,此软件小和快。小是指它的个头小,做的索引文件小,快是指做索引超快(我260G的硬盘几乎是立即完成,启动软件后就可以搜索了,官网写着速度为1分钟100万个文件),搜索文件速度快得令人发指!

其他的功能也很多,比如可以作为文件服务器,别人机器上开着这个服务,我就能去搜索他的电脑(牛逼)!

不过这个软件对我来说还有些不足,一是不能通过热键启动(就像金山词霸一样),而是不能进行全文检索。但是想想我做全文检索的几率也不大,这个就够了!

Everything的官网: http://www.voidtools.com/

另外有善用佳软小众软件对其的推荐。里面的介绍比我详细,有兴趣的人可以看看。

2008.11.28:
找到了热键启动的方法。
在Tool->Option的General标签页。设定好New window hotkey modifier 和New Window Hotkey key就可以了。

2008年11月14日星期五

有自己的域名啦!


在吗啡的多次,再三,不断地怂恿下,我终于买了一个自己的域名。

本来想买linghao.com的,可是被那种卖域名的人抢注了。而且还刚刚续了费,我只能放弃了。不过这个看起来也挺好。mog是moogle的简写,也是FinalFantasy里面飞天猪的名字,我99年一开始上网时所用的nick,挺有纪念意义的。

在吗啡的悉心帮助下(我发现我现在特懒-_-,而且对这种网络设置一窍不通,汗颜啊),一步一步把各种配置都搞好了。

以后我的blog地址变为:http://blog.mogling.com/
我的feed地址也随之变动:http://feeds.mogling.com/ (以前订阅过的朋友可以继续使用老地址,内容是一样的。)

2008年11月11日星期二

根据名字画出我的头像?

FriendFeed举办了一个24小时编程比赛Philipp的作品可以根据你的名字给你一个脸的图片。

网址:http://turnyournameintoaface.com/
 
我分别输入了我名字的拼音和中文和我最常用的网名,结果出来的是这副腾头死。

这张是linghao
这张是凌浩
 
这张是我常用的moogle
  是不是很惨,但是当我输入周杰伦,刘德华之流的名字之后,我发现我真TMD太帅了!

P.S. 2008/11/14
吗啡说用英文的没有好下场,我抱着科学的态度又求证了一下,用的是Mog,这个我最近刚捡起来的9年前刚上网时用的nick。感觉不错吧,不过就是奶油了点。

2008年11月7日星期五

File not found: ieframe.dll

When using Visual Basic 6 with Internet Explorer 7 installed, I encountered such a problem "File not found: c:\windows\system32\ieframe.dll\1" when loading a project.

Usually, the file does exist. Then why we get this problem? Well, the simplest answer is that some control referenced by your project has been replaced by ieframe.dll. I can not tell more since I am barely familiar with VB. Or to be frankly, I am neither not knowledgable of VB nor like it.

So the simplest way is to revert the reference from ieframe.dll to its ancestor. After google it, I find its ancestor is shdocvw.dll. It's in the same directory. Then register it:

regsvr32 c:\windows\system32\shdocvw.dll

Try to launch VB6.exe and load your project again, does the annoy error message disppear?

2008年11月5日星期三

pipe console program output to clipboard

I am making some demostration these days. I need run some console programs, get their output and put them into a nice slice as example. The trivial way is to redirect the output to a plain text file then open it, Ctrl+A to select all and copy, switch to PowerPoint, paste, which is exactly what I am doing.  Some days past, I feel I can't stand it anymore. A simple idea just jumped out of my mind, why not make a small tool the can read data from pipe and copy to clipboard? So I can do my jod like this(assume the program is called cmd2cb.exe):

dir|cmd2cb
type readme.txt|cmd2cb

thus, all output of dir command are read by cmd2cb and copy to clipboard. Then I simply switch to PowerPoint and Ctrl+V. Everything's done. Small tool, but cool!

When I share this tool to my colleages, it turns out that I am not the only one needs it.
So I decides to put it to my box. If you need, just download here. cmd2cb.exe (9k)
Chinese user can download from namipan(纳米盘): cmd2cb.exe (9k)

*This file can only be used in windows, console and after the pipe symbol and no warranty.
*If you're using Vista, you can use Clip.exe shipped with Vista.