R&D
Let's Learn Go -- (3) Go Modules
· β˜• 2 min read
1. Go’s Package Management Mechanisms 1.1 GOPATH GOPATH pulls code with the go get command and places it in the GOPATH directory. The problems with GOPATH are: It cannot manage package versions It uses a global repository, so it cannot isolate projects effectively 1.2 Vendor Starting with version 1.5, Go

Building a Remote Kubernetes Development Environment
· β˜• 1 min read
Minikube is a single-node distribution of Kubernetes, suited to product evaluation and day-to-day development. Here we use Minikube to build a development environment: Kubernetes runs on a CentOS cloud server, and development happens remotely from a local OS X machine. 1. Install Minikube on the Cloud Server On the Minikube

How to Prevent XSS in Web Rich Text
· β˜• 4 min read
1. How XSS Works and Several Common Attack Types An XSS attack is an attack that executes malicious scripts to steal a user’s login state, hijack a session, and so on. The input sources for malicious scripts include Cookies, Post forms, Get requests, HTTP header content, and more. We usually call a code fragment used for an XSS attack an XSS vector.

django-xss-cleaner
· β˜• 2 min read
django-xss-cleaner is a bleach-based Django XSSFilter toolkit that implements whitelist XSS filtering for GET and POST request parameters. The package ships with a set of built-in whitelisted HTML tags and attribute settings, and also supports custom extensions. Project address, https://github.com/shaowenchen/django-xss-cleaner 1. Installing and Configuring settings.py Add the middleware xss_cleaner.middlewares.CleanXssMiddleware to

Different Stages of a SaaS Development Team
· β˜• 6 min read
The team I am on is responsible for SaaS development. We have a few flagship SaaS products and also some supporting ones. The flagship SaaS products have complex architectures, large technical challenges, and heavy staffing, and they are the focus of our KPIs. But a flagship project cannot stay the flagship forever β€” projects have life cycles and phases.