8

The project is graded pass/fail. Or, more succinctly, if you submit, you get 1. If you don't, you get 0.


5

Maybe no, maybe yes, now this is something that depends on your skills and well, it might as well take you some more time, but I think it's fun learning, so I personally highly recommend you learn the stuff. And as for help, I highly recommend you see existing apps and frameworks for help, for example, for using chat, see AirChat which you can probably ...


5

When you allocate memory by calling malloc(), and you want to free that memory, you have to call free() on every pointer that you initialized it with a call to malloc(). For example, if you have something like tasklist_container *cont = malloc(sizeof(tasklist_container)); // 1 allocation for (int i = 0 i < TASKLISTLENGTH; i++) { cont -> list[i] =...


3

That's not a problem at all. It's your project written by you. One of the main points of final projects is that you'll be able to use them to demonstrate your skills, which means you'll likely be including the project on your resume. Hosting your project on GitHub is fine, and I'd actually encourage it. Learn to use version control and get involved in the ...


3

I was wondering for the final project, are we held to the same expectations as those taking the CS50 class? yes. the thing is though that we don't submit the code. we only submit a 2-minute video and I'm afraid it may not get reviewed. this is a main difference between the free edX version and the paid Harvard version. that is, they get more support. ...


3

The CS50x "Fair" is an online website that showcases the video project submissions. There is no set time for it. Presumably your project video will be added at the end of the course. You can see the current 'fair' which includes the projects done for the 2012/2013 run of CS50x here: http://expo.cs50.net


2

I just figured it out! The reload was due to the very nature of onsubmit. When I changed it to onClick, I had no issues!


2

If by pass, you mean receive the certificate, no. If you don't submit the final project, you will not receive the certificate. You do have the option of registering for the new session that starts in January. Most of the psets are the same and you are allowed to submit this year's code towards it. Then you only need do the new psets and the final ...


2

Ordinarily, I'd flag this as an opinion based question, but underneath is a lesson on project scope, one that is very timely as we approach the class deadline at the end of the year. I've never written a Facebook app, so I can't speak directly to that, but I can offer some advice. You have the idea for what to do and you know your skill level. Now, spend a ...


2

That is a linker error, not a compiler error. Your compiler won't complain, because it doesn't know of dictionary.c's existence. Including dictionary.c in your headers doesn't make any sense at all, because that's the whole point of including dictionary.h. That is a basic concept: You include the header file, which has the relevant declarations for the ...


2

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 directly access another database rather than going through a web page. It may also be possible to access a remote database through its web pages too. It would ...


2

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 careful, there are lots of different hosting options and not all of them are good enough. Make sure you do not get a hosting account which only offers FTP (...


2

as you probably know, the type string (defined in the CS50 library) is the same as the built-in standard type char * (aka char pointer). recall that pointers must have memory allocated for them (memory they point to) in order to be able to use them in reading/writing operations. you are setting key to NULL (aka location 0x0). memory at NULL is special in ...


2

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 can just add a text file with your project details. We're working to make the submission instructions clearer, as this is a new change.


2

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 delete the line markerCluster = new MarkerClusterer(map, markers, {imagePath: '/static/markers/m'}); from the addMarker() function; and instead have it run once ...


2

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 demonstrate it.


2

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 related to missing parts from head and/or interference from the bootstrap html I adopted.


2

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. Disclaimer: I am not staff, but I'm sure they'll back me up.


1

Yes. There is SQL queries for everything you can do in phpmyadmin, in fact when submitting a query from phpmyadmin you can see the SQL code that will be passed from phpmyadmin to your server. If you ever wonder how to do something else with SQL, know that it's no more than a simple Google search away, for reference, try Google "create a table in sql" and you'...


1

Starting now and trying to meet the deadline will be very difficult. I am currently on week 7 (pset5) and it's going to be tight for me. The deadline to submit all your problem sets(psets) and final project are due Dec 31 for everyone. You can still do the course but you cannot get a certificate if you do not submit by Dec 31st.


1

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, MySQL, PHP). Google for "LAMP server setup" and you will find a lot of information about this. If you want to design a web application, but not host it on the web,...


1

$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 well. Also, check the variable name used in your close statement.


1

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.


1

Missing semicolon? $mail->Host = "smtp.gmail.com" If that's not it, try an internet search "phpmailer unexpected t_variable". Lots of folks outside CS50 have experience with phpmailer.


1

Uh here is my problem. I had main_display.php in my public folder, which I was messing around with. But I also had a main_display.php in my template folder, which i never changed and that was what was being displayed. I feel like a total idiot lol...


1

I fought with a similar pathing problem and it turned out that $_SERVER['DOCUMENT_ROOT'] was the cause. It is set in the apache configuration which might not be totally clear from the php doc. 'DOCUMENT_ROOT' The document root directory under which the current script is >executing, as defined in the server's configuration file. On the appliance,it ...


1

Problem solved. I needed to add the style attribute (style="STYLE CODE").


1

First you need to think about time past. A common logical way to do this is as so: 1) User presses a key - set time of "now" to a variable lets say "start". 2) User stops typing - compare "now" to "start" to get time passed. You can use something like this for time: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/...


1

You need something like Cron, which is a time based job scheduler.


1

There's instructions at https://cdn.cs50.net/2015/x/project/project.html All that we ask is that you build something of interest to you, that you solve an actual problem, that you impact your community, or that you change the world. Strive to create something that outlives this course.


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