raw – Canon DPP 4 – copy / apply white balance settings

I have two photos taken with the configuration of automatic white balance (AWB) in artificial light conditions. I like the way the camera rated the white balance in the image with a white paw, I like the color green, etc.

enter description of image here

The second image is reddish. I tried to move the micro adjustment slider 7 points to green, but I don't like it as much as the first photo with the default settings.

enter description of image here

I need to know how to copy the white balance settings and apply them to another file. I only found the option to save the "click on white balance" profile. If DPP 4 cannot, is there any third-party software that can do it?

bitcoin core – How to sign a raw transaction with multiple entries

What is the procedure for signing a raw transaction with multiple entries, I have some doubts, here is what I do:

Step 1
I start by serializing 1 unsigned tx for each entry.

INPUT 1

02000000 // Version
2ee0845e  // Timestamp
02 //In Count
d444d165b2aa04fcf9074eb1a0e5b6d528663a80d1732092f5a62fbdb175378c
00000000
19 // Sig Length
76a914c29b169112aa249e5ada916d8e259ed7d16cf58688ac // Temporary Sig
ffffffff
f6dd8d85c831a2f196cc5e4c43792bf25a6d2b119d59b8f430edaa8d20dedc5c
00000000
00 //Empty Sig
ffffffff
02
7485010000000000
19
76a91451e9f768d4ca9a7a36084b0138a154d0b98b53c688ac
6400000000000000
19
76a91451e9f768d4ca9a7a36084b0138a154d0b98b53c688ac
00000000
01000000

INPUT 2

02000000
2ee0845e
02
d444d165b2aa04fcf9074eb1a0e5b6d528663a80d1732092f5a62fbdb175378c
00000000
00 // Empty Sig
ffffffff
f6dd8d85c831a2f196cc5e4c43792bf25a6d2b119d59b8f430edaa8d20dedc5c
00000000
19
76a914c29b169112aa249e5ada916d8e259ed7d16cf58688ac //Temporary Sig
ffffffff
02
7485010000000000
19
76a91451e9f768d4ca9a7a36084b0138a154d0b98b53c688ac
6400000000000000
19
76a91451e9f768d4ca9a7a36084b0138a154d0b98b53c688ac
00000000
01000000

2nd step For each entry, I double sha256 and then the reverse.

Stage 3 I sign each hash:

6b4830450221008d998e1d6c91ef14d76934a818731d58328ad97ed2c78f092d86750da5d28635022013d827ca2ab96bd8e7f069cffb6b80def6f4243a9dcca54e730de5d05306d03e0121036bc7427b751bd05d172178dbe3193f02a57615cdd8e079ad46bde44b5a96379e

6a47304402202569958de7a0d45052e651ed7b5c97b8d6bb04deef5d588099026a1298a18a0802204339ae2438436b2d90cdbd41cd1d19028ddfc8eaa490298e0a1c93d33da608640121036bc7427b751bd05d172178dbe3193f02a57615cdd8e079ad46bde44b5a96379e

Step 4 I serialize the final transaction:

02000000
2ee0845e
02
d444d165b2aa04fcf9074eb1a0e5b6d528663a80d1732092f5a62fbdb175378c
00000000
6b
4830450221008d998e1d6c91ef14d76934a818731d58328ad97ed2c78f092d86750da5d28635022013d827ca2ab96bd8e7f069cffb6b80def6f4243a9dcca54e730de5d05306d03e0121036bc7427b751bd05d172178dbe3193f02a57615cdd8e079ad46bde44b5a96379e
ffffffff
f6dd8d85c831a2f196cc5e4c43792bf25a6d2b119d59b8f430edaa8d20dedc5c
00000000
6a
47304402202569958de7a0d45052e651ed7b5c97b8d6bb04deef5d588099026a1298a18a0802204339ae2438436b2d90cdbd41cd1d19028ddfc8eaa490298e0a1c93d33da608640121036bc7427b751bd05d172178dbe3193f02a57615cdd8e079ad46bde44b5a96379e
ffffffff
02
7485010000000000
19
76a91451e9f768d4ca9a7a36084b0138a154d0b98b53c688ac
6400000000000000
19
76a91451e9f768d4ca9a7a36084b0138a154d0b98b53c688ac
00000000

