码迷,mamicode.com
首页 > 2015年03月21日 > 全部分享
字符设备之异步通信
基于字符设备驱动之中断按键来进行分析字符设备驱动的另一种技巧:异步通知--一种可以让驱动程序变的很主动的方法 一、目标: 按键按下时,驱动层序主动通知应用程序有数据可读,这样就不用应用程序老是自己主动去读数据,专心做自己的事,该来的不用去请都会自己送上门来,瞬间就高大上起来啦 要思考的问题: ①注册信号处理函数 ②谁发信号?内核驱动 ③发给谁?APP。前提是App要告诉驱动它的PID ...
分类:其他好文   时间:2015-03-21 12:44:19    阅读次数:121
【LeetCode】【C++】Wildcard Matching
题目‘?’ Matches any single character. ‘*’ Matches any sequence of characters (including the empty sequence).The matching should cover the entire input string (not partial).The function prototype should...
分类:编程语言   时间:2015-03-21 12:43:07    阅读次数:190
sqlite 中的query操作
query()方法实际上是把select语句拆分成了若干个组成部分,然后作为方法的输入参数: SQLiteDatabase db = databaseHelper.getWritableDatabase(); Cursor cursor = db.query("person", new String[]{"personid,name,age"}, "name like ?", new Stri...
分类:数据库   时间:2015-03-21 12:43:47    阅读次数:170
第四章SignalR自托管主机
第四章SignalR自托管主机          SignalR服务器通常在IIS的Asp.Net应用程序上承载,但它也可以使用自托管库来作为自托管的主机来运行(就像控制台应用程序或Windows服务那样)与Signal2.0一样,自托管库是基于.Net开放式Web接口(OWIN)来构建的。OWIN定义了.Net Web服务器和Web应用程序之间的抽象接口,将Web应用程序从服务器上解耦,使得O...
分类:其他好文   时间:2015-03-21 12:41:18    阅读次数:172
一次因为数据问题引起的reduce被卡住streaming作业问题排查
广告产品技术部有一个作业总是卡在某个reduce上,运行了好几个小时也运行不完,经过他们初步排查找不着问题原因,发邮件让我帮看看,我看了一下这个streaming作业是用python实现的,而且听他们描述,3月17之前该作业是没问题的,以下是可能存在问题的地方:...
分类:其他好文   时间:2015-03-21 12:42:36    阅读次数:150
LeetCode-Atoi
Implement atoi to convert a string to an integer. 具体的网上已经有很多解法 这里主要就是注意一些地方(最重要的就是返回值一开始最好赋值成为long long 因为有可能会越界) 然后就是一些特殊情况的分析了 class Solution { public: int atoi(string str) { i...
分类:其他好文   时间:2015-03-21 12:40:46    阅读次数:153
HDWiki数据库结构说明
以下标有“A”的表示该列为自增列,标有“P”的表示该列为主码,标有“I”的表示该列为索引列,标有“U”的表示该列为唯一列,标有“F”的表示全文搜索。wiki_attachment 词条附件表词条附件表字段 类型 属性 可以为空 默认 额外 含义id mediumint(8) UNSIGNED 否 AP 附件的IDdid mediumint(8) UNSIGNED 否 0 I 附件所在词条的IDti...
分类:数据库   时间:2015-03-21 12:42:48    阅读次数:262
js制作动态创建table行与修改等编辑表单功能特效
"text/javascript"> //Create TR var nName = new Array("Tony","Mika","Neo","Oi","Kim","Park","Mr Lee","Tasky","Saco","Novel"); var nSex = new Array("男性","女性","保密"); var i = 1; function CreateTB(){ ...
分类:Web程序   时间:2015-03-21 12:41:37    阅读次数:218
Leetcode: 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 removing the second node from the end, the linked...
分类:其他好文   时间:2015-03-21 12:41:53    阅读次数:115
【LeetCode】Recover Binary Search Tree 解题报告
【题目】 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 pretty straight forward. Could...
分类:其他好文   时间:2015-03-21 12:42:54    阅读次数:129
【spring教程之五】spring通过存取方法注入
1、通过在xml中配置,并且通过bean的存取方法进行注入。 2、bean类 package com.test.pro; public class Singer { public int getAge() { return age; } public void setAge(int age) { this.age = age; ...
分类:编程语言   时间:2015-03-21 12:42:00    阅读次数:202
Unique Binary Search Trees
问题来源:https://leetcode.com/problems/unique-binary-search-trees//** * * * ClassName UniqueBinarySearchTrees * * * Description Given n, how many structurally unique BST's (binary searc...
分类:其他好文   时间:2015-03-21 12:40:04    阅读次数:135
LeetCode Spiral Matrix II
Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. For example, Given n = 3, You should return the following matrix: [ [ 1, 2, 3 ], [ 8, 9, 4 ], [...
分类:其他好文   时间:2015-03-21 12:41:11    阅读次数:105
可变类与不可变类的区别
可变类与不可变类的区别 所谓不可变类: 是指当创建了这个类的实例后,就不允许修改它的属性值。在JDK的基本类库中,所有基本类型的包装类,如Integer和Long类,都是不可变类,java.lang.String也是不可变类。 不可变类: 当你获得这个类的一个实例引用时,你不可以改变这个实例的内容。...
分类:其他好文   时间:2015-03-21 12:39:11    阅读次数:179
matlab小函数与R的比较
http://www.cnblogs.com/wentingtu/archive/2012/03/30/2425582.htmlR函数比较齐全的博客求余y = 5 ; x = 2; y%%x = 1;matlab mod(y,x);R y%%x;取行数matlab size(m,1);R ...
分类:其他好文   时间:2015-03-21 12:41:46    阅读次数:151
四则运算程序演变3
题目:在此前四则运算题目的基础上,增加用户可以输入答案并由系统进行判断,统计正确错误题数。思路:在每一个输出的题目后,让用户开始输入答案,直接进行判断,然后累加。程序代码: 1 #include 2 #include 3 #include 4 #include 5 void main()...
分类:其他好文   时间:2015-03-21 12:39:57    阅读次数:159
sql调用内容页面
{dede:sql sql="select content from `gl_arctype` where id =6"} [field:content function=cn_substr(Html2Text(@me),720)/] {/dede:sql}
分类:数据库   时间:2015-03-21 12:39:53    阅读次数:131
1397条   上一页 1 ... 52 53 54 55 56 57 58 ... 83 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!