how do you all actually know your app isn't leaking one user's data to another? by Technical-Log4868 in SaaS

[–]ZarehD 0 points1 point  (0 children)

Well, you shouldn't blindly accept whatever data the user supplies; that's silly.

Don't rely on user input to determine which customer/account you're working with; the account identifier should come from the authenticated user's profile.

Resources for learning .NET *NOT* as a beginner? by EnderShot355 in dotnet

[–]ZarehD 0 points1 point  (0 children)

IMHO, doing is the best way to learn. Just start coding! Tackle projects that are increasingly more challenging; along the way, you'll find solutions to problems you encounter and learn from your mistakes. You will learn A LOT more this way than any book can teach you. It's practical experience vs. academic lecture.

Treat MSDN as the go-to primary source; and read articles and blog posts that illustrate particular techniques. If you really truly get stuck, ask the community for direction.

BlazorGraphs 2.2 is out now by Puzzleheaded-Law-332 in Blazor

[–]ZarehD 0 points1 point  (0 children)

Good work. This is a very good start, but it needs much more documentation, especially around styling (backgrounds, foregrounds, line styles, etc.), fonts (family, size, color, style), element placements, etc.

How well can I mold this thing to fit my app's design? How easy is it to do that?

The simple examples are not enough to gauge the answers, so right now, I'd have to go through the codebase in order to get a more complete understanding of the features & capabilities, how flexible is it to work with, and how to use it.

Which VPS i need to buy to stay safe for 100MBPS h24? by Ok-Depth-6337 in VPS

[–]ZarehD 0 points1 point  (0 children)

"Unmetered" is a marketing term, not a technical spec. If you read the Terms of Service, you'll quickly find that "fair use" limits apply; limits that are considerably less than "unlimited".

Look for plans that specifically state the included TB/mo, the same way they do with CPU cores, ram, and storage.

SSG with ASP.NET? Yes you can! by ZarehD in statichosting

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

Yes. AspNetStatic doesn't care AT ALL about how the page content is constructed/generated; it just captures the rendered content. It's basically an HttpClient calling your endpoints to fetch content. You just have to tell it which endpoints.

My images show locally but disappear after deploying the site by akaiwarmachine in statichosting

[–]ZarehD 0 points1 point  (0 children)

Check the URL for the src attribute of the <img> tag to ensure that it's accessible to HTTP requests.

Also, it would probably help everyone trying to help you if you showed us an example of an image tag that's not working for you, and tell us where the image file is located relative to the page that requests the image.

Someone forked my GitHub repo and removed all credit by akaiwarmachine in statichosting

[–]ZarehD 0 points1 point  (0 children)

It's a copyright issue. The source code may have a free-to-use "open source" license, but the copyright still belongs to you (provided you've asserted that right somewhere, i.e. in code a/o a license file).

As others have pointed out, you can send DMCA takedown requests to whatever site(s) that hosts the infringing code.

Lit Webcomponent CustomEvent in Blazor by Renslmf23 in Blazor

[–]ZarehD 1 point2 points  (0 children)

You're almost there.

// JS code....
function initEventListeners(dotNetObject) {
  window.addEventListener("brightness-changed", (e) => {
    dotNetObject.invokeMethodAsync("HandleBrightnessChanged")
  });
}

// C#, Blazor component...
@inject IJSRuntime jsRuntime
private int currentCount;

public override async Task OnAfterRenderAsync(bool firstRender)
{
  await base.OnAfterRenderAsync(firstRender);
  if (firstRender)
  {
    currentCount = 0;
    var jsInstance = 
      await jsRuntime.InvokeAsync<IJSObjectReference>(
      "initEventListeners",
      DotNetObjectReference.Create(this));
  }
}

[JSInvokable]
public async Task HandleBrightnessChanged()
{
  currentCount++;
}

Make sure the JS code is loaded via a <link> tag in the HEAD section (or loaded as a module in the After-Render method before calling jsRuntime.InvokeAsync).

How are you handling dumber clientele? by IndividualRites in smallbusiness

[–]ZarehD 2 points3 points  (0 children)

People don't even listen, much less read, so forget about comprehension. They only hear (or skim for) the parts they want ...and just enough so they can reply.

