现在位置: 首页 > Erronsdog发表的所有文章
  • 06月
  • 20日
综合 ⁄ 共 195字 评论关闭
1、项式比较 数值 < 原子 < 元组 < 字符串 < 列表 如: 123 < '123' area < "area" "abc" < [a, b, c] 2、相等比较 完全相等比较:=:=,例如:42 =:= 42,结果为true, 而 2 =:= 2.0,结果为false。再如:2 == 2.0的结果为true。 不完全相等比较:=/=。 涉及到浮点数的比较时,最好使用<、>、=<或>=进行比较。这些都是算数运算符,他们在必要时会将整数转为浮点数。
阅读全文
  • 04月
  • 16日
综合 ⁄ 共 16504字 评论关闭
.NET Framework 4.5 .NET Framework 3.5 .NET Framework 3.0         11 out of 17 rated this helpful Rate this topic The WPF data templating model provides you with great flexibility to define the presentation of your data. WPF controls have built-in functionality to support the customization of data presentation. This topic first demonstrates how to define a DataTemplate and then introduces other data templating features, such as the selection of templates based on custom logic and t......
阅读全文
  • 07月
  • 30日
综合 ⁄ 共 11935字 评论关闭
from:http://www.cnblogs.com/ello/archive/2012/04/28/2475419.html 浅析人脸检测之Haar分类器方法 由于工作需要,我开始研究人脸检测部分的算法,这期间断断续续地学习Haar分类器的训练以及检测过程,在这里根据各种论文、网络资源的查阅和对代码的理解做一个简单的总结。我试图概括性的给出算法的起源、全貌以及细节的来龙去脉,但是水平有限,只能解其大概,希望对初学者起到帮助,更主要的是对我个人学习的一次提炼。 一、Haar分类器的前世今生 人脸检测属于计算机视觉的范畴,早期人们的主要研究方向是人脸识别,即......
阅读全文
  • 05月
  • 19日
综合 ⁄ 共 55295字 评论关闭
引子... 1 战役背景与战前部署... 1 萨沃岛海战... 3 泰纳鲁河口之战... 7 东所罗门群岛海战... 9 埃斯佩兰斯角海战... 12 机场争夺战... 14 圣克鲁斯群岛海战... 17 瓜岛以北海战... 22 塔萨法隆格海战... 28 日军的撤退... 30 作战简评... 33   引子   瓜达卡纳尔岛(以下简称瓜岛),位于南太平洋所罗门群岛的东南,长145公里,宽40公里,面积约6500平方公里。原是太平洋上一个鲜为人知的岛屿,为了这个岛屿而进行的从1942年8月到1943年2月连续七个月血雨腥风的激烈争夺,在二战历史上写下了浓墨重彩的一章,以太......
阅读全文
  • 05月
  • 17日
综合 ⁄ 共 455字 评论关闭
参看原帖: http://stackoverflow.com/questions/6475727/why-does-static-nsstring-leak 报错信息: objc[4501]: Object 0x6e17060 of class __NSCFString autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[4501]: Object 0x6e12470 of class NSPathStore2 autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug objc[4501]: Object 0x6e12580 of class __NSCFData autoreleased with no pool in place - just leaking - bre......
阅读全文
  • 05月
  • 05日
综合 ⁄ 共 7505字 评论关闭
海量的jQuery插件帖,很经典,不知道什么时候开始流传,很早以前就收藏过,为了工作方便还是发了一份放在日志里面。        其中有些已经无法访问,或许是文件移除,或许是被封锁。大家分享的东西,没什么特别的可说的,唯有感谢无私分享的人们。        提醒大家在使用的时候注意jQuery包的版本问题,最好是使用相同的版本,因为使用了高版本很有可能出现或多或少的问题。并且其中英文插件在转换成中文时注意编码,推荐utf-8。     jQuery插件-文件上传(File upload)    Ajax File Upload.    jQUploader.    Multiple File Uplo......
阅读全文
  • 05月
  • 04日
综合 ⁄ 共 4954字 评论关闭
目前知道三种方式:WinExec,ShellExecute ,CreateProcess,别人已经总结的很好了《vc中调用其他应用程序的方法(函数) winexec,shellexecute ,createprocess》,我全文转载一下,另外后面加点自己的总结(黑体部分,除了标题)。   三个SDK函数: WinExec,ShellExecute ,CreateProcess可以实现调用其他程序的要求,其中以WinExec最为简单,ShellExecute比WinExec灵活一些,CreateProcess最为复杂。   WinExec 两个参数,前一个指定路径,后一个指定显示方式。   ShellExecute 可以指定工作目录,并且还可以寻找文件的关联......
阅读全文
  • 04月
  • 17日
综合 ⁄ 共 3401字 评论关闭
1、指针: 如何分析**ptr:a、*(*ptr)   b、*ptr把ptr当成地址,访问ptr地址的内容 2、malloc:malloc申请的内存空间(即使是在函数内部申请)会一直存在,直到调用free释放 3、linux内核链表 链表数据结构的定义很简单(include/linux/list.h): struct list_head { struct list_head *next, *prev; }; 在Linux内核链表中,需要用链表组织起来的数据通常会包含一个struct list_head成员,例如在[include/linux/netfilter.h]中定义了一个nf_sockopt_ops结构来描述Netfilter为某一协议族准备的getsockopt/setsockopt接口,其......
阅读全文
  • 03月
  • 16日
综合 ⁄ 共 11193字 评论关闭
This article offers an overview of several approaches to load balancing on Web application server clusters. A cluster is a group of servers running a Web application simultaneously, appearing to the world as if it were a single server. To balance server load, the system distributes requests to different nodes within the server cluster, with the goal of optimizing system performance. This results in higher availability and scalability -- necessities in an enterprise, Web-based applicatio......
阅读全文
  • 01月
  • 13日
综合 ⁄ 共 2068字 评论关闭
D. Multiplication Table time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Bizon the Champion isn't just charming, he also is very smart. While some of us were learning the multiplication table, Bizon the Champion had fun in his own manner. Bizon the Champion painted ann × m multiplication table, where the element on the intersection of the i-th row and j-th column equals i·j (the rows and columns of the table are nu......
阅读全文
  • 01月
  • 10日
综合 ⁄ 共 1565字 评论关闭
有时候我们需要软件实现静默安装,但是Android并未提供相应的API,然而我们知道命令行安装android的时候是不会提示用户的,所有要实现这个功能,我们就可以从执行命令行的方式实现。android提供的安装命令是 pm install package ps : pm install /sdcard/android.apk 但是执行这个命令需要前提条件,需要是系统级应用或者具有ROOT权限。我们先介绍通过ROOT权限的方式执行。 1,通过获取ROOT权限静默安装APK 看代码: new Thread() { public void run() { Process process = null; OutputStream out = null; In......
阅读全文
  • 11月
  • 27日
综合 ⁄ 共 5880字 评论关闭
近工作中需要用到FLASH,开发框架中又是以PureMVC为主。MVC是有了解,但是PureMVC这个之前则是从没接触过。那就学呗~~       说学就学,可是第一步就让我感觉很费事~~(哎~菜鸟当久了)。要开始学,得先下个PureMVC框架装上吧。找了半天PureMVC框架,下载下来后,发现是一个压缩包,大小只有几百K(心存怀疑,怎么这么小呀)。解压之后,根据惯性开始寻找一个类似Setup的东东。狂汗,就是找不到这个东西。这下我认定刚才下错东西了。于是,在网上又是一阵狂搜,结果证明自己没下错。-_-!!!      下载链接:http://trac.puremvc.or......
阅读全文