How much Electricity does your Air Conditioner Consume?

Find out here in my tests using an energy meter.

rest api – How to consume an extended api within wordpress with woocommerce?

I would like to know if with wordpress, using woocommerce, I can set up a quote page using an external api rest.

In this case, the return of the page would be according to the fields filled in the form, the quotation would be returned from the api.

If so, what are the initial steps for this?

I researched a lot but saw only how to return a return, for example a list of woocommerce products, but not the reverse that it would be to consume.

I thank you all!

java – What are the steps to consume Real Time Streaming data API and do we always get a client library by their providers in order to consume it

I am having doubt most of the real time streaming API providers like twitter, YouTube etc. provide their client library as well to consume their streaming API. Is this the case with all streaming APIs.
I want to make a real time data pipeline by consuming real time streaming API and put data onto kafka topics. Suggestions for any free real time streaming API.

antivirus – Would an anti-virus software make any other processes consume more CPU?

Would an anti-virus software make any other processes that it scans to consume more CPU?

We recently switched to a new Next-Gen, AI based Anti-Virus software. On couple of our Linux servers that runs Java processes, there has been frequent high spikes in CPU usage recently. Apparently, it is Java that is the highest consumer of CPU while the anti-virus process isn’t using a lot. I am pretty sure that it is not the anti-virus behind the higher CPU usage since the these spikes started a couple of days before even the AV software was installed. So, right now, I am in the process on convincing others that it is not the anti-virus (trust me, no one is believing what they see at top -c) . Before I go back to the team, I would like to make sure that when anti-virus scans every single file that gets opened by other processes, the resultant CPU usage would show up against the anti-virus process and not against the process that opens the file. Is this how it will appear in CPU usage stats?

Server run Amazon Linux and the Anti-Virus is Crowdstrike Falcon.

xml – How to consume SRI ecuador web services with php?

I have the following code:

$url = '';
$client = new SoapClient($url);
$directorio = "C:/Users/Documents/FIRMADOS"; 
$fichero = "0505202001170756230000110010010000000091234567819.xml";
$xml = base64_encode(file_get_contents($directorio."/".$fichero)); 
$parametros = new stdClass();
$parametros->xml = $xml;
$result = $client->validarComprobante($parametros);

but it throws me this error: ec.gob.sri.comprobantes.electronicos.api.excepcion.ConversionArchivoXMLException: Error converting xml file (type)

The XML encoded in "base64_encode" should be sent to the web services, but I don't know what I'm missing as it keeps giving an error. I would appreciate any help in this regard

reactjs – Consume a fetched api from a nested json

Hello I have the following problem I want to consume an api which the data has nested in the json
enter the image description here

What I want is what is inside quotations
This is my code enter the image description here

that same code works wonders for me with apis like this
changing the CONTAINER by results, as such I don't know how to get it to get the data when the json is nested Container.quotations try marking error

Hard Drive: What would happen when USB devices consume more power than the hub can provide?

I'm going to buy a 7-port USB 3.0 hub and connect 7 portable hard drives to it to build a RAID 6 array. The hub comes with an upstream micro-USB 3.0 Type B port, along with a 5V 2A auxiliary power adapter ( micro-USB 2.0 type B connector).

enter the image description here

Each 2.5-inch HDD can easily draw 5V 0.9A, which is the maximum for a single USB 3.0 port. And now I am going to connect 7 of them to all available ports.

My questions are:

  1. Is the power from the upstream USB port (0.9A) and the auxiliary port (2.0A) combined? I'm confused, because I can always plug another hub into this one and cascade this USB network, and that hub can be either host-powered or self-powered. How does power flow in this case?
    enter the image description here
  2. If a 2.5 "HDD receives less than its required power (2A / 7 = 286mA), will it run slower or not at all?
  3. Can I replace the stock power adapter with higher current ones, for example 5V 10A?

Context map between contexts that publish and consume events

A Open host service in domain-driven design it is a good way to represent access to a context through a set of APIs. What is a good way to represent an upstream – downstream relationship where the downstream context consumes events that are posted from upstream?

Files deleted via mtp still consume space

When I delete some large files (part of music collection, ~ 20GB flac files) during mtp connection (on computer), it disappeared from Android FS, but according to FS analysis it still consumes space.

How to free this space?

The FS analysis shows the space consumed as "other".
None of the visible folders is that large.

Phone: Samsung Galaxy S10e

MTP driver: gvfs-mtp

If you swallow a black hole the size of a marble, would it pierce you causing massive internal damage or consume you?

We could die consuming a regular marble. Just imagine what a black hole could do to us. It has such a density that I would be surprised if the earth itself could handle it (and yes, even the size of a marble).

However, let me reassure you regarding your question. What will happen is that cell by cell, you will begin to disintegrate and, in fact, you will have enough time to see how all this happens. Your flesh will literally start to peel, you can see your guts, every organ that travels through that little black hole, one by one, until there is nothing left of you. Just consider it a super powerful vacuum that never needs cleaning. (If I could only integrate such technology, I would be a billionaire, if not a trillionaire: P).