windows-10

Windows batch file - start git bash and run git commands

大憨熊 提交于 2020-05-28 07:19:05
问题 I am on windows-10. I want to create a batch-file to automate: Starting Git Bash in project folder Running the following Git commands: eval $(ssh-agent -s) ssh-add ~/.ssh/github_rsa git remote add origin git@github.com:git_user_name/git_repository_name.git My current batch file below successfully starts Git Bash in the project folder, but I have not found anything which helps me learn how to run the git commands. @echo off cd /d C:\project_folder start "" "%PROGRAMFILES%\Git\bin\sh.exe" -

Windows batch file - start git bash and run git commands

偶尔善良 提交于 2020-05-28 07:18:31
问题 I am on windows-10. I want to create a batch-file to automate: Starting Git Bash in project folder Running the following Git commands: eval $(ssh-agent -s) ssh-add ~/.ssh/github_rsa git remote add origin git@github.com:git_user_name/git_repository_name.git My current batch file below successfully starts Git Bash in the project folder, but I have not found anything which helps me learn how to run the git commands. @echo off cd /d C:\project_folder start "" "%PROGRAMFILES%\Git\bin\sh.exe" -

How to change the voice used for SAPI.SPVoice

ぃ、小莉子 提交于 2020-05-28 07:14:36
问题 I would like to be able to select an alternative voice for my Text-To-Speech output. I am using the ComObject SAPI.SPVoice but I am finding that I cannot change the actual voice used. (BTW - I am using SAPI.SPVoice because it works in both PowerShell Core and PowerShell Desktop on Windows 10) ${PromptTTS} = New-Object -ComObject SAPI.SPVoice ❯ $PromptTTS | gm TypeName: System.__ComObject#{269316d8-57bd-11d2-9eee-00c04f797396} Name MemberType Definition ---- ---------- ---------- DisplayUI

What is the correct IEDriverServer version to use with IE 11 through Selenium

て烟熏妆下的殇ゞ 提交于 2020-05-28 05:23:12
问题 I just got updated to Windows 10 (x64). My old desktop had IE 11 but a lower version, as it was running Windows 7. I now have the following IE version: Version: 11.648.17134.0 Update Versions: 11.0.115 I downloaded the latest IEDriverServer.exe that Selenium gave me (3.14). When I run it, when I do the get(url) (various urls), afterwards it fails to find elements. I looked and noticed that before the get(), driver.getWindowHandles() had one entry, but after the get() it had zero entries. This

Create window without titlebar, with resizable border and without bogus 6px white stripe

给你一囗甜甜゛ 提交于 2020-05-24 19:36:52
问题 I want a window without title bar but with resizable frames and shadow. This can easily be achieved by removing WS_CAPTION and adding WS_THICKFRAME, however, since Windows 10, there's a 6px white non-client area. With the following code I create a window and paint all the client area with black, the window gets a left, right and bottom 6px transparent margins, however the top margin is white. #ifndef UNICODE #define UNICODE #endif #include <windows.h> LRESULT CALLBACK WindowProc(HWND hwnd,

Create window without titlebar, with resizable border and without bogus 6px white stripe

匆匆过客 提交于 2020-05-24 19:35:03
问题 I want a window without title bar but with resizable frames and shadow. This can easily be achieved by removing WS_CAPTION and adding WS_THICKFRAME, however, since Windows 10, there's a 6px white non-client area. With the following code I create a window and paint all the client area with black, the window gets a left, right and bottom 6px transparent margins, however the top margin is white. #ifndef UNICODE #define UNICODE #endif #include <windows.h> LRESULT CALLBACK WindowProc(HWND hwnd,

A command or message or DLL call to set automatic hiding of Windows taskbar?

别等时光非礼了梦想. 提交于 2020-05-16 05:37:30
问题 I need to set or toggle auto-hiding of Windows 10 taskbar programmatically. An action bound to a hotkey for productivity and convenience. Is there a command-line command or a DLL call which allows to achieve equivalent of flipping the following switch: Currently I am achieving this by opening the above Settings window and sending keystrokes for search, followed by Down s and Space and Alt + F4 but it is slow and unreliable. This question is not language-specific since DLL calls look pretty

SpeechSynthesizer doesn't get all installed voices 3

此生再无相见时 提交于 2020-05-15 09:44:45
问题 I have added many voices using "Add language" under region and language. These appear under Text-to-speech in Speech. (I am using Windows 10) I want to use these in my app with the SpeechSynthesizer class in System.Speech.Synthesis . When listing the available voices in my application only a handful of those actually available are shown: static void Main() { SpeechSynthesizer speech = new SpeechSynthesizer(); ReadOnlyCollection<InstalledVoice> voices = speech.GetInstalledVoices(); if (File

Hadoop namenode formatting windows - java.lang.UnsupportedOperationException

假如想象 提交于 2020-05-15 09:27:05
问题 I am in a databasing class at school and my professor is having us work with hadoop v3.2.1. In following a youtube tutorial to install on windows, I am stuck on the formatting namenode part. this is what comes up in cmd: 2020-03-15 15:38:05,819 INFO util.GSet: Computing capacity for map NameNodeRetryCache 2020-03-15 15:38:05,819 INFO util.GSet: VM type = 64-bit 2020-03-15 15:38:05,820 INFO util.GSet: 0.029999999329447746% max memory 889 MB = 273.1 KB 2020-03-15 15:38:05,820 INFO util.GSet:

tkinter in Ubuntu inside Windows 10. Error: “no display name and no $DISPLAY environment variable”

送分小仙女□ 提交于 2020-05-14 16:34:26
问题 I have recently installed the Ubuntu app for Windows 10 so that I can use it for a class. I am following some cryptic assignment directions to "try out tkinter". I installed the package python3-tk in the Ubuntu terminal window following instructions located here: How to install and use Tkinter in ubuntu / Debian / Linux mint. So then I execute ~$ python3 with the result Python 3.5.2 (default, Aug 18 2017, 17:48:00) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license"