今天在将项目从虚拟机上移植到真实机器上面的时候,发现问题,总是不成功,最后判断是userspace的程序没有向kernel发送消息成功,因为无法触发kernel的行为,但是userspace显示正常。这个问题好像两个月之前,netlink模块测试的时候遇到过这个问题,当时加上sleep就好了,同样复...
分类:
其他好文 时间:
2015-06-11 01:48:27
阅读次数:
866
重要的一点,就是scrollLeft一直在变化。对象一直在移动,参照物没有动。代码:css:#div1{display:black;width:110px;height:50px;line-height:50px;white-space:nowrap;overflow:hidden;backgrou...
分类:
Web程序 时间:
2015-06-11 01:42:29
阅读次数:
302
Palindrome Number
Determine
whether an integer is a palindrome. Do this without extra space.
Some
hints:
Could negative integers be palindromes? (ie, -1)
If you are thinking of conver...
分类:
编程语言 时间:
2015-06-11 00:14:55
阅读次数:
173
由于数据需求,需要频繁抓取和筛选过滤数据,用了大约7 8个月,在机器上改了下数据,重启,发现“No space left on device”
解决方法:
直接删除日志(简单粗暴):
删除所有的日志:find /var -type f -exec rm -v {} \;(最后的分号也是必须命令的一部分)...
分类:
系统相关 时间:
2015-06-10 22:37:21
阅读次数:
171
Remove Duplicates from Sorted Array
题目:
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.
Do not allocate extra space for...
分类:
其他好文 时间:
2015-06-10 19:32:23
阅读次数:
133
一、Mac下有自带的截图功能新Mac用户根本不必麻烦去寻找截屏软件,默认快捷键是全屏幕截图:Command+Shift+3区域截图:Command+Shift+4随后按 Space(空格) 可以选定窗口截图Mac下屏幕快照快捷键可以自定义设置:系统偏好设置——键盘——键盘快捷键Mac下截图默认保存在...
Sort a linked list in O(n log n) time using constant space complexity.分析:题目要求时间复杂度为O(nlogn),所以一开始想到的就是快速排序,但是快速排序一直AC不了,然后就想到用归并排序,没想到归并排序竟然可以。下面给出详细代码:归并排序需要做的
找到中间点
合并两个排好序的链表
递归实现归并排序
Code(c++):/**...
分类:
其他好文 时间:
2015-06-10 14:15:10
阅读次数:
102
在迁移JMeter到别的机器上时,运行JMeter(我的版本为JMeter2.13)报错如下:
java.lang.OutOfMemoryError: PermGen space
先来了解下,什么是PermGen ?***************************
PermGen space的全称是Permanent Generation space,是指内存的永久...
分类:
编程语言 时间:
2015-06-10 14:13:49
阅读次数:
141
Given a linked list, determine if it has a cycle in it.Follow up:
Can you solve it without using extra space?分析:设置两个临时指针,一个一次走一步,一个一次走两步,如果再次相遇,表示有环。Code(c++):/**
* Definition for singly-linked list....
分类:
其他好文 时间:
2015-06-10 12:22:20
阅读次数:
113
Two elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.Note:A solution using O(n) space is ...
分类:
其他好文 时间:
2015-06-10 06:32:31
阅读次数:
106