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

Archives

Total: 3400

| 2023-06-26

Understanding the JavaScript substring() Method

Understanding the JavaScript substring() MethodThe JavaScript substring() method is a useful tool for extracting a portion of a string. Similar to the slice() method, it has some distinct differences that set it apart. Usage and SyntaxThe s ...

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

Styled Components: A Modern Approach to CSS-in-JS

Styled Components: A Modern Approach to CSS-in-JSStyled Components have emerged as a popular solution for incorporating CSS into modern JavaScript. They serve as a successor to CSS Modules, enabling developers to write CSS that is scoped to ...

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

Phaser: Mouse Input

Phaser: Mouse InputIn this blog post, we will learn how to handle mouse input using Phaser. This is a part of our Phaser series, so if you haven’t already, make sure to check out the first post here. To make any GameObject interactive, all ...

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

What is the purpose of the double negation operator !! in JavaScript?

What is the purpose of the double negation operator !! in JavaScript?The double negation operator !! is commonly used in JavaScript. But what does it actually do? When you have an expression that returns a result, you may want to convert t ...

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

Using the router to detect the active link in Next.js

Using the router to detect the active link in Next.jsWhen working with links in Next.js, it’s important to determine the current URL and assign a class to the active link so that it can be styled differently. This is particularly useful in ...

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

Applying a Style to Child Elements with Tailwind CSS

Applying a Style to Child Elements with Tailwind CSSSometimes, when working with Tailwind CSS, you may come across a situation where you need to apply a style to a child element. In this blog post, we will explore how to achieve this easily ...

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

How to Change a Next.js App Port

How to Change a Next.js App PortLearn how to easily change the port that your Next.js app runs on in development mode to avoid conflicts with other services. If you’re running a Next.js app locally, it typically runs on port 3000 by default ...

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

Using a GoPro as a Remote Webcam with Python

Using a GoPro as a Remote Webcam with PythonI recently discovered that you can use a GoPro Hero 7 White as a remote webcam using a Python package called GoPro API for Python. This package can be found on GitHub at https://github.com/konradi ...

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

Swift Protocols: Enhancing Object Functionality

Swift Protocols: Enhancing Object Functionalitytags: [“Swift”, “Protocols”, “Object Functionality”] Protocol in Swift allows different objects of different types to have a common set of functionality. It serves as a blueprint that defines a ...

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

A Comprehensive Guide to Using the `tar` Command for Linux

A Comprehensive Guide to Using the tar Command for LinuxThe tar command is a powerful tool used to create archives by grouping multiple files into a single file. The name “tar” comes from “tape archive,” as archives were originally stored o ...

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

How to Print Your HTML with Style

How to Print Your HTML with StyleIn this blog post, we will explore some tips on how to print from the browser to the printer or to a PDF document using CSS. Whether you want to hide certain parts of a document, customize the fonts, or add ...

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

How to Position an Item at the Bottom of its Container Using CSS

How to Position an Item at the Bottom of its Container Using CSSLearn how to make an element stick to the bottom of its parent container with CSS. Placing an item at the bottom of its container is a common requirement in web development. I ...

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

Custom Events in JavaScript: Reacting to Events in a Customized Way

Custom Events in JavaScript: Reacting to Events in a Customized WayEvents play a crucial role in most of the code we write, whether it’s responding to user actions like mouse clicks or keyboard events, or handling network events like HTTP c ...

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

Linux Commands: Cat

Linux Commands: CatA Comprehensive Guide to the Cat Command for Adding Content to Files When it comes to file manipulation, the cat command is a powerful tool similar to tail in some ways. However, what sets cat apart is its ability to not ...

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

The JavaScript Glossary: A Guide to Frontend Development Terminology

The JavaScript Glossary: A Guide to Frontend Development TerminologyIn frontend development, there are several terms that may be unfamiliar to you. This glossary provides explanations of these terms to help you better understand JavaScript ...

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

Python Control Statements: Making Decisions with If Statements

Python Control Statements: Making Decisions with If StatementsIn Python programming, we can use control statements like if, else, and elif to make decisions based on boolean values or expressions. Let’s explore how to use these statements e ...

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

Roadmap to Learn JavaScript: A Comprehensive Guide

