上一页 1 ··· 107 108 109 110 111 112 113 114 115 ··· 425 下一页
摘要: Hadoop StreamingHadoopstreaming is a utility that comes with the Hadoop distribution. The utilityallows you to create and run Map/Reduce jobs with any executable or script asthe mapper and/or the reducer. For example:$HADOOP_HOME/bin/hadoop jar $HADOOP_HOME/hadoop-streaming.jar \ -input myInputDirs 阅读全文
posted @ 2013-07-17 20:03 坚固66 阅读(491) 评论(0) 推荐(0) 编辑
摘要: A Game Between Alice and BobTime Limit: 5 Seconds Memory Limit: 262144 KBAlice and Bob play the following game. A series of numbers is written on the blackboard. Alice and Bob take turns choosing one of the numbers, and replace it with one of its positive factor but not itself. The one who makes t.. 阅读全文
posted @ 2013-07-17 20:02 坚固66 阅读(216) 评论(0) 推荐(0) 编辑
摘要: linux sar 命令详解sar(System Activity Reporter系统活动情况报告)是目前Linux上最为全面的系统性能分析工具之一,可以从多方面对系统的活动进行报告,包括:文件的读写情况、系统调用的使用情况、磁盘I/O、CPU效率、内存使用状况、进程活动及IPC有关的活动等。本文主要以CentOS6.3 x64系统为例,介绍sar命令。sar命令常用格式sar [options] [-A] [-o file] t [n]其中:t为采样间隔,n为采样次数,默认值是1;-o file表示将命令结果以二进制格式存放在文件中,file 是文件名。options 为命令行选项,sar 阅读全文
posted @ 2013-07-17 20:00 坚固66 阅读(210) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include int main() { int data_processed; int file_pipes[2]; const char some_data[] = "123"; char buffer[BUFSIZ + 1]; memset(buffer, '\0', sizeof(buffer)); if(pipe(file_pipes) == 0) { data_processed = write(file_pipes[1], some_data, strlen(some_data)); pr 阅读全文
posted @ 2013-07-17 19:58 坚固66 阅读(168) 评论(0) 推荐(0) 编辑
摘要: Gmail的原开发主管Paul Buchheit曾经说过,Gmail的成功是一个漫长的过程:Gmail的开发始于2001年8月,在此之后的很长一段时间里,几乎所有的人都不喜欢它。有一些人因为它的搜索功能而使用它,但他们也带来了无穷无尽的抱怨。甚至有相当一部分人认为我们应该终止这个项目,或者按照一个企业级的产品重做这个项目——它应该有一个本地的客户端程序,而不是这个异想天开用JavaScript做出来的东西。即使等到两年半之后的2004年4月1日,在这个产品发布之时,公司里的很多内部员工依旧对这个产品不看好。他们觉得这个产品太古怪了,没有人会愿意为之更换邮件服务。还有人告诉我,Gmail的用户数 阅读全文
posted @ 2013-07-17 19:56 坚固66 阅读(305) 评论(0) 推荐(0) 编辑
摘要: QTime中currentTime()的使用方法QTime是Qt中一个处理时间的类,其成员函数currentTime()是最经常用到函数,下面举例说明该成员函数如何使用。 1. 包含头文件#include 2. 声明一个QTime对象QTime qtimeObj; 3. 利用currentTime()获取当前时间 qtimeObj = QTime::currentTime(); 4. 利用toString()将时间转成QString QString strTime = qtimeObj.toString("h:m:s ap"); 5. 输出当前时间 qDebug() < 阅读全文
posted @ 2013-07-17 19:53 坚固66 阅读(1244) 评论(0) 推荐(0) 编辑
摘要: Ø全新的应用Explorer for ArcGIS在2013年第四季度,Esri将发布全新的应用Explorer for ArcGIS,它将联合Collector和Operations Dashboard等一系列app,具有直观、易用、轻量、与ArcGIS Online和Portal for ArcGIS集成等特点,离线使用地图等功能。Explorer for ArcGIS app的功能如下: 地图展示:展示自己感兴趣的专题地图 图层控制:可以调整图层透明度等属性 地图搜索:支持关键字搜索online上的地图和webmap 工具配置:可根据需求为地图配置路径分析、测量等多种工具 书签 阅读全文
posted @ 2013-07-17 19:52 坚固66 阅读(183) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include int main() { int data_processed; int file_pipes[2]; const char some_data[] = "123"; char buffer[BUFSIZ + 1]; pid_t fork_result; memset(buffer, '\0', sizeof(buffer)); if(pipe(file_pipes) == 0) { fork_result = fork(); if(fork_result == -1) { fprint 阅读全文
posted @ 2013-07-17 19:49 坚固66 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 以下代码演示了如何在ACE_Unbounded_Queue这个队列容器中存储具体的数据元素和数据元素的指针。// ACEqueue.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "ace/OS_Memory.h"#include "ace/Log_Msg.h"#include "ace/Containers.h"//演示队列元素存储具体的元素int runStackUnboundedQu 阅读全文
posted @ 2013-07-17 19:48 坚固66 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 一道不算复杂的线段树,就是数据处理需要好好想一下。将输入的所有数据从后往前输入,对于最后一个值,如果它想插入第i个位置,那么他就必须在前面留下i-1个位置。对于倒数第二个人,如果他想插入j位置,那么在他前面就应该有j-1个空位置。他在最后一个人前面还是后面根本不重要,重要的是他必须在第j个空位。这个要好好想一下。线段树节点存储的是当前区间的空位置的数量。#include#include#define N 200005struct node{ int x,y; int sum;}a[N*3];int aa[N],b[N],ans[N];void Bulid_Tree(int t,int x,in 阅读全文
posted @ 2013-07-17 19:46 坚固66 阅读(234) 评论(0) 推荐(0) 编辑
上一页 1 ··· 107 108 109 110 111 112 113 114 115 ··· 425 下一页