Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 10747

The problem set for Week 7

0 votes
Accepted

How to print codes in the new ide50 system

I was curious the other day about how to do this as well. Here's the answer offered on the Cloud9 Community forum: Printing on a local printer.
Peter's user avatar
  • 1,410
1 vote
Accepted

'301 Moved Permanently' - error

I faced this error quite a bit. It turned out that I had a problem in my parse function. It took a lot of patient debugging, but the error came down to not having my abs_path and query variables null- …
Peter's user avatar
  • 1,410
0 votes
Accepted

cs50 pset 6 caesar

The issue here is that the method isupper() does not exist in the cs50 library. Instead, it's built in to Python by default. Read this section of the Python documentation to learn more about built-in …
Peter's user avatar
  • 1,410
2 votes
Accepted

How to test own code pset6 server 2016?

I created a separate file called servertest.c to use while working through parse, the stage I just finished. I used a simple main like this to test various inputs to parse: int main(void) { char* …
Peter's user avatar
  • 1,410
5 votes

How to start with load function in server.c?

When I hit my road block here, I went back to the source code and re-watched the walkthrough videos, specifically this one: https://www.youtube.com/watch?v=OnAItxJhS70 There are subtle hints througho …
Peter's user avatar
  • 1,410
0 votes
Accepted

So close with load in pset6!

Moral of the story: read the spec carefully and don't rely on the first check50 for correctness of lookup and parse. Test them abundantly, especially when it comes to PHP files. Use inspect element wh …
Peter's user avatar
  • 1,410
1 vote
Accepted

A simple question in application.py sentiments

That default value for neutral is merely a placeholder at the start. When you run application.py without implementing it, you see a graph that is 100% neutral. You should initialize those values diffe …
Peter's user avatar
  • 1,410
1 vote

absolute-path [ "?" query ]

That section of the pset links to a document that goes into this topic in more detail. In particular, server.c needs to support origin-form as specified here: https://www.rfc-editor.org/rfc/rfc7230#se …
Peter's user avatar
  • 1,410