multi signature – How do Bitcoin balances work when an address is controlled by multiple parties together?

Bitcoin balances conceptually are not like bank account balances, but more akin to banknotes: uniquely identifiable, good for a specific amount, and can only be spent in full. The “account balance” shown by your wallet is simply the sum of funds that the wallet knows how to spend. In the case of your multisig example, if user1, user2, and user3 each have their own wallet but each wallet keeps tracks of the multisig unspent transaction output (utxo) as its own, they would each see it as part of their balance.

Basically, it’s up to the users to decide how to interpret the spendability of their shared funds. The network would enforce that they would only be able to spend the UTXO once in total, though. Alternatively, it’s possible that they share one “watch-only” wallet to track the balance, but each hold their own separate key. In that case this shared watch-only wallet would track the balance only once, but they’d each hold their own key independently.

So, concretely, the users’ balances after the transaction from user4 would be:

user1, pubkey1, 1.1 BTC
user2, pubkey2, 1.2 BTC
user3, pubkey3, 1.3 BTC
user4, pubkey4, 1.0 BTC
{user1,user2,user3}, 2-of-{pk1,pk2,pk3}, 0.4 BTC

Where the last UTXO is controlled by the multi-party address as described and has different spending properties than the individual balances of the the users.

c# – How to get pass multiple models in one view using Razor in mvc?

I have multiple models and my submitRequest is pointing to a DAL(Data-Access Layer) that has a table definition for my fields. I am struggling to save these fields to the access layer. At first was able to save it using one(TbTrainingRegForm only). Hence my form now uses different controls that points each to different models. Please tell me help on my logic below to see where this is not working well on my View.

// Controller
public ActionResult SaveRegForm()
            ViewBag.Message = "Details saved successfull";
            return View(db.TrainingRegs.ToList());

       public ActionResult SubmitRegDetails()
            return View();

        public ActionResult SubmitRegDetails((Bind(Include= "Id, Title, FirstName, LastName, Position, Company, StreetAddress, StreetAddressLine, City, StateProvince, ZipCode,Email, CellNumber, DietaryRequirement"))TrainingRegForm eNtsaTraining)
                eNtsaTraining.Id = Guid.NewGuid();
                return RedirectToAction("SaveRegForm");

            // Validates when empty.
                return RedirectToAction("SaveRegForm");
            return View(eNtsaTraining);
