Category: Web Development
Dynamic CSS | How to start your project in SCSS
Before understanding how to maintain or start a project in SCSS we should understand what is SCSS and why it is used? SCSS is a special type of file for SASS, a program written in Ruby that assembles CSS style
JQuery | Draggable conflict with Contenteditable
JQuery Draggable function conflict with Contenteditable Dom attribute I am creating HTML editor in which I have the requirement to add an editable and draggable div. I have applied both the properties to the div: draggable and Contenteditable, but only
Wordprerss | Upload SVG or other files in Media Library
In WordPress, by default svg type of files are not permitted to upload. So in order to upload the SVG files to WordPress media library, we will need to add following code to child theme’s functions.php file: //To allow svg
Asp.NET | Adding New table Mapping to .edmx file manually
Asp.NET: Adding New table Mapping to Existing entity framework Designer .edmx manually from Xml View As we know that .edmx designer entity framework mapping is generated either from ‘Database First Approach’ or from ‘Model First Approach’ (in case ‘Code First
Jquery | Display progress circle according to percentage
Display Progress Circle according to Percentage on Web page Sometimes, the requirement arises to display progress circle with the percentage value. For example : 1. Various social networking or professional websites depict the percentage of user profile completed with a
Assure vs Ensure vs Insure
In insurance which one is the right word when it comes to Assure vs Insure? When you want to make something certain which one do you pick from Assure vs Ensure? It can get confusing, right? Here’s some help in this
Postgres | Function to remove HTML tags from text
Problem : How to create a function in Postgres that will remove HTML tags from a piece of text? Solution : Create function in postgres : CREATE OR REPLACE FUNCTION strip_tags(TEXT) RETURNS TEXT AS $$ SELECT regexp_replace($1, ‘<[^>]*>’, ”, ‘g’)
Javascript | How to lighten a color by some percentage
We can lighten any color using a custom javascript function: function shadeColor(color, percent) { var R = parseInt(color.substring(1,3),16); var G = parseInt(color.substring(3,5),16); var B = parseInt(color.substring(5,7),16); R = parseInt(R * (100 + percent) / 100); G = parseInt(G * (100
Allow WordPress to Duplicate Page or Post
In WordPress, sometimes a situation occurs when we need to recreate a page with very similar content or design of another page. Then instead of recreating a page from scratch we can duplicate or clone a page and can modify