Article default image
jQuery element Selector

The Element Selector Selects all elements with the given tag name. In the Element Selector we can list the names of the element to be selected in the parenthesis. For …

read more
Article default image
jQuery :even Selector

Even is the simple mathematical term, An Even number is an integer which is multiple of two. The selector selects an odd index like 1, 3, 5, 7.. etc for …

read more
Obtaining statistics for Net::FTP transfers image
Obtaining statistics for Net::FTP transfers

With Net:FTP for uplink and downlink file transfers, we may have problems with obtaining the same statistics that are provided by ftp when you perform a manual transfer, i.e file …

read more
Defining and sending django signals image
Defining and sending django signals

Defining signals class(providing_args=list) All signals areinstances. Theis a list of the names of arguments the signal will provide to listeners. This is purely documentational, however, as there is nothing that …

read more
Basics of object orientation and inheritance in perl image
Basics of object orientation and inheritance in perl

Perl is an object oriented language. Perl has packages(class) that could be instantiated and used. At first, we need to decide the file name for the package ans the Perl …

read more
Python - Delete item from array by its value image
Python - Delete item from array by its value

Often we encounter the situation where we need to remove item from array by value. For example, if we have an array . We don't know or we are not …

read more
Introduction to Angular JS image
Introduction to Angular JS

Angular JS is a framework in JavaScript. It is distributed as a JavaScript file and could be included in any HTML page with script tag. The angular JS extends the …

read more
Generators in Python image
Generators in Python

Generators are used to create iterators, but with a different approach. Generators are simple functions which return an iterable set of items, one at a time, in a special way. …

read more
Clone a sqlalchemy db object with new primary key image
Clone a sqlalchemy db object with new primary key

At many points, a developer may want to clone a row of data for multiple reason. The SQL Alchemy make it easy to do in 5 steps. For example we …

read more
Get the previous months name image
Get the previous months name

Often we need to get previous months name in python, especially, when we have to save report from previous month's name. In python its is pretty simple. 1. Get first …

read more
How to install Python package from GitHub? image
How to install Python package from GitHub?

How to install Python package from GitHub? Simple Or

read more
Python: ImportError: cannot import name generic image
Python: ImportError: cannot import name generic

After upgrading to django 1.9. Whenever I was executing the command, I got the error : The reason for this error is has been deprecated in Django 1.7 and is …

read more
Python 3 - Django: ImportError: No module named 'django.core.urlresolvers' image
Python 3 - Django: ImportError: No module named 'django.core.urlresolvers'

Python 3 - Django 2.x: ImportError: No module named 'django.core.urlresolvers' is a common error we get when we migrate from python 2.x to python 3.x and use latest Django > …

read more
__str__ vs __repr__ in Python image
__str__ vs __repr__ in Python

Both and are used to represent objects in different ways.The default implementation of for a string value can be called as an argument to eval, and the return value would …

read more
Difference between null=True, blank=True in django image
Difference between null=True, blank=True in django

The main differnce for null and blank is null=True/False related to database blank=True/False related to form validation, used when is called. Simply defines database should accept NULL values, on other …

read more
Infinite iterators in Python image
Infinite iterators in Python

An object representing a stream of data. Repeated calls to the iterator’s method (or passing it to the built-in function) return successive items in the stream. When no more data …

read more
Git aliases image
Git aliases

The term 'alias' is synonymous with a shortcut. Alias creation is a common pattern found in other popular utilities like `bash` shell. Aliases are used to create shorter commands that …

read more
The as-if rule image
The as-if rule

Allows any and all code transformations that do not change the observable behavior of the program. Explanation The C++ compiler is permitted to perform any changes to the program as …

read more
HttpRequest attributes image
HttpRequest attributes

Djangousesrequest and response objectsto pass state through the system. When a page is requested,Djangocreates an HttpRequestobjectthat contains metadata about therequest. Then Django loads the appropriate view, passing theas the first …

read more
Article default image
Browser Object Model (BOM)

The Browser Object Model (BOM) is used to interact with the browser. Each HTML page which is loaded into a browser window becomes a Document object and document object is …

read more
Article default image
Document Object Model (DOM)

Document Object Model DOM stands for Document Object Model and is a mechanism to display the HTML documents and communicate with them. It defines the logical structure of documents and …

read more