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

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 ...

How to use chatgpt API with Laravel?

OpenAI launched ChatGPT at the end of 2022, as you may already know. As everyone knows, ChatGPT is a very powerful tool...

What is regex /g meaning?

In regular expressions, the "/g" flag is a modifier that can be added to a pattern to search for all occurrences of tha...