The present invention provides chemical entities or compounds and pharmaceutical compositions thereof that are capable of modulating certain protein kinases such as mTor, tyrosine kinases, and/or lipid kinases such as PI3 kinase. Also provided in the present invention are methods of using these compositions to modulate activities of one or more of these kinases, especially for therapeutic applications.