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.

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
Understanding Viewport Units: vw, vh, vmin, vmax
Tech
Apr 11, 2016

Understanding Viewport Units: vw, vh, vmin, vmax

Master responsive font sizes and heights with just a few CSS lines by harnessing the power of viewport units.

Reads7.5kComments5
Read the full story
The Yellow of Huangshan, the Mountain of Huangshan
Life
Oct 7, 2015

The Yellow of Huangshan, the Mountain of Huangshan

A five-day spontaneous journey through Huangshan City and the mountain itself, capturing breathtaking views, serendipitous encounters, and the rediscovered joy of travel where both body and soul are truly on the road.

Reads6.1kComments5
Read the full story
ES6 Modules
Tech
Aug 20, 2015

ES6 Modules

Discover the essentials of JavaScript modular management with a clear guide to export and import in ES6.

Reads7.0kComments2
Read the full story
JavaScript Object Conversion: toString and valueOf Explained
Tech
Apr 20, 2015

JavaScript Object Conversion: toString and valueOf Explained

Explore how JavaScript objects convert to primitive values using toString and valueOf, uncovering the rules and common pitfalls.

Reads8.1kComments10
Read the full story

Coding, and living with intention.

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