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

Penetration Testing common test scenarios

Penetration Testing common test scenarios:- Hello Readers.. By this blog i am sharing few important testing scenarios related to the penetration testing. These are common test scenarios. I hope these will help to all in time of penetration test...

Update one table with data from another table in sql

Update one table with data from another table :- Some time we need to update more than one column in a SQL table with values from column in another table.So we can achieve this using join. Please refer the below example:- Table Structure &...

How to convert Unix timestamp to time using Javascript

Hello Reader! If you having the timestamp generated by Unix and you want it to be in format of time then you can use the example code below:- function MakeTime(TimeUnix) { var d = new Date(TimeUnix); var h = (d.getHours().toString(...

SQL Avg ( ) Function

Avg ( ) function is used to return the average of numeric column . If in a table there is null value then it ignored that value . Syntax : select avg ( column_name ) from table_name where clause ; // where clause is optional Example : ...

High Level Language VS Low Level Language

High Level Language It is a programming language which makes it possible for programmer to write programs. It is close to human languages and is easy to maintain,read and write. Programs written in a high-level language should be translated in...

SQL Composite key

Sometime in a table we need two or more column to uniquely identify each row . Composite key is the combination of two or more Primary key . Primary key or candidate key come from the composite key . Syntax in SQL : create table table_name co...

Copy structure of a Table with data and without data

To copy structure in MySQL with data you need to execute the following MySQL statements: use dbname; create table new_table_name select * from existing_table_name; If you require the copy of structure without data then you need to execu...

Diffrence between ' and "

Both the ' and " are same and does same function but it's just the coding standard followed by coders Using double quotes for HTML i.e. <div class="colorFont"></div> Using single quotes for JavaScript i.e. $('#cont...

How to make image download with a link

Hello Reader! if you want to link up your images to make it download with just a click then you can use the code below <a href="/local/project/image.jpg" download="myimage.jpg"><img src="/ocal/project/image.jpg" /></a> T...

Creating complex Lists and Cards using Material design style.

To create complex list and cards we have to use RecyclerView and CardView. RecyclerView is a view that shows items in scrolling list (vertical/horizontal) or in grid layout. RecyclerView have advanced features over ListView. RecyclerView prov...

Magic Constants in PHP

Hello Readers, PHP Magic Constants: There are many magic constants are available in PHP, but some magic constants are most important used in php, like LINE_, _DIR_, _FILE ,__CLASS__, __FUNCTION__etc. These constants are case-sensitive. ...

Error 1119 cachedownloader error in flash

When we load our old project into new workspace then sometime the cache directory error generate. The error shows (error 1119: Access of possibly undefined property cacheDirectory through a reference with static type Class). Solution So...

How to get screen width and screen height in pixels programmatically ?

This blog help you to find screen dimensions in pixels programmatically as well as get the screen width and screen height and then set position. You can use DisplayMetrics class. DisplayMetrics class is a structure describing general information ...

Correct way to write disabled textbox

Hello Reader! If you got confuse to write the correct syntax of writing the disabled text box then you can use these types of code as below:- <input type="text" disabled /> <input type="text" disabled="" /> <input type="text"...

How to save state of an activity in android?

If you need to save state of an activity then you have to @override onSaveInstanceState(Bundle savedInstanceState) method of activity and put some states values that you want change to the Bundle parameter as below: @Override public void on...

How to change image onmouseover event

Hello Reader! If you are looking for a quick onmouseover event that changes the image over another image then you can use the following library code :- <img src='FirstImage.jpg' width='120' height='70' onmouseover="this.src='SecondImage....

How to create new helper in codeigniter

Codeigniter gives the facility to create own helper according to requirement. You can code easily and call inside the codeigniter controller or model. 1) Create a file and put the following code into it. if ( ! defined('BASEPATH')) exit('No...

Javascript Screen Object

This Object return all the information related to the browser screen . Like width of a screen , height of a screen , color Depth and pixel depth etc . Syntax : window.screen Some important property of screen : 1) width : It return the w...

How to make Spinner in android ?

Here I have created spinner function in android. Spinner can be used to display the multiple options to the user in which only one item can be selected by the user. Android spinner works like dropdown menu. In dropdown menu there will be multiple...

Protocol Testing Types

Protocol Testing Types:- There are different types of protocol testing. Some protocol testing types are mentioned as below:- 1- Functionality Testing 2- Performance Testing 3- Protocol Stack 4- Interoperability When we perform protocol...

Search product with category filter

Magento provide a quick search which search products globally inside site from any category but sometime we need to search the products of particular category. So below I am explaining the model we need to override and query which we need to modi...

benefits of using Joomla?

Hello Readers, Benefits of Joomla: Joomla is an open source software. It follow MVC pattern model , view and controller. Large number of components and extensions are available in joomla. Joomla allows to update the old joomla version ...

How can one install ruby on ubuntu

Choose the version of ruby you want to install for example : 2.2.3 After choosing the right version of ruby first step is to install some dependencies : sudo apt-get update sudo apt-get install git-core curl zlib1g-dev build-essential libs...

SQL Foreign Key

Foreign Key is used to establish a link between two tables . It always define in reference of Primary key ( another table ) . It act as a Primary key in its own table and foreign key for another table . Difference between Primary key and Foreign...

If you are looking to override your device home button to work as you desired

If you are looking to know, How to override home button programmatically in android, then below I have provided the simple solution. You have to do just a simple thing i.e to override the onKeyDown function in your application, given is the co...

createElement() Method in JavaScript

createElement() Method in JavaScript is used to create a HTML element through the JavaSript The Syntax is as: var element = document.createElement(tagName); the Tag name in statement defines the HTML element to be created. for the sa...

What is Protocol Testing

What is Protocol Testing? Protocol Testing is common word utilized by the organizations working in the transmission enterprises for testing distinct protocols in the domains of Wireless, Switching, Routing etc. There are many companies whic...

How to show copy, cut and pase action on website

Hello Reader if you looking for any script that makes user a notification whenever he cut, copy of paste data from your website then you can see how it is done below:- This is the html page <body> <h1>jQuery copy, paste and ...

SQL Primary Key

Basically Primary key is used to identify each row in a table . In a table Only one Primary key can be present . When in a table , there is more than one primary key then it would be called composite Primary key . Composite key is used when we ne...

how to print the HTML code in PHP

If you want to print the html tags and code inside the PHP code you can do it by putting all the html code inside the echo syntax:- Consider the following two cases:- 1. In between PHP tags <?php if(condition){ ?> //In this case th...

How to add and remove items to RecyclerView in android ?

Here I have created a RecyclerView app in android. In this app we have added item in RecyclerView and when we click on the item in RecyclerView the item will be removed. In this recycler view I have used notifyItem Inserted() and notifyItemRemove...

What is Enum type in Java

Enum type is a keyword which is used to represent similar kind of constants or fixed no of elements under one group only. The constants here may be static or final. In java the common use of the Enum keyword is to write Singleton. Enum as a type ...

What is meant by Doctype

The DOCTYPE specify the user's web browser and the search engines that what type of document is written. One final thought is that the new HTML5 standard proposes using a very simple DOCTYPE: <!DOCTYPE html> Always add the &l...

SQL Cross Join

SQL Cross means cartesian product of the rows of two or more tables . It return all the rows of the table when each row of the first table combined with the each row of the second table . It is also known as cartesian or cross join . Cross Join ...

Showing a Popup Window Using Modals in Angularjs

A dialogue box is called modal when it restricts the other functionality of the page until the dialogue box has been closed.     Here is the code for opening a simple modal popup using ‘modals’ in angularjs. ...

How to make multiple submit button in a form

Hello Reader if you need two or more submit button in a single html form then you learn from the code below:- For the form the html will go like this:- <input type="submit" name="submit_button" value="Submit" /> <input type="subm...

Difference between Test Environment & Test Bed

Difference between Test Environment & Test Bed:- In the software testing field test environment and test bed, both words are very popular. We can see the difference between these words as mentioned below:- Test Environment:- This is an...

How to print HTML page with tags using PHP

If you have any blogs or coding part that you need to show with the html tags, Then using PHP then you can perform this task Lets say print the line below:- <h1>I'm printing this line using the HTML tags</h1> To print this...

How to make shadow of text in html using CSS

Hello Reader! If you want to make your webpage more dynamic which looks like 3d using shadow of texts, Then you can use CSS. You just need to add the following css to you text css. text-shadow:23px 5px 6px #000000; To make shadow long...

Three Hot Trends of Digital Marketing in 2015

A clear lesson from 2014 was digital marketing would set out to surpass traditional means of marketing. So far, it has been proved true, with Christmas waiting across the corner offering a new treasure trove to companies to increa...

break statement in C language

if we want to break the execution of loop in while, do while and for loop and switch case we use break satement. Syntax: jump-statement; break; below are examples to illustrate break statement: Example1 Example of C break state...

SQL Full Join

In full join all the records of both the table will come in resultant table , it doesn't depend on matching the fields . It is the combination of both left and right join . If matches not found then it will return null .Sometime it is also called...

How to make background blur using CSS

Hello Reader!. If you want to show background image blur then you can use css. Lets's make a html page :- <div class="background-image"></div> <div class="content"> <p>This is the para showing the content over the...

Difference between java and c++

JAVA 1) Java is completely an object oriented language. 2) Java does not have template classes. 3) Java supports multiple inheritance by the use of interface. 4) Java does not support concept of pointers. 5) java does not have header files ...

