9
votes
Accepted
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 ...
- 106
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,...
- 183
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 ...
- 97
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 ...
- 3,046
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 ...
- 61
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.
- 1,414
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.
- 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 ...
- 3,046
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, ...
- 2,585
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/...
- 20.8k
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, ...
- 27.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!
- 31
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 ...
- 61
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 :)
- 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 ...
- 27.4k
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....
- 3,046
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 ...
- 2,585
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
...
- 299
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 ...
- 27.4k
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 ...
- 27.4k
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&...
- 27.4k
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. ...
- 20.8k
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 ...
- 27.4k
2
votes
adding link to json output in PSET8
Regarding the links, the following worked for me:
var articles = "<ul>";
var len = data.length;
for (var i = 0; i < len; i++) {
articles += "<div>&...
- 111
2
votes
pset8: why I get "This webpage is not available" on my browser
I had the same problem and for me the solution was configuring the VMnet network adapters to use DHCP. I did it as follows:
Click on the Start Menu search (bottom left corner)
Type: "view network ...
2
votes
Accepted
(pset8) Search.php FULLTEXT minimum character length
I'm not so sure you should create distinctive indexes for each column. What I did was to create a FULLTEXT index for 3 columns together, and then search using that. If you want to create different ...
- 7,366
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.
- 41
2
votes
Accepted
$.getJSON difficulties with infoWindow
I thought the problem was in the $.getJSON part, but instead, it was putting showInfo(marker, content); OUTSIDE $.getJSON.done. As @ChrisG helped me discover (see comments above), it returns at the ...
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" ...
- 77
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
pset8 × 436mashup × 86
finance × 71
addmarker × 52
javascript × 33
search × 23
import × 22
cs50x × 18
python × 15
json × 15
google-maps-api × 15
search.php × 15
sql × 12
articles × 12
buy × 10
check × 9
google-earth × 9
google-maps-markers × 8
cs50-shuttle × 8
check50 × 7
html × 7
register × 7
infowindow × 7
pickup × 7
showinfo × 7