PHP: mysqli_query is not working
php/mysql with multiple queries
Is there a maximum possible acceleration? I'm thinking equivalence principle, possibilities of unbounded space-time curvature, quantum gravity. How can this English sentence be translated into a logical expression? ( Translating " unless") You cannot ride the roller coaster if you are under 4 feet tall unless you are older than 16 years old.   Let:   $P$ stands for "you can ride the roller coaster" $Q$ stands for "you are under 4 feet tall" $R$ stands for "you are older than 16 years old"   Is this logical expression correctly translated?  $$P \rightarrow (Q \wedge R)$$ Fonts larger than \Huge? How can I make text that is larger than the size of the output of {\Huge ...}?   I would like to be able to make text arbitrarily large (even if that is done by some suboptimal scaling routine). Can we use media9 to show a video on a PDF but the video is not embedded to the PDF? I have video tutorials that I want to show in my presentation with beamer class. I don't want the video files get embedded to the PDF because they will make the PDF size very very huge.  If you know how the videos can be played on the HTML with a reference rather than embedding the video file to the HTML file, I want something like this to be applied to my PDF presentation. I just want to reference the video URL from my PDF presentation.   Shortly speaking, can we use media9 to show a video on a PDF but the video is not embedded to the PDF?  Uploading those videos to a web server might be difficult for me because internet connection is very slow and sometimes not available in the presentation room. :-) I noticed that, for each research project, there comes a point where I have to consult the literature, and find all the previous research related to the current project.  Unfortunately, I seem to be very inefficient in my approach. I spend a lot of time digging through papers that are really interesting, but only of tangential importance to my current work, just to find the few papers that actually do similar things. (The pile of "cool paper, read when time" just keeps growing.)  Hence, I'm wondering: What is the most time efficient way to get a thorough overview of the literature in a specific niche of a field?    While searching for an answer I came across these questions:   - This question is quite similar and I liked the approach. I debated with myself if this is a duplicate, but I think it is focused more on how to be sure the search was exhaustive, whereas I'm worried about time efficiency. (Also, I'm a bit curious if things have changed since 2012.)   - The answer provides tips on how to identify what literature generally is important in a field, but I am looking for the most cost effective (least time consuming) way to do it in an area, where I know the broad literature, but not the specifics. Do you really answer "How do you do?" with "How do you do?" in a topological space only finite subsets are compact sets If in a topological space only finite subsets are compact sets, is it then the discrete topological space?   Thank you. math behind complex numbers C||RLC I have a mathematical problem with the following formula. The goal is to transform this equation to have a seperated real and imaginary part. I have already done this with several other equasions, but for this particualar one I don't know where to start.  I dont expect you to do the complete work of transforming for me, it would already be very nice if you could give me a hind on how you would start.  Thank you in advance!  C||RLC      This is my current progress:    My question is:  How can I get rid of the imaginary part jωC2*R?  When the denominator is completely real I can just split up the formula and have an imaginary and a real part. How to interpret the margin of error in a poll? Recently the media reported on a political poll that stated that "46% of Republican voters in Mississippi think that interracial marriage should be illegal".  One example story (of many around the 'net) is this one from the NY Daily News: .  From that article:     A survey conducted last month shows 46% of GOP voters in the state   believe interracial marriage should be illegal - a plurality of the   people questioned   Given that I know many people in interracial marriages (including in my own family) I was motivated to track down the full story rather than fall to the obvious hysteria.  I located the press release on the poll from Public Policy Polling  (PDF)  which has:     46% of these hardcore Republican voters believe interracial marriage   should be illegal, while 40% think it should be legal. With Barbour   included, Huckabee gets more support (22%) from the former than the   latter (15%), as does Palin (13-6). The support for Bachmann (10-2),   Gingrich (13-8), and Pawlenty (4-1) works the opposite way.   And at the end of the first page they state:     PPP surveyed 400 usual Mississippi Republican primary voters from   March 24th to 27th. The survey’s margin of error is +/-4.9%.   Now what I don't understand is how to interpret the results especially the margin of error value.    From the raw numbers, 46% (~50%) of 400 voters is 200 voters who responded who think that interracial marriages should be illegal.  But from stats of Mississippi in the 2008 Federal election, McCain polled about 725,000 Republican votes (to Obamas 556,000). My gut feeling is that you can't extrapolate that 46% number to the other 724,600 Republican voters and still retain a 5% margin of error.  So is the media misrepresenting the numbers (really? the media would do that?!?!?!) Or are there statistics at work that I don't understand?  Thanks for your help! How to evaluate these two integrals. Is there a way to input particular sections of source code using \lstinputlisting (from the listings package) in a flexible way?  It's possible to use the firstline and lastline options to input particular line ranges, but this isn't robust to changes to the source file.  For example, suppose that the input source file is:  int square(int x) {   return x * x; }  int cube(int x) {   return x * x * x; }   In my LaTeX document, I can include the cube procedure using the command \lstinputlisting[firstline=5,lastline=7]{source.c}.  But suppose I later decide to rewrite the cube procedure.  The input source file becomes:  int square(int x) {   return x * x; }  int cube(int x) {   int x2;   x2 = square(x);   return x * x2; }   Now my LaTeX document will not show the final two lines of cube because the listing uses only lines 5-7.  I could manually update the line range, but this is tedious and error-prone.  Is there a way to mark sections of source code with some kind of label so that the listing will be robust to these sorts of changes?  For instance, perhaps the input source file would be something like  int square(int x) {   return x * x; }  /**\beginlabel{lst:cube} **/ int cube(int x) {   int x2;   x2 = square(x);   return x * x2; } /**\endlabel{lst:cube} **/   so that I could use something like \lstinputlisting[lines=lst:cube]{source.c} to include the section that I want and remain robust to changes.  I am open to using other packages for source code listings (e.g., minted) if helpful. How to get GUI sudo password prompt without command line? Currently, for all my commands that require root access, I have to type them out on a command line.  I would like for the GUI to prompt me to key in my password, when sudo is required, instead of having to type out the commands from command line.  Is there any way to enable this? Previously one version of Ubuntu desktop had this feature out of the box.  This version of Ubuntu (that I am now running) I upgraded from a server installation.  I will add, my user account is already added to sudo group. Thus I can run commands such as sudo gedit or sudo apt-get but I'm not able to install software in the Ubuntu Software Center. If the topology of a space  has a countable base, then each base contains a countable subfamily which is also a base. Why are there two sets of the Ctrl, Alt, and Shift modifier keys when only one of each is necessary? "Dear Sir or Madam" versus "To whom it may concern" When is it appropriate to use the terms Dear Sir or Madam and To whom it may concern?  The rules I was taught state that Dear Sir or Madam should be used when you're writing a letter to a person about something that person has direct involvement in (e.g. returning a defective product to a customer service department).  By the same rules, To whom it may concern would be used for situations in which the recipient is a third party to the topic of the letter (e.g. regarding a letter of reference or recommendation).  Was I taught correctly?  Is the rule actually something else?  Or is this one of those situations where many people have an opinion but there is no real rule? ASP.NET MVC Custom Error Handling Application_Error Global.asax? Text deselecting when using Logitech mouse scroll wheel in Sierra Revisiting question templates suggested to have templates for tags. Their example was with the  tag on Stack Overflow.  I'm suggesting a more general approach:  Templates, Mark II  I suggest that each site will have a template. That template will prefill the  textbox when a new question is asked. However, it will be completely optional.  Something like (for Stack Overflow):  ## The Problem ## { Please tell us what the problem is with as many details as possible.   Include language, operating system, and any other relevant information.   Remember to add the relevant tags below, too. } ## Attempted Solutions ## { Please tell us what you've tried so far. Have you tried searching Google?    What queries? } ## Existing Code ## { Do you have any existing code to show? Please keep it short and simple.    We should be able to detect the problem right away. }   Why am I suggesting this?  Well, it seems as though most users will stick with the default. They don't bother to read, and so prefilling the question form for them with information that we know might be relevant, will forceWe'll get to that in a second them to actually stop and read.  Scenarios:   Best case: User arrives to ask a question, actually reads the template, fills the correct information in the placeholders. (Yeah, because that'll happen a lot) Neutral: User simply removes all of the template text and rewrites their own question. Result is exact same as we have currently. Worst case: User will ignore or misunderstand the template, will use it wrong or not at all and we'll get something like  &lt;template text here, still unfilled&gt; &lt;(crappy) question&gt;   This can be solved in a couple different ways. We could detect the template tags (i.e. { }, subject to discussion), and throw an error when a user attempts to post with them still available. We could also act more autonomously and remove placeholders which still exist.    Some more points:   Templates should be per-site, not per-tag. Sure, there are differences between the tags, but all questions are expected to have the same general information, and this isn't meant to be a rule, but a guideline to help write better questions. Site templates should be editable by that site's mods, like close reasons. We could autofocus on the first placeholder, and perhaps implement TAB to jump from one placeholder to the other, similar to mixins in IDEs. This doesn't have to be implemented everywhere. This suggestion makes sense to Stack Overflow or Superuser, but not to Anime &amp; Manga or Gaming All of the details are subject to discussion, and all discussion is welcomed. Get the title instead of the number of a referenced chapter/section? What would be the the mathematical equivalent of this excel formula? =PMT() I need to create a JavaScript form that does the same calculation as this =PMT() function.   mortgage = 220000 rate= 4.75% term = 30   The example formula I have is =PMT(4.75%/12,30*12,220000*-1)  What would be the equation for this function? I tried to look up this function but it doesn't explain it very well.