sugar_in_your_tea

joined 2 years ago
MODERATOR OF
[–] sugar_in_your_tea 2 points 2 hours ago (1 children)

Why post the same image twice?

[–] sugar_in_your_tea 4 points 18 hours ago

Poetry/uv is similar to Rust's cargo. You specify your direct dependencies in a TOML file and their version constraints and the tool takes care of the rest.

[–] sugar_in_your_tea 1 points 1 day ago

My understanding is that it's necessary given the current design of the compiler. That doesn't mean it can't be removed at some point.

It would be really nice to be able to define trait impls wherever, and it should be possible.

[–] sugar_in_your_tea 7 points 2 days ago (1 children)

Don't worry, new research shows all the negatives are made up by big water. You may continue consuming as many cans as you want. Drink verification can to confirm.

[–] sugar_in_your_tea 5 points 2 days ago

Make sure you use a filesystem with snapshots, it'll save a lot of headaches.

[–] sugar_in_your_tea 3 points 2 days ago

And there’s nothing wrong with that

Agreed, it's just nice to know that going in to a massive article like this. Are these reasonable complaints, or are they just justifying a new project for themselves?

[–] sugar_in_your_tea 3 points 2 days ago* (last edited 2 days ago)

mlua looks nice. It also does async for coroutines, which is really nice.

[–] sugar_in_your_tea 1 points 2 days ago

There are a ton of options, depending on what you have. In essence, a file server is really simple, you just need a computer with network access with sufficient storage. Here are options, from simplest to fanciest:

  1. drive plugged into your router - simplest and most ghetto
  2. drive that supports network access - slightly less ghetto
  3. buy a NAS - more money and less freedom, but much simpler than DIY
  4. old computer (laptop, Raspberry Pi, etc) that you have laying around with something like TrueNAS, NAS4Free or OpenMediaVault running on it
  5. 4, but with a general purpose OS on it (Debian, Fedora, etc) running some kind of file hosting software (samba, Nextcloud, Seafile, OpenCloud, etc)
  6. 4 or 5, but with new hardware

The costs can vary from free to thousands of dollars, depending on storage and compute needs and how far down the fancy scale you go (note: 3 is more expensive than 4, and comparable to 5).

[–] sugar_in_your_tea 4 points 2 days ago

Everything is running and I'm not making many changes because work got hectic. I have a few projects I'd like to tackle once I get time:

  • finish migrating to podman
  • get a new drive to test migrating to microos
  • get more media to finally eliminate Netflix (SO is still clinging to a few shows)
  • find a smaller box for my NAS - currently in a massive ATX box, but I don't want to pay an arm and a leg just for space savings
[–] sugar_in_your_tea 26 points 2 days ago

Here are my reasons:

  • no Linux support - Heroic works, why doesn't Epic do what GOG do and revenue share w/ Heroic?
  • exclusivity deals, which reduces options outside of EGS
  • Epic's anticheat works on Linux, but their own games that use it don't, that's a pretty big slap in the face

I certainly want more competition to Steam, but that competition needs to do something other than exist for me to use it. GOG is that, and if they properly supported Linux, they'd get most of my gaming money. But they don't, so they only get some of it.

Yeah, this probably reads like a Linux fanboy post or something, but I've been using Linux longer than Steam supported it with its client, and I'll still be here if Steam leaves. It's my platform of choice, and a vendor needs to meet me here if they want my business. Valve did, so they get my money. I honestly don't need much, I just need games to work properly on my system.

[–] sugar_in_your_tea 1 points 2 days ago (1 children)

a way to track them

Yes, that's what I'm suggesting. Injecting some kind of metadata that gets stripped at code gen time would probably work.

worse incremental compilation performance

Would it really be that significant?

without allocating everything on the heap

I'm talking about compile time.

Start with all of the known safe cases (basic types should be fine), then move on to more dubious options (anything that supports iteration). Then allow iterable types but don't allow iterating over a mutable reference. And so on. If it's a priority to loosen up the rules without sacrificing safety, surely some solutions could be found to improve ergonomics.

