Wallet Recovery – Helps retrieve a private key for a given address

I would like to know if anyone can help me in this situation:
Two years ago, I changed and forgot the password of my Bitcoin Core wallet.
Was so stupid to send my wallet.
There were only two addresses in the wallet, and after a while the coins disappeared, but only one. I saw in the block chain that they were "mixed" or divided, in a way that could not be traced back.
Here's the address they went to: https://www.blockchain.com/btc/address/1PFygtEEhi4spjHJ3DHEBvgVpNp8oBY4A2
Coins from the other address are still in the wallet, and I found my password for the core wallet, but I do not know how to use it for that particular address with the remaining coins.
There are 1.3 BTC in it / 8.30 stolen / but it will be a little relief for me if I can get it.
I also have my original wallet.dat file – so if anyone can help me, I'm very grateful.

Algorithms – When inserting / deleting from a binary tree is efficient and at the same time it is possible to retrieve elements by index

I can not quite figure this out. For example, suppose you have a binary tree in which the left or right node corresponds to 0 or 1, and a group of levels forms a chain that represents the index of the node. So you have 10010, that's 18 in decimal, so index 18 (say, we count from 1 instead of 0).

0 1
0 1 0 1
0 1

We build a binary tree / trie. I am trying to find out if you can delete nodes and add them to the trie without having to rewrite the entire sub-branch to the right of the insertion or deletion position, or if there is a simple few-step operation to turn the branch on insert / Delete so you do not to have to rewrite a large piece of the tree. The reason for this is that you want to keep the position of the nodes. So if you have nodes at positions 6, 7, and 8 and remove node 4, they will get to positions 5, 6, and 7. Do you get this for free Any way, or do you have to rewrite all the positions in the tree? I can not quite see what it would look like and wonder if it would be possible to explain how it would work.

bitcoin core – RPC call to retrieve an unconfirmed wallet-only wallet credit

You can use the … getbalances Command. All wallet-related credits are returned, including the wallet-wallet credits that only track things that are trusted (confirmed transactions and unconfirmed changes), and the unexpanded coin inventory.

Here is the help output for it.

Returns an object with all balances in BTC.

"mine": {(object) matches out expenses the wallet can sign
"trusted": xxx (numeric) trusted account balance (wallet-created or confirmed issues)
"untrusted_pending": xxx (numeric) untrusted pending balance (expenses created by other people in Mempool)
"immature": xxx (numerical) matching of unripe Coinbase output
"used": xxx (numeric) (only available if avoid_reuse is set) Balance of coins sent to addresses previously issued (possibly violating privacy)
"watchonly": {(object) watchonly balances (not present if the wallet does not see anything)
"trusted": xxx (numeric) trusted account balance (wallet-created or confirmed issues)
"untrusted_pending": xxx (numeric) untrusted pending balance (expenses created by other people in Mempool)
"immature": xxx (numerical) matching of unripe Coinbase output

Filter – retrieve the values ​​of certain types of custom fields

I want to retrieve the values ​​of custom fields with different data types separately, with or without the use of advanced custom fields. The ACF forum advised me to use get_fields () and apply a filter for field types, but I stuck with writing code for the filter because the plugin apparently does not support this.

If someone has managed to filter the data retrieved from get_fields () or get_post_meta (), please let me know how you achieved this.

Thank you for reading.

Event Watcher – Retrieve Invoice ID when Invoice is created

Magento version is 2.3.2
I use that sales_order_invoice_register Event to send the invoice ID to the third-party API when creating the invoice.
My code in the watcher is:

$ Invoice = $ observer-> getEvent () -> getInvoice ();
$ orderId = $ bill-> getOrderId (); `
$ bill = $ bill-> getIncrementId ();

I have the order number, but the invoice number is empty.
Does anyone have any idea how to get an invoice number?

.net – What's the best way to save and retrieve paths in C #?

I am revising an old code. The code uses strongly hard-coded file path strings. I am not sure what to do with it and what is generally the best way to save and retrieve file paths.

I have an abstract base class that contains a public string property for each required file path.

public abstract class base
public string Path1 {get; to adjust; }
public string Path2 {get; to adjust; }
public string Pathn {get; to adjust; }

public base ()

I then have several child classes that inherit from this base and set the parent path properties over their respective constructors:

public class child: base
public child ()
Path1 = @ "some  1st-path  file.cs"
Path2 = @ "some  2nd-path  file.cs"
Pathn = @ "some  nth-path  file.cs"

Is there a more elegant way to store and retrieve this type of path data (for example, would it be better for me to save them in a configuration file)?

What is generally considered to be the best course of action for transforming this type of code?

PayPal Checkout API with PHP – securely send and retrieve additional data

I am learning the new API version of Paypal and have some doubts.

Note: I have tried this on https://www.sandbox.paypal.com and it works,
I did not do the tests on Live.

I have to send additional personalized data to Paypal. Once the user has made the payment, I return to a URL on my server and retrieve the data I have sent.

Paypal used pick up() To specify the URL and a json object with the name headers, I add the additional value "called" user identification that I have to recover.

I use the PHP function getallheaders ()to retrieve user identificationthat I have specified.

My questions are:

  1. Is this a correct way to send personalized data to PayPal and then restore it?
  2. It is safe to use getallheaders ()I understand that the headers can be changed before sending. Is there a way that they can be changed?
  3. Use $ _SERVER[‘HTTP_REFERER’]to determine that the website you are looking for is from Paypal, is this still safe or difficult to crack?
  4. Would this be a secure way to integrate Paypal Checkout?
  5. Any recommendation that can give me please.

I would be very happy about your help.




python – How do I use AWS Glue to retrieve batch data in a semi-structured database?

Is it possible to incrementally retrieve data in a semi-structured SQL database using AWS Glue? The data on premise The data that I want to export to the AWS cloud is in a single table, with primary key but without linear incrementation of that key and no insertion date for reference. I have to run one job This process is performed every eight hours and only searches for the new data entered in the table.