首页 > 其他
从 TWAIN 设备中扫描图像
转自(http://yonsm.net/scan-images-from-a-twain-device/)一、简介TWAIN 数据源管理程序 (DSM) 工业标准的软件库,用于从静态图像设备提取图像。绝大部分的扫描仪和数码相机都提供了 TWAIN 驱动程序,利用统一的 TWAIN 接口,应用程序可以...
分类:其他   时间:2015-12-09 18:47:41    收藏:0  评论:0  赞:0  阅读:163
Valid Anagram
Given two stringssandt, write a function to determine iftis an anagram ofs.For example,s= "anagram",t= "nagaram", return true.s= "rat",t= "car", retur...
分类:其他   时间:2015-12-09 17:26:51    收藏:0  评论:0  赞:0  阅读:280
划分分区GPT11
umount /dev/sda1 /data1umount /dev/sdb1 /data2mount /dev/sdb1 /data1umount /dev/sdb2 /data3umount /dev/sdb3 /data4因为fdisk不支持GPT格式。我们用parted工具分区关于磁盘和分区...
分类:其他   时间:2015-12-09 17:25:41    收藏:0  评论:0  赞:0  阅读:189
【APUE】Chapter15 Interprocess Communication
15.1 Introduction 这部分太多概念我不了解。只看懂了最后一段,进程间通信(IPC)内容被组织成了三个部分: (1)classical IPC : pipes, FIFOs, message queues, semaphores, and shared memory (2)net...
分类:其他   时间:2015-12-09 17:25:21    收藏:0  评论:0  赞:0  阅读:317
滑动返回的幸福指数
滑动返回的幸福指数# 好的 滑动返回 兼容设计 需要解决的 问题* 需要确保操作的唯一性 , 以促成用户的记忆固化并成为习惯性操作 * 实际上 , 往往都会有其他的滑动操作互相混淆 , 导致用户习惯无法形成 * 对滑动返回的执念意味着要牺牲其他的滑动操作 , 比如滑动切换 Tab , 滑动呼出抽屉#...
分类:其他   时间:2015-12-09 17:24:01    收藏:0  评论:0  赞:0  阅读:73
Add Digits
Given a non-negative integernum, repeatedly add all its digits until the result has only one digit.For example:Givennum = 38, the process is like:3 + ...
分类:其他   时间:2015-12-09 17:23:02    收藏:0  评论:0  赞:0  阅读:199
bat中的连接符
& [...] command1 & command2 用来分隔一个命令行中的多个命令。Cmd.exe 运行第一个命令,然后运行第二个命令。&& [...] command1 && command2 只有在符号 && 前面的命令成功时,才用于运行该符号后面的命令。Cmd.exe 运行第一个命令,然后...
分类:其他   时间:2015-12-09 17:22:51    收藏:0  评论:0  赞:0  阅读:97
面向XX编程
[一篮饭特稀原创,转载请注明出自http://www.cnblogs.com/wanghafan/p/5033186.html]基于面向XX编程的个人理解面向过程编程 Procedure Oriented Programming(POP)实现目的:分析出解决问题所需要的步骤,然后用函数把这些步骤一步...
分类:其他   时间:2015-12-09 17:22:31    收藏:0  评论:0  赞:0  阅读:225
游标-批量修改数据
--批量修改表中数据DECLARE My_Cursor CURSOR --定义游标FOR (select * from table where id='**') --查出需要的集合放到游标中OPEN My_Cursor; --打开游标FETCH NEXT FROM My_Cursor ; --读取....
分类:其他   时间:2015-12-09 17:22:11    收藏:0  评论:0  赞:0  阅读:100
关于面向对象“多态”的理解
谈到多态肯定是和继承结合在一起的,本质是子类通过覆盖或重载(覆重)父类的方法,来使得对同一类对象同一方法的调用产生不同的结果。需要辨析的地方即:同一类对象指的是继承层级再上一层的对象,更加泛化。实际采用多态的时候有四种情况:父类有部分public的方法是不需要,也不允许子类覆重父类有一些特别的方法是...
分类:其他   时间:2015-12-09 17:22:01    收藏:0  评论:0  赞:0  阅读:191
select的5中子句where,group by, havaing, order by, limit的使用顺序及实例
--语法:SELECT select_list FROM table_name [ WHERE search_condition ] [ GROUP BY group_by_expression ] [ HAVING search_condition ] [ ORDER BY ...
分类:其他   时间:2015-12-09 17:21:51    收藏:0  评论:0  赞:0  阅读:100
Code First 延迟装入特性
使用ORM框架,基本上都会添加“延迟装入”的特性支持,当使用Entity Framwork 的objectContext与DbContext操作数据时,默认都使用“延迟装入”,也就是当我们在应用程序里通过Linq to Entity查询数据时,如果遇到关联数据尚未装入时,Entity Framwor...
分类:其他   时间:2015-12-09 17:21:41    收藏:0  评论:0  赞:0  阅读:199
常用小方法 or 语法
-->获取外部文件 def groovyUtils = new GroovyUtils( context ) def xmlFilePath = groovyUtils.getProjectPath()+"\\TestData\\properties.xml"-->获取当前环境 def act...
分类:其他   时间:2015-12-09 17:20:51    收藏:0  评论:0  赞:0  阅读:83
简单自定义UIToolBar
let item1 = UIBarButtonItem(title: "分享", style: .Plain, target: self, action: nil) let item2 = UIBarButtonItem(barButtonSystemItem: .Pause, ta...
分类:其他   时间:2015-12-09 17:20:41    收藏:0  评论:0  赞:0  阅读:125
Same Tree
/*** Definition for a binary tree node.* struct TreeNode {* int val;* TreeNode *left;* TreeNode *right;* TreeNode(int x) : val(x), left(NULL), right(N...
分类:其他   时间:2015-12-09 17:20:01    收藏:0  评论:0  赞:0  阅读:138
Relativelayout属性
// 相对于给定ID控件 android:layout_above 将该控件的底部置于给定ID的控件之上; android:layout_below 将该控件的底部置于给定ID的控件之下; android:layout_toLeftOf 将该控件的右边缘与给定ID的控件左边缘对齐; android:...
分类:其他   时间:2015-12-09 17:19:31    收藏:0  评论:0  赞:0  阅读:204
Delete Node in a Linked List
Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.Supposed the linked list is1 -> 2 -> 3 -> ...
分类:其他   时间:2015-12-09 17:19:21    收藏:0  评论:0  赞:0  阅读:90
[转] 填石头——时间管理
转自:http://javatar.iteye.com/blog/376387在网上看到一篇时间管理的故事,好像以前在哪看过,翻出来一对比,同样的故事,得出的结论居然不一样,故事很简单,一个讲时间管理的老师用石头把瓶子填满了,问同学们是否满了,然后再用小石子,沙子,水进一步填满。第一种结论:时间总是...
分类:其他   时间:2015-12-09 17:19:01    收藏:0  评论:0  赞:0  阅读:194
LeetCode - Longest Palindromic Substring
题目:Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique lon...
分类:其他   时间:2015-12-09 17:17:41    收藏:0  评论:0  赞:0  阅读:193
方差学习总结
在分析之前,要严格区分一个概念是在概率学上的定义还是在统计学上的定义。概率学比统计学更加的抽象一点,概率学研究一个事件的理想的情况,但是在真实的世界,这种理想的情况是很难或者不可能达到的,所以利用统计学中的样本来估计这个理想的结果。方差的概念和定义概率论中方差用来度量随机变量和其数学期望(均值)之间...
分类:其他   时间:2015-12-09 17:17:01    收藏:0  评论:0  赞:0  阅读:82
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!