Fiddler 在windows下面表现很好,可惜用Qt开发的时候Fiddler抓不到,找到一款wireshark的,很是强悍,免费不说,还是 windows/linux都有,甚至windows下面也有绿色版的,包括 U3 移动盘和PortableApp的,携带起来很是方便
有个FIrefox的插件,很好用 Easy YouTube Video Downloader,能保存为FLV、3GP和MP4格式
Get version number with SubWCRev in Windows:
if(WIN32)
EXECUTE_PROCESS(COMMAND SubWCRev
${dak_SOURCE_DIR}
${dak_SOURCE_DIR}/inc/dak_version_raw.h
${dak_SOURCE_DIR}/inc/dak_version.h)
endif(WIN32)
SubWCRev is part of TotoriseSVN.
Windows 2008 server 的shutdown event tracker对我这种常常重启的用户来说,就是一个额外的负担。可以用如下方法禁用:
运行 gpedit.msc,然后 “Computer Configuration - Administrative Templates - System”, 设置 Display Shutdown Event Tracker 为 disabled.
CMake 是一个跨平台的编译构建系统,它负责搜集系统中的函数库信息,管理源文件的依赖关系,生成合适的脚本供自动编译系统调用,完成程序的编译构建任务(compile and build)。它所能生成的格式包括常用的 Unix/Linux、Cygwin 以及 MinGW 下的 Makefile,Windows 下的 nmake 和 Visual Studio
CMake使用一个 CMakeList.txt 的输入文件,一个简单的例子如下:
cmake_minimum_required (VERSION 2.6)
project (HELLO)
# Recurse into the “Hello” and “Demo” subdirectories. This does not actually
# cause another cmake executable to run. The same process will walk through
# the project’s entire directory structure.
add_subdirectory (Hello)
add_subdirectory (Demo)
子目录 Hello 下有 CMakeList.txt 文件:
# [...]
If you often look at files that are updated, a log file for a running process, you’ll want to make sure you’re looking at the most recent version of the file.
To do this, add the following to your .emacs:
(global-auto-revert-mode 1)
For more documentation type:
C-h C-f global-auto-revert-mode RET
It has been years I have not touched Web server on Linux. There are new commands to release you from editing the *conf in /etc/apache2:
$sudo a2enmod userdir
then try this
<?php phpinfo(); ?>
See the results !
Use LaTeX equations as a png figure in OpenOffice:
produce tex file:
\documentclass{article}
\usepackage[active,tightpage,displaymath]{preview}
\begin{document}
\begin{preview}
f(x)=\sqrt{x}
\end{preview}
\begin{preview}
f(x)=e^{\sqrt{x}}
\end{preview}
\end{document}
compile tex file with latex and get dvi file.
dvipng -Ttight –depth –height -bg Transparent eq-preview
You will get a series of pictures
自作聪明有时候很麻烦:
Start / Run / gpedit.msc / Local Computer Policy / Computer Configuration / Administrative Templates / Windows Components / Windows Update / Re-prompt for restart with scheduled installations
搞定!
libtool 为shared library 编译 PIC 对象,生成 .lo 文件;static library 则是非PIC,生成 .o 文件。
如果使用autoconf/autobuild的话就很简单了:
加入 configure.ac
AC_PROG_LIBTOOL
加入 Makefile.am
BUILT_SOURCES = tps.h
#lib_LIBRARIES = libtps.a
lib_LTLIBRARIES = libtps.la
#libtps_a_SOURCES=tps.cc
libtps_la_SOURCES=tps.cc
libtps_la_LDFLAGS = -version-info 1:0:1
#bin_PROGRAMS = ad bmark
bin_PROGRAMS = bmark
#ad_SOURCES = tps.h tps.cc
bmark_SOURCES = tps.h bmark.cc
bmark_LDFLAGS = -L. -L./.lib/ -ltps
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Dec | ||||||
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | 31 | ||||