最近在改写WebApp时要将以前用泛型处理例程写的Captcha 改成使用WebApi 来实作机制,在实作的过程中发现使用IRequiresSessionState session也无法使用(context.Session==null)查过一些文章才发现需要在注册api路由需将RouteHandle...
分类:
Windows开发 时间:
2015-06-09 16:32:32
收藏:
0 评论:
0 赞:
0 阅读:
277
#include"string.h"char left[3][7],right[3][7],result[3][5];bool isHeavy(char x ){ int i; for(i=0;i0) { for( i=0;i<3;i++) scanf("%s%s%s",left[i],right[...
分类:
其他 时间:
2015-06-09 16:32:22
收藏:
0 评论:
0 赞:
0 阅读:
173
#include #include using namespace std;int ans[3000];int main(){ //freopen("acm.acm","r",stdin); string s; int index; int i; int j; i...
分类:
其他 时间:
2015-06-09 16:32:02
收藏:
0 评论:
0 赞:
0 阅读:
230
如何实现刷新当前页面呢?借助js你将无所不能。1,reload 方法,该方法强迫浏览器刷新当前页面。语法:location.reload([bForceGet]) 参数: bForceGet, 可选参数, 默认为 false,从客户端缓存里取当前页。true, 则以 GET 方式,从服务端取最新的页...
分类:
Web开发 时间:
2015-06-09 16:31:52
收藏:
0 评论:
0 赞:
0 阅读:
241
#! /usr/bin/python2.6#-*- encoding:UTF-8 -*-import osimport os.pathimport timeroot_dir = os.getcwd()seperator = os.sepmax_used_space = 60*1024*1024*10...
分类:
编程语言 时间:
2015-06-09 16:31:42
收藏:
0 评论:
0 赞:
0 阅读:
342
1 #include 2 #include 3 using namespace std; 4 5 int main() 6 { 7 string s; 8 int i; 9 bool boo;10 bool boo_1;11 boo = false;1...
分类:
其他 时间:
2015-06-09 16:31:32
收藏:
0 评论:
0 赞:
0 阅读:
169
1 /// 2 /// The data extension. 3 /// 4 public static class DataExtension 5 { 6 /// 7 /// ToList 8 ...
分类:
其他 时间:
2015-06-09 16:31:12
收藏:
0 评论:
0 赞:
0 阅读:
335
为了用spark,先学下scala。参考教程:http://meetfp.com/zh/scala-basic在线编译:http://meetfp.com/tryout其它资料:http://scalachina.com/node/16 http://blog.csdn.net/mapdi...
分类:
其他 时间:
2015-06-09 16:31:02
收藏:
0 评论:
0 赞:
0 阅读:
263
C语言字符数组的定义与初始化1、字符数组的定义与初始化字符数组的初始化,最容易理解的方式就是逐个字符赋给数组中各元素。char str[10]={ 'I',' ','a','m',' ',‘h’,'a','p','p','y'};即把10个字符分别赋给str[0]到str[9]10个元素如果花括号中...
分类:
编程语言 时间:
2015-06-09 16:30:42
收藏:
0 评论:
0 赞:
0 阅读:
271
你的努力别怕别人看不到,也千万别怕自己吃亏,你的吃亏,别人也看得到。别计较太多,别抱怨太多,你的计较和抱怨,别人同样看得到,你的优点,也许一天两天,别人看不出来,也感受不到,但是路遥知马力,1年2年,只要你坚持,别放弃你最初的执著,你身边的人一定能感受得到,这个过程,也许,就是积累机会的过程吧!今天...
分类:
其他 时间:
2015-06-09 16:30:32
收藏:
0 评论:
0 赞:
0 阅读:
271
题目:Divide two integers without using multiplication, division and mod operator.If it is overflow, return MAX_INT.代码:class Solution {public: int div...
分类:
其他 时间:
2015-06-09 16:30:22
收藏:
0 评论:
0 赞:
0 阅读:
192
1.新建mvn项目,在pom.xml中加入依赖包 4.0.0 com.alibaba springmvc 0.0.1-SNAPSHOT war UTF-8 4.0.0.RELEASE 4.12 1.1.3 ...
分类:
编程语言 时间:
2015-06-09 16:30:12
收藏:
0 评论:
0 赞:
0 阅读:
314
services.xml中添加true HdfsService http://net.tplink.HDFSService/MathService net.tplink.hdfs.service.IHdfsService net.tplink.hdfs.service.i...
分类:
Web开发 时间:
2015-06-09 16:29:52
收藏:
0 评论:
0 赞:
0 阅读:
410
命令行工具命令行工具n activemq——运行activemq代理n activemq-admin——管理代理的实例在5.0之前activemq-admin被分成多个脚本,例如:n shutdown——关闭activemq代理n list——列出所有在指定JMX上下文中运行的代理n query——...
分类:
其他 时间:
2015-06-09 16:29:32
收藏:
0 评论:
0 赞:
0 阅读:
316
//监听浏览器tab切换,以便在tab切换之后,页面隐藏的时候,把弹幕停止 document.addEventListener('webkitvisibilitychange', function() { if (document.hidden === true) { //页面已隐藏 ...
分类:
其他 时间:
2015-06-09 16:29:12
收藏:
0 评论:
0 赞:
0 阅读:
316
缩小方法 ECMAScropt还新增了两个缩小数组的方法:reduce()和reduceRight()。这两个方法都会迭代数组的所有项,然后构建一个最终返回的值。其中,reduce()方法从数组的第一项开始,逐个遍历到最后,而reduceRight()则从数组的最后一项开始,向前遍历到第一项。 .....
分类:
其他 时间:
2015-06-09 16:29:02
收藏:
0 评论:
0 赞:
0 阅读:
223
1 #include 2 #include 3 using namespace std; 4 int main(){ 5 string original_city=" "; 6 string distance_city=" "; 7 int length; 8 ch...
分类:
其他 时间:
2015-06-09 16:28:52
收藏:
0 评论:
0 赞:
0 阅读:
175
一,CRC32文件较验 文件校验可以确保文件内容不被篡改的方法,刚在工作中用到,记录下来。 1 private void doCheckSum(String fileName){ 2 try { 3 4 Log.d("checksum"...
分类:
其他 时间:
2015-06-09 16:28:42
收藏:
0 评论:
0 赞:
0 阅读:
197
即将离开广州,一年的时间,这儿留下了我不少的回忆,仅以此文祭奠我这段成长的时光。 不管我们怎么选择,时间总是不紧不慢的走着,它带来了许多未知,带走了许多回忆。 犹记得刚毕业时,带着一颗不安的心来到这个陌生的城市,开始了我毕业后的第一份工作。 那时的懵懂新奇,像一个涉世未深的孩子,迷失在这一片...
分类:
其他 时间:
2015-06-09 16:28:32
收藏:
0 评论:
0 赞:
0 阅读:
203
昨天短信服务又宕机了,jstack打出线程信息发现 所有线程池的线程都在wait,栈信息如下:at java.lang.Object.wait(Native Method) - waiting on [0x000000070754fb60] (a org.apache.commons.httpcli...
分类:
Web开发 时间:
2015-06-09 16:28:02
收藏:
0 评论:
0 赞:
0 阅读:
1040