give more...

I’m currently reading a book called Give and Take, it made me realize the value of sharing on my blog and in everyday life, I hope to write more about things that I can give value to others as well as a constant reminder of things that have given me lots of “Aha” moments in my career as a Software Developer. I really like the quote inside a quote in the book:...

March 5, 2018 · 1 min · Zakatell Kanda

golang: defer inside a for loop

So I have an infinite for loop however I want to use defer to make my intention clearer. Problem is this defer would never run because my function wouldn’t return. This, in turn, would give you memory leak. As neat as it could be, you can use a closure/anonymous function for this. for x := 0; x < 2; x++ { func() { defer fmt.Println(x) }() } Real world use case: So what I’m trying to do is to have an infinite polling using context on AWS SQS to add a timeout if something is wrong with SQS(this can be anything from network errors to aws being down, it can happen)....

August 2, 2017 · 1 min · Zakatell Kanda

running elasticsearch on a 2gb digital ocean droplet

So I want to run Elasticsearch on a very limited memory machine and I keep running on this error: cannot allocate memory. Did some research and found this docs on increasing max_map_count: echo "vm.max_map_count=262144" | sudo tee -a /etc/sysctl.conf sudo sysctl -w vm.max_map_count=262144 But the problem still persists, turns out memory still actually still not enough. I want don’t to upgrade the memory since I just want to test things out and I have no plan on running it on production....

July 3, 2017 · 1 min · Zakatell Kanda

gophercon sg 2017 reflection

This is the first time attending a conference outside my country. It was pretty exciting and scary because I’m going alone but nonetheless it was an amazing experience. I met a couple of interesting people and mostly I think it boosts more my confidence in traveling. The first day was all about learning Go for Intermediate developers by William Kennedy. I learned quite a lot, although I’ve been using Go in work for some time now, I admit that I still have a long way to go....

May 27, 2017 · 3 min · Zakatell Kanda

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