« first day (2441 days earlier)      last day (964 days later) » 

9:40 AM
-1
Q: SQL query to update item quantity using PHP PDO

Developer_lifeGood morning everyone I am trying to update the table with the new quantity selected, when I run the following function, however, I get this error: Fatal error: Uncaught PDOException: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens in C:\xampp\...

-2
Q: Trying to graph half circle with matplotlib

PinAppleRedbullMy half circle doesn't really look like how I expected. Am I doing this right or am I missing something pretty big here ? import math import numpy as np import matplotlib.pyplot as plt coord_list = [] h = 0 k = 0 r = 6 for x in range((1 + h - r), (h + r - 1), 1): y1 = k + math.sqrt(r**2 ...

 
 
6 hours later…
3:22 PM
1
Q: Would compiler optimization remove try/catch block if catch does nothing?

StewieGGriffinI am working with code that has a lot of try catch blocks in but most cases the catch blocks do nothing. As in the code below fib function is throwing invalid_argument exception. The function call in main is in the try block but the catch block does not do anything, except catching the exception....

 
 
6 hours later…
9:22 PM
1
Q: Subobjects as an object in a topos

truebaranForgive me if this question turns out to be too elementary-then feel free to move it to stack exchange. I believe that this should be very basic fact from topos theory nevertheless being not familiar with topos theory let me ask it. One of the highlights of topos theory is the possibility to cons...

 
9:40 PM
15
Q: What is the purpose of `operator auto() = delete` in C++?

FedorA class in C++ can define one or several conversion operators. Some of them can be with auto-deduction of resulting type: operator auto. And all compilers allow the programmer to mark any operator as deleted, and operator auto as well. For concrete type the deletion means that an attempt to call...

 

« first day (2441 days earlier)      last day (964 days later) »