Saturday, April 30, 2022

Don't blame those who don't flush the toilet. 

They save world's water.

Tuesday, April 19, 2022

Vim tips and tricks

Where is my .vimrc file?

It is in /etc/vim

How to change vim cursor view in insert mode?

In the /etc/vim/vimrc file, add the following lines:

let &t_SI = "\e[5 q"

let &t_EI = "\e[1 q"

Other options (replace the number after \e[):

Ps = 0  -> blinking block.

Ps = 1  -> blinking block (default).

Ps = 2  -> steady block.

Ps = 3  -> blinking underline.

Ps = 4  -> steady underline.

Ps = 5  -> blinking bar (xterm).

Ps = 6  -> steady bar (xterm).

Credits to this stackoverflow answer.

Website Cookies...

 Surprisingly, it is not necessary to press "Accept all" in the cookies pop up window. Usually people press "Accept all" automatically to get rid of annoying notification. However, we can also press "Deny all". For this, usually we need to press second choice button "Manage...". Then, when we deny cookies, the website doesn't kick us out and we can proceed with reading.

Monday, April 18, 2022

You cannot change Joe Biden. But you can change yourself.

Robert Kiyosaki

As far as I understand, this citation is about the following. When something bad happens, it is senseless to be angry on someone or somebody. Especially if this somebody is a powerful institution. It is like to be angry on tsunami or volcano. Instead, we should think how can we change ourselves. Tsunami is a teacher and we are students. It is up to us whether to take a lesson or not.