How to store and retrieve custom metabox data as json in wordpress api

I am trying to store metabox data as json in wordpress and then get it using wp-json api.

What i tried

$  current = array(   'id' => "in json object",   'name' => 'name in json object' ); $  serializedArray = unserialize($  current); update_post_meta($  post_id, 'ha_basic_information', serialize($  current)); 

What i am trying to achieve {"id": "in json object", "name": "name in json object"}

What i am getting "s:75:\"a:2:{s:2:\"id\";s:14:\"in json object\";s:4:\"name\";s:19:\"name in json object\";}\";"

I want to get data as object in wp-json api. I’ve tried serialize/unserialize, json_encode/json_decode but nothing seems to work. I am new in php and can’t figure it out. there are many questions related to this but nothing seems to work.

Number of nodes in a B-Tree given approximate degree and number of items to store

In Fredman and Willards paper “Surpassing the Information Theoretic Bound with Fusion Trees” They mention that the number of nodes in a B-Tree is $ O(N/B^4)$ , where $ N$ is the number of keys they store in the tree, and $ B$ is the approximate degree.

I am not quite sure how they got this result, reading the original paper on B-Trees, Bayer and McCreight only mention a bound for a tree with height $ h$ , and approximate degree $ B$ , however not one for the number of keys to store. They give the following bound where $ N(T)$ is the number of nodes in a tree $ T\in\tau(B,h)$ . (approximate degree $ B$ and height $ h$ ) $ $ 1+\frac{2}{B}((B+1)^{h-1}-1)\leq N(T)\leq \frac{1}{2B}((2B+1)^h-1)$ $ Is there any way i could go from this, to Fredman and Willards $ O(N/B^4)$ ?

Why are column store indexes disabled automatically when a database is restored?

I have recently done a server migration where we backed up and restored all the databases from a SQL Server 2012 version to SQL Server 2019. However the restored databases appear to all have their column store indexes disabled by default.

Is this expected behaviour? If so, why?

These are archive databases used for selects only, rebuilding every clustered index is going to take a significant amount of time. Any other options?

(sorry, I asked this in the wrong place here. Can that question be removed?)

Is it really that unsafe to store passwords in a text file on my computer?

These days, we have pretty secure systems.
I have a mac with T2 security chip and the whole disk is encrypted via FileVault.
iPhones are known to be pretty secure, with even FBI having a hard time breaking in.
Windows machines can be encrypted with BitLocker or VeraCrypt.
With these kinds of systems, is it really that unsafe to store passwords in a text file? for an average individual user?
Of course if I’m operating a server or anything like that, I would definitely need better security. But I was wondering how much security does and average individual user really need?

What are the ways to store user details in encrypted form in database?

I’m a mobile app developer developing an app that gets input from users like mobile number, email id, and user name. I’m a bit confused about how to select the encryption method like Symmetric or Asymmetric and how to transmit the data from the app to the server.

Since I’m developing an app that will get user information like Mobile number, user name, and password. The App will share the user name and mobile number for other users to discover that person. In that way how should I encrypt the data (Mobile number and username) to store it in the database and how to decrypt it later in the App. I’ll hash the password so no worries in storing the password. The only thing is username and Mobile number.

  • What encryption method should I want to use for this scenario?
  • Which algorithm should I choose Symmetric or Asymmetric algorithm?
  • How to store the encryption key safe in the app?

Where to store private and public keys?

I’m new to backend and currently don’t know best practices of storing sensitive data in safe.

I configured node.js server with JWT. I signed JWT with RSA key. Each time server receive request it verifies integrity of JWT.

For now I have 2 files private.key and public.key. The first file is used for signing JWT and the second one is used for verifing JWT.

So the question is.

Where should I store these keys (files)? Currently, I store them beside the project source files but do not push them to the remote source control system. Whenever I need content of the keys I just use readFileSync so it requires files to be present in the project.

Do I need to encrypt these files too? or…
Do I need to push these files to the remove service and use them via HTTP? or..
Is there any service where I can put my files and use some URL to get access to the files?

Is it legal to post card data from an ecommerce checkout to a PCI compliant ‘store’

Let’s say I want to charge a user’s credit card with their permission after a sale takes place. But, I don’t want to have to ask them their credit card a second time.

Is it legal to store the credit card information as they’re filling it out on the checkout, for say 6 hours or something, on a PCI compliant data store, and then only if they perform the action which lets them know their card will be billed again, then and only then charge it.

And then just delete records of cards after some number of time? Premieum Designed CBD super store website/automated CBD blog


This is a CBD affiliate product website, Earn commissions on hundreds of affiliate products which is actually pretty good since most orders of CBD products average around $ 80 and up. That means commissions of $ 10 to 20 and up on each sale. You only have to join the affiliate programs to activate the product links. After you sign up for the affiliate accounts and get approved I will integrate your affiliate id into… Premieum Designed CBD super store website/automated CBD blog