kristain

博客园 首页 新随笔 联系 订阅 管理
上一页 1 2 3 4 5 6 7 8 9 10 ··· 22 下一页

2013年11月14日 #

摘要: 1php5.4下安装的时候处理问题,StrictStandards:Non-staticmethodcls_image::gd_version()shouldnotbecalledstaticallyin\install\includes\lib_installer.phponline31 解决:找到install/includes/lib_installer.php中的第31行returncls_image::gd_version();然后在找到include/cls_image.php中的678行,发现gd_version()方法未声明静态static,所以会出错。这时候只要: 将fu.. 阅读全文
posted @ 2013-11-14 13:28 kristain 阅读(6633) 评论(2) 推荐(1) 编辑

2013年10月31日 #

摘要: I noticed today that while Mac OS 10.6 (specifically, 10.6.2) comes with automake and autoconf, the versions are a little bit dated. Normally I wouldn’t care, but I ran into an issue when trying to generate a portable distribution using those tools on my mac, and then configure, compile, and install 阅读全文
posted @ 2013-10-31 17:08 kristain 阅读(527) 评论(0) 推荐(0) 编辑

2013年10月28日 #

摘要: mac通过终端ssh远程连接centos服务器在终端下输入ssh-lroot204.74.*.*就可以连接了,这是端口没变的情况,还是原来的22ssh-p448(你改变的端口)-lroot(连接用户名)204.74.*.*这个是端口改变后的连接ssh连接的时候Hostkeyverificationfailed.sshssh连接的时候Hostkeyverificationfailed.解决方法:vi~/.ssh/known_hosts进入此目录,删除192.168.1.90的相关rsa的信息即可.或者删除这个文件cd~/.ssh/rmknown_hosts 阅读全文
posted @ 2013-10-28 15:43 kristain 阅读(480) 评论(0) 推荐(0) 编辑

摘要: 转自:草原和大树来源地址:http://www.cnblogs.com/JemBai/archive/2009/03/19/1416364.htmllinux下IPTABLES配置详解如果你的IPTABLES基础知识还不了解,建议先去看看.开始配置我们来配置一个filter表的防火墙.(1)查看本机关于IPTABLES的设置情况[root@tp ~]# iptables -L -nChain INPUT (policy ACCEPT)target prot opt source destinationChain FORWARD (policy ACCEPT)target prot opt so 阅读全文
posted @ 2013-10-28 13:28 kristain 阅读(116) 评论(0) 推荐(0) 编辑

2013年10月23日 #

摘要: Linux下mysql端口不能远程访问的问题防火墙设置以下内容只解决iptables开放端口问题,不解决mysql数据库本身账号远程访问权限问题.Linux iptables 开放Mysql端口允许远程访问修改防火墙配置文件:vi /etc/sysconfig/iptables增加下面一行:-A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 3306 -j ACCEPT或者使用命令iptables -A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dpo 阅读全文
posted @ 2013-10-23 13:48 kristain 阅读(414) 评论(0) 推荐(0) 编辑

2013年10月9日 #

摘要: Mac 下配置PHP环境1. 启动 Apache2.设置虚拟主机3. 运行 PHP4. 安装 MySQL5. 使用 phpMyAdmin6. 配置 PHP 的 MCrypt 扩展库7.GD 库安装8. 增加 CAPTCHA 支持9. 增加 Zendframework10. 其他可能遇到的问题---------------------------------------------------------------------------------------------------------------------------------------------------------- 阅读全文
posted @ 2013-10-09 11:25 kristain 阅读(1494) 评论(1) 推荐(0) 编辑

摘要: 1、安装package controlINSTALLATIONSimpleSECURITY NOTICE:The Python code used by this method does not use SSL because Sublime Text on Linux does not have the ssl module. Additionally, for Windows and OS X it is not possible for a simple snippet of code like this to validate the SSL certificate forsublim 阅读全文
posted @ 2013-10-09 10:02 kristain 阅读(385) 评论(0) 推荐(0) 编辑

2013年10月7日 #

摘要: Linux下批量修改文件及文件夹所有者及权限需要使用到两个命令,chmod以及chown例:对/ydsj/目录下的所有文件与子目录执行相同的权限变更:chmod -R 700 /ydsj/-R参数是递归 处理目录下的所有文件以及子文件夹700是变更后的权限表示(只有所有者有读和写以及执行的权限)/ydsj/ 是需要执行的目录 阅读全文
posted @ 2013-10-07 19:20 kristain 阅读(307) 评论(0) 推荐(0) 编辑

2013年9月26日 #

摘要: import java.io.ByteArrayInputStream;import java.io.ByteArrayOutputStream;import java.io.InputStream;import android.graphics.Bitmap;import android.graphics.BitmapFactory;import android.graphics.Canvas;import android.graphics.PixelFormat;import android.graphics.drawable.BitmapDrawable;import android.g 阅读全文
posted @ 2013-09-26 12:07 kristain 阅读(1015) 评论(0) 推荐(0) 编辑

2013年9月24日 #

摘要: 最近做listview发现OnItemClickListener 失效,在网上看到这篇文章,发现问题所在,因为button的原因。而且不但listitem中存在button影响OnItemClickListener事件的失效,而且还会直接导致单击后listview每个item的背景改变使item中的所有有关焦点的事件都失效。下面内容转载于http://www.cnblogs.com/xilinch/archive/2012/11/07/2759265.html listview在android开发中很地方都用到了,通常我们需要定制item里面的视图,就要重写adapter。而item中的控件. 阅读全文
posted @ 2013-09-24 22:20 kristain 阅读(559) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 10 ··· 22 下一页