其他好文[总排行] [月排行] [周排行] [日排行]
本文揭示了如何使用CFFTP API的一些基本特性。管理FTP事务是异步执行的,而管理文件传输是同步实现的。 下载文件 使用CFFTP类似于CFHTTP 因为它们都是基于CFStream。与其他任何异步使用CFStream的API,使用CFFTP下载一个文件要求你为文件创建一个读取流和一个回调函数。当读取流接收数据时,回调函数将运行,你需要适当的下载字节。这个过程通常执行两个函数:一个用来...
分类:其他好文 时间:2015-01-30 09:12:02 阅读:238
本文主要讲解将CNN应用于人脸识别的流程,程序基于python+numpy+theano+PIL开发,采用类似LeNet5的CNN模型,应用于olivettifaces人脸数据库,实现人脸识别的功能,模型的误差降到了5%以下。本程序只是个人学习过程的一个toy implement,模型可能存在overfitting,因为样本小,这一点也无从验证。 但是,本文意在理清程序开发CNN模型的具体步骤,特别是针对图像识别,从拿到图像数据库,到实现一个针对这个图像数据库的CNN模型,我觉得本文对这些流程的实现具有参考...
分类:其他好文 时间:2015-01-30 09:13:55 阅读:452
新建窗体 拖一个Gridcontrol 添加两列 col1,col2 public partial class XtraForm2 : DevExpress.XtraEditors.XtraForm { public XtraForm2() { InitializeComponent(); } pr...
分类:其他好文 时间:2015-01-30 09:13:12 阅读:835
CUDA编程模型详解 本文以vectorAdd为例,通过描述C在CUDA中的使用(vectorAdd这个例子可以在CUDA sample中找到。)来介绍CUDA编程模型的主要概念。CUDA C的进一步描述可以参考《Programming Interface》。 主要内容包括: 1、Kernels(核函数) 2、Thread Hierarchy(线程结构) 3、Memory Hierarc...
分类:其他好文 时间:2015-01-30 09:11:27 阅读:165
Problem Description 话说,经过了漫长的一个多月,小明已经成长了许多,所以他改了一个名字叫“大明”。 这时他已经不是那个只会做100以内加法的那个“小明”了,现在他甚至会任意长度的正小数的加法。 现在,给你两个正的小数A和B,你的任务是代表大明计算出A+B的值。 Input 本题目包含多组测试数据,请处理到文件结束。 每一组测试数据在一行里面包含两...
分类:其他好文 时间:2015-01-30 09:11:28 阅读:148
#pragma once #include #include using namespace std; struct TreeNode { int val; TreeNode *left; TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) {} }; bool isSameTree(TreeNode...
分类:其他好文 时间:2015-01-30 09:11:06 阅读:214
Given an array of integers,every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement itwithout using extra m...
分类:其他好文 时间:2015-01-30 09:10:45 阅读:247
Given a binary tree, findits maximum depth. The maximum depth is thenumber of nodes along the longest path from the root node down to the farthestleaf node.   可用递归,效率低。 这里用类似层次遍历的算法。设置一个队列和两个int变量...
分类:其他好文 时间:2015-01-30 09:10:56 阅读:261
Related toquestion Excel Sheet Column Title Given a columntitle as appear in an Excel sheet, return its corresponding column number. For example:     A-> 1     B-> 2     C-> 3    ...     Z-> ...
分类:其他好文 时间:2015-01-30 09:10:45 阅读:205
Say you have an array for which the ith element isthe price of a given stock on day i. Design an algorithm to find the maximum profit. You may complete as manytransactions as you like (ie, buy one an...
分类:其他好文 时间:2015-01-30 09:11:13 阅读:176
1125703125704125705148452
上一页1484515下一页
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!