How to use my php file in my long poll
How do I implement basic "Long Polling"?
Why was Dumbledore worried by the cut in Harry's arm? Can someone please confirm the following? I have a C1/D visa. I worked as a flight attendant (currently unemployed) and entered the US numerous times, and also visited Mexico in December 2017.  I am planning on visiting Mexico again for 3 weeks in due course. Will the C1/D allow for me to transit in the US and visit Mexico or do I need a B1/B2 visa? I had issues with CBP before as it seems to be a very grey area.  According to the Mexican Consulate in South Africa, the type of visa is irrelevant. As long as it is multiple-entry, I am good to go.  Can someone please confirm, as I cannot get a solid answer from anyone?  Thank you! How can I identify what application is using a given file? Some questions are getting closed as duplicates - good, the system is working. Unfortunately, some are getting closed as duplicates of other questions which are already deleted. This leaves all 1-9,999 reputation users left scratching their heads when they try to view the duplicate. Even worse, imagine being the author of the question and having your question closed as a duplicate when the original question isn't accessible.  I think something is wrong. Today I undeleted a question (left it closed) since it was referenced in the close-reason for another question. Comments indicated that people were clearly irritated that they could not access the duplicate     [Comment] Ok, who thought it was a good idea to close this as duplicate of a deleted question, which most people cannot even see? For the record, I'm reopening - clearly there's enough interest in this question. – Kobi 14 hours ago   ---   [Comment] The PosibleDuplicate link is broken. Voting to reopen. – Rahul G 7 hours ago   ---   [Flag] Closed as duplicate of a deleted question, fail. Thanks for moderating. – {username removed} 14 hours ago   My undelete-action was short-lived, as a few users returned to delete the post again.  It certainly cannot be desirable to reference posts that the vast majority of users cannot even see, especially when the author of the redundant question cannot see (at the time of writing this, the author has a reputation of 18).  I'm not sure what the solution is to this, but I'd like to hear some ideas.  Questions  Question:  Duplicate of: How do I create an immutable Class? What does 's=.*/==' do in sed? I saw sed 's=.*/==' in context of sh script and I'm puzzled. I could not find in sed manual or web search (for sed s=) how s is used, not s///. Apart from s I see only one potential command here = (Print the current input line number), but in such case what the rest is doing...   Running the command in shell produces same output as input for e.g echo 'jkfdsa=335r34',  whereas echo 'jkfdsa=335r34' | sed 's/=.*/==/' does replacement as per manual. Also slightly modifying command to e.g. echo 'jkfdsa=3' | sed 's798=.*/==/' gives sed: -e expression #1, char 11: unterminated 's' command, so original should have some correct meaning. What is it? Why does the compiler say "a constant value is required" for the first case...the second case works fine...    switch (definingGroup) {     case Properties.Settings.Default.OU_HomeOffice:           //do something           break;     case "OU=Home Office":           //do something         break;     default:         break;  }   also tried...  switch (definingGroup) {     case Properties.Settings.Default.OU_HomeOffice.ToString():           //do something         break;     case "OU=Home Office":         //do something         break;     default:         break;  }   ...same error  Here's the Properties.Setting code  [global::System.Configuration.ApplicationScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("OU=Home Office")] public string OU_HomeOffice {     get {         return ((string)(this["OU_HomeOffice"]));     } } I am using scikit learn  to build a Random Forest classifier.  I have heard that it might be possible to build a single decision tree from a Random  Forest. The suggestion  is that although the decision tree may not be as good a classifier as the Random Forest it may be better than the decision tree you would get by using the standard method.  However I haven't been able to find this method online. Does it exist?     My question is not about extracting one  of the decision trees from a Random Forest. It is asking about a method to construct a new decision tree from the whole Random Forest, perhaps by combining the trees in the Random Forest somehow. Is there a privacy setting on Facebook that will stop the posting that is made on your friend's wall when you make a new friend?  I do not want this to appear on my friend's wall when I make a new friend Using BibTeX/biblatex to make a list of references without having citations in the body of the document? Is there any way to have BibTeX or biblatex insert a bibliography without having citations in the body of the document itself? Maybe a way to hide the in-text citations, so that BibTeX still sees them and includes them in the bibliography, but does not print them in the body? Emoji Characters I'm trying to display Emoji Characters inside my XeLaTeX Document. It seems to work for some glyphs like the numbers and pound sign but not for all. Here is a MWE:  \documentclass{scrartcl}  \usepackage{fontspec}  \setmainfont{Apple Color Emoji} % The emoji Font   \begin{document} \char"0030{}  %Works \char"1F60D{} % Doesent Work should out put SMILEY FACE WITH HEART SHAPED EYES \end{document}   What is the reason for this strange behavior and is there a way to include Emojis in XeLaTeX?  Edit:   It seems the Character is there. It is selectable but not visible. I can copy&amp;paste it. In classical logic, why is $(p\Rightarrow q)$ True if both $p$ and $q$ are False? I am studying entailment in classical first-order logic.  The Truth Table we have been presented with for the statement $(p \Rightarrow q)\;$ (a.k.a. '$p$ implies $q$') is: $$\begin{array}{|c|c|c|} \hline p&amp;q&amp;p\Rightarrow q\\ \hline T&amp;T&amp;T\\ T&amp;F&amp;F\\ F&amp;T&amp;T\\ F&amp;F&amp;T\\\hline \end{array}$$  I 'get' lines 1, 2, and 3, but I do not understand line 4.      Why is the statement $(p \Rightarrow q)$ True if both p and q are False?  We have also been told that $(p \Rightarrow q)$ is logically equivalent to $(~p || q)$ (that is $\lnot p \lor q$).  Stemming from my lack of understanding of line 4 of the Truth Table, I do not understand why this equivalence is accurate.       Administrative note. You may experience being directed here even though your question was actually about line 3 of the truth table instead. In that case, see the companion question  And even if your original worry was about line 4, it might be useful to skim the other question anyway; many of the answers to either question attempt to explain both lines. Removing control chars (including console codes / colours) from script output I can use the "script" command to record an interactive session at the command line.  However, this includes all control characters and colour codes.  I can remove control characters (like backspace) with "col -b", but I can't find a simple way to remove the colour codes.  Note that I want to use the command line in the normal way, so don't want to disable colours there - I just want to remove them from the script output.  Also, I know can play around and try find a regexp to fix things up, but I am hoping there is a simpler (and more reliable - what if there's a code I don't know about when I develop the regexp?) solution.  To show the problem:   spl62 tmp: script Script started, file is typescript spl62 lepl: ls add-licence.sed  build-example.sh  commit-test         push-docs.sh add-licence.sh   build.sh          delete-licence.sed  setup.py asn              build-test.sh     delete-licence.sh   src build-doc.sh     clean             doc-src             test.ini spl62 lepl: exit Script done, file is typescript spl62 tmp: cat -v typescript Script started on Thu 09 Jun 2011 09:47:27 AM CLT spl62 lepl: ls^M ^[[0m^[[00madd-licence.sed^[[0m  ^[[00;32mbuild-example.sh^[[0m  ^[[00mcommit-test^[[0m         ^[[00;32mpush-docs.sh^[[0m^M ^[[00;32madd-licence.sh^[[0m   ^[[00;32mbuild.sh^[[0m          ^[[00mdelete-licence.sed^[[0m  ^[[00msetup.py^[[0m^M ^[[01;34masn^[[0m              ^[[00;32mbuild-test.sh^[[0m     ^[[00;32mdelete-licence.sh^[[0m   ^[[01;34msrc^[[0m^M ^[[00;32mbuild-doc.sh^[[0m     ^[[00;32mclean^[[0m             ^[[01;34mdoc-src^[[0m             ^[[00mtest.ini^[[0m^M spl62 lepl: exit^M  Script done on Thu 09 Jun 2011 09:47:29 AM CLT spl62 tmp: col -b &lt; typescript  Script started on Thu 09 Jun 2011 09:47:27 AM CLT spl62 lepl: ls 0m00madd-licence.sed0m  00;32mbuild-example.sh0m  00mcommit-test0m         00;32mpush-docs.sh0m 00;32madd-licence.sh0m   00;32mbuild.sh0m          00mdelete-licence.sed0m  00msetup.py0m 01;34masn0m              00;32mbuild-test.sh0m     00;32mdelete-licence.sh0m   01;34msrc0m 00;32mbuild-doc.sh0m     00;32mclean0m             01;34mdoc-src0m             00mtest.ini0m spl62 lepl: exit  Script done on Thu 09 Jun 2011 09:47:29 AM CLT Disable storage of invisible files "._" on my cfs or smb network storage One of the things that makes him great is he brings it every night.   I'm pretty sure it should be that make him in the plural, because one of the things is referring to a lot of things and a lot of things should take a plural verb. But I always hear native speakers in America say it in the singular, so with an s.  Another example:     This is one of the responsibilities that comes with greatness and he understands that.   Native speakers always use the verb in the singular (here, comes) even though [I believe] it is grammatically incorrect to use the singular form of the verb there. How to know (in GCC) when given macro/preprocessor symbol gets declared? Suppose I have #define foo in various header files. It may expand to some different things. I would like to know (when compiling a .cc file) when a #define is encountered, to what it will expand, it which file it is and where it got included from.  Is it possible? If not, are there any partial solutions that may help?  Feel free to add comments with clarification requests.  Edit: current answers seem to concentrate on the case when there is one #define and I just want to jump to definition or know what the definition is. That's the simple case and yes, your solutions work. But when I have the same #define in different files, and want to know which one kicks in first, none of these techniques is useful. Okay, I actually used #warning carefully to find the right place. But this requires much work. Grub rescue after installing Ubuntu on a external HDD from USB Foreign key constraint on array member? Flagging summary improvement: filters It was suggested to me recently that Annihilator sacrifices (such as 's) are only chosen during resolution, rather than while they're going on the stack.  Do I choose those sacrifices during resolution? What part of the comprehensive rules backs that up?  I can't find any clarity on the internet, in the rules, on the MTG Salvation wiki for Annihilator, or in the ability's rulings. It seems reasonable, but I'd like to know what's behind it. Plus, if I can choose and then later  some stuff, all the better.