Pinned Post

Recent Posts

therecipe/qt:QT 的 Go 绑定: https://github.com/therecipe/qt

打开Flutter动画的另一种姿势——Flare: https://juejin.im/post/5d1ac9e051882579cc3cb88f
Flare动画进阶——创建可互动的一拳超人动画: https://juejin.im/post/5d1dc60a6fb9a07eaa2299e4

想看到按时间排序的微博时间线?带上 is_search=1 查询参数就可以了
https://weibo.com/?is_search=1

试试在树莓派上玩 Golang?
https://github.com/stianeikeland/go-rpio
Raspberry Pi GPIO library for go-lang

有人在使用思源黑体 /思源宋体的时候,一定会碰到这样一些情况:
- 用微软 Office 做 PDF,提示字体无法保存,原因是一般错误
- 用 AutoCAD 作图,无法使用这些字体

由于思源黑体 /思源宋体都是 OTF 格式,碰到这种情况就需要把字体做成 TTF 格式了。有人已经做好了转换,并把字库放在了 GitHub 上面,在此分享一下:

https://github.com/Pal3love/Source-Han-TrueType
https://github.com/be5invis/source-han-sans-ttf/releases
https://github.com/junmer/source-han-serif-ttf

一个使用几何图案艺术化重绘照片的库,基于 Go 实现 https://github.com/fogleman/primitive

使用说明

安装代理软件(翻墙软件、VPN)

首先,得安装一个代理软件(翻墙软件),才能访问一些国外网站。下面快连翻墙软件的下载地址:

下载安装后,注册用户、购买会员后可以连接正常使用。

注册币安交易所账户

注册账号:在手机或电脑上访问网页 https://www.binance.com/zh-CN/activity/referral-entry/CPA?ref=CPA_00IOM1PPAN 注册成为币安交易所账号。请务必记住你的账号信息,很重要。

安装币安APP:安卓版下载地址:https://campone.blob.core.windows.net/campone/BNApp64.apk 用手机下载此安装包安装后,用刚在网页上注册的账号登录。

接下来使用币安APP前,需要在手机上打开快连 并连接VPN。

完成 KYC(实名认证):在APP上登录账号,找到实名认证的地方完成实名认证。使用中国大陆身份信息可审核通过。

一个 Mastodon APP 客户端: https://github.com/shuiRong/Gakki

几种常见的字体子集化方案

FontMin

百度出品,JS实现。
官网: https://github.com/ecomfe/fontmin-app http://ecomfe.github.io/fontmin/
快速开始: https://efe.baidu.com/blog/fontmin-getting-started/

sfntly

Google 开源的 Java 实现的字体子集化方案。

Font­Tools

Python 实现,官网: https://github.com/fonttools/fonttools
Font­Tools 安装与使用简明指南: https://darknode.in/font/font-tools-guide/

中文开源字体集项目,收录了很多开源字体: https://fatetypo.xyz/osfcc/ GitHub: https://github.com/DrXie/OSFCC

MacOS 禁用 Adobe Creative Cloud 开机启动:

launchctl unload -w /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist 

终端下将任务切到后台运行:
ctrl+z 发送 SIGTSTP 信号挂起进程,然后 bg 发送到后台运行。
fg 恢复到前台运行。

ffmpeg

ffmpeg -i file.mov  -vf "transpose=0" -vf "scale=iw/2:-1"  file_fixed.mp4
ffmpeg -i file.mov  -vf "scale=iw/2:-1" -an  file_fixed_2.mp4




ffmpeg -i file.mov -t 10 -vf "transpose=1,scale=iw/2:-1"  file_fixed_1.mp4
-vf "vflip" 画面内容翻转(镜像)
 -vf "transpose=0" 视频翻转(长宽翻转)

顺时针旋转画面90度ffmpeg -i test.mp4 -vf "transpose=1" out.mp4 
逆时针旋转画面90度ffmpeg -i test.mp4 -vf "transpose=2" out.mp4 
顺时针旋转画面90度再水平翻转ffmpeg -i test.mp4 -vf "transpose=3" out.mp4 
逆时针旋转画面90度水平翻转ffmpeg -i test.mp4 -vf "transpose=0" out.mp4 

水平翻转视频画面ffmpeg -i test.mp4 -vf hflip out.mp4 
垂直翻转视频画面ffmpeg -i test.mp4 -vf vflip out.mp4

go 代理 https://goproxy.io/ 墙内用户不用再为无法加载 go model 发翻了

试了 Transmission 感觉可以卸载迅雷了呀

在 Go 中使用 Protobuf

go get -u github.com/golang/protobuf/proto
go get -u github.com/golang/protobuf/protoc-gen-go

vim  ~/.bashrc
export PATH="$PATH:$GOPATH/bin"  
source ~/.bashrc

protoc --go_out=plugins=grpc:.  *.proto

在使用 gitbook pdf ./ ./mybook.pdf 导出 pdf 时,提示错误 :”InstallRequiredError: “ebook-convert” is not installed.” 按提示前往 https://calibre-ebook.com 下载 Calibre 后,需要创建软链接:ln -s /Applications/calibre.app/Contents/MacOS/ebook-convert /usr/local/bin

FlutterChina 社区开源的 《Flutter实战》 电子书
官网: https://book.flutterchina.club/
Github: https://github.com/flutterchina/flutter-in-action

一些 Rust 学习资料:
RustPrimer: https://legacy.gitbook.com/book/rustcc/rustprimer/details
Rust 三天简易教程: https://www.yuque.com/progfun/rust/tss53d
Rust 中文社区: https://rust.cc

Docker 容器内访问宿主机网络:
Docker 会在宿主机创建一个虚拟网关 docker0,在宿主机上 ip addr show docker0 即可查看网关IP,容器内使用该网关IP即可访问宿主机。