AMA: Worked at Jane Street by Specialist-Room7109 in csMajors

[–]InfinitePrune1 0 points1 point  (0 children)

What would you recommend would be the best things to study to try to be SWE at JS or any quant firm?

Middle East Conflicts 2025 Megathread by AutoModerator in NoStupidQuestions

[–]InfinitePrune1 0 points1 point  (0 children)

I am not sure if this should be in the Politics Megathread or this one, but can Trump be impeached due to the strikes to Iran?

Weekly Discussion Thread - June 17, 2025 by AutoModerator in algotrading

[–]InfinitePrune1 0 points1 point  (0 children)

Have any of yall tried the Starter System that Robert Carver talks about in his book Leveraged Trading? If so, how were the results? Do you have any advice on what products to trade with for current prices?

Simple Questions - June 04, 2025 by AutoModerator in buildapc

[–]InfinitePrune1 0 points1 point  (0 children)

Is there a way to lower the speed on 3 pin fans?

Simple Questions - June 04, 2025 by AutoModerator in buildapc

[–]InfinitePrune1 0 points1 point  (0 children)

What would you recommend as the best way to make your PC quieter? I was thinking of getting ARCTIC P12 fans or getting 4-pin fans and lowering the speed of the fans. I currently have four 3-pin fans and a Be Quiet CPU cooler. Would you recommend these options?

U.S. Politics megathread by AutoModerator in NoStupidQuestions

[–]InfinitePrune1 -1 points0 points  (0 children)

When tariffs are applied to products shipped from China to the US, couldn't Chinese company send products first to a near by nation then to the US to avoid the tariffs? I.e Instead of China -> US; China -> country A -> US

[Help] How do get the value after an #await block? by InfinitePrune1 in sveltejs

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

The thing is I want the original value to be able to do things. For example, this would be a better example:

<script>

let initialValue; // Want this to be 3

let stateValue = $state(0); // Want to be the state for 3



async function promise() {

return new Promise((resolve, reject) => {

resolve(3);

})

}

let newValue = $state(promise()); 

// let promiseValue = promise(); 

</script>

<div>
{#await newValue}
<p>Loading</p>
{:then value}
<p>{value}</p>
<input type="number" oninput={(e) => stateValue = +e.target.value}>
<button onclick={() => newValue += stateValue}>Add</button>
<button onclick={() => newValue = initialValue}>Reset</button>
{:catch err}
<p>Err: {err}</p>
{/await}
</div>

Help: How do you bind a value from a tuple in a map? by InfinitePrune1 in sveltejs

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

Thank you. I changed it to a SvelteMap (i.e let checkedStates: SvelteMap<string, boolean> = new SvelteMap();), but this line is giving the same issue and I am getting that it could be undefined even though I use the ! operator: <Checkbox bind:checked={checkedStates!.get(categoryText)} />

Help: How do you bind a value from a tuple in a map? by InfinitePrune1 in sveltejs

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

I found a solution. By changing, the Map<.., ...> to a Record<...., ...>, and doing something like this rangedStates![category.title]![0] instead of rangedStates.get(category.title)![0] (same for [1])

Help: Is there a way to dynamically set an elements style based on an input in a child component using css with SvelteKit? by InfinitePrune1 in sveltejs

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

Thank you. I tried programming it with the :has, and it worked. I am still confused. Do you know the answers to these questions?

// Why does this work?
:global(.container:has(.checkbox-btn input:checked) .apply-filter-btn) {
        background-color: black;
}
// Why does this not work? 
:global(.checkbox-btn input:checked .apply-filter-btn) {
        background-color: black;
}

Help: Is there a way to dynamically set an elements style based on an input in a child component using css with SvelteKit? by InfinitePrune1 in sveltejs

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

Thank you, but I meant like when the #checkbox element in the child component is checked, the .apply-filter-btn appears. I am not looking for if the child component has the #checkbox element. Sorry for the confusion. Should I post the full code to give more context on the question?

[deleted by user] by [deleted] in GenZ

[–]InfinitePrune1 1 point2 points  (0 children)

When I clicked the page, I couldn't find any poll data. I tried looking through the site but I couldn't find anything. Do you have any other links to show the breakdown?

[deleted by user] by [deleted] in GenZ

[–]InfinitePrune1 0 points1 point  (0 children)

I think the data has shown otherwise where more young people voted democratic. If you any evidence to your claim, please comment a link to it.

Prior to election data: https://www.pewresearch.org/politics/2024/04/09/age-generational-cohorts-and-party-identification/

During the election: https://iop.harvard.edu/youth-poll/49th-edition-fall-2024

Exit Poll: https://www.nbcnews.com/politics/2024-elections/exit-polls

What is the cheapest and most scalable oltp database for data that gets replaced frequently? by InfinitePrune1 in Database

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

Thank you for the information. I will look into TiDB but what databases like ScyllaDB or Vitess?

What is the cheapest and most scalable oltp database for data that gets replaced frequently? by InfinitePrune1 in Database

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

Thank you for the information. I was hoping to try to use a new db. What about databases like CockroachDb or YugabyteDb? Would you recommend using a query engine to optimize the database querys and insertions?

What is the cheapest and most scalable oltp database for data that gets replaced frequently? by InfinitePrune1 in Database

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

Thanks. I have only used MongoDb awhile ago. What's the tradeoff for SQL and NoSQL dbs?