Arrays in SQL queries; PHP
How can I prevent SQL injection in PHP?
Some creatures have Magic Resistance:     The [...] has advantage on saving throws against spells and other magical effects.   We know from  that this works against Turn Undead, but does it work against Stunning Strike, Death Strike, Fey Presence, etc? How do we decide? Find all positive integers $a, b, c$ such that $1/a + 1/b + 1/c = 4/3999$ Find all positive integers $a, b, c$ such that $1/a + 1/b + 1/c = 4/3999$.  The contest is just ended, so you may freely answer. (I did not attend the contest: it is an Italian contest for schools and the groups may ask other people for hints. This is how I got involved, but of course asking on MSE would have been cheating)  I found three solutions: I am explaining below what I did. I would like however to know if there is a more general approach. Differences between strong and weak in Objective-C How to remove a filter that is an anonymous object? In my functions.php file I would like to remove the below filter, but I'm not sure how to do it since it's in a class. What should remove_filter() look like?  add_filter('comments_array',array( &amp;$this, 'FbComments' ));   It's on line 88 . I had one batch class in which i am passing some data required for creating object record.But when i call that batch class from parent class variables are initialized but start method are not called as there is no record to query i also tried with iterable object but not able to do that.My code is as below  global class testBatchClass implements Database.Batchable&lt;SObject&gt;,Database.Stateful{     public List&lt;sObject&gt; sObjectList;     public string objectName;     public String dataList;      public testBatchClass(String objectName,String inputdata){          String listType = 'List&lt;'+objectName+'&gt;';         system.debug('list type value is'+listType);         List&lt;SObject&gt; castRecords = (List&lt;SObject&gt;)Type.forName(listType).newInstance();         this.sObjectList = castRecords;         this.objectName = objectName;         this.dataList = inputdata;      }     global Iterable&lt;SObject&gt; start(Database.BatchableContext batchableContext) {         return new sObjectList{};     }     global void execute(Database.BatchableContext batchableContext, List&lt;sobject&gt; scope){          List&lt;OpportunityRenewal__mdt&gt; mdtList = new List&lt;OpportunityRenewal__mdt&gt;([Select id,Api_Name_of_Fields__c,Sobject_Name__c from TestFileUploadCustomSetting1__mdt where Sobject_Name__c=:objectName]);         List&lt;String&gt; fieldName = new List&lt;String&gt;();         for(OpportunityRenewal__mdt md : mdtList){             if(md.Sobject_Name__c == objectName){                 fieldName = md.Api_Name_of_Fields__c.Split(',');                 break;             }         }         List&lt;String&gt; dataRowsSplit= dataList.split(',');         dataRowsSplit.remove(0);         for(String eachRow: dataRowsSplit){             List&lt;String&gt; splitString = eachRow.Split(',');             sObject sobj = Schema.getGlobalDescribe().get(objectName).newSObject();             for(Integer i=0; i &lt;= splitString.Size(); i++){                 sobj.put(fieldName[i],splitString[i]);             }             scope.add(sobj);         }         if(scope != Null &amp;&amp; scope.Size() &gt; 0){             upsert scope;         }     }      global void finish(Database.BatchableContext batchableContext) {} }   Thanks I'm playing Minecraft on Xbox 360 and I can't find the . I have tried every trick I can think of, including the xray glitch, and recreating the world in Creative mode to dig out the entire stronghold and the surrounding areas. I have found nothing and I am totally lost on where it could be.  The seed is 1833758535681455132 Gravitational waves and time Two questions.  It is said that time can only go slower in gravity fields and if you move faster.  I have heard that when a gravitational wave pass earth then the space/time vibrate and time change for an instance.  But a wave is often with a top and a valley.  They have now atomic clocks that might be able to detect time variations, placed in satellites around the sun and "quantum entangled". "Using Atomic Clocks to Detect Gravitational Waves"   So what if we could compare time ticks between clocks in space at "absolute frame of reference" where time has its maximum universal speed as time in deep space between Galaxy Filaments.  Will we only detect that time ticks slower for an instance when the gravational wave pass?  1. Or will we detect that time tick slower AND faster than normal time also, as compared to zero gravity time and no movement time in "absolute frame of reference"?  2. Can time go let's say 10 times faster by theory/mathematics, by a extreme theoretical gravitational wave, than time in "absolute frame of reference time"? How to pick a specific symbol from a specific font? What is the simplest way to convert char[] to/from tchar[] in C/C++(ms)? This seems like a pretty softball question, but I always have a hard time looking up this function because there seem there are so many variations regarding the referencing of char and tchar. Prove that the normalisation of $A=k[X,Y]/(Y^2-X^2-X^3)$ is $k[t]$ where $t=Y/X$ (Reid, Exercise 4.5) This is a problem about finding the normalisation of a quotient polynomial ring. So I have to find the integral closure of the ring in its field of fractions. The problem statement is as follows:     Let $A=k[X,Y]/(Y^2-X^2-X^3)$. Prove that the normalisation of $A$ is $k[t]$ where $t=Y/X$.   Can I do this by showing that the field of fractions $\text{Frac} A$ of $A$ is equal to $k[t]$, and subsequently showing that the field of fractions is normal? (This could be done by showing that $k[t]$ is a UFD?)  I am lost at calculating/determining $\text{Frac}A$, or similarly proving that $k[t]=\text{Frac}A$. Also, how do I show that it is normal?  I hope you can help! New three-tiered badge idea: Explainer →Refiner → Illuminator The difference between a poor or meh question and a stellar question can often simply be someone understanding it and providing it a great answer. I can't begin to count the number of times I've justified re-opening a question as a moderator by saying:     Look at the answer it got, though. This isn't something we want deleted, this is something we want fixed, because it's obviously valuable. Someone with domain knowledge can easily edit that question based on the answer it received.   This doesn't only apply to borderline-poor or poor questions – sometimes a good edit means the difference between 100 and 10,000 people finding something through typing things into Google. Good titles are hard.   We think we've come up with a way to provide incentive for good, opportunistic edits to happen more often, ideally without questions needing to go through closure or collecting a centimeter of dust before they do. What if we simply rewarded folks that answered and edited questions with a special, relatively difficult to earn badge?  Let's say that you answer something, and:   You edit the question 12 hours before or after answering it. This allows you to edit now, answer later &mdash; or answer now and edit later, when you have the time. Your edit isn't rolled back, or outright rejected if it was a suggested edit The question is not closed for any reason, even simply being a duplicate Your answer has a score of 1 or higher   &hellip; then you've done something that we probably want to recognize. You understood something, you provided the knowledge that you have, and then you provided an edit to make sure that more people in need of this knowledge can find it, while raising the overall quality of the site.  Here's the proposed tiers for the badge (within the above stated criteria):   Explainer (Bronze): Answered &amp; edited 10  questions Refiner (Silver): Answered &amp; edited 50 questions Illuminator (Gold): Answered &amp; edited 500 questions   We think this is going to be pretty hard to game. You can't go leaving streaks of terse snark all over the place on questions you know are going to be closed anyway, and junk edits aren't going to fly.  We're talking about rewarding folks that take a tiny bit more time out of their day just to write a more descriptive title so that folks can find the awesome answer that they wrote. Just doing that alone can make a big difference. Sure, it's a tad hard to get at the gold level, but it's supposed to be. If you routinely edit questions that you answer and have done so for some time, you'd probably get it the day we roll it out.  While this is technically something that we came up with on the quality initiative ( | ) &mdash; this badge could be earned on all of our sites.  What do you think? What did we miss? What could be better about the idea? Im new to Illustrator and have found the clipping mask is not so easy compared to Phtoshop. Could any one tell me how i can make this line texture a clipping mask over the circle? Standard formula for quick calculation of scores I have three datasets as follows:   Dataset A can have a maximum score of 30. (Individual scores can be from 1 to 30) Dataset B can have a maximum score of 45. (Individual scores can be from 1 to 45) Dataset C can have a maximum score of 25. (Individual scores can be from 1 to 25)   The three datasets contribute equally to a final score, hence it is 33.33% each. i.e. (33.33% for dataset A + 33.33% for dataset B + 33.33% for dataset C) = 100% (final score)  I have the following scores in each dataset:   Dataset A: 22 Dataset B: 15 Dataset C: 10   Is there a quick formula that I can use to work out the final score, based on the above datapoints?   (This is not a homework question.) In Windows 10 how can we change the name of this folder under C:\Users? I'm using Windows 10 on my personal computer (HP Pavilion Laptop) and you can see in the Screen Shot under C:\Users there are two folders.    The name of the first folder is C:\Users\SINGHA, however, the correct spelling of my last name is SINHA.  I need to change the name of this folder to C:\Users\SINHA so that it shows the correct name.     Under User Account, the spelling of my name is correct - it's only under C:\Users\ where the name is spelt incorrectly. Consequently, if I open/edit a Word or Excel document, the name of the owner being shown is the incorrect one (i.e it's shown as C:\Users\SINGHA instead of C:\Users\SINHA)   If I right-click on this folder, I won't get the Rename option; How can I change the name of this folder? How to pass parameters to an alias? Disabling module with config sync and removing with composer I have an issue disabling modules, I've searched but cannot find something useful:  - Developer A disable module and via composer remove it  - I pull his changes so i run composer install that remove the code, then drush cim to update configuration, but it complains that the module is missing while it's trying to delete its configurations.  What's the right way to do this? I can't import config before running composer install because along the uninstalled module there could be also new modules needed for the configuration import. I just stumbled upon a :     My wife and I's seafood collaboration dinner. How does it look?   Sure enough, the top comment immediately points out that it should be "my wife's and my". However, a cross-post to the Grammar subreddit produced :     It's fine as it is written. "my wife and I" is a noun phrase, functioning as a subjective pronoun in the singular and made possessive with the apostrophe. It is exactly the same as "our".      It seems weird because you would never use "I's" on its own but it is not on its own here - it is part of a noun phrase.   That's a rather intriguing argument. Does it hold any water? How to open pdf file in Windows Phone 8? I know that I can append &amp; to a command to run the process in the background.   I'm SSH'ing into an Ubuntu 12.04 box and running a python program with $python program.py &amp; -- but when I go to close the terminal window I get a message saying that closing the terminal will kill the running process.   Why is this? I am using the ampersand to run the process in the background. How can I get it to run regardless of if I am SSH'ed in? Why General Leibniz rule and Newton's Binomial are so similar? The binomial expansion:  $$(x+y)^{n} = \sum_{k=0}^{n} \binom{n}{k} x^k y^{n-k}$$  The General Leibniz rule (used as a generalization of the product rule for derivatives):  $$(fg)^{(n)} = \sum_{k=0}^{n} \binom{n}{k} f^{(k)} g^{(n-k)}$$  Both formulas can be obtained simply by induction; Newton's binomial also has a combinatorial proof . It's striking how these formulas are similar; is there a possible connection between them? I was thinking that maybe the General Leibniz rule could be obtained using a combinatorial argument as well (hence the binomial coefficients)...