进入tomcat-->conf-->server.xml.
修改如下:
(1):将默认的端口8080修改成80
80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
(2):
域名" appBase="webapps"
...
分类:
其他好文 时间:
2015-07-07 17:07:29
阅读次数:
109
Reverse Nodes in k-Group
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
If the number of nodes is not a multiple of k then left-out nodes in the...
分类:
其他好文 时间:
2015-07-07 17:04:14
阅读次数:
170
1 uboot移植
1.1 移植准备工作
1.1.1 安装交叉编译工具链
版本:arm-linux-gcc 4.4.1
环境:ubuntu14.04.01LTS
1.1.2建立OK6410配置项
从官网下载u-boot-2012.10.tar.bz2,由于uboot支持的smdk6400单板与我们的板子OK6410最相似,所以修改是基于smdk6400进行的,初步修改uboo...
分类:
其他好文 时间:
2015-07-07 17:05:36
阅读次数:
544
Entry是一个键值对对象,包含一个key和一个value,他是Map接口中定义的内部接口(Map.Entry)HashMap类中的内部类Entry实现了AbstractMap.SimpleEntry,而AbstractMap.SimpleEntry实现了Map.Entry接口,
用 null 做 key 其实是HashMap中定义了一个 NULL_KEY (Object NUL...
分类:
其他好文 时间:
2015-07-07 17:05:43
阅读次数:
90
E - 钱币兑换问题
Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u
Submit Status
Description
在一个国家仅有1分,2分,3分硬币,将钱N兑换成硬币有很多种兑法。请你编程序计算出共有多少种兑法。
Input
每...
分类:
其他好文 时间:
2015-07-07 17:04:21
阅读次数:
108
转载请注明出处:王亟亟的大牛之路
运行效果
如何使用?
在布局XML里引用即可,如下: <com.mingle.BouncyEditText
android:layout_width="fill_parent"
android:hint="账号"
android:text="255"
android:layout_height="wrap...
分类:
其他好文 时间:
2015-07-07 17:05:32
阅读次数:
196
NSObject常用方法//用来判断对象中是否实现了某个方法(被封装在一个selector的对象里传递)
-(BOOL) respondsToSelector: selector //用来判断对象中是否实现了某个方法. 和上面一个不同之处在于, 前面这个方法可以用在实例上,而此方法用在类上.
+(BOOL) instancesRespondToSelector: selector -(id)...
分类:
其他好文 时间:
2015-07-07 17:03:32
阅读次数:
110
C - Color the ball
Time Limit:3000MS Memory Limit:32768KB 64bit IO Format:%I64d
& %I64u
Submit Status
Description
N个气球排成一排,从左到右依次编号为1,2,3....N.每次给定2个整数a b(a
Input
...
分类:
其他好文 时间:
2015-07-07 17:03:00
阅读次数:
109
1.factory 根据字符串创建类需要用到参数化的类:
2.在定义一个类(my_driver)时,同时声明一个相应的registry 类及其变量:
1)创建实例时,把实例的指针和“my_driver” 的名字放在一个联合数组global_tab 中。
2)上述基本就是uvm_*_utils 宏所实现的功能,只是uvm_*_utils 宏做的更多,更好。
3)me=new(...
分类:
其他好文 时间:
2015-07-07 17:02:18
阅读次数:
132
现在,越来越多的企业选择在社交媒体上推广品牌,随之产生了数不胜数的内容营销。但是,它们内容趋同,效果平平。如何做到差异化的内容营销,并不能单纯靠“图配文”的形式,下面的“内容营销五原则”,快来跟小编一起膜拜学习,让你的品牌成为下一个行业风向标!
1.直击目标受众
这是我们经常忽略的一点。虽然做内容营销的关键在于,让它病毒性的传播,但你可千万别忘记目标受众的重要性。实际上,我们需要花时间弄清楚我...
分类:
其他好文 时间:
2015-07-07 17:01:12
阅读次数:
124
A - Friendship
Time Limit:3000MS Memory Limit:32768KB 64bit IO Format:%lld
& %llu
Submit Status
Description
A friend is like a flower,
a rose to be exact,
Or maybe li...
分类:
其他好文 时间:
2015-07-07 17:03:29
阅读次数:
165
I - Big Event in HDU
Time Limit:5000MS Memory Limit:32768KB 64bit IO Format:%I64d
& %I64u
Submit Status
Description
Nowadays, we all know that Computer College is the biggest d...
分类:
其他好文 时间:
2015-07-07 17:01:29
阅读次数:
93
1.4 Nandflash移植
先解决上面的错误,修改arch/arm/cpu/arm1176/s3c64xx/timer.c
static ulong timer_load_val;修改为 DECLARE_GLOBAL_DATA_PTR;
删除下面的两个定义:
/* Internal tick units */
/* Last decremneter snapshot */
sta...
分类:
其他好文 时间:
2015-07-07 17:01:38
阅读次数:
284
231 Power of Two链接:https://leetcode.com/problems/power-of-two/
问题描述:
Given an integer, write a function to determine if it is a power of two.Credits:
Special thanks to @jianchao.li.fighter for ad...
分类:
其他好文 时间:
2015-07-07 16:59:21
阅读次数:
148
通过将栅格各自乘以指定的权重并合计在一起来叠加多个栅格。...
分类:
其他好文 时间:
2015-07-07 16:59:45
阅读次数:
165
CC2530 控制输出功率的寄存器是 TXPOWER:
推荐功率设置:
协议栈默认的设置是 0xd5,为了扩展信号传输的距离,我把TXPOWER寄存器值改为0xf5, 此时输出功率为4.5dBm.在mac_radio.c文件,做了如下修改:
void macRadioSetTxPower(uint8 txPower)
{
halIntState_t s;
/* if the s...
分类:
其他好文 时间:
2015-07-07 16:58:43
阅读次数:
166
今天发布工程,访问其中一个模块,老是返回404异常。
/vweb/view/vweb.action
查看struts2配置文件和Action中的方法,没有问题啊。
于是怀疑是缓存引起的。 rm -rf Catalina/结果还是不行。忽然想到了
tomcat的server.xml中加了对应的模块的资源映射<Context docBase="/home/resource/vweb/" path...
分类:
其他好文 时间:
2015-07-07 17:00:47
阅读次数:
102