Sometimes it is a bit confusing for developer to select right compare statement to check variables or arrays as there are lots of compare functions like "isset()", "!" operator, "is_null()", "empty()" etc.
So we can use a straight forward appr...
EventListener in Jquery:
We use addEventListener() method to attach an event handler to an element in Jquery.With the help of this method we can add as many event handlers as we want to an element without
overwriting...
Migrations play a very important role in any MVC Framework. They work as a version control for your database. By using Migrations we can update the database schema and stay up to date on the current schema. By using Migration we can easily manage...
Before reading information from any file,we have to open the file for reading.
This Blog will help you to find the code to read-open-close the file(s) on server we have created with PHP.
Opening a file:fopen()
This function enables t...
Callback function in Jquery:
Callback function is a function which is executed after the current function (i.e the currently running function) has been executed.
As the name signifies Callback f...
User Control in Asp.Net:
Overview:
User Controls are used inorder to avoid rework & reduce complexity of the application, It provides reusability of the code.
For example if we have to display the grid view at di...
A closure is a technique which helps us to access the variable of other function even when they are out side the scope of the calling function. We can also say that it has access to the outer functions private variables.
Example : The pri...
The IndexedDB is used to solve the problem of offline storage mechanisms that are supported by all the major browsers.It uses WebSQL implemented in browsers like Opera and Safari to expose IndexedDB API for web applications.
Websites are able to...
Hi,
in this blog you will learn how the load function in jquery, Used to fetch data from any server to any web page using selectors.
<p><script>
$(document).ready(function(){
$("button").click(function(){
...
Testing of a Web- Based application:-
A Web-based application is any computer program which is accessed over a network connection using HTTP, It is created in any web browser's supported language.Web-based applications also may be client-based...
An Overview to Common Table Expressions(CTE) in SQL SERVER :
Common Table expressions or CTE helps in making complex sql statements easier to understand and maintainable.
It is very difficult to read or wri...
Entity Framework (EF) is an ORM framework. ORM stands for object-relational Mapping.
Now what is object-relational Mapping..
Object-Relational Mapping framework it self creates model classes depending on tables of database, and vise versa....
Hi,
you want a condition in which the particular div, para or any other tag need to be disappear with just a single click see my code written in jquery as simplest.
<script>
$(document).ready(function(){
$("p").click(function()...
Generic list are the list of object capable of storing any type, including Complex type such as class.
It can even store a List of Items as well.
Generic list is present in System.Collections.Generic Namespace in .Net frame work.
As every ...
AngularJS within it self provides many services that we can use in our application, such as
$http,
$resource,
$route,
$window,
$location etc
These Services are nothing but javascript functions defined inside Angular JS and they...
Hello Reader's today we will discuss about "Email validation in Php".
The below code tells that how to check your email is valid or not. For this we use regular expression for validate email.
<?php
if(isset($_POST['submit']))
{
$email...
Hi..!
I am working on Windows application using c#, in which I am using a TabControl. What I have to do is to open a tabpage dynamicaly on user's choice i.e if the user clicks on the NewUser button then the "New User" tabpage should get open ...
Code practice for Readability
Avoid unnecessary regions in class :
A class is based on Single responsibility principle.
We provide regions in class to surround block of code. I could be single or multiple methods.
Regions makes it easie...
People from management background must have studied about Customer Relationship Building. The basics of business management teaches us about the needs, demands, tastes and preferences of the clients. To develop any product some things need to be ...
While integrating a payment gateway with our site we seldom come to a case where user already
entered credit card information is not able to get verified. Thus a particular amount is being lost by the site
owner. There are various resaon f...
Hello Readers,
Today we will discuss about "Php server variables".
$_SERVER is one of the tremendous world-wide specifics within PHP. It includes information regarding headers, server, web host in addition to and many others. Its content has...
Hi !
I was using System.IO.File.AppendAllLines() function in .Net Framework 4.0 but due to some reason I have to migrate my project into .Net Framework 3.5. But in .Net Framework 3.5 I am not able to use this function.
Following is the ...
Hello Readers,
Here I am mentioning steps to integrate Skype with a webpage.
Hope it will help you somewhere.
To generate code for Skype buttons, use URL
http://www.skype.com/en/features/skype-buttons/create-skype-buttons/
You will get t...
Positive testing and Negative testing: The application tested from positive attitude than it become positive testing in another way the testing with negative attitude than it becomes negative testing.
Example of positive testing is given b...
If you want to get history of your git repository then you can use simply:
git log
This will return you all commits.
If you want to check changes made in a particular commit then you can use:
git show "SHA-1 key"
SHA-1 is you c...
Hi..!
I am working on a Asp.Net application where I got stuck in a issue in which I have to merge two column values of different DataTable into another DataTable....
If anyone has any idea please help...! Thanks in advance
Hi,
I have a issue in trying to access a page on my website
When I try to open the html page it gives me an error 403
"You do not have permission to access/main/menu.html on this server."
I have also changed the permission of the folder....
Hi,
I was trying to rewrite a URL in .htaccess file on particular range of id's from 40 to 900. But it is not working as it is supposed to be.
Actually I want to redirect page if there is any Id from 40 to 190. But is also redirecting ids lik...
Hello Readers
In this article I will guide you about the font size diffidence pixels, points, ems & %.
Here is a flow chart below in which I have mention the difference between pixels, points, ems & %. these font sizes are not actual.
...
Attribute selectors target an elements based on its attribute. You can only define the element attribute, so that all the elements having that attribute will be targeted within the HTML.
There are 6 different types of attribute selectors:
...
What is Collection ? It's just are enhancement to the arrays. before collection we have array where we perform operation or arranged data in some specified way. Like i want to arrange data for employee salary. So i can create a Floating number ar...
Hi
I am using Spring MVC with Java Config and defined some rest-services. Spring at sever side and AngularJS at client side.
I want to upload more then one CSV files from AngularJS site using REST service. How will be done using Spring MVC ...
Hey, are you working with large database having many columns and many queries . Is this working slow with sqlite?
Thanks to ORMLite that manages your database very efficiently as well as no need to manage lots of queries....
ORMLite supports ...
Web color can be expressed in hexadecimal , or as RGB value. With the RGB value, each color is represented as a number between 0 and 255. The example demonstrates one technique to generate a color, using one function to randomly generate the numb...
If you would like to disable word-press updates please follow the below process:
Open your current selected Theme folder.
Open under this folder function.php and
put the below code at the end of this file
//To Disable Theme Updates # WP V...
Hi
I am trying to upgrade my server(Ubuntu 14.10 + tomacat7) to Java8 from Java7 but I am getting the following error and not sure what is still referring to java-7.
$ sudo service tomcat7 start *
Starting Tomcat servlet engine tomc...
We already discussed Natural full text search in Indexed full text search in PHP-MySQL (PART - 1).
Lets look into Boolean Full Text Search.
In this we can use various operators to change the behavior of search. To specify a search to be b...
Hi
I have installed Tomcat application server(Apache Tomcat/7.0.61) in an Ubuntu server(Ubuntu 14.10).
When I am starting tomcat server it hangs at deployment stage and try to http://localhost:8080 on browser, its taking more time to load a...
If we want to send some data over the network or from one place to another place then we have to serialize it first using Serialization in java. Serialization is a process of Marshalling and Unmarshalling of data. Basically the conversion of Obje...
This is the most common and frustrating issue while parsing a csv file in rails i.e. the encoding issue. So in ruby on rails i found a library which basically detects the Character encoding using ICU (dependency package) and the name of the libra...
Hello Reader's,
If you want to set session time out for fix time period in PHP use the below code.
$page = $_SERVER['PHP_SELF'];
$sec = "1";
header("Refresh: $sec; url=$page");
session_start();
$now = time();
if(!isset($_SESS...
We know that Garbage Collectoris a program that automatically removes unwanted data held temporarily in memory during processing. Android also have its own garbage collector but this is not always guarantee all the times so we can't ignore heap ...
This is an extension method that operates on different types of objects and creates its own copy.
This method is generic so it can clone different types of objects
public static T Clone<T>(this T source)
{
var dcs = new Da...
Hello Friends,
As we already knows that, CSS reach to next level (CSS3.0). There are lots of elements in css which help us to build different style and UI behavior. Today, I am going to talk about Pseudo-elements and Pseudo-class...
In this tutorial we will learn how to sort the elements of an array on the basis of the keys or values as per
the requirement.We will discuss the following sorting functions with example:
sort()
rsort()
asort()
ksort()
arsort()
krsort...
To create an osv_memory wizard systems in openerp-7 and openerp-8(Odoo), follow the below steps.
In the action that opens the object, you can put </br>
<field name="target"/>
It means the object will open in a new...
Difference between Priority and Severity
Both Priority and severity are the attributes of a bug which are provided in the bug report. These attributes defines how fast a bug should be fixed.
Priority:-Priority means how fast a bug should be fi...