| 2023-06-26 Linux Commands: Exploring the `printenv` Command for Environment Variables Linux Commands: Exploring the printenv Command for Environment VariablesThe printenv command is a useful tool for printing the values of environment variables in a Linux, macOS, or UNIX environment. In this guide, we will explore how to use ...
| 2023-06-26 How to Set Up Hot Reload on Electron How to Set Up Hot Reload on ElectronWhen developing an Electron app, it’s incredibly useful to enable hot reload functionality, which allows the application to update without requiring a restart. To achieve this, you can leverage the npm mo ...
| 2023-06-26 Using Git Submodules to Make a Portion of a Website Public Using Git Submodules to Make a Portion of a Website PublicWhen building a website on platforms like Netlify, it’s common to want to make certain parts of the website public on GitHub to allow for easy contributions from others. In this blog ...
| 2023-06-26 How to Pass Multiple Parameters to a Partial in Hugo How to Pass Multiple Parameters to a Partial in HugoWhen working with Hugo, you may encounter the need to pass multiple parameters to a partial. While it may initially appear to be a simple task, there is actually a trick to accomplishing t ...
| 2023-06-26 Configuring Visual Studio Code for JavaScript Development Configuring Visual Studio Code for JavaScript DevelopmentIn this blog post, I will guide you through the process of setting up Visual Studio Code (VS Code) for JavaScript development. Whether you are starting fresh or migrating to a new sys ...
| 2023-06-26 Recurring Revenue vs One-Time Revenue: Finding the Right Balance Recurring Revenue vs One-Time Revenue: Finding the Right BalanceRecurring revenue has always been a double-edged sword for me. On one hand, the idea of having a product with a steady stream of customers who pay a monthly or yearly fee sound ...
| 2023-06-26 How to Retrieve the Names of All Files in a Folder with Node.js How to Retrieve the Names of All Files in a Folder with Node.jsIn this tutorial, we will learn how to obtain the names of all the files in a specific folder using Node.js. This can be achieved by utilizing the built-in fs module provided by ...
| 2023-06-26 Understanding the ArrayBufferView Object and its Usage Understanding the ArrayBufferView Object and its UsageThe ArrayBufferView object serves as a subset of the ArrayBuffer, comprising an offset and a specific length. By creating an instance of the ArrayBufferView object, you gain access to th ...
| 2023-06-26 Variables and Types in Go: Understanding the Basics Variables and Types in Go: Understanding the BasicsIn Go, variables are defined using the var keyword. You can define variables at the package level or inside a function. At the package level, a variable is visible across all the files tha ...
| 2023-06-26 The Channel Messaging API: Facilitating Communication Between iframes and Workers The Channel Messaging API: Facilitating Communication Between iframes and WorkersThe Channel Messaging API provides a means of communication between iframes and the main document thread. This allows for the passing of messages between diffe ...
| 2023-06-26 The WebP Image Format: Generate Smaller and Better-Looking Images The WebP Image Format: Generate Smaller and Better-Looking ImagesIntroduction WebP is an Open Source image format developed by Google that offers the ability to generate smaller images compared to JPG and PNG formats while maintaining high ...
| 2023-06-26 Removing the First Character of a String in JavaScript Removing the First Character of a String in JavaScriptIf you’re looking to remove the first character from a string in JavaScript, there is a simple and efficient solution available. By using the slice() method, you can easily achieve this ...
| 2023-06-26 JavaScript Reference: String JavaScript Reference: StringLearn about the various properties and methods of the JavaScript String object. The String object has a static method called String.fromCharCode() that allows you to create a string representation from a sequence ...
| 2023-06-26 How to Get the Scroll Position of an Element in JavaScript How to Get the Scroll Position of an Element in JavaScriptWhen developing a user interface in the browser, it is often necessary to determine the current horizontal and vertical scrolling position of a scrollable element. So, how can you ac ...
| 2023-06-26 Introduction to Yeoman Introduction to YeomanYeoman is a powerful tool that simplifies the setup and management of web app projects. It is a collaboration of respected developers who have come together to provide an easy and convenient solution for developers. By ...
| 2023-06-26 Applying the Scarcity Principle to Software Products Applying the Scarcity Principle to Software ProductsUnderstanding and leveraging the concept of scarcity can greatly benefit your software-based business. Scarcity creates a sense of urgency and urgency often leads to increased desire and a ...
| 2023-06-26 How to Handle Errors in PHP: Best Practices How to Handle Errors in PHP: Best PracticesAs developers, we all make mistakes. Whether it’s forgetting a semicolon, using the wrong variable name, or passing the incorrect argument to a function, errors are a part of the programming proces ...
| 2023-06-26 The FileList Object: An Overview and Usage Guide The FileList Object: An Overview and Usage GuideLearn about the FileList object and how to effectively utilize it for file uploads. When working with an HTML form that includes an <input type="file" /> element, you will inte ...
| 2023-06-26 How to Fix the TypeError: Cannot Assign to Read Only Property 'exports' of Object '#' Error How to Fix the TypeError: Cannot Assign to Read Only Property ‘exports’ of Object ‘#‘ ErrorWhile working on a project, you might encounter the following error: 1TypeError: Cannot assign to read only property 'exports' of object &# ... | 2023-06-26 How to Hide Classes in VS Code How to Hide Classes in VS CodeI recently discovered a fantastic VS Code extension called Tailwind Fold that has greatly improved my coding experience. One of its standout features is the ability to hide all classes in JSX and HTML files by ... | 2023-06-26 JavaScript Symbols: Explained and Utilized JavaScript Symbols: Explained and UtilizedSymbols are a unique and powerful data type in JavaScript, introduced in ECMAScript 2015. Unlike other primitive data types like strings, numbers, booleans, null, and undefined, symbols have a disti ... | 2023-06-26 How to Cache Data in Next.js Globally Across All Pages at Build Time How to Cache Data in Next.js Globally Across All Pages at Build TimeWhen working on a Next.js-based website, you might encounter the need to fetch data from an API at build time. In this article, I’ll share a solution that works both in dev ... | 2023-06-26 The Ultimate Guide to HTTP Requests with Curl The Ultimate Guide to HTTP Requests with CurlCurl is a command-line tool that allows you to transfer data across the network. It supports a wide range of protocols, including HTTP, HTTPS, FTP, FTPS, SFTP, IMAP, SMTP, POP3, and more. This to ... | 2023-06-26 Finite State Machines: A Simplified Explanation Finite State Machines: A Simplified ExplanationTags: State Machines, Finite State Machines, Traffic Lights, Modeling, State Transitions Finite State Machines (FSMs) are a key concept in computer science, and they have become increasingly po ... | 2023-06-26 A Complete Introduction to Apollo, the GraphQL Toolkit A Complete Introduction to Apollo, the GraphQL ToolkitApollo is a suite of tools that allows developers to create and consume GraphQL APIs. In this article, we will explore Apollo in detail, focusing on both Apollo Client and Apollo Server. ... | 2023-06-26 The isExtensible() Method in JavaScript Objects The isExtensible() Method in JavaScript ObjectsIn JavaScript, the isExtensible() method is used to determine if new properties can be added to an object. This method checks the extensibility of an object, which means if it can be modified t ... | 2023-06-26 Setting Goals for Your Blog: A Path to Success Setting Goals for Your Blog: A Path to SuccessStarting a blog can serve various purposes, depending on your personal goals and aspirations. Each blogger has their own unique ambitions, motivations, and starting points. In this article, we w ... | 2023-06-26 How to Add an \"Open in VS Code\" Icon in macOS Finder How to Add an “Open in VS Code” Icon in macOS FinderAre you tired of the hassle of opening a folder in VS Code from the Finder in macOS? There’s no need to worry anymore because I’ve got a solution for you. With just a few simple steps, you ... | 2023-06-26 Vue.js Component Props Vue.js Component PropsComponent Props play a crucial role in passing down state to child components. In this blog post, we will explore various aspects of props and how to use them effectively. Table of Contents Define a prop inside the com ... | 2023-06-26 An Introduction to the C Programming Language An Introduction to the C Programming LanguageLearn the basics of C, a widely used programming language C is one of the most popular programming languages and is widely used in computer science courses around the world. It is also commonly l ... | 2023-06-26 Introduction to Swift and iOS Development for Web Developers Introduction to Swift and iOS Development for Web DevelopersWelcome to the first installment of our Swift and iOS application development tutorial series. Whether you are an experienced web developer or just starting out, this series will g ... | 2023-06-26 How to Use Redis Hashes for Storing Object-like Items How to Use Redis Hashes for Storing Object-like ItemsIn previous articles, we learned about using Lists and Sets to associate a key with a single value or a group of values. However, there are cases where we need to associate multiple value ... | 2023-06-26 Learn how to Use Redux to Manage your Application State Learn how to Use Redux to Manage your Application Statetags: [“Redux”, “state management”, “React”, “JavaScript”] Redux is a popular state management library that is commonly used with React applications, although it can be used with other ... | 2023-06-26 Linux commands: alias Linux commands: aliasIn this article, we will explore the alias command, which is used to create shortcuts to other commands. This can be incredibly useful when you frequently use specific command options or combinations. Let’s consider the ... | 2023-06-26 How to Break Out of a For Loop in JavaScript How to Break Out of a For Loop in JavaScriptLearn the different methods to break out of a for or for..of loop in JavaScript. Imagine you have a for loop like this: 1234const list = ['a', 'b', 'c'];for (let i = ... | 2023-06-26 CSRF (Cross-Site Request Forgery) - A Comprehensive Guide CSRF (Cross-Site Request Forgery) - A Comprehensive GuideCSRF, short for Cross-Site Request Forgery, is one of the most common web attacks, along with XSS and SQL Injection. In simple terms, CSRF attacks trick users into performing unintend ... | 2023-06-26 Developers, Mastering the Art of Marketing Developers, Mastering the Art of MarketingIn today’s digital world, being a developer with marketing skills is a powerful combination. As a digital entrepreneur, you need to not only create a product but also know how to effectively bring i ... | 2023-06-26 How to Run JavaScript Snippets Easily How to Run JavaScript Snippets EasilyWhen it comes to testing or experimenting with JavaScript code, there are several convenient tools that I rely on. These tools make it easy to run little snippets of JavaScript and quickly see the result ... | 2023-06-26 The Node Core Modules: A Comprehensive Overview The Node Core Modules: A Comprehensive OverviewNode.js, a popular runtime environment for executing JavaScript code on the server-side, comes with a rich set of core modules. These modules are included in the Node.js installation and provid ... | 2023-06-26 Working with the DevTools Console and the Console API Working with the DevTools Console and the Console APIEvery browser provides a console that allows you to interact with the Web Platform APIs and view messages generated by your JavaScript code. In this article, we will explore how to work w ... | 2023-06-26 Disconnecting Your Earnings from Hours Worked Disconnecting Your Earnings from Hours WorkedDiscover how to break free from the traditional model of earning money based on the hours you work, and instead generate income based on the number of products sold. As an employee or freelancer, ... | 2023-06-26 An Introduction to COBOL: The Language Behind Financial Systems An Introduction to COBOL: The Language Behind Financial SystemsCOBOL may be a name you’ve heard before, but it’s not just a relic of the past. In fact, it plays a critical role in the functioning of banks and financial institutions. With ov ... | 2023-06-26 How to Implement Lazy Loading for Images in Hugo How to Implement Lazy Loading for Images in HugoWhen I recently launched the new home for my ebooks on The Valley of Code, I realized that the large number of images was impacting the loading time and increasing my hosting bill. Each page w ... | 2023-06-26 SQL Injection: Protecting Your Application from Attacks SQL Injection: Protecting Your Application from AttacksSQL injection poses a significant threat to database-driven applications that rely on SQL queries. The vulnerability lies in the lack of input sanitization, which allows attackers to ma ... | 2023-06-26 The JavaScript Global Object: Explained and Demystified The JavaScript Global Object: Explained and DemystifiedThe JavaScript global object is a collection of properties, functions, and objects that can be accessed globally without the need for a specific namespace. In this blog post, we will de ... | 2023-06-26 How to Retrieve Server-Side Cookies in a Next.js App How to Retrieve Server-Side Cookies in a Next.js AppAccessing cookies while server-side rendering in a Next.js app can present challenges. In this blog, I will share my solution to this problem. I recently encountered an issue with my Next. ... | 2023-06-26 Ensuring an Image Upload is Smaller than a Specific Size Ensuring an Image Upload is Smaller than a Specific SizeWhen creating a form that allows users to upload images, it is sometimes necessary to impose restrictions on the file size. For instance, let’s say we want to limit the image size to 3 ... | 2023-06-26 Next.js: Fixing a Blank Page Issue After `res.redirect()` in API Routes Next.js: Fixing a Blank Page Issue After res.redirect() in API RoutesIn my Next.js project, I encountered an issue where calling res.redirect('/') in an API route resulted in a blank page on Vercel after the redirect. Surprisingly, ... | 2023-06-26 Accepting Command Line Arguments in Python Accepting Command Line Arguments in PythonWhen running a Python program from the command line, you have the ability to pass additional arguments and options. This can be done by using the sys module from the standard library. However, handl ... | 2023-06-26 Dynamic Routes in Laravel: Building SEO-Friendly URLs Dynamic Routes in Laravel: Building SEO-Friendly URLs This tutorial is part of the Laravel Handbook. Download it from https://flaviocopes.com/access/ In Laravel, creating static routes in the routes/web.php file is a common practice. Howev ... ← Prev1…1213141516…68Next →
| 2023-06-26 How to Hide Classes in VS Code How to Hide Classes in VS CodeI recently discovered a fantastic VS Code extension called Tailwind Fold that has greatly improved my coding experience. One of its standout features is the ability to hide all classes in JSX and HTML files by ...
| 2023-06-26 JavaScript Symbols: Explained and Utilized JavaScript Symbols: Explained and UtilizedSymbols are a unique and powerful data type in JavaScript, introduced in ECMAScript 2015. Unlike other primitive data types like strings, numbers, booleans, null, and undefined, symbols have a disti ...
| 2023-06-26 How to Cache Data in Next.js Globally Across All Pages at Build Time How to Cache Data in Next.js Globally Across All Pages at Build TimeWhen working on a Next.js-based website, you might encounter the need to fetch data from an API at build time. In this article, I’ll share a solution that works both in dev ...
| 2023-06-26 The Ultimate Guide to HTTP Requests with Curl The Ultimate Guide to HTTP Requests with CurlCurl is a command-line tool that allows you to transfer data across the network. It supports a wide range of protocols, including HTTP, HTTPS, FTP, FTPS, SFTP, IMAP, SMTP, POP3, and more. This to ...
| 2023-06-26 Finite State Machines: A Simplified Explanation Finite State Machines: A Simplified ExplanationTags: State Machines, Finite State Machines, Traffic Lights, Modeling, State Transitions Finite State Machines (FSMs) are a key concept in computer science, and they have become increasingly po ...
| 2023-06-26 A Complete Introduction to Apollo, the GraphQL Toolkit A Complete Introduction to Apollo, the GraphQL ToolkitApollo is a suite of tools that allows developers to create and consume GraphQL APIs. In this article, we will explore Apollo in detail, focusing on both Apollo Client and Apollo Server. ...
| 2023-06-26 The isExtensible() Method in JavaScript Objects The isExtensible() Method in JavaScript ObjectsIn JavaScript, the isExtensible() method is used to determine if new properties can be added to an object. This method checks the extensibility of an object, which means if it can be modified t ...
| 2023-06-26 Setting Goals for Your Blog: A Path to Success Setting Goals for Your Blog: A Path to SuccessStarting a blog can serve various purposes, depending on your personal goals and aspirations. Each blogger has their own unique ambitions, motivations, and starting points. In this article, we w ...
| 2023-06-26 How to Add an \"Open in VS Code\" Icon in macOS Finder How to Add an “Open in VS Code” Icon in macOS FinderAre you tired of the hassle of opening a folder in VS Code from the Finder in macOS? There’s no need to worry anymore because I’ve got a solution for you. With just a few simple steps, you ...
| 2023-06-26 Vue.js Component Props Vue.js Component PropsComponent Props play a crucial role in passing down state to child components. In this blog post, we will explore various aspects of props and how to use them effectively. Table of Contents Define a prop inside the com ...
| 2023-06-26 An Introduction to the C Programming Language An Introduction to the C Programming LanguageLearn the basics of C, a widely used programming language C is one of the most popular programming languages and is widely used in computer science courses around the world. It is also commonly l ...
| 2023-06-26 Introduction to Swift and iOS Development for Web Developers Introduction to Swift and iOS Development for Web DevelopersWelcome to the first installment of our Swift and iOS application development tutorial series. Whether you are an experienced web developer or just starting out, this series will g ...
| 2023-06-26 How to Use Redis Hashes for Storing Object-like Items How to Use Redis Hashes for Storing Object-like ItemsIn previous articles, we learned about using Lists and Sets to associate a key with a single value or a group of values. However, there are cases where we need to associate multiple value ...
| 2023-06-26 Learn how to Use Redux to Manage your Application State Learn how to Use Redux to Manage your Application Statetags: [“Redux”, “state management”, “React”, “JavaScript”] Redux is a popular state management library that is commonly used with React applications, although it can be used with other ...
| 2023-06-26 Linux commands: alias Linux commands: aliasIn this article, we will explore the alias command, which is used to create shortcuts to other commands. This can be incredibly useful when you frequently use specific command options or combinations. Let’s consider the ...
| 2023-06-26 How to Break Out of a For Loop in JavaScript How to Break Out of a For Loop in JavaScriptLearn the different methods to break out of a for or for..of loop in JavaScript. Imagine you have a for loop like this: 1234const list = ['a', 'b', 'c'];for (let i = ...
| 2023-06-26 CSRF (Cross-Site Request Forgery) - A Comprehensive Guide CSRF (Cross-Site Request Forgery) - A Comprehensive GuideCSRF, short for Cross-Site Request Forgery, is one of the most common web attacks, along with XSS and SQL Injection. In simple terms, CSRF attacks trick users into performing unintend ...
| 2023-06-26 Developers, Mastering the Art of Marketing Developers, Mastering the Art of MarketingIn today’s digital world, being a developer with marketing skills is a powerful combination. As a digital entrepreneur, you need to not only create a product but also know how to effectively bring i ...
| 2023-06-26 How to Run JavaScript Snippets Easily How to Run JavaScript Snippets EasilyWhen it comes to testing or experimenting with JavaScript code, there are several convenient tools that I rely on. These tools make it easy to run little snippets of JavaScript and quickly see the result ...
| 2023-06-26 The Node Core Modules: A Comprehensive Overview The Node Core Modules: A Comprehensive OverviewNode.js, a popular runtime environment for executing JavaScript code on the server-side, comes with a rich set of core modules. These modules are included in the Node.js installation and provid ...
| 2023-06-26 Working with the DevTools Console and the Console API Working with the DevTools Console and the Console APIEvery browser provides a console that allows you to interact with the Web Platform APIs and view messages generated by your JavaScript code. In this article, we will explore how to work w ...
| 2023-06-26 Disconnecting Your Earnings from Hours Worked Disconnecting Your Earnings from Hours WorkedDiscover how to break free from the traditional model of earning money based on the hours you work, and instead generate income based on the number of products sold. As an employee or freelancer, ...
| 2023-06-26 An Introduction to COBOL: The Language Behind Financial Systems An Introduction to COBOL: The Language Behind Financial SystemsCOBOL may be a name you’ve heard before, but it’s not just a relic of the past. In fact, it plays a critical role in the functioning of banks and financial institutions. With ov ...
| 2023-06-26 How to Implement Lazy Loading for Images in Hugo How to Implement Lazy Loading for Images in HugoWhen I recently launched the new home for my ebooks on The Valley of Code, I realized that the large number of images was impacting the loading time and increasing my hosting bill. Each page w ...
| 2023-06-26 SQL Injection: Protecting Your Application from Attacks SQL Injection: Protecting Your Application from AttacksSQL injection poses a significant threat to database-driven applications that rely on SQL queries. The vulnerability lies in the lack of input sanitization, which allows attackers to ma ...
| 2023-06-26 The JavaScript Global Object: Explained and Demystified The JavaScript Global Object: Explained and DemystifiedThe JavaScript global object is a collection of properties, functions, and objects that can be accessed globally without the need for a specific namespace. In this blog post, we will de ...
| 2023-06-26 How to Retrieve Server-Side Cookies in a Next.js App How to Retrieve Server-Side Cookies in a Next.js AppAccessing cookies while server-side rendering in a Next.js app can present challenges. In this blog, I will share my solution to this problem. I recently encountered an issue with my Next. ...
| 2023-06-26 Ensuring an Image Upload is Smaller than a Specific Size Ensuring an Image Upload is Smaller than a Specific SizeWhen creating a form that allows users to upload images, it is sometimes necessary to impose restrictions on the file size. For instance, let’s say we want to limit the image size to 3 ...
| 2023-06-26 Next.js: Fixing a Blank Page Issue After `res.redirect()` in API Routes Next.js: Fixing a Blank Page Issue After res.redirect() in API RoutesIn my Next.js project, I encountered an issue where calling res.redirect('/') in an API route resulted in a blank page on Vercel after the redirect. Surprisingly, ...
| 2023-06-26 Accepting Command Line Arguments in Python Accepting Command Line Arguments in PythonWhen running a Python program from the command line, you have the ability to pass additional arguments and options. This can be done by using the sys module from the standard library. However, handl ...
| 2023-06-26 Dynamic Routes in Laravel: Building SEO-Friendly URLs Dynamic Routes in Laravel: Building SEO-Friendly URLs This tutorial is part of the Laravel Handbook. Download it from https://flaviocopes.com/access/ In Laravel, creating static routes in the routes/web.php file is a common practice. Howev ...