2x E5620 [8/16t] , 32GB DDR3, 4x2TB SATA2 [Data center: Amsterdam] $ 120

Fully managed dedicated server

HARDWARE

  • Server: HP DL180 G6
  • CPU: 2x Intel quad-core Xeon E5620
  • RAM: 32 GB DDR3
  • Hard drive: 4x2TB SATA2
  • Remote Management: Remote Management
  • Hardware RAID: No RAID
  • Data Center: AMS-01

NETWORK

  • Uplink port speed: 1 x 1000 Mbps full duplex
  • Bandwidth: 10 TB (volume)
  • IPv4: 1

SOFTWARE

  • OS: CentOS 7.0 64bit
  • Control Panel Software: cPanel / WHM

Contract period: 12 months

PRICE: 120 $
Available servers: 5

Send your questions to contact@zyberhosting.com

node.js – The new data that was created after data was transferred using mongoose

I want to move my data into existing data.

First I made a model like below.

const Mungo = Request ("Mungo");
const {scheme} = mongoose;

// Create a schema and a model

const BookSchema = new schema ({
Title: String,
Pages: Number
});

const AuthorSchema = new schema ({
Name: String,
Books: [BookSchema]
});

const author = mongoose.model ("author", AuthorSchema);

module.exports = author;

After that, I let a router insert data as shown below.

exports.authors2 = async (req, res, next) => {
To attempt {
const {name, books} = req.body;

const authors = new authors ({
Surname,
Books
});

const exAuthor = Expect Authors.findOne ({name: name});

if (! exAuthor) {
Expect authors. Save ();
res.send ("new author!");
} else {
Do not expect authors.save (). Then (asynchronous record => {
Expect record.books.push (books);
expect record.save ();
res.send ("ex author!");
});
}
} catch (e) {
back next (e);
}
};

But if I send the data with the postman as below,
It has moved the new book data, but the author data has been duplicated.
Could you recommend a solution?

{
"name": "Patrick Rothfuss",
"books": {"title": "aa", "pages": 223}
}

To select a bank data picker (Firebase) – Respond natively

I try to make this picker popular with DB data (if the person wants to delete it, select it by title), but it does not fill up and I do not know if I'm doing it right. Thanks for your help! ๐Ÿ™‚

Export standard class forward expands component {

Constructor () {
Super ();
this.state = {
title:[]
    };
firebase.auth (). onAuthStateChanged ((user) => {
if (user) {
(Value), (snapshot) => {() {{
let state = this.state;
state.title =[];

snapshot.forEach ((childItem) => {
state.titulo.push ({
Key: childItem.key,
title: childItem.val (). title
});
});
this.setState (state);
});
}
});
}

render () {
to return
      

        Delete display
        {& # 39;}
        Ad Title:
         
          
          
          
          }>          

        
        
          Delete display
        

      
    
    
    
    );
}
}

magento2 – how to update data in the database table

I send data to the database by checking duplicate data. However, I can not insert / update data in the database.

protected function saveEntityFinish (Array $ entityData, $ table) {
$ collection = $ this-> PostTableFactory-> create ();
$ item = $ collection-> getCollection ();


if ($ entityData) {
$ tableName = $ this -> _ connection-> getTableName ($ table);
$ entityIn = [];
$ entityInup = [];
foreach ($ entityData as $ id => $ entityRows) {
foreach ($ entityRows as $ row) {
$ item-> addFieldToFilter (& # 39; rule_id & # 39 ;, $ row)['rule_id']);
$ item-> addFieldToFilter ('store_id', $ row)['store_id']);

if (count ($ item-> getData ()) == 0) {
$ temp = $ item-> getData ();
$ logger-> info (& # 39; one & # 39;);
$ collection-> setRuleId ($ row)['rule_id']);
$ collection-> setStoreId ($ row)['store_id']);
$ collection-> setStatus ($ row['status']);
$ entityIn[] = $ row;
$ collection-> save ();
}otherwise{
$ entityInup = $ row;


$ collection = $ this-> PostTableFactory-> create ();
$ collection-> load ($ item-> getData ()[0]['p_id']);

$ collection-> setRuleId ($ entityInup['rule_id']);
$ collection-> setStoreId ($ entityInup['store_id']);
$ collection-> setStatus ($ entityInup['status']);
$ entityIn[] = $ entityInup;
$ collection-> save ();

}

}
}


}
return this $;
}

Can I get help? thank you in advance

dns – Data retrieved from DNSBS

I queried amazon.com using the DNSDB Lookup API https://api.dnsdb.info/lookup/rdata/name/amazon.com and got the following answer.

qlightingcontrol.in. IN NS amazon.com.

qlightingcontrol.com.tw. IN NS amazon.com.

rustaxi-cyprus.com. IN SOA amazon.com. root.example.com. 2017122837 3600 3600 604800 86400

transfer-cyprus.ru. IN SOA amazon.com. root.transfer-cyprus.ru. 2018022807 3600 3600 604800 86400

silver.buymyunicorns.com. IN CNAME amazon.com.

violet.buymyunicorns.com. IN CNAME amazon.com.

159.15.154.185.inaddr.arpa. IN PTR amazon.com.

116.213.123.195.in-addr.arpa. IN PTR amazon.com.

What does the answer above and what value do I have in terms of the cybersecurity perspective?

P.S: The above answer is cut off for illustrative purposes.

