原创 Regular Expression - Posix
1. Character Class [:alnum:] // match number [:alpha:] // match char [:lower:] // match lower case char [:uppe
原创 Python Beginner
Python is an implicit type language, which means you don't need to declare a type for the variable, only you need to do
原创 Android - Fragments
Fragment is like a portion of user interface. We can use multiple Fragments in one Activity, or reuse one fragment
原创 Python - access network
TCP Network Transport Control Protocol(TCP) is built on top of IP. TCP assumes IP might lose some data, so tcp will
原创 Linux Command
1. The format of Command: command [option] [file] The type of file ( - file , d directory , l shortcut ) (rig
原创 Matching Game based on JS
Using JavaScript to realize a matching game in web browse. Purpose: find the extra “smile” in the left side, compar
原创 Selection sort
Java implementation: public class Selection{ public static void sort(Comparable[] a) { int N = a.length
原创 Bootstrap - navigation
Will Edit Later… about the ‘class’ about nav <!DOCTYPE html> <!-- saved from url=(0077)https://d396qusza40orc.cloud
原创 ShellSort
The idea of Shellsort is moving entries more than one position at a time by h-sorting the array. h = 4 L E E A M H
原创 Merge Sort
The main idea of merge sort is: Divide array into two halves Recursively sort each half Merge two half The purpose
原创 Android - Custom View
在很多時候,Android自帶的控件並不能滿足我們編程的需求。這個時候就需要我們開發出美觀,功能完善的自定義控件。在智能燈泡的APP這個項目中,需要SlideMenu控件使得界面更加充實,需要ColorPickerView控件來自定義燈泡
原创 How back-Propagation works
In order to minimize the cost function, we expect small changes in weights lead to samll changes in output. So we can u
原创 JavaScript - This
One of most confusing mechanisms in JavaScript is the this identifier. It’s a special identifier keyword that’s automat
原创 Android - Handler機制
在Android系統中Activity View的更新的操作是非線程安全的,例如:如果多個線程併發的去操作同一個View,那麼系統就可能不知道如何處理而導致程序無法快速響應而崩潰。爲了防止出現這個問題,Android官方就規定了只允許創建
原创 Puzzle - Light Bulb Switching
Light Bulb Switching Teaser The title of this quesion is easy to understand. There are 100 light bulbs with label 1 to