How can I disable a monitor programmatically. From the display settings dialog I can set a monitor to be either a duplicate of another monitor, an extension of the normal desktop or "Disconnected".   Can this be done with powershell or some scripting language like autoit, I'm comfortable with using C# if I need to? I need to be able to run a program and make the 3rd monitor disconnected or enable it as an extension of the desktop.
Are there any tools for Windows 7 that will allow me to enable/disable monitors from the command-line?  For example, my GTX 480 has three outputs (2x DVI and 1x HDMI) but only two displays can be active at any given time.  I'd like for a command-line to allow me to disable one of the DVI monitors and enable the HDMI monitor, etc.  (I've found NirCmd which is an amazing utility but it doesn't seem to support this...)  EDIT: UltraMon seems capable of doing this but I really hoping for a more light-weight command-line solution...
Narrow-phase collision detection algorithms grub issues message at boot - "error - can't find command hwmatch" This question  is exactly what I'm asking but was closed as non reproducible. Mine is very reproducible.  Ubuntu 18.04 freshly installed on a 64-bit UEFI machine. Default grub boot options work fine, but I wanted to add a brief countdown (my normal config).  After editing /etc/default/grub as normal and running sudo update-grub, the countdown works, but I get the error shown in the question title.  I tried the solution (copying files) in the closed question but it didn't seem to fit my configuration. Frankly I found the answer confusing.  I also tried editing /etc/grub.d/10_linux to comment out the IF-THEN structure that uses hwmatch. After that I did a sudo update-grub but I still got the error.  How can I get my countdown and not see this error?  Edit per comments -  Stock grub as installed (all non-commented-out lines shown)  GRUB_DEFAULT=0 GRUB_TIMEOUT_STYLE=hidden GRUB_TIMEOUT=0 GRUB_DISTRIBUTOR=`lsb_release -i -s 2&gt; /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX=""   Edited grub to give countdown (all non-commented-out lines shown)  GRUB_DEFAULT=0 GRUB_TIMEOUT_STYLE=countdown GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR=`lsb_release -i -s 2&gt; /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX="" Can a ring without a unit element have a subring with a unit element? Why is my attempt at downloading Big Sur failing? I am currently using a MacBook Pro 13&quot; Mid 2018 with Touch Bar. Today macOS Big Sur was released and I tried to download it but it's getting stuck at 484.4 MB. Initially, it shows 16-17 minutes left, but as soon as it reaches 484.4 MB it's stuck and the timer goes till 10 hours! My Wi-Fi is totally stable with a speed of 100 Mbps. I tried to restart my Mac but it still gets stuck. Earlier there were similar issues in the App Store (even now they are). The issue was I was not able to download an app unless I connect to the US VPN. I even contacted support but they were not able to help out. It wasn't a big deal as a VPN could be used. But now even with VPN, it gets stuck. What prevents photons from getting mass from higher order Feynman diagrams The Higgs boson and gluons have no electric charge and photons couple to charge, so there is no tree level interaction between them and photons.  But what prevents higher order diagrams from contributing a non-zero mass term to the photon, for instance    where a photon couples to some fermion (say an electron, or a top quark) which can interact with the Higgs field.   Or consider that same diagram but with quarks and a gluon interacting between them? Or any higher diagram with even more loops?  I have heard charge conservation depends on gauge invariance, which in turn depends on photons being massless.  So it appears the photon has no mass, and these diagrams must all cancel somehow.  So I'm hoping there is a very nice symmetry explanation for why they all disappear, but if I say "because of gauge invariance" that would be circular logic, so there must be another symmetry at stake here?     What prevents photons from obtaining a mass from high-order self-energy loop diagrams? Is there a difference between installing an application via Ubuntu Software Center or a terminal? What is the difference between public, protected, package-private and private in Java? How to make a circular array using offset object as center? We know that the there is an Object Offset option for Array modifier, but when trying to make a circular array with that offset object as the center of the array circle, it always doesn't behave quite like what's expected. So how to make a nice and controllable circular array?  P.S.: There is an old  about moving the object's origin. I wonder if there is any way to do this without changing the location of the origin. :) Left pedal coming loose On my bike, which I just built out of spare parts, the left pedal seems to constantly be coming loose. It seems to come out about 5m every time I ride ~10km.  It's an old cotter pin crank, and the pedal is a left pedal (there's an L stamped into the end of the screw that goes into the crank). The pedal has a crack in one side of the axle compartment, but I don't think that would affect it.  I thought that these pedals had left-hand threads so that the action of pedalling would work to tighten the screw? If so, why would this be happening, and is there anything I can do about it short of replacing the crank and pedal? Origin of electric charge How to convert every pixel of raster picture to square objects in Illustrator? Should one create slides similar to those that one uses in a good powerpoint presentation? Or are there things that a poster should include that a powerpoint should not include? (and vice versa) %AX = (%AH + %AL)  So why not %EAX = (%SOME_REGISTER + %AX) for some register %SOME_REGISTER? Storage disk format to use to be utilised by all OS What is the easiest way to update/upgrade an offline Ubuntu machine with the help of a Windows machine that has internet access?  This question also applies to installing new packages offline and not only updates/upgrades.  The Linux system shall remain completely cut off from the Windows machine, meaning there should be no ethernet connection or the likes between the two computers.  Update:  Please have patience, since I haven't updated this since two weeks. There are some complications getting apt-offline to work properly on Lubuntu and all other methods seem to be too old and deprecated:  AptOff - last update 2006 AptMedium - last update 2007 Keryx - last update 2011, looks like this project was discontinued  I hope I will be able to somehow update the offline machine, finally.  While I was still not able to update/upgrade the offline system due to authentication errors, I accepted an answer, because it's taking too long. Number of elements of a finite field Using maxTimeMS parameter with aggregation queries on Mongo 2.6 and Pymongo 2.7.1 How do I restore /usr/bin/env after overwriting it with start-tor-browser file I was installing Tor and wanted to access it directly from the terminal, so I was trying to copy start-tor-browser to /usr/bin. But by mistake, I have replaced the /usr/bin/env file with the start-tor-browser file. What should I do now?? When is $(p - 1)! + 1$ a power of $p$? A friend asked me this question:     If $p$ is a prime, prove that $(p - 1)! + 1$ is a power of $p$ if and only if $p = 2, 3$ or $5$.   Clearly one direction is obvious, namely that $p=2,3,5$ implies $(p - 1)! + 1$ is a power of $p$.  The other direction is not clear to me. Since by Wilson's theorem $p$ divides $(p - 1)! + 1$ so we need to show that if there are no other prime factors then $p=2,3,5$. Can someone give me a hint for establishing this?  Thanks What is the difference between OpenOffice and the newly created LibreOffice? What is the difference between OpenOffice and LibreOffice? I understand that LibreOffice is another fork that is going to be developed. I have used OpenOffice since v1 and am wondering if there is a definite advantage to uninstalling and trying LibreOffice.