141 Views
What is SASS? Sass (Syntactically Awsome Stylesheet) It is a Pre-processor and it was designed by Hampton catlin and developed by Natalie weizenbaum in 2006 It helps to reduce redundancy with CSS It is used to style a document in a proper structure. Use of SASS It is a pre-processing ...
Anamika Gupta
May 15, 2019
208 Views
To check Key exist or not in Python, you can use in operator. user = { 'name':'Sheetal', 'company': 'Impulsive Web', 'role':'Tech Lead' } if 'role' in user: print('Exist') else: print('Not Exist') Output: Exist   You ...
Sheetal Kumar
Apr 24, 2019
236 Views
To calculate the length of any string or get the elements count of an Array or List, You can use len() function in Python. 1. Length of String name = "Sheetal Kumar" size = len(name) print(size) Output: 13   2. Length of List: items = ["A","B","C","D"] size = len(items) print(size) Output: 4   ...
Sheetal Kumar
Apr 24, 2019
212 Views
In Python we use List in place of Array. The name is different but the functionality of List is like an Array in any other language. To merge two arrays in python, you can use Concatenate Operator directly. finalList = listA + listB Full Example: listA = ["A", "B", "C"] listB = ["D", ...
Sheetal Kumar
Apr 23, 2019
894 Views
After creating a Python App on your local machine you need to deploy your app on the server so that app can be accessed from anywhere. On your local environment, you run your app by using python or a python3 prompt like below. python myapp.py The app will stop after you close the terminal. ...
Sheetal Kumar
Mar 05, 2019
339 Views
Linux server is very efficient to manage files and processes. Sometimes you need to take backup of files or need to download code to modify locally. In linux server to download files either you use ftp or scp. SCP stands for Secure copy protocol, that is a means of securely transferring ...
Sheetal Kumar
Mar 05, 2019
356 Views
Linux server provides a terminal to manage the server. Sometimes you need to upload file or folder or directory on the Linux Server. Using your terminal, you can upload files and folder directly to your server by SCP command. Here we are providing the way to upload file on Linux Server using SCP. The ...
Sheetal Kumar
Mar 05, 2019
443 Views
In most of the places in UI you need to display date and time in your format weather API is providing date and time in MySql Format that is YYYY-MM-DD H:M. To convert this I have created a function that can be used easily in javascript without and dependency. function formatDateMysql(mysqldate) ...
Sheetal Kumar
Jan 15, 2019
491 Views
In Javascript sometimes you need a Random Integer. Here is the best way to get Random Integer number in Javascript.   function getRandomInt(min, max) { min = Math.ceil(min); max = Math.floor(max); return Math.floor(Math.random() * (max - min + 1)) + min; } Test the function: console.log("Random ...
Sheetal Kumar
Jan 07, 2019
310 Views
When you work in JavaScript then this keyword changes the context or scope based on how it is used. So here are some examples of how to use this keyword in JavaScript. function func_1() { console.log(this); } // calling a function func_1(); // this pointing to window // as object method var ...
Sheetal Kumar
Dec 04, 2018
324 Views
When you use loop having an iteration variable like "i" and changing the value of "i" then all the closure access same variable and the variable value changed. Here you will face the problem that all the closure will take the last value of "i". For eg. var funcs ...
Sheetal Kumar
Nov 30, 2018
2787 Views
When you are working client side (Browser) then sometimes you change the content of browser or view, and then you need to update the URL of the browser so that when user refreshes or reload the page then the same thing can be visible.  window.history have different functions to update or switch ...
Sheetal Kumar
Oct 15, 2018
664 Views
Patterns:- All languages have patterns. In javascript pattern are long-lasting and durable  or a collection a pattern that is used to solve the problem in software design .It includes function pattern, jquery pattern, design patterns, object creation pattern etc.... Some of the pattern in javscript ...
Anamika Gupta
May 22, 2018
1549 Views
Class in javascript Classes are the function which is used to define expression and declarations. Basically  the Java script is a classless language, it supports the object.In the javascript class work in the same way like other language that's why classes are called syntactic sugar . class ...
Anamika Gupta
May 18, 2018
339 Views
Linux server is very efficient to manage files and processes. Sometimes you need to take backup of files or need to download code to modify locally. In linux server to download files either you use ftp or scp. SCP stands for Secure copy protocol, that is a means of securely transferring ...
Sheetal Kumar
Mar 05, 2019
356 Views
Linux server provides a terminal to manage the server. Sometimes you need to upload file or folder or directory on the Linux Server. Using your terminal, you can upload files and folder directly to your server by SCP command. Here we are providing the way to upload file on Linux Server using SCP. The ...
Sheetal Kumar
Mar 05, 2019
902 Views
Google Cloud Platform is a suite of public cloud computing services offered by Google. On google cloud, you can create a server instance and host different project or website there. After creating an instance you can connect Linux instance only from their web-based SSH panel. If you want to connect ...
Sheetal Kumar
Feb 27, 2019
344 Views
To add a PHP website in Nginx Server you need to install php-fpm on your server. Here we are providing step by step guide to add and configure PHP website on nginx server. Step 1. If you have not installed php-fpm then install it by following command in your Linux machine. sudo apt-get update sudo ...
Sheetal Kumar
Feb 26, 2019
568 Views
Proxy means substitue. A proxy is the agency, function, which acts as  a substitue for another. It acts as the intermediary between your computer and the internet. The Proxy server present in the machine in the form of firewall server, and it's present on independent server, which is used to ...
Anamika Gupta
Oct 05, 2018
822 Views
Ubuntu is a Linux Operating System so you need to have Root privilege to get the process information. netstat command is used to show the ports and processes in Linux.  netstat -nlp command is used to show the processes using network. netstat -nlp Now filter the process ...
Sheetal Kumar
Sep 04, 2018