Can I try / catch warnings?

I need to catch some warnings thrown from PHP native functions and process them. Especially: array dns_get_record ( string $hostname [, int $type= DNS_ANY [, array &$authns [, array &$addtl ]]] ) When a DNS query fails, it will raise a warning. try / catch does not work because warnings are no exception. I now have t ...

Posted by triphis on Wed, 11 Mar 2020 21:10:30 -0700

Cryptography summary

1, Digital signature 1.1 relationship between digital signature and asymmetric encryption In fact, there is a very close relationship between digital signature and asymmetric encryption. In short, digital signature is realized by using asymmetric encryption in reverse. Let's summarize the usage of t ...

Posted by thomas777neo on Mon, 09 Mar 2020 03:43:26 -0700

Beauty of unity online game architecture design (Lesson 11: role synchronization solution)

Lesson 11: role synchronization solutions In the previous chapter, we introduced the deployment of servers. In this chapter, we use deployed servers to synchronize roles. Here we first introduce what is role real-time synchronization. Online game role real-time synchronization has always been a tech ...

Posted by mwilson on Sat, 07 Mar 2020 01:51:22 -0800

C Programming single thread IP address resolution

Single thread IP address resolution Article directory Single thread IP address resolution Target program Implementation ideas Implementation process Try the process in the console Design WPF interface Background code Knowledge required IP address port The class of IP address translation in C ා ...

Posted by mburkwit on Thu, 05 Mar 2020 04:59:53 -0800

Prepare for CKA daily question - day 13: static Pod creation method, Pod domain name resolution test

Yesterday's examination questions Set configuration context $ kubectl config use-context wk8s configure the kubelet systemed managed service, on the node labelled with name=wk8s-node-1,to launch a pod containing a single container of image nginx named myservice automatically. Any spec file requried should be placed in the /etc/kuberneteds/mai ...

Posted by snowman2344 on Sun, 01 Mar 2020 20:02:54 -0800

Turn your Archlinux into a router

I got back an industrial control board with J2900 double Gigabit ports (odd model) for soft routing, but I wanted to use all kinds of skins, install a desktop environment with VNC, and I didn't have a cold on the virtual machine (and this U doesn't support through yet), so I had to give up all the router systems.As an Arch iron powder, in purs ...

Posted by vikaspa on Sun, 23 Feb 2020 08:31:13 -0800

python network novel crawling 3

/* Internet Novels:[secret] */ #coding:utf-8 import re import sys from bs4 import BeautifulSoup import urllib.request import time import random proxy_list = [ {"http":"124.88.67.54:80"}, {"http":"61.135.217.7:80"}, {"http":"120.230.63.176:80"}, {"http":"210.35.205.176:80"} ] proxy = random.choic ...

Posted by Nandini on Wed, 19 Feb 2020 02:14:06 -0800

Centos 7 Builds Zimbra Mail Server and foxmail Configuration

Reference resources: https://blog.csdn.net/linuxnews/article/details/51106905 Environment Configuration: Local ip:192.168.1.41 Set Host Name hostnamectl set-hostname mail.jlkj.com Add hosts echo "192.168.1.41 mail.jlkj.com" >> /etc/hosts Turn off the firewall: sed -i 's/SELINUX=enforcing/SELINUX=disabled/ ...

Posted by dv6cougar on Mon, 10 Feb 2020 08:21:33 -0800

Python full stack Web security attack and Defense 1. Information collection

Article directory 1, Kali virtual machine installation 2, Domain name introduction 1. Domain name introduction 2. Domain name query method whois web interface query Query through whois command line 3.ICP filing 3, Collect subdomain information 1. Domain name and subdomain name 2. Sub domain name ...

Posted by leony on Mon, 10 Feb 2020 04:16:21 -0800

Extended etcd cluster node with certificate

background A 7-node k8s cluster and a master node's disk are abnormal, which often causes the etcd of the node to write to the card, and then drags down the etcd cluster. Therefore, it is considered to migrate the etcd of the node. As shown in the figure above, the disk of the tstr501384 node is ...

Posted by turkman on Wed, 05 Feb 2020 00:30:35 -0800