数据库Table xxx is marked as crashed and should be repaired错误的解决方法服务器断电等原因可能导致数据表损坏,导致访问的时候提示:Table xxx is marked as crashed and should be repaired其中xxx为 ...
分类:
数据库 时间:
2018-01-03 18:33:37
阅读次数:
190
bool查询说明 filter:[],字段的过滤,不参与打分must:[],如果有多个查询,都必须满足【并且】should:[],如果有多个查询,满足一个或者多个都匹配【或者】must_not:[],相反查询词一个都不满足的就匹配【取反,非】 建立测试数据 bool组合查询——最简单的filter过 ...
分类:
编程语言 时间:
2018-01-03 14:05:54
阅读次数:
150
Given a linked list, swap every two adjacent nodes and return its head. For example,Given 1->2->3->4, you should return the list as 2->1->4->3. Your a ...
分类:
其他好文 时间:
2018-01-01 23:39:49
阅读次数:
181
Novig的课实在打击人,我现在觉得我生产的全是垃圾代码。。。 很好奇宁哥他们的代码有没有规范性要求,估计后面也没有多讲究吧。。。 明天仔细研究下他那两个实现吧,然后再研究下标准库,今天有点太晚了。 刚才看到最后发现他很贴心的补充如果你用一长串代码实现了我这两三行代码的功能,don't feel b ...
分类:
其他好文 时间:
2018-01-01 11:36:38
阅读次数:
145
Design a logger system that receive stream of messages along with its timestamps, each message should be printed if and only if it is not printed in t ...
分类:
其他好文 时间:
2018-01-01 11:31:44
阅读次数:
189
由于自己是第一次参加USACO,于是被光荣分到了铜组,这里就放上三道水题的题解吧(代码是比赛时写的,可能有些丑)。 1、Blocked Billboard During long milking sessions, Bessie the cow likes to stare out the wind ...
分类:
其他好文 时间:
2017-12-30 23:34:25
阅读次数:
242
字符数组 的英文名字是 char [] gets()函数的基本用法为:char *gets(char *s); 该函数的参数是一个字符数组,该函数的返回值也是一个字符数组。 linux下的代码如下: 1 #include <stdio.h> 2 3 int main() 4 { 5 char a[1 ...
分类:
系统相关 时间:
2017-12-30 19:59:31
阅读次数:
383
https://reactjs.org/docs/lists-and-keys.html#keys 以下代码运行会报错:Warning: Each child in an array or iterator should have a unique 'key' prop. 改成这样子,就不会了: 结 ...
分类:
其他好文 时间:
2017-12-30 18:13:30
阅读次数:
157
点击事件的分发过程其实是对MotionEvent事件分发过程,当一个MotionEvent产生以后,系统需要把这个事件传递给一个具体的View,而这个传递过程就是分发过程。点击事件的分发由三个重要的方法共同完成:dispatchTouchEvent,onInterceptTOuchEvent,onT ...
分类:
移动开发 时间:
2017-12-29 20:10:13
阅读次数:
273
一些笔记。 strategy : facilitates the switch of the different but related algorithms/behaviors observer proxy : controls the access to the real subject ; s ...
分类:
其他好文 时间:
2017-12-29 15:03:38
阅读次数:
148