How can I remove duplicate arrays in a multidimensional array?  This is my original array with [1] and [2] being identical.  $array = Array (     [0] =&gt; Array         (             [0] =&gt; Walter             [1] =&gt; White         )      [1] =&gt; Array         (             [0] =&gt; Marie             [1] =&gt; Schrader         )      [2] =&gt; Array         (             [0] =&gt; Marie             [1] =&gt; Schrader         )      [3] =&gt; Array         (             [0] =&gt; Hank             [1] =&gt; Schrader         )  )   What I like to achieve:  $array_without_duplicates = Array (     [0] =&gt; Array         (             [0] =&gt; Walter             [1] =&gt; White         )      [1] =&gt; Array         (             [0] =&gt; Marie             [1] =&gt; Schrader         )      [2] =&gt; Array         (             [0] =&gt; Hank             [1] =&gt; Schrader         )  )
How can I remove duplicate values from a multi-dimensional array in PHP?  Example array:  Array (     [0] =&gt; Array     (         [0] =&gt; abc         [1] =&gt; def     )      [1] =&gt; Array     (         [0] =&gt; ghi         [1] =&gt; jkl     )      [2] =&gt; Array     (         [0] =&gt; mno         [1] =&gt; pql     )      [3] =&gt; Array     (         [0] =&gt; abc         [1] =&gt; def     )      [4] =&gt; Array     (         [0] =&gt; ghi         [1] =&gt; jkl     )      [5] =&gt; Array     (         [0] =&gt; mno         [1] =&gt; pql     )  )
I received an undesirable status for overstaying a SA visa while hospitalized for injuries sustained in Lesotho. I had to cross into SA from Lesotho. Now I am banned entry into SA until Feb 2016 and though I have submitted a waiver request to remove the undesirable status, I hear from some the waiver request may take 4-5 months or even take longer than the time of banishment.  I have a pre-paid safari planned in October in which I need to fly through Johannesburg to get to Botswana. The Jburg border control requires tourists to pass through SA immigration even when simply changing planes.  1) Will SA grant me "transit" access if I don't leave the airport?  2) Will SA allow me to spend a night in the airport as the layover is 12 hours>  Thanks for passing on any info. Proving a graph has no Hamiltonian cycle The only solution that I have been able to come up with is $d=1$, but because $d&gt;2$, I can't seem to figure out how to find a solution. How to prove that a set is invariant? How do you unpin and move the form in the Visual Studio designer? This is the error I get when I open the software center. I've tried rebooting and running sudo apt-get update but I see no improvement. It worked earlier but I don't know what went wrong since then. I'm using Ubuntu 16.04 final release on a Dell Inspiron 15R. Any advice will be appreciated. Thanks in advance.  EDIT: The problem magically solved itself without me doing anything special (or maybe inadvertently doing something, I don't know). So I'd still like to get to the root of this. How do I construct the $SU(2)$ representation of the Lorentz Group using $SU(2)\times SU(2)\sim SO(3,1)$ ? How can I accept the Microsoft EULA agreement for ttf-mscorefonts-installer? For some reason, be it some bad habit or something else, I can not understand why the statement "p only if q" would translate into p implies q. For instance, I have the statement "Samir will attend the party only if Kanti will be there." The way I interpret this is, "It is true that Samir will attend the party only if it is true that Kanti will be at the party;" which, in my mind, becomes "If Kanti will be at the party, then Samir will be there."   Can someone convince me of the right way?  EDIT:  I have read them carefully, and probably have done so for over a year. I understand what sufficient conditions and necessary conditions are. I understand the conditional relationship in almost all of its forms, except the form "q only if p." What I do not understand is, why is p the necessary condition and q the sufficient condition. I am not asking, what are the sufficient and necessary conditions, rather, I am asking why. Differentiation between passive and active components Do you have tips or a guide how to install Ubuntu in Microsoft Virtual PC?  I have found some (older) information, but I wonder if this is still valid. And it looks very "unfriendly". .cache/upstart/Unity7.log growing to consume the entire free disk space. Python cypto suspected How can I assign a Func conditionally between lambdas using the conditional ternary operator? While explaining to my nephew about the physics of light, I told him we cannot see infrared color, and he kicked back with a very simple question: why can't we see it? I could not tell him. Is the human eye unable to sense such light or can it indeed but the brain can't understand the signal? any other reason? Frequently loaded packages: Differences between pdfLaTeX and XeLaTeX Until now, I have been compiling my LaTeX documents with pdfLaTeX. My standard document preamble includes the "usual suspects" for non-English speakers (, , ) and a bunch of other packages. Assuming I were to convert to XeLaTeX, what modifications of my preamble are advisable? I'm aware that the expansion=true option of the  package is not (yet) available for XeLaTeX, and that  is sort of a default package for OpenType fonts. What other packages (and package options) should be removed and, vice versa, incorporated when switching from pdfLaTeX to XeLaTeX? Is there a preferred way to return multiple values from a C++ function?  For example, imagine a function that divides two integers and returns both the quotient and the remainder.  One way I commonly see is to use reference parameters:  void divide(int dividend, int divisor, int&amp; quotient, int&amp; remainder);   A variation is to return one value and pass the other through a reference parameter:  int divide(int dividend, int divisor, int&amp; remainder);   Another way would be to declare a struct to contain all of the results and return that:  struct divide_result {     int quotient;     int remainder; };  divide_result divide(int dividend, int divisor);   Is one of these ways generally preferred, or are there other suggestions?  Edit: In the real-world code, there may be more than two results.  They may also be of different types. SQL to LINQ Tool Is there a tool out there which can convert SQL syntax to LINQ syntax?   I just want to rewrite basic queries with join, etc., to . It would save me a lot of time. I have a server running with the timezone set to UTC. It seemed like that was generally a good practice (please correct me if I'm wrong).  Anyhow, one of the servers I connect to, in order to scp files, is running on EDT and stores files that I need to copy in the format /path/to/filename/data20120913  I looked at trying to rsync files using something like find's -mtime -1 flag for files modified in the last day, but I didn't have any luck.  I don't mind just using scp to copy the current day's file, but as of right now there is a 4-hour window where running date +%Y%m%d will give a different day on each server and that bugs me a little.  Looking through man date I see that I can have the time output as UTC, but I don't see a way to have it output as another timezone like EDT  I suppose I could also use something like the GNU date extension date -d 20100909 +%s to get the date in seconds from the epoch, apply a manual 4 * 60 * 60 second calculation, and see about rendering that as a date - but then when daylight time kicks in it will still be an hour off.  Is there a simpler way to output the date in a YYYYMMDD format for EDT on a server that is set to UTC ? Story identification: Old man has hacker neighbor who mysteriously dies Does anyone know this story? It was a novelette published with another one (I don't remember what it was) in . The premise was that the narrator is an old man whose neighbor, a hacker, dies under mysterious circumstances. A younger woman who is an expert in computer security is hired by the police to investigate what happened, and she has a fling with the narrator. After a while she dies as well, and the narrator realizes that it is an evil force that comes through electric lines is responsible for the killings. The title has interesting formatting in that it ends with a square (much like a command prompt cursor: [_] ) How does one change the Attribute table view on QGIS 3? An initial answer says to use the Switch to Table view button but I can't seem to find this button.