Chinese MNIST Classification 1 — data preparation

data: https://www.kaggle.com/gpreda/chinese-mnist

import pandas as pd
dataframe = pd.read_csv('./chinese_mnist.csv')

inspect the dataset

dataframe.columns
Index(['suite_id', 'sample_id', 'code', 'value', 'character'], dtype='object')

check balance

dataframe.groupby(["value","character"]).size()

in this tutorial, I assume you already have CFSSL and node JS installed. I want to show how client talk to server both with certificate and client talk to server without server to authenticate client (client is browser).

to get webserver use TLS, we need a certificate, here we use…


Build a secure HUB VPC with Fortigate firewall and alibaba CEN-TR to secure enterprise cross VPCs traffic with terraform

In this tutorial, We will demo how to use Fortigate and Alibaba CEN-TR to secure enterprise east-west and north-south traffic . The term east-west traffic refers to the traffic between two…


This tutoiral will show you how to use CEN-TR for intra-region cross VPC communication. we will create a CEN instance, a CEN-TR router, two Spoke VPC, and one VM in each VPC. VM in each VPC can reach other VM in other VPC via CEN-TR. …


Create custom Jenkins master docker image with docker client installed for k8s

Why?

Offical jenkins master image does not have docker client installed.

sometime if you do not want launch another (agent) node to run your jenkins work, you may want use your master node to build project. …


when try to pull image from k8s.gcr.io. it always failed with error messages like below although I have http_proxy configured.

failed to pull image “k8s.gcr.io/kube-apiserver:v1.17.17”: output: Error response from daemon: Get https://k8s.gcr.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
, error: exit status 1

Couple things need to be fixed to solve this issue.

i@master-node:/etc/systemd/system$ sudo mkdir -p /etc/systemd/system/docker.service.d
i@master-node:/etc/systemd/system$ sudo touch /etc/systemd/system/docker.service.d/proxy.conf
i@master-node:/etc/systemd/system$ sudo chmod 777 /etc/systemd/system/docker.service.d/proxy.conf
i@master-node:/etc/systemd/system$ sudo vi
/etc/systemd/system/docker.service.d/proxy.conf
i@master-node:/etc/systemd/system/docker.service.d$ cat proxy.conf
[Service]
Environment="HTTP_PROXY=http://127.0.0.1:8123/"
Environment="HTTPS_PROXY=http://127.0.0.1:8123/"
i@master-node:/etc/systemd/system$ sudo systemctl daemon-reload
i@master-node:/etc/systemd/system$ sudo systemctl restart docker
i@master-node:/etc/systemd/system$ sudo systemctl show — property=Environment docker
Environment=HTTP_PROXY=http://127.0.0.1:8123/ HTTPS_PROXY=http://127.0.0.1:8123/

2. DNS name


Install GCP SDK

curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-333.0.0-linux-x86_64.tar.gzunzip
./google-cloud-sdk/install.sh
gcloud init
gcloud components updatei@DESKTOP-GJNS5EN:~$ gcloud config list
[compute]
region = asia-east2
zone = asia-east2-c
[core]
account = xxxxxxxxx
disable_usage_reporting = False
project = avid-phoenix-266706
[proxy]
address = 127.0.0.1
port = 8123
type = http
Your active configuration is: [default]…

both WSL vethernet NIC on windows 10 host and IP address on WSL VM are dynamic. it changes after every reboot. how to make it static ? the solution is using supervisord as daemon to add a secondary IP to VM everytime when VM bootup.

You might running some service…


What is S4/HANA

S4 is Version 4 SAP Business Suite, Targeting from morden user experience with fiori. and reduced transation time with in memory HANA database.

S4/HANA,S standfor simple. S4/HANA can be deployed as on-premise (include public) or Cloud (SAAS, as SAP manage the enviroment).

What is SAP landscape

SAP landscape is a complete server setup of…


I would like to make medium.com webpage looks like a standalone App in windows 10. and also I ‘d like medium.com use dedicated socks5 proxy.

Firt open your medium.com from chrome browser

create a shortcut to your windows desktop.

interbeing

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store