VirtualTam's bookmarks

  1.  1// THIS WILL SEND AN INTERRUPT TO ALL MATCHING THREADS
     2Thread.getAllStackTraces().keySet().each() {
     3  t -> if (t.getName().contains("PATTERN") ) { t.interrupt(); }
     4}
     5
     6// THIS WILL FORCE-STOP ALL MATCHING THREADS
     7// May be required for recursive loops
     8Thread.getAllStackTraces().keySet().each() {
     9  t -> if (t.getName().contains("PATTERN") ) { t.stop(); }
    10}
    
  2. "This project was started in 2008. The goal was to learn something about programming, electronics and control loops. Because I always need a cool project to learn new things, it was clear that something that can fly had to be built."

    http://shrediquette.blogspot.fr/

  3. TL;DR: you won't.

    This website is rather a good memo regarding each language's foundations:

    • what's its general purpose?
    • how to write core instructions, such as functions, loops, conditional structures?

    I find this kind of reminder quite useful when it comes to documentation languages (e.g. TeX, Markdown)