Roadmap to Learn JavaScript: A Comprehensive GuideJavaScript is an incredibly powerful and versatile programming language. It was initially developed as a way to manipulate documents in web browsers, but it has now become the most popular p ...

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

How to Create Your First Pull Request on GitHub

How to Create Your First Pull Request on GitHubCreating a pull request (PR) to make edits on a project hosted on GitHub doesn’t always have to involve contributing code. In fact, even non-developers can participate by simply editing a file, ...

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

Understanding Voltage in Electronics

Understanding Voltage in ElectronicsVoltage is a fundamental concept in electronics that refers to the electric potential that allows electrons to flow from an area of higher voltage to an area of lower voltage. It is measured in volts (V). ...

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

Arduino Project: Reading Analog Input for Sensor Data

Arduino Project: Reading Analog Input for Sensor DataIn this Arduino project, we will learn how to read analog input using a potentiometer and connect it to an analog input pin on the Arduino board. We will also write a program that reads a ...

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

Python 2 vs Python 3: Which Version Should You Choose?

Python 2 vs Python 3: Which Version Should You Choose?The Python 2 vs Python 3 discussion is a crucial topic to address in the world of programming. Python 3, which was introduced in 2008, has since become the primary version of Python. Mea ...

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

Services vs Products: Choosing the Right Business Model

Services vs Products: Choosing the Right Business ModelWhen it comes to running a business, there are typically two main options: service-based companies and product-based companies. Understanding the differences between these two models is ...

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

How to Handle Errors in React with Error Boundaries

How to Handle Errors in React with Error BoundariesIn React, when an error occurs within a component, the entire React component tree is unmounted, resulting in a blank page being displayed to the user. This default behavior may not be desi ...

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

How to Disable a Button Using JavaScript

How to Disable a Button Using JavaScriptLearn how to programmatically disable or enable a button using JavaScript. An HTML button is one of the few elements that has its own state, along with almost all the form controls. There are many sce ...

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

My Love for Books: A Collection of Knowledge and Inspiration

My Love for Books: A Collection of Knowledge and InspirationHaving an extensive library of paper books has always been a passion of mine. Among them, programming books take up about 30% of my collection. I used to travel to the city to visi ...

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

How to Compile and Run a Go Program

How to Compile and Run a Go ProgramIn this tutorial, we will build upon what we learned in our previous tutorial on how to create your first Go program. If you haven’t read it yet, you can find it here. To compile and run a Go program, foll ...

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

Storing Vue Data to localStorage using Vuex

Storing Vue Data to localStorage using VuexIn this blog post, we will explore how to store Vuex data automatically to localStorage or sessionStorage. When it comes to persisting data, there are several methods available. One simple approach ...

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

How to Prevent a Flex Child from Filling the Entire Height

How to Prevent a Flex Child from Filling the Entire HeightIn a horizontal list of items, sometimes a line of text can expand to two lines, causing additional space and causing its flex siblings to extend to full height. However, there is a ...

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

C Constants: An Introduction

C Constants: An IntroductionIn my previous blog post, I discussed variables in C. This time, I want to dive into the concept of constants in C. Constants in C are similar to variables, but they have a fixed value that cannot be changed duri ...

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

Understanding Swift Variables and Constants

Understanding Swift Variables and ConstantsIn this tutorial, we will explore the concept of variables and constants in Swift. Variables allow us to assign a value to a label, while constants are used when the assigned value should not be ch ...

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

Interfaces in Go: A Guide for Developers

Interfaces in Go: A Guide for Developerstags: [“”]Go, programming, interfaces, method signatures, type system In Go, interfaces play a crucial role in defining types and specifying method signatures. They allow for loose coupling and enable ...

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

SwiftUI: Exploring the List View

SwiftUI: Exploring the List ViewThe List view is an essential component in SwiftUI that allows you to display a collection of views in a vertical scrolling list. It offers great flexibility and customization options for presenting data in a ...

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

How to Clone Anything in JavaScript

How to Clone Anything in JavaScriptIn the world of JavaScript, cloning objects has always been a common task. Why? The answer lies in references. When it comes to primitive types like strings, numbers, and booleans, cloning is as simple as ...

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

Working with CSS Comments

Working with CSS CommentsCSS comments can be a useful tool when working with CSS files or in the <style> tag in the page header. They allow you to add descriptive text or notes within your code without affecting the rendering of your ...

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

