2016-06-26 ruki
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 继续阅读 »
2016-03-16 Piasy
今天代码写着写着就莫名闪退了,手机也没有“程序停止运行”的提示,logcat也没有看到蓝色的调用栈log,这样的闪退最是蛋疼了,还好必现。复现几次之后,终于从logcat中看到了一行可疑的log:A/Looper: Could not create epoll instance. errno=24,看起来又是在native层闪退了。本文就把这个问题的分析解决过程记录了下来。 继续阅读 »
2014-07-07 AllanChan
对于一些IOS 开发者而言,管理第三方库的确是一件令人头疼的事情。而Cocoapod 恰恰是解决你这个烦恼的一个第三方管理库。 尽管pod上有许许多多的第三方库提供给开发者使用,但是很多人还是喜欢把自己的一些库或者Helper使用到各个项目上面去,这样不单单是可以提高个人的开发效率。对于以后有新人的加入,项目的重构管理起来都是颇为省劲。下面我就介绍一下如何去制作一个“私有的POD”。 继续阅读 »
2016-07-16 ruki
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 继续阅读 »
2016-07-16 ruki
首先我们通过内置的工程模板创建一个空工程: ```bash $ xmake create -P ./hello create hello ... create ok!👌 ``` 这个时候xmake将会产生一些工程文件,如下: ```bash $ cd ./hello $ tree . . ├── src │   └── main.c └── xmake.lua ``` 这个简单的程序仅仅只是为了打印输出: hello xmake! ```bash $ cat ./src/main.c include int main(int argc, char** argv) { printf("hello xmak 继续阅读 »
2016-10-03 Robert Zhang
Ruby ActiveRecord向数据库的批量写入效率很低:要插入一条记录,你只能先用model的`create`方法构造一个对象,然后保存到数据库;如果你有一批数据要插入,你就要循环调用`create`方法——这一过程可能缓慢到令人难以忍受! 继续阅读 »
2015-01-08 Robin Wen
文/Robin 本站推广 币安是全球领先的数字货币交易平台,提供比特币、以太坊、BNB 以及 USDT 交易。 币安注册: https://accounts.binancezh.pro/cn/register/?ref=11190872 邀请码: 11190872 最近遇到个问题,需要获取表的字符集。 下面做一个演示。 环境: Linux:RHEL 6.1 MySQL:5.1 首先创建测试库,测试表: ``` bash CREATE DATABASE TEST DEFAULT CHARACTER SET UTF8; USE test; CREATE TABLE t(id INT, name VARCHAR(20) 继续阅读 »
2014-12-12 林长宇
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, 继续阅读 »
2017-03-06 Klaus Ma
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. 继续阅读 »
2015-11-21 Klaus Ma
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 继续阅读 »