5

This can be easily solved by noting which terminal the export command was executed in the same terminal window that flask is running in (will be prompted to run in after the export command). Otherwise, flask cannot recognize the API_KEY as an environment variable, hardly being an environment variable.


5

For j being 0, your index would be width. But valid index is from 0 to width-1. Subtract one and it should be right. After fixing this, I see another issue: You first swap the left half with the right, and then the right with the left, returning the image to its old state. Stop at the right point. BTW, you can assign whole RGBTRIPLE type variables, like ...


2

Um, your code seems pretty hardcoded. It is good to improve the ability to think by trying to implement a new algorithm. I'm really sorry, I couldn't read it because its a lot. :( Anyways here's my code. I think it might help you. What I've basically done is I started from the top row then the relevant row and the row below. For i being the row and j being ...


2

OK, the problem lies in a small error in the code. Let's follow the logic of the program. First, let's assume that line 38 is while (!feof(dict)){ The code will find a letter's node (or add one) in root. Then it will reposition the trav pointer to that node. OK so far. Then, a few lines later, it hits this code: //points curser to node trav = ...


1

I recommend you use a for loop to check if there is not a pixel rounding the actual pixel. This should make mistakes disappear. It should be really 2 for loops, 1 for width and 1 for height. "i" starting them at -1 (1 pixel before/above) and finalizing at "i < 2" (1 pixel after/bellow the main pixel). And with and "if" ...


1

Question: When this code calculates blur values for each pixel, are those values stored in a temporary array, or stored back in the original image array as it goes along? Every pixel's blurred values must be calculated on the original values in the surrounding cells. If the cells are updated, then the cells that follow will be calculated on blurred values, ...


1

So my swap function was switching the values of my variables but the variables themselves did not get switched so I had to write out the code to swap the variables (from what i'm told the swap function is basically useless I guess) then make sure to initialize my s after because I originally added the variable swaps after the s and s was being incremented ...


1

For grayscale you should take a look to operator precedence in C (google). The result 'a + b / c' is not the same than '(a + b) / c' For reflect a question: How many swaps do you need to do to flip the image horizontaly? Think about it. For blur you've found a way to go over the 3x3 pixels around the current pixel with your loops 'k' and 'l', and then ...


1

Can't speak to the user error because I'm not well versed in flask, other than to say that an unused variable is pretty much self-explanatory. But, hopefully, this explanation will make the whole thing moot. As a general security rule, table manipulation at an app level should be completely avoided! Creating a new table for each user transaction, or even ...


1

reg is declared as an array with 15 elements. It has indexes 0 through 14. There is no reg[15]. Without seeing the rest of the code, one might assume it fails after r++ executes for the 15th time.


1

The error from this sql INSERT INTO users ('transaction') VALUES(:cash) (quotes or not) is because there is no column named transaction in the users table. Now is the perfect time to add a table for transactions, but don't call it transaction, it's just a pain in the neck. (Generally speaking, in every language, avoid using reserved words to name things.) ...


Only top voted, non community-wiki answers of a minimum length are eligible