文档地址:戳我总结: (i) aims to generate scientific and engineering advances in fields of import to Google, (目标) (ii) does so in a way that tends to factorize....
分类:
移动开发 时间:
2014-07-05 17:37:34
阅读次数:
391
Slave crash-safe replication
mysql的slave启动时,error.log中出现Warning警告:
[Warning] Slave SQL: If a crash happensthis configuration does not guarantee that the relay log info will beconsistent, Error_code: 0...
分类:
移动开发 时间:
2014-07-03 18:15:13
阅读次数:
278
要使用正则匹配任意字符的话,通常有以下几种方法,这里我分别对每一种方法在使用的过程中做一个总结:第一种方式:[.\n]*?示例?View Code PHPpreg_match_all('/[.\n]*?/i', $content, $data);按道理这种方式应该是可以的,但我测试发现不行,因为这里...
分类:
Web程序 时间:
2014-07-02 20:02:39
阅读次数:
178
照抄大牛的Demo,自己信心满满地建好个各种项,结果死活不让通过,遇到了以下几个问题(大部分是自己作出来的...)1.运行不起来,报错如下Error 26:SQL Server does not allow remote connections. (provider: SQL Network Int...
分类:
Web程序 时间:
2014-07-02 18:18:33
阅读次数:
226
:g/^$/d:g will execute a command on lines which match a regex. The regex is 'blank line' and the command is :d (delete)g 会执行一个正则表达式的命令,能删除文本里面的空行。
分类:
其他好文 时间:
2014-07-02 14:30:51
阅读次数:
282
先上效果图,选择不同的模块,滑动会通过动画形式滑过去,这种适合新闻客户端多种栏目的展示:
这么写Layout:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="...
分类:
移动开发 时间:
2014-07-01 15:43:33
阅读次数:
198
先上效果图:
Title的Layout为:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
...
分类:
移动开发 时间:
2014-07-01 11:24:30
阅读次数:
289
蛋疼的题目描述,看了好长好长时间才看懂,题目本身是很简单的。Designer给出一串长度为N的Code,Breaker用Guess来破译。对于两串数字,如果有同一列相等的数字,那么叫做strong match,位于不同列的相等的两个数字,叫做weak match。题目要求就是先输出strong的个数...
分类:
其他好文 时间:
2014-07-01 09:14:15
阅读次数:
227
关于Amazon S3的数据一致性模型有两种:
撒旦发
有以下几种行为:
1 写一个新的object,然后开始读它,直到所有的变化都传播完(副本),你才能读到它,否则就是key does not exist。
2 写一个新的object,然后listkeys,直到所有的变化都传播完,你才能看到它。
3 覆盖一个已有的object,然后开始读它,直到所有的变化都传播完,你才能拿到最新的ob...
分类:
其他好文 时间:
2014-07-01 08:56:53
阅读次数:
291
var ivar = [:]
ivar.className // __NSDictionaryI
var i = 1
i.className // error: 'Int' does not have a member named 'className'
If you want to get the type of a primitive, you have to use brid...
分类:
移动开发 时间:
2014-07-01 06:31:12
阅读次数:
234