The problem I have

I receive this during the broadcast of the TX: mandatory-script-verify-flag-failed (Signature must be zero for failed CHECK(MULTI)SIG operation)

What am I doing wrong ?, Should I put the SigHashType at the bottom of each TX 01000000, exactly what I need to put on the temporary Sig, I put my Hash public key script

Unable to send raw Bitcoin Core 0.19.1 transaction – script verification flag not required (signature must be null for SIG CHECK (MULTI) operation failure)

I wanted to send a raw testnet transaction and I did it as in the bitcoin documentation, but I still get this error:

script verification flag not required (signature must be null for failed CHECK (MULTI) SIG operation) (code 64) (code -26).

What am i doing wrong?

  1. I take a transaction from my listunspent
{
    "txid": "8ee71fee9e4706100c09fb2da4c3ccdac1a4475981bd893ba1eba9417947abff",
    "vout": 0,
    "address": "2Mw44JvAhBs4hgh5bT3gP2NgbhTbVwngW1m",
    "label": "",
    "redeemScript": "00143b88811e01b3efaa0bcd9da16ef85ef3a1583349",
    "scriptPubKey": "a91429c3d920cd18e34db9035c4322474aae4465792187",
    "amount": 0.02641617,
    "confirmations": 16197,
    "spendable": true,
    "solvable": true,
    "desc": "sh(wpkh((8939dfa5/0'/0'/8')02a44b3dd2f0964048265982156f668c037dfabc140eb98f292dbb723d28b85261))#husuy9tw",
    "safe": true
}
  1. Then I create a raw transaction from this:
createrawtransaction '({"txid":"8ee71fee9e4706100c09fb2da4c3ccdac1a4475981bd893ba1eba9417947abff","vout":0})' '{"2NCH5HXBwfHegFEUTNrkSKzyYTnTYQKDUjU":0.02}'
  1. Dumpprivkey

  2. And sign the transaction like this

signrawtransactionwithkey '0200000001ffab477941a9eba13b89bd815947a4c1daccc3a42dfb090c1006479eee1fe78e0000000000ffffffff0180841e000000000017a914d0c3f50336b5f109207d722c692191ff86263e968700000000' '(" $privKey ")' '({"txid":"8ee71fee9e4706100c09fb2da4c3ccdac1a4475981bd893ba1eba9417947abff","vout":0,"scriptPubKey":"a91429c3d920cd18e34db9035c4322474aae4465792187","redeemScript":"00143b88811e01b3efaa0bcd9da16ef85ef3a1583349","amount":0.02})'

{
  "hex": "02000000000101ffab477941a9eba13b89bd815947a4c1daccc3a42dfb090c1006479eee1fe78e00000000171600143b88811e01b3efaa0bcd9da16ef85ef3a1583349ffffffff0180841e000000000017a914d0c3f50336b5f109207d722c692191ff86263e968702473044022010c174b3306cac5ca8ddbb6eadf0de2299c2a216ade25088290c17880aa5bd60022017bc9de608e7ff59ffa09a6a60d848875d37edfc4a4b687f0eb94d4c2cd11b4f012102a44b3dd2f0964048265982156f668c037dfabc140eb98f292dbb723d28b8526100000000",
  "complete": true
}

But when I want to send a raw transaction

sendrawtransaction 02000000000101ffab477941a9eba13b89bd815947a4c1daccc3a42dfb090c1006479eee1fe78e00000000171600143b88811e01b3efaa0bcd9da16ef85ef3a1583349ffffffff0180841e000000000017a914d0c3f50336b5f109207d722c692191ff86263e968702473044022010c174b3306cac5ca8ddbb6eadf0de2299c2a216ade25088290c17880aa5bd60022017bc9de608e7ff59ffa09a6a60d848875d37edfc4a4b687f0eb94d4c2cd11b4f012102a44b3dd2f0964048265982156f668c037dfabc140eb98f292dbb723d28b8526100000000

non-mandatory-script-verify-flag (Signature must be zero for failed CHECK(MULTI)SIG operation) (code 64) (code -26)

I have tried with a lot of transactions but I can't send it and I can't see what I'm doing wrong. Normally, the Bitcoin Core send button works fine.

separate witness – get the public key to any raw transaction – what to worry about?

