现在位置: 首页 > ltq1203发表的所有文章
  • 12月
  • 14日
综合 ⁄ 共 331字 评论关闭
void *Mymemcpy(void * pDest,const void *pSrc,unsigned int size) { assert(pDest!=NULL && pSrc!=NULL); unsigned char *tmpD = (unsigned char*)pDest; unsigned char *tmpS = (unsigned char*)pSrc; int i=0; if (tmpD<pSrc) { while(i<size) { *tmpD++ = *tmpS++; ++i; } } else { size--; tmpD +=size ; tmpS +=size ; while (size>=0) { *tmpD-- = *tmpS--; --size; } } return pDest; } 要防止pdest和psrc所指的空间有重叠
阅读全文
  • 05月
  • 11日
综合 ⁄ 共 464字 评论关闭
1、安装 node.js和npm node.js去官网下载http://nodejs.org/一键安装即可 现在的版本安装后npm也会带上 npm命令说明 npm help:查询可用的命令 npm help command :如:npm help list ,查询具体指令的用法。 npm list: 列出已经安装的插件 npm show express:列出express插件信息 npm install(npm install -d):安装插件 npm update:升级插件 npm update express:升级指定插件 npm uninstall express:卸载插件 2、安装express npm install express -gd #-g代表安装到NODE_PATH的lib里面,而-d代表把相依性套件也一起安装。 测......
阅读全文
  • 05月
  • 04日
综合 ⁄ 共 1859字 评论关闭
 http://51xingfu.blog.51cto.com/219185/58662 asp.net操作Excel是B/S架构开发报表中经常遇到的,现对常见操作总结如下:       DataGrid输出到Excel并进行格式化处理 用Xml2OleDb将XML文件插入到数据库 在C#中利用Excel做高级报表 在ASP.NET中将数据直接输出成Excel内容 在.NET环境下将报表导出Excel和Word 将DataGrid输出到Excel文件 把Excel文件中的数据读入到DataGrid中 Other 关于asp.net导出Excel [url]http://www.cnblogs.com/caizinet/archive/2005/05/11/152908.aspx[/url] ASP.NET & Excel [url]http://www.cnblog......
阅读全文
  • 05月
  • 04日
综合 ⁄ 共 12169字 评论关闭
由于工作需要,我开始研究人脸检测部分的算法,这期间断断续续地学习Haar分类器的训练以及检测过程,在这里根据各种论文、网络资源的查阅和对代码的理解做一个简单的总结。我试图概括性的给出算法的起源、全貌以及细节的来龙去脉,但是水平有限,只能解其大概,希望对初学者起到帮助,更主要的是对我个人学习的一次提炼。 一、Haar分类器的前世今生 人脸检测属于计算机视觉的范畴,早期人们的主要研究方向是人脸识别,即根据人脸来识别人物的身份,后来在复杂背景下的人脸检测需求越来越大,人脸检测也逐渐作为一个单独的研究方向......
阅读全文
  • 05月
  • 02日
综合 ⁄ 共 1711字 评论关闭
 B. Caisa and Pylons time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Caisa solved the problem with the sugar and now he is on the way back to home. Caisa is playing a mobile game during his path. There are (n + 1) pylons numbered from 0 to n in this game. The pylon with number 0has zero height, the pylon with number i (i > 0) has height hi. The goal of the game is to reach n-th pylon, and the only move the p......
阅读全文
  • 04月
  • 24日
综合 ⁄ 共 3711字 评论关闭
The Wall is a massive wall over 700 feet high and is made of ice, stretching 300 miles across the northern border of the Seven Kingdoms, separating it from the wild lands beyond. Appearing as one of the nine Wonders Made by Man in the book by Lomas Longstrider, the Wall is defended and held by the Sworn Brothers of the Night's Watch, who patrol and guard the castles from the Frostfangs mountain range in the west to the Bay of Seals in the east. (c) A Wiki of Ice and Fire Winter is c......
阅读全文
  • 03月
  • 30日
