上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 25 下一页

2017年3月11日

替换空格

摘要: 题目描述 请实现一个函数,将一个字符串中的空格替换成“%20”。例如,当字符串为We Are Happy.则经过替换之后的字符串为We%20Are%20Happy。 代码 class Solution { public: void replaceSpace(char str,int length) 阅读全文

posted @ 2017-03-11 17:37 jec 阅读(101) 评论(0) 推荐(0) 编辑

二维数组中的查找

摘要: 题目描述 在一个二维数组中,每一行都按照从左到右递增的顺序排序,每一列都按照从上到下递增的顺序排序。请完成一个函数,输入这样的一个二维数组和一个整数,判断数组中是否含有该整数。 代码 class Solution { vector array; int target = 0; public: boo 阅读全文

posted @ 2017-03-11 17:29 jec 阅读(107) 评论(0) 推荐(0) 编辑

2016年5月18日

phpize Cannot find autoconf. 错误解决

摘要: phpize Configuring for: PHP Api Version: 20151012 Zend Module Api No: 20151012 Zend Extension Api No: 320151012 Cannot find autoconf. Please check you 阅读全文

posted @ 2016-05-18 20:05 jec 阅读(406) 评论(0) 推荐(0) 编辑

ubuntu卸载编译安装的软件

摘要: cd 源代码目录 make clean ./configure make make uninstall 阅读全文

posted @ 2016-05-18 19:45 jec 阅读(1280) 评论(0) 推荐(0) 编辑

配置Nginx来支持php

摘要: 到/usr/local/etc/目录下,将php-fpm.conf.default拷贝一份成php-fpm.conf 然后在编辑php-fpm.conf配置文件 进入到/usr/local/etc/php-fpm.d/目录下,将www.conf.default拷贝一份成www.conf 编辑www. 阅读全文

posted @ 2016-05-18 19:34 jec 阅读(103576) 评论(1) 推荐(3) 编辑

ubuntu14.04 configure: error: xml2-config not found. Please check your libxml2 installation错误解决

摘要: 今天在ubuntu14.04上安装php7时 执行: 命令时 一直报configure: error: xml2 config not found. Please check your libxml2 installation。 结果使用: 显示这个已经安装 在网上查找后:需要安装libxml2 d 阅读全文

posted @ 2016-05-18 17:33 jec 阅读(265) 评论(0) 推荐(0) 编辑

nginx配置安装

摘要: 检查配置文件nginx.conf的正确性命令: /usr/local/nginx/sbin/nginx -t 阅读全文

posted @ 2016-05-18 16:40 jec 阅读(3013) 评论(0) 推荐(0) 编辑

2016年5月13日

spring-mvc junit测试

摘要: import org.junit.runner.RunWith; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.TestPropertySource; import org.springframework.test.context.juni... 阅读全文

posted @ 2016-05-13 17:45 jec 阅读(436) 评论(0) 推荐(0) 编辑

spring-mvc jackson配置json为空不输出

摘要: 使用的spring-mvc版本是4.1.6,jackson版本是2.1.4 在spring-mvc配置文件中添加以下代码就行 阅读全文

posted @ 2016-05-13 15:09 jec 阅读(2674) 评论(0) 推荐(0) 编辑

2016年4月22日

ubuntu idea goagent代理证书无效(Problem with connection: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find val)

摘要: ubuntu idea设置goagent代理,出错: Problem with connection: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpa 阅读全文

posted @ 2016-04-22 17:14 jec 阅读(3) 评论(0) 推荐(0) 编辑

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 25 下一页

导航