9 votes
Accepted

Not able to access (403 Forbidden) own website: https://ide50-username.cs50.io/ (with my username)

Someone else posted some helpful solutions I will summarize here... I can't remember who (sorry). From ~/workspace/ chmod -R 755 pset8 (or chmod -R 755 pset7 ... I had the same Forbidden error ...
Wilson Rook's user avatar
8 votes

Runtime Error: API_KEY not set

This can be easily solved by noting which terminal the export command was executed in the same terminal window that flask is running in (will be prompted to run in after the export command). Otherwise,...
Karthik Krishnan's user avatar
6 votes
Accepted

Problem Set 8 Permissions

According to this post on the CS50 Reddit, the permissions have changed since a recent update50, and the documentation has not been updated to reflect the changes. In my experience, you'll need a ...
hotwebmatter's user avatar
  • 3,050
5 votes

Not able to access (403 Forbidden) own website: https://ide50-username.cs50.io/ (with my username)

See this post: Issues with the CS50 IDE There have been updates to the IDE, and unless there's a new way to get there that I'm missing, there's a bug in accessing your own site through the IDE.
Peter's user avatar
  • 1,412
4 votes
Accepted

pset8 can't access ide50-username.cs50.io

UPDATE: I have verified that chmod 640 is still required for PHP files, even with version 62 of ide50. The quickest way to get all of the PHP files set from 600 to 640 is to execute the following ...
hotwebmatter's user avatar
  • 3,050
4 votes

pset8 infoWindow appearing with wrong marker

Had the same trouble. Fix it with 'var' before 'marker = new...'. Else you overwrite the same variable each time.
Yury's user avatar
  • 41
4 votes
Accepted

How to add labels to Markers?

There is an example of MarkerWithLabel here that should show you how to do that. It's the labelContent property. Transcript of an example from that link: var latLng = new google.maps.LatLng(49.47805, ...
Yuri Laguardia's user avatar
4 votes
Accepted

jsonify not working when I add this line of code <<db = SQL("sqlite:///mashup.db")>> to application.py

