9 Jun 2016

Key Fob Cannot Lock/Unlock Car Remotely

收藏到CSDN网摘

Recently, my 10-years old Chevrolet Tacuma refused to start one day. All indicating lights on the instruments panel disappeared - engine light, break light, safety warning light, even the remote key fob LCD! It's clearly that the battery is dead - I have to say it's an amazing period of service. Even the guy who replaced the battery admitted it as well. He told me that all new batteries could run about 2-5 years depending on brands. After replacing the battery, everything goes back to normal - well, at that moment!

18 Jan 2016

Word VBA: 根据cell内容修改cell背景色

收藏到CSDN网摘
项目需要做用户指南,需要做个表格来描述各个功能是否支持当前对象.最开始的想法是用vba枚举表格,判断caption是否是所需表格,然后枚举cell,判断内容并修改背景色.可惜截至word2013(包括以前版本),table caption并没有单独作为一个对象来使用,而是普通文本,只是使用了caption样式而已.换句话说:word表格caption与表格对象无关!你可以在表格caption与表格之间插入任何内容,包括另外一个表格,并不影响word显示和使用.但是对自动化操作(例如vba)造成了不小的影响.怎么解决这个问题呢?

5 Jan 2016

删除word文件个人信息

收藏到CSDN网摘
word文件会保存(2007之后的版本?)创建者及最后编辑者的信息,有时候不想显示这些信息给其他人,该怎么办?

C++获得文件日期信息

收藏到CSDN网摘

写代码时,需要获得文件的日期信息.c++的sys/stat.h文件中定义了struct _stat,保存了这些信息,具体内容可以通过调用函数_stat()获取.
函数的定义如下:

20 Nov 2015

Firefox Fullscreen Capture

收藏到CSDN网摘

准备找个Firefox扩展来实现保存整个网页为图片的功能,在StackOverflow上无意间看到一个帖子,原来Firefox内置就有这个功能.具体方法如下: