Error while updating and incrementing the value by 1
CodeIgniter/PHP Active Record won't increment an integer
Not all files are visible over MTP I have LG L5 (e610 model) device with Cyanogenmod 10. When I connect the phone to a computer with Linux (I have mtpfs installed), I can see both internal storage and the SD card.  However when I navigate inside them, I can't see some of the files.  For example, if I open file manager app on the phone, I can see several files in the Internal storage/Notifications directory, however the directory on the computer only shows one of those files.  If I switch USB connection type to PTP (camera) - as OS X doesn't support MTP natively - Image Capture sees the phone as a camera, however it can only see about a third of all the images present on the phone.  I don't have a Windows machine to try, but I suspect the results would be similar.  I tried upgrading Cyanogenmod to the latest nightly, clearing and reinstalling it - same results.  Any idea as to what is going on?  How can I make all files appear on the host computer? What is the difference between these two Breusch-Pagan Tests? Using R on some data and trying to see whether or not my data is heteroscedastic, I've found two implementations of the Breusch-Pagan test,  (package lmtest) and  (package car). However, these produce different results. What is the difference between the two? When should you choose to use one or the other?  &gt; model &lt;- lm(y ~ x) &gt; bp &lt;- bptest(model) &gt; bp studentized Breusch-Pagan test  data:  model  BP = 3.3596, df = 1, p-value = 0.06681  &gt; ncvTest(model) Non-constant Variance Score Test  Variance formula: ~ fitted.values  Chisquare = 3.858704    Df = 1     p = 0.04948855    These example shows that according to the tests, my data is in one case heteroscedastic and in the other case homoscedastic. I did find  so bptest might be studentized and ncvTest might not be, however, what does this mean then? The full prophecy by Trelawney, the part my question is about in bold:     "The one with the power to vanquish the Dark Lord approaches ... born to those who  have thrice defied him, born as the seventh month dies ... and the Dark Lord will mark him as his equal, but he will have power the Dark Lord knows not ... and either must die at the hand of the other for neither can live while the other survives ... the one with the power to vanquish the Dark Lord will be born as the seventh month dies ..."    – Sybill Trelawney (to Dumbledore)    I am interpreting      for neither can live while the other survives   as: Harry can't live while Voldemort survives and vice versa. But why? It clearly worked until the end of book 7. One could argue with Dumbledore's thery of the self-fulfilling prophecy. But clearly Voldemort was smart enough to see that there was no mechanism that would kill him just because Harry stayed alive.    and either must die at the hand of the other    Again: Why? If somebody else destroyed all Horcruxes and then killed Harry, Voldemort would be just as vulnerable and could be killed by anyone. On the other hand, Harry could have been killed by anyone - his mum's protection transferred to Voldemort by Harry's blood was only helping against Voldemort.  I guess that I am interpreting this part of the prophecy in the wrong way or maybe there is an alternate, less obvious and more tricky one. So my question is: What exactly does the highlighted part of Trelawney's prophecy state? Is it possible that using jQuery, I cancel/abort an Ajax request that I have not yet received the response from? What should I do if I have two libraries that provide functions with equivalent names? I'm not sure if this is the right place to ask this question. I realise that this maybe a borderline philosophical question at this point in time, therefore feel free to close this question if you think that this is a duplicate or inappropriate for this forum. Anyway, I'm an electrical engineer and I have some basic knowledge of quantum mechanics. I know that Schrödinger's equation is deterministic. However, quantum mechanics is much deeper than that and I would like to learn more. If this question is not clearly answerable at this point than can anyone point out some recognized sources that try to answer this question. I would appreciate it if the source is scientific and more specifically, is related to quantum theory. Is there a more complete way of proving this theorem (that I devised)? OR does this theorem already exist and have a name? Last night, I was working on re-solidifying my understanding of parametric equations, and came up with a neat trick for evaluating certain definite integrals. I'm not sure if it exists as a formal theorem, though I refuse to believe I'm the first to notice such a relation. The 'theorem' is a useful trick to evaluate the definite integral of a continuous function over an interval where the function is either strictly increasing or strictly decreasing, given that the inverse of the function is 'nicer' to work with than the function itself. My idea goes as follows:  If $y = f(x)$ is a continuous function over the interval $I$, and either:  $f'(x) &gt; 0$   OR   $f'(x) &lt; 0$   for all values of $x \epsilon I$, then:  $\int_{a}^{b}{f(x)dx} = bf(b) - af(a) - \int_{f(a)}^{f(b)}{f^{-1}(x)dx}$  where $a,b \epsilon I$  Quasi-proof:  Clearly, if a function is strictly increasing or decreasing, it is injective. This is clear because no two values in the domain can correspond to a single value in the range. I feel intuitively that it must also be surjective (though I'm not entirely sure how to prove this part). Assuming it is both injective and surjective over $I$, the function must have an inverse.   If we were to draw two rectangles out of our bounds, they will have areas:  $af(a)$ and $bf(b)$, so that   $bf(b) - af(a)$ will be the area of the region we are observing.  This area is equivalent to the sum of the areas connecting the curve $f(x)$ to the $x$-axis and to the $y$-axis. Thus:  $bf(b) - af(a) = \int_{a}^{b}{f(x)dx} + \int_{f(a)}^{f(b)}{f^{-1}(x)dx}$  Solving for $\int_{a}^{b}{f(x)dx}$, we get:  $\int_{a}^{b}{f(x)dx} = bf(b) - af(a) - \int_{f(a)}^{f(b)}{f^{-1}(x)dx}$  A particularly illuminating example is evaluating:  $\int_{a}^{b}{ln(x)dx}$  $ln(x)$ is strictly increasing over any interval, so the 'theorem' applies.  $\int_{a}^{b}{ln(x)dx} = bln(b) - aln(a) - \int_{ln(a)}^{ln(b)}{e^xdx}$  $\int_{a}^{b}{ln(x)dx} = ln(b^b/a^a) - (e^{ln(b)} - e^{ln(a)})$  $\int_{a}^{b}{ln(x)dx} = ln(b^b/a^a) + a - b$  and so we've evaluated the integral without the need of integrating the function itself (by method of integration by parts), but rather by integrating its inverse, which is trivial to evaluate.!  Response to Jason DeVito's answer: [This image was taken from   () Differences between the introduction of a sandwich thesis and a paper I would like to know what are the main differences between the introductory part of a paper and of a thesis. My thesis would be a sandwich type, so I would have to wrap everything there.  Some of the differences are:   Longer in thesis. Deeper in thesis. Extended definition of key terms, concepts and methodology in thesis. Clear definition of the whole goal in thesis, whereas paper smaller goal.   To narrow the possible answers, I do research on the molecular aspects of the infection steps of a pathogenic swine bacteria. Also develop strategies to block infection by using vaccines. Here is my question:  Is a homeomorphism, that is, a continuos function whose inverse function is also continuous, always bijective? Show that $\ker \hat{T} = \text{ann}(\text{range } T)$ This is an old exam problem: Let $V$ and $W$ be finite dimensional vector spaces over a field $F$ and let $T: V \to W$ be a linear transformation. Define $\hat{T}: W^* \to V^*$ by $(\hat{T}(f))(v)=f(T(v))$. Here, $U^*$ denotes the dual vector space $U$. Since $\hat{T}$ is a linear transformation prove $\ker \hat{T} = \text{ann}(\text{range } T)$ where $\text{ann}(Y) = \{g \in U^* : g(y)=0 \text{ for all } y \in Y \}$ for a subspace $Y$ of vector space $U$.  I'm really not sure how to start this problem. Any advice would be great! How to open nautilus without a desktop? I'm using xmonad, and I would like to open a nautilus window to a certain directory, because I like the convenience of browsing inside an encrypted zip file without unzipping it, which nautilus allows.   however, opening nautilus, even with a path argument starts a desktop on the monitor I'm using (There are 8 xmonad monitors) The desktop is inoperative and renders that monitor useless until nautilus is killed.  Is there any way to open just a nautilus window without any desktop starting? Does this polynomial evaluate to prime number whenever $x$ is a natural number? \hfill \break does not work How do I disable System Integrity Protection (SIP) AKA "rootless" on macOs [OS X] Apple has introduced , also known as "rootless", with OS X 10.11, El Capitan. I understand this is a step for general protection against malware but as a developer I need write access to some of the files it locks away.  How do I disable this protection? Why does the road look like it's wet on hot days? Often, I'll be driving down the road on a summer day, and as I look ahead toward the horizon, I notice that the road looks like there's a puddle of water on it, or that it was somehow wet. Of course, as I get closer, the effect disappears.  I know that it is some kind of atmospheric effect. What is it called, and how does it work? Short-cut for switching to a given directory I've just finished running my first session with only one player, and it felt pretty different from running a session for a group.  Could someone with more experience in this talk about what one should do differently in that situation?  I'm not referring to mechanics like encounter-building, but just how to handle the change to the social dynamics. If I have a Xaml Window, how does one open it as a child window, and then have the parent window wait for the child to close before the parent window continues executing? Rounding a number to the nearest 5 or 10 or X Given numbers like 499, 73433, 2348 what VBA can I use to round to the nearest 5 or 10? or an arbitrary number?  By 5:   499 -&gt;  500 2348 -&gt; 2350 7343 -&gt; 7345   By 10:   499 -&gt;  500 2348 -&gt; 2350 7343 -&gt; 7340   etc. If $f$ is entire and $|f|\geq 1$, then show $f$ is constant. I know I'm going to use Liouville's Theorem, but my main question is why is $1/|f(z)|$ entire as well if $f$ is entire? Is this just a basic property: if $f$ is entire, then $1/f$ is entire? Thanks for the help.