RSSAmplifier

Blog

Simplicity

minhajuddin.comRSS feed ↗20 posts

Latest posts

That one time when office365 was marking our emails as spam

In 2017, I was working for a company that was building an aggregation platform for hotel bookings. For some weird reason, for all the ema

How to fix cookies not persisting using CORS

I have been toying around with React to refresh my frontend skills (The last time I used full stack seriously was with backbone.js 😂). W

Memory Cached Tables for building faster web applications

Most web apps have a few small tables which don’t change a lot but are read a lot from, tables like settings or plans<

A baton server to test your Erlang/Elixir cluster

I have been dipping my feet into Distributed Systems and <a href="https://minhajuddin.com/2021/04/15/how-to-show-raspberry-pi-temperature

How to show Raspberry Pi temperatures in your Datadog dashboard

So, I’ve set up a cluster of 4 Raspberry Pis to learn and experiment with distributed systems. <img src="/2021/04/15/how-to-show-rasp

How to rename table using pg_dump or pg_restore

I am in the process of migrating the data from one of my side projects to a rewritten schema. While doing this, I wanted to keep the old

Moving a Rails managed database to Phoenix

I am moving my app from Rails to Phoenix and as part of this I have to move my database from being managed by Rails migrations to Phoenix

A simple way to store secrets using Parameter Store for your ECS applications

I have an ECS cluster for my side projects and need to pass secrets to the app. There are a few ways of doing it, and I think I found a n

How to do batch updates in postgresql for really big updates

So, you have a ton of records to update in a really large table. Say, you need to update 3 million records in a table with 100 million ro

Lazy functional ruby

Today, I was working with some ruby code that had to find the first product in one of the current contexts. Here is the code: <figure

How to know which of the Enum functions to use in Elixir

When you are writing functional code, it is sometimes difficult to figure out which of the Enum functions you want to use. H

How to control the enqueuing speed of Sidekiq jobs and their concurrency

At my work, we use ruby heavily and sidekiq is an essential part of our stack. Sometimes, I long for the concurrency primitives from Elix

How to create a web server using Cowboy without Plug or Phoenix - Part 01

Cowboy is an amazing web server that is used by Plug/Phoenix out of the box, I don’t think Phoenix supports any other web servers at the

My first SVG creation

SVG is amazing, I want to design the logo of my next company using it! <svg style='border: solid 1px #0f0' viewbox='0 0 200 200' stro

many_to_many relationships in Ecto and Phoenix - Screencast - Part 2

</iframe

many_to_many relationships in Ecto and Phoenix - Screencast - Part 1

</iframe

How to use a single aurora cluster for multiple databases each with its own restricted user

I have been playing around with terraform for the last few days and it is an amazing tool to manage infrastructure. For my AWS infrastruc

How to create temporary bastion EC2 instances using Terraform

I have recently started learning Terraform to manage my AWS resources, And it is a great tool for maintaining your infrastructure! I use

many_to_many relationships in Ecto and Phoenix for Products and Tags

The other day I was helping a friend set up a phoenix app which required the use of tags on products, we all have used tags in our day to

How to dump a partial/sample table(1000 rows) in postgres using pg_dump

The other day, I wanted to export a sample of one of my big Postgres tables from the production server to my local computer. This was a h