My Profile Photo

Hao's Keeper


A blog to place memos


  1. Escaping Closures

    Escaping Closures A closure is said to escape a function when the closure is passed as an argument to the function, but is called after the function returns. As an example, many functions that start an asynchronous operation take a closure argument as a completion handler. …


  2. CS193P Lecture06-Protocols Shape

    protocol …


  3. CS193P Lecture05-Properties Layout @ViewBuilder

    Clean the Code …


  4. Displaying Dynamic Dates in Widgets

    Displaying Dynamic Dates in Widgets …


  5. Enum Implicitly Assigned Raw Values

    Associated Values …


  6. Widget Run Error

    com.apple.dt.deviceprocesscontrolservice Code When Run Widget …


  7. Java MD5 Encryption

    byte[] digest = MessageDigest.getInstance("MD5").digest("The String"); StringBuilder sb = new StringBuilder(); // transform into hex for (byte b : digest) { sb.append(String.format("%02x", b)); } String token = sb.toString(); …


  8. Java Pattern Match

    Use escape when there are parenthesis in regex. …


  9. Change Maven's Remote Repository in NetBeans8

    https://stackoverflow.com/questions/60031044/how-to-change-mavens-remote-repository-url-in-the-netbeans-ide-from-http-to-ht …


  10. Dart Sass in NetBeans 8.2

    According to How to use Sass with NetBeans on Linux / macOS …