3 votes
Accepted

Would remaking a past project be a valid Final Project submission?

If you're the original author, no problem. You're rewriting it to other languages? Even less problem! Academic honesty policy is about you doing the work, not when you did it. Go for it. ...
Cliff B's user avatar
  • 68.8k
2 votes
Accepted

final project submission CS50 2017

Sounds like your /project folder is empty? Be sure that you have at least one file in there. (running submit50 is what triggers the grading). If your project files aren't in the IDE, perhaps you ...
curiouskiwi's user avatar
  • 18.7k
2 votes
Accepted

Typeahead does not work

Eventually, I used the html and javascript files from cs50 mashup, and changed their content bit by bit (while mostly keeping the html head untouched). It worked, so I think the initial problem was ...
Gladys Lau's user avatar
2 votes
Accepted

Access just the text from a db.execute return

Much like you would have seen in the CS50 Finance, db.execute returns a list of dict objects. So just as you accessed the cash value for your index page using rows[0]['cash'] you need to access your ...
curiouskiwi's user avatar
  • 18.7k
2 votes

Final project without video / screencast

It's necessary to qualify a verified certificate. Given that your code does not need to be submitted, the video is the proof that you actually completed your project and is your opportunity to ...
curiouskiwi's user avatar
  • 18.7k
2 votes
Accepted

Can a website access a mysql database of another website?

The more specific question would be whether the code on one web server can access a database on another server. Assuming that the proper permissions can be set up, then yes, you should be able to ...
Cliff B's user avatar
  • 68.8k
2 votes
Accepted

Hosting a site made for CS50 - final project

Broadly speaking, there are only two things you need to purchase in order to do this: Register a domain name from any reputable registrar (should be around $10 per year) Rent some kind of hosting. Be ...
hotwebmatter's user avatar
  • 3,050
2 votes
Accepted

Applied final project

