Issue with npm install for mac pro
When I do npm install on mac pro, I get below error: Now if I run below code to install xcode cli, I get below error To resolve this issue, I followed below steps:
Issue with npm install for mac pro Read More »
When I do npm install on mac pro, I get below error: Now if I run below code to install xcode cli, I get below error To resolve this issue, I followed below steps:
Issue with npm install for mac pro Read More »
To align items from right to left in Arabic language using use dir=”RTL” This is first item This is second item This is last item Left to Right alignment for a list of items in Arabic using dir=”LTR” This is first item This is second item This is last item
Right to left alignment for a list of items in Arabic Read More »
What is a Regular Expression? As per wikipedia, A regular expression (shortened as regex or regexp; also referred to as rational expression) is a sequence of characters that specifies a search pattern. Create an index.html file where you can add all the form input fields as below. Add name property for the fields which will be accessed in the validation.js to perform regex validations. index.html validation.js
Form field validations using regex javascript Read More »
Return the most common character from the string
Find the most common character from the string using javascript Read More »
A palindrome is a word, number, phrase, or other sequence of characters which reads the same backward as forward, such as madam or racecar. Return True if it”s a palindrome and False if not palindrome
Validate a palindrome Read More »
Reverse a string using javascript
Reverse a string using javascript Read More »
Chain-of-responsibility pattern The chain-of-responsibility pattern is a behavioral design pattern consisting of a source of command objects and a series of processing objects. Each processing object contains logic that defines the types of command objects that it can handle; the rest are passed to the next processing object in the chain. A mechanism also exists
Design Patterns in PHP – Chain-of-responsibility pattern Read More »
Observer pattern The observer pattern is a software design pattern in which an object, named the subject, maintains a list of its dependents, called observers, and notifies them automatically of any state changes, usually by calling one of their methods. It is mainly used for implementing distributed event handling systems, in “event driven” software. In
Design Patterns in PHP – Observer pattern Read More »
Strategy pattern The strategy pattern (also known as the policy pattern) is a behavioral software design pattern that enables selecting an algorithm at runtime. Instead of implementing a single algorithm directly, code receives run-time instructions as to which in a family of algorithms to use. Strategy lets the algorithm vary independently from clients that use
Design Patterns in PHP – Strategy pattern Read More »
Template method pattern The template method is a method in a superclass, usually an abstract superclass, and defines the skeleton of an operation in terms of a number of high-level steps. These steps are themselves implemented by additional helper methods in the same class as the template method. The helper methods may be either abstract
Design Patterns in PHP – Template method pattern Read More »