webdev

How to Solve ‘Class NumberFormatter not found’ in Laravel

How to Solve ‘Class NumberFormatter not found’ in Laravel

The error Class 'NumberFormatter' not found in Laravel typically occurs when the intl extension is not installed or enabled in your PHP environment. The NumberFormatter class is part of the intl (Internationalization) extension. Check PHP Extension Make sure that the intl extension is installed and enabled.For Ubuntu/Debian: sudo apt-get install php-intl Enter fullscreen mode Exit fullscreen mode For CentOS/RHEL: sudo yum install php-intl Enter fullscreen mode Exit fullscreen mode For Windows:Open your php.ini file.Uncomment the line ;extension=intl by removing the semicolon (;). Restart Your Web Server After installing or enabling the intl extension, restart your web server to apply the…
Read More
Angular Routing and Navigation Made So Easy A Child Could Do It

Angular Routing and Navigation Made So Easy A Child Could Do It

As a junior developer one of the things that made it easier for me to navigate the code of large scale applications was understanding the concept of routing and navigation. This post focuses on the fundamentals of routing in Angular. It does not include more advanced concepts like route guards. I feel that once you strip away some of the complexities of code and focus on the fundamentals then the code becomes easier to understand. After that, you fill in the details (i.e. add back the complexity). Here I am demonstrating the fundamental concepts of routing in a story book…
Read More
Lighthouse vs. PageSpeed Insights: The Lack of Correlation

Lighthouse vs. PageSpeed Insights: The Lack of Correlation

What's the problem? Have you ever run PageSpeed Insights (PSI) on your website only to receive a wildly different performance score than when running Lighthouse via Chrome Developer Tools? Let me show you what I mean: The overall scores are relatively similar, but there is almost no correlation between the metrics that make them up. This is a problem because you cannot run PageSpeed Insights on your local build of the website, forcing you to publish any changes and test them online, which is slow, inconvenient, and a bad practice. The reason for the discrepancy PageSpeed uses Lighthouse under the…
Read More
Unlocking the Power of JSON Web Tokens: Demystifying Authorization and Authentication in Node.js

Unlocking the Power of JSON Web Tokens: Demystifying Authorization and Authentication in Node.js

In the vast digital landscape of today's interconnected applications, ensuring secure access and protecting user data are of paramount importance. As developers, we need reliable tools to handle authorization and authentication effectively. Enter JSON Web Tokens (JWTs), a compact and self-contained way to securely transmit information between parties as a JSON object. In the realm of Node.js, JWTs have emerged as a popular choice for implementing authorization and authentication mechanisms. In this blog post, we will dive into the world of JWTs, exploring their inner workings and uncovering how they can bolster the security of your Node.js applications. So fasten…
Read More
VSCode Tip 3: Leverage the Integrated Terminal

VSCode Tip 3: Leverage the Integrated Terminal

The integrated terminal in VSCode is a powerful tool that allows you to run command-line tools from within the editor, enhancing your productivity by reducing context switching. How to Use the Integrated Terminal: Open the Terminal: Use the shortcut Ctrl +(backtick) on Windows/Linux orCmd + `` on Mac. Alternatively, go to the top menu and select View > Terminal. Multiple Terminals: You can open multiple terminals and switch between them using the dropdown menu in the terminal panel. Use the + icon to open a new terminal and the trash can icon to close a terminal. Split Terminals: Click the…
Read More
Is Web development oversaturated

Is Web development oversaturated

I signed up for various freelance websites and what I realized is web development is extremely over-saturated, some jobs would get posted and literally 1 minute later 35 Indian proposals with the minimum price from people who barely speak English and didn't even read the job description I couldn't even get a job because by the time I finished reading the job requirements which takes like 3 minutes the number of proposals is over 50. I read a few comments on reddit about how a ton of people are getting into CS, mass immigration from countries where everyone is into…
Read More
9 Cutting-Edge Web Dev Resources You Should Be Using Now

9 Cutting-Edge Web Dev Resources You Should Be Using Now

Hey, developers! The web is a live thing, growing constantly, and it demands new skills and technologies.Whether you're an experienced full-stack developer or a passionate front-end developer, staying ahead of the curve is essential. This blog goes into 9 under-the-radar sites that deal with different development needs. From UI/UX magic to lightning-fast back-end solutions, we'll look at technologies that will take your projects to the next level. So grab your favorite drink and let's get started! 1. Chakra UI This library is a beautiful set of accessible, reusable UI components created using React. Chakra UI stands out for its theming…
Read More
[Roast: Day 16] – My `utils` Folder

[Roast: Day 16] – My `utils` Folder

The majority of the work today has been continuations of work from yesterday, just implementing business logic on the routes of my application. So, I figured I’d take a break from writing about that to talk about three functions that I’ve created to do very specific things in my application. What's a utils folder? This is the directory where you put all of your little functions that have a hard time finding a home, but your application couldn’t live without them. A utils folder is the dumping ground for the unsung heros of many applications. When you have to perform…
Read More
NextJs Server Actions: Why and How

NextJs Server Actions: Why and How

What is a Server Action? A server action is a function that runs on the server side of an application. It is used to fetch data from an API and render it on the server side. This is useful for SEO purposes because it allows search engines to index the content of your website. What are NextJs Server Actions? NextJs is a React framework that allows you to build server-side rendered applications. NextJs server actions are functions that run on the server side of a NextJs application. They allow you to execute server-side code during the request lifecycle, giving you…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.