Home

CS50's Web Programming with Python and JavaScript

Week 0 - HTML and CSS

Week 0 Lecture is well explained, lot of information though. However, Project 0 is not easy. Here are my notes:

I'm Feeling Lucky

I find this button is the most challenging in problem 0.

This answer from Alex B. is key, it gives clues to the solution but isn't giving away, so it's copied and pasted below:

There is a query string parameter that sets off the redirect for the "lucky" button. It's tricky to find because you don't see the url after redirect. The way to find it is to:
  • open Chrom dev tools
  • open Network tab
  • make a "lucky" search
One of the requests will be a 302 redirect. If you click on it, it will show you the query string parameters including the one you're looking for.

Image Search

This requires some close inspection of the query string in the URL. Initally I thought it was &sclient=img (at the end of URL) but it wasn't. Next suspects were &sca_esv=... and &sca_upv=1, ...

Keep trying, you'll eventually find it.

If you really got stuck, try this. In this case, the CS50 Duck is too helpful, spilt out the full code. I am glad to figured it out before seeing that post.

Week 1 - Git

Notes

Remember to check from time to time:

Week 2 - Python

place holder