rest – How to make PHP POST requests work correctly in the CRUD API as a layer for connecting to the MySQL database

I can not post values ​​in the database via Postman.

Recently, I started building a CRUD api for practical purposes. I've found some good tutorials on connecting to a database with PHP. I managed to build MySQL DB with phpMyAdmin and connect it with PHP. The GET request also returns the values ​​from the database: http://ivanzarkovic.com/movies/fetch_all_movies.php
In Postman, I tried to add http://ivanzarkovic.com/movies/add_movie.php?name_film=SomeName&genre=SF&year=2005&rating=4.6
or bulk JSON.
I thought I was wrong with the type of data. I have therefore changed the type of DB to a string (VARCHAR), but the problem has not been solved.

if (isset ($ _ POST['movie_name']) && isset ($ _ POST['genre']) && isset ($ _ POST['year']) && isset ($ _ POST['rating'])) {
$ movieName = $ _POST['movie_name'];
$ gender = $ _POST['genre'];
$ year = $ _POST['year'];
$ rating = $ _POST['rating'];

// Request to insert a movie
$ query = "INSERT IN movies (movie_name, genre, year, rating) VALUES (?,?,?,?)";
// code here
}other{
// Required parameters are missing
$ answer["success"] = 0;
$ answer["message"] = "missing mandatory parameters";
}

I am waiting to validate a new entry in a database, but it is blocked with "missing mandatory parameters". isset ($ _ POST[‘movie_name’]) returns false.

Difference between bitcoin and multiple layer

I am really confused about bitcoin core and omni core. I have many doubts, regarding,

  1. it is possible to use bitcoin node for omnicore.
  2. Can we use Bitcoin address for USD
  3. if we can, how to get the bulk blockchain transaction using json rpc.

apache kafka – Decoupled microservice implementation with a full asynchronous layer

The IT architect of my company has just outlined the high architectural principles of the new system we plan to work on. Overall, it is a backend system that exposes APIs for desktop applications (point of sale) on a private network and web-based applications on the Internet (back office administration / management).

One of the ideas that seem odd to me is that all front-end applications will be decoupled from the actual implementation of the service by a Kafka bus.

Here is a diagram of the general architecture:

enter the description of the image here

the arguments for using the kafka message broker are:

  1. to separate the point of entry into the system of service implementations
  2. Allow easier scaling of components with a Pub / Sub pattern
  3. the broker will act as a persistent message buffer when services can not process events as they arrive

    I think that will add some complexity to the fact that all the services work in this asynchronous way.
    What do you think of this type of architecture?

persistence – How to summarize the data layer when using Spring Data?

In fact, your goal is good as long as you understand what it will bring you and what it will cost you.

But you do not go wrong. Do you want your business layer to be independent of your persistence layer? Well. So stop thinking about spring. Stop thinking about persistence.

Make your game work without any persistence. Determine the rules of your business. What should your model be? Of course, the state dies when you turn off the computer, but you can still go far enough that way.

Now that you know what your game is, what do you want to back up? Which API should you offer for this state to be saved and rebuilt? In this way, you focus on your real needs and not on what some original frameworks offer.

You may need to do more work. You may miss some spring features. If you want this to work, you have to agree with that.

But now, if you wish, you can exchange spring against something else. You can even create your own persistence code.

I know it works because I did it. This is not cheap. But it works. Sometimes it's worth it.

Hide the business / service layer logic in the facade pattern

Hide the logic of the business / service layer in front is it a good practice?

The architect says that it is a good practice because in case of refactoring the code. We will only need to test the layers with facade.

Topological Graph Theory – Layer Thickness

A book incorporating a G-chart consists of placing the vertices of G on a back and assigning graphic edges to the pages so that the edges of the same page do not intersect. The page number is a measure of the quality of an embedded book that corresponds to the minimum number of pages in which chart G can be incorporated.

