clear run history in gnome panel
run "gconf-editor" and find "gnome-panel", modify "history-gnome-run".
run "gconf-editor" and find "gnome-panel", modify "history-gnome-run".
发表者 俞 伟军 位置在: 7/02/2011 03:31:00 PM 0 评论
标签: gconf-editor , gnome-panel , Ubuntu
ntpdate在XEN虚拟机上执行后,不能更新当前时间。
修复方法:
将下面的指令加入/etc/rc.local文件后重启机器就可以,不重启的话手动在命令行中运行此命令。
发表者 俞 伟军 位置在: 7/02/2011 03:26:00 PM 0 评论
rewrite
syntax: rewrite regex replacement flag
default: none
context: server, location, if
This directive changes URI in accordance with the regular expression and the replacement string. Directives are carried out in order of appearance in the configuration file.
Flags make it possible to end the execution of rewrite directives.
If the replacement string begins with http:// then the client will be redirected, and any further rewrite directives are terminated.
Flags can be any of the following:
last - completes processing of rewrite directives, after which searches for corresponding URI and location
break - completes processing of rewrite directives
redirect - returns temporary redirect with code 302; it is used if the substituting line begins with http://
permanent - returns permanent redirect with code 301
Note that if a redirect is relative (has no host part), then when redirecting Nginx uses the "Host" header if the header match name of server_name directive or the first name of server_name directive, if the header does not match or is absent. If no server_name is set, then the local hostname is used. If you want Nginx to always use the "Host" header, you can use a wildcard "*" server_name (but see the restrictions on doing so). Example:
发表者 俞 伟军 位置在: 7/02/2011 03:16:00 PM 0 评论
Got below warning when run phpunit in ubuntu 11.04:
PHP Warning: require_once(PHP/CodeCoverage/Filter.php): failed to open stream: No such file or directory in /usr/bin/phpunit on line 38
PHP Stack trace:
PHP 1. {main}() /usr/bin/phpunit:0
PHP Fatal error: require_once(): Failed opening required 'PHP/CodeCoverage/Filter.php' (include_path='.:/usr/share/php:/usr/share/pear') in /usr/bin/phpunit on line 38
PHP Stack trace:
PHP 1. {main}() /usr/bin/phpunit:0
repair commands:
发表者 俞 伟军 位置在: 7/02/2011 03:12:00 PM 1 评论
安装N卡驱动之后,Thinkpad的Fn+Home调节亮度的组合键失效。
修改/etc/X11/xorg.conf 文件,加入Option那一行,重启生效。
发表者 俞 伟军 位置在: 7/02/2011 03:09:00 PM 0 评论
发表者 俞 伟军 位置在: 7/02/2011 03:08:00 PM 0 评论
RewriteRule backreferences: These are backreferences of the form $N (0 <= N <= 9), which provide access to the grouped parts (in parentheses) of the pattern, from the RewriteRule which is subject to the current set of RewriteCond conditions..
RewriteCond backreferences: These are backreferences of the form %N (1 <= N <= 9), which provide access to the grouped parts (again, in parentheses) of the pattern, from the last matched RewriteCond in the current set of conditions.
By default, the query string is passed through unchanged. You can, however, create URLs in the substitution string containing a query string part. Simply use a question mark inside the substitution string to indicate that the following text should be re-injected into the query string. When you want to erase an existing query string, end the substitution string with just a question mark. To combine new and old query strings, use the [QSA] flag.
发表者 俞 伟军 位置在: 7/02/2011 03:06:00 PM 0 评论
标签: Apache2 , mod_rewrite , Query , String
globalEval function of jquery before version 1.6, such as 1.5.2 and 1.2.6, source code:
发表者 俞 伟军 位置在: 7/02/2011 02:53:00 PM 0 评论
标签: globalEvel , jQuery
发表者 俞 伟军 位置在: 7/02/2011 02:51:00 PM 0 评论