水調歌頭 - 蘇軾
明月幾時有,把酒問青天。 不知天上宮闕,今夕是何年。 我欲乘風歸去,又恐瓊樓玉宇,高處不勝寒。 起舞弄清影,何似在人間。 轉朱閣,低綺戶,照無眠。 不應有恨,何事長向別時圓。 人有悲歡離合,月有陰晴圓缺,此事古難全。 但願人長久,千里共嬋娟。
明月幾時有,把酒問青天。 不知天上宮闕,今夕是何年。 我欲乘風歸去,又恐瓊樓玉宇,高處不勝寒。 起舞弄清影,何似在人間。 轉朱閣,低綺戶,照無眠。 不應有恨,何事長向別時圓。 人有悲歡離合,月有陰晴圓缺,此事古難全。 但願人長久,千里共嬋娟。
This article is very interesting in that, while everyone is talking about the unemployment rate and using that as a measurement on the economic health, the writer Douglas Rushkoff argues that the decline of jobs is actually a direct product of the advancement of our technology. If that’s true, then creating jobs may be a funny thing to do, pretty much for the sake of creating them. URL: http://www.cnn.com/2011/OPINION/09/07/rushkoff.jobs.obsolete/index.html?hpt=hp_c1 ---—————————————————- ...
尾牙是商家一年活动的“尾声”,也是普通百姓春节活动的“先声”。每年月的初一、十五或者初二、十六,是台湾商人祭拜土地公神的日子,称为“做牙”。二月二日为最初的做牙,叫做“头牙”;十二月十六日的做牙是最后一个做牙,所以叫“尾牙”。 Ref: http://baike.baidu.com/view/131868.htm
“退伍军人症”是由“退伍军人杆菌”(Legionella spp)引发的急性肺炎及呼吸道感染。该病得名于1976年美国宾夕法尼亚州一次退伍军人聚会后的“浩劫”——与会的221位退伍军人中,有34人死于不明病原的肺炎。从死者肺部组织中分离出了一种相当特殊的细菌,后被命名为“退伍军人杆菌”。英国一项研究发现,司机患上该病的几率是普通人的5倍,罪魁祸首可能是车辆的雨刷。 Ref: http://www.hudong.com/wiki/%E9%80%80%E4%BC%8D%E5%86%9B%E4%BA%BA%E6%9D%86%E8%8F%8C Ref: http://en.wikipedia.org/wiki/Legionella_longbeachae
This idea sounds easy and stuff. I agree. I assume you already got it working fine. But perhaps one day you may notice something is not working well, especially when you are dealing with bigger files. Below are a few things you want to look out for. Change your /etc/php.ini upload_max_filesize = 2M post_max_size = 8M memory_limit = 128M The default upload file size is 2M, which could be too small. If your upload file is larger than this, you will receive an empty upload file at your server side. So, increase this. While if you are using ajax to post-send, increase the post_max_size limit. Another thing to watch out for is memory_limit. If you somehow make copies of big blobs in your code, increasing PHP’s memory limit is also a good idea. ...
I have read many online articles on this topic. However, they either just show how to do ajax form submission, or how to submit just files. In my case, well I bet in most real life situations, we need to submit both ordinary text/selection/radio values and files. Here is how to do it. HTML forms. Yea, whatever. Just set something up. Submit Notice I didn’t use the form tag. My philosophy here is that: since we will decide the data set during the ajax submission, there is really no need to declare a form here. ...
Recently, I needed to read from a mounted drive on osx using Apache and PHP. I need to grab some file names in a certain directory using opendir or scandir, then dynamically populate a select dropdown box. The issue is, the default apache user is _www being in the _www group, while the mounted drive allows only the “staff” group to enter. In my case, I cannot change the mounted drive access permissions. ...
Adobe 奧多比 Amazon 亞馬遜 AMD 超微 Apple 苹果电脑 Cisco 思科 Dell 戴尔 eBay 易贝 Facebook 臉書 Google 谷歌 Hewlett-Packard 惠普 IBM 國際商業機器 Intel 英特爾 Microsoft 微软 Oracle 甲骨文 Sony 索尼 Yahoo 雅虎
If you are using the jQuery datatable with the editable extension, you probably know that you can only highlight one single row (tr). In my opinion, that’s really for the purpose of integrating the single row add/delete functions. If you need to implement multiple row operations, thus needing multiple row selection, here is how you can do it: Open up jquery.dataTables.editable.js Toward the end of the file, look for $(oTable.fnSettings().aoData).each(function () { $(this.nTr).removeClass(properties.sSelectedRowClass); }); ...
ref link: http://xkcd.com/936/