上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 303 下一页
摘要: @@@模式定义: 提供一种方法顺序访问一个聚合对象中的各个元素,而又不需暴露该对象的内部表示。 @@@练习示例: 工资表数据的整合 @@@示例代码: \pattern\PayModel.java ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~package pattern;/** * 工资描述模型对象 */public class PayModel { /** * 支付工资的人员 */ private String userName; /** * 支付工资的数额 */ private double pay; publ... 阅读全文
posted @ 2013-07-22 20:10 xinyuyuanm 阅读(208) 评论(0) 推荐(0) 编辑
摘要: Comparing the Contents of Two TablesA表和B表。拥有一致列,C2一列内容不同。I have two tables named A and B. They have identical columns and have the same number of rows via select count(*) from A and from B. However, the content in one of the rows is different, as shown in the following query:SQL> select * from A 阅读全文
posted @ 2013-07-22 20:07 xinyuyuanm 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 关注Android的时候,有一些CPU架构方面的术语知识,主要有:ARM、X86/Atom、MIPS、PowerPC1)ARM/MIPS/PowerPC均是基于精简指令集(RISC,Reduced Instruction Set Computing)机器处理器的架构;2)X86则是基于复杂指令集(CISC,Complex Instruction Set Computer)的架构,Atom是x86或者是x86指令集的精简版。其中,ARM在智能手机、平板上一枝独秀根据各种新闻,Android在支持各种处理器的现状:1)ARM+Android 最早发展、完善的支持,主要在手机市场、上网本、智能等市场 阅读全文
posted @ 2013-07-22 20:06 xinyuyuanm 阅读(1184) 评论(0) 推荐(0) 编辑
摘要: 前段时间为了做项目调研,写了一些测试API的例子。这些API主要涉及这些模块: BusinessUnit, User, Role。把它分享出来,希望对大家的工作有所帮助。APIsNoModule NameNameComments1BusinessUnitGetBUsRetrieve all of Bus in current CRM system.2DisableBUDisable BU entry3EnableBUEnable BU entry4DeleteBUDelete BU entry5ChangeParentBUChange BU entry’s parent6RoleGetRol. 阅读全文
posted @ 2013-07-22 20:04 xinyuyuanm 阅读(532) 评论(0) 推荐(0) 编辑
摘要: Generator函数的定义与普通函数的定义没有什么区别,只是在函数体内使用yield生成数据项即可。Generator函数可以被for循环遍历,而且可以通过next()方法获得yield生成的数据项。def func(n): for i in range(n): yield ifor i in func(3): print ir=func(3)print r.next()print r.next()print r.next()print r.next() 0 1 2 0 1 2 Traceback (most recent call last): File "generat... 阅读全文
posted @ 2013-07-22 20:03 xinyuyuanm 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 一、缺省模板参数回顾前面的文章,都是自己管理stack的内存,无论是链栈还是数组栈,能否借助标准模板容器管理呢?答案是肯定的,只需要多传一个模板参数即可,而且模板参数还可以是缺省的,如下: template > class Stack { … private:CONTc_; }; 如果没有传第二个参数,默认为deque 双端队列,当然我们也可以传递std::vector下面程序借助标准模板容器管理内存来实现stack模板类: Stack.h: C++ Code 1 2 3 4 5 ... 阅读全文
posted @ 2013-07-22 20:01 xinyuyuanm 阅读(507) 评论(0) 推荐(0) 编辑
摘要: 代码:#include "stdafx.h"#include using namespace std;struct ListNode{ int m_nValue; ListNode *m_pNext;};ListNode *ReverseList(ListNode *pListHead){ if (pListHead == NULL) { return NULL; } ListNode *pReverseHead = NULL; ListNode *pPre = NULL; ListNode *pNode = pListHead; ListNode *pNext = NUL 阅读全文
posted @ 2013-07-22 19:59 xinyuyuanm 阅读(210) 评论(0) 推荐(0) 编辑
摘要: DA就是“Denoising Autoencoders”的缩写。继续给yusugomori做注释,边注释边学习。看了一些DA的材料,基本上都在前面“转载”了。学习中间总有个疑问:DA和RBM到底啥区别?(别笑,我不是“学院派”的看Deep Learning理论,如果“顺次”看下来,可能不会有这个问题),现在了解的差不多了,详情见:【deep learning学习笔记】Autoencoder。之后,又有个疑问,DA具体的权重更新公式是怎么推导出来的?我知道是BP算法,不过具体公示的推导、偏导数的求解,没有看到哪个材料有具体的公式,所以姑且认为yusugomori的代码写的是正确的。 注释后的头文 阅读全文
posted @ 2013-07-22 19:55 xinyuyuanm 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 辅助函数和构造函数。#include #include #include "dA.h"using namespace std;// To generate a value between min and max in a uniform distributiondouble uniform(double min, double max) { return rand() / (RAND_MAX + 1.0) * (max - min) + min;}// To get the result of n-binomial test by the p probabilityint 阅读全文
posted @ 2013-07-22 19:53 xinyuyuanm 阅读(341) 评论(0) 推荐(0) 编辑
摘要: 1:如果apache报500错误时----->原因:可能是你的ReWrite模块没有打开(有时在apache重装时会忘记打开该模块) 将apache--->httpd.conf文件中LoadModule rewrite_module modules/mod_rewrite.so前面的#号去掉即可,表示将rewrit模块打开2,域名配置中加上--->开启重写配置:Options Indexes FollowSymLinks AllowOverride all比如: ServerName www.buyuy2.com DocumentRoot "F:\Wam... 阅读全文
posted @ 2013-07-22 19:50 xinyuyuanm 阅读(370) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 303 下一页