PinnedMy Elixir Mix PodcastRecently, I got the opportunity to be a guest on Elixir Mix podcast. Though I was nervous(super nervous) but the hosts of the show Sascha Wolf, Adi Iyengar, and Allen Wyma were very welcoming and madeJul 23, 2022路1 min read路264
TIL: Debugging "Column Cannot Be Null" Error in MySQL despite nullable column definitionApr 29, 2025路2 min read路222
Implement Table DOM Search in Phoenix LiveViewSuppose you are working on a table in a LiveView project. This table has limited static data of not more than one page (you can avoid questions about pagination in the comment section 馃槉). From a user's point of view, it becomes hard to look into the...Sep 9, 2024路6 min read路134
Creating Tabular Representation of Database Indexes using Elixir Mix TaskRecently, while working on one of my personal Elixir projects. I came across a scenario where I needed to make some changes to the database schema.The changes mainly revolve around adding and removing indexes due to changes in the business requiremen...Jun 5, 2024路9 min read路677
Adding PDF generate feature in Phoenix LiveView appGenerating pdf is very common in day-to-day web applications. In E-commerce websites like Amazon when we do any shopping we get the option to get the invoice. It's not an easy task to implement it people often have a hard time implementing it because...Jan 9, 2024路6 min read路4.0K
TIL: How to add a form in a table in Phoenix LiveView?Suppose, we want to add an inline edit feature on a table row. It can be a little tricky to implement. I had a hard time implementing it because I wasn't about one of the concepts of HTML that we cannot add a form tag inside a table. Something like t...Jan 4, 2024路2 min read路395
TIL: Add the "download" attribute on the link tag when calling the download endpointDownloading pdf or any other documents is very common in day-to-day web applications. We often see buttons like Download, Generate Invoice, etc buttons in web applications that makes calls to a GET endpoint which does some computations and downloads ...Jan 3, 2024路2 min read路329
TIL: Use the `useMaster` property to fetch data from the write pool in Sequelize.Sequelize offers support for read replication, enabling the use of multiple servers for executing SELECT queries. In this configuration, you designate one or more servers as read replicas, while appointing one server as the primary writer. The primar...Dec 25, 2023路2 min read路348