2014-03-15 Kun Ren
In R, function may not be as special as it is in other programming languages; it is regarded as one of the many types and can be passed as an argument to some other function. The way we deal with other objects such list and data.frame definitely applies to function. Here is a simple example in which we define two funct 继续阅读 »
2014-08-23 Kun Ren
The motivation of pipeline operator is to make code more readable. In many cases, it indeed better organizes code so that the logic is presented in human-readable fluent style. In other cases, however, such operators can make things worse. 继续阅读 »
2015-07-02 Eric Wang
Version:Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:44:40) [MSC v.1600 64 bit (AMD64)] on win32 There are two ways of constructing a software design: one way is to make it so simple that there are obviously no deficiences; the other is to make it so complicated that there are no obvious deficiences. ---- C.A.R. 继续阅读 »
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. 继续阅读 »
2018-07-16 Lingxian Kong
For those who don't know, Barbican is an OpenStack service which provides a REST API designed for the secure storage, provisioning and management of secrets such as passwords, encryption keys and X.509 certificates. Barbican can be used together with other OpenStack services to provide security features, e.g. Octavia u 继续阅读 »
2015-11-20 Klaus Ma
Solution & Estimations: Current solution is to 1.) let Swarm launch tasks by Mesos 2.) for the other API, let Swarm send request to docker engine directly (red arrow) 继续阅读 »
2015-12-10 Klaus Ma
Goal of K8S Security Ensure a clear isolation between the container and the underlying host it runs on Limit the ability of the container to negatively impact the infrastructure or other containers Principle of Least Privilege - ensure components are only authorized to perform the actions they need, and limit the scop 继续阅读 »
2016-10-29 ruki
tbox add a coroutine library with stackfull mode and provide the following features. 1. yield 2. suspend and resume 3. sleep 4. io scheduler with (epoll, poll, kqueue, select, poll ..) 5. supports stream, http and other all io modules of tbox 6. channel 7. lock 8. semaphore 继续阅读 »
2014-08-29 Mithrilwoodrat
#include <stdio.h> #include<limits.h> /* return last byte of x or other bytes of y*/ unsigned bytefun(unsigned x,unsigned y) { return ((x<<24)>>24)|(y&(UINT_MAX-0xff)); } int main() { unsigned x = 0x89ABCDEF; unsigned y = 0x76543210; printf("%x",bytefun(x,y)); return 0; } 继续阅读 »
2016-06-09 ruki
Sources Changelog New features Add task api for running custom tasks Add plugin expansion and provide some builtin plugins Add export ide project plugin(.e.g makefile and will support to export other projects for vs, xcode in feature) Add demo plugin for printing 'hello xmake' Add make doxygen documents plugin Add m 继续阅读 »