Like in many other programming languages, there are objects in JavaScript.The objects in JavaScript can be compared to object in real life. JavaScript object's is a standalone entity, with its own properties and type . Compare it with a bucket, ...
Conditional Statements:
Conditional Statements are those statements which run different block of codes according to the condition or we can say these are those statements which perform different actions.
Following conditional statements ar...
We can add taxonomy to our custom post type.
Adding taxonomy means adding new category option in our custom post type.
We use taxonomy to basically categorize the data.
We create the groups of the similar type.
To add custom taxonomy ...
Cloud computing has made it possible for businesses of all sizes to avail computing services on the web, thereby eliminating the need of buying own servers, software licenses, hardware etc. There is no need to hire staff to maintain and...
Widget is used to add feature to you sidebar or anywhere we want to.
We can just simply call the widget in footer or anywhere we want to add it.
It is an easy way out to add feature to your page
To add widget
Go to Appearance > Cus...
We can add pagination to our page.
In wordpress we can split multiple post in different pages.
We can set how many post per page we want
When multiple loops are used in a theme template file only one loop, the main loop, can be paginated...
We can create our own custom post types.
We can call them whatever we want.
They are content types like posts and pages.
We create a custom post type for adding different feature to our website.
We can add category to our post.
Fo...
Hello Readers!
If you wish to give your HTML elements an effect this an be achieved by using css transform property. The CSS transform property allows us to visually manipulate an element by rotating, skewing, translating, or scaling. This pr...
Program to find power of a number:
In this program we are finding power of any number which will entered by the user and user will also enter a power. There is a function power which will return power of the number after calculating and Power...
when i execute this file.php only it will upload, when i run in Mainlayout.php its not uploading. Below file is File.php, its to upload csv file.. Canone help me plzzzzzzzz
<form name="import" method="post" enctype="multipart/fo...
Android Marshmallow i.e. API level 23 divided the permissions into two type :-
Normal permissions those permissions which do not risk user privacy . If your app lists a normal permission in its manifest, the system grants the permission auto...
Many times in application development using C# it is required to to post some data to a specific URL. In this article I will show two options for implementing this :
1) Using WebClient
string url = "http://www.url.com/post.aspx";
string...
We can change the text format, style,font size by adding a class created as per the requirement to the div or any html element dynamically using the addClass method of jquery.
For Example: let us change the content inside the div that cont...
Many times in application development using C# it is required to create a folder if it does not exist.
We can use the below method of C# to accomplish the same:
System.IO.Directory.CreateDirectory(folderPath);
Following is the code for c...
string is an alias in C# for System.String. Hence internally, there is no difference. It's like int vs. System.Int32. Even though both are same it's generally recommended to use string any time you're referring to an object.
e.g. string place...
Many times in application development using C# it is required to get the directory from a file's full path.
Let us say we need to find the directory for the following path:
string path = @"C:\Directory\File.txt";
If the requirement ...
HttpSession Interface
It is one of the session tracking techniques.
It basically creates a session for each user and is used to maintain the request data and time interval of a particular. A user may give more than one requests at a particul...
Hii,
As we all know that for mobile and tablet screen hover effect doesn't works so we need to remove all hover effects provided after window screen width 768px.It's very simple using Jquery.Just go through the following steps.
Step 1:Make su...
Finding largest number in an array:
To find largest number in an array first user will enter the length for the array and then the user will input the elements for the array. There is a max variable taken in the program which is assigned 0th ...
Hi All,
Today we will discuss about one of the very powerful and widely use JavaScript framework Ext JS for building application with interactive design and cross platform compatibility using various techniques like Ajax, Dynamic HTML (DHTML...
Databases whose data is not required to be changed should be considered to be set as READ ONLY.Databases can be set to READ ONLY mode and back using T-SQL and SSMS.
Following are the scripts that can be used to set database read only and bac...
Following are some useful SQL Server Date functions to find specific dates.
1) Today
SELECT GETDATE() 'Today'
2) Yesterday
SELECT DATEADD(d,-1,GETDATE()) 'Yesterday'
3) First Day of Current Week
SELECT DATEADD(wk,DATEDIFF(wk...
SQL Server provides a number of global variables, which are very useful.The values of these variables is maintained by the server. All the global variables represent information specific to the server or a current user session.The names of global...
In the below example I will discusss switching between activities in android. Here I have created two activities and named them Activity1 and Activity2 and used Intent and onclickListener in both activities. Also with I have created two xml layou...
How to change the text of an input using jquery
We can change the text of an input with the help of attributeEquals selector in Jquery
Syntax: $(attribute='value of the attribute')
attribute can be : name , value, title, style, src, id, ...
What Is The Risk In Software Terminology ??
We can determined to the risk as the possibility of an occurrence, accident, warnings, position, condition or situation happening and its unwanted outcomes. This is a main cause of the outcomes in ne...
If we want to load image from asset folder and we need to convert that image into drawable, than we just need to call this method loadImageFromAsset() and pass the name of the image as a parameter at your activity class, it will convert it into d...
In the below example I have created vector drawable function. For this first I have created vectordrawable.xml, animvectordrawable.xml , anim/rotation.xml and path_morph.xml layout. In activity_main.xml layout I have added TextView and ImageView...
From Android Kitkat 4.4 android gives inbuilt feature of Screen recoding with help of ADB.
Follow below steps to record screen:-
Open ADB location in Terminal.
Paste below command
adb shell screenrecord /sdcard/video.mp4
...
CTE:Common Table Expressions
1)CTE's replace subqueries i.e they are result of complex queries so can be defined as temporary resultset.
2)CTE's are mainly used for recursive programming.
3)The lifetime of CTE's is the individual query i...
Big Data has become a buzzword for businesses of all sizes. One big aspect of it is its tremendous potential to boost sales. Big Data is now believed to play an imperative role in generating prospective leads that chief managers could c...
Here is the blog which describes that how you can play around with path & patterns. This feature helps you to fill any pattern along the desired path, it is however semi hidden. Below are the simple steps:
1.Select the Pen tool(P)and creat...
JavaScript Array valueOf() method : The valueOf() method returns the copy of itself. This is the default method of an array object.
Syntax of Array valueOf() method :
array.valueOf()
Example of Array valueOf() method : In this example ...
1) Final:
Final is a keyword. It is used to store constant values in variable. The value can't be changed later on.
The class which is declared as final cannot be inherited.
The method which is declared as final cannot be overridden.
E...
Sometimes we need to disable trigger on a table especially when performing admin tasks on a table. Following commands provide a quick way to disable all the triggers for a table. Please note
that when we are diabling triggers on a table we w...
Sometimes during application development we need to do case sensitive search. Let us see how we can do the same in SQL Server.
For illustration purpose we will use a table called Technology which has a column named Platform.Now let us say colu...
Hello
Today, we will discuss about the tasks that need to carried out in order to upload an .ipa to the apple store.
Following are the things that need to be accomplished to upload the .ipa file:
Prepare the PhoneGap Build to produce ...
In object oriented programming Association and Aggregation shows the relationship between the classes. Relationship in OOPS defines the connection between the objects. It basically shows how objects are attached to each other and how they will op...
NORMALIZATION
Database is a collection of meaningful data by which we can easily upload,update,delete and manage data.
while creating a database the main problem which encounter is data redundancy. Data redundancy is condition in which same ...
This blog consists of the Web Design Trends we've seen in the previous year & probably will see in 2016:
Escalation in a similar UI
There has been a boom in responsive sites which had a aftermath of most websites being visually similar....
Css Selector:
It is a css rule set used to select the the content you want to style.
Types of selectors you want to style:
Id selector
Element selector
Group Selector
Universal selector
Class selector
ID Selector:
It selects t...
TRUNCATE TABLE Statement:
TRUNCATE Statement is used to remove all records from a table. It is a Data Definition Language (DDL) Statement as it deletes all records and only structure remains. It is similar to delete statement but without where...
Null Values:
Null values denotes missing data in a table or a database. If a column does not have any NOT NULL constraint then for that column there can be NULL values. By default a column can have NULL values.
We cannot use comparison oper...
It is a common requirement in SQL server development to update top N records in SQL server.In this blog we will see two approaches to accomplish the same.
1) Using UPDATE with TOP
UPDATE TOP (100) Table1 SET field1 = 1
However witho...
Python program to swap two variables in single line in python
Python program to swap two variables in single line
a = 5
b = 10
a, b = a, b
print "Swapped values of a and b are", a, b
Output
Swapped values of a and b are 10 5
...
How to swap two variables in one line in C?
C program to swap two variables in single line
#include <stdio.h>
void main()
{
int a = 5;
int b = 10;
(a ^= b), (b ^= a), (a ^= b);
printf("Swapped values of a and b ...
Before SQL Server 2005, the only practical way to trap errors in SQL was using the old-fashioned @@error system variable. Although this is still supported, in this blog we will learn how to use TRY-CATCH for handling errors.TRY-CATCH block is si...
A Transaction groups a set of tasks into a single execution unit. Each transaction begins with a specific task and ends when all the tasks in the group successfully finish.If all of these tasks execute successfully, then a transaction is committe...
Breadcrumbs is very useful in navigation. It is defined as a navigation technique that offers link to the home page to the user navigated through to arrive at the current post/page.There are so many plugins that is used to add breadcrumbs in word...
When we go to the WordPress login page , we see the default WordPress logo there written "WordPress". We can customize it and can put any of the logo in place of that wordpress default logo.
It's easy: just open your functions.php file and pas...