j o y ~ y o u a r e h e r e ~

背景​ 公司里想做一个分析的业务,数据全都在MySQL里,就想着把数据导入到Kudu中后再做进一步的分析。由于在导数据过中可能会需要etl,而且数据的实时性要求并没有很高,对比了一下spark跟storm觉得spark的微批处理的思想很适合这种情况,于是就愉快的决定了。 上手​ 我个人比 ...
Read more »

title: awk 命令介绍
date: 2018-01-09 18:17:16
tags: [Linux, awk]
categories: Linux

awk是什么

awk是一种处理文本文件的语言。是的,这是一门编程语言。是由Alfred Aho, Peter Weinberger, 和 Brian Kernighan三位创造的,语言名称取自三位姓氏的首字母。目前我们使用的一般是gawk,是awk的GNU版本。

awk模式

awk是由一系列的模式-动作对组成的

1
pattern { action }
Read more »

今天在codewar上做了这样一道题

In English and programming, groups can be made using symbols such as () and {} that change meaning. However, these groups must be closed in the correct order to maintain correct syntax.

Your job in this kata will be to make a program that checks a string for correct grouping. For instance, the following groups are done correctly:

({})
[]
[{()}]
The next are done incorrectly:

{(})
([]
[])

A correct string cannot close groups in the wrong order, open a group but fail to close it, or close a group before it is opened.

Your function will take an input string that may contain any of the symbols (), {} or [] to create groups.

It should return True if the string is empty or otherwise grouped correctly, or False if it is grouped incorrectly.

在我脑海中蹦出来的第一个想法就是使用栈来保存弹出,来判断括号是否匹配

Read more »

最近又继续回来死磕Spring源码,以前看的也忘得差不多了,这次先把Spring使用的动态代理cglib看了一下,打好基础知识。
cglib使用上特别简单,而且也不像Java要实现动态代理一样必须有接口,看一下cglib的wiki可以很容易上手。

Read more »

例子

我们就使用Java8 in action里面的商店的例子来说明。
我们写了一个应用,这个应用需要通过互联网接口从其他的服务商那里取得价格,
由于会有好多个服务商,因此我们先将操作封装到Shop类中。

Read more »

1:使用keytool生成 keystore keytool -keystore mykey.jks -genkey -alias tomcat -keyalg RSA 记住密钥库口令和密钥口令,后面配置需要使用,这里我直接使用Tomcat 2:在application.properties ...
Read more »

每天花5分钟跟爸爸妈妈视频,随便聊聊每天的事情,工作,天气,吃的如何,同事同学的八卦。 每天花至少30分钟锻炼,哪怕只是下楼遛弯。每天专注自己的工作和学习,解决问题,以热情拥抱工作和学习。 每天收拾好自己的头发,换一身干净衣服再出门。每天认真洗脸,照顾好自己的皮肤。 学会做饭,不一定每天做,但是至 ...
Read more »