Hot answers tagged

9 votes
Accepted

Pset8, modified value of suggestion, still not working

Nevermind, just had to clear the cache.
user avatar
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 ...
user avatar
7 votes
Accepted

Pset8 Mashup Map Not loading

if anyone has run into the issues i have stated above there is a simple fix. Doing some searching around and trying to access urls using https showed me my appliance was not ‘secure’. By going into ...
user avatar
7 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,...
user avatar
6 votes
Accepted

Drop off house not in HOUSES

The spec says Incidentally, be sure not to let drivers pick up any freshmen (i.e., anyone whose home isn’t in js/houses.js)! So you shouldn't pick up that person. Hope that helps, Brenda
user avatar
  • 18.4k
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 ...
user avatar
  • 3,035
5 votes
Accepted

Is Pset8 optional?

Remember that you can do Pset8 if you have a second computer (either desktop or laptop) running on either Windows or OSX. Just use the appliance as a "server", the second computer (with GoogleEarth ...
user avatar
  • 1,156
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 ...
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.
user avatar
  • 1,424
4 votes
Accepted

PSET8 Can't add property to the object array

I'm not sure you can simply initialise the new array like that. Why not just add the placemark and marker to the PASSENGERS array? You can just do that 'on the fly' with PASSENGERS[i].placemark = ...
user avatar
  • 18.4k
4 votes

Is Pset8 optional?

Warning: this answer is related to version fall 2013 of the course Yes, problem set 8 is optional. Quoting the professor's comment on a post on the course's Facebook group Original Post: In pset8,...
user avatar
  • 17.4k
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.
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 ...
user avatar
  • 3,035
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, ...
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/...
user avatar
  • 20.7k
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, ...
user avatar
3 votes

$.getJSON in PSET8 mashup's addMarker function in scripts.js

Replaced with: $.getJSON("articles.php?geo="+place.postal_code) .done(function(data, textStatus, jqXHR) { more code } and now call is returning data. Still not sure why previous code ...
user avatar
3 votes
Accepted

Google Earth plugin not available inside appliance

This is why the pset says to use Chrome outside the appliance. If you don’t have it installed on your computer already (outside of the appliance, not inside of the appliance), download and install ...
user avatar
  • 18.4k
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!
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 :)
user avatar
  • 87
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
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....
user avatar
  • 3,035
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 ...
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 ...
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 ...
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 ...
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&...
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. ...
user avatar
  • 20.7k
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 ...
user avatar
2 votes

How can I compare the .js files to check if passengers are freshmen?

An elegant way to check if a certain variable was declared (or not) is the in operator. The check if a passenger is a freshman can be done like this: // check for freshmen if (!(PASSENGERS[i].house ...
user avatar

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