使用GraphicsMagick+im4java处理图片

11-10 3,146 views

GraphicsMagick(http://www.graphicsmagick.org/)被称为图片处理的瑞士军刀,它的功能包括: Convert an image from one format to another (e.g. TIFF to J...
阅读全文 0

Flume简介与实践

11-05 2,743 views

Flume是一个分布式、高可用日志收集系统,可以收集不同来源的日志并集中存储。目前Flume是Apache顶级项目。 架构 数据流模型 Flume Agent是一个JVM进程,包...
阅读全文 0

Elasticsearch简介与实践

10-16 2,561 views

Elasticsearch(https://www.elastic.co/products/elasticsearch/)是一个基于Lucene的开源搜索引擎,使用Elasticsearch可以搭建分布式、可扩展、高可用的搜...
阅读全文 0

Odd Even Linked List

5-13 1,256 views

Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number and not ...
阅读全文 0

聚簇索引(摘自《高性能MySQL》)

4-01 2,144 views

InnoDB的聚簇索引实际上在同一个结构中保存了B-Tree索引和数据行。 当表有聚簇索引时,它的数据行实际上存放在索引的叶子页(leaf page)中。术语“聚簇”表示...
阅读全文 0

解决NoClassDefFoundError: Could not initialize class net.sf.json.JsonConfig

4-01 5,376 views

今天在开发时遇到了如下错误: Caused by: java.lang.NoClassDefFoundError: Could not initialize class net.sf.json.JsonConfig NoClassDefFoundError不同...
阅读全文 0

Remove Duplicates from Sorted Array

3-13 1,227 views

Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space...
阅读全文 0

Thrift简介与实践

3-11 2,173 views

Thrift(http://thrift.apache.org/)是一个支持多种语言的远程服务调用框架,最初由Facebook开发,目前由Apache基金会负责维护。 安装 tar -zxvf thrift-0.9...
阅读全文 0

使用iptables限制redis端口的访问

2-14 3,019 views

redis默认端口是6379,使用iptables限制该端口访问。 设置规则链 1)新建规则链: iptables -N RH-Firewall-1-INPUT 2)在规则链中添加可以访问6379端口的规...
阅读全文 0

ProcessBuilder中“Too many open files”错误的解决

1-10 2,372 views

在一个系统中程序每隔5分钟会通过ProcessBuilder创建进程执行shell脚本。系统运行一段时间后,会报以下错误: java.io.IOException: Cannot run program R...
阅读全文 0