Kubernetes log query and Analysis Practice

Introduction: This paper will introduce how to collect and query Kubernetes (K8s) logs based on the log service. In addition, it also gives a brief introduction to Ingress and Audit schemes. In order to facilitate our understanding through operation, this paper provides detailed operation steps and corresponding screenshots and configuration co ...

Posted by agent47 on Fri, 27 Dec 2019 09:53:59 +0100

Deep residual shrinkage network: implementation of image classification code

In fact, the deep residual shrinkage network is a general deep feature learning method, which is the integration of deep residual network ResNet, attention mechanism and soft thresholding, and can be used for image recognition tasks. In this paper, TensorFlow 1.0 and TFLearn 0.3.2 are used to program image classification. CIFAR-10 is used as im ...

Posted by Trek15 on Thu, 26 Dec 2019 14:51:31 +0100

ajaxfileupload upload file with parameters

A few days ago, when uploading files with ajaxfileupload, I found that ajaxfileupload could not be transferred with parameters, so I found a ready-made ajaxfileupload that can be transferred with parameters from github, and learned how to upload files with ajaxfileupload. The github address of ajaxfileupload that can be passed ...

Posted by barkster on Wed, 25 Dec 2019 18:43:17 +0100

Introduction to python tool library bidict: Bidirectional Dictionary

quick get start >>> husbands2wives = bidict({'john': 'jackie'}) >>> husbands2wives['john'] # the forward mapping is just like with dict 'jackie' >>> husbands2wives[:'jackie'] # use slice for the inverse mapping 'john' "Prefix the slice with a colon to indicate an inverse mapping. Similar to data sli ...

Posted by Vbabiy on Tue, 24 Dec 2019 16:33:55 +0100

Create and publish a tomato clock from scratch

1. Make your own tomato clock On a PC I've been using "Little Tomato" as my tomato clock software, and I turn it on and maximize it on my secondary monitor so that not only does it do its part, but I can also tell my colleague that I'm working hard.But I always wanted to write a tomato clock software by myself. It was so itchy that I ...

Posted by neogemima on Sat, 21 Dec 2019 20:06:22 +0100

Baidu written test 2018

Digression First of all, I want to Tucao, csdn is dying. Copying the posting text is disgusting. I copy my blog, and I quote. So I decided to change places, later github (bias code) and gitee (emphasis on knowledge) will be updated frequently. subject Is to let you use es5 to write code, after the implementation of click. I ...

Posted by johnie on Fri, 20 Dec 2019 17:41:10 +0100

Java EE Foundation (06): Servlet integration C3P0 database connection pool

Source code: GitHub point here || GitEE point here 1, C3P0 connection pool 1. C3P0 introduction C3P0 is an open source JDBC connection pool. The application program initializes the database connection according to the C3P0 configuration, and can automatically reclaim the function of idle connection. 2. Core dependency <dependency> & ...

Posted by jimdy on Fri, 20 Dec 2019 15:12:28 +0100

Use Consul to implement service discovery: instance-id customization (3 ways)

TIPS This article is based on Spring Cloud Hoxton, supporting all versions of Spring Cloud in theory. This article explores how to customize the InstanceId registered with Consul for microservices. Consul uses InstanceId as its unique identity, while Spring Cloud Consul defaults to InstanceId of ${spring.application.name}-${server.port}. The ...

Posted by zsxdcfv21 on Thu, 19 Dec 2019 09:50:32 +0100

Using Kotlin to write basic network requests

The source download link has been given at the end of the article First, add the dependency required by the network request to build.gradle: //Retrofit implementation 'com.squareup.retrofit2:retrofit:2.4.0' implementation 'com.squareup.retrofit2:converter-gson:2.4.0' implementation "com.squareup.retrofit2:adapt ...

Posted by deolsabh on Wed, 18 Dec 2019 18:35:07 +0100

Offline saving and loading of Kubernetes images (very fast)

The image of Kubernetes can be saved offline to a file, and then loaded from the file to realize offline installation (very fast). For the kubernetes version 1.12.1 image used here, the corresponding version number can be modified for other versions. Script file here: be located: https://github.com/openthings/kubernetes-tools/kubeadm/ ...

Posted by Sarahlmorrow on Tue, 17 Dec 2019 20:04:08 +0100