1. 一年以后的你会在哪里?
2. 你真正热爱的事情是什么?
真正指导你一生的道理就那么几条:
1、勤俭;2、踏实;3、宽容;4、爱心;5、人为善;6、提防被骗;7、愿意放弃;8、梦想常在。
终于尝试了蹦极的滋味,虽说不是绑住双脚的那种(绳子是寄在腰上的),但站在55米的高空往下跳那绝对是刺激!
穿了一身红——红,红,红…
Happy new year!
It's you.
给blog装了个wp-t-wap插件,可以在手机上发日志了。
google退出的风波使my2jia不得不考虑以后上网的种种不便。youtube不能访问了,还有youku可以有;twitter不能上,还有人人网。没有了google(当然只是谷歌不在,而google将只能站在墙外),my2jia还是不会用百度的。
所以要给自己留条翻过强(不是错别字)的梯子,翻出以前留在电脑中车仑子的工具,不得不感叹祖国的科技水平,都不能用了。
无奈google中找到了vpn这一条途径,第一感觉要找个免费的用下,可现在网上这类免费的资源少之又少。最后在yegle.net里找到了一个月只要¥20的vpn。
终于又体验到了网络的自由。
PHP scripts often generate dynamic content that must not be cached by the client browser or any proxy caches between the server and the client browser. Many proxies and clients can be forced to disable caching with:
1 2 3 4 | <?php header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past ?> |
Note: You may find that your pages aren't cached even if you don't output all of the headers above. There are a number of options that users may be able to set for their browser that change its default caching behavior. By sending the headers above, you should override any settings that may otherwise cause the output of your script to be cached.
Additionally, session_cache_limiter() and the session.cache_limiter configuration setting can be used to automatically generate the correct caching-related headers when sessions are being used.
与它等效的ASP:
1 2 3 | <% response.expires=-1 %> |
因为要经常写些代码相关的文章,所以就想让代码在Blog中显示得漂亮点。搜索了些WordPress的代码高亮显示插件,发现还是WP-Syntax比较合我的意。
看看效果
输入如下代码:
1 2 3 4 5 6 7 | <pre lang="c" line="1">
#include<stdio.h>
int main(void)
{
return 0;
}
</pre> |
显示如下:
1 2 3 4 5 | #include<stdio.h> int main(void) { return 0; } |
<pre lang="c" line="1">中的lang表示你的代码显示风格:C、HTML、ruby等等;line="1"表示显示行号,line="0"则不显示。
如果代码中包含转义字符串,要确显示字符,就要加上escaped="true"这个参数。
如输入以下代码:
<pre lang="xml" escaped="true">
<xml>Hello</xml>
</pre>
显示结果为:
<xml>Hello</xml>
WP-Syntax支持下列格示:
abap, actionscript, actionscript3, ada, apache, applescript, apt_sources, asm, asp, autoit, avisynth, bash, bf, bibtex, blitzbasic, bnf, boo, c, c_mac, caddcl, cadlisp, cil, cfdg, cfm, cmake, cobol, cpp-qt, cpp, csharp, css, d, dcs, delphi, diff, div, dos, dot, eiffel, email, erlang, fo, fortran, freebasic, genero, gettext, glsl, gml, bnuplot, groovy, haskell, hq9plus, html4strict, idl, ini, inno, intercal, io, java, java5, javascript, kixtart, klonec, klonecpp, latex, lisp, locobasic, lolcode lotusformulas, lotusscript, lscript, lsl2, lua, m68k, make, matlab, mirc, modula3, mpasm, mxml, mysql, nsis, oberon2, objc, ocaml-brief, ocaml, oobas, oracle11, oracle8, pascal, per, pic16, pixelbender, perl, php-brief, php, plsql, povray, powershell, progress, prolog, properties, providex, python, qbasic, rails, rebol, reg, robots, ruby, sas, scala, scheme, scilab, sdlbasic, smalltalk, smarty, sql, tcl, teraterm, text, thinbasic, tsql, typoscript, vb, vbnet, verilog, vhdl, vim, visualfoxpro, visualprolog, whitespace, whois, winbatch, xml, xorg_conf, xpp, z80
下一页 »