Why does the asyncio’s event loop suppress the KeyboardInterrupt on Windows?

There is workaround for Windows. Run another corouting which wake up loop every second and allow loop to react on keyboard interrupt Example with Echo server from asyncio doc async def wakeup(): while True: await asyncio.sleep(1) loop = asyncio.get_event_loop() coro = loop.create_server(EchoServerClientProtocol, ‘127.0.0.1’, 8888) server = loop.run_until_complete(coro) # add wakeup HACK loop.create_task(wakeup()) try: loop.run_forever() except … Read more

What std::locale names are available on common windows compilers?

Ok, there is a difference between C and C++ locales. Let’s start: MSVC C++ std::locale and C setlocale Accepts locale names as “Language[_Country][.Codepage]” for example “English_United States.1251” Otherwise would throws. Note: codepage can’t be 65001/UTF-8 and should be consistent with ANSI codepage for this locale (or just omitted) MSVC C++ std::locale and C setlocale in … Read more

Ndk-build: CreateProcess: make (e=87): The parameter is incorrect

Maybe the LOCAL_SHORT_COMMANDS flag, to be set in your Android.mk, could help you. It is designed to overcome the limitations on the number of characters a Windows command can handle. According to $(NDK folder)/docs/ANDROID-MK.html: LOCAL_SHORT_COMMANDS Set this variable to ‘true’ when your module has a very high number of sources and/or dependent static or shared … Read more

How to create minidump for my process when it crashes?

You need to programatically create a minidump (with one exception, see next link). CodeProject has a nice article on MiniDumps. Basically, you want to use dbghelp.dll, and use the function MiniDumpWriteDump() (see MSDN on MiniDumpWriteDump). How effective such dumps are depends very much on the application. Sometimes, for optimized binaries, they are practically useless. Also, … Read more

LESS CSS on Windows

If you don’t want to use GUI to compile LESS on Windows, there is a clean way to get lessc command on Windows command line. It only requires you to install node.js, which is required by original lessc anyway. So, install node.js (http://nodejs.org/) and install “less” module for node.js. The latter provides lessc executable (lessc.cmd … Read more