// Data-Access-Layer
namespace eNtsaRegistrationTraining.DAL
    public class eNtsaRegistration:DbContext

        public eNtsaRegistration() : base("eNtsaRegistration")
        }  public DbSet<TrainingRegForm> TrainingRegs { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
// Models
namespace eNtsaRegistrationTraining.Models
    public class TrainingRegForm
        public Guid? Id { get; set; }
        public string Title { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string Position { get; set; }
        public string Company { get; set; }

        public string StreetAddress { get; set; }

        public string StreetAddressLine { get; set; }

        public string City { get; set; }
        public string StateProvince { get; set; }

        public int ZipCode { get; set; }

        public string Country { get; set; }

        public string Email { get; set; }

        (Required(ErrorMessage = "This field is required"))
        public string CellNumber { get; set; }
        public string DietaryRequirement { get; set; }

    public class RegViewAndRoleViewModel
        public DietViewModel DietMain { get; set; }

        public TrainingRegForm RegForm { get; set; }

        public DropDownViewModel ListCountries { get; set; }
        public RegistrationTrainingForm HomeModel { get; set; }
        public RoleViewModel RoleViewModelData { get; set; }

// View
@using eNtsaRegistrationTraining.Models
@model RegViewAndRoleViewModel
    ViewBag.Title = "SubmitRegDetails";
@using (Html.BeginForm("SubmitRegDetails", "Home", FormMethod.Post))


Design choice: Using kafka for application logging 1 topic vs multiple topics

I’m planning on having multiple applications switch to using kafka as the main place to push logs to asynchronously, where a downstream application will consume those logs and load them somewhere for storage. I’m debating whether I should have 1 topic (multiple partitions) where each application will push logs to or have multiple topics (1 for each application). Are there any design considerations that would potentially make one option more suitable than the other? I like the idea of using 1 topic for all applications with multiple partitions, that way I don’t have too many topics or have to create new topics when an application is added.

dnd 5e – Can a Readied Action be used multiple times in the same round if you have multiple reactions?

RAW: Unclear

The rules for this are in the PHB, which mostly deals with PCs, which in turn usually can’t get multiple reactions (the only ways which can grant you multiple reactions tend to be limited to attacks of opportunity, and even those were only written after the PHB was released).

As such there is no language explicitly limiting the trigger to only be able to occur once in a round, even though I suspect that it is the intended reading. I find saying “the rules don’t explicitly say you can’t, so you can” not to be a useful guiding principle so I’d say the RAW isn’t clear on this.

RAW probably doesn’t matter in this case

If you decide your Marilith is picking up a longbow and shooting people with it you’re already moving beyond a literalist RAW reading, as of course shooting things with a longbow is not listed in the creature’s statblock. This is not a big variation and perfectly in your purview of things to do as a DM, but you have to decide on what the consequences here are. For example, does it still get a Multiattack? If so, how many? Maybe it only gets 3 shots because it needs two arms for each bow? Similarly, the multi reaction thing was very probably themed after it using its many arms with one handed weapons; Does that still even apply if it uses bows instead? Should it still work even if it is using only one bow?

At this point what you need to realise that you are effectively homebrewing a slightly different creature with a slightly different statblock, and it’s on you as a DM to figure out how it should work. There isn’t that much helpful RAW guidance for you here. NPCs aren’t bound by quite the same rules as PCs to begin with, you should just make sure that whatever you do it makes sense in fiction so your players can know what to expect from your description of events.

dnd 5e – Can Living Gloves combined with Remove Curse be used to gain access to multiple artisan tool skills?

Yes, you can un-attune with remove curse, but you lose the proficiencies you had from the gloves:

While attuned to these gloves, you gain one of the following proficiencies

So you can un-attune, re-attune and choose a different proficiency, but you cannot benefit from multiple artisan tool proficiencies at the same time in this way.

This does allow you to more or less change your artisan tool proficiency at will, the only consumed resources are spell slots and time to attune.

Multiple consecutive newlines in Json text translates to question mark in SQL SERVER using JSON_VALUE

I have some Json documents in a table where some of the fields have copy/paste text from Word documents with tabs and newlines. One example had 4 newlines in a row and I can’t figure out why SQL is translating the way it does or what I should do about it. Here’s a quick sample:

declare @json nvarchar(50) = '{"text": "n​nnnStart"}'
select JSON_VALUE(@json,'$.text')
select STRING_ESCAPE(JSON_VALUE(@json,'$.text'),'json')

The first select returns ? Start and the second returns n?nnnStart.

My plan was to use STRING_ESCAPE and then do a replace on the “n” but that question mark is throwing things off. Any idea why that is happening and if I can stop it from translating that way?

Is there a way to copy a selection spanning multiple rows, and paste them as merged cells spanning two rows each, in Google Sheets?

I’m going to be honest; my biggest issue is describing what I wish to accomplish. I can’t find the right word for it, so the title might not make a lot of sense. But the pictures should be clear,

I want to take this sheet:


Perform some operation, and end up with this:


Currently this takes a lot of effort, particularly for large amounts of values. I first have to move each row down to get white rows between each row with values, and then merge them individually. Takes a lot of clicks, and I do this semi-regularly. If there is an extension that does this, or a way to do this less laboriously, I would be very happy.

java – Multiple Interstitial Ad unit in all activities

Recently, I’ve received an email from Google AdMob telling me that my Ads serving has been limited due to invalid traffic, in my app I use only a one interstitial Ad unit for all activities, and I show the ad as below :

public class AdmobHelper {
private InterstitialAd mInterstitialAd;
private AdRequest mAdRequest;

public AdmobHelper(Activity activity) {
    mAdRequest = new AdRequest.Builder().build();
    mInterstitialAd = new InterstitialAd(activity);

public void showInterstitial() {
    mInterstitialAd.setAdListener(new AdListener() {
        public void onAdLoaded() {
            if (mInterstitialAd != null && mInterstitialAd.isLoaded()) {

It’s possible the issue happened because I use one Ad unit in all activities?

magento2 – magento1 migrate to multiple magento 2 stores

Anyone knows what happen for all the migrate changes tables in m1, if I want to start migration to a new m2 store.

E.g. I migrated m1 data to the first m2 store and all the deltalog tables (with prefix m2_cl_*) and triggers (for tracking changes) have been created in the M1. Now I want m1 data to migrate to an another m2 store. What will happen will all the deltalog tables and triggers. Will they be dropped and recreated? I use Magento data migration tool.

unity – Having multiple different friction values on a single piece of track?

I am trying to figure out a good/performant way to give a piece of track multiple values of dynamic friction. A track piece is 10×10 units in Unity and the idea is to puzzle them together to a big track like the tracks in Trackmania. The game itself features no acceleration, except from gravity. To make things more interesting I want to give each track piece at the start of the scene multiple random friction values within a given range.

Currently I achieve this by making each piece of track consisting of 100 little tiles which are 1×1 units and they get a random friction values assigned. This approach works somewhat fine as long as there are less than 30 to 40 track pieces(3000-4000 tiles) but with more than that the fps are dropping really low. As it is a racing type of game I had to set the “Fixed Timestep” in the project settings to 0.001 to get accurate time measurments and this is hurting the performance as well. With a lower timestep the collision detection with all the little tiles is really bad too.

Is there a more elegant and/or performant way to achieve this in within the unity physics system?