RSSAmplifier

Blog

HA Notes

haidrali.comRSS feed ↗9 posts

Latest posts

Exploiting abstraction while writing rails controllers

Abstraction is simple and beautiful while writing abstract code is an art. While writing web apps apart from writing business logic most of the time we end up writing CRUD operations (Create, Read, Update Delete). There are a bunch of methods available to generate boilerplate code i.e. scaffolding, custom generators, etc. which have their own [ ]

AWS S3 file upload from client side

Last week I pushed a new feature on production which involve file upload on AWS S3. When you are uploading file to S3 from frontend there is always a risk of exposing your AWS secrets to user, so you have following options to avoid this risk Involve server as middleware and upload via server API, you [ ]

Newbies Introduction to Ruby on Rails

Note: This tutorial is intended to newbies only who want to kick-start web development with Ruby on Rails. I will just share links to different resources and give tips based on my experience which may help you starting development with Ruby on Rails. Installation and Prerequisites Just like any other framework ruby on rails framework has [ ]

How pair programming helped me focus more

I am a big advocate of pair programming as I always feel more productive doing tasks in a pair because it tends to be a Get Things Done kind of attitude. Followings are reasons why I believe pair programming can help you more productive at certain stages The purpose of two programmers sitting on a single workstation [ ]

Data security in multi-tenant SaaS applications

Data is the core of SaaS and having shipped two SaaS products on production in last four years I feel developing SaaS application requires extra safety measures on data security as compared to developing a general purpose application such as Chatting apps, client based solution, etc. Since in SaaS application resources are shared among clients [ ]

Sidekiq dashboard customised for urdu language

Recently Mike Perham creator of SideKiq gem tweeted about support of Arabic and Farsi language in Sidekiq dashboard and call for Urdu language support. We’ve now got Arabic and Farsi support. Urdu, Hebrew, or any other RTL language welcome too! https://t.co/w57H2DaWry Mike Perham (@mperham) March 16, 2017 I being a native Urdu speaker and open [ ]

Rails faker gem customised for Pakistani locale

Ever since I am working in open source I always have had wished to contribute towards open source community and thank GOD today I have submitted my first ever pull request to Faker gem. I have added customised locale for Pakistani names, provinces, telephone numbers, postal codes etc. It is successfully merged to the original [ ]

Everyday terminal commands for Backend Developers

Today I am going to share most commonly used terminal commands for Backend Developers. I am a Backend developer and has been using these commands on a daily basis during development. I hope you will find some of them handy grep grep is one of the most commonly used terminal command, grep can be used [ ]

Let’s debug nginx, unicorn errors

This tutorial is particularly intended for nginx, unicorn and rails environment. But you can replace unicorn with any Rake web server i.e. puma, thin, passenger etc. which runs behind nginx since they all communicate with nginx through sock files and these sock files most of the time become root cause of errors. Hold a mug of coffee/tea and let s debug [ ]