Skip to main content

Blog

Coding and living in Finland.

In 2023, my family and I moved to Finland. It has felt like a new journey into the unknown. I keep writing code here, and I also keep recording life, family, work, and the stories along the way.

May 7, 2017

JavaScript Multithreading: Worker and SharedWorker Explained

Discover how Web Workers run heavy computations in background threads to prevent UI freezing and enhance user experience.

16k11

Oct 20, 2016

Developing Complex Single-Page Applications with Gulp, Webpack, ES6, Sass, and React

From project setup to automation tool choices, discover practical tips to avoid pitfalls in building complex single-page applications.

8.9k8

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.

7.6k5

Nov 2, 2015

Generating Verification Codes and Letter Sequences Using ToString

Discover how to easily create random alphanumeric codes and sequences using clever tricks with toString.

6.8k3

Aug 20, 2015

ES6 Modules

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

7.1k2

Jun 26, 2015

Practical Implementation of Trainable Chinese Word Segmentation with Node.js

Hands-on with Node.js to build a statistical and trie-tree based Chinese word segmentation algorithm that lets machines learn word boundaries on their own.

11k3

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.

8.2k10

Apr 8, 2015

Window.postMessage(): A Practical HTML5 Cross-Origin Communication Solution

Easily achieve secure cross-origin communication with Window.postMessage, overcoming traditional limits and boosting your confidence in interviews and development.

7.6k4

Dec 5, 2014

Using Buffers and GLSL Variables - WebGL Learning Notes | WebGL Tutorial (Part 3)

Quickly learn how to create and use buffers in WebGL, and efficiently pass vertex data using GLSL variables.

8.1k4

Dec 3, 2014

WebGL Learning Notes | WebGL Tutorial (Part 2)

Dive into WebGL rendering flow and shaders to easily grasp the core concepts and code of vertex and fragment shaders.

8.7k

Nov 16, 2014

WebGL Learning Notes | WebGL Tutorial (Part 1)

Join the author on a beginner-friendly journey through WebGL basics and learn how to draw your first red rectangle.

11k2

Aug 13, 2014

How I Manage Version Releases Efficiently

A practical guide to an automated, fast, and safe version release process that simplifies deployment risks and rollbacks.

7.0k10

Jul 2, 2014

HTML Input Color Picker (HTML5 Color Input)

Easily invoke the system color picker, respond to color changes in real-time, and offer color options to enhance user interaction.

17k2

Jun 24, 2014

How to Get Server System Time Using JavaScript

Easily obtain server time by reading the Date field from HTTP response headers, avoiding risks of tampered local time.

12k6

Jun 12, 2014

Comprehensive Guide to Flexbox Layout

Explore the core concepts and key properties of Flexbox to master modern web layout techniques with ease.

14k2

Apr 12, 2014

In-Depth Guide and Standards for Manifest

Discover how manifest files enable offline access, speed up loading, and optimize cache management for web pages.

11k3

Mar 31, 2014

Solution for Merged Messages Caused by High-Frequency Socket Sends in Node.js

How to prevent socket data from merging into a single message during high-frequency sends, causing parsing errors.

17k14

Jan 15, 2014

Calculating File MD5 Hash Using HTML5 File API

Easily compute a file's unique MD5 hash by chunk-reading large files with HTML5 File API and processing them with SparkMD5.

43k18

Coding, and living with intention.

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