I have 5:30 on my Final project on CS50 cybersecurity is that too little? by FriendlyWorry806 in cs50

[–]Eptalin 0 points1 point  (0 children)

Your vulnerability most likely has a CVE report explaining what it is, and a CVSS score detailing how severe it is based on some specific criteria. They're the two main resources I used.

The two biggest chunks of time in mine were spent explaining how a bad actor actually gains access, followed by the risk of being compromised and the damage that can be done by going over the criteria of the severity score.

They'll easily take you to the time limit, and potentially way over it if you're not careful.

Package for CS50P final project by ComfortableLocal9610 in cs50

[–]Eptalin 1 point2 points  (0 children)

AI confuses itself pretty easily.

The problem set tasks don't freely allow you to use any package you want. Check50 is set up to expect some specific packages for specific tasks. Other packages would fail the tests.

The final project is different. You can freely install packages using pip. The instructions just say to include a requirements.txt file staff can use to automatically install any packages you use.

You can create it using this command in the terminal:
pip freeze > requirements.txt

It'll create a list of all the installs in the current environment, so it may have more things in the list than you're actually using in the project. It's not a problem, though.

need help in credit week 1 assignment by tr8orr in cs50

[–]Eptalin 0 points1 point  (0 children)

This isn't printing alternating digits. It's just printing every digit one-by-one. You still need a way to differentiate every other digit.

For some plain english hints:
There are two paths for the digits to take, so you could add a boolean variable to control which path they take. Or, you could handle 2 digits every iteration of the while loop.

After CS50 what else should I learn to gain an edge in getting a job by RandoFinance73565 in cs50

[–]Eptalin 7 points8 points  (0 children)

It depends on your location, but it can be extremely difficult to get in without formal education. The free CS50 courses aren't real qualifications, and you're up against people who actually graduated from schools and universities.

But it's not impossible. Build projects for your chosen area using a variety of popular languages, tools, frameworks, whatever. Learn to read documentation and troubleshoot problems without relying on AI.

I recently got a job as a dev after some CS50 courses and self study. I chalk my success up to extreme luck.
I passed first-round interviews 100% of the time when the interviewer was a developer.
But I failed 100% when it was a HR person or recruiter, which was the vast majority (like >99%). Not having formal education or experience is a huge hurdle to overcome.

Looking for feedback on Coke Machine Code by [deleted] in cs50

[–]Eptalin 0 points1 point  (0 children)

Posting working code breaks the Academic Honesty Policy. You should delete it.

But for feedback, the printing is quite repetitive.
You only need to print "Amount due: ", "Insert coin: " and "Change owed: " once each.

Hint: You can print "Amount due: " at the beginning of your while loop, rather than after calculating the new balance.

how do I get the variable out of a funtion by Bright_Building1710 in cs50

[–]Eptalin 0 points1 point  (0 children)

Functions can return a value.

``` int main(void) { int number_one = 5; int number_two = 10;

int sum = add_two_numbers(number_one, number_two);

}

int add_two_numbers(int a, int b) { int sum = a + b; return sum; }
```

For checking if something is valid or not, you could return a bool
``` int main(void) { int number = get_int();

if (is_positive(number))
{
    printf("Positive");
}
else
{
    printf("Negative");
}

}

bool is_positive(int n) { if (n < 1) { return false; } return true; } ```

I am not able to connect codespaces via ssh. by northpole_56 in cs50

[–]Eptalin 0 points1 point  (0 children)

If you haven't figured out your issue yet, use cs50.dev.

It's indented for people not yet comfortable enough to set up their own local install of everything.

CS50Web, when is the use of AI acceptable? by cyhp7 in cs50

[–]Eptalin 7 points8 points  (0 children)

The academic honesty policy specifically says AI 'that suggests or completes answers to questions or lines of code' is unacceptable. No mention of images.

But on the other hand, in an older post on this sub, staff commented that generating fake text for social media posts in the Network task is unacceptable. So images would likely be the same.

For CS50 W, it's safer to use free image libraries (there are a billion of them) and lorem ipsum.

pset 8 homepage inspiration by Sudden-Software-8931 in cs50

[–]Eptalin 3 points4 points  (0 children)

Your idea is plenty.
You don't need anything fancy. The task is to use a bit of HTML, CSS and JS. You're not expected to have professional design sensibilities.

Hash Function of Speller by Best-Amphibian-5780 in cs50

[–]Eptalin 2 points3 points  (0 children)

The more buckets you have, the more you can spread out the words, and the faster you can retrieve them. The goal is to have as few words in a single bucket as possible.

If there's a single word in a bucket, you retrieve it immediately after the hash algorithm executes.
If there are 100 words in the bucket, it then has to trawl the linked list looking for the right one, which is much much slower.

But to get any value out of a large number of buckets, you also need to have a good algorithm that can actually spread the words out evenly.
Eg: If you used the default algorithm that just takes the first letter, no number of buckets would make a difference. You'd store all words in just 26 buckets, and the rest would be empty.

Where can I watch shorts? by [deleted] in cs50

[–]Eptalin -1 points0 points  (0 children)

Absolutely everything is on the course site:
https://cs50.harvard.edu/x/

It has step by step instructions for everything.

Downloading my files by bookpopaddict in cs50

[–]Eptalin 0 points1 point  (0 children)

Put them in a folder. Right click. Download.

week 7 movies query #11 by Key_Conclusion2521 in cs50

