Hot answers tagged

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

pset8 info window does not displaying news links

labelClass: "labels", Defined in CSS as 'label', not 'labels'. labelContent: markers.place_name, The passed variable to this function is place, not markers. Did you define the parameters variable ...
koshkarov's user avatar
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

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

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
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

InfoWindow doesn't load in map when clicking label - Uncaught Type Error

I think the problem may be that your add listener is outside the addmarker function scope. If you need more help, i'll be glad to help :)
Belen's user avatar
  • 87
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 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
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
Accepted

Search.php does not show any result

When I am trying to figure out what SQL commands to use, I use phpmyadmin to execute the SQL commands first, for instance the Search tab for SELECT and the Insert for INSERT. Once I have the results I ...
danorys's user avatar
  • 36
2 votes

Pset8 Mashup Map Not loading

I also had this issue. The Date/Time adjustment didn't help but an Update50 and a reboot sorted it for me.
Stef Joynson's user avatar
2 votes

pset8 (mashup) - Inserting $places variable into configure function in scripts.js

I figured it out. <%= ... %> is indeed the way you pass in arguments to _.template. When I watched the video in the problem set again the prof mentioned how this code operates similarly to the "%i" ...
plumsmugler's user avatar
2 votes
Accepted

PSET8 - MASHUP : Can't find FULLTEXT indexes when using WITH QUERY EXPANSION

It is very weird but I advice you to follow these steps: Use ALTER TABLE <table> ENABLE KEYS to make sure that your keys are active. If nothing's still working, use ALTER TABLE <table> ...
DFATPUNK's user avatar
  • 155
2 votes

pset8: Remove Markers

I had some trouble as well, but I figured out that you have to loop through the markers array that you (should) have in AddMarkers, setting each individual marker to null. After the for loop, you ...
AWATHIEU's user avatar
2 votes
Accepted

How to change mysql minimum-character length

This post sounds like it might be what you are looking for Match TWO letters with SQL query… cd to /etc/mysql/conf.d and create a file with extension .cnf (e.g. user_sett.cnf) that looks like this:...
DinoCoderSaurus's user avatar
2 votes
Accepted

Pset 8 Error CS50 Library SQL (CS50 IDE)

it appears that you're using a database user called TODO instead of the one that you should be using. recall that you need to specify these settings in a file called config.json!
kzidane's user avatar
  • 17.7k
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

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