В моем предыдущем блоге я писал о Vnode Version Vectors и о том, как они упрощают взаимодействие с Riak, сохраняя при этом небольшой размер логических часов. Я также упомянул о проблеме с «sibling explosion». Сегодняшнее сообщение в блоге будет более подробно описывать проблему sibling explosion и то, как Riak и некоторые ведущие исследователи распределенных систем собрались вместе, чтобы решить эту проблему, используя Dotted Version Vectors.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| LOGGING = { | |
| 'handlers': { | |
| 'logstash': { | |
| 'level': 'DEBUG', | |
| 'class': 'logstash.LogstashHandler', | |
| 'host': 'localhost', | |
| 'port': 5000, # Default port of logstash | |
| 'version': 1, # Version of logstash event schema. Default value: 0 (for backward compatibility of the library) | |
| 'message_type': 'logstash', # 'type' field in logstash message. Default value: 'logstash'. | |
| 'fqdn': False, # Fully qualified domain name. Default value: false. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //from http://www.saltycrane.com/blog/2015/12/switching-emacs-vim-actually-spacemacs/ | |
| Useful Spacemacs commands | |
| SPC q q - quit | |
| SPC w / - split window vertically | |
| SPC w - - split window horizontally | |
| SPC 1 - switch to window 1 | |
| SPC 2 - switch to window 2 | |
| SPC w c - delete current window |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "time" | |
| ) | |
| func main() { | |
| wait := make(chan bool) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "hash/fnv" | |
| "io" | |
| "os" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "log" | |
| "net/http" | |
| "time" | |
| "github.com/alexellis/faas/gateway/metrics" | |
| "github.com/gorilla/mux" | |
| "github.com/prometheus/client_golang/prometheus" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import android.annotation.TargetApi; | |
| import android.content.Context; | |
| import android.content.res.Configuration; | |
| import android.graphics.Bitmap; | |
| import android.graphics.Canvas; | |
| import android.graphics.Matrix; | |
| import android.graphics.PointF; | |
| import android.graphics.RectF; | |
| import android.graphics.drawable.Drawable; | |
| import android.net.Uri; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # see https://github.com/cmaessen/docker-php-sendmail for more information | |
| FROM php:5-fpm | |
| RUN apt-get update && apt-get install -q -y ssmtp mailutils && rm -rf /var/lib/apt/lists/* | |
| RUN docker-php-ext-install mysql mysqli sysvsem | |
| RUN pecl install xdebug-2.5.5 \ | |
| && echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "bytes" | |
| "fmt" | |
| "io" | |
| "strings" | |
| "unicode" | |
| "golang.org/x/net/html" |