国际化格式标签库包括国际化,消息和数字日期格式化:
(1) 国际化:
如:
@ page language="java" contentType="text/html; charset=gb2312" import="java.util.*"%>
@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
@...
分类:
移动开发 时间:
2014-06-20 12:30:54
阅读次数:
300
题目
Write a function to find the longest common prefix string amongst an array of strings.
原题链接
解题思想
给一个字符串数组,求这些字符串的最长公共前缀。
这个题应该是比较简单的,直接写代码,一次AC。解题思想是依次对数组中的字符串求最长公共前缀。
代码实现
class Sol...
分类:
其他好文 时间:
2014-06-20 12:25:09
阅读次数:
247
1、Memcache用到了libevent(这个库用于Socket的处理),需要安装libevent:(1)tar zxvf libevent.tar.gz
后进入解压后的文件夹(2)./configure --prefix=/usr/lib(3)make &&make
install(4)测试li...
分类:
系统相关 时间:
2014-06-07 02:11:48
阅读次数:
384
http_build_query函数http_build_query--生成 url-encoded
之后的请求字符串描述string http_build_query ( array formdata [, string
numeric_prefix])根据数组产生一个urlencode之后的请求...
分类:
其他好文 时间:
2014-06-06 06:43:40
阅读次数:
376
实验平台:RHEL5.8实验拓扑:PHP配置部分:1、编译安装PHP./configure--prefix=/usr/local/php--with-mysql=mysqlnd--with-openssl--with-mysqli=mysqlnd--enable-mbstring--with-freetype-dir--with-gpg-dir--with-png-dir--with-zlib--with-libxml-dir=/usr--enable-sockets-..
分类:
数据库 时间:
2014-06-02 03:58:43
阅读次数:
296
从官网下载VIM包,解压,然后执行./configure
--prefix=/usr/local/vim,提示出错信息为:noterminallibraryfound
checkingfortgetent()configure:error:NOTFOUND! Youneedtoinstallater...
分类:
其他好文 时间:
2014-05-29 10:34:57
阅读次数:
304
转:(1)安装Nginx1.1 下载nginx-1.0.5.tar.gz并解压1.2
./configure (也可以增加--prefix= path指定安装路径)此时有可能会提示缺少pcre支持,如果要安装pcre的话可以通过 yum
install pcre-devel 来实现安装1.3 mak...
分类:
Web程序 时间:
2014-05-28 03:04:41
阅读次数:
281
出题:TRIE树 (Trie Tree or Prefix
Tree);分析:又称字典树或者前缀树,一种用于快速检索的多叉树结构;英文字母的Trie树为26叉树,数字的Trie树为10叉树;All the
descendants of a node have a common prefix of t...
分类:
其他好文 时间:
2014-05-26 18:31:06
阅读次数:
297
supervisor的安装也很简单:
直接用npm安装既可,键入命令: npm -g install supervisor
这里注意一点的就是,supervisor必须安装到全局,如果你不安装到全局,错误命令会提示你安装到全局。
如果不想安装到默认的全局,也可以自己修改全局路径到当前路径
npm config set prefix "路径"
安装完以后就可以用supervisor 来启动...
分类:
Web程序 时间:
2014-05-25 21:37:56
阅读次数:
337
关于php与mysql之间的工作机制,今天蛋疼地考虑php编译安装时不添加--with-mysql参数,是否可以实现mysql_connect()函数。第一次编译只是简单的./configure--prefix=/usr/local/php--with-config-file-path=/usr/local/php/etc
make&&makeinstallmysql_connect()果然使..
分类:
Web程序 时间:
2014-05-24 15:40:47
阅读次数:
1057