首页 > 2015年06月05日 > 全部分享
linux系统缓存机制
1、缓存机制 ? 为了提高文件系统性能,内核利用一部分物理内存分配出缓冲区,用于缓存系统操作和数据文件,当内核收到读写的请求时,内核先去缓存区找是否有请求的数据,有就直接返回,如果没有则通过驱动程序直...
分类:系统服务   时间:2015-06-05 14:06:14    收藏:0  评论:0  赞:0  阅读:277
IOS键盘通知
一.键盘通知 当文本View(如UITextField,UITextView,?UIWebView内的输入框)进入编辑模式成为first responder时,系统会自动显示键盘。成为firstresponder可能由用户点击触发,也可向文本View发送becomeFirstResp...
分类:移动平台   时间:2015-06-05 14:06:04    收藏:0  评论:0  赞:0  阅读:241
Hadoop项目没有日志输出
问题描述:在eclipse下运行hadoop项目,没有输出日志,警告如下,意为没有找到log4j文件。log4j:WARN No appenders could be found for logger (org.apache.hadoop.util.Shell). log4j:WARN Please initialize the log4j system properly. log4j:WARN S...
分类:其他   时间:2015-06-05 14:05:04    收藏:0  评论:0  赞:0  阅读:400
Openwrt 移植hello world
下载openwrt项目源码,参考http://blog.csdn.net/u011641885/article/details/46348267编译交叉工具链:进入工作目录,执行make menuconfig,选择编译交叉工具链,如图保存,退出,执行make V=99 命令,等待编译完成编译之后的交叉工具链是一个压缩包,在工作目录的bin目录下,如图此压缩包需要解压才能使用。(根据需要,可以把解压...
分类:其他   时间:2015-06-05 14:04:54    收藏:0  评论:0  赞:0  阅读:265
manacher算法的实现
manacher算法的解释见 这里。 //求字符串s中最大回文的长度,要求字符串s不包含字符‘#’ int manacher(const string &s) { if (s.size() <= 1) return s.size(); //往s每个字符之间以及s的首尾都插入‘#’ string str(s.size() * 2 + 1, '#'); for (int...
分类:编程语言   时间:2015-06-05 14:04:44    收藏:0  评论:0  赞:0  阅读:258
GraphMatrix::BFS广度优先搜索
查找某一结点的邻居: virtual int firstNbr(int i) { return nextNbr(i, n); } //首个邻接顶点 virtual int nextNbr(int i, int j) //相对于顶点j的下一邻接顶点 { while ((-1 < j) && (!exists(i, --j))); return j; } //逆向线性试探(改用邻接表可提...
分类:其他   时间:2015-06-05 14:04:34    收藏:0  评论:0  赞:0  阅读:240
mysql 相同内容的字段合并为一条的方法
从两个表中内联取出的数据,其中category_name字段有相同内容,想将具有相同内容的字段进行合并,将amount字段进行加法运算,变成下表中的内容 SELECT c.category_name, count(*) AS task_num, sum( t.amount ) AS amount_num FROM cs_witkey_tasks AS t INNER JOIN c...
分类:数据库技术   时间:2015-06-05 14:04:24    收藏:0  评论:0  赞:0  阅读:268
leetcode 19 -- Remove Nth Node From End of List
Remove Nth Node From End of List 题目: Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1->2->3->4->5, and n = 2. After r...
分类:其他   时间:2015-06-05 14:04:14    收藏:0  评论:0  赞:0  阅读:228
leetcode 20 -- Valid Parentheses
Valid Parentheses 题目: Given a string containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[’ and ‘]’, determine if the input string is valid. The brackets must close in the correct order, “()”...
分类:其他   时间:2015-06-05 14:03:54    收藏:0  评论:0  赞:0  阅读:234
iOS中动态计算字符串的长度
在iOS7以下动态算一个string的size的时候可以用sizeWithFont - (CGSize)sizeWithFont:(UIFont *)font   具体应用: CGSize statuseStrSize = [lcsstring sizeWithFont:string.font];   或者 - (CGSize)sizeWithFont:(UIFont *)font co...
分类:移动平台   时间:2015-06-05 14:03:44    收藏:0  评论:0  赞:0  阅读:317
leetcode 21 -- Merge Two Sorted Lists
Merge Two Sorted Lists 题目: Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. 题意: 合并两个排序过的链表 思路:...
分类:其他   时间:2015-06-05 14:03:34    收藏:0  评论:0  赞:0  阅读:131
LightOJ1008---Fibsieve`s Fantabulous Birthday (规律)
Fibsieve had a fantabulous (yes, it’s an actual word) birthday party this year. He had so many gifts that he was actually thinking of not having a party next year.Among these gifts there was an N x N g...
分类:其他   时间:2015-06-05 14:03:24    收藏:0  评论:0  赞:0  阅读:204
hdu 2055 An easy problem (java)
问题: 开始尝试用字符做数组元素,但是并没有用。在判断语句时把a z排出了。 An easy problem Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 16516    Accepted Submission(s...
分类:编程语言   时间:2015-06-05 14:03:14    收藏:0  评论:0  赞:0  阅读:92
烧写Openwrt固件
启动tftp软件,并设置固件所在目录(Current Dircctory)和服务器IP(Service interface),服务器指的是PC机,如图:                                                                                         开发板串口,网口与PC相连,启动开发板进入uboot,选择对应烧写方式...
分类:其他   时间:2015-06-05 14:03:04    收藏:0  评论:0  赞:0  阅读:140
jQuery UI炫酷雨滴落在水面上的波纹涟漪特效
raindrops是一款效果非常炫酷的jQuery UI雨滴落在水面上的特效。该特效模拟水滴从空中落入平静的水面上的效果。通过参数可以设置水面波纹的大小,强度,波纹扩散的速度等等属性。 效果演示:http://www.htmleaf.com/Demo/201506041968.html 下载地址:http://www.htmleaf.com/jQuery/Layout-Interfac...
分类:Web开发   时间:2015-06-05 14:02:44    收藏:0  评论:0  赞:0  阅读:359
js判断指定函数、变量是否存在的方法
js判断函数、变量是否存在的方法...
分类:Web开发   时间:2015-06-05 14:02:34    收藏:0  评论:0  赞:0  阅读:198
java万年历
最近一直在努力补因为ACM而耽误的专业课,o(︶︿︶)o 唉 其实我也很喜欢C语言的。 可惜。。只能一步一步来。 Mycalender: import java.awt.*; public class MycalCalender { public static void main(String[] args) { WindowActionEvent win=new WindowActi...
分类:编程语言   时间:2015-06-05 14:02:24    收藏:0  评论:0  赞:0  阅读:437
屏幕手势向导页面---愿好心人来解决BUG
此Demo有一个奇葩的bug 06-05 12:50:44.955: E/AndroidRuntime(16374): Caused by: android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@41d0c028 is not valid; is you...
分类:其他   时间:2015-06-05 14:02:14    收藏:0  评论:0  赞:0  阅读:201
LightOJ1009---Back to Underworld (bfs染色)
The Vampires and Lykans are fighting each other to death. The war has become so fierce that, none knows who will win. The humans want to know who will survive finally. But humans are afraid of going to...
分类:其他   时间:2015-06-05 14:01:54    收藏:0  评论:0  赞:0  阅读:553
Openwrt 软件安装源
进入http://downloads.openwrt.org/barrier_breaker/14.07/网站找到符合处理器型号的软件源。参考下图: 找到之后编辑/etc/opkg.conf 文件,内容如下:src/gz barrier_breaker_base http://downloads.openwrt.org/barrier_breaker/14.07/ramips/rt305x/pa...
分类:其他   时间:2015-06-05 14:01:44    收藏:0  评论:0  赞:0  阅读:540
2024条   上一页 1 ... 49 50 51 52 53 ... 102 下一页
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!