The Virtual DOM: Optimizing Browser Interactions with React

The Virtual DOM: Optimizing Browser Interactions with ReactThe Virtual DOM is a technique utilized by React to optimize interactions with the browser. Unlike many existing frameworks that directly manipulate the DOM on every change, React t ...

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

Node Buffers: Managing Binary Data in Node.js

Node Buffers: Managing Binary Data in Node.jstags: [“Node.js”, “Buffer”, “Binary Data”, “Streams”] What is a buffer?In the world of programming, a buffer refers to an area of memory that is used to hold data temporarily. While JavaScript de ...

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

How to Destructure an Object into Existing Variables in JavaScript

How to Destructure an Object into Existing Variables in JavaScriptHave you ever encountered the need to destructure an object into existing variables in JavaScript? If so, you might have faced a challenge when trying to incorporate this int ...

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

How to Resolve the \"ffmpeg not found\" Error in youtube-dl

How to Resolve the “ffmpeg not found” Error in youtube-dlI’ve discovered that listening to fan noises while sleeping greatly improves my sleep quality. So, I decided to download a fan noise audio track from YouTube using the youtube-dl tool ...

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

How to Restrict File Uploads to Images in an Input Field

How to Restrict File Uploads to Images in an Input FieldIf you are looking to create an input field that only allows users to upload images, there is a simple solution. By adding the accept attribute to your input element, you can specify t ...

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

How to Create Your First App with Vue.js

How to Create Your First App with Vue.jsIf you’ve never created a Vue.js application before, this guide will walk you through the process of creating one and help you understand how it works. We’ll be building a Vue CLI default application ...

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

How to Create an Empty File in Python

How to Create an Empty File in PythonIn Python, you can create an empty file using the open() global function. This function takes two parameters: the file path and the mode. To create an empty file, you can use the a mode, which stands for ...

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

JavaScript Algorithms: Merge Sort

JavaScript Algorithms: Merge SortMerge sort is a popular sorting algorithm that utilizes the “divide and conquer” approach. In this algorithm, an array is divided into two halves recursively until each half contains only one element. Then, ...

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

How to Insert Data into a SQL Database Table

How to Insert Data into a SQL Database TableAdding data to a table in a SQL database is a common task in database management. In this article, we will explore the process of inserting data into a SQL table. To illustrate the process, let’s ...

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

How to Redirect to a URL in Sapper

How to Redirect to a URL in SapperWhen working on a Svelte+Sapper application, you may come across a situation where you need to redirect the user to a specific page when they visit the root domain instead of showing the home page. In this ...

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

Adding a Class to a DOM Element: A Quick Guide

Adding a Class to a DOM Element: A Quick GuideTags: DOM manipulation, add class, remove class If you need to add a class to a DOM element, it can be easily achieved by using the add() method provided by the classList property. This article ...

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

Deploying a Next.js App in Production: A Step-by-Step Guide

Deploying a Next.js App in Production: A Step-by-Step GuideIn this guide, we will walk you through the process of deploying a Next.js app in a production environment. Next.js is a powerful and popular framework for building React applicatio ...

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

How to Use Top-Level Await in JavaScript

How to Use Top-Level Await in JavaScriptDiscover how to utilize the top-level await feature in JavaScript, which is currently available in v8. Typically, you can only use await inside async functions. As a result, it’s common to declare an ...

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

An Overview of Vue.js: A Simple and Performant JavaScript Frontend Framework

An Overview of Vue.js: A Simple and Performant JavaScript Frontend FrameworkVue.js is a JavaScript frontend framework that has gained immense popularity and is currently experiencing significant growth. It stands out from other JavaScript f ...

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

How to Add an \"Open in Terminal\" Icon in macOS Finder

How to Add an “Open in Terminal” Icon in macOS FinderIf you’re a macOS user and frequently open folders in the Terminal, you might find it convenient to have a dedicated “Open in Terminal” icon in the Finder. This tutorial will guide you th ...

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

Electronic Components: Resistors

Electronic Components: ResistorsA resistor is an essential electronic component that is designed to impede the flow of electrical current within a circuit. There exists a wide variety of resistors available, constructed using different mate ...

tech wiki
tech wiki
3 min read
← Prev1…1718192021…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