http://www.zihou.me/html/2010/11/14/2658.htmlhttp://www.linuxidc.com/Linux/2011-04/34964p4.htmhttp://www.cnblogs.com/jsckdao/archive/2011/05/05/203826...
分类:
Web程序 时间:
2014-07-05 16:56:46
阅读次数:
330
Help Me Escape
Time Limit: 2 Seconds
Memory Limit: 32768 KB
Background
If thou doest well, shalt thou not be accepted? and if thou doest not well, sin lieth at the door. And unto th...
分类:
其他好文 时间:
2014-07-05 11:05:59
阅读次数:
220
#!/usr/bin/envpython
#-*-coding:utf8-*-
importsmtplib
fromemail.mime.textimportMIMEText
textfile=‘sendmail.html‘
withopen(textfile,‘rb‘)asf:
msg=MIMEText(fp.read(),‘html‘,‘utf8‘)
msg.set_charset(‘utf8‘)
me=‘xxx@163.com‘
you=‘xxxx@qq.com‘
msg[‘Subject‘]=..
分类:
编程语言 时间:
2014-07-04 06:41:33
阅读次数:
325
1.需要session控制的大文件下载,防止因为占用session文件时间太久,导致其他页面的session无法执行session_write_close() worked as a lifesaver for me when automatically uploading files to a u...
分类:
其他好文 时间:
2014-07-03 20:55:34
阅读次数:
217
事件流描述的是从页面中接收事件的顺序。IE和Netscape的开发团队提出完全相反的事件流概念。IE的事件流是事件冒泡流,而Netscape的事件流是事件捕获。(1)事件冒泡事件开始由最具体的元素(文档中嵌套层次最深的那个节点)接收,然后逐级向上传播到较为不具体的节点。exampleclick me...
分类:
Web程序 时间:
2014-07-02 23:19:21
阅读次数:
383
主要参考:http://blog.fens.me/hadoop-history-source-install/其次参考:http://blog.csdn.net/adermxl/article/details/24327057环境:Windows 7 Home Premium SP1 + Virtu...
分类:
其他好文 时间:
2014-07-02 21:09:14
阅读次数:
144
这题我的代码 还没有在OJ上提交 因为 我们的Oj 又崩溃了=-= touch me=他好了 就去交了 但应该是对的了 因为 大神帮我解决了那个死循环问题l = mid+1 与 l = mid在某种严格意义上来说还是不同的 当我的条件是---mid = (l+r)/2 那么它是偏向L的 写法就应该....
分类:
其他好文 时间:
2014-07-02 18:21:55
阅读次数:
301
转自:http://robert.penz.name/658/howto-access-mtp-devices-via-usb-on-ubuntu-12-04/ A friend asked me how he can access his Nexus 7 device via USB on hi....
分类:
其他好文 时间:
2014-07-02 13:51:19
阅读次数:
289
Idiomatic Phrases Game
Time Limit: 2 Seconds Memory Limit: 65536 KB
Tom is playing a game called Idiomatic Phrases Game. An idiom consists of several Chinese characters and has a certain me...
分类:
其他好文 时间:
2014-07-02 08:11:52
阅读次数:
167