Reliable bring external process window to foreground with C#

If you want to reliable bring the main window of an external process to the foreground in C#, use the “simulate alt key” technique found at: http://stackoverflow.com/questions/10740346/setforegroundwindow-only-working-while-visual-studio-is-open Just start Notepad, then run the following test in Visual Studio. It should bring Notepad as a maximized window in the foreground. namespace …

Fix: new XMLHttpRequest() Uncaught ReferenceError: request is not defined

I was testing some JavaScript ajax code found at: http://youmightnotneedjquery.com/ and I was getting the error:   Uncaught ReferenceError: request is not defined from ReferenceError: request is not defined    at Object.rli.app.self.makeXmlHttpRequest (http://localhost:50258/Client/Features/Posts/request_is_not_defined.html:27:25)    at Object.rli.app.self.onExecuteClick (http://localhost:50258/Client/Features/Posts/request_is_not_defined.html:55:22)    at HTMLButtonElement.onclick(http://localhost:50258/Client/Features/Posts/request_is_not_defined.html:12:145) request_is_not_defined.html:63 Uncaught ReferenceError: request is not defined     Cause …