Blog    Bookmark    Note    Photo    Password Manager    About Me    Settings    Sign out





     Golang       Apr 06, 2019   

When a client sends  an HTTPs request to a TLS server, the client verifies the server's certificate during the handshake. To do so, the client side mu  ... Read more


     Linux       Sep 02, 2018   

1.  Go to this page and download "Driver Install Tool" Unzip the downloaded file. $ gunzip linux-brprinter-installer-*.*.*-*.gz 2. Change to root user  ... Read more


     KubernetesRaspberry Pi       Sep 01, 2018   

A tutorial on how to build Kubernetes cluster on Raspberry Pi can be found here. However, there were problems when I follow it, possibly because it is  ... Read more


     Golang       Jun 15, 2018   

You can embed a struct inside another one without giving it a name. For example, type Foo struct { Bar } type Bar struct { ID string } The field Bar i  ... Read more


     Linux       Mar 10, 2018   

It seems there is no official Linux driver for TP-Link T9E AC1900 fromTp-Link website. However, you can install Broadcom driver for this model. On Ubun  ... Read more


     Golang       Jan 10, 2018   

"Map lookup requires an equality operator, which slices do not implement. They don't implement equality because equality is not well defined on such ty  ... Read more


     Kafka       Jan 10, 2018   

What is Kafka "Apache kafka is a distributed streaming platform. It lets you publish and subscribe to streams of records; it lets you store streams of  ... Read more


     LinuxVim       Oct 23, 2017   

When editing a html file in vim, the http links are automatically underlined by default. To disable it do the following. $cp /usr/share/vim/vim72/synta  ... Read more


     Linux       Oct 23, 2017   

Sometimes I need to copy files from my windows laptop to my Linux server.  One easy way to do is to use pscp. pscp is an SCP client which can run on W  ... Read more


     Golang       Sep 20, 2017   

Golang's package expvar exp oses var iables via HTTP.  Operations on the exposed varibles are atomic. It can be used for the purpose of web page ana  ... Read more


     Linux       Aug 06, 2017   

~/.config/sxhkd/sxhkdrc file # # wm independent hotkeys # # terminal emulator alt + Return gnome-terminal # program launcher alt + space dme  ... Read more


     Linux       Aug 06, 2017   

Follow the instructions descibed in bspwm for dummies and https://github.com/baskerville/bspwm/wiki to install bspwm. Install dmenu. sudo apt-get ins  ... Read more


     Linux       Apr 28, 2017   

imagemagick software suite is used to processing images on Linux. It can be used to capture screen as well. $ sudo aptitude install imagemagick To ca  ... Read more


     Computer Science       Apr 20, 2017   

x ^ 0s = x x & 1s = x x & x = x x | x = x x | 0s = x x ^ 1s = ~x x ^ x  = 0s x & 0s = 0s x | 1s = 1s a ^ b ^ a = b a ^ b ^ b = a Shifting  ... Read more


     Golang       Apr 20, 2017   

Interface in Go is a type which provides a way to specify the behavior of objects: if something can do this, then it can be used here. So interface is  ... Read more


     Golang       Apr 20, 2017   

RPC server registers two paths ( /_goRPC_ and /debug/rpc ) and their handlers as HTTP server. The handler of /debug/rpc handles the http requests and  ... Read more


     Golang       Apr 20, 2017   

This is an example that access exported members from a unexported struct. // pk/pk.go package pk type point struct { X, Y int } func NewPoint(x,  ... Read more


     Golang       Apr 20, 2017   

1. strings.Reader func NewReader(s string) *Reader 2. bytes.Buffer implements io.Reader, io.Writer interface. func NewBuffer(buf []byte) *Buffer fun  ... Read more


     Golang       Apr 20, 2017   

func SHA1(s string) []byte { h := sha1.New() io.WriteString(h, s) v := h.Sum(nil)  ... Read more


     Golang       Apr 20, 2017   

init function is executed before main function and after all global variable declarations have evaluated (including the varibles and init functions de  ... Read more




Older Posts