自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 资源 (4)
  • 收藏
  • 关注

原创 _在scala语言中的使用

_在scala中使用的非常巧妙,有时候也不好理解,现在总结如下:1._可以用来指定foreach循环体中当前循环变量的值。 val s = 1.to(10).map({ _ * 2 }) println(s)2.作为偏函数的参数占位符使用: val sum = (a: Int, b: Int, c: Int) => a + b + c val f = sum(1,...

2015-10-16 15:35:57 144

原创 Linux下RPC服务

/etc/init.d/rpcbind start/etc/init.d/rpcidmapd start

2015-08-07 20:10:19 2077

原创 netty核心类

   上图是netty核心框架类图,下面详细说明各个类的作用。 netty采用Reactor主从多线程模型,架构图见下图: 

2015-05-07 19:08:21 177

原创 通过shell命令实现排序

 使用shell命令分析文件内容,获取最新的日期链接。 cat test.html|grep -Eo  '[0-9]{2,5}-20[0-9]{2}-[0-9]{2}-[0-9]{2}_[0-9]{2}-[0-9]{2}-[0-9]{2}'  |uniq|awk 'BEGIN{now=systime(); min=0; ctime=0; count=0;} {otime=$0; ...

2015-05-07 12:12:25 359

原创 shell 脚本括号使用总结

shell脚本可以使用各种括号,包括{}、(())、[]、[[]],现总结如下:1.{}大括号a:将对大括号中的文件名做扩展例如:ls {ex1,ex2}.sh, ls {ex[1..3],ex4}.shb.将大括号中的命令一起执行。类似于匿名函数。括号内的命令间用分号隔开,最后一个也必须有分号。{}的第一个命令和左括号之间必须要有一个空格。2.()单小括号作用类似于``...

2015-05-06 21:48:37 177

原创 Netty server/business logic 实现

package com.netty.examples.discard;import io.netty.buffer.Unpooled;import io.netty.channel.ChannelFutureListener;import io.netty.channel.ChannelHandler.Sharable;import io.netty.channel.Chann...

2015-04-30 14:14:35 103

原创 netty开发基本步骤

Netty的使用虽然非常灵活,但是基本的步骤很固定,像八股文一样。现总结如下:1. You create a ServerBootstrap instance to bootstrap the server and bind it later.2. You create and assign the NioEventLoopGroup instances to handle event...

2015-04-30 13:20:12 208

原创 kafka伪分布式安装

kafka作为分布式消息系统在企业中有广泛的应用。本篇主要介绍kafka的伪分布式安装,资料来源:http://kafka.apache.org/documentation.html。 1.kafka依赖zookeeper,zookeeper的安装和启动暂时不在这里介绍。如果有需要,请大家查询相关资料。2.首先下载kafka软件,下载地址为:https://www.apache.o...

2015-04-22 17:18:50 88

原创 技术文章备忘

Zookeeperhttp://wenku.baidu.com/view/bab171ffaef8941ea76e05b8.htmlhttp://wenku.baidu.com/link?url=8thAIwFTnPh2KL2b0p1V7XSgmF9ZEFgw4V_MkIpA9j8BX2rDQMPgK5l3wcs9oBTxeekOnm5P3BK8c6K2DWynq9nfUCkRlTt9u...

2014-11-27 08:51:02 85

原创 netty开篇

最近一直在研究分布式大数据处理,涉及了hadoop、spark、kafka、zookeeper、flume等系统框架、学习的很不系统、对系统内进程之间调度和底层处理没有深刻认识,所以打算从底层的视角分析这些系统有哪些分布式系统的共性需要解决。分布式系统通常采用Master-Slave模式,进程之间的数据通信就是其中核心要处理的问题。spark和kafka采用了akka通信框架。而hadoop和...

2014-11-27 08:45:09 80

原创 oracle11g数据库在RedHat Enterprise下安装

1.下载oracle数据库安装包,我用的版本为Oracle Database 11g Release 2 (11.2.0.1.0)下载路径为:http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-linuxsoft-085393.html。2.解压安装包下载后会有两个安装包,...

2014-10-01 20:10:40 86

eclipse rcp开发

Eclipse is more than a state-of-the-art IDE: its Rich Client Platform (RCP) plug-ins form an outstanding foundation for any desktop application, from chat applications to enterprise software front-ends. In Eclipse Rich Client Platform, two leaders of the Eclipse RCP project show exactly how to leverage Eclipse for rapid, efficient, cross-platform desktop development. In addition to explaining the power of Eclipse as a desktop application development platform, the authors walk step-by-step through developing a fully featured, branded RCP application. They introduce a wide range of techniques, including developing pluggable and dynamically extensible systems, using third-party code libraries, and packaging applications for diverse environments. You'll build, refine, and refactor a complete prototype; customize the user interface; add Help and Update features; and build, brand, and ship the finished software.

2009-11-17

Apache Commons组件简介.ppt

Apache Commons是非常优秀的组件,希望大家喜欢。

2009-04-01

Ajax学习笔记,希望大家喜欢

Ajax是非常优秀的客户端脚本。可以实现很复杂的功能,附件中是我的学习笔记,希望大家喜欢

2009-04-01

Eclipse-Adapters

Eclipse Adapters 设计模式

2009-01-01

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除