Or perhaps there could be some annotations to make a reference as "unsafe" or similar instead of just a block. If something is safe in practice but not verifiably safe, there should be a way to communicate that.

You want some annotations to break out of the safe subset of the language

The annotations would indicate that something unsafe is going on, so it's like an unsafe block, but on a reference. That way it's clear that it's not being checked by the borrow checker, but the rest of the application can be checked.

I really liked the idea of an optional, built-in GC w/ pre-1.0 Rust where specific references could be GC'd. If that were a thing in modern Rust (and the GC would only be enabled if there's a GC'd reference included), we could get a lot more ergonomics around things like linked lists.

[–] sugar_in_your_tea 2 points 2 days ago (1 children)

I take it the 192.168.1 subnet is the family lan?

 

I didn't notice this until the other post about them potentially deprecating YaST (at least putting in on maintenance mode). I figured we could use a thread to discuss other changes coming in Leap 16.

 

Current setup:

  • one giant docker compose file
  • Caddy TLS trunking
  • only exposed port is Caddy

I've been trying out podman, and I got a new service running (seafile), and I did it via podman generate kube so I can run it w/ podman kube play. My understanding is that the "podman way" is to use quadlets, which means container, network, etc files managed by systemd, so I tried out podlet podman kube play to generate a systemd-compatible file, but it just spat out a .kube file.

Since I'm just starting out, it wouldn't be a ton of work to convert to separate unit files, or I can continue with the .kube file way. I'm just not sure which to do.

At the end of this process, here's what I'd like in the end:

  • Caddy is the only exposed port - could block w/ firewall, but it would be nice if they worked over a hidden network
  • each service works as its own unit, so I can reuse ports and whatnot - I may move services across devices eventually, and I'd rather not have to remember custom ports and instead use host names
  • automatically update images - shouldn't change the tag, just grab the latest from that tag

Is there a good reason to prefer .kube over .container et al or vice versa? Which is the "preferred" way to do this? Both are documented on the same "quadlet" doc page, which just describes the acceptable formats. I don't think I want kubernetes anytime soon, so the only reason I went that way is because it looked similar to compose.yml and I saw a guide for it, but I'm willing to put in some work to port from that if needed (and the docs for the kube yaml file kinda sucks). I just want a way to ship around a few files so moving a service to a new device is easy. I'll only really have like 3-4 devices (NAS, VPS, and maybe an RPi or two), and I currently only have one (NAS).

