Skip to main content

Posts

Setup libGDX Android Game Project

These are the steps: Download the project setup tool from  here Open the jar file   Tick Android box, choose an empty folder as destination, and choose AndroidSDK path. You can also tick any extensions you want. Open Android Studio. Choose  Import Project  –> Choose  build.gradle  file in the project root. Start writing your game.  Good luck and have fun.

Getting started with OpenCV4Android using Android Studio 2.0 preview

These are the steps to get started: Download open CV from this  link Extract the file and get OpenCV-android-sdk folder New --> Import Module --> choose OpenCV-android-sdk/sdk/java , and modify the folder of the module folder to what you like, such as:  opencv Open  opencv/build.gradle  change the version of  compileSdkVersion  and  buildToolsVersion  to suit with your project. Press  sync  gradle. Right click  app  module.  Choose Open module settings --> Choose Dependencies tab --> + --> module dependency --> opencv Copy  OpenCV-android-sdk/sdk/native/libs , paste to  app/src/main , and rename folder to  jniLibs Now, you can import and use OpenCV.

My books review: "The 7 Habits of Highly Effective People: Powerful Lessons in Personal Change"

I came across this book when I somehow lost directions in my life. I took a period of time to reflect and redeem myself while reading this book. It helped me a lot, especially in the renewal of my characters and personalities. I would recommend reading this book while building routines and foundations of your life. Re-post of: https://www.goodreads.com/review/show/1426469272?book_show_action=false&from_review_page=1

Simple threejs test

I have a strong passion for animation and game so from time to time, I am testing out libraries and tools to create the animation and game I like. And I came accross threejs which is a library with a lot of nice examples available in  their site . Therefore, I decided to make a simple animation out of it. This is my test  simple-sphere Threejs can produce pretty nice 3D animation with simple code base. However, this is just a starting point, there are a lot to learn and apply. If you have already working javascript for a while and want to make some cool 3D animation, why not try this library out. Have fun!

Bash script: "Hello world!"

Bash script is very nice and important if one is using Unix system. Planning on using bash scripts as much as posible, I would like to share a quick and easy example to start using it: Create a shell call  hello.sh Add the lines to the file: #!/bin/bash echo "Hello world!" Go to the folder contains the file. Type  bash hello.sh . The echo command will print out  Hello world! your terminal

Remove an account in mail app in OSX

Today, I am trying to logout/remove my google acount from app mail in OS X. It is quite confused from the beginning, but finally, I can do that by go to  Internet Accounts  –> choose the account to be removed –> press the  -  button, then accept. Never know why there is no simple logout button on the interface.