HTML a Tag Open new window And send POST value
Post a Form to Popup window not to the parent
How do I loop through a MySQL query via PDO in PHP? I'm slowly moving all of my LAMP websites from mysql_ functions to PDO functions and I've hit my first brick wall.  I don't know how to loop through results with a parameter.  I am fine with the following:  foreach ($database-&gt;query("SELECT * FROM widgets") as $results) {    echo $results["widget_name"]; }   However if I want to do something like this:  foreach ($database-&gt;query("SELECT * FROM widgets WHERE something='something else'") as $results) {    echo $results["widget_name"]; }   Obviously the 'something else' will be dynamic. Exact sequence splits? How check if a picklist value is available or not for a specified record type ( through SOQL)? Thanks in advance Today I lost 25 reputation points and I'm just curious why? Apparently it was an upvoted and accepted answer and I thought that questions with answers can't be deleted easily. Talking about the general case, when a question gets removed by a Moderator, I'd think it'd be unfair to lose the points, because one still took the time to answer the question and probably invested a significant amount of work.   Unfortunately I don't have a link to the question. All I have is this:        but the "link" to the question is not clickable.  A syntax error question is a bad example for "probably invested a significant amount of work", I know, but again, I'm just curious what happened and want to know, why one does loose the reputation points ? Could someone provide me with a good explanation of why $0^0=1$?  My train of thought:  $x&gt;0$  $0^x=0^{x-0}=0^x/0^0$, so  $0^0=0^x/0^x=\,?$  Possible answers:   $0^0\cdot0^x=1\cdot0^0$, so $0^0=1$ $0^0=0^x/0^x=0/0$, which is undefined   PS. I've read the  on mathforum.org, but it isn't clear to me. ¿Can you help me with axiom of regularity? I understand that if we define a set such that $A=\{A\}$ we have then a contradiction because of regularity axiom, thus, a set can not be a member of itself. My question is; how can it be so, if I define a set $A=\{A,b\}$ ($b$ disjoint from $A$)?  Thanks. Why jquery validation is not working on appended elements? How to return default PS1 prompt? Is there a way to absolutely force a Log Out, Shut Down, or Restart with open tabs and unsaved documents? I could not find any relatively simple way to log out of a public use Mac quickly with many tabs open and unsaved document in the background without resorting to sudo shutdown -h now.  The reason I ask is that sometimes a user will have his/her account logged into the iMacs here at school and they would try to log off and then leave, thinking it has completed but the process is interrupted by Safari and Office apps, leaving their account, mounts, and websites still accessible to the next person who sits down.  Obviously a shortcut string would be nice instead of posting a note telling the person to type arcane things in a terminal. For example, just having them try to find Terminal.app is going to be a chore.  This doesn't seem to make sense because the user can just quit each app and click a few dialog boxes but unlike you and I to whom repeatedly pounding Command-Q while hitting the spacebar and D keys are probably second nature. Is there a password manager for Ubuntu What is the most popular open source password manager which I can use on a Ubuntu machine or preferably across Ubuntu/Windows machines with some form of data compatibility. If there is a free web based version, that would be even more preferable. Consider the following minimal example:  \documentclass{article}  \setlength{\parindent}{0mm}  \usepackage{paralist} \usepackage{tabto}  \begin{document}  \NumTabs{3} \begin{inparaenum} \item text \tab\item text \tab\item text \tab\item text \tab\item text \tab\item text    \end{inparaenum}  \end{document}   Which results in:    It does exactly what I want, but I was wondering whether it was possible to create an environment, say tabbedEnum so that we can eliminate the use of the \tab, in particular, that the first case doesn't need a tab but all others do. Something of the form:   \begin{tabbedEnum}[3] \item text \item text \item text \item text \item text \item text \end{tabbedEnum} Why did the Tethered form a line in Us? In Jordan Peele's  we see that the Tethered plan a revolt, rise above ground and start murdering everyone in sight and then they form a line by holding hand in hand.   What was the purpose of that? I tried to use this for the last part of my table, but I can't get a vertical line at the end. Does anyone know?   \begin{tabular}{|CC|C|C|C|C|C|C|C|C|C|C|}\hline \Tab{Method Based on \\\hline       Radiography\\Magnetic Particle (A.C.)\\ \\Eddy Current\\Dye Penetrants\\ Ultrasonics} &amp; \Tab{ \\\hline \\ Wet \\ Dry \\ \\ \\ \\} &amp; \Tab{\rotatebox{90}{~\parbox{5cm}{Minute Surface Cracks }~}  \\\hline       N\\ G\\F\\F\\F\\P}  &amp; \Tab{\rotatebox{90}{~\parbox{5cm}{Deeper Surface Cracks      }~}  \\\hline            F\\G\\G\\G\\G\\G} &amp; \Tab{\rotatebox{90}{~\parbox{5cm}{Internal Cracks      }~}  \\\hline            F\\N\\N\\N\\N\\G} &amp; \Tab{\rotatebox{90}{~\parbox{5cm}{Fatigue Cracks      }~}  \\\hline            P\\G\\G\\N\\G\\G} &amp; \Tab{\rotatebox{90}{~\parbox{5cm}{Internal Voids      }~}  \\\hline            G\\N\\N\\N\\N\\G}           &amp; \Tab{\rotatebox{90}{~\parbox{5cm}{Porosity and Slag in Welds      }~}  \\\hline            G\\N\\N\\P\\N\\F}           &amp; \Tab{\rotatebox{90}{~\parbox{5cm}{Thickness      }~}  \\\hline            F\\N\\N\\P\\N\\G} &amp; \Tab{\rotatebox{90}{~\parbox{5cm}{Stress Corrosion      }~}  \\\hline            F\\G\\F\\N\\G\\F} &amp; \Tab{\rotatebox{90}{~\parbox{5cm}{Blistering      }~}  \\\hline            P\\N\\N\\N\\N\\F} &amp; \Tab{\rotatebox{90}{~\parbox{5cm}{Corrosion Pits      }~}  \\\hline            G\\N\\P\\N\\F\\P} \\\hline &amp; \multicolumn{11}{l}{G=Good;F=Fair;P=Poor;N=Not suitable.} \\ \hline \end{tabular} \label{tab:NDETechniques} \end{table}   It comes out like this: Auxhook warning cannot patch document using AtBeginDocument instead I'm using subfiles within my report (written on sharelatex), when I compile a subfile it produces a warning. Am I doing something wrong or is this normal?  Example  \documentclass[report.tex]{subfiles} % \usepackage{acronym} \begin{document}  some text  \end{document}   Error     /usr/local/texlive/2015/texmf-dist/tex/latex/oberdiek/auxhook.sty   Package auxhook Warning: Cannot patch \document, using \AtBeginDocument instead.   When I compile the main document it does not produce this warning.  The raw log file produces this warning     ......   Package: auxhook 2011/03/04 v1.3 Hooks for auxiliary files (HO)   Package auxhook Warning: Cannot patch \document,   (auxhook)                using \AtBeginDocument instead.   ) (/usr/local/texlive/2015/texmf-dist/tex/latex/oberdiek/kvoptions.sty   Package: kvoptions 2011/06/30 v3.11 Key value format for package options (HO)   ....    Packages  I'm using the following packages:    \documentclass[whitelogo]{tudelft-report}   % Used for referencing   \usepackage{natbib}   % For writing remarks in the text (is this going to be used?)   \usepackage{changes}   % used to write and render different subfiles   \usepackage{subfiles}   % used to draw boxed problems   \usepackage{mdframed}   % for subcaptions in combined figures   \usepackage{subcaption}    % used for Epigraphs of course   \usepackage{epigraph}   % Makes weblinks clickable   \usepackage{hyperref}   % used to display pictures   \usepackage{graphicx}   % used to add urls with strange symbols   \usepackage{grffile}   % used for H command in figures   \usepackage{float}   % used for tickz pictures (Causes a warning)   %\usepackage{pgfplots}   %used for the acronym page [printonlyused,withpage] are options   \usepackage{acronym}    % ######################### open section for code appendix #######################   \usepackage[utf8]{inputenc}   \usepackage{listings}   \usepackage{color}   \definecolor{codegreen}{rgb}{0,0.6,0}   \definecolor{codegray}{rgb}{0.5,0.5,0.5}   \definecolor{codepurple}{rgb}{0.58,0,0.82}   \definecolor{backcolour}{rgb}{0.95,0.95,0.92} Is there a way I can see a list of all my YouTube comments over time? I posted something the other day and wish I could find the video again. Is there a way I can see all of my comments? Buying a "blender" that can purée a potato My wife had a "smoothie" made by a co-worker that is based on green apples and raw red potatos.  Our smoothie maker can't do that and leaves unchopped bits and a gritty feel.  Her friend uses a Vitamix blender, and looking up the model number not only induced sticker shock, but reviews raised concerns with the item leaving bits of teflon in the food etc. And the price for just a replacement pitcher is so high that it appears overpriced.  What is it about a blender that allows it to make a good purée rather than just mixing things easily?  I think it might be the design of the blade and base, not just raw power: even a modest powered blender doesn't stall or run out of power; but it doesn't chop any finer no matter how long it is left running.  It might also involve speed vs torque usage of power.  Does anybody know what makes a machine capable of making a good purée as opposed to just blending, especially when both kinds are sold as “blenders”.  Should I be looking for ones with different options for blades like a food processor, to make it well suited to different purposes? E.g. I have seen blades just for milkshakes.  In general, how do you shop for one when the only information a seems to be total power and the number of presets? Let $R$ be a commutative ring with $1$. Suppose that all ideals $I \neq R$ are prime. Prove that $R$ is a field.   Help me some hints.  Thanks a lot. If $l$ and $n$ are any positive integers, is there a  proof of the identity     $$\sum_{k=0}^{n}(-1)^{k}\binom{n}{k}(l-k)^n=n!\;$$   which uses the Inclusion-Exclusion Principle?  (If necessary, restrict to the case where $l\ge n$.)    This question is closely related to   and also Creating Inky-looking characters in Blender In the small amount of physics that I have learned thus far, there seems to be a (possibly superficial pattern) that I have been wondering about.  The formula for the kinetic energy of a moving particle is $\frac{1}{2}mv^2$.  The formula for kinetic rotational energy is $\frac{1}{2}I\omega^2$.  The formula for energy stored in a capacitor is $\frac{1}{2}C \Delta V^2$.  The formula for energy delivered to an inductor is $\frac{1}{2}LI^2$.  Finally, everyone is aware of Einstein's famous formula $e=mc^2$.  I realize there are other energy formulas (gravitational potential energy, for example) that do not take this form, but is there some underlying reason why the formulas above take a similar form? Is it a coincidence? Or is there a motivation for physicists and textbook authors to present these formulas the way they do?