xmake provides some project templates, you can easily create an empty project.
Create a c++ console project:
bash
xmake create -l c++ -t 1 demo
or xmake create --language=c++ --template=1 demo
Create a c static library project:
bash
xmake create -l c -t 5 demo
or xmake create --language=c继续阅读 »
今天代码写着写着就莫名闪退了,手机也没有“程序停止运行”的提示,logcat也没有看到蓝色的调用栈log,这样的闪退最是蛋疼了,还好必现。复现几次之后,终于从logcat中看到了一行可疑的log:A/Looper: Could not create epoll instance. errno=24,看起来又是在native层闪退了。本文就把这个问题的分析解决过程记录了下来。继续阅读 »
We create an empty console project first:
```bash
$ xmake create -P ./hello
create hello ...
create ok!👌
```
And xmake will generate some files:
```bash
$ cd ./hello
$ tree .
.
├── src
│ └── main.c
└── xmake.lua
```
It is a simple console program only for printing hello xmake!
```bash
$ cat ./src/main.c
incl继续阅读 »
Creat second disk for k8s
In Vagrantfile, add the following customized command to create disk for k8s source code.
The vagrant/virtual box will create a disk with only 10Gi by default, which is not enough for k8s's build & test.继续阅读 »
How To Use the Widget Factory
To start, we'll create a progress bar that just lets us set the progress once. As we can see below, this is done by calling jQuery.widget() with two parameters: the name of the plugin to create, and an object literal containing functions to support our plugin. When our plugin gets called,继续阅读 »
Swarm on Mesos Overview
Swarm API gets REST API request, and then create a task and put it into message queue.
Swarm Cluster (registered as Mesos framework) gets offer from Mesos
Swarm Cluster picks up a task from message queue
Swarm Cluster calls Scheduler’s routine to gets target host
Swarm Cluster calls Mesos 继续阅读 »