Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

How to highlight a div using Javascript

Hello Reader's! If you want to make a html page that based on user activity, As user clicks on div then JS will make that div highlight. Let's say our div is - <div tabindex="0">Hello World</div> Here div with tabindex of...

How to get the vedio views from youtube using API in PHP

Hello Reader's If you want o get the total counts of a views on youtube video by api, then you can use the following php code. <?php $video_ID = 'your-video-ID'; //set the id from url $JSON = file_get_contents("https://gdata.youtube.com/f...

How to implement Animation using Android TextSwitcher

To animate a particular label in android we have to use TextSwitcher on screen. TextSwitcher layout is similar as the other layouts in android, like Textview and Edittext. TextSwitcher is used to swap current text with the new one. We can also pe...

How to replace multiple strings with another multiple strings

Hello Reader's! If you want to replace multiple sting with another multiple stings, then you use the JS function as below:- Lets say a given sentence having strings. var str = "I have a cat, a dog, and a goat."; //sentence to process var ...

How to turn on Bluetooth in Android app

If you wish to turn on Bluetooth in android when your app run then use the code written below .This code will ask you to turn on your mobile Bluetooth if the Bluetooth is off. BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAda...

How Web Developers Can Avoid Common SEO Errors During Development

SEO process not only starts after the website is live by the SEO experts, however there are certain other parameter which every web developer should know to avoid some of the SEO errors ...

How to check/uncheck checkbox with jQuery?

Sometimes we need to check/unchecked checkbox based on some condition. We can do this easily by using "checked" attribute of a button. Example: <input type="checkbox" id="addressCheckBox" class="form-control"> <label>I confir...

how to send email via intent

Here is a way by which you can send the email via android-intent. The below code opens a dialog showing email related apps e.g. Gmail, Yahoo Mail etc. if installed in your device. In case your device is not installed with mailing applications t...

How to apply autocomplete feature to textbox with jQuery?

Sometimes we need to implement autocomplete feature to input field for searching purpose. We can do this by using "autocomplete()" with jQuery. Example: In the below example I have created an array of country names and passed that as source to...

IN operator

IN Operator use: It allows us to put multiple values in a where clause . With the help of this we can compare multiple values wtih where. Syntax: Select columnname(s) from Tablename where columnname IN(value1,value 2, .... value n); ...

Using Operations in Less

You can use basic math operations to numerical values and colors. if we want to have two divs placed next to each other, the second one with a different background. @div-width: 100px; @color: #03A9F4; div{ height: 50px; display: inli...

Vibrate Phone programmatically

In Android you can also use vibration method of android. There is an abstract class named Vibrator that helps you to implement vibrations in your own applications. method vibrate will vibrate with a given pattern. public class MainActivity...

How to show SMS in Device

If you want to create a function to Show SMS on your device check below simple example. Here I have created a ListAdapter, by using this class sms will be showing on list and in this I have also created a SmsFormat class In which I have set value...

What is the diffrent between table and div ?

Different between *table* and *div* What is div ? The DIV element can be called a block element. It can also be called a layer. Its use involves dividing a page into a logical section. One of its many advantages is the ability to hold what...

Make phone call programmatically

Its easy to make a phone call by using intent in android for this example we can user an editText and button with property of editText is set to inputType="phone" that ll accept only numbers. On basis of intent an action to be performed i.e AC...

Some Useful shortcuts to be used in Sublime Editor

