lethaljd
  • Member for 7 years, 7 months
  • Last seen more than 3 years ago
  • Pittsburgh, PA
Completely lost.. pset1, Mario help
6 votes

You are validating the input after they enter it. So your program asks for input using GetInt(), which it sounds like you have figured out. and then you write a piece of code (a loop might be pretty ...

View answer
How do I check if an email adress is already used in mySQL?
Accepted answer
3 votes

Your current query will return FALSE if it failed and return data in the form of rows if succesful. You know there can only be one match in the database, if any, but the query function does not know ...

View answer
I can't get any grade on Gradebook
3 votes

Grades may take up to two weeks to appear. It is likely that your assignment was not yet checked. If you upload, wait two weeks. If you still do not have a grade, post on the reddit sub forum and ...

View answer
What's wrong with my do while loop syntax?
Accepted answer
3 votes

You have to explicitly state the comparison each time: you have while (pyramidHeight >= 0 && <= 23); and it should be while(pyramidHeight <= 0 && pyramidHeight >=23); ...

View answer
Peeking into large dictionary - Pset6
3 votes

command line: gedit ~cs50/pset6/dictionaries/large will open it in gedit

View answer
How can I swap two values and return two integers?
Accepted answer
3 votes

This exact problem is reviewed in the lectures. In short, you have to use pointers in your swap function. I'm pretty sure it's week 4, 2nd lecture (lecture continued). Or you can check out the ...

View answer
problem set-0 submitted but no notification about successful submission in the gradebook?
3 votes

PSet0 just shows like that. It sounds like everything is ok with your submission. Check back again in 2 weeks and if you don't have a grade you will know there was an issue. If you see the picture ...

View answer
Is it possible to re-submit the a problem-set and get another grading?
Accepted answer
3 votes

Yes. You can resubmit as many times as you'd like before the December cut-off date listed in the Submit section.

View answer
Mario issue - keeps making blank spaces (infinite loop)
2 votes

Your j loop uses j--. If j starts at 0 and then keeps decreasing by 1, it will never meet the stop condition of j=height.

View answer
Could not load dictionary in cs50 pset6
Accepted answer
2 votes

Try removing the semicolon after your if statement. if(d == NULL) { printf("Could not load %s\n",dictionary); return false; }

View answer
Column count doesn't match value count at row 1
Accepted answer
2 votes

Edited original answer. You have your INSERT INTO syntax incorrect. Syntax should be: INSERT INTO tablename (Table Col1, Table Col2, etc.) VALUES (? marks for variables, static items enclosed in ...

View answer
Infinite loop and unable to check for next JPG
Accepted answer
2 votes

I think it's because you used an OR operator instead of an AND operator. The jpg header will match either the first pattern or the second pattern, but not both. The only way your while loop will ...

View answer
Can't get the 'z' using % 26 on my Vigenère Cypher
Accepted answer
2 votes

It looks like you are going the route of reducing the letter to be encrypted and the encryption key down to a 0-25 (or 1-26) base alphabet, do the rotation there, and then convert back to upper or ...

View answer
resize vertically is not working properly
Accepted answer
2 votes

Why are you vertically resizing twice? Your nested for loop at the top should take care of both your vertical and horizontal iterations. The other for loop you have at the bottom appears completely ...

View answer
What's wrong with my menu bar for portfolio.php
Accepted answer
2 votes

I think it should be ul (the lowercase letter 'L') not u1

View answer
How to approach Problem Set 1 Mario!
2 votes

Start by writing a simple piece of code that asks the user for input. You can reuse your "Hello, World!" code for this and change the printf statement to ask the user for a pyramid height. After ...

View answer
What programmable lightbulbs are used on the CS50 stage demos?
2 votes

Probably the Philips Hue, but that's only a guess. They aren't cheap though. http://www2.meethue.com/en-us/

View answer
Segmentation fault when trying to detect collisions in breakout
2 votes

What type have you initialized the variable "collision" to be? If you initialized it as a string, that could be the issue. Make sure you are initializing it as: GObject collision = detectCollision(...

View answer
Downloading VMware on Mac, not according to instructions!
2 votes

When you get to the first screen with the VMWare icon saying double-click to install, if double-clicking it creates no further action, you should try the following: Open Finder Navigate to your ...

View answer
Cant validate whether file being read is JPEG or not in recover
1 votes

I don't think that's how booleans work. It looks like you are trying to declare a function that evaluates to True if the .jpg file header is found. Try using an if statement instead. if((buffer[0] =...

View answer
pset1 greedy: I need advice on my code
1 votes

A few areas of improvement to explore: while (quarter <= cents) { quarter++; } During this while loop, you are not decrementing the value of cents at all. So "cents" will always stay the ...

View answer
How can I be certain that I will be getting the certificate?
Accepted answer
1 votes

If you skipped pset8 (shuttle) and have passing grades (above 0.66) in all other pests, be patient and wait for the certificate. The grade book is not connected to the edX portal and so it will ...

View answer
When does the VMware Fusion license period start and end?
1 votes

Update: The course documentation states the license is 365 days, however, my license expired after the official end of the course, on or about Jan. 1, 2015. I didn't start the course or register ...

View answer
My 2014appliance doesn't have file" cs50"
1 votes

cs50 would exist as a folder if you have created it in that directory. If the cs50 folder is on your desktop, then you would have to change the directory using the cd command first. cd Desktop and ...

View answer
Can I develop my final project outside of the CS50 Appliance?
1 votes

There are many FTP programs for Mac (FileZilla is good) that would work for you. I don't think you need to do everything from within the appliance as long as you have your dropbox files synced to ...

View answer
sudo gedit /etc/hosts ERROR
Accepted answer
1 votes

Per the pset, the GTK warning is a known bug in Linux fedora. Prof. Malan instructs students encountering this error to try restarting their appliance and try the sudo command again. I had the same ...

View answer
Can't access source code after editing folders and settings in the appliance
1 votes

Download a new, clean copy of the latest virtual appliance image and re-load your virtual machine following the steps from the CS50x 2014 course.

View answer
Recommended Torrent Client
1 votes

If you are using a Mac, try Transmission. If you are using Windows, try uTorrent.

View answer
Pset2, Caesar, working but failing check50
Accepted answer
1 votes

Get rid of the line in your code that printf's "Enter a String:" and it should make check50 happy. For this one, it just wants a blank input, with no prompt. I know that seems strange and not user ...

View answer
Getting the vertical scaling right in pset5
1 votes

You need to tell it to fseek back (use a negative number to move the cursor back) IF it's not the first time through a vertical copy. If you imagine a picture comprising 4 pixels, 2x2 and we want to ...

View answer