普通视图

Basic example of running WebAssembly with Go

2025年7月17日 14:02
WebAssembly is a low-level, assembly-like language that brings near-native performance to browsers. WebAssembly allows developers to code in their familiar programming languages such as C/C++, Rust, Go, Python, and so on. The code is then compiled into the wasm binary format and can be executed in browsers . WebAssembly was first released in 2017 and … Continue reading Basic example of running WebAssembly with Go

mmap – an effective way of reading/writing large files

2025年7月15日 23:53
When operating with files in programming, we often read entire file content into physical memory. While writing the code doesn’t take much time, what happens behind the scenes is far more complex. During the process, your program has to invoke multiple system calls between buffers in kernel and user spaces back and forth which is … Continue reading mmap – an effective way of reading/writing large files

Build a speech transcription demo with OpenAI’s Whisper model in-browser using Transformers.js

2025年6月27日 11:53
Transformers.js Transformers.js is a Javascript implementation of the Python library transformers, which was developed by HuggingFace. Transformers.js uses ONNX Runtime to run pre-trained AI models with JavaScript. Long story short, ONNX Runtime allows developers to share neural network models interchangeably among frameworks and support a wide range hardwares. Common tasks supported by Transformers.js: Natural Language … Continue reading Build a speech transcription demo with OpenAI’s Whisper model in-browser using Transformers.js

cloudflared 用起来爽歪歪😊

作者 springwood
2025年3月1日 15:55
(Abstract)感觉用了 cloudflared 之后,服务器已经没有暴露 SSH 端口的必要了。但是注意 cloudflared 默认会自动更新,更新后需要手动启动才能运行。如果是远程机器且无 root 权限的,注意关闭自动更新功能。

利用 WireGuard 搭建 VPN 用于远程访问家庭局域网

作者 springwood
2025年1月24日 11:26
(Abstract)在 OpenWrt 路由器上安装 WireGuard 服务端可以用于远程访问家庭局域网,教程网上不少。可是有几个坑容易忽略。一是对 Allowed IPs的设置,服务端和客户端是不一样的。二是有些地方需要酌情设置 MTU。

把红米 AX5 路由器刷成了 OpenWrt 系统

作者 springwood
2025年1月21日 23:14
(Abstract)划重点:第一,Uboot 和 MIBIB 刷写件是可以免费获得的,不用花钱买。第二,要用 Chrome 浏览器来操作 web 界面。第三,用 openwrt.ai 这个网站自行构建最终固件,不要用网上现成的,特别是那些骗钱的。

Deploy Grafana & Prometheus metrcs tracking system for your Go program

2019年9月10日 14:06
Step 1: integrate prometheus for let prometheus get metrics from go program, we need prometheus/client_golang to collect some informations import ( "github.com/prometheus/client_golang/prometheus/promhttp" "net/http" ) func main() { // ... http.Handle("/metrics", promhttp.Handler()) http.ListenAndServe(":9200", nil) } Step 2: Set up Prometheus Server configuration for Prometheus Server global: scrape_interval: 15s # Set the scrape interval to every 15 … Continue reading Deploy Grafana & Prometheus metrcs tracking system for your Go program

Use Azure Devops Pipeline to build && deploy your project

2019年5月31日 00:09
this post will teach you how to deploy your own Docker registry and how to use Microsoft Azure Devops to automatically building your Github Go project, and deploy to your Docker Swarm Server How it works Pipeline download your github project Build your code by Dockerfile, make docker image then push to your own Docker … Continue reading Use Azure Devops Pipeline to build && deploy your project

Note of MongoDB

2019年3月14日 17:14
Concept Structure: Database -> Collection -> Documents Compare to Mysql: Collection VS. Table Document VS. Row Field VS. Column Collection is not strict about what goes in it Operations Databases // create database if it's not exists create it then switch current database use mydb // show current database db // list dbs , if … Continue reading Note of MongoDB
❌