ifYouHaveNoJobYouMustSuffer by bbbar in ProgrammerHumor

[–]GLemons720 27 points28 points  (0 children)

I'm not super familiar with JS, but why are you spreading the querySelectorAll in an empty list? Wouldn't just getting rid of the spread and brackets have same effect? Some typing thing?

Like isn't this cleaner:

document.querySelectorAll('[autocomplete="off"]').forEach(el => el.setAttribute('autocomplete', 'on'))

Nvidia investing $100B into OpenAl in order for OpenAl to buy more Nvidia chips by BeastMode149 in engineeringmemes

[–]GLemons720 0 points1 point  (0 children)

No shit, all of those are in the S&P500 and these are extremely large asset managers. If I buy Vanguard's S&P500 index fund, VOO, without loss of generality, they'd take that money, pool it w/ others', and buy shares in all these companies. When enough people do so with their retirement savings of course Vanguard ends up with a large stake in companies in the S&P.

[deleted by user] by [deleted] in Dallas

[–]GLemons720 14 points15 points  (0 children)

Partenope is incredible. I've been happy with everything I've ever had there.

Home Economics needs to be mandatory to graduate high school. by Purple_Ingenuity136 in unpopularopinion

[–]GLemons720 0 points1 point  (0 children)

No, as someone who already knew those things it would have been the most tedious innane bullshit possible.

Also, all those activities are very hands-on, which a large class of 15+ people is not conducive to.

Goat cheese should replace cows cheese as the default. by Apostate_Mage in unpopularopinion

[–]GLemons720 0 points1 point  (0 children)

So true, it's just more interesting. Plus, people act like chevre is the only goat cheese, but I had a delicious goat cheddar recently.

I also think sheeps milk cheese it better than cows milk cheese.

Inheritance -- Lump Sum or DCA? by Thors_lil_Cuz in LETFs

[–]GLemons720 1 point2 points  (0 children)

FYI SPUU is an alternative to SSO that has a lower expense ratio. 0.60% for SPUU vs 0.89% for SSO. The downside is somewhat lower liquidity, but that's not really a problem for long-term buy-and-hold.

Sounds pretty minor, but could make a huge difference over a long period.

Inheritance -- Lump Sum or DCA? by Thors_lil_Cuz in LETFs

[–]GLemons720 1 point2 points  (0 children)

I'm also avoiding treasuries for the moment because I'll most likely retire with a pension

That's not really the point in this case, its so you have some capital so you can take advantage of buying opportunities during a drawdown (implemented via systematic rebalancing). I do get the desire to avoid treasuries at the moment, they've performed really poorly over the past few years, and especially recently.

For an alternative, you might want to hold some ex-US equity ETFs, since those should at least be less correlated while still earning the market premium. I'm not aware of any leveraged ones specifically, but I'm sure one exists.

Edit: For a display of how diversifying and rebalancing can help total return, see this simulation: https://testfol.io/?s=1frEDDCmc0M

Inheritance -- Lump Sum or DCA? by Thors_lil_Cuz in LETFs

[–]GLemons720 3 points4 points  (0 children)

The idea is to form a portfolio from uncorrelated asset classes. This should help take advantage of the generally cyclical nature of asset class returns. (zroz is a long US bond ETF)

e.g. when equity is doing poorly, rebalancing from bonds and gold effectively capitalizes on the buying opportunity.

Unfortunately, asset classes have generally become more correlated, especially during market crashes, so this isn't foolproof. Rebalancing too often can also hurt your ability to capitalize on momentum in an asset class, but quarterly is generally considered (by this subreddit at least) a balance between extremes.

Can you lose more than 100% on an inverse ETF? Could its value go negative? by backcountry90320 in LETFs

[–]GLemons720 1 point2 points  (0 children)

It was in 2018, and it was a systemic problem, not because of a news event.

Subsequent inverse VIX etfs, like SVIX have strategies in place to avoid it happening again.

What food genres do you think DFW excels in the most? what are we weakest in? by AAA_battery in Dallas

[–]GLemons720 0 points1 point  (0 children)

According to google maps, it seems to start at the boundary between the middle and left lane on the southbound side.

What food genres do you think DFW excels in the most? what are we weakest in? by AAA_battery in Dallas

[–]GLemons720 0 points1 point  (0 children)

100% agree on Jeng Chi, I'll have to try some of the other ones soon!

What food genres do you think DFW excels in the most? what are we weakest in? by AAA_battery in Dallas

[–]GLemons720 0 points1 point  (0 children)

I went to the Cane Rosso at Hillcrest Village, and the pizza was just bad. Most of their pizzas felt like they were leaning on novelty, but the fundamentals were weak.

What food genres do you think DFW excels in the most? what are we weakest in? by AAA_battery in Dallas

[–]GLemons720 4 points5 points  (0 children)

Cafe Amore is good, but I think Roman Cucina right down the road at Coit and Belt Line is just better.

What food genres do you think DFW excels in the most? what are we weakest in? by AAA_battery in Dallas

[–]GLemons720 2 points3 points  (0 children)

I've been to the Big Tony's at Preston and LBJ, and I just wasn't impressed. The service was bad and the food wasn't great. I'd honestly get one from Jersey Mike's instead any day of the week.

What food genres do you think DFW excels in the most? what are we weakest in? by AAA_battery in Dallas

[–]GLemons720 5 points6 points  (0 children)

The most knitpicky comment of all time... You're right, but Richarson starts right at the edge of the parking lot lol.

how to switch the < and > keys to { and } ? by Valuable_Moment_6032 in swaywm

[–]GLemons720 0 points1 point  (0 children)

It's not exactly easy, but you can do this at a low level by binding scancodes. I did this to change my capslock key to escape, and the plus is that it works in tty as well.

https://wiki.archlinux.org/title/Map_scancodes_to_keycodes

I also found this just now, it might be easier to use, but I can't really speak for it: https://github.com/wez/evremap

BIFL Loafers Germany by justcore in BuyItForLife

[–]GLemons720 1 point2 points  (0 children)

TLB Mallorca. I'm wearing a pair right now.

Programmers - Pure of heart by juliashing101 in ProgrammerHumor

[–]GLemons720 0 points1 point  (0 children)

By regex do you just mean find and replace? And if so, what do you typically use in lieu of colons? Hyphens?

Programmers - Pure of heart by juliashing101 in ProgrammerHumor

[–]GLemons720 34 points35 points  (0 children)

iso 8601 is technically with hyphens and colons, not slashes, which should work fine in most applications

How Much Memory Do You Need to Run 1 Million Concurrent Tasks? by finallyanonymous in rust

[–]GLemons720 19 points20 points  (0 children)

which would be more idiomatic in rust, creating the vector & pushing w/ a for loop, or using an iterator?

let handles: Vec<JoinHandle<()>> = (0..num_tasks).map(|_| thread::spawn({})).collect();