Skip to main content

Home/ Python Programming/ Group items tagged advice

Rss Feed Group items tagged

Chiki Smith

TheHandbookofCheating Taught Me a Lot - 2 views

TheHandbookofCheating is a very helpful book for me. It gave me ideas how to face cheating partners. This book even taught me how to empathize with them than to lash out right away without hearing ...

relationships advice

started by Chiki Smith on 19 Jul 11 no follow-up yet
reckoner reckoner

Lightweight Approach to AOP (aspect-oriented programming) in Python - 0 views

  • aspects.py library provides means to intercept function calls. Functions and methods (also in Python standard library and third party code) can be wrapped so that when they are called, the wrap is invoked first. Depending on the wrap, the execution of the original function can be omitted, or the function can be called arbitrarily many times. Wraps are able to modify the arguments and the return value of the original function. In the terminology of aspect-oriented programming, the library allows applying advices (wraps) to call join points of methods and functions in around fashion.
  •  
    aspect-oriented programming
reckoner reckoner

Kill process based on window name (win32) - 0 views

  • Re: Kill process based on window name (win32) Thank you Roger. Your advice did the trick. For anyone interested, the basic code to terminate a process (politely) would be something like this (hwnd is retrieved using win32gui.EnumerateWindows): # Get the window's process id's t, p = win32process.GetWindowThreadProcessId(hwnd) # Ask window nicely to close win32gui.PostMessage(hwnd, win32con.WM_CLOSE, 0, 0) # Allow some time for app to close time.sleep(10) # If app didn't close, force close try: handle = win32api.OpenProcess(win32con.PROCESS_TERMINATE, 0, p) if handle: win32api.TerminateProcess(handle,0) win32api.CloseHandle(handle) except: pass:
john sega

Online Threats and Dangers - 1 views

I downloaded an audio file from an unpopular website, when I opened it my computer crashed and since then, I have troubles turning it on because it would no longer display the correct desktop setti...

Desktop Computer Support

started by john sega on 13 Jun 11 no follow-up yet
1 - 4 of 4
Showing 20 items per page