现在位置: 首页 > Frygyibv发表的所有文章
  • 06月
  • 16日
综合 ⁄ 共 18576字 评论关闭
Tasks performed in Hadoop sometimes require multiple Map/Reduce jobs to be chained together to complete its goal. [1] Within the Hadoop ecosystem, there is a relatively new component Oozie [2], which allows one to combine multiple Map/Reduce jobs into a logical unit of work, accomplishing the larger task. In this article we will introduce Oozie and some of the ways it can be used. What is Oozie ? Oozie is a Java Web-Application that runs in a Java servlet-container - Tomcat and uses a......
阅读全文
  • 04月
  • 26日
综合 ⁄ 共 575字 评论关闭
MSDN中的定义: 1.template<class RanIt>                         void sort(RanIt first, RanIt last);  2.template<class RanIt, class Pred>    void sort(RanIt first, RanIt last, Pred pr);  头文件: #include <algorithm> using namespace std; 1.默认的sort函数是按升序排。对应于1 sort(a,a+n);   //两个参数分别为待排序数组的首地址和尾地址 2.可以自己写一个cmp函数,按特定意图进行排序。对应于2 例如:是对数组a降序排序 int cmp( const int &a, const int &b ) {     if( a > b )......
阅读全文
  • 12月
  • 11日
综合 ⁄ 共 2619字 评论关闭
http://blog.sina.com.cn/s/blog_6b1990eb0101171o.html 1:设置该选项: public void setSoLinger(boolean on, int seconds) throws SocketException;      读取该选项:public int getSoLinger() throws SocketException      SO_LINGER选项用来控制Socket关闭时的行为,默认情况下,执行Socket的close方法,该方法会立即返回,但底层的Socket实际上并不会立即关闭,他会立即延迟一段时间,知道发送完剩余的数据,才会真正的关闭Socket,断开连接。     setSoLinger(true, 0): 执行该方法,那么执行Socket的close方法......
阅读全文
  • 05月
  • 14日
综合 ⁄ 共 1409字 评论关闭
using MSExcel = Microsoft.Office.Interop.Excel; using System.IO; using System.Reflection; class Program {   static void Main(string[] args)   {     string path;     MSExcel.Application excelApp;     MSExcel.Workbook excelDoc;     path = @"d:/test.xlsx";     excelApp = new MSExcel.ApplicationClass();     if(File.Exists(path))     {       File.Delete(path);     }     Object nothing = Missing.Value;     excelDoc = excelApp.Workbooks.Add(nothing);     MSExcel.Worksheet ws = (MSExcel.Worksheet......
阅读全文
  • 05月
  • 13日
综合 ⁄ 共 690字 评论关闭
zz Removing the author and date items from LaTeX titles The template required for my interim project report uses a header on page 1 to provide name and date information, making those elements of the title which LaTeX usually generates with the \maketitle command redundant. Unfortunately, if you leave them blank, the space for them is still there (rather, the padding around the elements is still there). The code below, inserted into the preamble of a document using article.sty, redefines ......
阅读全文
  • 04月
  • 13日
综合 ⁄ 共 531字 评论关闭
一.神经网络的结构选择        从图上可以看出,神经网络的输入层和输出层已经由任务规定好了,我们能设计的结构只有隐藏层的神经元个数。     一般来说,隐藏层神经元的个数要可以与输入层相同,或者是输入层的3到4倍;     如果有两个以上的隐藏层的话,Andrew Ng认为,可以将隐藏层的神经元个数设置为相同的。     我个人的观点是,每一个隐藏层的数目比前一层多,这样,如果隐藏层的层数比较多的话,就可以形成一个深度神经网络了。 二.神经网络的训练过程 三.特征可视化    对于神经网络来说,隐藏层中的每一个神......
阅读全文
  • 02月
  • 04日
综合 ⁄ 共 65字 评论关闭
=CONCATENATE("您好",CHAR(10),"小强") 1. 被应用的格子的格式是自动换行的 2. CHAR(10)  表示换行
阅读全文
  • 01月
  • 11日
综合 ⁄ 共 1891字 评论关闭
//author: CHC //First Edit Time: 2014-10-12 14:30 //Last Edit Time: 2014-10-12 15:03 #include <iostream> #include <cstdio> #include <cstring> #include <cmath> #include <set> #include <vector> #include <map> #include <queue> #include <set> #include <algorithm> #include <limits> using namespace std; typedef long long LL; const int MAXN=1e+4; const int MAXM=1e+6; const int INF= numeric_limits<int>::max(); const LL LL_INF......
阅读全文
  • 12月
  • 18日
综合 ⁄ 共 1555字 评论关闭
北京楼市:一个打死都不说的秘密                                                魏雅华     2007年,中国楼市给我们的感觉依旧是涨势如潮。    国家发改委、国家统计局2007年3月20日报道说:《2月房价涨,全国新房价格涨5.9%,深圳北京以近10%涨幅领涨》。    那么,就让我们来解剖一下2007年为全国楼市领涨的北京楼市。    2007年3月14日,《北京晨报》报道:《北京10万套商品房尚未售出》,该新闻中说:   “北京市场上的一手住宅商品房,目前至少还有10万套尚未售出。这是记者昨天从北京市房地产交易管理网了解到的信息。按照......
阅读全文
  • 12月
  • 18日
综合 ⁄ 共 7918字 评论关闭
1、 WINDOWS的消息机制 2、 HOOK介绍 3、 HOOK链 4、 HOOK钩子的作用范围 5、 HOOK类型 6、 回调函数 7、 HOOK钩子的安装与卸载 8、 HOOK实例演示   +++++++++++++++++++ WINDOWS的消息机制 +++++++++++++++++++ Windows系统是以消息处理为其控制机制,系统通过消息为窗口过程(windows procedure)传递输入。系统和应用两者都可以产生消息。对于每个输入事件,例如用 户按下了键盘上的某个键、移动了鼠标、单击了一个控件上的滚动条,等等,系统都 将产生一系列消息。此外,对于应用带给系统的变化,如字体资源的改......
阅读全文
  • 12月
  • 14日
综合 ⁄ 共 19800字 评论关闭
在内核中tcp协议栈有6种类型的定时器: 1 重传定时器。 2 delayed ack定时器 3 零窗口探测定时器 上面三种定时器都是作为tcp状态机的一部分来实现的。 4 keep-alive 定时器 主要是管理established状态的连接。 5 time_wait定时器 主要是用来客户端关闭时的time_wait状态用到。 6 syn-ack定时器(主要是用在listening socket) 管理新的连接请求时所用到。 而在内核中,tcp协议栈管理定时器主要有下面4个函数: inet_csk_reset_xmit_timer 这个函数是用来重启定时器 inet_csk_clear_xmit_timer 这个函数用来删除定时器。 上面两个函数......
阅读全文
  • 12月
  • 12日
综合 ⁄ 共 962字 评论关闭
第一篇讲到了传统的索引如B树不能很好的支持空间数据,比如点(POI等)、线(道路、河流等)、面(行政边界、住宅区等)。本篇将对空间索引进行简单分类,然后介绍网格索引。(深入浅出空间索引1:http://blog.csdn.net/zhanlijun/article/details/13171539) 一、空间索引有哪几种?   传统索引使用哈希和树这两类最基本的数据结构。空间索引虽然更为复杂,但仍然发展于这两种数据结构。因此可以将空间索引划分为两大类:1)基于哈希思想,如网格索引等;2)基于树思想,有四叉树、R树等。   二、网格索引   哈希是通过......
阅读全文