摘要: A. Purificationtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are an adventurer currently journeying inside an evil temple. After defeating a couple of weak zombies, you arrived at a square room consisting of tiles forming ann × ngrid. T 阅读全文
posted @ 2013-07-22 20:29 xinyuyuanm 阅读(338) 评论(0) 推荐(0) 编辑
摘要: iphone越狱后,设置里的清除所有内容和设置选项是不生效的,选上之后菊花转个不停,只能强制退出,还有白苹果的危险。若想恢复出厂设置有两个办法:一、刷机最直接的办法,我觉得itunes配合itools是比较简单的办法,下载想要恢复版本的固件,但是DFU、各种“未知错误”,折腾了一个晚上也没搞定,精疲力尽睡觉去了。二、文件删除大法通过使用ifunbox之类的软件,删除系统内的文件使机器恢复到刚越狱后的状态。试验成功,非常方便。iOS6.1.2以下有效。1、使用cydia卸载OpenSSH/OpenSSL之外的所有软件,特别是MobileSubstrate,卸载很多依赖它越狱软件也跟着卸掉了。2、 阅读全文
posted @ 2013-07-22 20:28 xinyuyuanm 阅读(786) 评论(0) 推荐(0) 编辑
摘要: B. Biridian Foresttime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou're a mikemon breeder currently in the middle of your journey to become a mikemon master. Your current obstacle is go through the infamous Biridian Forest.The forestThe Biri 阅读全文
posted @ 2013-07-22 20:26 xinyuyuanm 阅读(362) 评论(0) 推荐(0) 编辑
摘要: C. Graph Reconstructiontime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputI have an undirected graph consisting ofnnodes, numbered 1 throughn. Each node has at most two incident edges. For each pair of nodes, there is at most an edge connecting them 阅读全文
posted @ 2013-07-22 20:24 xinyuyuanm 阅读(417) 评论(0) 推荐(0) 编辑
摘要: 一、什么是ActionBar 有图有真相,看一下图片就了解的差不多了 对于大多数应用,操作栏可以分割为 4 个不同的功能区域。 1. 应用图标 应用图标是您应用的标志。在应用图标位置摆放您自己的 logo。注意: 如果当时应用不再顶层界面,那么在图标左边放置一个向左的箭头,表示“向上”按钮,使用户可以回到上一级界面。“向上”按钮的更多细节,请查看 导航 - Navigation 一节。应用图标以及有和没有“向上”按钮的状态。 2. 视图控制如果您的应用通过多个不同的视图显示数据,这个区域将允许用户切换视图。可以使... 阅读全文
posted @ 2013-07-22 20:21 xinyuyuanm 阅读(417) 评论(0) 推荐(0) 编辑
摘要: Selective System Grants问题:我只想授予XX用户alter system set user_dump_dest 权限!I want to give users the ability to execute "alter system set user_dump_dest" only. I want to give them the ability to turn on extended tracing but write out the trace files to a different directory, such as /tmp, rather 阅读全文
posted @ 2013-07-22 20:20 xinyuyuanm 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 不用 InstallUtil.exe,直接用mongod.exe做就可以:安装:mongod --dbpath "C:\mongodb\db" --logpath "C:\mongodb\log.txt" --install --serviceName "MongoDB"卸载:mongod.exe --remove --serviceName "MongoDB" 阅读全文
posted @ 2013-07-22 20:16 xinyuyuanm 阅读(205) 评论(0) 推荐(0) 编辑
摘要: When the request leaves the browser, it carries information about what theuser is asking for. At very least, the request will be carrying the requested URL. Butit may also carry additional data such as the information submitted in a form by the user.The first stop in the request’s travels is Sp... 阅读全文
posted @ 2013-07-22 20:14 xinyuyuanm 阅读(967) 评论(0) 推荐(0) 编辑
摘要: 今天大家一起做的div2,怎么说呢,前三题有点坑,好多特判....A. Cakeminator 题目的意思是说,让你吃掉cake,并且是一行或者一列下去,但是必须没有草莓的存在。这道题目,就是判断一下每行和每列的情况,看是不是有草莓存在,有的话就标记一下。后面就直接把木有草莓的行和列求和再减去重复路过的cake就行,不过你第一遍写的比较麻烦,小数据过了,后来WA了,现在改了一种写法。就是简单的加加减减。上代码:#include #include #include #include #include #include #include #include #include #include #in 阅读全文
posted @ 2013-07-22 20:12 xinyuyuanm 阅读(268) 评论(0) 推荐(0) 编辑
摘要: @@@模式定义: 提供一种方法顺序访问一个聚合对象中的各个元素,而又不需暴露该对象的内部表示。 @@@练习示例: 工资表数据的整合 @@@示例代码: \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 阅读(1186) 评论(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 阅读(165) 评论(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 阅读(513) 评论(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) 编辑
摘要: 说实话,具体的训练公式,我没有自己推导,姑且认为他写的代码是对的。总体上看,用bp的方法。特殊之处,在于输入层和输出层是完完全全的“同一层”。void dA::get_corrupted_input ( int *x, // the original input 0-1 vector -- input int *tilde_x, // the resulted 0-1 vector gotten noised -- output double p // the p probability of noise, binomial test -- input ... 阅读全文
posted @ 2013-07-22 19:48 xinyuyuanm 阅读(352) 评论(0) 推荐(0) 编辑