Malcolm Ke Win
Malcolm Ke Win
Compile PHP
We now have lua interpreter based on cosmopolition libc.(https://github.com/jart/cosmopolitan/issues/61) How about a PHP interpreter based on cosmopolitian libc? Anyone give a try? After all, PHP has richer functions as a...
I have seen 80000 people to vote a ENS(ethereum name service) proposal on snapshot.org(ipfs) and then it has been written onto a blockchain after 24 hours cooldown period(by safesnap /...
==========reproduce=========== ``` $git clone -b PHP-7.3 --depth 1 https://github.com/php/php-src.git $cd php-src/ $git clone -b master --depth 1 https://github.com/dstogov/php-ffi.git ext/php_ffi $./buildconf --force $./configure --prefix=/usr/local/php7 --disable-all --enable-cli --disable-cgi --disable-fpm --disable-phpdbg --enable-bcmath --enable-hash...
有办法优化ngx_php7把那些yield去掉变成跟ngx_lua一样的写法么? ``` content_by_php ' yield ngx_socket::connect("hq.sinajs.cn", 80); yield ngx_socket::send("GET /list=s_sh000001 HTTP/1.0\r\n Host: hq.sinajs.cn\r\nConnection: close\r\n\r\n"); yield $ret = ngx_socket::recv(1024); yield ngx_socket::close(); var_dump($ret); '; ``` 变成: ``` content_by_php ' ngx_socket::connect("hq.sinajs.cn", 80); ngx_socket::send("GET...
能把CovenantSQL用作简单的DAO(分布自治组织)数据库吗? 比如 一群 音乐发烧友 想维护一份共同口味的 音乐列表 (前提是每个人 已经有了长期在线VPS服务器, 比如我们是程序员音乐发烧友群), 首先第1个成员安装了CovenantSQL, 在成员表tb_members里把自己的公钥insert进去, 然后第2个成员把自己的application/proposal发送到某个临时的DHT表里, 第1个成员可以投赞成或反对票, 超过50%已有成员赞成, 新成员就从DHT表移动到正式的tb_members表里, 投票insert/delete 音乐表 tb_musics 也用类似的简单多数表决法 然后非成员用户可以 只读这个数据库的 tb_members 和 tb_musics, 核心需求就是一旦这个 音乐爱好者数据库 建立起来了, 就没有任何个体成员能破坏掉整个数据库 看了CovenantSQL的testnet文档 没太看明白怎么实现我这个用例,...
``` go get -u berty.tech/go-orbit-db # github.com/libp2p/go-libp2p-core/crypto /opt/lib/go/src/github.com/libp2p/go-libp2p-core/crypto/secp256k1.go:36:36: too many arguments in call to btcec.NewPrivateKey /opt/lib/go/src/github.com/libp2p/go-libp2p-core/crypto/secp256k1.go:62:51: too many arguments in call to btcec.PrivKeyFromBytes /opt/lib/go/src/github.com/libp2p/go-libp2p-core/crypto/secp256k1.go:72:36: too many arguments in call to...
Yesterday, I found Singularity(https://sylabs.io/guides/3.7/user-guide/quick_start.html#install), It's awesome, I think it's far easier to use than docker.(especially its sanbox feature, it's very convenient for finding package changes) And what surprised me even...
I found "barge-rpi.img" here: https://github.com/bargees/barge-os/releases/tag/2.2.2-rpi and 2.14.0-rc2 "barge.img" here: https://github.com/bargees/barge-os/releases. I can upload barge.img into DigitalOcean vps, everything works: https://github.com/diyism/barge-os/blob/master/docs/bargeos_on_digitalocean.md But after I burned "barge.img" into my usb disk with...
I've found a host image for raspberry pi here: https://github.com/bargees/barge-os/releases/tag/2.2.2-rpi I think rpi hardware is not so opensource(for example video driver), so I bought many pine64 boards, I installed android...
I think docker command line tool is very easy to use than VM(virtualbox, vmware, openvz etc).But in docker instance, i can't operate kernel function without influence host kernel(iptables etc). Does...