Flash ZTE Blade Q Lux

Trying to flash my niece’s phone with other rom which hope to have light¬†weight OS, but no luck and end up with infinite boot screen load ūüôĀ

Google around¬†but also no luck to get any useful info (at least for this model of phone), some people sharing to use SP Flash,¬†¬†any other alternative which doesn’t work for my case too. End up I found the solution from ZTE site, which is to download the original rom and flash it…. phew….

  1. Download original rom from ZTE support or here.
  2. Copy into sd card (FAT32) formatted.
  3. Boot your phone into recovery mode by pressing Volume Up + Power key.
  4. Press Power key again once you are in recovery mode to enter menu selection mode.
  5.  Press Volume Down key to select the menu and Volume Up key to enter.
    (Recommend to wipe data/factory reset before apply update from sd card)
  6. Done!

file_007 file_001 file_003 file_004 file_005 file_006file_000

 

 

Java Runtime Class Reload

Some call it hot deploy, some refer to runtime class reload/redefine, but whatsoever….
It is just mechanism to reload compiled class file during jvm runtime, to avoid ordinary java development life cycle of “code change -> build -> deploy”, which will significantly save lot’s of wait time (especially when you have multiple modules dependency project).

Both open source project: HotSwapAgent and Spring-Loaded works pretty well for me, but if you are looking for commercial product, JRebel will be the choice.

 

Windows Multiple Tab Terminal

I have been using Cygwin¬†quite sometime for my development task before ubuntu bash on Windows. Even Windows can group similar program into single task bar icon but open different type of console still¬†occupying task bar spaces and most importantly, it doesn’t look nice since all of them are console for me.

non-multitab

so I use Console to manage it.

console2

Everything working fine except it cannot maximize by clicking on the top right maximize icon, until I found ConEmu which solve my problem and I’m start using it from now on. Of course maximize the windows is just one of the highlight here and many more configuration is available.

multitab-terminal

If you notice from the image, I open Ubuntu Bash, PowerShell, Cygwin, Git Bash and Command Prompt in different tab ūüôā

 

 

Refused to get unsafe header “Content-Disposition”

Hit¬†into this error when tying to get the¬†“Content-Disposition” header using XMLHttpRequest.

Finally found the solution is to include CORS access control headers in HTTP¬†response….

Take note that it’s not¬†Access-Control-Allow-Headers but¬†Access-Control-Expose-Headers

Credit to this stackoverflow post.

 

Business Hour Format

I’m creating a form which allow user to key in multiple days of week with multiple operation hours.

I want the format to save as below, but I found it tedious to reformat for displaying using normal javascript. Look into lodash and found it very handy ūüôā

Format to display:

Plunker here

Reference: schema.org

 

My New Gadget – Pine64

img_5615.jpg
Here is how I did to install the OS (using MacOS)

  1. Download image from Pine64.com or Pine64.org.
  2. Format your Micro SD card using Disk Utility.
    diskutil
  3. Launch terminal and list the available disk using diskutil command as below (we going to use disk2 base on the identifier):
  4. Unmount the disk.

     
  5. Unzip the downloaded image and burn the img file into disk.

     
  6. Upon burning successfull, you will see the message as below:
  7. Eject the disk if it still mounted.

    p/s: For Windows user, you may format using Disk Management tool under [Control Panel\System and Security\Administrative Tools\Computer Management], and burn img file using Win32DiskImager. And if you feel the writing speed is too slow in MacOS, you may try using rdisk instead of disk, as they using different write mechanism.

    UPDATED : Just found this handy GUI tool etcher.io to burn image.

Credit to : rayhightower.com && www.hostvirtual.com && serenity.ee

 

Paper

Tap on the app icon, the news feed does not refresh as usual…

After Google Reader, this is second time “giant” kill my favorite apps for “reasons”. I feel upset¬†as ordinary user, wonder how about mates¬†who created Paper.