windows-10

How to open local .htm file with anchor(#) link in Edge browser from command line?

别说谁变了你拦得住时间么 提交于 2020-01-15 03:14:31
问题 I try to open local .htm file with anchor link in Edge browser from command linе. LaunchWinApp.exe "file:///C:/index.htm#anchor.htm" But Edge browser opens only index page file:///C:/index.htm without additional page. Why is this happening? 回答1: For the time being, you cannot open local files in this manner. You should instead host a web-server out of your target folder, and access the resources via localhost. There are currently discussions taking place within the Microsoft Edge team around

Making commits simpler in Git using PowerShell

萝らか妹 提交于 2020-01-14 11:54:47
问题 I'm using Git and being an old dude, I prefer to punch my will on the keyboard rather than send a rodent on a clicky trip. So, usually when I finish off my work, I'll go something like this in the console. git add . git commit --message "Cure for cancer (or so it feels like)" git push I could have a static script doing that but, regrettably, not every day's contribution is as awesome as the cure for cancer, so I'd need to have a script that takes a parameter (and if none is provided, it could

Making commits simpler in Git using PowerShell

二次信任 提交于 2020-01-14 11:53:28
问题 I'm using Git and being an old dude, I prefer to punch my will on the keyboard rather than send a rodent on a clicky trip. So, usually when I finish off my work, I'll go something like this in the console. git add . git commit --message "Cure for cancer (or so it feels like)" git push I could have a static script doing that but, regrettably, not every day's contribution is as awesome as the cure for cancer, so I'd need to have a script that takes a parameter (and if none is provided, it could

Set system cursor size

[亡魂溺海] 提交于 2020-01-14 07:24:08
问题 Is it possible to set the system cursor size to over 32px by 32px? Currently I am using this code to set the cursors. #define OEMRESOURCE #include <windows.h> #include <chrono> #include <thread> int main() { //Load cursor const HCURSOR customCursor = LoadCursorFromFile(L"Cursor.cur"); //Replace system cursor with loaded cursor SetSystemCursor(customCursor, OCR_NORMAL); //Sleep the current thread to allow the user to play with new cursor std::this_thread::sleep_for(std::chrono::milliseconds

TimeOut connection to symfony.com via http proxy

旧巷老猫 提交于 2020-01-14 01:34:01
问题 New job, new problems:) I would like to write a new Webapp in PHP using Symfony. My PC runs Windows 10 and all HTTP-Requests have to go via a proxy running Squid. Accessing the web and downloading files via Browser (eg. IE) works fine, but the connection to the Internet is quite slow. So I imported all my proxysetting from IE to Windows by netsh winhttp import proxy source=ie Now if I want to create a new Symfony app by php symfony.phar new hellosymf I only get [GuzzleHttp\Ring\Exception

Windows 10 SmartScreen with Code Signing .exe file

梦想的初衷 提交于 2020-01-13 13:45:30
问题 I've created a setup.exe file and loaded it onto my web site for downloading. The .exe file has been code signed with a certificate from godaddy. When downloading the .exe file from my website using win7 it detects the certificate and displays it to be a safe download. On win10 the .exe file downloads fine but when opening the .exe the smartscreen blocks it from opening. I have many users using win10 and don't want to explain to them to turn off smartscreen. What are my options to get this

log4net became very slow with caller location information after Windows 10 Fall Creators Update (1709)

杀马特。学长 韩版系。学妹 提交于 2020-01-13 13:06:13
问题 I known that the documentation of log4net points out that the logging of caller location information can be very slow and shouldn't be used unless the performance of the software is not affected. And until the Windows 10 Fall Creators Update this was the case. Here is a small example project. app.config <?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,Log4net" /> </configSections> <log4net>

Python has stopped working

对着背影说爱祢 提交于 2020-01-13 09:03:13
问题 I'm running a Python script on my windows 10 machine. The script reads compressed data files, stored as .tar.gz, processes it, and then reads the next one. In this manner it processes thousands of files. I run the scipt in a windows10 powershell, and -seemingly randomly- I often get the following error: Some times this happens after a day, sometimes already after a few minutes. I select 'Close program' and the script is terminated. Looking into Windows event viewer, I can see the following

Unable to copy to Windows container ('docker cp') on Windows 10

拈花ヽ惹草 提交于 2020-01-13 07:46:10
问题 I set up Docker for Windows on my laptop and switched from Linux Containers to Windows Containers in Docker's settings (which prompted a couple of restarts and Windows updates). I pulled an image and ran a container based on it using the commands: docker pull microsoft/dotnet-framework docker run -it microsoft/dotnet-framework cmd In a second terminal window, I executed the command: docker cp app container_id:/ and received this error message: Error response from daemon: filesystem operations

Possible to find all Windows processes preventing automatic sleep, w/o admin rights?

不想你离开。 提交于 2020-01-13 04:00:06
问题 The command powercfg -requests will provide a list of processes that are currently preventing a Windows 10 device from automatically entering sleep mode. However, the command requires administrator permissions. Asking for admin access just to perform a simple informational query seems far from ideal. So is it possible to query the Windows 10 API for a similar list, in a user-space application? These processes are passing SetThreadExecutionState() the flags ES_SYSTEM_REQUIRED or ES_DISPLAY