How do I exit a WPF application programmatically?

To exit your application you can call As described in the documentation to the Application.Shutdown method you can also modify the shutdown behavior of your application by specifying a ShutdownMode: Shutdown is implicitly called by Windows Presentation Foundation (WPF) in the following situations: When ShutdownMode is set to OnLastWindowClose. When the ShutdownMode is set to OnMainWindowClose. When a … Read more

Trying to run Flask app gives “Address already in use”

It means there’s another service’s using that port (8080 in this case). Maybe because you forgot close another running Flask app and it’s using 8080 port. However, you could change the port you’re using, for example change it to 4444 like this: But anyways, I think you’d like to know which program is using that … Read more

CSS not working in Chrome

Comparing css links between the page you referenced and sub-pages, you have a “media” attribute in your link: Problem: Working: Try removing the “media” attribute and it should work fine. More specifically, it does not appear that “only” is a valid operating for the media attribute. See this W3Schools page for details.

Change default ‘delimiters’ in excel

I am using Excel for Mac 2016 on macOS Sierra software. Although I have been successfully copying and pasting CSV files into excel for some time now, recently, they have begun to behave in an odd way. When I paste the data, the content of each row seems to split over many columns. Where as … Read more

Python official installer missing python27.dll

At least for the ActiveState Python distribution, and in the official Python distribution: The dll is in where NN is the version number. On a 64-bit, a 32 bit dll will be installed here: and a running 32 bit application will magically translate this to the proper path, http://en.wikipedia.org/wiki/WoW64 When I link againsy Python27, I … Read more

Hive: how to show all partitions of a table?

I have a table with 1000+ partitions. “Show partitions” command only lists a small number of partitions. How can i show all partitions? Update: I found “show partitions” command only lists exactly 500 partitions. “select … where …” only processes the 500 partitions!

Using regex to match any character except =

I am trying to write a String validation to match any character (regular, digit and special) except =. Here is what I have written – But, it matches the input string “2009-09/09 12:23:12.5=” with the pattern. How can I exclude = (or any other character, for that matter) from the pattern string?