撒花庆贺~博客搬家完成
从国外把博客给搬回来了。。。BurstNet的速度果然让人hold不住。。。
还是安心用国内的服务器吧。。。贵点就贵点了。。。
从国外把博客给搬回来了。。。BurstNet的速度果然让人hold不住。。。
还是安心用国内的服务器吧。。。贵点就贵点了。。。
今天帮同事安装配置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/
更新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
— 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 —
…..
fcitx更新到4.0之后我就一直在用fcitx,但是自2011年9月5日更新到4.1.0-1之后,很多候选词就无法上屏了,尤其是当候选词是处在第二页的时候。具体表现为当选择一个无法输入的词时输入框就会消失。后来我把这个问题报给了fcitx的开发人员,以下贴上问题解决的过程。
Issue地址是:http://code.google.com/p/fcitx/issues/detail?id=429
|
Reported by hess…@gmail.com, Yesterday (25 hours ago)
如何重现? 1. 输入 shishi 2. 翻页找到"实时"两个字 3. 按下对应数字键 这个时侯你会发现输入框消失了,但是当你再尝试输入其他内容时之前输入的文字又会出现在输入框里。 Fcitx 版本: 4.1.0-1 来源: Archlinux pacman 操作系统:Archlinux 桌面环境:Openbox Comment 1 by hess…@gmail.com, Yesterday (25 hours ago) 实时是其中一个例子,如果无法重现请尝试其他词组,出现在第二页的字词在我这里基本上都无法输入。 Comment 2 by project member wen…@gmail.com, Yesterday (24 hours ago)
你是不是在用sunpinyin而没有用sunpinyin-git? Comment 5 by hess…@gmail.com, Today (97 minutes ago) 非常遗憾,我将~/.config/fcitx 重命名为 ~/.config/fcitx.bak之后重新启动,问题依旧。 基本上只要选择的是第二页的字词候选框就会消失。 Comment 6 by project member wen…@gmail.com, Today (88 minutes ago)
我这里所有的输入法都没办法重现你的问题(码表,拼音,sunpinyin,googlepinyin) 即使是重新安装源内提供的4.1.0都没办法重现。 我怀疑你对问题的描述有不准确的地方(假设存在这个bug的话)。 如果你能把这个问题录下来就最好了。 Comment 7 by hess…@gmail.com, Today (67 minutes ago) 非常感谢你的耐心回答,我刚才又测了一下,如果我pkill fcitx,然后再从命令行通过fcitx&来启动,居然就一点问题也没有。 不知道是不是跟什么变量之类的有关系呢? 还有我再次pkill fcitx之后X就挂掉了,点啥都没反应。 我把fcitx启动的输出导了出来,你看看是否有异常? Comment 8 by project member wen…@gmail.com, Today (49 minutes ago)
其实我应该再问问你具体输入的程序是什么……按照我的推测,如果是输入很诡异的话,很可能是这个程序本身输入支持的问题,但是在某种情况下这个问题可以由fcitx绕过或者怎么样。 不过即使我用xim的话在gtk或者qt程序(甚至开启了新加入的xim的on the spot支持,这个选项默认关闭),也都没有试验出问题。 输出里面有一个dbus相关的问题,不过fcitx那个问题会进行数次连接尝试,看起来是绕过了这个问题才对。 有个相关的你也不妨参考,虽然和fcitx无关,但是也是dbus的启动问题。 https://bbs.archlinux.org/viewtopic.php?id=115474 既然你已经升级到4.1.0了 不妨把 fcitx-gtk2 ( fcitx-gtk3 fcitx-qt 如果你有需要 ) 装上,并且设置 GTK_IM_MODULE=fcitx ,而不是你以往设置的xim。 当然你更加不妨用openbox的自动启动来启动fcitx(也许这样就解决了),而不是写自己的~/.xinitrc Comment 9 by hess…@gmail.com, Today (moments ago) 我照你的方法做了之后依然没有效果。 不过好消息是我尝试加上参数 -s 把delay设成5之后就正常了。 我现在的配置: 安装了 fcitx-gtk2 + fcitx-qt 变量写在 ~/.xprofile export XMODIFIERS="@im=fcitx" export GTK_IM_MODULE="fcitx" export QT_IM_MODULE="fcitx" 启动写在 ~/.config/openbox/autostart.sh fcitx -d -s 5 现在看来没有发现什么问题。 非常感谢你的帮助 |