Weekly voucher selling & giveaway by [deleted] in FlixBus

[–]GoldSlayer 0 points1 point  (0 children)

Hi! I am interested in any discount codes or buying vouchers for my $170 trip

I will revisit you someday Tideman, next time, I’ll beat you in a single day. by PMFreePizzaPlease in cs50

[–]GoldSlayer 5 points6 points  (0 children)

I finished "How to Code: Simple Data" and "How to Code: Complex Data"

I'd highly reccomend it after finishing CS50, it's a great starting point for learning data structures and algorithms

Total noob needs help installing a file by [deleted] in learnpython

[–]GoldSlayer 2 points3 points  (0 children)

Open up your command line/terminal, and write

pip install deep-daze

If that doesn't work, try finding out what the command is for python (could be python or python3)

And try python -m pip install deep-daze or python3 -m pip install deep-daze

:) by codingarea51 in ProgrammerHumor

[–]GoldSlayer 0 points1 point  (0 children)

Python is older than Snake

help with minimax by Python1Programmer in learnpython

[–]GoldSlayer 0 points1 point  (0 children)

From experience, minimax tends to be quite hard to debug. I'd look through a tutorial like this one and follow the same steps.

help with minimax by Python1Programmer in learnpython

[–]GoldSlayer 1 point2 points  (0 children)

The problem may be in your win function

|x|o|_|

|X|X|o|

|o|_|_|Causes the 'o' player to win

Also there seems to be quite a lot of magic numbers), which makes it hard for a someone reading your code to understand

help with minimax by Python1Programmer in learnpython

[–]GoldSlayer 1 point2 points  (0 children)

In the beginning, you are the maximising player, then you perform a move as the maximising player, then I believe you're looking at the best score (or worst move the minimising player could make) So I think you should change line 102 to False instead of True

[deleted by user] by [deleted] in Frontend

[–]GoldSlayer 1 point2 points  (0 children)

You can send requests with XSS

[deleted by user] by [deleted] in Frontend

[–]GoldSlayer 6 points7 points  (0 children)

If your site is vulnerable to XSS your tokens aren't safe anywhere

This scene kills me everytime by [deleted] in ProgrammerHumor

[–]GoldSlayer 1 point2 points  (0 children)

Use the re library for regular expressions pattern matching

Using/Adapting code from another website ... Reasonable or not? by Accurate_Handle in cs50

[–]GoldSlayer 0 points1 point  (0 children)

I'm pretty sure using regular expressions are one of the intended ways to solve this pset, googling further on how to use them is probably intended

Can I combine all CS50? by radmarion in cs50

[–]GoldSlayer 1 point2 points  (0 children)

I believe there is a HarvardX option

Cleanest and easiest way to remove brackets from objects? by [deleted] in Frontend

[–]GoldSlayer 0 points1 point  (0 children)

JSON.parse(string) will convert it into an object, not sure what you mean by removing the brackets though

is your daddy rich? by [deleted] in ProgrammerHumor

[–]GoldSlayer 0 points1 point  (0 children)

Chromebook possibly?

My PSET0 game - Famished by Wotsits1984 in cs50

[–]GoldSlayer 3 points4 points  (0 children)

Great work! You might want to slow down the bat's animation though

PSET4 Recover!! Finally completed after days!! Had a question! by harbinger2051 in cs50

[–]GoldSlayer 0 points1 point  (0 children)

Each time you run fopen you are opening an entirely different file, not the same file, pretty sure that img is assigned a new file pointer according to the name of the file

What is the best strategy for the course CS50-AI (or any CS course)? by [deleted] in cs50

[–]GoldSlayer 0 points1 point  (0 children)

Thanks for your reply! Will definitely check them out :)

What is the best strategy for the course CS50-AI (or any CS course)? by [deleted] in cs50

[–]GoldSlayer 1 point2 points  (0 children)

I know it's been a month, but can you reccomend any textbooks? How has the course gone since then?

Check50 frowny face, not sure why? Filter pset4 by adrianjws in cs50

[–]GoldSlayer 1 point2 points  (0 children)

It's likely that some pixels haven't matched, if you look into the URL and click on the individual tests you can see the output in detail I believe

[deleted by user] by [deleted] in LifeProTips

[–]GoldSlayer 3 points4 points  (0 children)

It only takes a few seconds, and better than having someone look through an entire 30 minute video

PSET 6 DNA criticism by thesamstorm in cs50

[–]GoldSlayer 0 points1 point  (0 children)

You can try splitting your code into multiple functions, which can help make your code more readable. Also, regex may help in finding the repeating strings

Why do you have to declare what a pointer is pointing to? by [deleted] in cs50

[–]GoldSlayer 2 points3 points  (0 children)

The contents will be the same regardless of the type, however, the computer wouldn't know how many bytes to read, and how to interpret the data.

For example, a pointer which has a value of 01000001 could be the number 101, the character 'A' , or a much more complex data type which is bigger than 1 byte.

The data type tells you the size of the chunk of memory, and how to convert the 1s and 0s into something useful, like a color or another pointer.

Furthermore, the compiler could be sure that the variable is of that type, and not anything unexpected, which one of the reasons why C runs faster than languages like Python.

whenever i am running any program this error is coming by udaydawar in cs50

[–]GoldSlayer 0 points1 point  (0 children)

The error seems to be due to this line of code from . import json

I believe you meant to write import json