If a graph $ G $ is a finite overlay graph $ B $,
is there a relationship between their page number?

I think the cover chart is more complicated than the basic chart. Similarly $ pn (G) geq pn (B) $ hold in general?

neural networks – Formation of two 3×3 convolution layers vs. formation of a 5×5 convolutional layer

I am not 100% sure that it is the right stackexchange, do not hesitate to redirect me to another one.

I know that two 3×3 convolution layers can be equivalent to a 5×5 convolution layer.

I also know that in many cases (maybe all), the training of both options is equivalent (in terms of result, not speed or optimization)

Suppose I have a dataset on which I KNOW that no information, no matter what it is, can be derived from a 3×3 window, but that it may come from from a 5×5 window.

If I wanted to, I could form a network with a 5×5 convolution layer, then manually transform it into two layers of 3×3 convolution.

My question is: can I network directly with two layers of 3×3 convolution?

My reasoning:
What could the first convolution learn apart from the over-adaptation of the training dataset? So-called nothing. The second layer is the only layer that can generalize my data. But then, my problem is to compare ONE convolution 3×3 versus ONE convolution 5×5.

In the general case, 5×5 convolution would work better. But with my restrictions on the dataset, it may become equivalent to the 3×3 convolution? In this case, I could form a 3×3 convolution.

Thank you !

[DICHVUSOCKS.US]08H30 UPDATE: 24/24 – good socks

Instantly perfectmoney payment, bitcoin, wmtransfer, wex, ETH (Click Buy Socks)
Update the client tools Dichvusocks.us http://dichvusocks.us/tools.php Link check socks http://check.dichvusocks.us/
LIVE | 173.244.200.159:63904 | 0.08 | Pennsylvania | 15228 | pool-100-6-155-241.pitbpa.fios.verizon.net | United States | Blacklist: yes | Checked at http://dichvusocks.us
LIVE | 173.244.200.158:55845 | 0.21 | Florida | 33478 | c-73-85-140-111.hsd1.fl.comcast.net | United States | Blacklist: yes | Checked at http://dichvusocks.us
LIVE | 5.135.58.124:64980 | 0.47 | North Carolina | 27516 | a2plcpnl0170.prod.iad2.secureserver.net | United States | Blacklist: no | Checked at http://dichvusocks.us
LIVE | 132.148.3.216:54264 | 0.26 | Arizona | 85260 | ip-166-62-80-198.ip.secureserver.net | United States | Blacklist: yes | Checked at http://dichvusocks.us
LIVE | 50.62.35.225:28536 | 1,87 | Arizona | 85260 | ip-50-62-35-225.ip.secureserver.net | United States | Blacklist: yes | Checked at http://dichvusocks.us
LIVE | 14.199.4.126:52232 | 0.89 | Tai Po District | Unknown | 014199004126.ctinets.com | Hong Kong | Blacklist: no | Checked at http://dichvusocks.us
LIVE | 178.62.159.94:1045 | 0.35 | Unknown | Unknown | | Unknown | Blacklist: yes | Checked at http://dichvusocks.us
LIVE | 221.125.143.234:48033 | 0.84 | North | Unknown | HGC | Hong Kong | Blacklist: no | Checked at http://dichvusocks.us
LIVE | 178.62.159.94:50777 | 1,5 | Unknown | Unknown | | Unknown | Blacklist: yes | Checked at http://dichvusocks.us
LIVE | 173.244.200.157:36078 | 0,14 | Massachusetts | 02745 | c-24-147-147-53.hsd1.ma.comcast.net | United States | Blacklist: yes | Checked at http://dichvusocks.us
LIVE | 51.15.106.26:9052 | 0,5 | Unknown | Unknown | ip37.ip-54-36-222.eu | Unknown | Blacklist: no | Checked at http://dichvusocks.us
LIVE | 51.15.106.26:9051 | 0,57 | Unknown | Unknown | Next layer Telekommunikationsdienstleistungs- und | Unknown | Blacklist: no | Checked at http://dichvusocks.us
LIVE | 112.120.139.121:9734 | 0.82 | Central and Western District | Unknown | n112120139121.netvigator.com | Hong Kong | Blacklist: no | Checked at http://dichvusocks.us
LIVE | 192.169.197.146:37718 | 0.24 | Unknown | Unknown | | Unknown | Blacklist: yes | Checked at http://dichvusocks.us
LIVE | 192.169.140.100:30098 | 0.26 | Arizona | 85260 | ip-192-169-140-100.ip.secureserver.net | United States | Blacklist: yes | Checked at http://dichvusocks.us
LIVE | 192.169.218.61:63032 | 0.35 | Arizona | 85260 | ip-192-169-218-61.ip.secureserver.net | United States | Blacklist: yes | Checked at http://dichvusocks.us
LIVE | 192.169.188.100:47997 | 0.66 | Arizona | 85260 | ip-192-169-188-100.ip.secureserver.net | United States | Blacklist: yes | Checked at http://dichvusocks.us
LIVE | 90.63.171.134:32172 | 0,49 | le-de-france | 75019 | lstlambert-656-1-12-134.w90-63.abo.wanadoo.fr | France | Blacklist: no | Checked at http://dichvusocks.us

