Minimal for Typecho

View full screenshot 总是找不到中意的主题, 于是自己为Typecho做了一个 回归最纯粹的博客, 最美的文字. 采用响应式设计, 在电脑, 手机, 平板上都可以获得最佳的体验 下载地址: https://github.com/jazonion/minimal-typecho/archive/master.zip 欢迎提建议

March 13, 2013 · Jason

Preventing resubmitting form when refreshing

Quick solution When successfully submitting a form, post the form to a different location, then use the following code to perform a redirect header("Location: url-to-end-up/"); For example post the form to _www.xxx.com/app/form_ Where “form” is the controller of app. Assuming form can be access at http://www.xxx.com/app (app’s default controller is “form”), and you want the suer to be redirected back to the form, then the code woule be header("Location: ....

March 2, 2013 · Jason

QQ2013 手动轻松去广告

关掉QQ, 打开我的电脑输入%appdata%\Tencent\Users, 然后打开以你QQ号命名的文件夹, 打开该文件夹下面的QQ文件夹 把Misc.db文件删除 在当前目录新建一个文件夹, 命名为Misc.db即可 重新登陆QQ之后, 聊天窗口的右上角还是会有一个腾讯QQ LOGO在, 但是左下角的文字广告会被完全去除. 参考

March 1, 2013 · Jason

Nginx rewrite rules notes (nginx.conf)

Reference – Nginx Rewrite研究笔记 Why rewrite ? To remove unneccessary “index.php” in url (e.g “www.123.com/app/inedx.php/hello” can be accessed using “www.123.com/app/hello”) Simplify url redirect site others Environment vps lnmp ubuntu 11.10 CodeIgniter (version 2.1-stable) web root /home/wwwroot/ Nginx config file location /usr/local/nginx/conf/nginx.conf Allow url like xx/index.php/home Need to allow pathinfo(not safe) or edit config file Reference Edit /usr/local/nginx/conf/nginx.conf Change location ~ .*\.(php|php5)?$ { fastcgi_pass unix:/tmp/php-cgi.sock; fastcgi_index index.php; include fcgi....

February 18, 2013 · Jason