So it seems the workaround solution was to add app.config['JSONIFY_PRETTYPRINT_REGULAR'] = False somewhere after the app = Flask(__name__) The issue has been reported (https://github.com/pallets/...
Blauelf's user avatar
  • 20.9k
4 votes
Accepted

Finance: How to check if input is valid in "quote"?

If lookup() doesn't find the requested symbol, it will return None. That is not explicitly stated in the spec, but that is what the try/except block does in the function. None is not subscriptable, ...
DinoCoderSaurus's user avatar
3 votes
Accepted

Pset8 search.php permission issues, warnings & fatal error - fail to open CS50.php

@Vitale: I feel your pain! Permission errors can be really frustrating. You are impatient to get back to work, and in your haste, you reach for chmod -R 777 *, the biggest sledgehammer in your toolkit....
hotwebmatter's user avatar
  • 3,050
3 votes

Pset8 Mashup Map Not loading

USE A DIFFERENT BROWSER. I tried using Mozilla instead of chrome to load the page, and it worked wonders for me!
peanutlover's user avatar
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 ...
DinoCoderSaurus's user avatar
3 votes
Accepted

Pset8: NoApiKeys error and the map does not display

Have you tried to clear Chromes's cache? https://support.google.com/accounts/answer/32050?hl=en Another approach is to use the browser in incognito mode. Chrome's incognito mode uses a fresh cache ...
Yuri Laguardia's user avatar
3 votes

pset8 (Mashup) - Getting the geo value into /articles

Complete the implementation of /articles in such a way that it outputs a JSON array of objects, each of which represents an article for geo, whereby geo is passed into /articles as a GET parameter ...
wingedRuslan's user avatar
3 votes
Accepted

Pset 8 search and configure functions

According to the spec [emphasis added]: Complete the implementation of /search in such a way that it outputs a JSON array of objects, each of which represents a row from places that somehow matches ...
DinoCoderSaurus's user avatar
3 votes
Accepted

My articles do not match with the staff articles

That's old news. The staff's output, I mean. All the articles are a month old. It is reasonable to assume that the staff's solution has "features" that are unknown (and unknowable). As noted in the ...
DinoCoderSaurus's user avatar
3 votes

Pset8 This page can't load Google Maps correctly

If you got You have exceeded your request quota for this API. See https://developers.google.com/maps/documentation/javascript/error-messages?utm_source=maps_js&utm_medium=degraded&...
DinoCoderSaurus's user avatar
3 votes
Accepted

SQL3 SUM troubles

You can't use the aggregated value in WHERE. WHERE is applied to the table data, and the aggregated values are created later. There is the complementary HAVING clause, processed after aggregation. ...
Blauelf's user avatar
  • 20.9k
3 votes

phpliteadmin is constatly loading and won't open pset8

If phpliteadmin will not open in preview, try phpliteadmin {dbname} at the command line. It will say "Running phpLiteAdmin at " followed by an address. Hover over the address, click, choose "Open". It ...
DinoCoderSaurus's user avatar
2 votes

pset8 text box unresponsive

Fixed it. I had an echo statement for debugging purposes in search.php that I put into place when I was trying to parse the search terms and didnt realize that that was messing with the functionality. ...
Rafael Rossi Silva's user avatar
2 votes

Not able to access (403 Forbidden) own website: https://ide50-username.cs50.io/ (with my username)

TL; DR: If you are having permission issues on pset7, you can fix them with the following three commands: find ~/workspace/pset7/ -type d |xargs chmod 755 find ~/workspace/pset7/ -name *.php |xargs ...
hotwebmatter's user avatar
  • 3,050
2 votes
Accepted

pset8: phpMyAdmin - Error The mysqli extension is missing - can't get more frustrated than this

We all know that phpMyAdmin can be flaky sometimes. Unfortunately, I can't tell you how to fix it -- but I can tell you how to use mysql50 shell from the command line. Try stuff like this: mysql50 ...
hotwebmatter's user avatar
  • 3,050
2 votes

Syntax highlighting in CS50 IDE

Don't worry -- nothing bad will happen if you rename the file. The point of naming it import rather than import.php is just to show you that this isn't a regular PHP web app file to be executed by the ...
hotwebmatter's user avatar
  • 3,050
2 votes
Accepted

pset8: infowindow and $.getJSON difficulties

You are on the right track! For example, you are definitely not putting the $.getJSON statement in the right place. But that's easy to fix. Your real problem is with variable scope. One of the most ...
hotwebmatter's user avatar
  • 3,050
2 votes

Website won't change from finance to map

If @MattObert advice doesn't work, try a ctrl-F5 to reload the pages in your browser.
DinoCoderSaurus's user avatar
2 votes
Accepted

Website won't change from finance to map

If apache50 stop is not stopping the Apache2 server process, you may have a "zombie process." Luckily, it can be killed! Try executing: sudo killall -9 apache2 to terminate the process with extreme ...
hotwebmatter's user avatar
  • 3,050
2 votes
Accepted

Pset8 AddMarker not working - update.php returns invalid JSON?

As ChrisG said in the comments, you don't need to add two different click listeners for each marker. I'm comparing your code to mine, and my click listener just uses showInfo(marker, content) -- ...
hotwebmatter's user avatar
  • 3,050
2 votes

Pset8 map not showing

Please check the permissions on the js directory and its contents: ls -l ~/workspace/pset8/public ls -l ~/workspace/pset8/public/js All of your JavaScript files should have these permissions: -rw-r--...
hotwebmatter's user avatar
  • 3,050
2 votes

Problem Set 8 Permissions

Based on the above from Matt Obert, I created the following bash script - bashPermsv2.sh - in the pset8 folder. Ran it from the terminal with: '~/workspace/pset8/ $ sh bashPermsv2.sh' and it ...
rl777's user avatar
  • 39
2 votes
Accepted

Is pset8 really very difficult

Congratulations on finishing Problem Set 7! :) Problem Set 8 is a lot to learn all at once, but don't quit. As with other Problem Sets, just break this one down into small steps and tackle each one ...
hotwebmatter's user avatar
  • 3,050

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