open HEIF and HEVC files in Windows

A few days ago, I wanted to transfer photos from my iPhone to my computer. But it was very annoying that after copying for a while, the process stopped with some errors occured.

...(Read more)

enable "Open PowerShell window here" in right click context menu

In Windows 10 Anniversary Update and later Creators Update, if we press “shift” key and right click on desktop, drive, folder, folder blackground, we could see the menu “Open PowerShell window here”. It’s convenient for development. But how to reveal the menu?

...(Read more)

思源黑体和思源宋体

字体发布

继 2014 年 Adobe 发布思源黑体之后,现在 2017 年 Adobe 发布了思源宋体!两者都开源!不要钱!走过路过不要错过!这是一种什么精神?!一种国际主义精神!

...(Read more)

Electron as GUI of Python Applications (Updated)

tl;dr

This post shows how to use Electron as the GUI component of Python applications. (Updated version of one of my previous posts.) The frontend and backend communicate with each other using zerorpc. The complete code is on GitHub repo.

...(Read more)

topological sorting using DFS and BFS

topological sorting can be solved using DFS and BFS in asymptotical time complexity $O(V + E)$.

...(Read more)

learn React the easy way

tl;dr

Remember the core idea in React: UI = func(const props, state).

...(Read more)

One of the correct ways to start JS projects in 2017

tl;dr

I choose to use create-react-app, then use ES2016 standard to write react to build the UI and use redux to manage the data, and write flexbox to manage layouts in CSS, if I am going to start a completely new general-purposes front end project in early 2017.

...(Read more)

longest increasing subsequence

tl;dr

This post discusses the $O(n^2)$, $O(n log(n))$ complexity methods to find the length of longest increasing subsequence (LIS), and the way to recover the subsequence.

...(Read more)

梦之诡境

小周醒了过来。

...(Read more)

Edit Distance

introduction

Edit Distance is a famous algorithm problem solved by dynamic programming. I heard it for multiple times, until now I understand the solution after having an algorithm class.

...(Read more)