如何引用setw, setfill等格式化操作符,而不用引用整个std.
xorg-server (required, the Cygwin/X X Server)
xinit (required, scripts for starting the X server: xinit, startx, startwin (and a shortcut on the Start Menu to run it), startxdmcp.bat )
xorg-docs (optional, man pages)
X-start-menu-icons (optional, adds icons for X Clients to the Start menu)
You may also select any X client programs you want to use, and any fonts you would like to have available.
2010,3,4
首先下载 color-theme.el 1,然后把它放在你的加载路径里面,最后在你的 ~/.emacs 里面加上 (require 'color-theme) 就可以使用了。现在重新启动一 下 Emacs ,然后就可以用 M-x color-theme-select 来选择你喜欢的颜色主题 了,它会打开一个列表,在每个列表项目上回车会应用那个颜色主题,如果选上 了某个主题,按一下 d ,会出现类似:
color-theme-sitaramv-nt is an interactive compiled Lisp function in `color-theme.el'. (color-theme-sitaramv-nt) Black foreground on white background. Includes faces for font-lock, widget, custom, speedbar. [back]的东西,其中那句 (color-theme-sitaramv-nt) 加入到你的 ~/.emacs 里面去, 就可以永久应用这个颜色主题了
太赞了, Chrome 使用SSH( Socks5 ) 代理 的方法: 在 Chrome 快捷方式属性的目标栏后面加参数--proxy-server=socks5://127.0.0.1:7070
一种标准的文件比较格式, 不同的行之前标上'+'或者'-'表示不同的文件, 新文件用'+'表示, 旧文件用'-'表示
@@表示不同出现在哪一行
diff -u 可以产生这种格式的补丁文件,它与diff -c命令产生的context diff不一样,后者更适合于大量修改的源代码之间的补丁.
前者的好处在于便于人阅读,而且可以直接patch
I'm having a problem with Qt 3.3.2 on Windows XP using the MS Visual C++.net (2002) compiler. Anytime in my code where I try to select a character from a QString using the [] operator (such as: QChar temp = string[index]), I get the following compiler error: error C2666: 'QString::operator`[]'' : 3 overloads have similar conversions c:Qt3.3.2includeqstring.h(641): could be 'QCharRef QString::operator [](int)' c:Qt3.3.2includeqstring.h(639): or 'QChar QString::operator [](int) const' or 'built-in C++ operator[(const char *, unsigned int)' while trying to match the argument list '(QString, unsigned int)' I don't believe I had this problem with Qt 3.3.1.I had this problem as well and didn't bother to report it to qt-bugs@trolltech.com nor really investigate what was happening. I just worked around the problem.Instead of:QChar c = parse[i];try: QChar c = parse.operator[](i); Note that this problem affects Visual C++ 7.1 (aka 2003) as well. You may wish to follow up with qt-bugs.
sudo apt-get install libqt3-mt-dev
Q_UINT32 QHostAddress::toIPv4Address () const
Returns the IPv4 address as a number.
For example, if the address is 127.0.0.1, the returned value is 2130706433 (i.e. 0x7f000001).
This value is only valid when isIp4Addr() returns TRUE.
See also toString().
But inet_addr("127.0.0.1") returns 0x1000007f.174.36.30.71 www.dropbox.com
Tramp 在windows下使用有些麻烦。
首先需要先下载plink.exe 。
Please try PuTTY (or the plink tool that comes with it). There is a
Tramp method "plink", so you only need to add the PuTTY directory to
%PATH% and then C-x C-f /plink:user@host:/some/file RET.