where clause is not working in sqlite database
What is a NullPointerException, and how do I fix it?
I can run faster than _____. (1) him (2) he? Consider the sentence &quot;I can run faster than 15 miles per hour.&quot; Its meaning is clear and to my eyes obviously grammatically correct. Now let me present some variations that have given me trouble for a long time.  I am faster than 15 miles per hour. – To me this is clearly incorrect. Directly comparing me to a speed doesn't seem right. We need to compare my speed to a speed, or me to another person.  I can run faster than him. – Compared to the base sentence, there is a distinct shift in meaning of the comparison. While before I named a speed faster than which I can run, now I am naming a person. It doesn't seem quite right. I realize the parts of speech can change, but my initial objection is that &quot;him&quot; is not a speed.  I can run faster than he. – This seems most correct to me, but still somehow feels objectionable. Is this in fact the correct way to say it? And if so, is it proper as is or need I say &quot;... faster than he can&quot; or even &quot;... faster than he can run?&quot;  I am faster than him. – With &quot;am&quot; instead of &quot;can run&quot; it now seems slightly more correct. But is it?  I am faster than he. – I'm in doubt here. It doesn't seem wrong to me to say, &quot;I am faster than he is&quot; or even &quot;I am faster than he is fast.&quot; (Though I suppose that is a given since I could hardly properly compare to some other category as in &quot;I am faster than he is smart.&quot;)  My speed is faster than his. – Hmm. This seems more proper as &quot;my speed is greater than his.&quot;   So which of these constructions is correct and which is incorrect? Is there a general rule that I can follow? UPDATE The scholarly article  may be of great interest to some readers!  Once we accept that the elided constituent and its antecedent can differ in form, it becomes reasonable to ask how large this difference can be. The answer in Rooth (1992), Fiengo and May (1994), Chung et al. (1995) and subsequent work is that the wiggle room is actually quite small: the elided constituent and its antecedent are allowed to differ only in the realization of inﬂectional morphology. Other than that, both constituents have to be syntactically and lexically isomorphic. Are there any drawbacks to legacy BIOS as opposed to UEFI? Are there any drawbacks to installing Ubuntu 13.10 (and soon 14.04) in Legacy BIOS instead of UEFI?  I have installed 13.10 64bit in Legacy by mistake and was just wondering if it would hurt anything to simply leave it there as is?  EDIT  Everything seems to be running just fine in Legacy and all my drivers work. What's the best way to do a backwards loop in C/C#/C++? I need to move backwards through an array, so I have code like this:  for (int i = myArray.Length - 1; i &gt;= 0; i--) {     // Do something     myArray[i] = 42; }   Is there a better way of doing this?  Update: I was hoping that maybe C# had some built-in mechanism for this like:  foreachbackwards (int i in myArray) {     // so easy }   Update 2: There are better ways. Rune takes the prize with:  for (int i = myArray.Length; i-- &gt; 0; ) {         //do something } //or for (int i = myArray.Length; i --&gt; 0; ) {     // do something }   which looks even better in regular C (thanks to Twotymz):  for (int i = lengthOfArray; i--; ) {         //do something } $ac\equiv bc \pmod{\!m}\!\!\iff\!\! a\equiv b \pmod{\!\!\frac{m}{(c,m)}}$ [Euclid's Lemma, congruence form] I came across this theorem:   For all integers a,b,c and m&gt;0, if d = GCD(c,m) then a*c ≡ b*c (mod m) iff a ≡ b (mod m/d).  The =&gt;proof states this:  a*c ≡ b*c (mod m) =&gt; m|(a-b)*c                    =&gt; m/d | (a-b)*c/d                   =&gt; m/d | (a-b)                   =&gt; a ≡ b (mod m/d)   I don't understand how to go from step 2 to step 3. The proof states that this is possible because m/d and c/d are coprime. To me this means GCD(m/d, c/d) = 1 but how does this cancel out the whole term? What's the difference between a projection and a datum? How do moving charges produce magnetic fields? I'm tutoring high school students. I've always taught them that:     A charged particle moving without acceleration produces an electric as well as a magnetic field.   It produces an electric field because it's a charge particle. But when it is at rest, it doesn't produce a magnetic field. All of a sudden when it starts moving, it starts producing a magnetic field. Why? What happens to it when it starts moving? What makes it produce a magnetic field when it starts moving? I've often come across posts on forums or other websites where you see people joking in such a manner about running/logging in as root as if it's something awful and everyone ought to know about it. However, there isn't much that a search reveals on the matter.   It may be widely known to Linux experts, but I really don't know why. I remember always running as root when I first tried Linux years ago (Redhat and Mandrake) and don't remember running into any problems because of that.   There are actually some distros that have a bright red background with alert signs all over it as wallpaper for the root user (SuSe?). I still use the "Administrator" account for regular use on my Windows installation and haven't ever run into any problems there either. Today I updated to version 2.18.52 &amp; I can’t see the names of the people who send me a message. The only thing I see is the WhatsApp logo and the word “message”.    I can’t also see the status my friends posts, they all look black. I uninstalled the app, reset my phone &amp; nothing seems to work so far. SEVERE: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Applications of complex numbers to solve non-complex problems Recently I asked a question regarding the diophantine equation $x^2+y^2=z^n$ for $x, y, z, n \in \mathbb{N}$, which to my surprise was answered with the help complex numbers. I find it fascinating that for a question which only concerns integers, and whose answers can only be integers, such an elegant solution comes from the seemingly unrelated complex numbers - looking only at the question and solution one would never suspect that complex numbers were lurking behind the curtain!  Can anyone give some more examples where a problem which seems to deal entirely with real numbers can be solved using complex numbers behind the scenes? One other example which springs to mind for me is solving a homogeneous second order differential equation whose coefficients form a quadratic with complex roots, which in some cases gives real solutions for real coefficients but requires complex arithmetic to calculate.  (If anyone is interested, the original question I asked can be found here: )  EDIT:  I just wanted to thank everyone for all the great answers! I'm working my way through all of them, although some are beyond me for now! I am using a plugin to help "build" a customized product. There are different tabs/steps the user has to go through with back and continue buttons. At the last step I would like to add an "agree to terms" box with a checkbox "Agree". I have this done. But I would like to hide the add to cart button in Woocommerce until the user selects the checkbox agreeing to the terms.  This will be beneficial to me to make sure they reviewed the return policy as well as avoid confusion with the add to cart button appearing during all the steps, assuring they go through all the steps.  Here is the checkbox coding i pulled from console:  &lt;ul data-rules="{&amp;quot;Agree_0&amp;quot;:[&amp;quot;&amp;quot;]}" data-original-rules="{&amp;quot;Agree_0&amp;quot;:[&amp;quot;&amp;quot;]}" data-rulestype="{&amp;quot;Agree_0&amp;quot;:[&amp;quot;&amp;quot;]}" data-tm-validation="{&amp;quot;required&amp;quot;:true}" class="tmcp-ul-wrap tmcp-elements tm-extra-product-options-checkbox tm-element-ul-checkbox element_16 termsbox-ul"&gt;     &lt;li class="tmcp-field-wrap tmhexcolorimage-li-nowh"&gt;         &lt;label for="tmcp_choice_16_0_35"&gt;    &lt;input class="tmcp-field termsbox tmhexcolor_16_0_35 tm-epo-field tmcp-checkbox" name="tmcp_checkbox_16_0" data-limit="" data-exactlimit="" data-minimumlimit="" data-image="" data-imagec="" data-imagep="" data-imagel="" data-image-variations="[]" data-price="" data-rules="[&amp;quot;&amp;quot;]" data-original-rules="[&amp;quot;&amp;quot;]" data-rulestype="[&amp;quot;&amp;quot;]" value="Agree_0" id="tmcp_choice_16_0_35" tabindex="35" type="checkbox"&gt;     &lt;span for="tmcp_choice_16_0_35"&gt;&lt;/span&gt;&lt;span class="tc-label tm-label"&gt;Agree&lt;/span&gt;&lt;/label&gt; &lt;span class="price tc-price  hidden"&gt;     &lt;span class="amount"&gt;$0.00&lt;/span&gt; &lt;/span&gt;&lt;i data-tm-tooltip-html="This is were the description will be to agree" class="tm-tooltip tc-tooltip tcfa tcfa-question-circle"&gt;&lt;/i&gt;     &lt;/li&gt;&lt;/ul&gt;   Here is the add to cart section with the quantity  &lt;div class="quantity buttons_added"&gt;     &lt;input value="-" class="minus button is-form" type="button"&gt;    &lt;input class="input-text qty text" step="1" min="1" max="9999" name="quantity" value="1" title="Qty" size="4" pattern="[0-9]*" inputmode="numeric" type="number"&gt;     &lt;input value="+" class="plus button is-form" type="button"&gt;  &lt;/div&gt; &lt;button type="submit" name="add-to-cart" value="267" class="single_add_to_cart_button button alt"&gt;Add to cart&lt;/button&gt;   I am self taught with html and css, but javascript is to foreign for me  I tried the following in CSS but it does nothing.Tried is on codepen and works (i know needs to show instead of hide when checked)....  input[type=checkbox]:checked + .single_add_to_cart_button {     display:none !important;  } Evaluate $\int_0^{\infty}\frac{\log x}{1+e^x}\,dx$ Is there canon info on shelf life of various potions in Harry Potter? Do we know how long potions (in general, or at least specific ones) are potent (no pun intended) in Harry Potter canon?  E.g. do they last a couple of hours? Minutes? Years?   I seem to vaguely remember some comments of Snape's about Wolfesbane potion therfore I think at least some information exists. How to change the numbering of \part, \chapter, \section, ... to alphabetical, Roman numbers, etc Changing a Part of a variable within ParallelDo How to fix invisible form fields in Firefox while using Adwaita Dark Theme (or any other dark theme) I have this issue with some form fields in Firefox and using the adwaita-dark theme. In some webpages where the field background is white, you cannot read the text because it is also white.   This question was edited in order to clarify that this kind of wording of the question might help people who are not familiar with what a GTK+ theme. I also thing that the wording will help to get more hits through search engines. If it's still considered a duplicate, I'll accept it. I once learnt, that it is uncool to use $$, but why is that? Why does \[ not act as a abbreviation to \begin{align}? I noticed, that there is a difference, since one cannot use &amp; and \\ inside a block started with \[. Is Pauli-repulsion a "force" that is completely separate from the 4 fundamental forces? Boosts are non-unitary! Unlike rotations, the boost transformations are non-unitary. Therefore, the boost generators are not Hermitian. When boosts induce transformations in the Hilbert space, will those transformation be unitary? I think no. If that is the case, what is the physical significance of such non-unitary transformations corresponding to boosts in the Hilbert space? Cropping the exact same part of several pictures I have several pictures that are exactly the same except for some small variations. It was one picture that was photoshopped in several different ways. Now, I need to crop them all (13 in total) but I need to crop exactly the same part of it. It needs to be pixel perfect.  How do I do that with Pixelmator?