For a project, not to harm anybody I was wondering if shutting down your cooling fan is possible using windows API and c++. There are classes such as  with member functions that should  or even  hardware but I don't even understand how to get these classes into my project. If there is different way without using Windows API, it will help too. Thanks!
Is there a Windows standard way to do things such as "start fan", "decrease speed" or the like, from C/C++?  I have a suspicion it might be ACPI, but I am a frail mortal and cannot read that kind of documentation.  Edit: e.g. Windows 7 lets you select in your power plan options such as "passive cooling" (only when things get hot?) vs. "active cooling" (keep the CPU proactively cool?). It seems the OS does have a way to control the fan generically.
A symmetry of graph $X$ is a permutation of the vertices that also happens to be a permutation of the induced edges. In particular, the distances between vertices are preserved by a symmetry. Show that the set of symmetries of $X$ is a permutation group of $\operatorname{V}(X)$. Compute the cycle index of the group for the Petersen graph.   Alright I am super confused. I have no idea how to even start. Can someone point me in the right direction. How do I show that something is a permutation group? How do I compute the cycle index of a graph? I have run into a conundrum.   When I go to get some friends cans of beer I say:     You guys want a beer?   When I am referring to going to a bar and drinking some I say:     Let's go get some beers!   When I go to a store to buy beer I say:     I am going to get beer.   How can I work this out? My friend is a native Chinese speaker and this is the sort of plural thing that trips her up. How is this explained? Suspended user cannot award bounty has two corollaries:   The gravitational attraction of a spherically symmetric body acts as if all its mass were concentrated at the center, and The gravitational acceleration inside the cavity of a spherically symmetric body vanishes.   Consider a spaceship floating freely in space. In a homogeneous universe, the combined attraction from all matter should cancel out, and the spaceship should stay motionless. Nevertheless, I'm free to divide the attraction into several parts originating from different parts of the universe: In the figure below, I've divided the universe into a red sphere centered on some arbitrary point (×) with my spaceship located at the edge of the sphere, plus infinitely many shells centered on the same point.  By corollary #1, the gravitational attraction of the red sphere equals that of all its mass centered at the point ×. By corollary #2, the combined acceleration of the spaceship from all mass in the green shell vanishes. The same can be said for the blue shell, the orange shell, and so on ad infinitum.  Hence my spaceship should start accelerating toward ×. By choosing the sphere large enough, I should be able to make it accelerate arbitrarily fast, and by choosing the location of × I can make it accelerate in any direction.    Of course this doesn't work, but why?  My best guess is that, even in an infinite universe, you can't keep adding spheres because you'll exit the observable universe, in which case there's no way to feel the gravity in part of the shell so that it's no longer symmetric. Perhaps also the expansion of the universe matters. But see the last two points below.  A few more things to consider:   The mass of the red sphere increases with the chosen radius $r$ as $r^3$, while the acceleration it generates is proportional to $r^{-2}$; hence the acceleration increases linearly with the chosen $r$. Our universe — the "Universe" — has an average density of some $10^{-29}\,\mathrm{g}\,\mathrm{cm}^{-3}$. Hence if I set $r$ equal to the radius of the observable Universe (46.3 billion light-years), the acceleration is a minuscule $10^{-7}\,\mathrm{cm}\,\mathrm{s}^{-2}$. If that bothers you, choose another universe where $\rho$ is ten orders of magnitude higher. Our Universe is not really homogeneous, but on large enough scales ($\gtrsim$ half a billion light-years) it seems it is. Still, the acceleration of the spaceship will be dominated by nearby sources. If that bothers you, choose a sufficiently homogeneous universe. On the scales we're considering, the Universe is not governed by Newtonian dynamics, but by general relativity. If that bothers you, use  instead — I think the issue is the same. If the issue is really that the size of the observable universe matters, then my intuition tells me that I can just choose an arbitrarily old universe where the asymmetric contribution from the most distant shells is arbitrarily small. If the issue is that the universe expands (so that gravity from the far side of a shell is somehow weakened, or "redshifted"), then my intuition tells me that I can just choose a sufficiently static universe. Auto-implemented getters and setters vs. public fields I see a lot of example code for C# classes that does this:  public class Point {     public int x { get; set; }     public int y { get; set; } }   Or, in older code, the same with an explicit private backing value and without the new auto-implemented properties:  public class Point {     private int _x;     private int _y;      public int x {         get { return _x; }         set { _x = value; }     }      public int y {         get { return _y; }         set { _y = value; }     } }   My question is why. Is there any functional difference between doing the above and just making these members public fields, like below?  public class Point {     public int x;     public int y; }   To be clear, I understand the value of getters and setters when you need to do some translation of the underlying data. But in cases where you're just passing the values through, it seems needlessly verbose. limsup of intersection of events as a subset of intersection of limsups How to completely delete and app from iphone (including all the data and history) So this problem particularly emerged with the Tinder app. I was using Tinder with a user account (A) and one day I logged out and created a new user account (B) which I never succeeded to activate due to sms verification problems, so I decided to login again with my old account. But even when I delete the Tinder app and reinstall it again, it still shows the B account logged in to the app. This means that IOS is somewhere storing a history for this app. Now I'm looking for a way to delete this history.  Note that this question is not necessarily about a certain app, but rather about where IOS stores historical data of apps and how to delete those histories alongside with the app.  P.S: If there are solutions like changing UUID of my i-phone that wouldn't damage my phone (I'm new to iphone so I'm not sure what I'm saying. For instance this jailbreaking thing which I keep hearing about and I'm not sure what it exactly does to my phone, doesn't sound like an I idea that I like), I'm open to them. Why does Simplify ignore an assumption? How can I convert raster (stream segments result of a watershed analysis) to vector polylines, preferably shapefile. In ArcGIS this is easily acomplished with the Raster to Polyline tool.  I only see Polygonize (Raster to Vector) tool under the Raster -> Conversion menu. difference fn(String... args) vs fn(String[] args) Whats this syntax useful for :       function(String... args)   Is this same as writing       function(String[] args)    with difference only while invoking this method or is there any other feature involved with it ? On the iPod Touch/iPhone, since it is tied to your iTunes account, I am quite sure you can have your bought apps on multiple devices you own (can't test though, iPod Touch was stolen).  However, now I have the Motorola Droid, and am waiting for a tablet, and am considering getting a Nook and rooting it to run my own apps.  Question is, if you buy an app on the marketplace, how is the security done:   Is it tied to your Gmail account so you can share it between devices you own? Is it tied to the device? (Don't break/replace your phone!) As long as it's installed, you're OK? (If you uninstall, or wipe your device, it's gone).   I assume 3 is highly unlikely, though a possibility, so leaving it here as a potential answer to my question. List of chat rooms with host stackoverflow.com is not the same as the actual list of rooms on stackoverflow.com chat itself Generally chat.&lt;site&gt;.com redirects to chat.stackexchange.com/?tab=site&amp;host=&lt;site&gt;.com and go for same thing but here you can check your self:       Both are Different!  If one visits  and select site: StackOverflow, then it outputs  and they miss rooms that are only listed by .  So, why does this happen? Is this a bug?  Note: I found this while  for general chat-room at StackOverflow; see chat-discussion I read a book a while ago in which a device is invented which opens up "tunnels" back through time. These tunnels cannot be traveled through, but can be used to view what happened in the past. I believe it starts out narrating the invention of the device, then skips ahead to after it is widely in use. There is another device created, a cloak of sorts,  which hides the user from the view of someone using the tunnel device. Does this ring a bell with anyone? Horizontal line of custom length like an — One or more of the following things happened to me on a Stack Exchange site:   My post(s) were wrongly deleted or locked by a moderator A moderator posted a wrong comment on one of my posts I was suspended, but did not do anything wrong I asked a meta question, but the question was closed and/or deleted A moderator discredited me in public ...   I think a moderator has abused their power, but I feel powerless against them.  What recourse do I have now? What can I do when I feel that a moderator has abused their power, and has been repeatedly unfair in their dealings with me? I just updated my iMac to Mojave, and am still trying to setup my preferences.  I tried dark mode, but did not like it (half of me apps seem to ignore it anyway).  I switched to light mode, but this too has problems. The File Save dialog shows a list of Directories and existing files, but the latter are very light grey, almost indistinguishable from the background.    I have searched the Preferences menu, but can't seem to find any setting to set normal contrast levels like in High Sierra. Delete the entire table rendered from different pages using Javascript Continuous weighted random distribution, biased toward one end I am currently contributing to a particle system for our game and developing some emitter shapes.  My uniform random distribution along a line or along a rectangular area works fine - no problem.  But now I would like to have something like a 1 dimensional gradient in this distribution. This would mean for example lower values are more common than higher values.  I don't know what would be appropriate mathematical terms for this problem, so my search skills are rather useless with this one. I need something that is computationally simple, as the particle system needs to be efficient. The strange thing about the maximum in Planck's law Can you grab the blue shirts and socks?   Is the above sentence stating that both the shirts and the socks are blue? Or only the shirts?  At this stage, I am leaning towards the earlier (only the shirts) — though writing "Can you grab the blue shirts and blue socks?" seems redundant.