临床表现:
Tomcat启动后首页能访问(http://localhost:8080/).
将自己写的一个web工程war包放到Tomcat安装目录下的/webapps下面(比如helloworld.war),通过浏览器访问http://localhost:8080/helloworld,却无法访问。
访问时出现404错误,The requested resource is not availabl...
分类:
其他 时间:
2015-03-31 10:57:12
收藏:
0 评论:
0 赞:
0 阅读:
328
problem:
Implement pow(x, n).
Hide Tags
Math Binary
Search
题意:求x的n次幂
thinking:
(1)最简单想到的是直观上的数学幂函数求法,测试通过。算法时间复杂度为O(n)
(2)按照标签提示,使用二分搜索法。pow(x,n) = po...
分类:
其他 时间:
2015-03-31 10:56:52
收藏:
0 评论:
0 赞:
0 阅读:
192
去年暑假的时候,作为学习Qt的实战,我写了一个名为《我爱查词典》的词典软件。后来由于导师项目及上课等原因,时间不足,所以该软件的部分功能欠缺,性能有待改善。这学期重新拿出来看时,又有很多东西都不熟悉了。恰逢这学期课比较少,于是乎想写写关于这个软件制作的一系列文章,对日后重拾该软件时能够较快入手。当然,也非常乐意读者们在该软件的基础上添加一些功能,源代码会在该系列文章写完之后公布。可运行的词典软件的...
分类:
其他 时间:
2015-03-31 10:56:42
收藏:
0 评论:
0 赞:
0 阅读:
167
QtCore: No such file or directory...
分类:
其他 时间:
2015-03-31 10:56:32
收藏:
0 评论:
0 赞:
0 阅读:
626
Replace Pioneer(官网:http://www.mind-pioneer.com)是一款专业的文本批量处理软件。只要给定任何纯文本文件或文件列表,只要准确设置转换规则,就能得到任何需要的结果,它衍生出来的功能几乎覆盖了纯文本处理的任何一个角落。
作为批量文本替换软件
支持最基本的多行文本,多文件,正则表达式替换
可在指定特征和序号的段/行的范围内替换指定特征和序号的字/词...
分类:
其他 时间:
2015-03-31 10:55:52
收藏:
0 评论:
0 赞:
0 阅读:
193
Zxing扫描码的实例。程序中有少许BUG,长时间未扫描会出现假死的状况。...
分类:
其他 时间:
2015-03-31 10:55:42
收藏:
0 评论:
0 赞:
0 阅读:
169
以前知道使用cout
测试代码:
/**
吉林大学
Jilin U
Author: sinianluoye (JLU_LiChuang)
Date: 2015-3
Usage:
**/
#include
#include
#include
#include
#include
#define ll long long
#define eps 1e-8
#...
分类:
其他 时间:
2015-03-31 10:55:12
收藏:
0 评论:
0 赞:
0 阅读:
130
正则表达式,又称正规表示法、常规表示法(英语:Regular Expression,在代码中常简写为regex、regexp或RE),计算机科学的一个概念。正则表达式使用单个字符串来描述、匹配一系列符合某个句法规则的字符串。在很多文本编辑器里,正则表达式通常被用来检索、替换那些符合某个模式的文本。本文将介绍正则表达式的语法,用法并提供详细示例······...
分类:
其他 时间:
2015-03-31 10:54:32
收藏:
0 评论:
0 赞:
0 阅读:
263
Given two binary strings, return their sum (also a binary string).
For example,
a = "11"
b = "1"
Return "100".
#include
#include
#include
using namespace std;
string addBinary(string a, s...
分类:
其他 时间:
2015-03-31 10:54:22
收藏:
0 评论:
0 赞:
0 阅读:
185
代码中到处都需要命名。作为程序员,我们得给类命名,给变量命名,给函数命名,给参数命名,给命名空间命名,等等等等。下面有20条小贴士能帮助你提高你的命名能力。
1.使用能够表达意图的名字
名字得能告诉我们它要做什么,为什么存在,以及是如何工作的。选择能够表达意图的名字,将更有利于我们理解代码。
int d; // elapsed time in days
int elapsedT...
分类:
其他 时间:
2015-03-31 10:53:42
收藏:
0 评论:
0 赞:
0 阅读:
187
题目:
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.
Do not allocate extra space for another array, you must do this in p...
分类:
其他 时间:
2015-03-31 10:53:12
收藏:
0 评论:
0 赞:
0 阅读:
151
LilyPad Arduino可穿戴技术和电子织物控制器板简介...
分类:
其他 时间:
2015-03-31 10:52:32
收藏:
0 评论:
0 赞:
0 阅读:
239
Follow up for "Remove Duplicates":
What if duplicates are allowed at most twice?
For example,
Given sorted array A = [1,1,1,2,2,3],
Your function should return length = 5,
and A is now [1,1,...
分类:
其他 时间:
2015-03-31 10:52:13
收藏:
0 评论:
0 赞:
0 阅读:
194
SD卡操作相关的工具
package com.flyou.utils;
import java.io.File;
import android.os.Environment;
import android.os.StatFs;
/**
* SD卡相关的辅助类
*
*
*
*/
public class SDCardUtils
{
private SDCardUtils()...
分类:
其他 时间:
2015-03-31 10:51:52
收藏:
0 评论:
0 赞:
0 阅读:
229
UITableView SDK委托方法详解
今天跟大家分享一下UITableView的各个代理方法的用法,主要是根据SDK里面的介绍,再加上自己的分析与测试,总结成此文。如果有疑问的话,希望大家留言告诉我~
本文主要讲解对于UITableView最重要的两个协议
UITableViewDataSource
UITableViewDelegate
UITable...
分类:
其他 时间:
2015-03-31 10:51:42
收藏:
0 评论:
0 赞:
0 阅读:
141
对于多并发实时数据的服务器,需要考虑的一些策略,使负载能在不同的服务器进程中异步处理,含有当机恢复服务器进程数据,动态维护服务器进程,提高数据读写的速度。 其中的一些策略如下:...
分类:
其他 时间:
2015-03-31 10:51:02
收藏:
0 评论:
0 赞:
0 阅读:
91
题目:
Given a sorted linked list, delete all duplicates such that each element appear only once.
For example,
Given 1->1->2,
return 1->2.
Given 1->1->2->3->3,
return 1->2->3.
思路:和数组删除很相...
分类:
其他 时间:
2015-03-31 10:50:54
收藏:
0 评论:
0 赞:
0 阅读:
136
先是一个最最简单的例子,在浏览器中请求一个action,然后返回一个字符串到jsp页面上显示出来。
第一:创建web项目,引入struts2要的jar包,目录如下:
第二:web.xml中配置struts2的核心拦截器
<web-app version="2.5"
xmlns="http://java.sun.com/xml/n...
分类:
其他 时间:
2015-03-31 10:50:32
收藏:
0 评论:
0 赞:
0 阅读:
157
Compare two version numbers version1 and version2.
If version1 > version2 return 1, if version1 version2 return -1, otherwise return
0.
You may assume that the version strings are non-empty and c...
分类:
其他 时间:
2015-03-31 10:50:12
收藏:
0 评论:
0 赞:
0 阅读:
210
atoi函数源代码
isspace(int x)
{
if(x==' '||x=='\t'||x=='\n'||x=='\f'||x=='\b'||x=='\r')
return 1;
else
return 0;
}
isdigit(int x)
{
if(x='0')
return 1;
else
return 0;
}
int atoi(...
分类:
其他 时间:
2015-03-31 10:50:02
收藏:
0 评论:
0 赞:
0 阅读:
128