Also, is there a customary place to stick stuff like config files? I'm currently using my user's home directory, but that's not great long-term. I'll rarely need to touch these, so I guess I could stick them on my NAS mount (currently /srv/nas/) next to the data (/srv/nas//). But if there's a standard place to stick this, I'd prefer to do that.

Anyway, just looking for an opinionated workflow to follow here. I could keep going with the kube yaml file route, or I could switch to the .container route, I don't mind either way since I'm still early in the process. I'm currently thinking of porting to the .container method to try it out, but I don't know if that's the "right" way or if ".kube` with a yaml config is the "right" way.

 

Apparently US bandwidth was reduced to 1TB for their base plan, though they have 20TB for the same plan in Europe. I don't use much bandwidth right now, but I could need more in the future depending on how I do backups and whatnot.

So I'm shopping around in case I need to make a switch. Here's what I use it for:

  • VPN to get around CGNAT - so all traffic for my internal services goes through it
  • HAProxy - forwards traffic to my various services
  • small test servers - very low requirements, basically just STUN servers
  • low traffic blog

Hard requirements:

  • custom ISO, or at least openSUSE support
  • inexpensive - shooting for ~$5/month, I don't need much
  • decent bandwidth (bare minimum 50mbps, ideally 1gbps+), with high-ish caps - I won't use much data most of the time (handful of GB), but occasionally might use 2-5TB

Nice to have:

  • unmetered/generous bandwidth - would like to run a Tor relay
  • inexpensive storage - need to put my offsite backups somewhere
  • API - I'm a nerd and like automating things :)
  • location near me - I'm in the US, so anywhere in NA works

Not needed:

  • fast processors
  • lots of RAM
  • loose policies around torrenting and processing (no crypto or piracy here)
  • support features, recipes, etc - I can figure stuff out on my own

I'll probably stick with Hetzner for now because:

  • pricing is still fair (transfer is in line with competitors)
  • can probably move my server to Germany w/o major issues for more bandwidth
  • they hit all of the other requirements, nice to haves, and many unneeded features

Anyway, thoughts? The bandwidth change pisses me off, so let me know if there's a better alternative.

 

I know Mitt Romney is part of the two-party system, but he also stood up against his party by voting for Trump's impeachment and not once endorsing Trump for President.

This is his closing speech since he's retiring, and I think the message is worth listening to, especially since it seems to be an end of a moderate era for the GOP.

Anyway, perhaps this can open a discussion about the value of centrist politicians. Or whatever other thoughts you may have.

 

I thought this was an interesting video and I think it does a good job explaining at least part of why Trump won. Here's the original paper if you're interested.

I think the economy was a major factor in deciding this election, but obviously there are a lot of other factors to consider, such as the DNC not having a primary, Biden having a poor approval rating, and concerns around China and Russia, among a host of others. However, this seems to do a fantastic job explaining the results as well.

What do you think? Do you think public perception of the economy and political party influence on the economy was a significant factor in this election? Do you think that indicates a decent likelihood of either an economic correction or at least reduced returns at some point in Trump's presidency?

 

With Thanksgiving in the US right around the corner, I found this article about gratitude from a FI perspective. This is from a few years ago, but the message is evergreen.

 

Link is to the Bogleheads forum post where someone posted a link back in August. Before now, you had to call in to request the change, and it could take a few days, but now it's online and allegedly is done the next day.

I don't know when they added this, but I think it was sometime this year because I remember considering it last EOY (that's when I usually rebalance).

Here is a direct link, or you can get there on the website: Transact > Buy & Sell > Convert Vanguard mutual funds to ETFs. You can select either a number of shares or a percent of the total position.

As to why you may want to do this, here are a few reasons:

  • converting shares classes isn't a taxable event (but you can't go ETF -> mutual fund)
  • ETFs have a slighly lower ER (0.01-0.02% in most cases, so not huge)
  • easier if you want to ACATS transfer shares to a different brokerage
  • if you have a mix of ETFs and mutual funds, rebalancing between ETFs is easier, so moving a portion of your mutual funds to ETFs may be worthwhile

Have you taken advantage of Vanguard's mutual fund -> ETF conversion? Do you think you'll use this new online tool?

 

Link is to an older podcast episode, and The Money Guy YouTube channel occasionally talks about FINE instead of FIRE.

Here's the definitions of each:

  • FINE - Financial Independence Next Endeavor
  • FIRE - Financial Independence Retire Early

Basically, FINE focuses on what you plan to do after achieving financial independence, whereas FIRE tends to focus on cessation of working. I always called it FI (leave off the retirement part), but I suppose FINE works.

Anyway, just wondering what everyone else is planning to do once they hit Financial Independence, whether that's retirement or starting something new. I'll leave mine in the comments.

 

This is a link to a spreadsheet to help determine which funds to place into taxable vs tax-advantaged space.

Here is a link to the Bogleheads wiki about tax-efficient fund placement:

If all else is equal, international funds have a small tax advantage over US funds, because they are eligible for the foreign tax credit.

TL;DR:

  • put international funds in taxable and file for the foreign tax credit each year
  • the total difference is like 0.1-0.2%, so optimizing fees may be more impactful than going through this exercise

This wasn't good enough for me, especially as I'm looking into applying a small-cap tilt to my portfolio and really like optimizing things, so I went digging for more information.

Foreign Tax Credit

When you own stocks or otherwise make money in another country, that other country may charge taxes, and the IRS will also charge taxes on any dividends you receive, regardless of source. This ends up in double taxation, because you're being taxed on your dividends by both the US and the foreign country.

