I have tried a lot of different methods. But all of them lead to the url opening in a new tab. Using javascript, how can i do this?  (no jQuery please, this is a school project and we haven't had jQuery as a lesson yet)  this is the function i'm working with:  function myFunction() {             window.open('project.html', 'toolbar=0, location="_self", menubar=0');             target = "_self";             }
How can I redirect the user from one page to another using jQuery or pure JavaScript?
Can I kill an indestructible creature with -X/-X and sufficient damage marked on it? Can I hit a 4/4 indestructible creature with a  (3 damage) and give it -1/-1 with  to kill it? (Does it matter which way around I cast those?)  I read  here and it says, damage is removed in cleanup step, so it should be on the creature still after both spells.     702.12. Indestructible   702.12a Indestructible is a static ability.   702.12b A permanent with indestructible can’t be destroyed. Such permanents aren’t destroyed by lethal damage, and they ignore the state-based action that checks for lethal damage (see rule 704.5g).   702.12c Multiple instances of indestructible on the same permanent are redundant. Is there a way to "hide" a normal windowed application in Windows?  I'm looking for something that removes it from the taskbar and possibly puts an icon in the system tray instead. CodeIgniter/PHP Active Record won't increment an integer Can words like "what" be the subject of a sentence? In a question like "Who hears a noise?",  is the subject of the sentence who?  I can think of a few tests for subjects like: "the subject is the phrase that inverts with the auxiliary to form a question". But this is a question and there is no auxiliary. We could say that's because it's a subject, but that would be just to presuppose that it's a subject in the first place.  I can think of tests like: "the form of the verb will agree with the number of the subject", but on the other hand who does not seem to have  fixed grammatical number, and it sometimes seems like who might actually be agreeing with noun phrases later in the sentence:   Who are the most prolific writers of our age? Who is the most prolific writer of our age?   There are also tests like "the subject is usually the first noun phrase in the sentence". But of course if we have a question like:   Who have you bitten?   ... you, not who seems to be the subject. The first noun phrase test is not very good.  I also know that some theories of grammar say that there is a gap in wh- questions that the wh- word is extracted from. So can this gap for instance be the real object of a question? If so, is [See community wiki post in the linked to question]  How can we show whether who is really the subject of my original example question? And how about other wh- words like what? Can they (also) function as subjects? Placing a single algorithm in two columns Controversy over verb choice in "neither you nor I {is/am/are} in control" "All of these things are not beneficial and (they) do not help her" Should I mention the pronoun again in this case?     "All of these things are not beneficial and (they?) do not   help her"   I know that there is already answer about the question "if it's needed to repeat on the pronoun in case that they are in the same position of grammar tense". But in this case it's different because the question deals with case of two different  tenses (in bold). Do I need a Japanese transit visa when arriving at Narita and departing from Haneda? Having different horizontally  distributed equations inside an align environment, only lines are numbered, but not individual equations.    How can the left equations be numbered using subequations? See also the question   \documentclass{article} \usepackage{amsmath} \begin{document}   \begin{subequations}     \begin{align}        %\label{a}         a &amp;= a ,&amp;       \label{b}         b &amp;= b ,\\       %\label{c}         c &amp;= c ,&amp;       \label{d}       d &amp;= d .     \end{align}   \end{subequations} \end{document}     The solution should be able to either:    attach a label to the left equations, or modify the labels on the right to read (1a,b) and (1c,d)    I couldn't find anything in the documentation of amsmath or other packages. Selecting features by attributes using ogr2ogr? Ignoring BGRT: invalid status 0 (expected 1) How can I create an Excel spreadsheet with C# without requiring Excel to be installed on the machine that's running the code? Nvidia graphics card no longer works in Windows 10 (error: Code 43) but works in Ubuntu Laptop with no battery Javascript function to convert color names to hex codes Recover Data from Card that cannnot be read I am trying to help a friend who is very concerned that she has just lost all of the data on her 32GB SanDisk microSD card.  I told her I would post this and see if anyone could offer help.  Here are the details:   The SanDisk microSD card is less than two years old.  Probably only about a year old.  The store will take it back, but that doesn't really help.  She wants her data. She used the card in her Samsung Galaxy S4 smartphone for over a month.  The phone was never exposed to water or temperature extremes. Today, her phone suddenly said something like "Your SD card is blank or an unsupported format". Her phone was then unable to read the SanDisk microSD card at all.   Here's what she has tried:   Rebooting her phone.  Had no effect. Taking out the SanDisk microSD card and putting it inside a full-size SD card adapter, and inserting it into a Windows 7 SP1 computer.  The computer did not recognize its presence at all. Putting the SanDisk microSD card into a USB 2.0 external card reader and inserting the card reader into a USB port on a Windows 7 SP1 computer.  The computer recognized the card reader and installed drivers for it.  The card reader shows up as 'Removable Disk' in Windows Explorer.  Clicking on 'Removable Disk' in Windows Explorer results in the error "Insert disk: Please insert a disk into the Removable Disk". After trying #3, tried opening the 'Removable Disk' in FreeCommander.  Doing so results in the error "The device is not ready".   She does not have access to a linux box, but does have access to her Android phone.  What can she do to recover the data on her 32GB SanDisk microSD card? How to avoid using sudo when working in /var/www? I want to stop having to use sudo everytime I work in /var/www. How can I do that? I simply want to put all of my sites into this directory and work with them without too much pain. The cube of any number not a multiple of $7$, will equal one more or one less than a multiple of $7$ Yeah so I'm kind of stuck on this problem, and I have two questions.   Is there a way to define a number mathematically so that it cannot be a multiple of $7$? I know $7k+1,\ 7k+2,\ 7k+3,\ \cdots$, but that will take ages to prove for each case.  Is this a proof? $$(7k + a)^3 \equiv (0\cdot k + a)^3 \equiv a^3 \bmod 7$$    Thank you. Is there an ingame way to change volume? I like the music, but I still prefer my own music.  Is there an ingame way to change the volume?   I can't find it. Configure HAProxy to include host headers for different backends I am exploring the use of HAProxy as a balancer in front of a set of web apis that run on IIS.   node1.myapp.mycompany.com node2.myapp.mycomapny.com   We are currently using Host Headers to correctly resolve the right web application on IIS.  For example, we may have otherapp.mycompany.com running on the same server/port, but using Host Headers IIS knows which one to serve up.  My initial attempt at HAProxy left me with 404 errors, because I was not including the host headers in my request, and so IIS was serving back the default site bound to the given IP, and not resolving by host name.    The fix left me with something like this:  frontend localnodes     bind *:80     mode http     default_backend nodes  backend nodes     mode http     balance roundrobin     option forwardfor     reqirep ^Host: Host:\ node1.myapp.mycompany.com     server web01 node1.myapp.mycompany.com:80   This works great for a single backend, but I am left scracthing my head on how to include the correct host headers depending on which backend is serving up the request:  backend nodes     mode http     balance roundrobin     option forwardfor     reqirep ^Host: Host:\ node1.myapp.mycompany.com     server web01 node1.myapp.mycompany.com:80     server web02 node2.myapp.mycompany.com:80   The above does not work whenever node2 is used because it doesn't resolve correctly in IIS (node2 in this case is on a different server, and therefore different IP.  In fact, if they were running on the same server/ip I suspect the request work "work", but they would all be served by node1 per the host header).     Is it possible to set the host based on the url of the backend used to serve up the request? If so, this implies my checks also need to provide the correct host header based on backend, how would that be done?   Edit: Am using HA-Proxy version 1.7.9 2017/08/18  Let me give this just a little more background.  We used to have just myapp.mycompany.com serving up api requests.  We need to expand it.  Our clients will still call myapp.mycompany.com, but that will just point to the HAProxy, which will balance it out to node1.myapp.mycompany.com and node2.myapp.mycompany.com.  Our current server configurations have us binding a single IP address on each server, so we use host headers to resolve.