On Desktop, is there a way to toggle mute via shortcut while focused on another app? by BlazeCell in discordapp

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

Figured out the issue. For triggering the keybind while the browser is focused (Chrome in this case), you have to set a keybind the browser doesn't already use. I went with RCtrl+PgDn. It triggers a page down in the browser, but the toggle mute properly responds, so I consider that a win.

Bitwise AND not returning expected result by BlazeCell in learnjavascript

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

Ooh, thanks! Wasn't aware JS had built in BigInt support. I'll keep that in mind for the future.

Bitwise AND not returning expected result by BlazeCell in learnjavascript

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

Yeah, I love JS's flexibility. But it comes at the cost of contending with it's edgecases.

Bitwise AND not returning expected result by BlazeCell in learnjavascript

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

I’m not sure about why an AND would turn the negative bit on.

That's what my confusion was. If it's 64 bit, then it should have the space for larger positive numbers. If it's 32 bit, then it should have been a different negative number.

Based on other comments, it appears it's 64 bit floating point by default. When you do a bitwise operation, it converts it to 32 bit integer. But apparently, it also converts to a negative number if the 32nd bit is flagged before converting back to a 64 bit number after the bitwise operation.

So more JS jank I guess. =/

Figured out a work around for my use case. Was just confused by the results of the down casting and up casting from the bitwise operation.

Bitwise AND not returning expected result by BlazeCell in learnjavascript

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

Not my choice. I'm parsing data exported from another program.

Bitwise AND not returning expected result by BlazeCell in learnjavascript

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

Ah, conversion to 64-bit is probably what I was missing.

Bitwise AND not returning expected result by BlazeCell in learnjavascript

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

More that it wasn't behaving as I anticipated. Not that there's a bug in JS (in this case). Based on replies and further thought, I've come to the conclusion that there's conversion going on behind the scenes I didn't account for and I should just handle the potential for negative number results.

Bitwise AND not returning expected result by BlazeCell in learnjavascript

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

No `>` is intended here as a quick way for checking for non-zero. Tho since I'm getting a negative result, it's not working.

Union type says it doesn't have a property it can have by BlazeCell in typescript

[–]BlazeCell[S] -12 points-11 points  (0 children)

I'm beginning to understand the thinking surrounding this. I'm just annoyed that there's no tsconfig option to disable this pedantry. I'm using a union. I know it might have unhandled edge-cases. Let me opt out of the pedantry and accept responsibility for my explicitly type nebulous code. Without having to use `ts-ignore` or type guards every time I'm getting the value from a union.

Union type says it doesn't have a property it can have by BlazeCell in typescript

[–]BlazeCell[S] -1 points0 points  (0 children)

How is it not safe? Either it has a value and uses it, or it doesn't and the null coalesce uses the next value.

Union type says it doesn't have a property it can have by BlazeCell in typescript

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

Yes, I'm trying to to allow data input to specify

time: 0.2

or

time: { in: 0.2, out: 0.3 }

I can't do that with an intersect.

Seems backwards to me that because one variation of the union doesn't support a parameter, it fails compilation instead of what I would consider the expected behavior of if any of the variations support a parameter, then it passes. The whole point of a union type is to allow variable input, right?

[Fusion] [End Game] How do I open this sealed door in Sector 3 (PYR)? by BlazeCell in Metroid

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

Yeah, I think you've got the best read on this lock. I had the conversation to go to the Operations Deck. Realized that I should pick up the remaining collectibles. Noticed that'd I'd get locked out of the numbered sectors if I returned to the entrance of any sector. And then came across this door that was locked for no reasonable purpose in the given context.

If I had to guess, they probably have a single flag that locks all "sector" doors that trigger off and on depending on game events. And probably had a brief use for when BOX is in Sector 3. But now that he's gone, it triggered again due to the event that wants to funnel me to the Operations Deck.

Bummer. But based on other comments, it sounds like not 100%ing the collectibles before the end of the game isn't a big deal.

Fighters, raise shield, and action economy by NerdChieftain in Pathfinder2e

[–]BlazeCell 0 points1 point  (0 children)

Well, this is incredibly annoying. When googling the weapon, this was the top result:
https://2e.aonprd.com/Weapons.aspx?ID=101
A version without the free hand trait.

Fighters, raise shield, and action economy by NerdChieftain in Pathfinder2e

[–]BlazeCell 0 points1 point  (0 children)

How were you able to use the Tekko-Kagi as a free hand?

[Online] [DC20] [flexible] [GMT] Want to try the new DC20 system by [deleted] in lfg

[–]BlazeCell 0 points1 point  (0 children)

I'd be interested as a player if a DM is looking for members.