I have summarized some popular payment types in my book "Grokking Bitcoin". There are 6 types of standard payment:

p2pkh: Public payment key hashing. The public key is the second (last) element of scriptSig.

p2pkh

p2sh: Pay-to-script-hash. The public key (s) are grouped in the redemption script which is the last element of scriptSig. To get them, you need to analyze the redemption script (which is itself a script) and look for key patterns (33 byte push).

p2sh

p2wpkh: Pay-to-witness-public-key-hash. The public key is located in the witness of the transaction. Specifically in the second element of the control field with the same index as the entry you are studying (the control contains a control field for each entry. There is only one control field in this example, because there is only one entry).

p2wpkh

p2wsh: Witness payment script hash. The public key (s) are grouped in the witness script, which is the last item in the corresponding witness field of the entry. To get them, you need to analyze the witness script (which is itself a script) and look for key patterns (push of 33 bytes).

p2wsh

p2wpkh nested in p2sh: The pub key is in the same place as in p2wpkh.

p2wpkh-nested

p2wsh nested in p2sh: The pubkey is in the same place as in p2wsh.

enter description of image here

I hope it helps

wp query – Modification of the raw data $ _POST at the beginning of the life cycle

Is there a specific plugin way to modify superglobals directly before using them? Assuming that the following code was in a plug-in called aaa, one would imagine that this would run quite early in the request lifecycle. During the execution of the code, when other plugins use the data, they have not been modified.

// file location: wp-content / plugins / aaa / aaa.php

function interfere_with_things(){

    // skip anything not applicable
    if($_SERVER('REQUEST_METHOD') !== 'POST' || empty($_POST('something'))){return;}

    // change something in the $_POST
    $_POST('something') = str_replace('cats', 'dogs', $_POST('something'));

}

add_action('init', 'interfere_with_things', 1);

nikon – How to convert JPEG to RAW in Photoshop or similar?

You cannot (should not) produce a crude from a jpeg. Theoretically, this would be possible because the compressed NEF is based on a TIFF container and a "large" JPEG / JFIF IIRC variant.

And all is not lost because, after having organized this kind of competitions, I can say that you can always participate according to the type of competition and why they want raw files …

The requirement may be there because the contest is for unmodified images – this is common with photojournalism contests where only general or minor changes are allowed.

