从国外把博客给搬回来了。。。BurstNet的速度果然让人hold不住。。。
还是安心用国内的服务器吧。。。贵点就贵点了。。。
Read: 879
从国外把博客给搬回来了。。。BurstNet的速度果然让人hold不住。。。
还是安心用国内的服务器吧。。。贵点就贵点了。。。
Read: 879
今天帮同事安装配置php_imagick,结果装是装上了apache也能正常启动,但是程序一new Imagick()就会导致Apache崩溃。
在google之后从Stack Overflow找到问题原因:
I’ve had the same issue today. You have to install version of Image Magick no higher than 6.6.4.0 – next builds are made using VC10 which seems to be incompatible with Apache VC9 + PHP5.3.x VC9.
ImageImagick dll for windows 在6.6.4以后用的都是VC10编译,所以不兼容vc9编译的php,虽然apache能正常启动,但是new Imagick的时候会导致apache崩溃。
解决办法就是安装低版本的ImageImagick
下载地址:http://image_magick.veidrodis.com/image_magick/binaries/
参考资料:
http://stackoverflow.com/questions/8608426/imagick-crash-with-php-5-3
http://www.elxsy.com/2009/07/installing-imagemagick-on-windows-and-using-with-php-imagick/
Read: 1169
更新svn(subversion)到1.7后 zsh 的svn自动完成就傻X了。
错误: _arguments:comparguments:312: invalid argument: [–cl]:arg:
修改方法
打开文件:/usr/share/zsh/4.3.11/functions/_subversion
找到35行左右
${=${${${(M)${(f)”$(LC_ALL=C _call_program options svn help $cmd)”#(*Valid options:|(#e))}:#* :*}%% #:*}/ (arg|ARG)/:arg:}/(#b)-([[:alpha:]]) \[–([a-z-]##)\](:arg:)#/(–$match[2])- $match[1]$match[3] (-$match[1])–$match[2]$match[3]}
改为
${=${${${(M)${(f)”$(LC_ALL=C _call_program options svn help $cmd)”#(*Valid options:|(#e))}:#* :*}%% #:*}/ (arg|ARG)/:arg:}/(#b)(-##)([[:alpha:]]##) \[–([a-z-]##)\](:arg:)#/(- -$match[3])$match[1]$match[2]$match[4] ($match[1]$match[2])–$match[3]$match[4]}
参考资料:
http://www.zsh.org/mla/workers/2011/msg01448.html
Read: 281
— PREPARE —
1. Install MacPort
2. sudo port install pcre jpeg libpng mcrypt ImageMagick
3. Download PHP, Nginx, Redis, MySQL
— Compile & Install —
1. MySQL dmg
2. Nginx
./configure –prefix=/opt/nginx
make
make install
3. Redis
make PREFIX=/opt/redis install
4. PHP
./configure –prefix=/opt/php53 –with-config-file-path=/opt/php –with-mysql=mysqlnd –with-pdo-mysql=mysqlnd –with-iconv=/opt/local –with-xsl –enable-xml –with-libxml-dir –disable-rpath –enable-safe-mode –enable-bcmath –enable-shmop –enable-sysvsem –enable-inline-optimization –with-libexpat-dir=/usr/lib –with-curl –with-curlwrappers –enable-mbregex –enable-ftp –with-gd –enable-zip –enable-sockets –enable-soap –enable-mbstring=all –with-mcrypt=/opt/local –enable-gd-native-ttf –with-freetype-dir=/opt/local –with-zlib –without-pdo-sqlite –enable-fpm –with-snmp –without-sqlite –without-pdo-sqlite –with-openssl –with-jpeg-dir=/opt/local –with-png-dir=/opt/local –with-xpm-dir=/opt/local
make
make install
sudo pecl install imagick
// prefix = /opt/local
— Configure —
…..
Read: 1121
fcitx更新到4.0之后我就一直在用fcitx,但是自2011年9月5日更新到4.1.0-1之后,很多候选词就无法上屏了,尤其是当候选词是处在第二页的时候。具体表现为当选择一个无法输入的词时输入框就会消失。后来我把这个问题报给了fcitx的开发人员,以下贴上问题解决的过程。
Issue地址是:http://code.google.com/p/fcitx/issues/detail?id=429
Read: 2981