• HOME
  • ARCHIVES
  • Sitemap
Search ...
Search ...

Archives

Total: 3400

| 2023-06-26

How to Get a Random Item from an Array in Swift

How to Get a Random Item from an Array in SwiftIn this tutorial, we will learn how to retrieve a random item from an array in Swift. Let’s say we have an array like this: 1let items = [1, 2, 3] and we want to extract a random element from ...

tech wiki
tech wiki
4 min read
| 2023-06-26

The Binary Number System: A Fundamental Concept in Computer Science

The Binary Number System: A Fundamental Concept in Computer ScienceIntroduction to the Binary Number SystemIn a previous blog post, I discussed the decimal number system, which is the most commonly used system in human history. However, whe ...

tech wiki
tech wiki
5 min read
| 2023-06-26

How to Make an Editable Checked Checkbox in React

How to Make an Editable Checked Checkbox in ReactIn this blog post, we will discuss how to add a checkbox in a React component that is checked by default but editable by the user. Initially, I had a simple checkbox in my React component: 1& ...

tech wiki
tech wiki
3 min read
| 2023-06-26

The Developer’s Dilemma: Choosing Between Existing Platforms and Building Your Own

The Developer’s Dilemma: Choosing Between Existing Platforms and Building Your OwnIn my quest to find the ideal platform to host my courses, I have encountered a significant issue. Currently, I rely on a static site that integrates with var ...

tech wiki
tech wiki
6 min read
| 2023-06-26

The CSS margin property

The CSS margin propertyThe margin property in CSS allows you to add space around an element. It is important to understand the usage and syntax of this property. In this blog post, I will explain how to use the margin property and its vario ...

tech wiki
tech wiki
6 min read
| 2023-06-26

Same POST API call in different JavaScript libraries

Same POST API call in different JavaScript librariesWhen testing APIs, it’s common to use tools like Insomnia to perform HTTP requests to REST API or GraphQL API services. In this blog, I want to showcase the same API call implemented in di ...

tech wiki
tech wiki
9 min read
| 2023-06-26

Python Closures: Accessing Variables in Nested Functions

Python Closures: Accessing Variables in Nested FunctionsIn a previous blog post, we discussed how to create nested functions in Python. Now, let’s explore an interesting concept called closures. When you return a nested function from a func ...

tech wiki
tech wiki
4 min read
| 2023-06-26

How to Retrieve the Last Updated Date of a File Using Node.js

How to Retrieve the Last Updated Date of a File Using Node.jsLearn how to use Node.js to get the last updated date of a file. The fs module in Node.js provides all the necessary file functions. One of these functions is statSync(), which al ...

tech wiki
tech wiki
2 min read
| 2023-06-26

The Full-Stack Independent Developer: Mastering All Aspects of Software Development

The Full-Stack Independent Developer: Mastering All Aspects of Software DevelopmentWhen we think of software developers, we often imagine individuals solely dedicated to their craft, working on world-changing apps, fixing bugs, and developi ...

tech wiki
tech wiki
8 min read
| 2023-06-26

Resilient Error Handling in CSS

Resilient Error Handling in CSSCSS, unlike JavaScript, handles errors in a resilient manner. Instead of terminating all script execution upon encountering an error, it continues to function and tries its best to fulfill your desired styling ...

tech wiki
tech wiki
2 min read
| 2023-06-26

SEO-Friendly Blog: Choosing the Right Href Value for JavaScript Links

SEO-Friendly Blog: Choosing the Right Href Value for JavaScript LinksUsing JavaScript to trigger functions when a user clicks a link is a common requirement when developing apps. There are two ways to achieve this. Let’s assume the function ...

tech wiki
tech wiki
4 min read
| 2023-06-26

How to Determine the Type of a Value in JavaScript

How to Determine the Type of a Value in JavaScriptIn JavaScript, there are various built-in types such as numbers, strings, booleans, and objects. You might often encounter situations where you need to determine the type of a value. Fortuna ...

tech wiki
tech wiki
3 min read
| 2023-06-26

How to Update Node Dependencies to the Latest Version

