SELinux interfering with Apache / PHP
Two identical files; Apache says one is forbidden
Just a few questions about Hyper-V virtual machines and clustering I have been using Microsoft’s Hyper-V technology for a little while now, but I am just now dipping my toe into clustering.  In particular, I am trying to implement a fault-tolerant SQL DB. This involves setting up two VMs, clustering them via Failover Cluster, and then installing SQL Server in some fashion. I have two physical machines - one high-end and rather beefy “heavy lifter” to contain the majority of the VMs, and another “backup” (a repurposed desktop) to hold the essential “secondary” (or failover) AD-DC, SQL and FS VMs.  The main reason why I find the failover cluster at the VM level so attractive is that it presents a single IP and DNS entry to the network as a whole - if one machine (physical or virtual) goes down, you might loose some ping and the connections get reset, but the network applications (Microsoft RMS connection to backend SQL) can still connect to a viable DB without having to mess around with the settings at all.  My first question is in terms of SQL Server itself. If I have a cluster between two VMs, does it make more sense to install the SQL Server in Failover Cluster configuration or should I simply install it in a stand-alone config and mirror the DBs? For example,  suggests just mirroring the DBs, but do I just mirror standalone DBs on standalone VMs, or can I get the network and failover benefits of clustered VMs while still utilizing (on each clustered VM) standalone DBs that have been mirrored between each other?  As well, I have come across a lot of documentation about SQL clustering, but most assume a number (#>2) of physical machines to hold not only the actual SQL VMs but also the Quorum and Witness stores. I will not be able to muster more than two physical machines. As such, I will have to be satisfied with a VM cluster that does not exceed two VMs (one for each physical machine).  Another issue involves MSDTC - the Distributed Transaction Coordinator. When attempting to install the SQL Failover Cluster (I never completed it for this reason) it threw a hissy fit because MSDTC had not been clustered. Search as I might, I have not yet found a way to do so under Windows Server 2012 R2. I have found , but these instructions don’t align with 2012 R2 (at least, not in a way that allows me to successfully cluster MSDTC). Plus,  that I have found for SQL Server Failover Cluster installation suggest that a third “network device” - shared network storage (a SAN) - is required for the DB itself (and other functionality). I do not have this, and won’t be getting this. Most of my storage exists on the “heavy lifter” that was designed for all of the “primary” VMs. If that physical machine goes down, so does the storage. The secondary server does have enough resources for an AD-DC Server, an SQL server and a File Server, so it will handle the “secondary” failover versions of those VMs (clustered or not).  My final question involves file servers. If I cluster file servers between two VMs (one on my “heavy lifter” and another on my “backup”, how do I mirror the data between them? Clustering VMs only provides a single point of access on the network for a resource, it doesn’t exactly replicate data between the two - that is left to the services that serve up that data. I am unsure how I can ensure that file server data between two clustered file server VMs can be properly mirrored. Remember, I only have two devices to be used here - my primary machine and a backup secondary. There is no chance of me obtaining a SAN or any other type of network attached storage. What exists on the machines must act as the storage.  Thanks in advance for any suggestions. Java Object Reuse Should Java Objects be reused as often as it can be reused ? Or should we reuse it only when they are "heavyweight", ie have OS resources associated with it ?  All old articles on the internet talk about object reuse and object pooling as much as possible, but I have read recent articles that say new Object() is highly optimized now ( 10 instructions ) and Object reuse is not as big a deal as it used to be.  What is the current best practice and how are you people doing it ? "Do the needful" -- Why is it used instead of asking a question? HSA - Continue to Invest? Ubuntu 18: Top bar for all monitors I just installed Ubuntu 18. Since the top bar is only on the primary monitor, I can't use the mouse to grab and move my Chrome window (the top of the screen looks like below). Trying to do so results in grabbing a single tab and opening it in a new window.     Is there a way around this? Ideally, I'd like to have the top bar  across all screens. Another obvious disadvantage of only having the top bar on one screen is that the window menu of any window, not just Chrome, is displayed on the left upper corner of my left screen even when the window is in the lower right corner of the right screen. Why does a Tesla car use an AC motor instead of a DC one? I was just watching a mega factory video and wondered why they use an AC motor which requires a power inverter instead of DC which may be powered directly from their DC battery? Introducing an inverter means more cost (weight, controller, etc).  Are there any reasons for that? What are the differences between an AC and DC motor that may have lead to this decision? Also does anyone know what kind of motor is used in other electric cars? Cost increase and suspend During a recent game, my opponent Suspended two  in the same turn. Then, during my turn, I played a .    The way we resolved it, is that at the next turn, my opponent payed 1 for the second Rift Bolt. I'm not sure if this is correct, because the rule text for supspend says that when you remove the last suspend counter you cast the spell without paying its mana cost.  So, to me, it sounds like even if the cost was increased, one still does not need to pay for it.    What's the correct thing to do? If actually one needs to pay for the second suspended spell, what would happen if he can't? What is the pythonic way to avoid default parameters that are empty lists? Sometimes it seems natural to have a default parameter which is an empty list. Yet . If for example, I have a function: def my_func(working_list=[]):     working_list.append(&quot;a&quot;)     print(working_list)  The first time it is called the default will work, but calls after that will update the existing list (with one &quot;a&quot; each call) and print the updated version. So, what is the pythonic way to get the behavior I desire (a fresh list on each call)? Eclipse doesn't start on Ubuntu 18.04 How can I make a more realistic glass shader? Here's a sample scene:  A room with a window, a point light to project light into the room, an HDR environment outside the room and a nice Image by Rembrandt that should be somewhat reflected on the glass:    Using a standard glass shader on the window, the direct light from the lamp does not shine into the room, regardless of how bright that light is. So I can't recreate the impression of hard day light, with clearly defined areas of light and shadow.    Adding a transparent shader to the glass shader I get a very pleasing result. The light from the lamp illuminates into the room creating defined shadows, transparency seems unaffected, to see the HDR in the background, the refection seem correct to me (I also like how I get double reflections from the thick glass).    Even though I am quite happy with this solution, I've gotten a few comments on making a setup with light path nodes controlling the mix of transparent and glass. The biggest issue is that the reflections on the glass are brighter than what they should be.  So the question is: By using this approach am I messing up any of the qualities of glass? And if so, what would make a proper glass shader that is realistic, in terms of letting direct light through, while keeping reflections, refraction and transparency?  A file to play with:    The HDR image used was created by Is there such a thing as a European SIM card? This summer I will go on a road trip from West to East Europe and back. Being able to call and especially access the internet is useful on the road, so it made me wonder whether I could buy a European SIM card or something that would let me access the web or make calls regardless of the country I was in.  I know of the provider Mobile Vikings that offers a . Are there any other alternatives? Data is the main priority because calling or texting within Europe isn't that expensive to begin with, with recent regulations. Also I could use the data to call using VOIP anyway, which is even cheaper. How do I move child windows without moving or minimizing parent in GNOME 3? I have Ubuntu 17.10 with GNOME 3.  What happens: I have (for example) LibreOffice Calc open, with some data columns in it.  I highlight the columns I want to chart, then I select INSERT > CHART.  The chart child window dialog pops up on top of my data, so I want to move it to the side.  When I grab the top bar and move it, the parent (spreadsheet) window minimizes (I think it actually disappears).  Continuing the above example, if I click FINISH on the chart window, I can then see the minimized spreadsheet application, which is the window title bar plus the menu bar just below it.  This seems like really odd behaviour and certainly falls under the category of "not being useful to the user", since the whole idea of moving the child window in the first place was just to be able to better see the spreadsheet!  In other applications, for example the PDF viewer, a slightly different problem occurs.  When I try to move the child window (for example the print dialog) the parent does not minimize but instead follows the child window around.  This is less surprising than having the parent disappear entirely but equally useless in terms of allowing the user to see the information present in the parent window.  Update 2017/11/06  Pomsky's answer below fixes the problem, but leaves me wondering why the window manager is making the decision that all child windows have modal behaviour (or don't), and not the applications themselves; and further, why modal behaviour prevents moving the child screen around when it obscures useful info on the parent screen.  Neither of these seem like good design to me... Finding total after percentage has been used? Tried my best with the title. Ok, earlier while I was on break from work (I have low level math, and want to be more fond of mathematics)  I work retail, and 20% of taxes are taken out, and I am wanting to find out how much I made before 20% is taken out.  So I did some scribbling, and this is without googling so please be gentle. but lets say I make 2000 dollars per paycheck, so to see how much money I get after taxes I do 2000 * .8 which gives me 1600. I can also do 2000 * .2 which gives me 400 and then do 2000 - 400 (imo I don't like this way since I have a extra unnecessary step)  Anyways, I was pondering how to reverse that to have the answer be 2000, and what I did was 1600 * 1.20 (120%) which gave me 1920, and I thought that is odd so I did 1600 * 1.25 and answer was 2000 exact.  My question is why did I have to add extra 5% (25%) to get my answer? I am sure I did something wrong, and I fairly confident the formula I am using is a big no no.  edit; wow thank you all for your detailed answers. I am starting to like mathematics more and more. How to list files installed by a snap package? After a snap has been installed with sudo snap install [package] how can I list the files which have been installed by the snap? Geocoding USA addresses that cannot be sent over internet? For a one-time project, I need to geocode a few thousand addresses.  In the past I've used various online resources for this kind of thing (e.g., Google Maps API), but the addresses I'm working with have to be kept confidential - which means no sending it over the Internet, unless there's some iron-clad guarantee of privacy.  What other options do I have? I just bought a new MTB and am planning to change my previous MTB into a Road Bike.   How do I do it? What kind of parts do I need to change or add or remove?  I am not looking to for a full conversion into specialised road bike. But like the answers are suggesting, I am looking for a bridge between commuter or road bike. My majors concerns to be met are:   Should be fast enough to compete with road racers over short distance Should be light as a road  Should be as close as possible in as cheap as possible. The API Sandbox This is the same concept as .  Why do we need more than one? this is in order to test the API, some methods support vectored ids (for example /questions/id1;id2/comments) and for that two sandboxes are needed. A certain element which makes functionals positive Suppose $X$ is a possibly non-separable Banach space and let $X^*$ be its dual. Also, let $(f_n)_{n=1}^\infty$ be a sequence of [EDIT: linearly independent] norm-one functionals in $X^*$. Does there exist an element $x\in X$ such that $f_n(x) \in (0,\infty)$ for all $n$? How to extend WIFI from ethernet Here's my current setup.   Bonded "Zone" DSL modem/router on main level serving laptop #1 via Ethernet and laptop #2 via WIFI.  WIFI does not serve basement level well, so I have Ethernet running to basement where it is divided by a switch with one Ethernet going to laptop #3 and another Ethernet going to entertainment system, which houses a Sony Playstation 3. The PS3 has gone on the fritz and is now only good for playing discs, so I recently added a Google Chromecast to the TV. The Chromecast, of course is WIFI only, and is only receiving a weak signal. Plus I need to have a decent WIFI signal to my phone, which is the interface device for the Chromecast. So what I would like to do is to use the Ethernet that was serving the PS3 and broadcast WIFI from it. What device can I plug the Ethernet into that will do this for me? And if you have a recommendation, are there any special setup instructions? "there doesn't seem" vs. "there don't seem"