How does the network's difficulty affect the average block mining time when there is static hash performance?

The frequency with which you find blocks depends entirely on your own hashrate and network difficulties, nothing else.

The overall network hashrate affects the difficulty with a delay, which in turn affects your block-finding rate. However, this is the only effect.

Dealing with property-level permissions in DDD and should the UI or authorization affect the domain model?

Suppose I have a command like the following:

public sealed class UpdateExampleCommand
    public int Field1 { get; set; }
    public string Field2 { get; set; }
    public bool Field3 { get; set; }
    public double Field4 { get; set; }
    public DateTime Field5 { get; set; }

There is a permission that determines if the user can do this UpdateExampleCommand, This form of authorization is very simple and can be treated as a cross-cutting issue by checking the user's permissions in a decorator before declining or accepting the command.

However, there are also permissions that determine whether a user can edit certain fields that have been modified by the user UpdateExampleCommand,

e.g. A user needs the Can_Edit_Field_3 Permission to make changes Field3the value, Can_Edit_Field_4 Permission to make changes Field4, and Can_Edit_Field_5 Permission to make changes Field5,

Solution 1
Would this qualify as business logic and belong in the overall root like below?

public void UpdateExample(int field1, string field2, bool field3, double field4, DateTime field5, Editor editor)
    // Protect invariants
    // ...

    // Perform updates
    Field1 = field1;
    Field2 = field2;

    // Editor is a value object encapsulating the user permissions.
    // It is created in the command handler based on the user context
    // and passed into the aggregate root's method.
    // There are several other permissions like this that aren't strictly
    // bound to roles, so I can't use an approach like the "CollaboratorService"
    // from the IDDD book which performs an implicit permission check
    // by creating a Moderator, Author, etc. role object if the current
    // user has that role.
    if (editor.CanEditField3) Field3 = field3;
    if (editor.CanEditField4) Field4 = field4;
    if (editor.CanEditField5) Field5 = field5;

Solution 2
Or is it preferable to create separate methods in the aggregated root directory and check the permissions in the command handler before invoking the appropriate method?

public async Task Handle(UpdateExampleCommand request, CancellationToken cancellationToken)
    // Load aggregate
    // ...

    entity.UpdateExample(request.Field1, request.Field2);

    if (user.HasPermission("Can_Edit_Field_3"))

    if (user.HasPermission("Can_Edit_Field_4"))

    if (user.HasPermission("Can_Edit_Field_5"))

    // Save aggregate
    // ...

Solution 3
Or should I create several different commands, each with its own permission decorators?

e.g. UpdateExampleCommand. UpdateField3Command. UpdateField4Command. UpdateField5Command

This would extract all the permission problems from the handlers and models, so the code would be cleaner and easier to reason, but would incur a loss of performance because the aggregate would be loaded several times for a single process (it could be loaded 8) times in this example, if the Authorization Decorator also needs to check the status of the aggregate, and the responsibility for issuing the correct commands would be transferred to the application client.

Ultimately, I'm not sure what impact the business processes modeled by the domain should have.

The command was originally converted to a single command because the UI is structured and the business generally works. However, if the UI can affect the domain model, it causes the authorization logic to enter the domain model.

Allowing permission issues to affect the domain model (separating the single command into multiple commands) will make the code cleaner, but the business process may be less meaningful because the application client must call the commands in the correct order.

Is there a general rule of thumb for these situations or is there another way to do this that I am missing?

dnd 3.5e – Do potions affect the undead?

Do potions affect the undead?

In particular, I look to see if a zombie child can benefit from Amaranth Elixir (from the Bondage City Adventure Path), which provides a bonus of improvement in strength and damage to wisdom. However, I plan to treat Amaranth Elixir as a potion, so I think this question generalizes.

I can not find anything fast, suggesting that undead are not potions, but I have the unshakeable intuition that this should not work …

dnd 5e – If the PC statistics increase due to an item that has no other effects, does this affect other statistics?

Thank you for giving an answer to RPG stack exchange!

  • Please be sure too answer the question, Provide details and share your research!

But avoid

  • Ask for help, clarification or answering other questions.
  • Make statements based on opinions; Cover them with references or personal experience.

Use MathJax to format equations. Mathjax reference.

For more information, see our tips for writing great answers.

Device damage – Does a large scratch in an ND filter affect image quality?

I've found that a used 10-stage ND filter is sold in exactly the size you want at a price of 15% of a new filter, except on delivery it's 21% of the price of a new filter on delivery.

The catch? It has a scratch that starts roughly in the middle of the filter and ends near the edge. The length of the scratch is 1/3 of the filter diameter. The scratch thickness is very thin, so the area it covers is infinitesimal (so I do not think that would affect the 10-level rating of the ND filter at all). It is still visible immediately, if you see the filter, so a fair scratch.

Does such a scratch affect the picture quality in any way? I understand that you can scratch the front lens element badly and the image quality is acceptable in most cases. Does that also apply to ND filters?

I will not use the filter if the sun is included in the picture. In addition, I will use a lens hood with the filter. But I may use the filter at 1:22, and with such a small aperture, scratches may be visible that are invisible at about 1: 5.

At an affordable price, the inner voice in my head says "GET IT !!!" But is there anything I do not understand about the condition of the filter?

How do additional budget amounts affect metrics?

I want to analyze what additional expenses (1,000, 5,000, and 10,000) affect my account, and I'm at a loss as to how to calculate everything together. I've retrieved the last 4 months of data in an Excel spreadsheet and added additional columns for Available Impressions, Incremental Impressions, Incremental Clicks, Incremental Cost, and Incremental Conversions.

For example, the current account budget that I work with every month is $ 22,780. I would like to know what metrics / performance would look like if we were to spend $ 22,780, $ 26,780, and then $ 31,780 (in increments of $ 1,000, $ 5,000, and $ 10,000), based on my historical data over the past four months. I currently use the following formulas:

Incremental Impressions = Available Impressions * IS Lost (Budget)
Incremental Clicks = Incremental Impressions * Stable CTR
Incremental Cost = Incremental Clicks * Stable CPC
Incremental Conversions = Incremental Clicks * Stable Conversion Rate

Can someone help me and explain how to get incremental conversions, impressions, clicks, IS, etc.? I'm not even sure we can calculate a part of it. I know that these are overall estimates, but any insight into them would be extremely helpful! Thanks a lot!