Skip to content
the poor coder

Home / Author

Poor Man

2,994 posts
2023

jest spy on console error

What is Jest Spy on Console Error? Jest is a popular testing framework used by developers around the world. It offers a range of tools that make it easier to perform various types of tests, including unit tests…

javascript2 min read
2023

react reveal for functional component

React Reveal for Functional Component React Reveal is a popular library that enables animation effects in React components. It provides a simple way to create stunning animations and add them to your React project with…

javascript1 min read
2023

clear swr cache

Clear SWR Cache SWR is a React Hooks library for data fetching. It caches the data in the client-side to optimize the performance and reduce the number of requests to the server. Sometimes, we need to clear the SWR…

javascript1 min read
2023

how to update kali linux on virtualbox

How to Update Kali Linux on VirtualBox As a cybersecurity enthusiast, I frequently use Kali Linux on my VirtualBox to test out tools and perform security assessments. However, it is essential to keep the operating…

javascript1 min read
2023

Enable CORS on JSON API Wordpress

Enable CORS on JSON API Wordpress As a web developer, I have faced many issues while developing applications that require data from different sources. One of such problems is enabling CORS on Wordpress JSON API. When my…

javascript2 min read
2023

view old repositories github

View Old Repositories on Github If you have a Github account, chances are you have created or contributed to numerous repositories. Sometimes, you may want to access an old repository that you created or contributed to…

javascript3 min read
2023

php remove duplicates from array

Removing duplicates from an array in PHP If you have a PHP array that contains duplicate values and you want to remove duplicates, there are several ways to do it. Here are some of the most common methods: Using…

javascript1 min read
2023

only allow requests from domain express

How to Only Allow Requests from Domain Express If you want to restrict your server to only accept requests from a specific domain, you can achieve this by configuring your server to verify the "Origin" header of…

javascript2 min read
2023

youtbe trailer npm

YouTube Trailer npm As a content creator on YouTube, I always try to make my channel look professional and stand out from the crowd. One way to do that is by creating a trailer that highlights what my channel is all…

javascript3 min read
2023

Summary Row React Table (with Lodash)

Summary Row React Table (with Lodash) If you're familiar with React and Lodash, and you're building a table with summary rows, you might find this useful. What is a summary row? A summary row is a row at the bottom of a…

javascript2 min read
2023

get static props

What are Static Props in React? Static Props in React are the properties that are passed down from a parent component to a child component in a read-only manner. These props cannot be modified by the child component…

javascript2 min read
2023

clear timeout js

Clear Timeout JS Timeouts are a mechanism in JavaScript that allow you to delay the execution of a piece of code. If you have set a timeout and want to clear it before it executes, you can use the window.clearTimeout()…

javascript1 min read
2023

What does "javascript:void(0)" mean?

What does "javascript:void(0)" mean? As a web developer, I have come across the term "javascript:void(0)" in my code, and it can be confusing to understand its purpose. Essentially, "javascript:void(0)" is a JavaScript…

javascript1 min read
2023

chartjs min

What is Chart.js min? Chart.js is a popular JavaScript library for creating responsive and interactive charts and graphs. In order to use Chart.js in your web project, you need to include the necessary Chart.js files in…

javascript2 min read
2023

React clock via props

React clock via props If you want to create a clock component in React and pass the time through props, there are a few steps to take. Step 1: Create a Clock Component Create a new file called Clock.js and import React…

javascript2 min read
2023

apoolo uselaxyQuery bypass cache

Apollo UseQuery Bypass Cache If you are using Apollo Client, you might have come across a situation where you want to bypass the cache and fetch fresh data from the server. This is where Apollo's useQuery hook comes in…

javascript2 min read
2023

javascript: get word length

How to Get Word Length using JavaScript Getting the length of a word is a common requirement in various JavaScript applications. Fortunately, JavaScript provides several built-in methods to get the length of a string or…

javascript2 min read
ESC