engineering

Hello World!

Hello World!

Hello, I'm Adin Fauzan from Indonesia, precisely in Gunung Putri, Bogor. I've been studying programming since the end of 2020, more precisely in 2021. At first I was confused about learning to code, but in 2021 I got direction from the Roadmap website, where I started learning to use Sumblime Text. I hope that in this dev.to community I can gain a lot of experience and get motivated to be able to achieve learning up to full-stack development hahaha. Source link lol
Read More
JoyCaption is amazing to caption training data. Advanced Gradio APP with batch processing and 1-click install

JoyCaption is amazing to caption training data. Advanced Gradio APP with batch processing and 1-click install

Here a Hugging Face space that you can test it yourself : https://huggingface.co/spaces/fancyfeast/joy-caption-pre-alpha — still working I have been requested to make a Gradio app for this so i made an advanced app and 1-click installers It uses a clip siglip-so400m-patch14–384 and Meta-Llama-3.1–8B-Instruct as model and a fine tuned checkpoint for better captioning My app who wants to checkout : https://www.patreon.com/posts/110613301 It has batch folder captioning feature as well and auto save all captioned images and captions into outputs folder Also I have a very lightweight, super fast Gradio caption editor. Since I don’t like other existing apps, i self…
Read More
16 Brand New APIs Every Developer Should Use

16 Brand New APIs Every Developer Should Use

If you looking to add some serious oomph to your next programming project, I’ve compiled a list of 16 brand new free APIs that can help you build amazing things, without rubbing the bank. Let’s dive in… ILovePDF APII bet we all love PDFs. The ILovePDF API lets you love PDFs even more.Extract text, edit, remove passwords, compress, convert, and more. This API is a must-have for any application that involves PDF manipulation. Free Dictionary APIThis API doesn’t require an API key and is powered by donations — props to them. You can build a simple dictionary app or integrate…
Read More
Solving the “Punycode Module is Deprecated” Issue in Node.js

Solving the “Punycode Module is Deprecated” Issue in Node.js

Hi everyone, my name is Asim Khan, and I am currently a full stack developer at Meta Melon. Recently, I encountered a frustrating issue while working on a project for Naseebi.com, a matrimonial mobile and web application. The issue involved the deprecation of the punycode module in Node.js, and I want to share my experience and solution with you. The Issue While working on the profile creation feature in the application, I encountered a 502 Bad Gateway error. After checking my server logs on AWS EC2, I found this warning: The punycode module is deprecated. Please use a userland alternative…
Read More
Building a Responsive Navigation Bar with Flexbox: Lessons from Wes Bos’ Course

Building a Responsive Navigation Bar with Flexbox: Lessons from Wes Bos’ Course

Flexbox is a powerful tool for creating responsive and flexible layouts. In this article, I'll walk you through the process of building a responsive navigation bar using Flexbox. This is from a lesson I've learned from Wes Bos' free Flexbox course, and this article is my way of internalizing and sharing what I've learned. Creating a Flexbox Navigation Bar In this example, I designed a simple navigation bar with multiple links, including social media icons, using Flexbox for layout control. The navigation bar is responsive and adapts to different screen sizes, thanks to Flexbox properties like display: flex, flex-wrap, and…
Read More
Mastering TypeScript Generics: Enhancing Code Reusability and Type Safety

Mastering TypeScript Generics: Enhancing Code Reusability and Type Safety

TypeScript has revolutionized the way we write JavaScript, bringing static typing and enhanced tooling to our development process. One of its most powerful features is generics, which allow us to create reusable components that work with a variety of types. In this post, we'll dive deep into TypeScript generics, exploring how they can improve your code's flexibility and type safety. Understanding Generics Generics provide a way to create components that can work over a variety of types rather than a single one. They're particularly useful when you want to create a component that can handle different data types without sacrificing…
Read More
Handling Timestamp Column Changes in Laravel Migrations with PostgreSQL

Handling Timestamp Column Changes in Laravel Migrations with PostgreSQL

When working with Laravel migrations, developers may encounter issues when trying to change a column's type to timestamp, especially in a PostgreSQL environment. The problem arises from Laravel's reliance on Doctrine DBAL, which doesn’t natively support the timestamp type. The Problem: When using the change() method in Laravel migrations, a DoctrineDBALException may be thrown, stating that the timestamp type is unknown. This is because Doctrine DBAL does not support certain native database types, like timestamp, out of the box. The Workaround: To address this issue, a practical solution is to avoid using change() and instead, drop the column and recreate…
Read More
Securing Microservices with Spring Security: Implementing JWT

Securing Microservices with Spring Security: Implementing JWT

JSON WEB TOKEN (JWT) JWT (JSON Web Token) is a method for securely transmitting information between two parties (such as a client and a server) as a JSON object. It's designed to be compact and URL-safe, making it easy to pass around in URLs, headers. Header Payload Signature HeaderThe header typically consist two parts: the type of the token (JWT) and the signing algorithm being used, such as HMAC SHA256 or RSA. {"alg":"HS256","typ":"JWT"} PayloadThis is where the actual data is stored. It can include information like the user ID, roles, expiration time, and other claims (data about the user or…
Read More
Understanding CloudFormation: Automating Infrastructure with IaC on AWS

Understanding CloudFormation: Automating Infrastructure with IaC on AWS

In today's cloud-driven world, automating infrastructure management is crucial for maintaining consistency, scalability, and efficiency. AWS CloudFormation is a powerful tool that allows you to define and manage your cloud infrastructure as code (IaC). In this guide, we'll explore the benefits of using AWS CloudFormation and walk through the process of setting up a simple stack to automate deployments. 1. What is AWS CloudFormation? AWS CloudFormation is a service that enables you to describe your cloud resources in code. This allows you to provision and manage resources like EC2 instances, S3 buckets, and VPCs in a consistent, repeatable manner. By…
Read More
Understanding Redux: A Beginner’s Comprehensive Guide

Understanding Redux: A Beginner’s Comprehensive Guide

Introduction: What is Redux and Why Do We Need It? As web applications grow in complexity, managing state becomes increasingly challenging. If you've ever found yourself tangled in a web of unpredictable state changes and difficult-to-track data flows, you're not alone. This is where Redux comes in as a lifesaver. Redux is a state management library for JavaScript applications, renowned for its effectiveness, particularly when used with React. By providing a predictable and centralized way to manage application state, Redux simplifies the process of tracking how data changes over time and how different parts of your application interact with each…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.