2016-04-11 Renfei Yu
Push 推送技术说明 [TOC] Java NIO 使用说明 参考资料 Java NIO Tutorial 简介 Java NIO (New IO) is an alternative IO API for Java (from Java 1.4), meaning alternative to the standard Java IO and Java Networking API's. Java NIO offers a different way of working with IO than the standard IO API's. 继续阅读 »
2014-01-26 Kun Ren
r
It is quite easy to get started with R. The very first step is to download R from the official website , and install it. 继续阅读 »
2016-09-28 demon7452
策略模式-Strategy Pattern GitHub源码 定义 The Strategy Pattern defines a family of algorithms(演算法;运算法则;),encapsulates( 总结; 扼要概括; ) each one,and makes them interchangeable(可交换的;可交替的;).Strategy lets the algorithm vary independently from clients that use it. 继续阅读 »
2015-11-20 Klaus Ma
Named namespaces in Google Code Style Namespaces wrap the entire source file after includes, gflags definitions/declarations and forward declarations of classes from other namespaces. 继续阅读 »
2017-02-21 Borg
Connecting to a Replica Set from Pymongo py read_pref = pymongo.read_preferences.ReadPreference.SECONDARY connection = pymongo.MongoClient() # for default localhost:port connection = pymongo.MongoClient(host=['mongodb://localhost:27001', 'mongodb://localhost:27002'], replicaSet="setName", w=1, j=False, read_preferenc 继续阅读 »
2014-08-08 Kun Ren
(This post is rewritten to adapt to the latest release of pipeR) Pipeline is receiving increasing attention in R community these days. It is hard to tell when it begins but more people start to use it since the easy-and-fast dplyr package imports the magic operator %>% from magrittr, the pioneer package of pipeline op 继续阅读 »
2019-01-10 Alex Sun
一、Hello World 使用镜像的代码为: ```js const http = require('http') const os = require('os') const hostname = os.hostname() const server = http.createServer((req, res) => { res.writeHead(200, { 'Content-Type': 'text/plain' }) res.end(Hello world from ${hostname}) }) 继续阅读 »
2017-01-18 JustWe
AppCode 中添加了直接对CocoaPods的关联: 但是直接关联 Ruby SDK 和 CocoaPods 的时候会发现提示错误: ruby Usage of the constant `Pod::SourcesManager` is deprecated, use `Pod::Config.instance.sources_manager` instead (called from /Applications/AppCode.app/Contents/bin/cocoapods_common.rb:4:in `init_master_repo') Usage of the co 继续阅读 »
2015-05-07 summer
最近在学习Tkinter的知识,这使用图片时发现不能正常显示,google一下,发现Tkinter默认支持gif格式,使用其他格式的文件需要安装PIL模块。不过在安装过程中出现了一下错误问题: ``` 1 warning generated. clang: warning: -framework Tcl: 'linker' input unused clang: warning: -framework Tk: 'linker' input unused In file included from _imagingtk.c:19: /Applications/Xcode.app/Contents/Developer/Platform 继续阅读 »
2015-12-14 Klaus Ma
Volumes in Docker The following command mounts volumes from host with uid/gid: docker run -i -t -v $HOME/test:/opt/test -u=10:10 ubuntu 继续阅读 »