设置:auth.login(request, user) response = HttpResponseRedirect(reverse("index")) response.set_cookie('xiang', username, 3600) return response获取: def in....
分类:
其他好文 时间:
2014-08-20 13:50:42
阅读次数:
225
题目链接:https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=4613
数学统计...
分类:
其他好文 时间:
2014-08-20 12:35:02
阅读次数:
155
Problem:
s0 = "a", s1 = "b", s2 = "ba", s3 = "bab", s4 = "babba", s4 = "babbabab", is called Fibonacci string. For the string with index n, given a string str = "bb", calculate how many times in the...
分类:
其他好文 时间:
2014-08-20 12:31:22
阅读次数:
146
继续接着上文ASP.NET MVC学习系列(一)-WebAPI初探来看看对于一般前台页面发起的get和post请求,我们在Web API中要如何来处理。这里我使用Jquery 来发起异步请求实现数据调用。 继续使用上一文章中的示例,添加一个index.html页面,添加对jquery的引用。一...
本人看到这篇非常不错的Lucene.Net入门基础教程,就转载分享一下给大家来学习,希望大家在工作实践中可以用到。 一.简单的例子 //索引Private void Index(){ IndexWriter writer = new IndexWriter(@"E:\Index", new St.....
分类:
Web程序 时间:
2014-08-19 23:52:45
阅读次数:
326
第一步、引入1、下载SDK 地址http://developer.baidu.com/map/index.php?title=iossdk/sdkiosdev-download2、解压出BaiduMap_IOSSDK_v2.3.0_Lib、在工程中第三方中添加文件夹BaiDumap然后在文件夹中放入...
分类:
移动开发 时间:
2014-08-19 22:03:55
阅读次数:
311
如果一张表上有十几个索引,你有什么感受?显然会拖慢增、删、改的速度,不要指望开发人员能建好索引。我的处理方法是先监控很长的一段时间,看哪些索引没有用到,然后删除。但删除以后,如果发现某一天有用,那又要重新建,如果是大表,那就有些麻烦。现在11g提供一个新特性,不可见索引,可以建索引设置为不可见索引,CBO在评估执行计划的时候会忽略它,如果需要的时候,设置回来即可。
还有一种用途,你在调试一条SQL语句,要建一个索引测试,而你不想影响其他的会话,用不可见索引正是时候。...
分类:
数据库 时间:
2014-08-19 19:13:05
阅读次数:
232
Cocos html5 项目环境的搭建。按照官网的文档搭建。(cocos html5、webStorm、google chrome、谷歌商店的jet-brain插件)迫不及待的打开cocos html5的文件结构。找到栗子,HelloHTML5World,点击index.html,看到了熟悉的画面....
分类:
Web程序 时间:
2014-08-19 18:15:45
阅读次数:
340
libidn.a(stringprep.o), in section __TEXT,__text reloc 8: indirect symbol index out of range for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
libidn.a...
分类:
移动开发 时间:
2014-08-19 16:40:44
阅读次数:
212
1、打开Apache配置文件httpd.conf,找到1 #LoadModule rewrite_module modules/mod_rewrite.so去掉前面的#搜索AllowOverride,将相应Directory下的AllowOverride设置为All1 AllowOverride A...
分类:
Web程序 时间:
2014-08-19 16:14:14
阅读次数:
192