Described herein are kinase inhibitor compounds of formula (II), methods for synthesizing such inhibitors, and their use in the treatment of diseases. Further described herein are methods, assays and systems for determining an appropriate inhibitor of a protein, including a kinase.