发布时间:2015-11-23 19:33:37
被这个错搞了半天,尝试一堆encode,decode,还尝试了import sysreload(sys)sys.setdefaultencoding('utf8')也不管用。最后查到需要转成utf-8,再调用sha1.hashlib.sha1(s).hexdigest()UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-81: ordinal not in range(128)Apparently h.........【阅读全文】
发布时间:2015-11-16 16:14:21
./configure --prefix=/usr2/php-5.6.15 --enable-fpm --with-zlib \--enable-bcmath --enable-mbstring --enable-sockets --with-gettext=/usr \--with-png-dir=/usr --with-freetype-dir=/usr \--with-gd=/usr/local/gd2 --with-t1lib=/usr \--with-xpm-dir=/usr --with-mysqli --with-mysql=/usr2/mysql......【阅读全文】
发布时间:2015-11-13 10:01:02
Debian系统删除软件包时,执行postremove script报错。解决方法,修改postremove script,把#!/bin/sh -e改成不要-ecd /var/lib/dpkg/infols package-name*vi 。。。 去掉#!/bin/sh -e的-e......【阅读全文】
发布时间:2015-10-26 15:13:33
网上搜来的解决方法。原理不大明白。注意第2步一定要能取得新提交才行。1 Edit the svn-remote url URL in .git/config to point to the new domain name2 Run git svn fetch – This needs to fetch at least one new revision from svn!3 Change svn-remote url back to the original url4 Run git svn rebase.........【阅读全文】
发布时间:2015-10-15 10:01:13
从debian wheezy升级到jessie,把source.list的源改为jessie后,
apt-get update
apt-get dist-upgrade
下载完成后进行安装时,发生错误:
UNMET dependences ...
apt-get install -f
又发生
dpkg: error processing ...
trying to overwrite 'xxx', which is also in pac.........【阅读全文】