Hot answers tagged

8 votes

Unable to see MySQL Username and Password even follow the steps listed in pset7. Can't even find ⓘ icon toward CS50 IDE’s topright. Need help

This can happen if the info50 script is missing from /usr/bin.* You can execute password50 from a command line to get your mysql password (and similarly, username50). *The footnote is much longer ...
user avatar
5 votes
Accepted

In the CS50 IDE is there a way to change all the names of one variable at once?

"Find"->"Replace" (or the corresponding Ctrl+H or Alt+Shift+F) would come close, performing simple text replacement. It has modes for matching whole words only, or using regular expressions.
user avatar
  • 20.7k
4 votes
Accepted

How do I restore or repair my broken CS50 IDE?

That's what the executable looks like to a text editor. You opened water not water.c. (The compile "problem" is because it is in the wrong directory, workspace instead of workspace/pset1.
user avatar
4 votes
Accepted

CS50 IDE undefined reference to `get_int'

On which version of the workspace are you? The current version as of 2017-11-13 is v125. If update50 doesn't end in an error message, you probably are at that version. Also, how do you compile? The ...
user avatar
  • 20.7k
3 votes
Accepted

Does anyone know how to use Django on CS50 IDE?

Type python manage.py runserver 0.0.0.0:8080 and start the server. Then click the web server option in the IDE. After going to the site, remove the -beta from the url and press enter. It will show ...
user avatar
  • 957
3 votes
Accepted

How do I save programs as files and not directories?

I managed to duplicate this. When the save dialog is opened, there is an entry box at the top for the filename and one at the bottom for the directory name. (In windows, that would be the location of ...
user avatar
  • 63.1k
3 votes
Accepted

PSET8 Map not updating issue

Have you tried clearing the browser cache (shift-reload or ctrl-F5)? That will cause the browser to re-download your js file. Since you mention "code from last year" is it possible apache is started ...
user avatar
2 votes

Problem with CS50 IDE Debugger

The graphical debugger seems to have problems with code that opens other files. You should use the command line gdb instead in these instances.
user avatar
  • 18.3k
2 votes

Problem with cs50 python module - folder restricted

I had the same problem as you describe in your post. As @Rushil mentioned in his comment, it can be sorted by renaming the file you have named "string.py" in your directory. Seems there is a conflict ...
user avatar
  • 23
2 votes
Accepted

Best non-cloud9 IDE?

Mac, eh? Xcode and Sublime Text are pretty legit. If that's what you're used to, stick with it. If you want a setup similar to the CS50 IDE, it's easy to run Ubuntu Linux in a VM on your Mac. For ...
user avatar
  • 3,035
2 votes

How does one compile Java on the CS50 IDE?

Nevermind, I figured it out. I'll say it here just for future reference. javac filename.java java filename from https://askubuntu.com/questions/145748/how-to-compile-a-java-file-on-ubuntu
user avatar
2 votes
Accepted

Can I reset all my progress for Week 2 in cs50 IDE?

A simple restart of the container instance via CS50 IDE > Restart (the top left corner menu) should in theory revert all files and changes except on /home/ubuntu. If do do wish to delete all files ...
user avatar
1 vote
Accepted

pset4 CS50 IDE broken when opened card.raw

The IDE isn't able to recognize the card.raw file as something that can be opened as any particular file type. When I double-click on it, the IDE hangs, as you experienced. My browser didn't crash (...
user avatar
  • 63.1k
1 vote
Accepted

debug50 error in online IDE: 'MODULE_NOT_FOUND'

closing and re-opening the tab solved the issue.
user avatar
1 vote

are we supposed to use the set from hello.c to begin with Mario (less comfortable) or do we need a new terminal and file?

It's a new program. Start with a new file. You're done with hello.c, but feel free to look at it for any ideas on how to do anything you've done in the past. These instructions are guiding you through ...
user avatar
  • 63.1k
1 vote
Accepted

are we supposed to use the set from hello.c to begin with Mario (less comfortable) or do we need a new terminal and file?

You don't have to create a new terminal window, but you should only start mario if you're finished with hello. If you're in the hello directory, on your terminal, execute: cd, cd pset1, mkdir mario, ...
user avatar
  • 67
1 vote
Accepted

Mario problem in IDE

The code is fine. It must be a bug with clang or aws. Try compiling it again.
user avatar
1 vote
Accepted

Cannot Compile Due to Error in cs50.h

The function signature has changed. From the CS50 Programmer's Manual char *get_string (const char *format, ...); DESCRIPTION Prompts user for a line of text from standard input and ...
user avatar
1 vote
Accepted

"'werkzeug.contrib.cache' is deprecated" error when running Flask

Not having seen the rest of your application.py code, I'm going to assume you have something like this: # Configure CS50 Library to use SQLite database db = SQL("sqlite:///database.db") near the ...
user avatar
  • 18.3k
1 vote
Accepted

New IDE won't alow me to check staff solutions

We're in the process of updating the specs for the new IDE. Try ~cs50/2019/x/pset4/speller dictionaries/large texts/lalaland.txt
user avatar
  • 18.3k
1 vote
Accepted

How to collaborate on the IDE

After sharing your workspace with someone, they need to go to the email that was sent and click the link given to them. At that point, they will have the access you gave them and will be able to see (...
user avatar
  • 18.3k
1 vote

how to use check50 on mario pset1?

It is explained in the Check50 section of the spec.
user avatar
1 vote

CS50 IDE debugger, where is it?

The IDE has changed since some videos were made. debug50 is the new debugger tool that was introduced in the fall. There is also a section on debug50 in the week2 lecture at around 22 minutes.
user avatar
1 vote
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, ...
user avatar
  • 3,035
1 vote

How to go back to my CS50 ide with my username?

You have moved to ubuntu Directory. Do you see something like this? /home/ubuntu/ $ if you type ls , you will see different directories, one of which should be workspace. You can enter to this ...
user avatar
  • 549
1 vote
Accepted

'The apache2 instance did not start within 20 seconds.' How do I access the log files within the IDE and how do I fix Apache?

So, while I still do not know what happened nor do I understand the solution. I found that another CS50x student had the same problem and posted about it on the Cloud9 community boards here. The '...
user avatar
  • 111
1 vote

oward the top-right corner of CS50 IDE, meanwhile, you should see your workspace’s "fully qualified domain name,"

There might be a problem with update50. In the meantime, use hostname50 at the command line to see your hostname.
user avatar
1 vote

pset4 debugger stopping

If you are having problems with the graphical debugger in the CS50 IDE (as I did!) then you should learn to use GDB from the command line, as others have suggested. There are two reasons to do this: ...
user avatar
  • 3,035

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