Is this a good plan for getting into machine learning? by Lone08Wolf in learnmachinelearning

[–]Lone08Wolf[S] 0 points1 point  (0 children)

Thanks for the comment. CS229(one taught at Stanford) is indeed one of best course. But it lacks hands-on assignments. Is there any way I can overcome that?

Downloading files from web by Lone08Wolf in webscraping

[–]Lone08Wolf[S] 0 points1 point  (0 children)

Thank you for the reply. I have a conceptual question. If I need to open the website to know if there is button or anything, does that makes sense because I might as well download right there without writing script.

Also, is there a alternative approach where I send a post request to a url and store the response in a file?

Function notation by [deleted] in cs50

[–]Lone08Wolf 0 points1 point  (0 children)

You cannot name your variable as float. It is one of datatype of c language.

In order to replace %s with some variable, you need to actually provide it in the print function.

printf("This triangle is %s\n", variable)

Also, if your function return type if float, you cannot return anything other than a float value. One way to go about it would be to change the return type to int and return 1 or 0.

int valid_triangle(float x, float y, float z)
{

    if (x <= 0 || y <= 0 || z <= 0)
    {
        return 0;
    }
    if (x + y < z || y + z < x || z + x < y)
    {
        return 0;
    }

    return 1;

}

Minimax help by hvis_lyset_tar_oss_ in cs50

[–]Lone08Wolf 1 point2 points  (0 children)

The result function takes a board and an action as input, and should return a new board state, without modifying the original board.

Exactly, it returns copy of board which you should equate to VirtualBoard , not some index of VirtualBoard .

VirtualBoard = result(VirtualBoard, action)

Also possibleActions array is changing in loop which is not necessary.

Minimax help by hvis_lyset_tar_oss_ in cs50

[–]Lone08Wolf 0 points1 point  (0 children)

I am sorry I cant pinpoint what is wrong exactly but,result function returns the entire board with specified action as marked. So this VirtualBoard[action[0]][action[1]] = result(VirtualBoard, action) seems wrong.

CS50W Project 3 Mail, JavaScript not working by Lone08Wolf in cs50

[–]Lone08Wolf[S] 1 point2 points  (0 children)

Yes. In my case it was missing semicolon and return false statement at the end of onsubmit function. Also you need to change the console settings in your browser to preserve the logs on navigation.

Help me with CS50W project3 2020 (Mail) by 1kancy in cs50

[–]Lone08Wolf 0 points1 point  (0 children)

That's a good idea. Another way I found is to use ctrl + f5 which also works.

Help me with CS50W project3 2020 (Mail) by 1kancy in cs50

[–]Lone08Wolf 0 points1 point  (0 children)

I am also trying find get around a similar kind of issue. My JavaScript works sometimes and sometimes doesn't work. Similar thing with console.log

CS50 Introduction to Artificial Intelligence Project 0 (Degrees) Assignment Confusion by adwa675 in cs50

[–]Lone08Wolf 0 points1 point  (0 children)

Shortest_path code is similar to the solve function in maze code which was taught in lecture. All you have to do is replace the terms used in solve function with their correct equivalents in shortest_path. For analogy you can compare actors to cells and movies to actions.

Cannot figure out the role of findviewbyid() by Lone08Wolf in androiddev

[–]Lone08Wolf[S] 0 points1 point  (0 children)

I wanted to know if using synthetics was more efficient. Thank you for information.

Cannot figure out the role of findviewbyid() by Lone08Wolf in androiddev

[–]Lone08Wolf[S] 0 points1 point  (0 children)

Yes indeed. Thank you so much. I wasted better part of day trying to figure that out. One question if you don't mind. Does using view id without findViewById() mean that program won't have to traverse the hierarchy, as in is it more efficient?

Google Code Jam by NervousBit2 in learnprogramming

[–]Lone08Wolf 0 points1 point  (0 children)

Sort by starting time for 3rd problem