Apple ID – Lost Appleid and password, working phone Iphone 5, owner transferred, but we have to keep all data on it

Not only the data, but all apps and the device itself are still part of the original Apple ID.
Apple's policy does not say that something belongs to the person holding the device; it belongs to the owner of the ID.

Without this ID / password and no way to get or contact the previous owner, but with access to the phone itself and presumably its passcode, the only option is to transfer the possible data and discard the phone.

Visit the EaseUS website for information on transferring contacts from iPhone to Android in 4 simple ways. Of course, they try to persuade you to consider using their own software, even though they provide a method of transferring contact information to Google, which then allows you to access the contacts as .vcf files.

I'm not sure if you can really handle any of these methods without ever needing the Apple ID and password.
If you do this at any point, your method will be reduced to manually entering it into another computer.

For WhatsApp I do not know a method that is not paid [& often quite dodgily-marketed] Software that I have never tried [& am never likely to.] You would need to research a little further … and read the reviews on websites that are not affiliated with any of the software vendors.

Is there a way mysql can put some external data together without importing that data into db?

I have some static data stored in a Json file

outinfo =
[{out_id:123,out_name:'hello'}]

and I have a table,

---- tableA ----
| id | Label | out_id |
| 1 | a | 123 |
| 2 | b | 123 |

I want to select all the information from

{id: 1, label: "a", out_name: "hello"}

This is easily accomplished by importing the external json data into the db table and then simply selecting it Join links query
But I want to know how to do that if you do not create a table for this static data.

Javascript data is not sent via XMLHttpRequest

I have a strange problem with a script that I use to send some information to my PHP. I say weird because this code is a direct copy of already working code in the same application, with new variable names. I need to upload a small amount of data to my server, and as long as the value exists and the code goes all the way through, the POST data will not be sent. I checked and it says that it was passed to my PHP with the value, but nothing happens. I use Vue.js when there are questions about some formatting

I've tried to look at other examples online, but my point is that this was a block of code copied from a working part of my application. It works until data transfer from JS-PHP

JS

editDisplayName: function () {
var self = this;
var newName = prompt ("10 characters max., 3 min.", "enter display name");
if (newName.length <= 10 && newName.length >= 3) {
var sendData = new XMLHttpRequest ();
sendData.open ("POST", "primary.php", true);
sendData.setRequestHeader ("Content Type", "Application / x-www-form-urlencoded");
sendData.send (newName);
self.username = window.localStorage.getItem (& # 39; username & # 39;);
window.localStorage.clear ();
}
}

PHP

Function changeUsername () {
// connect to the server
$ link = // Comments for security reasons;
if (mysqli_connect_error ()) {
the ("DB Connection Error");
}
$ newName = $ _POST['newName'];
$ token = $ _COOKIE['validToken'];
$ token = mysqli_real_escape_string ($ link, $ token);
$ query = "UPDATE userData SET username = & # 39; $ newName & # 39; WHERE token = & # 39; $ token & # 39; LIMIT 1";
mysqli_query ($ link, $ query);
mysqli_close ($ link);
Echo("
         
     ");
}
if (isset ($ _ POST.)['newName'])) {
Change username ();
}

I expect on my DOM that I would set the new username, instead it is empty. The place where things stop working is somewhere with the POST data being sent because my PHP is not picking up, but I can not figure out what's wrong.

Domain-driven design – synchronization of data via microservices

We have about 2 to 3 dozen microservices serving our customers.
These services are provided in a Kubernetes cluster.
These services are accessible to the outside world through only 3 or 4 API gateways

We've found that sometimes two or more microservices need the same data.
We've looked at a few strategies to solve the problem, and we've done that in part.
As with any design, we are not 100% sure if this is the right approach and if we do not see the pitfalls in design.
Comments / suggestions / thoughts of people experiencing this will be helpful.

Case 1:
When a service of lesser business importance (for example, ServiceL) requires data of higher business importance (for example, ServiceH)
Then
ServiceL calls ServiceH to retrieve the required data

Case 2:
When a service of lesser business importance (Say ServiceL) needs data from many important services (eg, ServiceH1, ServiceH2, etc.).
Then
ServiceH1, ServiceH2, etc. publish news about RabbitMQ.
News publishing is done through a non-blocking fire-and-forget mechanism. (So โ€‹โ€‹that these services are not stopped)
The ServiceL uses these messages and stores the data in its own data store.
The delay in data availability for ServiceL is fine

Case 3:
When a business-critical service (such as ServiceH) needs data from a less important service (such as ServiceL).
Then
ServiceL publishes news about RabbitMQ through the fire-and-forget mechanism or the blocking mechanism (depending on the urgency of synchronizing data).
ServiceH uses the message and stores it in its data store.
Often, ServiceH data is needed for reporting and summary. And we are fine if the summary is not up to date

Case 4:
When data from two services are needed and both not only read data but also change it, we believe that domain identification is wrong.
We revise in this case. (Often these two microservices connect to each other)

If we now use a messaging framework like RabbitMQ to synchronize data between services, the data will become out of sync over a period of time.
If the data is out of sync, we can see RabbitMQ's statistics and play messages. (This we believed bring unnecessary complexity)
So we have jobs that run once a day to synchronize the data from the source service to the destination service.
(Synchronize job access data through services and not directly from the datastores.)
Is this a good way to synchronize such data? Any pitfalls?