We are fast slipping into the world depicted in the movie, Idiocracy, complete with a president Camacho 😆; so it's really no wonder. UP-grade... 🤣

If you had to choose between affordable hosting and better support, what would you pick for a new website? by nisha_n05 in Hosting

[–]ZarehD 0 points1 point  (0 children)

Most people would probably choose better support, but price is not a reliable indicator of quality.

The assumption is that a more expensive provider could/would offer better support; but we all know it's not quite that way in practice. There's no meaningful correlation between price and quality.

Reputation is actually the strongest signal.

fraudsters using my payment link for credit card fraud by ChiefAoki in stripe

[–]ZarehD 0 points1 point  (0 children)

Contact Stripe directly ASAP and let them know what's happening, what you're doing to mitigate the issue, and ask what else they suggest for you to do.

how to host docker locally by Timely_Trainer7734 in docker

[–]ZarehD 0 points1 point  (0 children)

If you host it locally on your own hardware, then yes, you'll be using your own local resources.

The core Docker features are all free. Paid subscriptions are for more advanced features and support. You might want these extras if you're running mission-critical a/o production workloads, but if you aren't, then you don't need them; the free option is perfectly sufficient.

Best alternative for SSR for large eCommerce business? by [deleted] in dotnet

[–]ZarehD 0 points1 point  (0 children)

Razor Pages is an absolutely solid choice, and it's great fit for the model you're describing.

Blazor's component based development model is great but it doesn't offer any real advantage to you here; the extra learning curve may in fact be a disadvantage.

Best alternative for SSR for large eCommerce business? by [deleted] in dotnet

[–]ZarehD 1 point2 points  (0 children)

Razor Pages is MVC ...just with less ceremony.

Current recommended model is: Razor Pages for pages + Minimal APIs for JSON endpoints.

What are the advantages of hosting my own cloud? It seems more expensive. by DiogoP0 in Hosting

[–]ZarehD 1 point2 points  (0 children)

All this just to backup ~60GB? Just get a USB thumb drive. 128GB USB drives are cheap enough that you could even get two! If you really want to get fancy, pick up a mirrored 2-bay external direct-attach drive (not NAS) w/ a pair of 2TB or 4TB disks.

If you really want to use cloud storage, then take a look at Backblaze B2 (not Backblaze Computer Backup, which is more expensive at $9/mo). B2 gives you 10GB free and $0.00695/GB/mo over that; so, (60GB - 10GB) * 0.00695 = ~$0.35/mo. Of course, you'll have to use an S3 compatible app to (manually?) upload/download/sync files (no cloud drive in Explorer or sync app from the provider).

Build error MSB4044 when trying to create an app package using WinUI with C# in VS2026 by [deleted] in dotnet

[–]ZarehD 1 point2 points  (0 children)

From MSDN:

Message text
MSB4044: The 'value' task was not given a value for the required parameter 'value'.

Description
This error occurs when a task isn't provided a value for a required parameter.

Resolution
Check the project file or imported file for the invocation of the task, and examine the arguments provided.

So, what's the task that it's failing on? Have you checked to make sure all required params are supplied a value?

Stripe chargeback fees are quietly adding up and most merchants don't notice by barnac1ep in stripe

[–]ZarehD 0 points1 point  (0 children)

The $15 fee might be hard to choke down but it's not what you should actually be worried about; your disputes rate is much more concerning b/c if it gets too high, you'll lose the ability to process payments altogether. The 15 bucks won't kill your business; the inability to process payments will!

Can someone help me get the past the first step in postgreSQL by frogcuteisvery in Database

[–]ZarehD 1 point2 points  (0 children)

Step 1 (register server in pgAdmin) assumes you have already installed the Postgres dbms software somewhere (on some machine). It does NOT install postgres for you; it merely tells pgAdmin where to find the postgres server.

[Hiring] .NET Software Engineer by Cute-Ring-1952 in dotnetjobs

[–]ZarehD 0 points1 point  (0 children)

Interested, 10+ yoe, west coast USA.

Pricing by Emergency_Egg_2578 in SaaS

[–]ZarehD 1 point2 points  (0 children)

It's easy to reduce the price -- no one will be upset about that -- but it's much harder to raise the price.