Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Raghav Awasthi
    @RaghavAwasthi
    Thanks @Blauelf
    Akshay Kumar
    @AkshayKumar007

    In Project-2 for CS50-web, when I click on login button(which loads the list of contents), I get an error

    TypeError: can't pickle _thread.RLock objects.

    Following is the stack trace for error:
    image1
    As I can see it's something related to multithreading, and also error is being generated from packages, rather than my templates and applications. I have never done multithreading in python, and can't find a solution. Please help. thanks in advance.

    MGD
    @pvpizza
    I'm working on the mario program from week 1. I've got the algorithm done. Just wanted to check how to take input as an int in c and how to print intergers using printf? Thank you
    MGD
    @pvpizza
    Never mind, I figured it out
    Ahmed Alsallum
    @Ahmedalsa
    Hey guys, can anyone help me with the project1 in CS50? Where do I get the file "books.csv"? and how do I add it to the import.py file?
    jetemi
    @jetemi
    Hello guys, I have submitted my project0, however on the submit website, it says "no submission has been received yet"
    jetemi
    @jetemi
    If you are still having issues submitting project0 for CS50's Web Programming with Python and JavaScript, you can reply to this post

    If you are still having issues submitting project0 for CS50's Web Programming with Python and JavaScript, you can reply to this post

    Here

    Abdelrahman-Serag
    @Abdelrahman-Serag
    please guys anyone help me iam very disappointed and confused .. my probelm is iam in project 1 and i dont know where i can write th source code i download the git bash but i dont have any idea how to intercat with this comman that is first time i open it .. anyone tell me what i can do on this project ??
    Blauelf
    @Blauelf
    @Abdelrahman-Serag Which course? And is there on project 0?
    Abdelrahman44444
    @Abdelrahman44444
    @Blauelf course CS50W and it's on project1 I dont know where I can the project I don't understand
    Blauelf
    @Blauelf
    But have you done project 0 yet? You mention git, which is same process over all the projects.
    There are git tutorials out there, and git cheat sheets.
    You can write code with whatever you like. Whether vim, or PyCharm, or IDLE, or Notepad++, sublime (list incomplete and in no particular order), doesn't matter at all, whatever floats your boat, you might have to configure it to use consistent indentation characters. What did you use for project 0?
    Also, switching accounts might cause confusion.
    Akshay Kumar
    @AkshayKumar007
    @Abdelrahman44444 I have done project1. As @Blauelf said, first download a text-editor like atom, sublime, vscode, etc. (in the course our instructor uses atom) and write your code. I would recommend you to create a 'virtual environment' and download all the packages, that are listed in 'requirments.txt'. Also, you can join CS50 Slack channel(instructor Brian Yu is there) as well. Hope it helped. Good day.
    Ahmed Alsallum
    @Ahmedalsa
    guys I need help in project1 in cs50 web dev, the table 'books' has been created in the "PostgreSQL " host but no rows were added, can someone help me? check out the code: project1.PNG guys I need help in project1 in cs50 web dev, the table 'books' has been created in the "PostgreSQL " host but no rows were added, can someone help me? check out the sql results: sql_project1.PNG
    ryboh1
    @ryboh1
    How active is this community?
    Abdelrahman44444
    @Abdelrahman44444
    @Blauelf
    @blauelf in project0 I used brackets editor to make html ,CSS ,Scss files and I have done it my problem is he told me that I download project1 files and open it in Terminal window that is the stuck I don't use ever any terminal window so that Iam confused where I will write my project and code
    Abdelrahman44444
    @Abdelrahman44444
    @AkshayKumar007 ok I will do that and write my code in any editor but I first I read that I should open the file project1 and install flask and pip in Terminal window and run the codes in it so that what make me confused
    Akshay Kumar
    @AkshayKumar007

    @Abdelrahman44444 Seems like you are new to Command Line interface(terminal). Can you tell me which OS are you using (Windows/ Linux/ MacOs). If you're using Linux or MacOS, I think these videos might help you.

    (Command Line Tutorial)[https://www.youtube.com/watch?v=YHFzr-akOas&list=PLS1QulWo1RIb9WVQGJ_vh-RQusbZgO_As]

    @ryboh1 Community is quite active. I would also recommend you to join CS50x Slack Group.
    Abdelrahman44444
    @Abdelrahman44444
    @AkshayKumar007 yes don't have any idea about command line Iam using Windows os . In the first lecture of cs50W . No mentioned that how interact with this for new people
    jetemi
    @jetemi
    @AkshayKumar007 can you please share the link to the slack group. I tried the one on EDx it was not active. Thanks
    Tom Esch
    @tomeschnyc
    Windows uses Powershell
    kj
    @jg-karl
    Hey, does someone know when will be the next completed certificates authorized and pushed to edx? I have completed everything, yet cannot see my gradebook anymore and there is no certificate on dashboard either.
    Blauelf
    @Blauelf
    No gradebook? Are you talking about CS50x? And do you mean the one at https://cs50.me/cs50x ?
    kj
    @jg-karl
    Yep, but I did it probably with the older version. So there are no submissions. Should I resubmit them or they are still accesible from git-hub?
    Blauelf
    @Blauelf
    Have you joined the course on the new submission platform? Your scores should have been migrated.
    Old submissions would be at https://legacy.cs50.me, new ones on https://submit.cs50.io, all the scores from old and new scores would go to https://cs50.me/cs50x
    kj
    @jg-karl
    Oh, getting better, found something and looks that the link for certificate is also there...
    Thanks
    Yep, all working and found my way to certificate. Thanks! This chatroom works better than Slack!
    Jack Howard
    @JackHowa
    looks like cs50 2018 is being shown for 2019x? not sure if I'm starting on the correct year https://video.cs50.net/2018/fall/lectures/0?t=16m19s
    Blauelf
    @Blauelf
    CS50x 2019 (the course on edX) is based on CS50 fall 2018 (the course on campus)
    CS50 fall 2019 is going to start soon, we will find those videos in January in CS50x 2020.
    James Langridge
    @james-langridge
    For project 1 CS50W (book review app) are we supposed to store user passwords securely, or is the requirement just basically store the password string in the db without encryption?
    Blauelf
    @Blauelf
    I'd store hashed and salted passwords only, like in CS50x finance problem. But I can't find it mentioned anywhere in the problem description.
    Doug has written a book? :D
    James Langridge
    @james-langridge
    :D thanks
    dos_kid
    @kid_dos_twitter
    Guys can someone help me i'm stuck on project1 cs50w i dont know how to connect sql database to my site
    James Langridge
    @james-langridge
    can anyone give any hints on how to serialise sql query results into JSON to provide API access for the book review app project CS50W? I get a TypeError: Object of type RowProxy is not JSON serializable.
    James Langridge
    @james-langridge
    after playing around for hours, using some code I found online, I can return the following, but it's not formatted like in the requirements, and the data from my db is "null", the data pulled from goodreads works fine: [{"title": null, "author": null, "year": null, "isbn": "1632168146", "ratings_count": 28, "average_rating": "4.07"}]
    Blauelf
    @Blauelf
    You have a RowProxy? Could you dict(your_variable.items()) and jsonify that (or rather a list of those)?
    Data from db "null" sounds odd, not sure what you mean by that.
    James Langridge
    @james-langridge
    .items() doesn't seem to work - I think because the RowProxy is a list
    it is odd it's "null" :) I don't know either. I think it's only null when I save the sql results into variables, and then use those variables in a dictionary like: new_data = {"title": title, "author": author, "year": year, "isbn": isbn, "ratings_count": ratings_count, "average_rating": average_rating}.
    something to do with SQLAlchemy and these RowProxys...
    James Langridge
    @james-langridge
    getting closer with this: [{"title": "Memory", "author": "Doug Lloyd", "year": 2015}, {"isbn": "1632168146", "ratings_count": 28, "average_rating": "4.07"}]
    thanks for your help
    Shivam Yadav
    @sudoshivam
    How long does it take for the assignments to be graded?
    Blauelf
    @Blauelf
    CS50x is graded automatically, should be near-instantaneous. The other ones (with "projects" instead of "problems") should take up to a few weeks. At least I read somewhere that usual time would be within 1-2 weeks. Not having advanced to another course (yet).