抓瓢虫的少年


  • Home

  • Tags

  • Archives

毛毛的歌和故事

Posted on 2020-02-15

昨晚在歌手最新一季里面,毛毛演唱了一首“一荤一素”,用来献给他因癌症去世的母亲。整首歌用很简单的词,诉说着自己对母亲的思念,柔美的调子里面寄托着回忆和哀伤,让听者动容。这首歌我听说过,但没完整的听过,第一次听心里先是一震,再多听几次,眼泪就开始止不住的流。

Read more »

珍惜

Posted on 2019-04-21

好久没写日记了,今天想起来写是因为一件让我很痛心的事,我的一个表弟因为癌症去世了。小时候经常一起玩,特别喜欢跟他开玩笑,一个非常善良呆萌的小男孩,但是自从我出来工作之后,我已经有很长一段时间没有见过他了,去年他得了癌症,医生告知他只有一年的时间,我得知后,心里一直堵着,他一直在坚持着,但是最后这一天还是到来了。

Read more »

Web Development Technology Stack --- Part1

Posted on 2018-08-11

Web Server

Concepts

Proxy vs Reverse Proxy

Proxy:

Read more »

新西兰--一个被上帝眷顾的地方

Posted on 2017-12-28

刚刚结束了为期两周的新西兰之旅,写点日记记录一下一些感想吧。

Auckland

第一天我们坐飞机来到了奥克兰,调时差真的好累,整个人不知道是醒着还是睡着,总之没精神。因为到的时间是早上,还没法入住酒店,没地方休息,我们找了一家汉堡店,吃了顿早午餐,然后躺在人家沙发上睡了进两个小时,醒来还是浑浑噩噩。。。

Read more »

想读的书单

Posted on 2017-12-01

技术:
The Phoenix project
Agile software development principle patterns and practice
Continuous delivery
Microsoft application architecture guide
Extreme programming

非技术:
明朝那些事
联想风云
围城

Redis Inside(1)

Posted on 2017-10-20

Basic

Redis supports lots of data types:

  1. string
  2. list
  3. set
  4. hash (k-v map)
    etc.
    Examples:
    1
    2
    3
    4
    redis 127.0.0.1:6379> SET tutorialspoint redis 
    OK
    redis 127.0.0.1:6379> GET tutorialspoint
    "redis"
Read more »

ElasticSearch Inside(1)

Posted on 2017-09-20

Basic

ES and Relational Database:
Elasticsearch Index == Database
Types == Tables
Properties == Schema

ES Cluster:
1 Node == n shards
Shard == 1 lucene instance, which contains many segments
Segment == mini lucene index, multiple segments can be merged into one

Read more »

Java Collection 源码阅读2

Posted on 2017-07-10

Happen before

https://stackoverflow.com/questions/14329064/synchronized-and-the-scope-of-visibility

Atomic

http://www.jianshu.com/p/0f1b4ae625e5

Monitor/Condition

  1. Object, wait, notify, notifiyAll (the last two must be called when we get the object lock)

  2. ReentranceLock, Condition (the later one must be called when we get the reentrance lock). The condition use “LockSupport.park and unpark” to suspend thread and wakeup thread

Read more »

Java Collection 源码阅读1

Posted on 2017-06-01

How fast-fail happened in non-synced collections

(why modCount is not volatile: http://www.jianshu.com/p/d9ee4b075d5a )

Differences between Iterator and ListIterator

  • Methods of Iterator (for list and set):

    • hasNext()

    • next()

    • remove()

Read more »

Java 内存知识

Posted on 2017-05-01
  1. Integer contains meta data, not only the int value. The size is usually 4 times of int. An array is bigger since it needs to store the length

  2. HashSet is a wrapper of HashMap. An empty HashSet/HashMap already contains 16 objects (default size) and the size is more 100 bytes. Everytime we do “put”, it will create new object “Entry”.

  3. HashTable is synchronized and HashMap is not. Vector (also Stack) is synchronized and ArrayList is not.

Read more »
12

Qiawu Cai

15 posts
11 tags
© 2020 Qiawu Cai
Powered by Hexo
|
Theme — NexT.Muse v5.1.4