Trying to understand SQL injection
How can I prevent SQL injection in PHP?
Currently the migration path options from SO are:   Meta.SO Serverfault SuperUser Webmasters Programmers   If we are going to be limited to 5 options, shouldn't we periodically re-evaluate which sites are most appropriate?   (10k only) indicate that the top sites for the last 90 days are:   Superuser - 564 - 5% rejected ServerFault - 278 - 10% rejected Tex - 157 - 13% rejected DBA - 144 - 2% rejected Sharepoint - 127 - 1% rejected Programmers - 126 - 26% rejected CodeReview - 100 - 3% rejected Meta.SO - 81 - 18% rejected Wordpress - 75 - 14% rejected Webmasters - 58 - 8% rejected   All these migrations for sites out of the list required a flag and a moderator to process it.  This is just extra work for the mod team!  If we had the top 5 destinations by volume as the 5 options, we would have had a net savings of 160 flags to be processed.  I suspect we will actually see these numbers change quite a bit if it's easier for users to put questions in the appropriate spot without moderator intervention.  Can we have a review of the migration path list based on migration volume?  Think of the flags! Why Does Harry Have a Scar When Avada Kedavra Leaves No Trace? Why does Harry have a scar when Avada Kedavra leaves no trace?     ‘The Muggle authorities were perplexed. As far as I am aware, they do not know to this day how the Riddles died, for the Avada Kedavra Curse does not usually leave any sign of damage ... the exception sits before me,’ Dumbledore added, with a nod to Harry’s scar.   Half-Blood Prince - page 343 - Bloomsbury - chapter 17, A Sluggish Memory   What caused Harry to retain a scar from Avada Kedavra, when no one else in know history showed any signs of cause of death when Avada Kedavra was used?  What caused Harry's scar?  I'd love an answer based in canon, such as the books, interviews with J.K. Rowling, or Pottermore. "Give him a box that everyone knows what it contains."  Is this correct English? It sounds wrong to me. Is it possible to install Python 3.x in 14.04 LTS, or upgrade from Python 2.7.6 to 2.7.8? Why do I get a segmentation fault when writing to a "char *s" initialized with a string literal, but not "char s[]"? The following code receives seg fault on line 2:  char *str = "string"; str[0] = 'z';  // could be also written as *str = 'z' printf("%s\n", str);   While this works perfectly well:  char str[] = "string"; str[0] = 'z'; printf("%s\n", str);   Tested with MSVC and GCC. How to make a div 100% height of the browser window Windows using too much RAM, how to diagnose resource hog I have 16GB of system RAM. On startup with no applications open except the task-manager Windows is using about 3gb of RAM. I looked in the processes tab, but nothing seems to be out of the ordinary. How can I find out why my Windows is using so much RAM.    all processes from all users      Reading from the poolmon it seems that my wireless broadcom driver is using about 0.4GB of of RAM. Even if I remove  it would still be using  2.6GB on start-up, which is still too much.      After reinstalling the wireless driver associated with the memory leak. I have a new screenshot and would like to confirm that it was indeed a memory leak. How fast is Earth moving through the universe? As the galaxy is moving and the solar system orbiting the galaxy and the Earth orbiting the sun. So how fast is each object moving and what is the fastest we move at?  Do we even know how fast the galaxy is moving that is not relative to another galaxy (although I guess velocity has to be measured relative to something). I'm looking for the title of a Sci-Fi story (probably pre-1990) where a group is sent off into deep space and I believe unbeknownst to them it's a one-way journey.  In the course of the journey they all become very intelligent, they make psychoactive drugs from the plants on board, I recall that they discovered it's a one-way journey to test the affects of space travel, and they redesign/refit their engines and return to Earth.  Lame recall, sorry, that's all I got. Any help appreciated. I'm trying to get:  document.createElement('div')  //=&gt; true {tagName: 'foobar something'}  //=&gt; false   In my own scripts, I used to just use this since I never needed tagName as a property:  if (!object.tagName) throw ...;   So for the second object, I came up with the following as a quick solution -- which mostly works. ;)  The problem is, it depends on browsers enforcing read-only properties, which not all do.  function isDOM(obj) {   var tag = obj.tagName;   try {     obj.tagName = '';  // Read-only for DOM, should throw exception     obj.tagName = tag; // Restore for normal objects     return false;   } catch (e) {     return true;   } }   Is there a good substitute? How many physical degrees of freedom does the $\mathrm{SU(N)}$ Yang-Mills theory have? Let $M,N$ be $n \times n$ square matrices over an algebraically closed field with the properties that the trace of both matrices coincides along with all powers of the matrix. More specifically, suppose that $\mathrm{Tr}(M^k) = \mathrm{Tr}(N^k)$ for all $1\leq k \leq n$. The following questions about eigenvalues is then natural and I was thinking it would be an application of Cayley-Hamilton but I am having trouble writing out a proof.  How do we show that $M$ and $N$ have the same eigenvalues?  Added (because this question is now target of many duplicates, it should state its hypotheses properly). Assume that all the mentioned values of $k$ are nonzero in the field considered; in other words either the field is of characteristic $0$, or else its prime characteristic $p$ satisfies $p&gt;n$. New York is a great place to live. New York is a great place to live in.  I've seen the former usage a lot and I've started wondering what the grammar aspects of it are. The main question I'm asking involves the grammar when the preposition in the end of the sentence is deleted. Is it equally formal or correct to omit it? What are the grammar properties of this? Some more examples of similar usage:  This organisation is a great place to work. This is a great place to stay/sit/study/travel/go.  Just to show that 'live' isn't special in this case. Note: I'd posted the same question  before, but the answers were not satisfying enough (the answers there did not seem to provide the precise grammar aspects of this, those that could be in a serious grammar book), so I'm posting this here to get some more views on the question. I hope it is acceptable. Is there an emulator or wine type environment that would allow use of android apps on linux? Wi-Fi not working on Lenovo ThinkPad E570 (Realtek RTL8821CE) We just bought a Lenovo  (which is supposed to have the Intel 8265 for wireless). This laptop was bought in part because it is certified to run Ubuntu and as such to me at least it would make sense for things to work out of the box... but no such luck.  First, I installed Ubuntu 17.10 and after installation realised Wi-Fi was not working. I also tried Ubuntu 16.04 from a USB drive since that is the version of Ubuntu it is certified for, but no luck there either.  The wireless chip is not detected by lshw (or even lspci by the looks of it), ip link does not show a wireless interface, and the iwlwifi kernel module is not loaded at boot (I can load this myself using modprobe iwlwifi but this does not make Wi-Fi work). I think it is a combined Wi-Fi/Bluetooth chip, and Bluetooth does appear to work (or at least Bluetooth shows up in Gnome and rfkill list).  modinfo iwlwifi | grep 8265 shows me a file ending in -34 is supposedly loaded but only a file ending in -33 (and some other lower numbers) is present in /lib/firmware, if that helps).  I have also installed the Linux 4.14.9 kernel in an attempt to get things to work, but this did not resolve the issue either.  Further information  root@ThinkPad-E570:~# modinfo iwlwifi | grep 8265 firmware:       iwlwifi-8265-34.ucode root@ThinkPad-E570:~# rfkill list all 0: tpacpi_bluetooth_sw: Bluetooth     Soft blocked: no     Hard blocked: no 1: hci0: Bluetooth     Soft blocked: no     Hard blocked: no root@ThinkPad-E570:~# dmesg | grep iwl root@ThinkPad-E570:~# lspci -nnk | grep 0280 -A3 05:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:c821]     Subsystem: Lenovo Device [17aa:c024]   Update  I just noticed that the laptop does not have an Intel wireless chip at all, but in fact has a Realtek one... which means that the  of the shop I bought this laptop at were not accurate... Sigh. Same problem stands, however, just with a crappier wireless chip. How do I quickly switch between workspaces in unity? How to share the "Look Back" video from Facebook? On Facebook, there is a  looking back on your Facebook history. Apparently, some people have shared this video with their friends, however I and someone else cannot figure out how to do so. This URL is not unique, it's a global URL which shows the video of who's logged in. People say there's supposed to be a "share" link, but there are no links whatsoever. And, I can't share the URL because it would show them their own videos.  How do I share this video with friends on Facebook?  without using a screen recorder to capture it I recently upgraded Windows 7 to Windows 10. The biggest issue I have now is that the Windows Search service no longer works, making the Start menu mostly unusable.  If I go to Indexing Options in the control panel I see that Indexing is not running and the list of paths to index is empty.  Going to advanced options, the current index path is empty, and the new path is empty too. This is true even if I try to use the "New Index" button.  Using the troubleshooter won't help since the service doesn't start. If I try to manually start the "Windows Search" service, I get the error  "Error 3: Unable to find specified path" (this is the rough translation, the original message is in my language).  What can I do to find out which path/file is missing ? I tried to check with Process Monitor, but the only file (beside system libraries) the SearchIndexer.exe try to access seem to be c:\ProgramData\Microsoft\Search\Data\Application (everytime the service is started the whole folder c:\ProgramData\Microsoft\Search is deleted and recreated) and C:\Windows\System32\config\systemprofile (which exists).  Edit: all available updates are installed, and issuing      SFC /scannow   Doesn't reveal any issue Are Destiny characters backwards and/or cross-compatible? From what I heard and remember hearing correctly, characters that are leveled up through the PS3 can be transferred to the PS4 version (assuming that both consoles have the game).  So what if I wanted to go back to the PS3 version with some friends? I only have the PS4 version at the moment--would my PS4 characters transfer over to the PS3 side? What if I wanted to go to the 360 version too to play with some other people too? Novel about interstellar war: Both sides win, both sides think they lost