Having problems fixing clang after deleting clangd directory
Trying to install Atom. Unable to start Clangd language server
What is a word that means "someone who pretends to be your friend but is actually your enemy?" What do you call someone who pretends to be your friend but is actually your enemy?  A friend suggested spy for me, but that does not nearly describe the word I need for an English project. The character is very good at manipulating how people see him. He's a good liar. And pretends to be your friend but actually is your enemy. Point reflection over a line I'm having trouble understanding the solution presented below (It's from a textbook). I tried to get something similar, but to no avail. Help me find the way he derived those a,b,x2 and y2 expressions.   Point p is a point which we want to reflect (It's a simple structure with two integers x and y representing coordinates on a 2d plane); (x0,y0) and (x1,y1) are coordinates of endpoints of a line.  Expected result is a new point with reflected coordinates.   Point mirror(Point p, int x0, int y0, int x1, int y1) {     double dx,dy,a,b;    long x2,y2;    Point p1; //reflected point to be returned      dx  = (double) (x1 - x0);    dy  = (double (y1 - y0);     a   = (dx * dx - dy * dy) / (dx * dx + dy*dy);    b   = 2 * dx * dy / (dx*dx + dy*dy);     x2  = Math.round(a * (p.x - x0) + b*(p.y - y0) + x0);     y2  = Math.round(b * (p.x - x0) - a*(p.y - y0) + y0);     p1 = Point((int)x2,(int)y2);      return p1;  } Is the universe fundamentally deterministic? Orthogonal Projection of $ z $ onto the Affine set $ \left\{ x \mid A x = b \right\} $ Unable to send mail to hotmail from rackspace cloud What is the difference between local and .local in ubuntu? Echoing path in ubuntu returns following colon separated paths,  /home/stack/bin:/home/stack/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin   In these paths at some places there is local while at others .local is used what is the difference between both? How do I fill arrays in Java? I know how to do it normally, but I could swear that you could fill out out like a[0] = {0,0,0,0}; How do you do it that way? I did try Google, but I didn't get anything helpful. Test if a website is alive from a C# application I am looking for the best way to test if a website is alive from a C# application. Background My application consists of a Winforms UI, a backend WCF service and a website to publish content to the UI and other consumers. To prevent the situation where the UI starts up and fails to work properly because of a missing WCF service or website being down I have added an app startup check to ensure that all everything is alive. The application is being written in C#, .NET 3.5, Visual Studio 2008 Current Solution Currently I am making a web request to a test page on the website that will inturn test the web site and then display a result. WebRequest request = WebRequest.Create(&quot;http://localhost/myContentSite/test.aspx&quot;); WebResponse response = request.GetResponse();  I am assuming that if there are no exceptions thown during this call then all is well and the UI can start. Question Is this the simplest, right way or is there some other sneaky call that I don't know about in C# or a better way to do it. Status bar and navigation bar appear over my view's bounds in iOS 7 How to recover a deleted NTFS partition with data What's different about photographing at sunrise vs. sunset? I usually get better light at sunrise (compared to sunset). I do though hate to wake up early in the morning to use that light ;)  What are the biggest differences between sunrise and sunset? Are there any references to Eru or the Valar in the Lord of the Rings movies? The closest references to Eru or the Valar in Peter Jackson's Lord of the Rings and The Hobbit movies I can think of are Gandalf's vague description of his resurrection ("I've been sent back... until my task is done.") and his later description of Aman to Pippin ("White shores and beyond, a far green country under a swift sunrise." -- as an aside, he's taunting Pippin here, since Hobbits suffer from the Gift Of Men) and the equally vague information viewers are given about where the elves are going when they leave Middle Earth.  Are there any more direct references I'm missing? Maybe a mention of Aule by a dwarf? Why is $\mathbb{Z}[\sqrt{-n}], n\ge 3$ not a UFD? Error after installing search service application I got this this error after setting up Search Service Application with Powershell.     The search service is not able to connect to the machine that hosts the   administration component. Verify that the administration component      'a23fd668-f823- 4ab2-b0fc-b0baebfd4af2' in search application   'SharePoint_Search_Service' is in a good state and try again.   The Sharepoint Search Service was showing error when I visited   Central Administration->Application Management->Service Applications->     Manage Service Applications  Here is the powershell script used  $App1 = "APP-Server-01" $APP2 = "APP-Server-02" $SearchAppPoolName = "SharePoint_SearchApp" $SearchAppPoolAccountName = "EXSERV\Administrator" $SearchServiceName = "SharePoint_Search_Service" $SearchServiceProxyName = "SharePoint_Search_Proxy" $DatabaseName = "SharePoint_Search_AdminDB"   Create a Search Service Application Pool  $spAppPool = New-SPServiceApplicationPool -Name $SearchAppPoolName -Account     $SearchAppPoolAccountName -Verbose   Start Search Service Instance on all Application Servers  Start-SPEnterpriseSearchServiceInstance $App1 -ErrorAction SilentlyContinue Start-SPEnterpriseSearchServiceInstance $App2 -ErrorAction SilentlyContinue Start-SPEnterpriseSearchQueryAndSiteSettingsServiceInstance $App1 -ErrorAction         SilentlyContinue Start-SPEnterpriseSearchQueryAndSiteSettingsServiceInstance $App2 -ErrorAction        SilentlyContinue   Create Search Service Application  $ServiceApplication = New-SPEnterpriseSearchServiceApplication -Partitioned -Name        $SearchServiceName -ApplicationPool $spAppPool.Name -DatabaseName $DatabaseName   Create Search Service Proxy  New-SPEnterpriseSearchServiceApplicationProxy -Partitioned -Name       $SearchServiceProxyName -SearchApplication $ServiceApplication Where does $xe^x$ solution come from when the characteristic polynomial is square? Is there a word that describes a person who dies on his/her birthdate? Is there really no way to power a DSLR by USB? How do exchanges match limit orders? Say a security has been trading at under $20.10, and there are limit orders selling at $20.10 and $20.21. Then Simon issues a limit order to buy at $20.21. According to , Simon would end up buying shares at $20.10.  Why does the exchange favor the buyer here?  I.e., why does the transaction execute at the seller's limit of $20.10 instead of the buyer's limit of $20.21?  (I.e., why don't Inara/River get to sell at $20.21 / above their limit, but Simon gets to buy at $20.10 / below his limit?)  Is the example flawed?  If it makes a difference, I'm mainly curious about NASDAQ and NYSE.  I tried Googling for specs (e.g. ), but couldn't find anything.  Only found that some  implementation executes the average of the buy/ask.  Just curious how the system works. Why doesn't a fly fall off the wall? Does $\lim_{n\to\infty}\underset{n}{\underbrace{\cos(\cos(...\cos x))}}$ exist? Possible Duplicate:         Does the following limit exist?  $$\lim_{n\to\infty}\underset{n}{\underbrace{\cos(\cos(...\cos x))}}$$  If yes, find the limit.  If no, please explain why the limit doesn't exist.  I think, the limit exists.  So, I tried to use Squeeze theorem but didn't work.