kafka in a nutshell
IntroductionKafka is a distributed publish-subscribe messaging system that is designed to be fast, scalable and reliable. It can be used in data analysis, stream processing and other similar tasks. Th
IntroductionKafka is a distributed publish-subscribe messaging system that is designed to be fast, scalable and reliable. It can be used in data analysis, stream processing and other similar tasks. Th
Introductionthis in javascript is always a mysterious thing. Some programmers who have written a lot of javascript code still cannot tell the value of this every now and then. So today, I decided to w
About a month ago, I started writing blogs in Chinese using WordPress. I stuck to the plan for about several days then decided to use English instead. The reason is unbelievably simple: typing English
What are encoding schemes?Encoding schemes are ways to store and retrieve characters in computers. For example, in ISO-8859-1(which is one of various encoding schemes), we use 01100001 to denote a, an
IntroductionSerialization: a process which converts a Java instance into a bunch of bytes, so it can be stored in disk/database or transferred through network. Deserialization: the opposite of Seriali
There are several garbage collectors in Java, each has its specific usage scenario. To understand garbage collection, we first have to understand how heaps are divided in Java. Heaps are divided into
前一阵子看了一本书:时间的陷阱。这本书说,时间实际上是人类的一种幻觉。有了时间,人类才有了记忆,因而也就产生了诸多痛苦。因此作者建议用各种方式摆脱时间的束缚,开启生命真正的智慧。 说实话,这本书的大部分内容我都没有看懂,太抽象了,书本中的大部分内容都与佛教的教义有相同之处。但是在看这本书的时候,我想
最近看了电视连续剧“开端”,它讲了两个年轻人拯救一辆即将爆炸的公交车的故事。 剧透警告!!! 这两个年轻人一开始并不知道公交车要爆炸,他们只是普通的乘客,但是爆炸之后他们立刻回到了几分钟前公交车还没有爆炸的时候,依据之前的经验,他们此时是知道公交车是会爆炸的,这时他们就可以采取各种措施来防止公交车爆
最近在看一本书:How to Teach Philosophy to Your Dog,这本书描述了作者与他的狗之间关于哲学问题的一系列对话,当然这个对话肯定是假的,不要说狗了,大部分的人都不会对哲学感兴趣,这只不过是一种解释问题的方式。 书的前面在讲“道德”。有些读者可能会感觉奇怪,“道德”有什么
现今的科学体系认为,人是没有灵魂的,人的自由意识就是大脑给出的假象,在人寿终正寝的那一刻,这些假象都会随着大脑的消亡会灰飞烟灭。这个世界没有天堂,也没有地狱,我们只有一个世界,那就是我们现在所处的这个世界。 我经常会想,如果事实不是这样的会怎么样?我们会不会就像佛教中所说的,一直在轮回,也许我这一辈
今天又开始写博客了,上一次写博客还是 1 年半前,后面在很长的一段时间里,我都是热衷于记笔记,曾经一度觉得记笔记才是最好的学习方式,然而笔记确实有它的局限性,因为笔记是写给自己看的,这跟写给别人看的博客还是两码事,很多时候,把一件东西解释给自己听,和把一件东西解释给别人听是两种不太一样的技能,我需要
I’m a software engineer. I like coding, music and hiking in my spare time.
I’m been knowing a girl for about a year, all of our communications are only kept online, until I invited her to have a dinner. Well, actually I’ve be
I haven’t updated this blog for a really long time. Part of the reason is that I’ve been worried about my lower-back pain recently, I tried not to sit
I met that girl tonight while I was still coughing constantly, because I was having a cold. So I didn’t do a good job talking with her. But it was not