golang impression

I’ve been very excited to use Go at work and somehow very refreshing, been meaning to learn it for some time but it’s easier for me to learn if I actually see it in action. So far it’s been very nice, though of course, some stuff is not so easy. Here’s one trivial matter. First using it with Python feel like I’m lost when context switching. Our main application is written in Python/Django and we are slowly trying to build microservices around it....

May 20, 2017 · 2 min · Zakatell Kanda

aws rds postgres - error: must be member of role

I recently had to add a user for postgres in AWS RDS but it’s giving me this error: ERROR: must be member of role "test" So here’s what I did: First, create a user with CREATEDB capability: CREATE USER testuser WITH CREATEDB PASSWORD 'testpassword'; \q Connect again with this new user and create the database: CREATE DATABASE testdb OWNER testuser; That’s it.

March 31, 2017 · 1 min · Zakatell Kanda

upgraded windows on my dual boot laptop causes problems on bootloader.

So I upgraded my Windows partition to latest insider preview and it kind of messed up my laptop. Here’s the error message: EFI stub: ERROR: failed to read file. Trying to load files to higher address EFI stub: ERROR: failed to read file. Here’s the step I did to resolved it. Boot in an ArchLinux liveusb. Mount your root and boot partition. Chroot into it. And reinstall the bootloader. mkinitcpio -p linux bootctl install Reboot and it should be good now....

January 30, 2017 · 1 min · Zakatell Kanda

installing python packages directly from github using pip

Recently, I needed to install a package directly from Github which I’m trying to contribute into. For example, you have this url: https://github.com/zkanda/lambda-uploader What you can do is just add git+ as a prefix in the URL. Here’s how you can do it! pip install git+https://github.com/zkanda/lambda-uploader But I want to install a code in another branch, so how do we do it? We just add @branch_name at the end of the url....

December 5, 2016 · 1 min · Zakatell Kanda

setting a different vimrc and runtime for vim

Today, I decided to update my script and search for a way to easily change how I can load vimrc and .vim/ directory. And vim provides a very convenient way to do it using the environment variable. VIMINIT - for switching vimrc. VIMRUNTIME - for the .vim directory. You can use it like this: VIMINIT=/path/to/custom/vimrc vim and VIMRUNTIME=/path/to/.vim vim You can combine them both as well. Click here for the relevant docs

November 29, 2016 · 1 min · Zakatell Kanda