React Context API和Redux

16.3开始,React终于有了官方版Context API,这个API貌似很简单,但是影响却很大,网上有评论说Redux已Game Over,Redux作者也不得不承认React需要Redux的程度减少了许多,不过Redux的有些使用者认为,Redux已经成为一个生态系统,可用于其他很多场景。(这个看过的帖子一时找不到)

Continue reading React Context API和Redux

upstart init.d systemd - a simple instruction

systemd

  • systemd is now supported by most linux system, and is the recommended way contrast to old upstart and init
  • the systemd config file is under /lib/systemd/system
  • env vars only able to be set in ExecStart or ExecStartPre, best way is to set in the script
  • WorkingDirectory can not use double quote, seems to be a bug?
  • if you app run like java -jar, should use Type=simple instead of Type=forking, otherwise it will case a timeout

Continue reading upstart init.d systemd - a simple instruction

DBeaver a primary introduce

I used pgAdmin to connect to postgres, I think it is good, but when I use it to connect to a heroku database, I was shocked that it do list all the database(about 200) in the heroku server instance even I have choose the dafault database to connect. Imagine you have to scroll over the whole list to find a database name - and it do not support search! I then thought how stupid this tool is.

Continue reading DBeaver a primary introduce

Pagination


Total views.

© 2013 - 2019. All rights reserved.

Powered by Hydejack v6.6.1