Blog

Blog Post Image
Using Streams for Validation in Flutter.

Asynchronous programming in Dart is characterised by the Future and Stream classes.

Read More
Blog Post Image
Understanding Recursive Queries in Postgres

Postgres provides us a way to write queries which are recursive in nature and fetches the data till the termination condition is met. This can be achieved using Common Table Expressions (CTE).

Read More
Blog Post Image
Prediction from Conditionally Dependent Data in Machine Learning

Recently we have delivered prediction system for our client which has different data set with almost 95% categorical and 5% nominal features. The data set looks like a recommendation problem but we need to do a prediction out of it.

Read More
Blog Post Image
Flutter Connectivity Using StreamProvider

In mobile application development, developing apps based on the user network connectivity and also managing the app state is very important.

Read More
Blog Post Image
Firefox + Selenium - Disable JSON Formatting

Firefox has got its mojo back because of two major reasons. One, because of itself and other is with the help of its competing browser Chrome. Primarily, Firefox decided enough was enough and rebuilt itself from scratch with performance in mind - Project Quantum. Secondly, Google made a strategic decision (or rather horrendous) to milk users’ time and not honoring the promise it came up with initially when Chrome was launched - to limit abilities of 3rd party extensions (Ad blockers in particular) under a false pretense of Privacy.

Read More
Blog Post Image
Update environment variables to Rails on Kubernetes on runtime

We all love deploying to Kubernetes without a full deploy via rolling update. Rolling update is a great feature of Kubernetes. It makes sure requests are served even while new container is being deployed. This works great only when we have scaled the pods to at least 2. Kubernetes makes sure requests are still served through old pods until new pods are ready and switches the ingress to point new pods once it is ready.

Read More
Blog Post Image
Test effectively using Factory Bot

Before jumping headfirst into FactoryBot, we will see the need for such a library. If you want to test your application thoroughly, its mandatory to setup the system at right state and run the unit tests against that state. At times, setting up the test data is not that trivial for many reasons,

Read More
Blog Post Image
Responsive Web Design — device resolution and viewport width.

In short, the purpose of this article is to explain how RWD’s viewport width is calculated based on device screen resolution.

Read More
Blog Post Image
Delete duplicate records in PostgreSQL table without any unique column.

You want to delete the duplicates of a table which does not have any unique column like ID. Then this ctid is useful to delete duplicate even without the unique column. ctid is a system column on the PostgreSQL database.There are several system columns like this. Check this for more https://www.postgresql.org/docs/9.3/ddl-system-columns.html

Read More
Blog Post Image
Deploying python packages to lambda layers using Serverless Plugin

Packaging dependencies for lambda functions has two major points to be considered. One the libraries which has native os dependencies .Other one is deploying the libraries to lambda layers instead of packing it along with functions.

Read More
Blog Post Image
Better Dask Than Spark

I like to meddle with Data. I wanted to be a A.I guy when I was in college, but we were not allowed to take that elective, and A.I then was very different than its now. Back in 2004, 1 GB was considered a luxury, only very few carried laptops, desktops were computers then, and no iPhones then. People were having less devices that spied on them.

Read More
Blog Post Image
Vim — a Powerful Editor

If you want to see a demo of how all these editors would look like, take a look at this awesome History video from Thoughtbot.

Read More