dichvusocksReviewed bydichvusockssure.[DICHVUSOCKS.US] 08H30 UPDATE: 24/24 – good socks
Instantly perfectmoney payment, bitcoin, wmtransfer, wex, ETH (Click Buy Socks)
Update the client tools Dichvusocks.us http://dichvusocks.us/tools.php Link check socks http://check.dichvusocks.us/
LIVE | 173.244.200.159:63904 | 0.08 | Pennsylvania | 15228 | pool-100-6-155-241.pitbpa.fios.verizon.net | United States | Blacklist: yes | Checked at http://dichvusocks.us
LIVE | 173.244.200.158:55845 | 0.21 | Florida | 33478 | c-73-85-140-111.hsd1.fl.comcast.net | United States | Blacklist: yes
Evaluation:5

.

[DICHVUSOCKS.US]20:00 UPDATE 24/24 – good socks

Instantly perfectmoney payment, bitcoin, wmtransfer, wex, ETH (Click Buy Socks)
Update the client tools Dichvusocks.us http://dichvusocks.us/tools.php Link check socks http://check.dichvusocks.us/
LIVE | 95.110.227.5:64409 | 0,43 | Unknown | Unknown | | Unknown | Blacklist: yes | Checked at http://dichvusocks.us
LIVE | 61.244.157.81:33262 | 0.81 | Kwun Tong | Unknown | 061244157081.ctinets.com | Hong Kong | Blacklist: yes | Checked at http://dichvusocks.us
LIVE | 192.169.140.100:16050 | 0.81 | Arizona | 85260 | ip-192-169-140-100.ip.secureserver.net | United States | Blacklist: yes | Checked at http://dichvusocks.us
LIVE | 166.62.83.183:15838 | 5.18 | Arizona | 85260 | ip-166-62-38-222.ip.secureserver.net | United States | Blacklist: yes | Checked at http://dichvusocks.us
LIVE | 157.119.207.13:6667 | 2.95 | Gujarat | 396427 | Gtpl Dcpl Private Limited | India | Blacklist: no | Checked at http://dichvusocks.us
LIVE | 218.190.205.205:52412 | 0.79 | Kowloon City | Unknown | HGC | Hong Kong | Blacklist: no | Checked at http://dichvusocks.us
LIVE | 178.62.59.71:23187 | 0.29 | Unknown | Unknown | | Unknown | Blacklist: yes | Checked at http://dichvusocks.us
LIVE | 37.122.210.22:47812 | 1,86 | Unknown | Unknown | | Unknown | Blacklist: yes | Checked at http://dichvusocks.us
LIVE | 46.105.99.152:64622 | 3,31 | Unknown | Unknown | | Unknown | Blacklist: yes | Checked at http://dichvusocks.us
LIVE | 166.62.83.182:23800 | 0.26 | Arizona | 85260 | ip-166-62-89-69.ip.secureserver.net | United States | Blacklist: yes | Checked at http://dichvusocks.us
LIVE | 5.135.58.121:27380 | 0.4 | Virginie | 20149 | ec2-52-23-63-174.compute-1.amazonaws.com | United States | Blacklist: no | Checked at http://dichvusocks.us
LIVE | 192.169.140.100:30098 | 0.26 | Arizona | 85260 | ip-192-169-140-100.ip.secureserver.net | United States | Blacklist: yes | Checked at http://dichvusocks.us
LIVE | 50.63.162.9:45290 | 1,84 | Arizona | 85260 | ip-50-63-162-9.ip.secureserver.net | United States | Blacklist: no | Checked at http://dichvusocks.us
LIVE | 61.244.128.9:2346 | 0.81 | Kowloon City | Unknown | 061244128009.ctinets.com | Hong Kong | Blacklist: no | Checked at http://dichvusocks.us
LIVE | 51.15.106.26:9059 | 0.65 | Unknown | Unknown | Next layer Telekommunikationsdienstleistungs- und | Unknown | Blacklist: no | Checked at http://dichvusocks.us
LIVE | 103.216.82.196:6667 | 3,73 | Unknown | Unknown | Gtpl Dcpl Private Limited | Unknown | Blacklist: yes | Checked at http://dichvusocks.us
LIVE | 91.134.157.11:63862 | 0.34 | The Baden-Württemberg region | 68199 | static.88-99-212-97.clients.your-server.de | Germany | Blacklist: no | Checked at http://dichvusocks.us
LIVE | 192.169.232.12:18741 | 1,57 | Arizona | 85260 | ip-192-169-232-12.ip.secureserver.net | United States | Blacklist: yes | Checked at http://dichvusocks.us

