Quant Stochastic oscillator

Calculation

%K = (Current Close - Lowest Low)/(Highest High - Lowest Low) * 100
%D = 3-day SMA of %K

阅读全文

kcptun ss

KCP - A Fast and Reliable ARQ Protocol

KCP is a fast and reliable protocol that can achieve the transmission effect of a reduction of the average latency by 30% to 40% and reduction of the maximum delay by a factor of three, at the cost of 10% to 20% more bandwidth wasted than TCP. It is implemented by using the pure algorithm, and is not responsible for the sending and receiving of the underlying protocol (such as UDP), requiring the users to define their own transmission mode for the underlying data packet, and provide it to KCP in the way of callback. Even the clock needs to be passed in from the outside, without any internal system calls.

阅读全文

cgroups

Source: https://github.com/torvalds/linux/tree/master/kernel/cgroup

cgroups (abbreviated from control groups) is a Linux kernel feature that limits, accounts for, and isolates the resource usage (CPU, memory, disk I/O, network, etc.) of a collection of processes.

阅读全文

Excel in Python

教条

  • .xls只有65536行, .xlsx有1048576行(2**20), 数据太大乖乖换分析工具
  • openpyxl会先建立一张sheet

阅读全文

Celery In Python

Brokers

rabbitmq

1
broker_url = 'amqp://guest:guest@localhost:5672//'

阅读全文

阅读笔记 Twisted

Preface

Twisted存在Todo List很久了, 之前在有关于与Tornado做抉择的时候, 选择了文档更加让我舒服的Tornado, 虽然也没有舒服到哪里去. 这次重写Monkey组件, 我打算用一些其他新的,或者是完全不一样的东西来完成这件事情.

阅读全文

阅读笔记 Protocol Buffers In Python

在分析狮中做攻城狮 系列文章
这个系列我会将在我在分析部分作为研发工作的日常,技术和思考发出来,供大家参考.

Why

为什么使用Protocol Buffers, 思考这个问题:
How do you serialize and retrieve structured data?

阅读全文

Translation 故障排除提示:5 个最常见的 Linux 问题

故障排除提示:5 个最常见的 Linux 问题

阅读全文

Scala Package nscala-time

A scala package which a wrapper for Joda Time base on scala-time

Installation

SBT

阅读全文

Scala None Nothing Null Nil

  • None是一个object,是Option的子类型

  • Null是所有AnyRef的子类,在scala的类型系统中,AnyRef是Any的子类,同时Any子类的还有AnyVal。对应java值类型的所有类型都是AnyVal的子类。所以Null可以赋值给所有的引用类型(AnyRef),不能赋值给值类型,这个java的语义是相同的。 null是Null的唯一对象。

阅读全文