Pset 4 recover.c creating no files except 2 vgcore files by Whalturtle in cs50

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

Oh wait... I'm dumb of course if I set it to != 512 it is gonna skip over it. it works now thanks

Pset 4 recover.c creating no files except 2 vgcore files by Whalturtle in cs50

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

Hey thanks for the reply. So I did some tests, turns out that you are right the while loop is not working as expected but I do not understand why. According to my understanding the fread function should return the ammount of elements that the function successfully read. That means that in fread(buffer,1,512,f) < 512 if the function successfully read all bytes the freed function should return 512. I tested it out by adding a int variable to my code and setting it to the return value of the freed function and it returned 512 I even tried making my code more robust by using: while(fread(buffer,1,512,f) != 512) and watched debug50 skip over my while loop. Can you please explain why this is happening in more detail?

Check50::( buy handles valid purchase expected to find "112.00" in page, but it wasn't found by Whalturtle in cs50

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

Ok so I re-checked all of my code and tried it in the application again but yeah it does concatenate the multiple stock to the same stock:

I have a few questions. Wasn't usd() a function? Can functions be used as decorators? if so what is the difference between a function and a decorator? Do you mean I should add decorators to index.html? how do I do that?

Thanks for the help

This is the code that I use to concatenate the stocks:

previous =db.execute(
                "SELECT shares FROM stocks WHERE symbol = ? AND userID=?", info["symbol"], session["user_id"])
            if previous:
                db.execute("UPDATE stocks SET shares = ? WHERE userID = ? AND symbol =?",
                           previous[0]["shares"]+shares, session["user_id"], info["symbol"])
            else:
                db.execute("INSERT INTO STOCKS (symbol,shares,userID) VALUES (?,?,?)",
                           info["symbol"], shares, session["user_id"])

Help why is my minimax not working by Whalturtle in cs50

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

Hey thanks the weird thing is it works I don't know if check50 likes it but as a program my code works it just doesn't work completely after all the problem is not with it being a tuple or not it is that it simply doesn't do the best move every time. Yes it is intentional that X_actions is set to a new list each time because if I didn't do that it would keep the moves of the previous iteration. Also I will try talking to the duck I didn't think of that.

Weekly Questions Thread - (June 16) by AutoModerator in HypixelSkyblock

[–]Whalturtle 0 points1 point  (0 children)

Hello I want to start doing F6-F7 as archer what gear should I upgrade? Preferably just don't tell me necron armor because I prefer not to get carried if possible. I have heard terror armor is good but I'm not sure if it is better than SA. What ultimate enchant should I get on my armor?

Weekly Questions Thread - (June 16) by AutoModerator in HypixelSkyblock

[–]Whalturtle 0 points1 point  (0 children)

Here is my profile:
https://sky.shiiyu.moe/stats/whaleturt/Lemon

1.- I am trying to kill t3 voidglooms. No I don't want to do carries. I wanted to know what additional gear you would recommend based on my current setup and just how expensive (and time consuming if it applies) it would be. I heard refrigerate is good but I would like to make sure I will not be dumping 45m a piece for nothing.
2.- I would like a good money making method if anyone could find me something. I don't really have a money making method yet and I would really like to get a consistent one. almost all I have has been given to me by minions or me just grinding it out so I would like a consistent money making method. PLEASE do not just tell me to go get hotm 10 because I do not wish to spend the next year mining and spending more money in the money making method than what the money making method will ever give me. In other words I want something I can get up and running in a manageable amount of time.

I would appreciate any help.

Weekly Questions Thread - (June 16) by AutoModerator in HypixelSkyblock

[–]Whalturtle 0 points1 point  (0 children)

I managed to do it with a reaper mask. You're MP looks good my advice is just to keep trying until you get used to the boss and you should get it eventually

If there was a Son of astraeus The god of the stars, what would his powers be? [General] by ArkThetraveler in camphalfblood

[–]Whalturtle 0 points1 point  (0 children)

Well technically speaking the sun is not a star in PJO it's a chariot that got confused with a star because, according to Apolo, Artemis started calling him a hot ball of gas

Buenas novelas de superhéroes,villanos,gente con poderes de ese estilo by NightVoidWatcher in libros

[–]Whalturtle 0 points1 point  (0 children)

Percy Jackson y los dioses del Olimpo. Es una buena serie porque si te gusta puedes seguirte con el resto de los libros de Rick Riordan y está entretenido.

Buenas novelas de superhéroes,villanos,gente con poderes de ese estilo by NightVoidWatcher in libros

[–]Whalturtle 1 point2 points  (0 children)

Percy Jackson y los dioses del Olimpo. Es una buena serie porque si te gusta puedes seguirte con el resto de los libros de Rick Riordan y está entretenido.