How to Update Node Dependencies to the Latest VersionUpdating the dependencies of your Node project to their latest versions can improve your application’s security, performance, and compatibility. This can be done easily using npm. In this ...

tech wiki
tech wiki
7 min read
| 2023-06-26

Setting Up VS Code for React Development

Setting Up VS Code for React DevelopmentIn this blog post, we will discuss the simple steps to set up a nice VS Code development environment for React, including linting hints and automatic formatting on save. ESLintThe first step is to ins ...

tech wiki
tech wiki
4 min read
| 2023-06-26

How to Style DOM Elements Using JavaScript

How to Style DOM Elements Using JavaScriptIn this blog post, we will explore different ways to apply styling to DOM elements dynamically using plain JavaScript. Whether you need to change the color, border, or any other CSS property of an e ...

tech wiki
tech wiki
4 min read
| 2023-06-26

Control Transfer Statements in Swift Loops

Control Transfer Statements in Swift LoopsIn Swift, there are two control transfer statements that allow you to manage the flow of execution within a loop: continue and break. The continue statement is used to stop the current iteration and ...

tech wiki
tech wiki
3 min read
| 2023-06-26

How to Remove the Shadow from Window Screenshots in macOS

How to Remove the Shadow from Window Screenshots in macOSTaking screenshots is an essential task when creating blog posts or courses. In macOS, the default method to capture the application window is by using cmd-shift-4 and pressing the sp ...

tech wiki
tech wiki
3 min read
| 2023-06-26

Scraping with Puppeteer: A Practical Example

Scraping with Puppeteer: A Practical ExampleIf you’re looking to scrape websites for data, Puppeteer is a powerful tool to consider. In this blog post, we’ll walk you through the process of creating a JavaScript job board that aggregates re ...

tech wiki
tech wiki
22 min read
| 2023-06-26

How to Export Functions and Variables from a Svelte Component

How to Export Functions and Variables from a Svelte ComponentIn this tutorial, you’ll learn how to export functions and variables from a Svelte component. By exporting additional elements from a component, you can provide other components t ...

tech wiki
tech wiki
4 min read
| 2023-06-26

JavaScript Coding Style Guide: Writing Clean and Readable Code

JavaScript Coding Style Guide: Writing Clean and Readable CodeThis JavaScript Coding Style Guide outlines the set of conventions that I follow when writing JavaScript code. It serves as a live document, constantly updated with the main rule ...

tech wiki
tech wiki
9 min read
| 2023-06-26

List of Keywords and Reserved Words in JavaScript

List of Keywords and Reserved Words in JavaScriptIn JavaScript, there are certain keywords and reserved words that cannot be used as variable identifiers. This list serves as a reference for all these keywords and reserved words: await bre ...

tech wiki
tech wiki
2 min read
| 2023-06-26

How to Fix the \"Unknown At Rule @tailwindcss\" Warning in VS Code

How to Fix the “Unknown At Rule @tailwindcss” Warning in VS CodeProblem: When you include Tailwind in your project, you might encounter the warning message “Unknown at rule @tailwindcss(unknownAtRules)” in VS Code. Here’s a step-by-step gu ...

tech wiki
tech wiki
1 min read
| 2023-06-26

Setting up an Nginx Reverse Proxy for Serving Multiple Node.js Apps from Subfolders

Setting up an Nginx Reverse Proxy for Serving Multiple Node.js Apps from SubfoldersIf you’re running multiple Node.js scripts under the same domain on a VPS like DigitalOcean, you’ll need to use a reverse proxy since two Node.js apps can’t ...

tech wiki
tech wiki
5 min read
| 2023-06-26

How to Conditionally Load Data with SWR

How to Conditionally Load Data with SWRWhen using SWR, you may encounter a situation where you only want to send a request if you have certain data available. For example, you might need to determine if the user is logged in before making a ...

tech wiki
tech wiki
1 min read
| 2023-06-26

How to Verify if a JavaScript Array Contains a Specific Value

How to Verify if a JavaScript Array Contains a Specific ValueWhen working with JavaScript arrays, it is quite common to need to check if a particular item is present. Fortunately, JavaScript provides us with a handy method called includes() ...