1> To go-to any particular page(i.e to search the files by name) Ctrl + P (and then type the name of the page you want to navigate to) 2> To go-to a particular word in the file you are currently working on Ctrl + ; (and th...

How to reset wordpress back to its Original Settings

1> Go to your wordpress dashboard. 2> Go to plugins --> Add New 3> Type 'reset' in the search bar & click on "Search Plugins" 4> From the search results select "WordPress Reset" & click on "Install Now" 5> On...

Custom select box

Hello Friends, If you are looking to create a custom select box, you can use below HTML and CSS code I have provided. Below an example of custom select box. HTML - <div class="wrapper"> <input id="textfield" type="te...

How to get smallest key from an array using JS

Hello Reader's! if you have to get the smallest number from the array, Then you can use the JS for short calculation. And here is the example:- Lets say the array is [0] = 54.25 [1] = 536.2 [2] = 100.2 Now make a function and use th...

How to Make SlideShow in HTML5

In the past year, We were using Javascript and jQuery for image slideshow(image Slider), But nowadays we can make slideshow easily with the help of HTML5. In this blog I am going to discuss about how to make slideshow in HTML5 with complete exp...

How to make mobile browser display either in portrait or landscape?

Hello Reader's If you want to make simple Javascript code to make mobile browser display either in portrait or landscape.. This will help you to make your required sreen <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "htt...

Normalization

Database Normalization Normalization is a technique of managing records in a database. It is an approach to eliminate data redundancy and anamolies . It also removes data duplicacy in a record. It helps in data update,delete and insert anamol...

How to download an image automatically using Javascript

Hello Reader's! If you want to make your file download by execution of JS then you can use the code below:- var a = document.createElement('a'); a.href = "/favicon.png"; //make the link of image a.download = "favicon.png"; document.body.ap...

How to show selected words in alert box using Javascript

Hello Reader's! If you want to show what the text user has selected in a alert box, Then by using Javascript you can perform this task very quickly. Step1:- <div>Some test text for you to select</div> Make a div that show...

How to make alert message on select the radio button using Javscript

Hello Reader's! If you want to make an alert message for everytime user select the button then you can use the following JS as below:- Lets say our HTML is like this:- <input class="gender" type="radio" name="sex" value="male">Male &...

How to remove header and footer in print

When we print some html page bydefault the header and footer comes. On different browsers its in different way. To remove it from chrome use @page{ size: A4; margin: 5mm; /* this affects the margin in the printer settings *...

Prepared Statement in Oracle

Prepared statement is used to execute same database statements repeatedly with high performance. For example, if you want to insert multiple employee records you can use same prepared statement again and again. For below illustration it is as...

What is BUILD VERIFICATION TEST?

BUILD VERIFICATION TEST/SMOKE TEST are cursory tests that are helpful to determine the stability and testability of the build. These tests need to be run every time a build is deployed. The Build Verification test is preferable fast verification ...

When to start Automation Testing?

While automating GUI one has to be very careful, do not start the automating when the project starts, else you will ends up re-writing the the automation scripts. Many a times vendors provide training and support of automation tools to the resour...

Difference between px, dip and sp

If you are looking to know about the difference between px,dp,sp , here it is:- px(Pixels) :- px corresponds to actual pixels on the screen. Pixel is the smallest element of a picture represented on the screen. dip Density-...

Magento indexing issue

Sometime we face issues in reindexing like "Some problem with reindexing process" error, there are many reasons for it - 1) maximum execution of script 2) number of products in database and store view 3) locked files of previous process ...

Choosing the right tool for Testing?

Choosing the right tool is crucial to succeed in test automation. There are several factors that need to be considered when selecting a test automation tool. Some of the tools are free, some are expensive. Here are some factors that you mi...

Less Scope

Values of less variable depends on the scope. If the value is not specified in the specific scope, LESS will look for it in upper blocks until it finds the nearest declaration. Example:- @text-color: #000000; ul{ @text-color: #fff; ...

Login Authentication

Below i have written the code for Login Authentication, this code will check that weather the entered name and password are there in database or not. The following code will return true boolean value if the entered name and password exist in dat...

How to do Nesting in Less

Nesting is used to style your structure of the stylesheet that matches the HTML structure of the page to reduce the chance of conflicts. Example:- ul{ background-color: #03A9F4; padding: 10px; list-style: none; li{ backgr...

How to change the default controller in ASP.NET MVC

Many times we need to change the default controller in ASP.NET MVC. To change this first we need to understand how the default route is configured. This setting is available in RouteConfig file (under App_Start folder). routes.MapRoute( ...

How to overload the action Method in ASP.NET MVC

In this article we will see how to overload the action Method in ASP.NET MVC. Overloading is the scenario where we have two methods with the same name but different signatures. At compile time, the compiler finds out which method it is going t...

Anonymous function in php

Anonymous functions, is a function that allows the creation of a function without any specific name. We can use it as follows: 1-Assign it to a variable, then call it later using the variable's name. 2-We can store an array of different ano...

Selecting the first n rows, Pagination, Rownum & ROW_NUMBER() in Oracle

There will be requirement where you might need to select the first n rows, or do pagination in Oracle. This can be achieved using Rownum. Lets create sample table and data to understand the logic. create table Employees ( id number ...

Creating service through provider and factory in angularjs.

We can create service through provider,service,value and factory. In this blog I am describing provider and factory. For value and service you can refer to my previous blog -Calculate area of a circle using .value and .service in angularjsBy crea...

Outer joins in database query

Joins in database, We can easily determine the meaning of joins very easily. In database we use the concept of joining in tables to fetch the data combination. There are different type of methods of joining two or more than two tables in databas...

Comparison of ViewData, ViewBag and TempData

Generally in ASP.NET MVC we use the ViewData,ViewBag, and TempData objects for the purposes of moving data beween views or from controller to views.In this post we compare them against each other higlighting there difference and usage patterns...

How to use TempData to pass data ?

ASP.NET MVC TempData object is used to share data between controller actions.It is a dictionary object derived from TempDataDictionary. The value of TempData persists until it is read or until the current users session times out.TempdData can b...

How to handle Error 404 in ASP.NET MVC

In the following article we will learn how to handle 404 errors in ASP.NET MVC gracefully. The first step will be to set up the custom errors page by making the following settings in web.config: <system.web> <compilation d...

What is a CDN in jquery?

Hello Readers, CDN is a content delivery network or we also call it as content distribution network, its basically a large distributed system of servers which deployed in multiple data centers across the internet. Goal of CDN: Serve co...

JavaScript string prototype property

prototype property in JavaScript: The prototype property gives us freedom to add the new property and method into the object at any time. This is the global property in JavaScript which can be called through any JavaScript object at any time. ...

How to pass multiple optional parameters using Laravel 4.x

As we all know that routes plays an important role in any MVC framework. In Laravel we will define our routes in routes.php. Using Laravel 4.x we have the option to pass multiple optional parameters using Laravel 4.x. By using example it can b...

Difference between body document.ready() and window.onload() function

Hello Readers, document.ready : document.ready is an specific jQuery event when the entire HTML have been loaded. window.onload : window.onload is a normal JavaScript event. The below are some point to define the difference between docum...

jQuery.noConflict in jquery

Hello Readers, jquery.noConflict is the jquery function (jquery is the client side library) when we use the jquery.noConflict function in jquery it removes the conflict between different jquery libraries like Mootools, Prototype etc. they also...

Some Important Tips to write a Prefect Meta Description

As far as SEO is concerned, the Meta Description tag is always an important part of any website seo. Apart from the background parameters, the major search engine result page(SERP) mainly shows three things: Title of a Website Url /...
1 166 269
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: