Skip to content
the poor coder

Home / Author

Poor Man

2,994 posts
2023

how to check if a color is valid in javascript

How to Check if a Color is Valid in JavaScript As a web developer, you must have come across situations where you needed to validate a color value in JavaScript. To validate a color, you can use the RegExp object or CSS…

javascript3 min read
2023

show ingoing node on click cytoscape.js

Showing Ingoing Node on Click Cytoscape.js As a blogger and a web developer, I have worked with Cytoscape.js to create dynamic and interactive network graphs. One of the essential features of any network graph is to be…

javascript2 min read
2023

postgresql allow user create database

Can PostgreSQL Allow Users to Create Databases? Yes, PostgreSQL allows users to create databases. By default, only the superuser, usually the postgres user, can create new databases. However, you can grant the privilege…

javascript1 min read
2023

Working Realm + React Navigator Example

Working Realm + React Navigator Example When it comes to building mobile apps that require local storage, Realm is a great database option for React Native developers. In addition, React Navigation is an excellent…

javascript3 min read
2023

jquery loop through each child element

JQuery: Loop Through Each Child Element If you want to loop through each child element of a parent element using jQuery, you can use the .each() function. This function allows you to iterate over a jQuery object…

javascript1 min read
2023

random order of buttons on refresh in vanilla js

Random Order of Buttons on Refresh in Vanilla JS As a web developer, I have faced an issue where the order of buttons on a page is changing randomly on refresh. This occurs due to the asynchronous nature of JavaScript…

javascript1 min read
2023

get element by id in Jquery

Get Element by ID in jQuery jQuery is a popular JavaScript library that simplifies HTML document traversing, event handling, and manipulation. It provides various methods to select, manipulate, and traverse HTML…

javascript2 min read
2023

nodejs change dir

Changing Directory in Node.js Node.js provides an fs module that allows you to work with the file system in a non-blocking way. One of the functions provided by this module is fs.readdir(), which allows you to read the…

javascript1 min read
2023

start pm2 node process with flags

How to Start PM2 Node Process with Flags If you are a developer who frequently works with Node.js and needs to manage multiple processes, PM2 is a great tool to help you monitor and control your applications. In this…

javascript2 min read
2023

return the sum of an array

Returning the Sum of an Array If you have an array of numbers and you want to find the sum of all the numbers in the array, there are a couple of ways to accomplish this. One way is to use a for loop to iterate through…

javascript2 min read
2023

jquery empty

What is jQuery empty() method? jQuery empty() method is used to remove all the child elements and text content from the selected element(s). The method does not remove the selected element(s) itself, only its content…

javascript2 min read
2023

split text and join in js

Split Text and Join in JS Splitting and joining strings is a common task in JavaScript. It can be helpful in manipulating data, formatting text, and so on. Luckily, JavaScript provides built-in methods to split and join…

javascript2 min read
2023

composer require ozee 31/cakephp-cors:^1

Understanding Composer Require Command Composer is a popular dependency management tool used in PHP projects. It allows developers to easily manage dependencies and libraries for their projects. One of the primary…

javascript2 min read
2023

react timer

React Timer React Timer is a popular feature in React applications that allows users to count down or up to a specific time. This can be used for a variety of purposes, such as tracking the time remaining for an event…

javascript2 min read
2023

arrow expression javascript

Arrow Expression in JavaScript Arrow functions, also known as arrow expressions, were introduced in ECMAScript 6 (ES6) as a new syntax for defining functions in JavaScript. They provide a more concise way of writing…

javascript1 min read
2023

if statement js

If Statement in JS If statement in JavaScript is a conditional statement used to execute a block of code if a particular condition is true. The syntax for writing an if statement is: The condition in the if statement is…

javascript2 min read
ESC