Ahmad Rosid

Software Engineer

Hi there 👋 thanks for coming, I write both short and long tutorials about web development mostly about Laravel, JavaScript, Rust and Golang.

Writing

How to create REST API with Express and ts-rest?

When you are working with Typescript to create REST API there are so many options you need to consider. But the most im...

How to cancel Javascript Fetch Request?

When you are working with network requests in your JavaScript app, you might encounter scenarios where you need to hand...

Building PHP Extension with Rust for Fun and Profit

Rust is one of the best languages that you can learn no matter where you are coming from, and one of the things that I ...

Creating Chat Widget with Next.js

When you have a website that offers services like web hosting, e-commerce, or anything, you most likely need to provide...

Building chatbot with Laravel and Openai Embedding

One of the limitations of the GPT model by OpenAI is that its knowledge is limited. As of the writing of this blog post...

Streaming OpenAI Responses in Laravel with Server-Sent Events (SSE)

When working with OpenAI in your Laravel project, implementing a streaming response can improve the user experience. Th...

Deploy Next.js to Firebase Hosting

When building a React project with Next.js, the common deployment option is Vercel. However, Firebase now provides a ne...

Fixing Python Firebase Auth HTTPResponse Error

If you are using Firebase authentication in python you might encounter this error. ```bash 'HTTPResponse' object has n...

How to install Postgres database in Ubuntu?

To install PostgreSQL on Ubuntu, you can follow these steps: 1. Open a terminal window on your Ubuntu machine. 2. Upd...

How to extract text from PDF file in Rust?

Working with PDF files in Rust is now easier. There are many libraries available that can make our lives easier when we...

Motion Graphic in JavaScript with motion-canvas

Today, we are going to have some fun with motion graphics in JavaScript. We are going to create simple animations like ...

React drag and drop with dnd-kit

If you need to create a drag-and-drop component, look no further than dnd-kit. This library is one of the most popular ...