什么是Address Sanitizer?
AddressSanitizer is a fast memory error detector. It consists of a compiler instrumentation module and a run-time library. The tool can detect the following types of bugs:
Out-...
分类:
其他好文 时间:
2016-05-07 08:36:29
阅读次数:
152
Given a linked list, determine if it has a cycle in it.
Follow up:
Can you solve it without using extra space?
1. 首先解决的问题是 判断单链表 有没有环?
解题思路:
两个指针slow 和 fast,开始都指向 head, slow指针每次走一步,fast 指...
分类:
其他好文 时间:
2016-05-06 15:28:03
阅读次数:
224
这次简单说说游标的分类。
先看看通常游标的语法
DECLARE cursor_name CURSOR [ LOCAL :局部游标,仅在当前会话有效 | GLOBAL : 全局游标,全局有效,可以 ]
[ FORWARD_ONLY :只能向前游标,读取游标时只能使用 Next 谓词 | SCROLL :滚动游标,FIRST、LAST、PRIOR...
分类:
数据库 时间:
2016-05-06 15:14:28
阅读次数:
1196
【问题描述】
Fast-food restaurant problem: Design, implement and test a solution for
the IPC problem specified below. Suppose we have the following scenario:
? 50 customers successively come to a fast-...
分类:
编程语言 时间:
2016-05-05 22:43:56
阅读次数:
333
tools
zsh
为啥需要zsh,因为能更快更方便的进行代码提示与代码补全,每个人的精力都是有限的,能打一个字母出来结果就绝对不打第二个。
plugins=(git brew mvn svn svn-fast-info sbt go pip zsh-syntax-highlighting npm) vim
vim是大二学操作系统的时候看老师折腾红帽的时候看到的,发现这个编辑器很有b格,而且花...
分类:
系统相关 时间:
2016-05-03 18:44:51
阅读次数:
366
今天做一个网站刚好要用到背景动画效果; 开始自己$(this).animate({"background-position": "0 0"}, "fast")这样写了但发现没有效果; 然后在网上找了一下解决方法、解决方法如下: 调用了上面的代码,然后$(this).animate({"backgro ...
分类:
Web程序 时间:
2016-05-03 14:31:10
阅读次数:
152
.animate(params, [duration], [easing], [callback]) params: 结果样式属性 duration: 动画时长 也可以用 slow normal fast easing: 默认jQuery提供"linear" 和 "swing" callback: ...
分类:
其他好文 时间:
2016-05-03 10:33:05
阅读次数:
204
参考文献 1.http://www.linuxidc.com/Linux/2012-04/58985.htm 2.http://ihower.tw/blog/archives/2620 3.http://hi.baidu.com/lettoo/blog/item/e2e7f30fec72bdf6ab ...
分类:
其他好文 时间:
2016-04-30 16:52:34
阅读次数:
489
用Redis bitmap统计活跃用户、留存 用Redis bitmap统计活跃用户、留存 Spool的开发者博客,描述了Spool利用Redis的bitmaps相关的操作,进行网站活跃用户统计工作。 原文:http://blog.getspool.com/2011/11/29/fast-easy- ...
分类:
其他好文 时间:
2016-04-30 12:58:06
阅读次数:
135