Li-Zhao's HomePage

I (LI Zhao) am from School of Computer Engineering, Nanyang Technological University, working in Sybase.
This is a memory book for me, so, miscellaneous topics can be found here.
Have fun!

Loading Blog Search...

Tuesday, May 07, 2019

AMD emulator on Hyper-V

AMD CPU based Android emulator is working according to the blog. However, when I tried it with Android Studio 3.4, it kept crashing with error messages like:

Android\android-sdk\emulator\qemu\windows-x86_64\qemu-system-x86_64.exe: WHPX: Failed to exec a virtual processor

Luckily, after my Windows was upgraded to insider preview version 18890.1000, the emulator is working now. And it's a surprise to be much faster than emulator on my old i7 CPU.

Saturday, March 30, 2019

Visual Studio Xaramin debug with Bluestacks

Got a AMD Lenovo A485 with Windows 10 Home, which does not have Hyper-V.  To use it for Visual Studio Xamarin experiments, I want a native Android emulator. Although it can install AMD native Android emulator, with hypervisor windows platform enabled, it does not allow other VMs to be installed, e.g., using Virtualbox. Luckily, Android VMs on Virtualbox or VMWare with TCP/IP based remote ADB support are able to act as Emulator. Bluestacks is another choice.

  • Install bluestacks
  • Enable ADB in bluestacks, this will open 5555 port to connect from Visual Studio

  • Goto Android install directory/android-sdk/platform-tools, run
adb connect localhost:5555
  • For Visual Studio Xamarin Android project, you then could find a new Android device to deploy to.

Monday, January 09, 2017

BPMN and Activiti

A quick guide:

BPMN is easy to be transformed to petri net for formal analysis.

Saturday, April 23, 2016

Fix HDMI audio for ubuntu/NUC

My NUC is hooked to Philips 221E via HDMI cable. The audio is fine if the monitor is never turned off. Once the monitor reboots, the distorted audio really make it unusable.

To solve the problem at ubuntu, append 'tsched=0' to 'load-module module-udev-detect' at /etc/pulse/

Wednesday, August 27, 2014

How to add extra dir to CLASSPATH at spring-boot

Spring-boot has three built-in launchers as real main classes, JarLauncher, WarLauncher and PropertiesLauncher, which could be used to call executable. These launchers set the path to load resources and classes.
Only PropertiesLauncher could be use dir outside the jar file. To add an extra dir 'EXTRA' to classpath:
1. for maven, add the following fragment
2. Use loader.path when execute the jar
java -Dloader.path="lib/,config/,EXTRA/" -jar the.jar

Then, for example, ClassPathResource("") could get from EXTRA dir.

Thursday, April 03, 2014

Lost 3 years

I forgot to migrate my wordpress DB from an expired hosting plan, and the posts from 2001-2004 are lost.

But, well, one word could cover most of the life: babysitter.

Tuesday, February 01, 2011

Lens dropped

Visited universal studio yesterday, a wonderful place.
But, unlucky, my wife lost the lens cap; 1 hour later, the 17-55 lens got dropped, and UV glass is broken, the UV ring is dented. By quicky googling, I found guys spent hours to DIY remove the dented UV.
So, I gave up the chance to do it myself, instead, it's sent to canon service centre today. They helped me to remove the dented UV in 15mins, even gave me a free lens cap.
Huh, the service is great, thanks.