response 为HttpResponse对象,request为HttpRequest对象
Cookies 设置Cookies response.set_cookie("cookie_key","value") 获取Cookies value =
request.COOKIES["cookie_k...
分类:
其他好文 时间:
2014-05-16 01:01:02
阅读次数:
299
由于64位操作系统不支持Microsoft OLE DB Provider for
Jet驱动程序,也不支持更早的Microsoft Access Driver (*.mdb)方式连接。所以用于 Access 和 Excel 数据库的
Microsoft OLE DB Provider for Je...
分类:
数据库 时间:
2014-05-15 20:49:41
阅读次数:
411
String slctpsql="select id ,"+uid+","+ddd+","+score+",'"+mark+"' ,"+markid+" ,"+exam.getId()+" from Test_Paper where testBaseId=(select id from Test_Base where baseTestId="+judgemap.get(i).getId()+" a...
分类:
数据库 时间:
2014-05-15 20:36:45
阅读次数:
434
如下是Pipe的一个简单的例子。管道的通信是单项的。只能一端写,一端读。管道通信只能在有共同祖先的两个进程之间。在两个进程中,进行数据传送。pipe(fd)创建管道,fd【0】作为read端,fd【1】作为写入端。当fd[1]不存在的时候,认为已经读到结尾,read返回0.如果fd[1]存在,写入数据后,将写入端关闭,但是数据一直存在,直到读出。数据总是写在管道的尾部,而读的时候,则是从头部开始读...
分类:
其他好文 时间:
2014-05-15 20:06:03
阅读次数:
264
这道题很难。
之前的题目我提到过一次用两个vector来做层序遍历的,就是因为这道题。要想最后恢复出单词变换的路径,就需要事先保存,根据dp中路径恢复的启发,保存的应该是一个单词的前一个变换节点。可能有很多个单词都能变换到当前单词,因此应该是一个set。用一个二维的vector保存当前可以变换到的单词和变换出这些单词单词。每一维的vector存放的都是一个set。设存放当前可访问单词的vecto...
分类:
其他好文 时间:
2014-05-15 19:37:03
阅读次数:
437
在eclipse启动tomcat时遇到超时45秒的问题:
Server Tomcat v7.0 Server at localhost was unable to startwithin 45 seconds. If the server requires more time, try increasingthe timeout in the server editor.
网上解决办法...
分类:
其他好文 时间:
2014-05-15 18:31:36
阅读次数:
242
1、gem安装出现下面错误
root@ubuntu:/home/git/gitlab# sudo gem install bundler --no-ri --no-rdoc
ERROR: Could not find a valid gem 'bundler' (>= 0), here is why:
Unable to download data from https...
分类:
其他好文 时间:
2014-05-15 18:19:48
阅读次数:
304
设置Navigation Bar 透明
getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);或者Theme中添加 true
/**
* Convenience function to set the flag bits as specified in flags, as
...
分类:
移动开发 时间:
2014-05-15 18:15:56
阅读次数:
631
echocli.c
#include
#include
#include
#include
#include
#include
#include
#include
#define ERR_EXIT(m) do { perror(m); exi...
分类:
其他好文 时间:
2014-05-15 18:10:50
阅读次数:
240
题目描述Farmer John wants to set up a telephone line at
his farm. Unfortunately, the phone company is uncooperative, so he needs to pay
for some of the ca...
分类:
其他好文 时间:
2014-05-15 18:03:37
阅读次数:
292