The CS50 IDE is based on Ubuntu Linux, and if you are planning to build a web application similar to Mashup or CS50 Finance, the relevant technologies are often abbreviated as LAMP (Linux, Apache, ...
hotwebmatter's user avatar
  • 3,050
2 votes
Accepted

How do I cluster markers on a googlemap?

Thanks to @DinoCoderSaurus for your help - basically the problem was that I was trying to instantiate a MarkerClusterer for each individual marker that was added to the array. The solution was to ...
Matt Friend's user avatar
2 votes
Accepted

How to iterate over a list of values in a dict using jinja?

It's not jinja syntax, it's python syntax. for movie in movies: iterates over the members (keys) of movies, thus movie is a string. Contemplate how creating movies as a list of dictionaries, one ...
DinoCoderSaurus's user avatar
2 votes
Accepted

I get 50% at Final Project. How to fix it

If you look at your submission results (http://submit.cs50.io) you can click the check50 link to see why you got 1/2. And then you can fix that. Either you didn't include the link to your video ...
curiouskiwi's user avatar
  • 18.7k
2 votes
Accepted

What to do after the codespace has been deleted automatically?

Your code should still be in the code50 repo.If you go to GitHub.com/code50/ you can create a new codespace and it will pull in the files. The codespace is simply the container, not like the old IDE ...
Cliff B's user avatar
  • 68.8k
1 vote

https://stackoverflow.com/questions/32019733/getting-value-from-select-dynamic-tag-using-flask

New info based on question edit: task_action is not submitted with the form because the select is not part of the form (ie not within the <form> tags). Once you correct that, the table should ...
DinoCoderSaurus's user avatar
1 vote
Accepted

How to set background color of a button based on query from sqlite database?

The $(this) is referring to the wrong this. You could try something like var that = this; in the outer function, and use $(that) in the inner function. An alternative could be to use an arrow ...
Blauelf's user avatar
  • 20.9k
1 vote

db.execute() executing only single time

There is nothing in the posted code that would prevent the db.execute from executing more than one time. One possible explanation is the primary key or a unique index on the tables is preventing ...
DinoCoderSaurus's user avatar
1 vote
Accepted

Final Project Search Suggestions

The main issue I can see if you are making an Ajax request via JQuery's getJSON() method. This method makes a GET Request. Handling this in the POST section of your index function will cause the ...
johnnyd3's user avatar
1 vote
Accepted

MySQL Query function not working

$username is blank as per the error message: Access denied for user ''@'localhost'..... . There is nothing between the two ticks (single quotes) after user. That makes $password, $dbname suspect as ...
DinoCoderSaurus's user avatar
1 vote

Final project: How to submit form without going to another page with Ajax/jquery?

The return value of a successful $mysqli->query involving INSERT is true (it does not return an object), so you can test for this and echo a corresponding message.
ronga's user avatar
  • 1,415
1 vote
Accepted

Google Maps Places API Code Not Running - Final Project

I added this line service = new google.maps.places.PlacesService(map); to my pset8 and it gave this message TypeError: google.maps.places is undefined in the browser console. Internet search of the ...
DinoCoderSaurus's user avatar
1 vote
Accepted

Final Project TypeError: execute() got multiple values for argument

The problem stems from the bound variable named "text" (ie :text). It is conflicting with something in CS50/sql.py or sqlalchemy, like a reserved word or something. I cannot find the specific cause ...
DinoCoderSaurus's user avatar
1 vote

Submiting Final Project

Yes, that's fine. You aren't required to submit your code if it's not developed in the IDE. Instead, you only need to submit a readme type file (and a video).
curiouskiwi's user avatar
  • 18.7k
1 vote
Accepted

Final project: builtins.NameError NameError: name 'usd' is not defined

In pset7, the usd function is included in helpers.py and then you import helpers. If you want to use it here, you could simply include the function in your code: def usd(value): """Formats value as ...
curiouskiwi's user avatar
  • 18.7k
1 vote
Accepted

Final project SQL Error: execute() takes 2 positional arguments but 3 were given

Turns out I had to us the semicolon. The below works. row_1 = db.execute("SELECT bum FROM conversion WHERE unit = :id", id = request.form.get("unit_1")) row_2 = db.execute("SELECT bum FROM ...
SozDaneron's user avatar
1 vote

Problem with flask

Search your flask script for --with-threads According to flask quickstart when running flask run your app will execute the FLASK_APP script so it appears you'll need to check that—whatever your app's ...
Andrew Siplas's user avatar
1 vote
Accepted

Final Project help with centering html table

You are using Bootstrap to stylize ur table and as I see u r using <table class="table table-striped"> to create stripped table but r u really getting a stripped table? Change ur code to ...
sk.76's user avatar
  • 312
1 vote
Accepted

How to make a "div" clickable using Jquery

[UPDATE 18/07/2017] Instead use: $("main").on("click", ".delete", function() { (this).closest(".card").remove(); }); The issue is associated with the creation of dynamic elements. The jQuery ...
Tokoeka's user avatar
  • 26
1 vote

nanosleep function Implicit deceleration

I just had to include the header and function prototype to clear the warnings. #include <time.h> int nanosleep(const struct timespec *req, struct timespec *rem); This came directly from the ...
tgraupmann's user avatar
1 vote
Accepted

Stuck on final project

Assume grid size 3 and hyp_board 0 | 0 | -1 0 | 0 | 0 1 | 0 | 1 The first "check each row" loop will return 1 as the winner. Won't it? "On paper" from i = 2: first_node = hyp_board[2]...
DinoCoderSaurus's user avatar
1 vote
Accepted

I am getting an unexpected sizeof() error

You're getting 12 because of something called alignment, which adds internal padding to structures. You can read more about it here: http://c-faq.com/struct/align.html https://en.wikipedia.org/wiki/...
Yuri Laguardia's user avatar
1 vote
Accepted

I am getting a weird implicit declaration in C

usleep() is obsolete, but I think the solution is to add this macro atop your code to make it work without warnings: #define _XOPEN_SOURCE 500 Like this: #define _XOPEN_SOURCE 500 #include <...
Yuri Laguardia's user avatar

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