Problems encountered in DELETE requests in AFNetworking
Today is the first week of BUG testing. There is a strange problem. DELETE requests to transfer data:
NSDictionary *parameters = @{@"objtype":@"course_thread"};
//Send network request (request method is DELETE)
[manager DELETE:URLString parameters:parameters success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) {
...
Posted by NikLP on Sun, 03 May 2020 22:23:18 -0700
iOS network status judgment scheme (supports iOS 11 and iPhone x)
In the previous iPhone, we can judge the network status according to the network status view above the navigation bar. (this kind of plan is not very good)
This solution is not available on iPhone X phones.
We can judge the network state through the Reachability
Reachability github address: https://github.com/tonymillion/Reachability
Super si ...
Posted by prosolutions on Sun, 03 May 2020 16:58:58 -0700
Using RTThread and TouchGFX to realize DIY digital instrument -- synchronous weather information
catalog:
1. Using RTThread and TouchGFX to realize DIY digital instrument (1) -- using stm32ubmx5.6 to transplant touchGFX4.132. Using RTThread and TouchGFX to realize DIY digital instrument (2) -- porting TouchGFX to RTThread system3. Using RTThread and TouchGFX to realize DIY digital instrument (3) - obtaining temperature and humidity sens ...
Posted by neogemima on Sun, 03 May 2020 15:23:52 -0700
Simple implementation of Linux multi process CS server
Simple implementation of Linux multi process CS server
server side
Multi process realizes multi-user connection, i.e. one connection for each user. Here, the server is still used to capitalize the received string and return it to the client.
code implementation
#include <stdio.h>
#include <string.h>
#include <netinet/in.h>
...
Posted by allinurl on Sun, 03 May 2020 14:00:54 -0700
Build MVC project from scratch
Preface
This article mainly records how to build an MVP architecture. At the same time, it realizes the network request by combining with the mainstream frameworks such as Retrofit,RxJava,Okhttp, which is convenient for later review and rapid development.
Project subcontracting
Base: put some base classes, such a ...
Posted by VapiD on Sun, 03 May 2020 11:56:40 -0700
Poj1459 power network (multi-source network flow, maximum flow, EK algorithm)
Description
A power network consists of nodes (power stations, consumers and
dispatchers) connected by power transport lines. A node u may be
supplied with an amount s(u) >= 0 of power, may produce an amount 0 <=
p(u) <= pmax(u) of power, may consume an amount 0 <= c(u) <=
min(s(u),cmax(u)) of power, and may deli ...
Posted by monkeynote on Sun, 03 May 2020 10:39:31 -0700
tomcat8 configures boot under CentOS 7.5
This article references This article
1, Create a new file tomcat under / etc/init.d, and add the following content:
#!/bin/sh
# chkconfig: 345 99 10
# description: Auto-starts tomcat
# /etc/init.d/tomcatd
# Tomcat auto-start
# Source function library.
#. /etc/init.d/functions
# source networking configuration.
#. /etc ...
Posted by PLaT on Sun, 03 May 2020 09:54:31 -0700
Linux Phase 11: Ke keepalived High Availability Cluster
11. Ke keepalived Highly Available Clusters Chapter
(1) Description of keepalived service concept
What can keepalived do?
The Keepalived software was originally designed for LVS load balancing software.
Used to manage and monitor the status of each service node in the LVS cluster system, and later added VRRP capabilities that enable high availa ...
Posted by EvanMartin on Sun, 03 May 2020 07:46:07 -0700
Quickly build ETCD cluster
Get ready
prepare three Linux machines that can access each other. Take Centos 7 as an example:
node1-192.168.22.117
node2-192.168.22.118
node3-192.168.22.119
turn off the firewalls of these three machines:
systemctl disable firewalld.service
systemctl stop firewalld.service
install
etcd nee ...
Posted by birwin on Sun, 03 May 2020 06:40:46 -0700
Vue Getting Started Guide (5)
v-if and v-show
Look directly at the v-if example
<h1> v-if and v-show </h1>
<div id="vue-app">
<button v-on:click="error=!error">Error</button>
<button v-on:click="ok=!ok">Ok</button>
<p v-if="error">Network connection error: 404</p>
...
Posted by DamianTV on Sun, 03 May 2020 03:22:41 -0700