Prevent Windows workstation (desktop) from locking while running a WPF program

The solution has been pointed out through the comments, but I’m providing a simple starter solution for anyone else arriving via a web search: /// <summary> /// Interaction logic for App.xaml /// </summary> public partial class App : Application { [DllImport(“kernel32.dll”, CharSet = CharSet.Auto, SetLastError = true)] static extern EXECUTION_STATE SetThreadExecutionState(EXECUTION_STATE esFlags); public App() { … Read more

Emacs under Windows and PNG files

You have to copy one of these dlls “libpng12d.dll” “libpng12.dll” “libpng.dll” “libpng13d.dll” “libpng13.dll” to your emacs-23.1/bin/ directory. They require zlib1.dll which you have to copy as well. I did the same thing for jpeg62.dll and giflib4.dll and now my emacs supports jpg, gif and png files. For some reason it does not work if I … Read more

Good or evil – SetParent() win32 API between different processes

You can have a parent-child relationship with the windows in different processes. It’s tricky to get it to work right in all cases. You may have to debug various strange symptoms. Normally, windows in separate processes would get their messages from separate input queues using separate message pumps. When you use SendMessage to a window … Read more

Installing pygraphviz on Windows 10 64-bit, Python 3.6

Updated the repo: [GitHub]: CristiFati/Prebuilt-Binaries – (master) Prebuilt-Binaries/PyGraphviz/v1.5: Using official Graphviz 2.42.2 sources .whls (win_amd64, win32) for currently supported Python versions Newer versions might be added (check one level up) For Python 2.7, they are already built: [UCI.LFD]: Unofficial Windows Binaries for Python Extension Packages – PyGraphviz, an interface to the Graphviz graph layout and … Read more

Do you need License for OS (Windows) inside Docker

The container images will use the underlying OS license. Microsoft calls it supplmental license. You are licensed to use this Supplement in conjunction with the underlying host operating system software (“Host Software”) solely to assist running the containers feature in the Host Software. The Host Software license terms apply to your use of the Supplement. … Read more