To eliminate the double taxation, you can file form 1116 to recoup the foreign taxes by getting a credit (or deduction, but that's rarely better). This Bogleheads wiki doc has more information if you want it.

For many funds (e.g. VXUS), the FTC ends up being something like 0.25%, so if it's in a tax-advantaged account, you'd end up with a 0.25% tax drag on your investments due to foreign taxes you can't recoup.

Tax-efficiency

When deciding where to place funds, you generally want fewer dividends and capital gains in your taxable brokerage accounts and to put the higher dividend-yielding assets in your tax-advantaged accounts. And if you have to have capital gains, you want to make sure your taxable account has mostly qualified capital gains so they're taxed at the long-term capital gains rate instead of the (in most cases) higher income tax rate.

However, the foreign tax credit changes things, since you can only get it if your investments are in a taxable brokerage account. There are cases where you'd prefer a higher total dividend in your taxable account provided the tax credit more than makes up for the difference in total taxes.

Worked example w/ VTI and VXUS

For example, let's say you have equivalent amounts of VXUS and VTI. VXUS has 3.34% total dividend yield whereas VTI has 1.66% (both as-of 2021). So you'd want VXUS in tax advantaged and VTI in taxable, right? Wrong. The total taxes for both are:

  • VXUS - 0.56%, of which 0.26% is recoverable foreign taxes, for a net of 0.30%
  • VTI - 0.32%

Here are two scenarios (assuming you have no state income tax, are in the 22% bracket w/ 15% LTCG):

  • VTI in taxable - VXUS pays 0.26% in foreign taxes, for a total tax bill of 0.26% (0.26% + 0.26) / 2
  • VXUS in taxable - 0.30% net taxes (0.56% - 0.26%), for a total tax bill of 0.15% (0.30% / 2)

So in this case, holding VXUS in taxable saves about 0.11% in total taxes paid.

Added notes

I added some Avantis funds (known for value funds) on here that are interesting:

  • AVUV - US small-cap value fund
  • AVDV - developed markets small-cap value fund
  • AVES - emerging markets value fund

So please, make a copy and mess around with your own figures. You can add some funds as well if you like, just fill in the bolded sections in the "funds" tab and it should work for you.

I'd appreciate a second pair of eyes as well if you feel so inclined.

Anyway, do you bother with adjust fund placement?

 

I generally don't like to make political posts, but this one has an interesting correlation to some of the culture around FI, which is things we can and can't control (i.e. this older post about circle of control, which echoes The Seven Habits of Highly Effective People).

So even if you're not in the US or just aren't interested anymore in the election (i.e. I already voted last week), there's still some interesting points about what the head of government can and can't do, as well as what the rest of government has and doesn't have control over.

Stocks are all over the place right now, and there's a lot of concern about what might happen after the results are announced. I hope this article can bring a little peace since a lot of what the market and news orgs are worried about aren't really things the President has direct control over, and the rest of government will have a delayed impact.

It's certainly an important decision and there will be significant impacts, but sometimes it helps to take a step back and look past the excitement in the news cycle.

 

I found the graph at 10:55 to be especially interesting because it shows how someone with around the median income ($65k) can make it to the lower upper class by retirement through some discipline (10% saved per year).

As a quick TL;DW, here are the median incomes, net worth, and percent of population for each class:

  • lower - $34k income, $3.4k net worth (many are negative) - 25%
  • middle
    • lower - $44k income, $71k net worth - 20%
    • middle - $81k income, $159k net worth - 20%
    • upper - $117k income, $307k net worth - 20%
  • upper
    • lower - $189k income, $747k net worth - 10%
    • upper - $378k income, $2.5M net worth - 5%

Some questions to spark discussion:

  • Do you agree with his breakdown of the economic classes? Why or why not?
  • What strategies do you think someone in each category should take to improve their situation?
  • If you don't mind sharing, what class do you think you're in, and does the breakdown match your experience?
view more: next ›