Hi, I am Mofei!

Blog

Coding and living,
in Finland.

Writing about engineering, life, and things I'm slowly figuring out.

Read articles in time order, or enter through story collections.

Using Mapbox Maps in WeChat Mini Programs
Tech
Jan 22, 2019

Using Mapbox Maps in WeChat Mini Programs

WeChat Mini Programs don't officially support third-party maps, but with a clever web-view workaround, this post demonstrates how to embed interactive Mapbox maps—covering enterprise requirements, domain verification, and postMessage communication.

Reads2.6kComments0
Read the full story
JavaScript Padding Numbers with Leading Zeros
Tech
Jan 10, 2019

JavaScript Padding Numbers with Leading Zeros

Learn how to pad numbers with leading zeros using a simple one-liner in JavaScript, and watch out for edge cases with overly long numbers.

Reads6.4kComments6
Read the full story
Automatic SSH Deployment with Travis CI
Tech
Dec 27, 2018

Automatic SSH Deployment with Travis CI

From manual deployment to full automation, this post walks through configuring Travis CI to run builds and deploy code to remote servers over SSH.

Reads11kComments0
Read the full story
Writing Code Like a Pro: Code Quality and CI Guide
Tech
Nov 13, 2018

Writing Code Like a Pro: Code Quality and CI Guide

A hands-on guide by Mofei on maintaining high code quality using Travis CI, Tape, nyc, and codecov.io, complete with real-world Node.js examples.

Reads7.3kComments1
Read the full story
Debugging Node.js C++ Addons with VS Code
Tech
Nov 6, 2018

Debugging Node.js C++ Addons with VS Code

A complete guide by Mofei on how to debug native Node.js C++ addons in VS Code using launch.json, breakpoints, and preLaunchTask settings.

Reads8.1kComments0
Read the full story
Debugging Node.js C++ Addons with VS Code
Tech
Jul 13, 2018

Debugging Node.js C++ Addons with VS Code

A complete guide by Mofei on how to debug native Node.js C++ addons in VS Code using launch.json, breakpoints, and preLaunchTask settings.

Reads17kComments18
Read the full story
What's It Like to Work at Mapbox?
Life
Jul 6, 2018

What's It Like to Work at Mapbox?

Mofei reflects on his onboarding trip to Mapbox's US offices, highlighting open communication, inclusive culture, and quirky workplace details like gender-neutral bathrooms and office meme wars.

Reads5.8kComments2
Read the full story
Mofei Projects in 2017: Everything Is a Miracle
Life
Jan 15, 2018

Mofei Projects in 2017: Everything Is a Miracle

A retrospective of Mofei’s major 2017 projects—from data bus Marine to scaffolding tool Keeler and visualization system Visual—highlighting innovations in front-end architecture, developer experience, and urban IoT visualization.

Reads5.2kComments3
Read the full story
Introducing mapv-Editor Beta
Tech
Nov 29, 2017

Introducing mapv-Editor Beta

mapv-Editor is a web-based geographic data editor built on the MapV engine, supporting multi-format data import, customizable base maps, and intuitive layer configuration with a near-native user experience.

Reads7.9kComments5
Read the full story
Simulating a Crossroad with Zebra Crossings Using JavaScript Canvas
Tech
Nov 6, 2017

Simulating a Crossroad with Zebra Crossings Using JavaScript Canvas

This post explores the process of simulating a crossroad with zebra crossings using JavaScript Canvas, covering normalized coordinate processing, road sorting, intersection computation, and canvas transformation techniques.

Reads10kComments9
Read the full story
Generating CSV with JavaScript and Fixing Chinese Encoding Issues
Tech
Aug 22, 2017

Generating CSV with JavaScript and Fixing Chinese Encoding Issues

This post explains how to generate CSV files on the frontend using JavaScript, addressing common issues like Chinese encoding, comma escaping, and custom file names via BOM, data URIs, and the download attribute.

Reads11kComments8
Read the full story
Hi, I am Mofei

Coding, and living with intention.

Subscribe
© 2012–2026 Mofei·Privacy·Terms
Life compiled in code