Snippet: Disabling Sentry for Test environments in Ionic

First, we need to setup Environment variables in Ionic, unfortunately, there is no easy recommended way of doing that, here's an open issue. Github user fiznool has provided with a really nice solution with 0 dependencies. This is my preferred approach. There are a bunch of other methods on the issue as well, so do … Continue reading Snippet: Disabling Sentry for Test environments in Ionic

Advertisements

Missing guide to notifications on your Cordova app

While there're hundreds of posts which tell you how to set up notifications using the Firebase FCM plugin, there is no post that helps you to take your notifications to production. This post tries to be an end to end guide for being able to setup Firebase notifications on your app. Setup As I mentioned … Continue reading Missing guide to notifications on your Cordova app

Failure resilient model using circuit breakers for Microservices

This one is a long pending article on my drafts. I gave this as a talk roughly a year ago at Rootconf, but got buried under other things. If you're thinking, why microservices? Does everyone need microservices? It makes a lot of sense for a big company to not deploy on a single code application(imagine … Continue reading Failure resilient model using circuit breakers for Microservices

Django middlewares with Rest Framework

Due to some design decisions in Django Rest Framework, the request.user is not available in the middleware request layer but only the views layer. Which means any extensible middlewares that you can think of getting, will not have access to the user object. Some examples of top off my head: apps like django-auditlog, django-simple-history, a … Continue reading Django middlewares with Rest Framework

E2E tests for Ionic using Appium (or any other Hybrid app)

Ionic is a popular framework in the world of hybrid app development. Sadly, it is well known that app testing isn't really a major thought given by the framework designers. I believe it makes it a really bad choice for anyone who wants to write a production app using Ionic. Any good framework should encourage … Continue reading E2E tests for Ionic using Appium (or any other Hybrid app)

Natural keys as Primary keys

Any Database designer looking at the post title would cringe. So would I for the next time. This post is a walk through of an example why it is a horrendous idea to do the above. Yup it’s my embarrassing story of bad design. With the beginning of LeanAgri's product development, one of the things … Continue reading Natural keys as Primary keys

Web Crawling with NodeJS, it’s an interesting world!

Today's some fun time! I'll try to scrape a website, I wanted something simple but unique, so I chose to scrape Google search results(Oh the irony!) I am not at all a Javascript expert, but picking up NodeJS seems to be really much more fun than the days of doing Python based scraping(yes I am … Continue reading Web Crawling with NodeJS, it’s an interesting world!