出现以下报错[ERROR]ErrorinLog_event::read_log_event():‘Eventtoobig‘,vim/etc/init.d/mysqld启动参数添加--binlog-row-event-max-size=536870912$bindir/mysqld_safe--binlog-row-event-max-size=536870912
分类:
数据库 时间:
2016-08-25 21:56:06
阅读次数:
288
介绍 Guice Servlet 为使用web应用程序和Servlet容器提供了一个完整的模式。. Guice's servlet 扩展允许从你的servlet应用中完全淘汰web.xml,并且具有类型安全(type-safe)的优势。 符合Java方式的配置你的servlet和filter组件。 ...
分类:
Web程序 时间:
2016-08-24 11:06:52
阅读次数:
271
一,介绍 Retrofit将你的http接口API转换成项目中的一个java的接口。public interface GitHubService {
@GET("users/{user}/repos")
Call> listRepos(@Path("user") String user);
} Retrofit会自动为上面的Service生成一个实现类。Retrofit retrof...
分类:
移动开发 时间:
2016-08-21 22:56:58
阅读次数:
359
版本更新,原来user里的password字段已经变更为authentication_string 版本更新 缘故,好多网上的教程都不适用了,甚至连官网的文档也不是能够顺利操作的。 如果 MySQL 正在运行,首先杀之: killall -TERM mysqld。 运行 mysqld_safe -- ...
分类:
数据库 时间:
2016-08-19 22:02:27
阅读次数:
177
django后台代码: 前台js获取后台代码的时候: 前台网页中js代码对应出现这种情况: 这个问题解决方法很简单,加个safe就行了: ...
分类:
Web程序 时间:
2016-08-18 09:58:00
阅读次数:
821
使用curl上传文件使用file=@文件路径的方式,在php5.6以后的版本中无法使用了 官方文档给出明确解释 如果需要支持的话,可以将CURLOPT_SAFE_UPLOAD设置为false 或者使用CURLFile上传文件 ...
分类:
Web程序 时间:
2016-08-17 21:08:26
阅读次数:
406
1. Vector & ArrayList 1) Vector的方法都是同步的(Synchronized),是线程安全的(thread-safe),而ArrayList的方法不是,由于线程的同步必然要影响性能,因此,ArrayList的性能比Vector好。 2) 当Vector或ArrayList ...
分类:
其他好文 时间:
2016-08-16 10:38:22
阅读次数:
113
【URL Quoting】 The URL quoting functions focus on taking program data and making it safe for use as URL components by quoting special characters and ap ...
分类:
Web程序 时间:
2016-08-13 14:14:17
阅读次数:
212
groupaddmysqluseradd-gmysqlmysqlcd/usr/localtarzxvf/root/mysql-5.0.22.tar.gz#MySQL源代码包的绝对路径cdmysql-5.0.22./configure--enable-thread-safe-client--with-unix-socket--with-mysqld-user=mysql--with-charset=gbk--prefix=/usr/local/mysqlmake#这一步时间较长m..
分类:
数据库 时间:
2016-08-13 06:39:11
阅读次数:
267
首先要注意的是: “自动引用计数”(Automatic Reference Counting, ARC,参见第30条)在默认情况下不是“异常安全的”(exception safe)。具体来说,这意味着:如果抛出异常,那么本应在作用域末尾释放的对象现在却不会自动释放了。如果想生成“异常安全”的代码,可 ...
分类:
其他好文 时间:
2016-08-09 20:26:05
阅读次数:
233