More likely, the requirement is there to discourage cheating, which has plagued the amateur / competitive world. Assuming everyone takes raw photos (and some people don't – and no, I never understood that), organizers often allow you to provide the original unmodified jpeg on which you based input because actual inputs are usually requested at a specific pixel size.

Some organizations post such requirements under the guise of “ quality '', although this is mainly false because (even now) few devices are able to go beyond 8 bits per channel. From my observation, it is mainly to keep "beginners" at bay. From experience, I have seen many events request a 24/48 bit lossless RGB TIFF for display then on a horrible DLP projector that does not have the tonal response to make a calibration worthy of. # 39; be tempted (if they had attempted one, which is much less likely than you might think).

In any case, even if the rules are listed, they are generally aimed at maintaining fairness and will have a reservation that the organizers have discretionary power over submissions. You must contact the organizers and explain to them that your original has been shot in JPEG as they can always allow you to enter.

And good luck in the competition!

Bitcoin Testnet API that allows transaction search and raw transaction submission

I am looking for a well-developed, maintained and stable API for accessing testnet bitcoin. Something like Infura for Ethereum. Searching on Google yields many results, but can someone tell me what is really being used?
Right now BlockCypher is the best, but can I really trust it?
It would be nice if the API was free, but it is not necessarily the case.
Cheers

What math operation does the raw exposure slider in Photoshop? And how does it differ from adjusting the exposure when the file has been opened?

If I open a raw file in Photoshop without changing the raw exposure and compare it to the same file with a change in raw exposure of -0.2; when i inspect the linear values, it looks like a different math operation has been applied to each pixel. What is he actually doing? I expected a linear scaling. If I then use the adjustments-> exposure to +0.2 I do not return to the same values ​​why?

What do each of these exposure adjustments do?

separate witness – Can I create a raw segwit transaction without any segwit entry?

I am trying to build a segwit transaction between a regular p2pkh address and a p2sh 2-of-2 multi-signature address. I have managed to go back and forth between these two addresses before (Testnet), but now I want to implement a segwit transaction. However, when I try to broadcast the transaction, it says "unexpected witness payload for a non-witness script ..". I see the default cookie field as "b & # 39; x00 & # 39;".

By documenting myself further on the subject, I found that "If all of the txins in a transaction are not associated with any cookie data, the transaction MUST be serialized in the original transaction format, without marker, indicator and witness ".

Does this mean that in order for me to test my segwit code, I will have to wait until I have a segwit entry in one way or another?

Here is my transaction hex:

01000000000102575307b5cd2a1364c48501434790c0e83c22a16a4b5a902b62e46a34bca06a81000000006b483045022100e07aeaa18e08dedbeebfa7c7299dad2a5dd18df0b31af2f654f2a139d5c6f3900220286b641f4a444d23c952cded85939177abbc7510f909f156fadef5399e20dbe8012103e07f96e5ba598431c0c994493a4ae988c9854c171d5d4bb140db0a27a4c853e4fffffffff53d3533ab79d8425526a7378c91a718e8b526ca32e317b4193333949c261ec9000000006a4730440220780a21e18feeddecb6ca999370fe76a8b612dbaca18ea1249bc312da32f4534c02207342a4d9daea5bbc314e1965f952fbc7fcfcfa5b3b208efc9f2fe0f380afa39b012103e07f96e5ba598431c0c994493a4ae988c9854c171d5d4bb140db0a27a4c853e4ffffffff02102700000000000017a914c104b576f5436309587aefa3ddddd5c295b904808702db1d00000000001976a91452903efc1004de01883ba3687be2a8ea4f6b1b1988ac0100010000000000

pathfinder 1e – A friend wants to add a second magic effect to his belt, is there a RAW situation for that?

Yes, this is allowed, but combining items is generally more expensive than making a separate item

The rules for creating magic items in Pathfinder allow you to improve an existing magic item with new abilities:

Sometimes the lack of funds or time makes it impossible for a magical craftsman to create the desired item from scratch. Fortunately, it is possible to improve or rely on an existing magic object. Only the time, gold, and various prerequisites required for the new ability to be added to the magic item restrict the type of additional powers that can be placed.

The cost to add additional abilities to an item is the same as if the item were not magic, minus the value of the original item. Thus, a +1 long sword can be transformed into a +2 vorpal long sword, the cost of its creation being equal to that of a +2 vorpal sword minus the cost of a +1 long sword.

If the item is an item that occupies a specific place on a character's body, the cost of adding any additional ability to that item increases by 50%. For example, if a character adds the power to grant invisibility to their +2 protection ring, the cost of adding this ability is the same as creating an invisibility ring multiplied by 1.5.

Adding more magic to an existing element can be quite simple or very mathematical. If the item's current and proposed abilities follow normal pricing rules (especially with weapons, armor, and shields), adding the new abilities is to subtract the old price from the new price and how many days it takes to make a difference.

(…)

For most other items, GMs should use the different abilities rule to determine the item's new price: increase the cost of the new ability by 50%, add it to the total price of the item. object to get the new price. Then subtract the old price from the new price to determine the difference and determine how many manufacturing days it takes to cover the difference.

In this case, we are combining different capacities rather than simply improving an existing capacity, so by following these guidelines, the base price of adding the properties of one +2 belt of incredible dexterity has a heavy belt is 6,000 gp (4,000 gp * 1.5), and the resulting element would be worth a total of 8,000 gp. As the price difference is 6,000 gp, the craftsman performing the upgrade will need 3,000 gp of materials and 6 working days, just as if he were creating a separate item with a base price of 6,000 gp (and, of course, it must meet all the prerequisites for developing a belt of incredible dexterity as usual). If you need to hire an NPC to do the job, they should probably charge for what they would normally do to make a 6000gp item from scratch.

However, you can note that if they did it the other way around – by adding the properties of a heavy belt to an existing belt of incredible dexterity – these guidelines suggest a slightly cheaper final price: 4,000 gp + 1.5 * 2,000 gp = 7,000 gp. A generous DM could allow the use of the cheapest order to determine the final price, and then the price difference is only 5,000 gp (7,000 gp – 2,000 gp).