---
layout: post
title: Weekly
category: Weekly
author: 东岳

---

# Weekly 03/10 - 03/16

周报第二十四期

- 催稿人：[@swaylq][gh-sway]
- 交稿人：[@at15][gh-at15] [@arrowrowe][gh-mie] [@LukeXuan][gh-luke] [@gaocegege][gh-cece] [@Bluemit][gh-lp]

[gh-at15]: https://github.com/at15
[gh-sway]: https://github.com/swaylq
[gh-mie]: https://github.com/arrowrowe
[gh-dou]: https://github.com/ComMouse
[gh-luke]: https://github.com/LukeXuan
[gh-cece]: https://github.com/gaocegege
[gh-tq]: https://github.com/tq5124
[gh-lp]: https://github.com/Bluemit
[h2bNn]: https://medium.com/@devlucky/how-to-get-a-performance-boost-using-node-js-native-addons-fd3a24719c85

## 人机大战 | すごい

- AlphaGo 4:1 完胜 李师石
  - [AlphaGo的分析 - 远东轶事 - 知乎专栏](http://zhuanlan.zhihu.com/yuandong/20607684),
  - [一张图解AlphaGo原理和弱点](https://mp.weixin.qq.com/s?__biz=MzA5ODUxOTA5Mg==&mid=403845767&idx=1&sn=178db5bb20c548cadf6da45fb6ae55d4&scene=2&srcid=0316XwEUp53evSS0uQQX7DJz&from=timeline&isappinstalled=0&uin=Mjg0MTQ2MTU0MA%3D%3D&key=710a5d99946419d9d7705d95933f7f6ce93021a734f7347effe6e9ab01ff1cc6cf534f9519098e40bf75eab37ebbf194&devicetype=iMac+MacBookPro11%2C1+OSX+OSX+10.11.3+build(15D21)&version=11020201&lang=zh_CN&pass_ticket=X2g4c%2FXgeK2uTnIMkNsbRkwVio%2Ble%2BSH%2BwF0XBHUhpa7ZDG2XT2GecQcejURX7uU), AlphaGo并非不可战胜的.
  
## Docker 专栏
  - 博客
    - [用 vps 搭一个自己的 Docker hub mirror](https://segmentfault.com/a/1190000002668708)
    - [玩转 Docker 镜像](http://www.csdn.net/article/2014-12-15/2823143-Docker-image)
    - [使用 Docker 容器应该避免的 10 个事情](http://mp.weixin.qq.com/s?__biz=MjM5NzM0MjcyMQ==&mid=402033815&idx=1&sn=1f6198787b5f299cc3c1c44f89f42258)
    - [配置 Docker 镜像下载的本地 mirror 服务](http://blog.csdn.net/yeasy/article/details/46916315)
      
      > 许多用户依然像对待典型的虚拟机那样对待容器。但是他们都忘记了除了与虚拟机相似的部分，容器还有一个很大的优点：它是一次性的。这个特性“本身”促使用户改变他们关于使用和管理容器的习惯；我将会向您解释在容器中不应该做这些事，以确保最大地发挥容器的作用. 

      
  - 案例
    - [Gitlab 的 Docker image](https://github.com/sameersbn/docker-gitlab), a better gitlab docker image, more detailed documentation.
    - [10个精选的容器应用案例](http://mp.weixin.qq.com/s?__biz=MjM5MzM3NjM4MA==&mid=406021651&idx=2&sn=b349ef1d517282d5d3d970f10c3e41a4&scene=2&srcid=0313n6WVG97c85Uy8xtNRAIx)  
    
## 静态网站生成
  - [statinamic](https://github.com/MoOx/statinamic), a static website generator to create dynamic website using React components.
  - [ink](https://github.com/InkProject/ink), 国人用golang写的静态博客生成器.
  
## 关注前端
  - 新闻
    - [State of the Art JavaScript in 2016](https://medium.com/javascript-and-opinions/state-of-the-art-javascript-in-2016-ab67fc68eb0b#.5m5vu7xmh)
    
      > 如果你最近没怎么关注前端新技术，可以看看这篇文章了解. _[@at15][gh-at15]_
  - 博客
    - [All JS Libraries Should be Authored in TypeScript](http://staltz.com/all-js-libraries-should-be-authored-in-typescript.html), six reasons for using typescript.
    - [Angular is a Design Pattern](http://blog.ionic.io/angular-is-a-design-pattern/)
      
      >  One of the major realizations we’ve had from working on Ionic 2 is how similar Angular 2 and Angular 1 are at a high level, and how understanding this will help developers move from Angular 1 to Angular 2 far more easily. In many ways, Angular 2 isn’t really a new framework at all, just a new implementation of the same one we’ve come to know and love. _[@at15][gh-at15]_
    - [专访｜前端布道师@张克军](http://mp.weixin.qq.com/s?__biz=MjM5MTA1MjAxMQ==&mid=402273083&idx=1&sn=590b94fe4976d3f428463d690e4385cb)
    
      > 这几点分享不错:
      >   - 出现瓶颈取决于视野，当看不到发展方向和趋势时，便会苦于没有突破
      >   - 工程师的三个时期：菜鸟期（2-3年）、成熟期、创造期
      >   - 前端工程师如何发展的可能性：专家、极客、自由开发者、转型. _[@at15][gh-at15]_ 
  - Promise 专栏
    - MDN: [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)
    - [Promises/A+](https://promisesaplus.com/), an open standard for sound, interoperable JavaScript promises—by implementers, for implementers.
    - 著名实现
      - [kriskowal/q](https://github.com/kriskowal/q)
      - [bluebird](https://github.com/petkaantonov/bluebird)
      - [arrowrowe/romi](https://github.com/arrowrowe/romi)
      
        > 写了个**仅用于理解原理**的实现, 逻辑上还是不严密, 比如 [5aaeb94 - L71](https://github.com/arrowrowe/romi/blob/5aaeb94aab02c6299f1302ec7cbefb22c37f2c9f/index.js#L71) 是有问题的. 欢迎继续加强或构造新测试! _[@arrowrowe][gh-mie]_
  - NPM
    - 往期回顾 - [Weekly/21](https://github.com/dyweb/web-stuff/blob/master/weekly/2016/0224.md): [npm 混合公共仓库和私有仓库](https://breeswish.org/blog2016/02/16/npm-hybridize-public-and-private-repository)
    - Lint & Test & Coverage? Only know ESLint & Mocha & Istanbul? See [xo](https://www.npmjs.com/package/xo), [ava](https://www.npmjs.com/package/ava) and [nyc](https://www.npmjs.com/package/nyc).
      
      > 以前一直用前三者... 新项目 [Romi](https://github.com/arrowrowe/romi) 试了下后三种, 感觉也挺好的. (确实更方便了......) _[@arrowrowe][gh-mie]_
    - [Sinopia](https://github.com/rlidwka/sinopia), a private/caching npm repository server.
    
  - Node.js
    - [How to get a performance boost using Node.js native addons][h2bNn]
    - 重现: [arrowrowe/node-addon-playground](https://github.com/arrowrowe/node-addon-playground)
    [![Boost your Node.js!](https://cdn-images-1.medium.com/max/800/1*T5rMwM8edXuILUrew2YHxw.jpeg)][h2bNn]
    
## 项目集锦
  - PHP
    - [oauth2-server-php](https://github.com/bshaffer/oauth2-server-php), A library for implementing an OAuth2 Server in php.
    - [Lychee](https://github.com/electerious/Lychee), self-host photo management.
    - [Attendize](https://github.com/Attendize/Attendize), open source ticket manage system.
    - https://github.com/marcioAlmada/yay

      > Yay is a high level PHP preprocessor (new) 
      macro { $ } >> { $this } // this shorthand
      ````php
      // source                                |   // expansion
      class Foo {                              |   class Foo {
          protected $a = 1, $b = 2, $c = 3;    |       protected $a = 1, $b = 2, $c = 3;
                                               |        
          function getProduct(): int {         |       function getProduct(): int {
              return $->a * $->b * $->c;       |           return $this->a * $this->b *$this->c;
          }                                    |       }
      }                                        |   }
      ````
      by _[@at15][gh-at15]_ 
      
  - Laravel
    - [Activitylog](https://github.com/spatie/activitylog), 记录用户操作.
    - [7to5](https://github.com/spatie/7to5), 把 php7 代码转成 php5.
  - 其它
    - [GifHub](https://github.com/DrewML/GifHub), Quickly insert GIFs in GitHub comments
    - [piwik](https://github.com/piwik/piwik)
  
      > Piwik is the leading open alternative to Google Analytics that gives you full control over your data. Piwik lets you easily collect data from websites, apps & the IoT and visualise this data and extract insights
    - [glide](https://github.com/Masterminds/glide), package management tool for golang. 
  
      > package management tool for golang, use vendor (which is support by default in 1.6 @gaocegege you can use environment variables to enbable it  in 1.5.x, set `GO15VENDOREXPERIMENT` to 1)
      > a short explain for vendor by the author? of this tool http://engineeredweb.com/blog/2015/go-1.5-vendor-handling/ 
      > guess we could move Ayi from godeps to glide. _[@at15][gh-at15]_ 
    - [wakatime](https://github.com/wakatime/wakatime/tree/master/wakatime), Command line interface used by all WakaTime text editor plugins.
  
      > the cli tool used by all wakatime plugin, if it use waka time api, then we can impl a wakatime server, and use it for project management. _[@at15][gh-at15]_ 
    - [che](https://github.com/eclipse/che Next-generation), Eclipse IDE. Open source workspace server and cloud IDE maybe better than https://c9.io/
    
      > it uses docker. _[@at15][gh-at15]_
      
## 花边
  - [Pygments](https://pygments.org), utility used to highlight syntax.
    
    Sample Usage:
    
    `alias ccat='pygmentize -g -O style=colorful,linenos=1'`
    
    ![image](https://cloud.githubusercontent.com/assets/3363954/13743785/c743ddcc-ea1e-11e5-964f-286193331d5f.png)
    
  - [Minecraft to run artificial intelligence experiments](http://www.bbc.com/news/technology-35778288)

    [![The AIX platform will let researchers test their artificial intelligence software in Minecraft's worlds](http://ichef-1.bbci.co.uk/news/660/cpsprodpb/1675A/production/_88749919_1-1.jpg)](http://www.bbc.com/news/technology-35778288)
    
  - [openresty 最佳实践 from 360](https://moonbingbing.gitbooks.io/openresty-best-practices/content/index.html)
  - [ownCloud 9.0 发布，更好的跨服务器共享和扩展性](http://mp.weixin.qq.com/s?__biz=MjM5NjQ4MjYwMQ==&mid=408790628&idx=2&sn=e3b8135cf48c3d8cb851ed02ea533df8) (原文: [
    9.0 is the biggest ownCloud release so far](http://karlitschek.de/2016/03/9-0-is-the-biggest-owncloud-release-so-far/)) from @at15
  - [Steam Web Api](https://developer.valvesoftware.com/wiki/Steam_Web_API), steam API, steam 支持 openid
  - [Mozilla 在 Firefox 46.0 中再次拿 GTK3 集成来挑逗 Linux 用户们](http://mp.weixin.qq.com/s?__biz=MjM5NjQ4MjYwMQ==&mid=411995587&idx=1&sn=846028849a22c95af4549d7d03f61639&scene=0#wechat_redirect)

    ![image](https://cloud.githubusercontent.com/assets/5621298/13744799/3a427bfc-ea25-11e5-8846-04847f705ba0.png)
