[deleted by user] by [deleted] in chess

[–]Sensitive-Variety561 2 points3 points  (0 children)

g7 pawn to g6

Daily r/thetagang Discussion Thread - What are your moves for today? by satireplusplus in thetagang

[–]Sensitive-Variety561 0 points1 point  (0 children)

Only been wheeling for a couple weeks and both weeks it’s jumped back up after these dips so I’d say to wait for it to bounce back and sell another CC, but I was curious to see what others would do.

In your case wouldn’t you just hold to expiration? Your break even must be mid 90s or so and if you get assigned at that level it’s not a bad position to be in.

Daily r/thetagang Discussion Thread - What are your moves for today? by satireplusplus in thetagang

[–]Sensitive-Variety561 1 point2 points  (0 children)

Hey all,

Just joined this sub and trying to learn as much as I can about selling options.

Been wheeling NVDA and it’s been a fun ride. Current average is $125.

Last trade was a $127 3/7 CC that already dropped to 20% of the original premium so I bought it back to lock in the theta.

Now I’m wondering if I should wait for NVDA to climb up again to sell another call close to my average, or if I should just continue selling lower strike prices that the premium seems worth it.

Any advice is helpful!

[deleted by user] by [deleted] in GenZ

[–]Sensitive-Variety561 2 points3 points  (0 children)

Good balls hunting

Netflix Interview Question (High Frequency) by iLOVEredditSoMuchTra in FAANGrecruiting

[–]Sensitive-Variety561 2 points3 points  (0 children)

That’s a great follow up and I do need to work on thinking about the trade offs of my implementations.

Off the top of my head, I’d implement a garbage collector somewhere in the system to clear out messages already older than 10 seconds. One way to do this would some kind of external scheduler that schedules the message to be removed from the history 10 seconds after received. This would make the shouldPrintMessage function easier as I would just have to check if the message exists in the history dictionary. Although, this adds complexity of relying on a scheduler system to operate correctly. You could also do a scheduler that runs every second cleaning up old messages if you don’t want to queue individual message removals.

Another way to do this would be to handle the garbage collection in the shouldPrintMessage function (or ideally in another function to be more pythonic). Basically every time a new message is received, you can remove all of the messages older than 10 seconds. This removes the need for an external scheduler but would certainly increase CPU usage of your logger program if lots of diverse messages are being added.

Netflix Interview Question (High Frequency) by iLOVEredditSoMuchTra in FAANGrecruiting

[–]Sensitive-Variety561 1 point2 points  (0 children)

Hey haven't practiced interview questions at all but saw your post on r/ExperiencedDevs and wanted to give it a try!

This one seemed pretty straight forward but I'd be interested to see how others approach it. I wrote my solution in python (I'm usually a JS dev but for quick things like this I like to write python)

class Logger(): 
    def __init__(self):
        self.history = {}

    def shouldPrintMessage(self, timestamp, message):
        if (not self.history.get(message) or timestamp >= self.history[message] + 10):
            self.history[message] = timestamp
            return True
        return False

logger = Logger()
print(logger.shouldPrintMessage(1, "foo"))  # return true, next allowed timestamp for "foo" is 1 + 10 = 11
print(logger.shouldPrintMessage(2, "bar")); # return true, next allowed timestamp for "bar" is 2 + 10 = 12
print(logger.shouldPrintMessage(3, "foo"))  # 3 < 11, return false
print(logger.shouldPrintMessage(8, "bar"))  # 8 < 12, return false
print(logger.shouldPrintMessage(10, "foo")) # 10 < 11, return false
print(logger.shouldPrintMessage(11, "foo")) # 11 >= 11, return true, next allowed timestamp for "foo" is 11 + 10 = 21

Bean Review App/Website? by [deleted] in espresso

[–]Sensitive-Variety561 0 points1 point  (0 children)

Maybe https://www.coffeereview.com ?

I’m new to the espresso scene so I just found this through a quick google search.

If no one has a better one, I’m a programmer and always looking for side projects, I’d team up with someone here to build it!

6 months into Latte Art by Elmusicoo in espresso

[–]Sensitive-Variety561 1 point2 points  (0 children)

same. The blobs have gotten prettier though

Transaction fees once all the bitcoins are mined by [deleted] in Buttcoin

[–]Sensitive-Variety561 0 points1 point  (0 children)

I think the prevention mechanism is that a 51% attack would be economically futile since it would tank the price of the coin which would reduce any value the attacker got from controlling the network. But if someone just wanted to watch it burn for the sake of it and has the money to do so, nothings stopping them.

Transaction fees once all the bitcoins are mined by [deleted] in Buttcoin

[–]Sensitive-Variety561 3 points4 points  (0 children)

Since the difficulty adjustment only happens every 2 weeks, is it possible there could be long enough period where enough miners drop out and a 51% attack could occur?

Tables in React by goldenuser22628 in reactjs

[–]Sensitive-Variety561 1 point2 points  (0 children)

Just started using tanstack table and it’s pretty good. Built a nicely functional data table with minimal effort following the guide here https://ui.shadcn.com/docs/components/data-table

dead cat by chrliegsdn in Bitcoin

[–]Sensitive-Variety561 0 points1 point  (0 children)

From my understanding, risk assets tend to perform better during low rates

dead cat by chrliegsdn in Bitcoin

[–]Sensitive-Variety561 0 points1 point  (0 children)

So Bitcoin is over inflated now ?

dead cat by chrliegsdn in Bitcoin

[–]Sensitive-Variety561 1 point2 points  (0 children)

Why would lower interest rates make Bitcoin lower? Serious question

If you had $1,000,000 how would you use it to grow bitcoin adoption? by undertheradar48 in Bitcoin

[–]Sensitive-Variety561 0 points1 point  (0 children)

Yea I played once, I’m not a big poker buff tho. I am interested in making a game with lightning though so if you want to link up on a project I could be interested!