How to improve the quality of PHP code
To be honest, PHP is under a lot of pressure in terms of code quality. By reading this series of articles, you'll learn how to improve the quality of your PHP code.
There are many reasons for this, but it's certainly not just the lack of proper testing tools for the PHP ecosystem. In this article, I want to show you a simple setup for basic qu ...
Posted by Alex-B on Sat, 07 Dec 2019 22:17:16 -0800
Make your Dialog more concise
GitHub address
Rebuild a dialog with Builder mode. There are two kinds of Builder in the case, CommonBuilder and MDBuilder. If you want to implement other general dialog, you can inherit from FRBaseDialogBuilder.
1. Usage:
1.1 ordinary Dialog
private void showCommonDialog() {
final FRDialog dialog = new FRDialog.CommonBuilder(this)
...
Posted by gingerboy101 on Sat, 07 Dec 2019 16:13:16 -0800
Automatic generation of golang struct from mysql table structure
a lib for golang , generate mysql table schema to golang struct
Automatic generation of golang struct from mysql table structure
github address
https://github.com/gohouse/converter
install
Download the executable directly: Download address
golang source package: go get github.com/gohouse/converter
Sample table structure
CREATE TABLE `prefix ...
Posted by scast on Sat, 07 Dec 2019 13:30:25 -0800
[Xuefeng magnetic needle stone blog] python 3.7 quick start tutorial 7 Internet
Contents of this tutorial
7 Internet
Internet access
urllib
urllib is a Python module for opening URL s.
import urllib.request
# open a connection to a URL using urllib
webUrl = urllib.request.urlopen('https://china-testing.github.io/address.html')
#get the result code and print it
print ("result code: " + str(webUrl.getcode()))
# read the d ...
Posted by esport on Sat, 07 Dec 2019 09:41:08 -0800
dlfcn library related learning in Linux
Blog move, original address: Learning dl Library in https://langzi989.github.io/2017/10/16/Unix/
In Linux, static link library and dynamic link library are two ways of code sharing between processes. Linux provides system calls to load and process dynamic connection libraries in the < dlfnc. H > library, which is very conv ...
Posted by CloudSex13 on Sat, 07 Dec 2019 08:07:01 -0800
Thinking about distributed jobs
Introduction
When cleaning Github, we found a simple distributed task distribution system written before ClawHub/task-distribution , using zk's select master and queue, the scheduler uses spring's ThreadPoolTaskScheduler, and the task supports cron expression.
This reminds me that I also encapsulated Quartz before. What I did at that time was ...
Posted by renegade33 on Sat, 07 Dec 2019 06:10:21 -0800
Create notifications using entry points for SpringAOP
Several notification types in SpringAOP and how to create simple notifications have been described previously See address
1. What is the starting point
In the previous example, we could create a ProxyFactory to create notifications and get the methods in the target class.Different types of notifications allow you to do different things with the ...
Posted by jamesl on Fri, 06 Dec 2019 23:37:43 -0800
Angular UI router and AngularJS implement dynamic (lazy) loading modules and dependencies through ocLazyLoad
What is UI router
UI router is one of the most useful components of the AngularUI Library (the AngularUI library is built by the AngularJS community). It is a third-party routing framework that allows interfaces to be organized through state mechanisms rather than simple URL routing.
What is ocloadload
Ocloadload is the module on demand loade ...
Posted by jaymc on Fri, 06 Dec 2019 23:30:57 -0800
How to smoothly and elegantly upgrade cert manager in Rancher 2.x?
Author:
Nassos Michas European Dynamics SA, CTO
If you are using Helm Chart provided by Rancher to install cert manager in the Kubernetes cluster managed by Rancher, you may have received a reminder from Let's Encrypt recently:
Check the log of cert manager in the cluster, and you can see that Let's Encrypt refused to update the certificate ...
Posted by mewhocorrupts on Fri, 06 Dec 2019 21:59:40 -0800
[Xuefeng magnetic needle stone blog] computer vision opcencv tool deep learning fast practice 1 face recognition
Using the pre trained deep learning face detector model provided by OpenCV, face recognition can be carried out quickly and accurately.
In August 2017, OpenCV 3.3 was officially released, bringing a highly improved "DNN deep neural networks" module. The module supports many deep learning frameworks, including Caffe, TensorFlow and Tor ...
Posted by naveenbj on Fri, 06 Dec 2019 20:59:43 -0800