摘要: Reference: >In Hadoop, interprocess communication between nodes in the system is implemented using remote procedure calls (RPCs). The RPC protocol use... 阅读全文
posted @ 2016-01-04 22:53 快乐的小土狗 阅读(305) 评论(0) 推荐(0)
摘要: This article from JavaTuturialJava provides a mechanism, called object serialization where an object can be represented as a sequence of bytes that in... 阅读全文
posted @ 2016-01-03 21:19 快乐的小土狗 阅读(262) 评论(0) 推荐(0)
摘要: 参考文章:浅谈Java中的Set、List、Map的区别 Java 7 Collections详解java中集合分为三类:Set(集)List(列表)Map(映射)Set和List继承自Collection借口,Collection是基本的集合借口,声明适用于JAVA集合。Collectio... 阅读全文
posted @ 2015-12-13 23:15 快乐的小土狗 阅读(172) 评论(0) 推荐(0)
摘要: 参考文档:Java排序: Comparator vs Comparable 入门java类经常面临排序问题,据我所知:java提供comparable和comparator两种比较方式:1. comparable方法需要排序的类继承comparable接口,重写compareTo函数,但是只能实现一... 阅读全文
posted @ 2015-11-07 22:47 快乐的小土狗 阅读(420) 评论(0) 推荐(0)
摘要: 学习java comparable特性时候,定义如下Student类,需要需要随机添加学生姓名以及学号和成绩,这是java如何随机生成名字,根据我的查询,我找到目前java库支持两种方法。1. org.apache.commons.lang3.RandomStringUtils类,他支持方法可以到R... 阅读全文
posted @ 2015-11-07 21:16 快乐的小土狗 阅读(3740) 评论(0) 推荐(0)
摘要: 1 下载数据:wget -npd -r ftp://ftp.ncdc.noaa.gov/pub/data/noaa/1901/wget命令使用方式请参考:本文来源于hadoop权威指南,是本人学习笔记1 获取数据1.1 wget 下载整个网站,或者特定目录1.2使用 wget 下载一个目录下的所有文... 阅读全文
posted @ 2015-11-03 21:24 快乐的小土狗 阅读(386) 评论(0) 推荐(0)
摘要: 参考java官网教程:The Java™ Tutorialsjava.util.logging.Logger使用详解1. java异常处理包括try,catch, finally三个部分,try内是可能会产生异常的代码,例如数组访问,IO操作等等;catch是异常捕捉和处理部分;finally部分主... 阅读全文
posted @ 2015-11-03 20:49 快乐的小土狗 阅读(171) 评论(0) 推荐(0)
摘要: 功能:读取输入,打印;如果长度小于MINLEN,那么输出空格。#!/bin/bash# paragraph-space.sh# Insert a blank line between paragraphs of a single-spaced text file.# Usage: $0 <FILEN... 阅读全文
posted @ 2015-10-29 22:18 快乐的小土狗 阅读(163) 评论(0) 推荐(0)
摘要: 参考文档:python正则表达式正则表达式定义:正则是一门高度专业编程语言,内嵌在其他语言(python re模块)中使用。正则表达式包含元字符(metacharacter)列表,列表如下:. ^ $ * +? { [ ] \ | ( ),这些元字符只有在合适的位置才可以发挥作用。1. []用来指定... 阅读全文
posted @ 2015-10-28 19:35 快乐的小土狗 阅读(176) 评论(0) 推荐(0)
摘要: 参考文档:http://blog.csdn.net/wusuopubupt/article/details/29379367ipython环境中,输入"?re",官方解释如下:This module exports the following functions: match Match... 阅读全文
posted @ 2015-10-28 18:59 快乐的小土狗 阅读(205) 评论(0) 推荐(0)