tech wiki
tech wiki
2 min read
| 2023-06-26

Going Independent: A Developer's Perspective on Working Solo

Going Independent: A Developer’s Perspective on Working Solotags: [“freelance”, “independent developer”, “flexibility”, “value”, “personal brand”] In the ever-changing landscape of software development, the idea of working independently as ...

tech wiki
tech wiki
8 min read
| 2023-06-26

Understanding Object Destructuring in JavaScript

Understanding Object Destructuring in JavaScriptIntroductionIn JavaScript, object destructuring is a powerful feature that allows you to extract specific properties from an object and assign them to individual variables. This can make your ...

tech wiki
tech wiki
4 min read
| 2023-06-26

The Differences Between MongoDB and SQL Databases

The Differences Between MongoDB and SQL DatabasesWhen it comes to databases, there are two major types to consider: SQL databases and NoSQL databases. If you have experience with databases like MySQL or PostgreSQL, you are likely familiar w ...

tech wiki
tech wiki
4 min read
| 2023-06-26

CSS Variables (Custom Properties)

CSS Variables (Custom Properties)Discover the power of CSS Custom Properties, also known as CSS Variables, in modern browsers. These variables allow you to write better CSS by centralizing the values and reducing repetition and inconsistenc ...

tech wiki
tech wiki
10 min read
| 2023-06-26

Python Annotations: Enhancing Type Safety and Code Maintainability

Python Annotations: Enhancing Type Safety and Code MaintainabilityPython, being a dynamically typed language, allows developers to omit specifying the type of variables, function parameters, and return values. While this brings flexibility, ...

tech wiki
tech wiki
4 min read
| 2023-06-26

Auto Trigger Deploys on Netlify

Auto Trigger Deploys on NetlifyIn order to keep a consistent schedule for publishing my blog posts, I wanted to automate the process of deploying my Hugo Static Site on Netlify. By using IFTTT, I was able to set up an auto-trigger that depl ...

tech wiki
tech wiki
5 min read
| 2023-06-26

Implement Next.js Email Authentication with NextAuth

Implement Next.js Email Authentication with NextAuthAuthentication is a crucial aspect of any web application, including those built with Next.js. There are several ways to manage authentication in Next.js, and in this blog post, I will exp ...

tech wiki
tech wiki
9 min read
| 2023-06-26

Understanding JavaScript Operators Precedence Rules

Understanding JavaScript Operators Precedence RulesIn JavaScript, when dealing with complex statements, understanding operator precedence is crucial. It determines the order in which operations are executed and can greatly impact the result ...

tech wiki
tech wiki
3 min read
| 2023-06-26

Python Operator Overloading

Python Operator OverloadingOperator overloading is a powerful technique that allows us to make classes comparable and work with Python operators. In this blog post, we will explore how operator overloading can be used to enhance the functio ...

tech wiki
tech wiki
4 min read
| 2023-06-26

Running a Web Server from Any Folder

Running a Web Server from Any FolderRunning a web server from a specific folder on your system can be a common requirement. However, configuring a full-fledged web server like Apache or Nginx might not be practical for quick testing or temp ...

tech wiki
tech wiki
3 min read
| 2023-06-26

Convert and Resize Images with macOS Shortcuts

Convert and Resize Images with macOS ShortcutsConverting and resizing images is a common task many users perform to optimize file sizes or meet specific requirements. In this blog post, we’ll explore how to achieve these tasks using Shortcu ...

tech wiki
tech wiki
6 min read
| 2023-06-26

How to Set Up Tailwind with PurgeCSS and PostCSS

How to Set Up Tailwind with PurgeCSS and PostCSSIn this blog post, I will explain how to set up your workflow to trim the Tailwind CSS using PurgeCSS and a simple PostCSS setup. This setup does not involve webpack and can be used with any k ...

tech wiki
tech wiki
7 min read
| 2023-06-26

Simplifying Exception Handling with Python's `with` Statement

Simplifying Exception Handling with Python’s with StatementThe with statement in Python is a powerful tool that simplifies exception handling, particularly when working with files. It provides a more concise and readable way to open and clo ...

tech wiki
tech wiki
3 min read
| 2023-06-26

