Posts

How to disable/override Windows 10 Hotkeys with C# -

i'm trying register hotkeys, can't because windows defaults. ctrl+win+1 minimizes current window. i'd else. i'd disable win+left/right. i'm trying handle ctrl+win+arrow in own virtual desktop manager. zvirtualdesktop this has done using c# , win32 api if necessary. absolutely cannot use autohotkey. every page find descibes how can done autohotkey. i'd post code, don't know start. use win32 register hotkeys. assume there way override them, can't find info. does have idea? it possible using keyboard hook. hook class can found on codeproject article using below code prevent win + left or win + right occurring. can use override whichever keys you'd like. this override hotkeys added via registerhotkey win api. once have classes in project can add handlers static hookmanager class below. //it's worth noting here if subscribe key_press event break international accent keys. hookmanager.keypress += hookmanager_keypre...

How to disable git for some project and other project not disable git in Visual Studio Code? -

some project don't want use git monitoring , in other project want keep use git monitoring , use setting "git.enabled": false, "git.path": null, "git.autofetch": false but disable git project , how setting visual studio code git project instead of editor? you add git settings workspace settings.json file. way, vscode ignore git changes project. create or add .vscode/settings.json file. "git.enabled": false this way of other project continue have git enabled.

asp.net core - AspNetCore Updating Packages from the Server -

is there way detect, , update packages aspnetcore application deployed on server without redeploying? as example of i'm hoping achieve, can think of application wordpress able detect version update , notify admin user of available update, , allow admin user initiate live update without developer redeploying site.

java - CXF REST client call with 2-way auth failing with "unable to find valid certification path to requested target" -

i've been iterating through implementing rest call cxf clientbuilder. had earlier problem reported @ have cert file , key file, need build truststore , keystore cxf clientbuilder , i've worked through, it's morphed different. based on response got that, used "openssl" convert key file pkcs#1 pkcs#8. gets me past clientbuilder setup, although next problem see makes me think still have fix something. after creating client, executed code this: webtarget target = client.target(getserverhostport()).path(getserverpath()); builder request = target.request(); response postresponse = request.post(entity.text("tokenid=" + token)); this results in following: caused by: javax.net.ssl.sslhandshakeexception: sslhandshakeexception invoking https://<hostport>/token/tokenval: sun.security.validator.validatorexception: pkix path building failed: sun.security.provider.certpath.suncertpathbuilderexception: unable find valid certif...

java - I get an identifier expected error. Why? -

why getting identifier expected errors here? separate class main class, used describe rooms have move throughout. but, not know why getting error. public class describeroom{ protected int roomnum; public describeroom(roomnum){ this.roomnum = roomnum; }//end constructor public string describe(roomnum){ string[] room = {"you find in nicely trimmed front yard. there front door north.", "you walk southern part of main hall. can't amazed decor.you see front door south, , rooms east , west. there more of hall north.", "you in northern part of main hall. south rest of hall, , there doors north, west , east.", "you walk bathroom. smells of lemon. there doors south , east.", "you walk tidy bedroom. there doors south , east.", "you walk living room. has couches , sized television. there doors west , south.", "you walk d...

Why mp4 video captured+shared from my android device won't open in gmail? -

i have app capturing video standard mpeg4 video/audio mime types (video/mp4v-es + audio/mp4a-latm) , played on both android , windows machines right. can share whatsapp without issue. the thing is, when share using gmail, file can played on pc if download file, cannot open in gmail reason. the error seems it's youtube problem. video shared file captured directly camera. is there can make file shared properly, may open in gmail's video player?

swift - Do I need [weak self] or [unowned self] for a Singleton in the Closure? -

class test { private init() {} static let shared = test() func test() { } } let closure: ()->void = { test.shared.test() } closure() the code above simple. want know if have mark weak or unowned singleton. , why? no, because self not used (explicitly or implicitly) in closure.