dichvusocksReviewed bydichvusockssure.[DICHVUSOCKS.US] 20:00 UPDATE 24/24 – good socks
Instantly perfectmoney payment, bitcoin, wmtransfer, wex, ETH (Click Buy Socks)
Update the client tools Dichvusocks.us http://dichvusocks.us/tools.php Link check socks http://check.dichvusocks.us/
LIVE | 95.110.227.5:64409 | 0,43 | Unknown | Unknown | | Unknown | Blacklist: yes | Checked at http://dichvusocks.us
LIVE | 61.244.157.81:33262 | 0.81 | Kwun Tong | Unknown | 061244157081.ctinets.com | Hong Kong | Blacklist: yes | Checked at http://dichvusocks.us
LIVE | 192.169.140.100:16050 | 0.81
Evaluation:5

.

mobile data – slow S7 practically unusable in the application layer

I know this seems like a frequent complaint, but I went through the forums and I can not find any solution to this very specific problem. Symptoms: since I returned from abroad 2 months ago, my S7 barely receives data from the mobile network at the application level. for example. I just tried to load Google News and it took about 20 seconds. The next two attempts have expired.

The strange thing is that if I activate the hotspot and connect a tablet or laptop, it loads the same page instantly. Therefore, antannae is obv. Well, data transfer test from the laptop to the hotspot are as follows:

enter the description of the image here

However, I can not even run this test directly on the phone.
In wifi, it behaves much better without any noticeable slow data transfer.

What I've tried

  • Uninstalling all the games, unnecessary applications of my children, etc.

  • Clearing the cache

  • Use a cache cleaning application

  • back to factory settings

  • hard reset

  • clear APN settings and re-extract

none of the above has any effect. Nowadays, I took the taste of bringing my 7 "tablet and using hotspotting instead of using the phone directly.

Can any one get away from my misery, I'm about to ruin everything now …