Hot answers tagged

2 votes

Week 9 - Finance - Foreign Key Mismatch

It's not what you think. The body of a try block should contain the least amount of code to catch an error. This routine should have one try/except block for each of the executes (and only the execute ...
DinoCoderSaurus's user avatar
1 vote
Accepted

Problem Set 4 - Recover (timed out while waiting for program to exit)

You’re only reading in 8 bytes at a time (size of buffer) and that’s probably too slow for check50. You should be reading 512 bytes each time.
curiouskiwi's user avatar
  • 18.7k
1 vote

my Pset 2 Readability is getting the wrong grade level

Introduction Starting your question off with "My Code doesnt pass a check50 test" is NOT a good way to ask a question, approach the problem or get help. Googling and changing your function ...
UpAndAdam's user avatar
  • 1,091
1 vote

Week 9 - Finance - Foreign Key Mismatch

Apparently I had a table hidden in my DB somehow. When I run .schema, I saw the following: sqlite> .schema CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, username TEXT NOT NULL, ...
Julia 's user avatar
  • 21
1 vote

Why is my code not compiling (simple get_int example)?

So in fact you didn't copy his code, you tried retyping it and made errors in the translation. Let's straighten up some terminology: parenthesis = ( and ) braces = { and } brackets = [ and ] For ...
UpAndAdam's user avatar
  • 1,091
1 vote
Accepted

Filter-more edge blue channel

your whole average computation piece at the end is incomplete and not exactly typesafe but I think you are getting lucky because only the blue values tend to skyrocket beyond the limits.... If you ...
UpAndAdam's user avatar
  • 1,091

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