1st Level – Survive

  • i → Insert mode. Type ESC to return to Normal mode.
  • x → Delete the char under the cursor
  • :wq → Save and Quit (:w save, :q quit)
  • dd → Delete (and copy) the current line
  • p → Paste


  • hjkl (highly recommended but not mandatory) basic cursor move (←↓↑→). int: j looks like a down arrow.
  • :help <command> → Show help about <command>. You can use :help without a <command> to get general help.
    阅读全文 »


MinGW, a contraction of “Minimalist GNU for Windows”, is a minimalist development environment for native Microsoft Windows applications.
MinGW includes:

  • A port of the GNU Compiler Collection (GCC), including C, C++, ADA and Fortran compilers;
  • GNU Binutils for Windows (assembler, linker, archive manager);
  • A command-line installer, with optional GUI front-end, (mingw-get) for MinGW and MSYS deployment on MS-Windows;
  • A GUI first-time setup tool (mingw-get-setup), to get you up and running with mingw-get.
阅读全文 »

What is Markdown?

Markdown is a lightweight markup language with plain text formatting syntax. It is designed so that it can be converted to HTML and many other formats using a tool by the same name.
Wikipedia Markdown

阅读全文 »


Welcome to my blog! In this my very first post, I will record my experience of building this blog with the help of Github Pages and the amazing Hexo! This not only keeps a record of what I did, but also may help those who want to build a personal blog site.

Static sites can be hosted anywhere and are fast to serve and easy to cache. Github Pages offers a very fast way to host your site and Hexo is a static blogging framework built on Node.js. Using Hexo, you can publish Markdown documents in the form of blog posts. Blog posts and content are processed and converted into HTML/CSS, which is sourced from the default or custom template theme files. All of the software in Hexo is modular, so you can install and set up exactly what you need.

Ok, let’s get down to the business.

阅读全文 »

Quick Reference

Quick Reference
Key List (Keyboard, Mouse, Joystick)

阅读全文 »

LED Timing Switch

  1. telnet or use Winscp to connect to Router.
  2. cd /jffs/scripts/
  3. nano -w /jffs/scripts/services-start
阅读全文 »


This project designed a robotic system which can solve a randomly scrambled Rublik’s 3x3 cube. This robot uses Android OS as the computing platform and STM32 as the controller. Both communicate via Bluetooth and then control the robot arms to solve the Rubik’s Cube. Different from the way of color recognition based on RGB color model, here introduced k-nearest neighbors algorithm (k-NN) in color recognition, which eliminated the influence of light intensity on recognition, so that the rate of color recognition reached a very high precision. Kociemba algorithm has the least steps to solve the cube, with an average of only 21 rotations, and it can be figure out in milliseconds. The introduction of Kociemba algorithm greatly shorten the solution time. In addition, the binary tree model is used to optimize the solution steps, which significantly reduces the execution time of the servos. The ideas of the pulse increment interpolation in CNC system also applied to optimize servos control, which achieve a good balance between speed and stability.

阅读全文 »