1. Installing the Certificates to the Keystore If you receive a message that says "Certificate already exists in system-wide CA keystore under alias <...> Do you still want to add it to your own keystore? [no]:", select Yes. If succes ...

    阅读全文
  2. linux下添加PHP的扩展程序cURL. 之前编译的PHP没有cURL扩展,现在需要添加这个扩展程序。百度了一些文章,帮助很大,由于对Linux不是太熟,仍然出现了一些误解和小状况,现在小结一下。 大体方法如网上所言: 进入安装原php的源码目录(比如/envhome/php-5.x/), 1. cd ext 2. cd curl 3. [/phphome/bin/]phpize (这里phpize肯定找不到,所以应该加上路径,如/phph ...

    阅读全文
  3. 在configure php时: ./configure --prefix=/home/php5.5.8 --with-apxs2=/home/apache/bin/apxs --with-mysql --with-mysqli --with-gd --enable-mbstring --enable-sockets --enable-shared --with-pdo-mysql --with-jpeg-dir=/usr/lib64 --with-freetype-dir=/usr/ ...

    阅读全文
  4. 重新整了一个开发环境,结果发现在调试时候断点不停,设置的断点无效,也不能在第一行停下,于是折腾出本文。 环境:windows + php + eclipsePHP + xdebug 1) 查看php.ini以及phpinfo均显示xdebug以配置成功。 原先配置: extension=php_xdebug.dll zend_extension=D:\php\ext\php_xdebug.dll xdebug.remote_enable=on xdebug. ...

    阅读全文
  5. Window->Preference->Java->Editor->Content Assist->Advanced 这里如果你去掉Java Proposals的选择,那么你就不会有任何java的提示。底下的选框是用来定义顺序的。 ...

    阅读全文
  6. Mac自带了php和apache. 但Mac OS X并没有默认的php.ini配置文件。不过提供了php.ini.default模版。可以复制一份出来修改。 sudo cp /private/etc/php.ini.default /private/etc/php.ini 然后根据需要修改php.ini 然后需要设置socket, 把php.ini里面所有的default_socket都改成/tmp的mysql.sock的正确位置即可。因为mysql的默认目录是 ...

    阅读全文
  7. 个人觉得CKEditor中block的功能非常有用,所以希望使block功能默认就是enabled.效果如下: 于是查询了下设置方法。如下: config.startupOutlineBlocks = true; 如果在config中设置可以这样写: CKEDITOR.replace( 'content-editor', { //省去其他配置 startupOutlineBlocks:true ...

    阅读全文
  8. 如何配置vim的背景色 设置.vimrc (这个.vimrc在当前用户的home目录下,如果没有,创建一个,这样不影响系统级别的vim设置。以后vim的一些设置都可以在这里添加,比如说添加set number后就可以默认打开显示行号) hi Normal ctermbg=Black ctermfg=white ctermbg表示背景色。ctermfg 表示前景色。 如何配置一个vim主题 就拿solarized主题来说吧。 下载solarized主题: ...

    阅读全文
  9. 转载自http://www.cnblogs.com/ginvip/p/6415853.html BASH shell下设置字体及背景颜色  echo -e "\e[31mtest\e[41m" \e[30m 将字符的显示颜色改为黑色  \e[31m 将字符的显示颜色改为红色  \e[32m 将字符的显示颜色改为绿色  \e[33m 将字符的显示颜色改为淡红色  \e[34m 将字符的显示颜色 ...

    阅读全文
  10. Apache configure文件中的一些知识点摘要: 首先检查apache configure文件是否合法可以使用下面的命令来检查语法合法性: httpd -t -f your.configurefile 官方配置文档参考路径:http://httpd.apache.org/docs/current/mod/core.html 1. 关于Options的设置注意事项 Note Mixing Options with a + or - with th ...

    阅读全文
12