Akshay Deo


Securing Electron app source code

#Electron #Obfuscation #Craco #NodeJS #Terser #Webpack

Electron is one of the best ways for building cross-platform desktop apps. When I was evaluating a toolkit for building Viwr, Electron was a clear winner over nw.js and Qt-based on the community, resources and available libraries.


How did I improve latency by 700% using sync.Pool

#Golang #sync.Pool #Concurrency #Performance

We @media.net write superfast backends with at max 30-40ms turn-around time from web-service. We continuously try to reduce money spent per request. This blog enlists a few of our findings.


Golang: Returning errors with context

#Golang #Notes #Errors

Usually in Golang, it is recommended that, while propagating errors outside, just return the error do not log it. This blog by Dave Cheney talks in length about how shall we handle logging and errors. But while returning/propagating errors, somtimes it becomes necessary to add the context of the error along with the actual error.


Shipping your Android SDK anytime on live devices

#Android #SDK #Dex #Classloader #Dexloader

As per the new Play store guidelines, this method is categorized as an illegal way of executing any functionality on user’s device. I personally won’t recommend this method anymore.


How to use packages specifically for Debug/Release builds in Android

#Android #Gradle #Android Studio #Build #Android build flavors

Preface

Currently I am working on an Android app for one of the most interesting startups in Fintech. I have been really choosy about the packages that are getting shipped with this app, simply because it involves a lot of money related functionalties. During the development, I came across a requirement that debug builds should have instabug integrated for reporting UI issues easily. APK size matters a lot, so I wanted to achieve this without shipping Instabug SDK in production builds.


Docker + Golang web apps using Godep on AWS with Elastic Beanstalk using CodeShip

This post is pretty old, and I no longer use any of the tech mentioned in this post and won’t recommend anyone to use. (Except Go, which I still love the most, probably more)


map to struct in Golang

#golang #json #json parsing #json to struct

Recently I was working with a piece of code where I had to convert a JSON into a Golang struct. I faced hell lot of issues, and waster a bit of time in achieving that, so thought of documenting it.


Writing Android app with Kotlin

#Android #Kotlin

When I read about Kotlin, I thought of it as a functional port of Java which is (100% interoperable with Java). I have been playing with Scala for a bit. The biggest trouble I had with Scala is wide range of semantic alternatives. But it seems like, Kotlin has a decisive approach towards making Java more functional and more compact for developers.


Creating .keystore from .cert and .key

#Java #keystore

A quick note for creating .keystore using a set of certificates including root, intermediate and domain certs.


SetOnItemClickListener() is not working…and its’ because your layout structure is wrong

#Android

This is gonna be a quick post. I spent like last 45 mins solving a very dumb issue, related to setOnItemClickListener of a custom class extending GridView.