Unanswered Questions
3,254 questions with no upvoted or accepted answers
5
votes
0
answers
1k
views
How to call the usd function in the jinja template of quoted.html?
I want to display the cost of the share in Quote tab using the "usd" function defined in helpers.py.
I've tried adding app.jinja_env.globals.update(usd=usd)in application.py and then calling the ...
4
votes
1
answer
240
views
Functions returning a value?
I'm trying to implement multi-dimensional arrays in Scratch, for an implementation of maze generation.
To simplify, I'd like to implement a couple of custom blocks which return a value, e.g. ...
3
votes
1
answer
2k
views
pset 4 : filter - Could not open .bmp file
I have a trivial question.
Starting the pset with freshly downloaded and unchanged code and trying to pass a file with ./filter -g yard.bmp out.bmp yields : Could not open yard.bmp.
I wrote a simple ...
3
votes
1
answer
65
views
Google Earth frame is displayed in front of javascript alerts
When I click start engine in the right rail of the application, an alert is displayed behind the Google Earth frame of the Harvard Yard.
I cannot click on any items that are displayed on this alert, ...
2
votes
1
answer
52
views
What is the usage of creating DICTIONARY_H in pset5?
I cann't understand when to use the preprocessor directives as (ifndef, define ,etc.)? In dictionary.h, what is the importance of writing those statements? and regarding the reason that was mentioned ...
2
votes
0
answers
61
views
Students only passing 4/6 the last two showing concatnation error but works locally somebody help
[33mTraceback (most recent call last):[0m
[33mFile "roster.py", line 34, in
main()[0m
[33mFile "roster.py", line 27, in main
print(row[0] + " " + row[1]+" "+ ...
2
votes
0
answers
691
views
CS50 - PSET2 - Substitution Segmentation fault
I keep getting 'Segmentation fault' every time I run the code(mentioned below). The code is compiling just fine. It's asking for input and is returning required message when the command line argument ...
2
votes
2
answers
2k
views
Unable to pip install submit50
Following CS50 Game development.
Trying to submit my assignment, i have python 3.8 installed.
while pip installing, I received following error message:
("submit50 does not support Windows directly. ...
2
votes
0
answers
331
views
View README.md in CS50 IDE?
I've created my README.md file for my final project. I'd like to check how it looks before submitting. How can I "preview" markup files in the CS50 IDE?
2
votes
0
answers
518
views
OSError: [Errno 99] Cannot assign requested address in pset7 2019
I am trying to send email via my server to the persons who have done their registration. Their information is getting stored in database( csv file) but when I click on submit button, nothing loads and ...
2
votes
1
answer
284
views
CS50 2019 PSET8 updating API from 2017 API
I have a lot of work from finance 2017, but it seems to use a different API than what I used last year. How do I update my code to use this new API? Or can I just use the one from last year? (I don't ...
2
votes
2
answers
614
views
Compiler Can't locate CS50 library locally
I'm trying to work on my C psets on my local machine in vscode. I've installed the cs50 library locally but am having trouble compiling. OS is osx 10.14.3
The error I'm receiving when compiling with ...
2
votes
1
answer
102
views
Problem with running docker toolbox on windows
Please I need help. I've been searching all over the net and topics on how to run IDE offline on my windows 10, I've downloaded it but when I run it following the several instructions, I keep getting ...
2
votes
1
answer
88
views
Why do cs50/2018/x/speller, cs50/2018/x/mashup show looks good but give 4 / 5 for style?
I have run update50 and I'm still not seeing any style errors but I'm still getting 95% and 4/5 for style?
2
votes
0
answers
470
views
I don't understand the meta tag "shrink-to-fit=no"
I read so much about this tag, but I'm a little confuse still. This is one of the post and here is another when I read about the subject.
What I understand is that the pages were written first with ...