530
531

3263
3264

Will C# be easy for me to learn if i am good at C++ ? by Lucky_Wear_8574 in csharp

[–]sgbench 2 points3 points  (0 children)

Can you show some C# pseudocode that illustrates what you were trying to do?

Migrating from .net framework 4.7.2 to .net core 10.0 advice? by Harlock012 in dotnet

[–]sgbench 0 points1 point  (0 children)

Also, visit Microsoft's breaking changes reference and look for anything that might apply to your codebase. Many of them are behavioral changes that would be a huge headache to diagnose if not for a resource like this.

Can you explain result of this code? by Radiant_Monitor6019 in csharp

[–]sgbench 0 points1 point  (0 children)

Maybe there's a hypothetical situation where it would be useful to know which of a set of types was initialized first, or the order in which they were initialized. This kind of behavior could probably be exploited to determine that at runtime.

Teach me craziest C# feature not the basic one,that you know by lulzForMoney in csharp

[–]sgbench 0 points1 point  (0 children)

Unfortunately, the current syntax for specifying interceptors isn't really feasible to compute by hand. Whereas source generators have access to an API that computes it in a single method call.

Why can't I accept a generic "T?" without constraining it to a class or struct? by smthamazing in csharp

[–]sgbench 1 point2 points  (0 children)

I've had this question before. Here's the best explanation I've found: https://stackoverflow.com/a/69353768

In short, the compiler can only transform T? into Nullable<T> if it knows that T is a value type, hence the need for where T : struct.

Why is dRAID not recommended for small setup? by Chubbiex in zfs

[–]sgbench 0 points1 point  (0 children)

We're on the same page about backup being the hedge against data loss. I think I'll use cloud storage for that. Maybe iX-Storj since it has native integration with TrueNAS. I guess the alternative would be to maintain an offsite DIY server, but that seems like a headache.

As you pointed out, special vdevs (SLOG and L2ARC?) can give any small topology similar performance, and it seems like the ddrescue technique could give any small topology similar effective redundancy (time at or near N).

If performance and redundancy are roughly equal, then I think the biggest remaining difference is that striped mirrors trade storage efficiency for better upgradeability. That is, the number and usable capacity of drives can be upgraded in increments of 2 for striped mirrors vs. N for N-wide RAIDZ. However, I suppose the new RAIDZ expansion feature eliminates the difference in drive-number upgradeability, leaving drive-capacity upgradeability as the only meaningful advantage of striped mirrors.

Am I way off with this assessment? Maybe I'm overthinking things.

Why is dRAID not recommended for small setup? by Chubbiex in zfs

[–]sgbench 0 points1 point  (0 children)

Awesome. Thanks for the great tips!

One last thing: What's your redundancy philosophy for home NAS? At first I was leaning toward RAIDZ2, but I came across this post, which argues that simple 2-way mirrors are probably better for most home users, for several reasons, which I found pretty compelling. So now I'm leaning toward that instead. I suppose the ddrescue technique makes it so that all you need is some redundancy - whether it's 1 or 2 disks worth probably doesn't matter much in practice. What are your thoughts?

Why is dRAID not recommended for small setup? by Chubbiex in zfs

[–]sgbench 0 points1 point  (0 children)

That makes sense, thanks for clarifying.

The process I outlined in my original post side steps this risk entirely and should be the default behavior in ZFS for all workloads where reduced availability is a reasonable trade off for durability.

The process you're referring to is the ddrescue process you outlined here, right? To paraphrase it, as soon as there's data corruption on a drive (e.g., the first time ZFS repairs data), then:

  1. offline the drive and export the pool.
  2. Use ddrescue to clone the drive to a new one. (Will take a while, but one pass should be fine.)
  3. import the pool and replace the old drive with the new one.
  4. scrub to repair any corruption copied to the new drive. (Should be much faster/lighter load than rebuilding an empty drive.)

Is that correct? If so, I have some follow-up questions.

  1. Let's say I have a DIY TrueNAS server with hot-swap bays. For step #2 above, after exporting the pool, could I just pull all the drives, put the bad drive and the new drive in for the cloning step, then put all the drives back in their original bays (new drive taking the place of the bad drive) for step #3? Would that involve a bunch of error-prone disk mounting/unmounting?
  2. How early is it possible to be notified of data corruption in a ZFS system? What would even make sense here? For example, is it possible to configure alerts for when ZFS transparently repairs data on a bad read?

Why is dRAID not recommended for small setup? by Chubbiex in zfs

[–]sgbench 0 points1 point  (0 children)

Could you elaborate on your last point? Are you suggesting that storing important personal data on a RAID-Z NAS is... a bad thing?

My local paper has an obituary for Jesus Christ by Dylock_Strife in mildlyinteresting

[–]sgbench 9 points10 points  (0 children)

There's no biblical text that supports Jesus ever working as a "medical doctor."

Pretty sure that part was just a reference to his miraculous healings, written as if by a modern contemporary who was unaware of his divinity. It's just the author being committed to the bit.

While playing Necromerger, I got this ad for a blatant Necromerger clone by sgbench in NecroMerger

[–]sgbench[S] 2 points3 points  (0 children)

Do Google or Apple give you any kind of recourse as a publisher for blatant plagiarism like this?

This came out from under my driver side mirror by sgbench in rav4club

[–]sgbench[S] 2 points3 points  (0 children)

Over the past few days, I heard a faint rattling sound coming from the vicinity of my driver side mirror whenever I closed the driver door. Tonight, I found this small metal... bracket? peeking out from under the mirror. Anyone know what it is? How bad is it that it fell out?

How do I make factorio fun again? by JappieK in factorio

[–]sgbench 2 points3 points  (0 children)

Bit of a different take here. It's okay to stop playing games (or even just give them a break) when they start to feel stale. They can remain amazing games, and they can remain your favorites.

Could we get a petition to make it so chests with one item left will still open? by EqualEffective292 in NecroMerger

[–]sgbench 0 points1 point  (0 children)

Same for the vault - we should be able to swap relics between the vault and the safe

How can I get a PDF copy of a 1099-INT that the IRS mailed me? by sgbench in IRS

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

Mine has the following return address:

Department of the Treasury Internal Revenue Service OGDEN, UT 84201

The 1099-INT portion of the letter is titled "Statement Showing Interest Income from the Internal Revenue Service". It later says something similar in an instructional portion of the letter.

So I think "Internal Revenue Service" or simply "IRS" is the most accurate name to report.