1.下载文件乱码问题 new String("免责声明.pdf".getBytes("utf-8"), "ISO-8859-1");2.图片转blogString path = request.getSession().getServletContext().getRealPath("/"); .....
分类:
其他好文 时间:
2014-07-13 23:17:43
阅读次数:
245
一、配置Tomcat环境变量1,新建变量名:CATALINA_BASE,变量值:C:\tomcat2,新建变量名:CATALINA_HOME,变量值:C:\tomcat3,打开PATH,添加变量值:%CATALINA_HOME%\lib;%CATALINA_HOME%\bin二、启动Tomcat服务...
分类:
其他好文 时间:
2014-07-13 22:55:03
阅读次数:
223
TreeYou are to determine the value of the leaf node in a given binary tree that is the terminal node of a path of least value from the root of the bin...
分类:
其他好文 时间:
2014-07-13 21:24:22
阅读次数:
202
优化性能参数设置,在ngnix.conf中的http 层加上fastcgi参数如下:
http {
fastcgi_cache_path /usr/local/nginx/fastcgi_cache levels=1:2 keys_zone=TEST:10m inactive=5m;
fastcgi_connect_timeout=300;
fastcgi_send_timeout=30...
分类:
其他好文 时间:
2014-07-13 17:17:07
阅读次数:
218
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.
For example, given the following triangle
[
[2],
[3,4],
[...
分类:
其他好文 时间:
2014-07-13 16:01:42
阅读次数:
209
变量${a}aaa变量aexporta将本地变量a变成环境变量在子bash也可用$PATH路径变量PATH=$PATH:/$HOME/bin增加路径$$显示当前的进程号$PPID父进程号$USER当前用户$UID当前用户的UID$HOSTNAME当前的主机名$1$2$3$4....要传递的参数shift将参数向前移动一位$0当前的脚本的名称$#要传递..
分类:
其他好文 时间:
2014-07-13 15:09:47
阅读次数:
187
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.
For example:
Given the below binary tree and sum
...
分类:
其他好文 时间:
2014-07-13 13:58:01
阅读次数:
184
执行:
./configure --prefix=/usr/local/php --enable-fastcgi --enable-fpm
之后出现
Running FastCGI Process Manager checks
checking for php-fpm config file path... $prefix/etc/php-fpm.conf
checking for ...
分类:
其他好文 时间:
2014-07-13 13:50:43
阅读次数:
205
就Android平台而言,URI主要分三个部分:scheme, authority and path。其中authority又分为host和port。格式如下:scheme://host:port/path举个实际的例子:content://com.example.project:200/folde...
分类:
移动开发 时间:
2014-07-13 13:19:12
阅读次数:
368