Words of Today

Words of Today is a web app which highlight a sentence everyday. Most of the sentence were collected by myself over the years and some of them I think are quite meaningful. So have a look at it: https://wordsof.today   Thanks

OnTriggerEnter2D v.s. OnCollisionEnter2D

OnCollisionEnter2D: Some collision really happened, means two objects collide with each other. OnTriggerEnter2D: Collision not really happened when you set up Is Trigger is true. Two objects, one with Is Trigger off (Object A), the other with Is Trigger on (Object B). So Object A can pass Object B. Few things in order to make sure
Read More »

Load local html resource on Android

Local html and sources are necessary when you try to show an error page dealing with situation such as 404, 500 error happened on remote server. First, create a new class named MyWebViewClient: package apeapp.webviewclient.testwebviewclient; import android.os.Build; import android.util.Log; import android.webkit.WebResourceRequest; import android.webkit.WebResourceResponse; import android.webkit.WebView; import android.webkit.WebViewClient; class MyWebViewClient extends WebViewClient { final String TAG
Read More »

Fastlane Practise with Android and iOS

Fastlane Fastlane “The easiest way to build and release mobile apps”. fastlane handles the majority of the manual works, which sig including the following features: FREE Build Alpha/Beta/Production binary, ipa for iOS, apk for Android Automatically Sign ipa using Apple Provision File for iOS Automatically Sign apk using Android Keystore for Android Automatically Upload to
Read More »

Install both Python 2 and 3 on your mac

Step 1: Install Python3 Use brew install python to install python3 on the mac, current version is Python 3.6.5. If your mac has a python2 already, brew will ask for an upgrade, which is fine. # Going to install python3 brew install python # Going to upgrade brew upgrade python Step 2: Install Python2 Homebrew
Read More »

Create an Auto build script for Aseprite on Mac OS

Aseprite is a famous 2D pixel art tool that allow you to create 2D animations, sprites, and any kind of graphics for games. It is not free, you can get a copy from Steam for USD $14.99. http://store.steampowered.com/app/431730/Aseprite/. However, it is open sourced on github, you can create a build by yourself at anytime. This
Read More »

Endless scene in Unity

In Unity sometimes we want to move our characters in a endless background, such as Runner or Flappy Bird. Such game required infinite loop of scene. One of the solutions comes to mind is moving the camera along with the background. To achieve this is quite simple, the whole idea is to attach the background
Read More »

Create a Production Certificate

While doing iOS Apps, production certificate expiration sounds a scary thing but it won’t affect anything from users’ perspective. Our apps are still live in App Store, users can still download and use them. The only thing will be impacted is our ability to sign apps, in other words, we cannot create new production builds
Read More »

Setup Build Types on Fabric in Android Project

Find out Normally in a project, Build Type is used for different development stages, such as Debug and Release. In practical, Debug might output some logs. But basically Debug and Release are considered as a same application. Product flavors can let your application have different versions, such as free or paid. Build Types App packaging
Read More »