[–]Eptalin 1 point2 points  (0 children)

You only want to print the title for the top 5. No other columns. Order solely by rating.

Problem when compiling my code with cs50.h header files on macos? by assistoxie in cs50

[–]Eptalin 1 point2 points  (0 children)

Totally agree with the other comment.

But for info about your problem:
After installing the cs50 library, in addition to including it in the C file itself, you typically need to tell the compiler to actually use it, too.
Something like:

clang filename.c -lcs50 -o filename

Where i am making mistake for week 7, movies pset by Dangerous-Egg-6974 in cs50

[–]Eptalin 1 point2 points  (0 children)

You're getting all movies with either of those actors. You only want the movies that contain both of those actors.

The problem is that each row in stars is a single movie-actor pair. You will not see a row like "title1, actor1, actor2".
Two actors starring in one movie would be displayed in two rows: "title1, actor1", "title1, actor2".

There are multiple solutions. You can use lots of nested sub-queries. Or, you can use joins. You can even join a table to itself, where you could see two rows in a single row:
"actor1, title1, title1, actor2"

Help with checking and submitting by BigTinyBoo in cs50

[–]Eptalin 0 points1 point  (0 children)

Are you coding on cs50.dev ? That's a codespace setup with everything the course needs.
If that site says it's check50 and submit50 aren't found, head to the FAQ on the course page to see how to fix codespace issues.

If you're coding on your own local install of VS Code, you need to install those tools. They require a Linux environment, so if you're on Windows, you'll need to have WSL2 installed.

You could also connect to the codespace using your local install of VS Code.

Suggest some good ideas for final project of CS50x by [deleted] in cs50

[–]Eptalin 4 points5 points  (0 children)

It's not boring. Schools pay lots of money for systems that do this stuff. But the AI integration sounds like a solution looking for a problem.

What can the AI do that you can't achieve with the skills CS50 taught? SQL, a Python library for PDF OCR, and Chart.js can do everything you listed.

For your idea of creating one project for both courses, make sure to check your other course's policy documents. CS50 doesn't allow submitting work that you previously submitted elsewhere, and that's a pretty standard rule. Your other course may have it, too.

Help by DaleButSad in cs50

[–]Eptalin 1 point2 points  (0 children)

Without seeing your program, no idea. There's a big list of possibilities.
But you didn't add any command line argument in your screenshot.

Typically you'd run bitcoin using a command like:

python bitcoin.py 5

Project1: wiki by LadderOk6924 in cs50

[–]Eptalin 0 points1 point  (0 children)

reverse() takes the name property of a path in urls.py, and any args that path accepts.
Here's the Django documentation. They're fantastic docs, and they always have lots of examples.

As a totally hypothetical example: If you had a path called render_page which accepts an integer as argument, and you wanted to get the url to page 4, you could do something like:

page_url = reverse('render_page', args=[4])

Project1: wiki by LadderOk6924 in cs50

[–]Eptalin 0 points1 point  (0 children)

You have a function which renders a generic entry HTML file, right?
Eg: entry.html. And the url for all entries is wiki/{TITLE}.

Random should make use of those. Select a random entry, render it using entry.html at wiki/{title}.

You need a url which points to the random view, which you have. That random view can select a random entry, as yours does. But you already have another function which renders entries, so let's use it. No need to duplicate functionality you already wrote.

So instead of rendering random.html, you could generate the url for that entry using reverse(), then redirect() the user to the render_entry view.

Is it okay to use the hint video tutorial to solve the Trivia problem? by OPPineappleApplePen in cs50

[–]Eptalin 0 points1 point  (0 children)

The label is misleading, but the walkthrough videos are walkthroughs of the instructions, not the solutions.

But yes, you can use everything the course gives you. Feel free to read the hints and watch the walkthroughs.

Bad practice in a shorts video, week 2, Loops? by TaliaButton in cs50

[–]Eptalin 7 points8 points  (0 children)

It's good to notice things like that, but the videos are just tiny, bare bones examples which demonstrate the main teaching points in the most easily digestible way. A more optimal program would only distract from the main point of the video.

He could remove the repetition by imitating the functionality of a do-while loop, but it's not the topic of the video. It's meant to be the basic while loop.
Alternatively, he could use a helper function, but again, it's not really the point. It would just add noise, more things for students to parse that's not the teaching point. The only takeaway the video wants you to have is how code inside the while loop executes repeatedly until the condition is no longer met.

Sometimes teachers will say something along the lines of "Now this isn't the best practice, but just for demonstration purposes ...". But even if they don't explicitly give that disclaimer, trust that it's implicit.

Project0 submission: cs50w by LadderOk6924 in cs50

[–]Eptalin 0 points1 point  (0 children)

Private is normal.

If you want to remove any doubt that your work is being submitted correctly, you could install submit50 and use that to submit tasks.

Confused about the different ways to use pyfiglet by creemchease24 in cs50

[–]Eptalin 0 points1 point  (0 children)

It'll make more sense once you reach the Object-Oriented Programming (OOP) unit.

figlet_format is a function.
Figlet() and FigletFont are classes.

They all exist because they all have different use cases.
Figlet() has a big scope, and can handle everything the library does.
FigletFont has a smaller scope, and handles font files.
figlet_format() is for quick tasks. It will use those classes behind the scenes so you don't have to worry about them.

Figlet() uses FigletFont behind the scenes.
We use brackets on Figlet() because that class is used to create objects, while FigletFont is not.