The isInteger() Method in JavaScript

The isInteger() Method in JavaScriptLearn all about the Number object’s isInteger() method in JavaScript. The isInteger() method determines whether a given value is an integer. It returns true if the value is an integer and false for any ot ...

tech wiki
tech wiki
2 min read
| 2023-06-26

How to Set Up an Endless Video Stream

How to Set Up an Endless Video StreamIf you’re looking to create an endless video stream using YouTube or Twitch, this guide will walk you through the process. While I can’t guarantee it will work for everyone, I’ll share the code and steps ...

tech wiki
tech wiki
5 min read
| 2023-06-26

Configuring Your Website for Full-Screen Display on iOS

Configuring Your Website for Full-Screen Display on iOSDuring my time using the iPad Pro, I discovered a handy feature that allows you to add websites to your home screen for easy access. This feature can also be used on the iPhone. Here’s ...

tech wiki
tech wiki
3 min read
| 2023-06-26

The JavaScript `seal()` Method of the Object Object

The JavaScript seal() Method of the Object ObjectLearn more about the seal() method in JavaScript, which is used to restrict the modification of an object’s properties. The seal() method, when called on an object, returns the same object. T ...

tech wiki
tech wiki
4 min read
| 2023-06-26

How to Retrieve Image Width and Height Using Node

How to Retrieve Image Width and Height Using NodeWhen working with images in Node, there may be occasions where you need to retrieve the width and height of an image. Whether the image is stored locally on your file system or sourced from t ...

tech wiki
tech wiki
3 min read
| 2023-06-26

Send Files Using Express: A Guide

Send Files Using Express: A GuideIn this blog post, we will explore how to send files using Express, a popular framework for building web applications in Node.js. We will focus on the Response.download() method, which allows you to transfer ...

tech wiki
tech wiki
4 min read
| 2023-06-26

npm global or local packages: Understanding the Difference and Best Practices

npm global or local packages: Understanding the Difference and Best Practicestags: [“npm”, “packages”, “global”, “local”] When it comes to installing packages with npm, there are two options: global and local. Understanding the difference b ...

tech wiki
tech wiki
6 min read
| 2023-06-26

Lazy Loading Modules in Next.js: Optimize Your Application for Performance

Lazy Loading Modules in Next.js: Optimize Your Application for PerformanceLazy loading modules in your Next.js app is a great way to optimize your application and improve performance. One module that we often need to load in specific parts ...

tech wiki
tech wiki
7 min read
| 2023-06-26

Can You Nest Functions in C?

Can You Nest Functions in C?In this blog post, we will explore the topic of nesting functions in C and whether it is a possibility. Nesting functions refers to the act of defining functions inside other functions, which is a common practice ...

tech wiki
tech wiki
3 min read
| 2023-06-26

Netlify Lambda Functions: A Tutorial for Adding Dynamic Processing to JAMstack Sites

Netlify Lambda Functions: A Tutorial for Adding Dynamic Processing to JAMstack SitesIn my previous tutorial on Netlify, I discussed how to use it to host websites, including this blog. Netlify is a great platform for running sites, especial ...

tech wiki
tech wiki
7 min read
| 2023-06-26

How to Properly Check if a JavaScript Object Property is Undefined

How to Properly Check if a JavaScript Object Property is UndefinedWhen writing JavaScript code, it is important to know the correct way to check if an object property is undefined. The most reliable method to accomplish this is by using the ...

tech wiki
tech wiki
3 min read
| 2023-06-26

Double Quotes vs. Single Quotes in C: Understanding their Differences

Double Quotes vs. Single Quotes in C: Understanding their DifferencesIn the world of C programming, you will come across the usage of both double quotes (“”) and single quotes (‘’) when working with characters and strings. While these two q ...

tech wiki
tech wiki
3 min read
← Prev1…7891011…68Next →
— Tech Wiki Online —

Recent Posts

  • Overview of the Browser DevTools: Unleashing the Power of Frontend Development
  • The Guide to package.json for SEO-friendly Blogs
  • Understanding C Variables and Types: A Guide for Beginners
MORE →
Tech Wiki Online © 2023
Hexo