官方demo见
https://github.com/square/otto注意自己该编译版本为2.3以上,默认的1.6不支持match_parent属性,导致布局文件出错。另外需要手动添加android-support-v4和otto到自己的libs文件夹。主要代码逻辑:1,在主页面点clear按...
分类:
移动开发 时间:
2014-05-16 19:19:36
阅读次数:
334
To speed up bulk loading of data, InnoDB
implements aninsert buffer, a special index in the InnoDB system tablespace that
buffers modifications to sec...
分类:
数据库 时间:
2014-05-16 18:26:09
阅读次数:
532
题目: Given a linked list, determine if it has a
cycle in it. Follow up: Can you solve it without using extra space?解题思路:
使用快慢指针,快指针每次走两步,慢指针每次走一步...
分类:
其他好文 时间:
2014-05-16 05:19:21
阅读次数:
271
题目: Given a linked list, return the node where the
cycle begins. If there is no cycle, returnnull. Follow up: Can you solve it
without using extr...
分类:
其他好文 时间:
2014-05-16 04:50:13
阅读次数:
329
LeetCode-001 Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to the target, where index1 must be less than index2...
分类:
其他好文 时间:
2014-05-15 04:34:50
阅读次数:
293
1. Check the /boot partition size to decide if need clean up
$ df
2. Check the current used Linux kernel
$ uname -r
3. Check all Linux kernel to decide which ones to be removed
$ ls /boot...
分类:
其他好文 时间:
2014-05-15 03:24:16
阅读次数:
235
Linked List CycleGiven a linked list, determine
if it has a cycle in it.Follow up:Can you solve it without using extra
space?做完Linked List Cycle II在做这...
分类:
其他好文 时间:
2014-05-14 23:30:00
阅读次数:
399
对于很多新手,当然我也是新手,在命令行里学习python的时候占满了屏幕,很不习惯,特别是使用linux习惯了,使用clear清屏,这样的感觉非常好,但是python下面没有这样的命令和功能,下面为了解决这个问题,本人写了个简单的模块1先来看下没有清屏的结果[root@zh~]#python
Pyth..
分类:
编程语言 时间:
2014-05-14 16:04:24
阅读次数:
1320
第一种:使用命令修改(直接即时生效,重启失效)#ifconfig eth0
192.168.0.1 netmask 255.255.255.0
up说明:eth0是第一个网卡,其他依次为eth1,eth*192.168.0.1是给网卡配置的第一个网卡配置的ip地址netmask
255.255.25...
分类:
系统相关 时间:
2014-05-14 09:09:43
阅读次数:
428
1. 空div1
.clear{height:0;clear:both;overflow:hidden;}就是直接一个(当然标签也可以是br、p,class名称也可以自由定义)当作最后一个子标签放到父标签那儿,此方法屡试不爽,兼容性强,使用方便,是初学时使用的上佳之选。但是同时也看到了巨大的浪费,....
分类:
Web程序 时间:
2014-05-14 09:02:32
阅读次数:
348