SQL Outer-Right Join

2) Right Outer Join -> It is also known as Right join . In right join all the content of right table will come in resultant and from the left table only matching rows will come . If no rows is matched from left table then null value will be re...

SQL Outer-Left Join

In this Join all the content of both table will come in resultant table either they will be matched or not . Outer Join are of two types : 1) Left Outer Join -> It is also known as left join . In left join all the content of left table will ...

Check for the iPhone Models

To know On which hardware iOS is ruining like iPhone4 , iPhone5 etc below is the code for that #import <sys/utsname.h> -(NSString*) deviceName { struct utsname systemInfo; uname(&systemInfo); r...

How to scale and strech the image in a fix size?

If you have a fixed div and you want the image to be put over it by stretch and scaling then you can use the following code for html and css:- In the html page add class 'background' and 'stretch' <div id="background"> <img sr...

How to style checkbox using CSS

If you want your html form to look more beautiful than just the simple check boxes then you can use the following advance css. This will give rich looks to your html form by styling checkbox First on the html form create the checkboxes using t...

How to get the user's time zone using PHP and Javascript

Hello Reader! If you developing the website for a global purpose then getting the time zone of your user is a important factor. In the example below we'll see how to get the user's time zone by using JavaScript and PHP with a custom webpage. ...
1 190 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: