windows

ConsoleZ maven color output

三世轮回 提交于 2021-02-19 03:07:10
问题 Recent maven versions do colored output in terminal. Git Bash shows correct colors, but ConsoleZ configured to use git bash does not. It just outputs raw color codes. Does anyone know how to fix it $ mvn clean [←[1;34mINFO←[m] Scanning for projects... [←[1;34mINFO←[m] 回答1: I met the same issue in Window10 with Git Bash in both Console2 and ConsoleZ (try different configuration but it does not work). After a lot of attempt, I decided to give a try to ConEmu. Amazing, it works perfect. I can

MMC could not created the snap-in SQL Server configuration manager

心不动则不痛 提交于 2021-02-19 02:53:11
问题 When i tried to connect to sql server configuration manager in sql server 2008. It shows error MMC could not create the snap-in. It was working perfectly till last night. What can be the reason, how can i solve it. But in background sql server is working perfect. 回答1: Win button + R , then type mmc and press enter. Choose File->Add/Remove Snap-in . Click Add to Console Root and find the "SQL Server Configuration Manager" You will be able to use it from there or replace existing console by

Why won't cygwin read the .ssh/config file in my home directory?

半腔热情 提交于 2021-02-19 02:50:51
问题 I am using cygwin and I am trying to set up an .ssh/config file. Cygwin's folder is in my C: drive. My Home directory is C:\Users\USER. I have noticed that when I edit C:\Users\USER.ssh\config, cygwin does not even notice it (even though it notices the other files I have in my USER folder, i.e. .bashrc). But it does notice the config file if I put it in C:\cygwin64\home\USER.ssh\config. Is there a way to get cygwin to read the .ssh folder in my USER home directory instead? 回答1: Make sure your

CreateMutex fails after impersonation

余生颓废 提交于 2021-02-19 02:49:08
问题 Here's the code where I'me trying to impersonate a user and then create a mutex. The mutex is not getting created. I get ERROR_ACCESS_DENIED error. void Impersonate() { DWORD logonType = LOGON32_LOGON_INTERACTIVE; DWORD logonProvider = LOGON32_PROVIDER_DEFAULT; HANDLE userToken; HANDLE hMutex; DWORD err; LPSTR user = "zoom"; // the user I created myself on my machine. // It has Administrator privileges, and my account, // from which I start the app, is Admin too LPSTR password = "zoom"; LPSTR

Post-mortem crash-dump debugging without having the exact version of a Windows DLL in the Symbol Server

試著忘記壹切 提交于 2021-02-19 02:41:48
问题 Within my application, I use the MiniDumpWriteDump function (see dbghelp.dll) to write a crash dump file whenever my application crashes. I also use a symbol server to store all my executables and pdb files, so that whenever a customer sends me a crash-dump file, the debugger automatically picks up the correct version of the executable and the debug information. I also store Windows DLL's (ntdll.dll, kernel32.dll, ...) and their debug information in the symbol server (using SymChk). The debug

SetConsoleCtrlHandler does not get called on shutdown

試著忘記壹切 提交于 2021-02-19 02:22:55
问题 I wrote an application that runs in a console and needs to do a quick backup before the system shuts down or the user logs out. My test application writes a file with the signal and works when the console window is closed by hand (click on the X). But it does not work when the console is closed on shutdown or logout. From what I have read on MSDN, this should work. The program was compiled using cygwin64, could this be the problem? #include <windows.h> #include <stdio.h> #include <stdlib.h>

Connect to MSSQL from Spring boot application using windows authentication

孤街醉人 提交于 2021-02-19 02:22:28
问题 I am currently using the below properties to connect to a remotely Mssql server from Java spring boot application: spring.datasource.url=jdbc:sqlserver://ip\\domain;databaseName=name spring.datasource.username=abc spring.datasource.password=def spring.datasource.driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver The application runs from both windows and unix servers. I need now to start using the windows authentication instead of the db credentials. This is already configured and

Connect to MSSQL from Spring boot application using windows authentication

我是研究僧i 提交于 2021-02-19 02:22:28
问题 I am currently using the below properties to connect to a remotely Mssql server from Java spring boot application: spring.datasource.url=jdbc:sqlserver://ip\\domain;databaseName=name spring.datasource.username=abc spring.datasource.password=def spring.datasource.driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver The application runs from both windows and unix servers. I need now to start using the windows authentication instead of the db credentials. This is already configured and

How to understand acquire and release semantics?

試著忘記壹切 提交于 2021-02-19 02:17:48
问题 I found out three function from MSDN , below: 1.InterlockedDecrement(). 2.InterlockedDecrementAcquire(). 3.InterlockedDecrementRelease(). I knew those fucntion use to decrement a value as an atomic operation, but i don't know distinction between the three function 回答1: (um... but don't ask me what does it mean exactly) I'll take a stab at that. Something to remember is that the compiler, or the CPU itself, may reorder memory reads and writes if they appear to not deal with each other. This is

Windows .crl to .pem for nginx

限于喜欢 提交于 2021-02-19 01:52:12
问题 I have windows .crl file. Can I convert it into a .pem file to nginx using openssl? openssl crl -in crl.crl -noout -text unable to load CRL 139765490861728:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: X509 CRL 回答1: The error means that your crl file is not encoded properly in PEM format with right header and footer. Have the right PEM encoded crl file. If the CRL is in DER format: openssl crl -in your_current.crl -inform DER -out crl.pem Now you can use crl