综合 ⁄ 共 995字 评论关闭
假设 Widget 类定义是我们不能修改的类型: class Widget { public: Widget(int arg, int i = -1) { } .... }; 现在要通过 Create 函数来组一个统一的接口构造对象包括Widget对象和其他对象: template <class T, class U> T* Create(const U& arg) { return new T(arg); } 如何特化Create() ,使它能够独特处理Widget,简单方案是写出一个 CreateWidget() 来专门处理,那么不能达到我们统一接口 Create() 的目的。 因为无法偏特化一个函数,则无法写出下面代码: // illegal code, 无法偏特化......
阅读全文
  • 03月
  • 22日
综合 ⁄ 共 5131字 评论关闭
前面说到了urllib2的简单入门,下面整理了一部分urllib2的使用细节。 1.Proxy 的设置 urllib2 默认会使用环境变量 http_proxy 来设置 HTTP Proxy。 如果想在程序中明确控制 Proxy 而不受环境变量的影响,可以使用代理。 新建test14来实现一个简单的代理Demo: [python] view plaincopy import urllib2   enable_proxy = True   proxy_handler = urllib2.ProxyHandler({"http" : 'http://some-proxy.com:8080'})   null_proxy_handler = urllib2.ProxyHandler({})   if enable_proxy:       opener = urll......
阅读全文
如何进行电脑远程监控,是我们每个网络管理员或者网络工作者经常遇到的问题。我们一般会采用花生壳工具+带花生壳DDNS服务的路由器+系统远程桌面来进行远程监控操作。下面是具体的远程监控图文教程。 1. 注册花生壳护照与域名         上花生壳官方网站http://www.oray.com/passport/register.php注册护照。注册护照成功后,域名会自动赠送一个已 激活花生壳服务的后缀为.gicp.net的免费域名。当然,我们也可以另外去进行注册其他后缀的免费域名点击站点上的玉米酷选择注册域名,查询需要注册 的域名进行注册,并且激活花生壳服务。......
阅读全文
  • 02月
  • 17日
综合 ⁄ 共 2076字 评论关闭
1:需要一个辅助类      package com.dspsemi.im.receiver; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; public class DatabaseHelper extends SQLiteOpenHelper {     private static final String DB_NAME = "friend.db";     private static final String TBL_NAME = "friends";     public final static String CREATE_TBL = "create table friends( name var......
阅读全文
  • 02月
  • 14日
综合 ⁄ 共 546字 评论关闭
所有如下产品的在线演示,对于用户信息都有严格的加密; 尽管如此,我们还是要提醒您在试用演示版时,尽量用一些不常用的账号信息 如果您想在自己公司内部使用,可以自行下载也可以联系我qq112908676 1. 社区类 演示地址:http://222.73.130.227:8020/bbs/index.jsp 简介:http://blog.csdn.net/tiplip/article/details/10980397 2. 地图类 演示地址:http://222.73.130.227:8040/map.htm 简介:http://blog.csdn.net/tiplip/article/details/14229307 3. 即时通讯类 演示地址:http://222.73.130.227:8080/index.html 简介:ht......
阅读全文
  • 02月
  • 06日
综合 ⁄ 共 12469字 评论关闭
四、符号引用(Symbol Reference) 4.1.类(Classes) 4.1.1.TComponentAccess类   TComponentAccess = class(TComponent)4.1.1.1.ComponentState  property ComponentState;4.1.1.2.SetComponentState  procedure SetComponentState(const AState: TComponentState);4.1.2.TNativeXml类  TNativeXml = class(TPersistent)   TNativeXml是XML文件的载体。创建一个TNativeXml,然后使用方法LoadFromFile、LoadFromStream或ReadFromString加载XML文档到内存中。或者从头开始使用Root.NodeNew添加节点,并最终SaveToFile和SaveT......
阅读全文