How to check if a program is using .NET?

There’s a trick I once learned from Scott Hanselman’s list of interview questions. You can easily list all programs running .NET in command prompt by using: tasklist /m “mscor*” It will list all processes that have mscor* amongst their loaded modules. We can apply the same method in code: public static bool IsDotNetProcess(this Process process) … Read more

Python: Getting a traceback from a multiprocessing.Process

Using tblib you can pass wrapped exceptions and reraise them later: import tblib.pickling_support tblib.pickling_support.install() from multiprocessing import Pool import sys class ExceptionWrapper(object): def __init__(self, ee): self.ee = ee __, __, self.tb = sys.exc_info() def re_raise(self): raise self.ee.with_traceback(self.tb) # for Python 2 replace the previous line by: # raise self.ee, None, self.tb # example of how … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)