在使用pt-online-schema-change会遇到如下的错误导致表修改失败:Copying rows caused a MySQL error 1364,Message: Field 'XXX' doesn't have a default value例子1:#修改的SQL:ALTER TA...
分类:
其他好文 时间:
2014-07-07 09:24:57
阅读次数:
442
//界面按钮的显示隐藏 界面input的锁定 function change(){ document.getElementById('first1').style.display="inline"; document.getElementById('first2').style.display="i...
分类:
Web程序 时间:
2014-07-07 08:39:34
阅读次数:
227
Android源码下载完后的目录如下:整个代码的大小为:25.559GB。一、构建系统如下用于构建Android源码树的指令应用于所有的代码分支,包括master分支。1.选择分支构建系统的一些要求是由将要选择编译的源代码的版本决定的。通过网址http://source.android.com/so...
分类:
移动开发 时间:
2014-07-03 22:36:48
阅读次数:
340
在C#中,如果在方法参数前面加上ref关键字,说明参数传递的是引用,而不是值。如何理解呢? 参数是简单类型的例子 static void Main(string[] args) { string temp = "a"; Change(temp); Console.WriteLine(temp); ....
分类:
其他好文 时间:
2014-07-03 19:45:42
阅读次数:
189
Linux文件时间解析
写这篇小文章的缘由是之前做过一个项目,需要定期将文件转走,也许专业点的名词叫rollover。那么这就需要判断一个文件是否到了转走的时间,从而就需要知道文件的创建时间。 Linux文件分为状态改动时间ctime,修改时间mtime以及访问时间atime,那么它们是怎么变化的呢?需要注意这个ctime可不是创建时间,是Change Time的缩写,修改时间那就是文件修改的时...
分类:
系统相关 时间:
2014-07-03 18:45:27
阅读次数:
257
Last_IO_Error: The slave IO thread stopsbecause the master has @@GLOBAL.GTID_MODE OFF and this server has@@GLOBAL.GTID_MODE ON...
分类:
数据库 时间:
2014-07-03 17:31:44
阅读次数:
348
一、安装1、master安装yuminstallsalt-master
vi/etc/salt/master
interface:192.168.55.1
/etc/init.d/salt-masterstart2、minion安装yuminstallsalt-minion
vi/etc/salt/minion
master:192.168.55.1
id:192.168.5.31
/etc/init.d/salt-minionstart配置文件interface、master..
分类:
其他好文 时间:
2014-07-03 14:59:29
阅读次数:
312
一、什么是redis主从复制?主从复制,当用户往Master端写入数据时,通过RedisSync机制将数据文件发送至Slave,Slave也会执行相同的操作确保数据一致;且实现Redis的主从复制非常简单。二、redis主从复制特点1、同一个Master可以拥有多个Slaves。2、Master下的Slave还可以接受同..
分类:
数据库 时间:
2014-07-03 14:26:26
阅读次数:
333
题目如下:
Dungeon Master
You are trapped in a 3D dungeon and need to find the quickest way out!The dungeon is composedof unit cubes which may or may not be filled with rock. It ...
分类:
其他好文 时间:
2014-07-02 16:53:39
阅读次数:
199
下图一一个典型的config.json的配置: 配置中主要包括四个部分,master,servers,db,memcached。master用来定义master的端口,serv...
分类:
其他好文 时间:
2014-07-02 15:13:01
阅读次数:
218