Adding Google Map in web page using Javascript

Author - Richa

How to add Google Map in your project and show markers and InfoWindows for various locations using HTML and Javascript.

Google Map API is one of the most used APIs in websites and projects. We can use the API to show maps on a webpage. The API is Read more…

Introduction to DataBase Isolation Levels

Author - Ishpreet Kaur
|
0 Comments
|

Introduction to DataBase Isolation Levels

Transaction specifies an isolation level that defines the degree to which one transaction must be isolated from resource or data modifications made by other transactions. Isolation Levels are described in terms of side-effects of concurrent access or modification by number of users at a Read more…

Java | SSL and SSLHandshakeException for self-signed websites

Author - Richa
|
0 Comments
|

What are secure SSL Certificate?

Secure SSL certificate is used by most of the websites to prevent private and secure information of their users so that no third party could access them. When an SSL certificate is used, it encrypts the confidential information of users which becomes unreadable and inaccessible Read more…

Java | int and float overflow and underflow with examples

Author - Ishpreet Kaur
|
0 Comments
|

First we should know what is overflow and underflow.

Overflow is a condition where value crosses the maximum prescribed size of a data type.
Underflow is a condition where value reaches the minimum prescribed size of a data type.

With Overflow and Underflow condition, either the program crashes, or an Read more…

Selenium | Take UI screenshots when script is executed

Author - Webner
|
0 Comments
|

During testing a website with Selenium, function given below can take screenshot that can help us in cases like when testcase fails and we need the screenshot to see what happened on UI.

Here is function to take screenshot:
public void screenshot(WebDriver driver, String fileName) {
try {
File src = ((TakesScreenshot Read more…

Java | Wide and Narrow typecast in Java with examples

Author - Ishpreet Kaur
|
0 Comments
|

Cast means converting one data type to another data type.

Automatic Type Conversion

Automatic type conversion means programmer doesn’t need to write code for the cast. In Automatic Type Conversion, narrower data type is converted to broader data type automatically by Java. Automatic Type Conversion is also called Widening Read more…

Java | static variables, instance variables, final and static

Author - Komal

Explain with an example which variables should become instance variables and which others should become static. Also when to use final with static and final without static? (JAVA)

INSTANCE VARIABLES: Variables that belong to the object of the class and each object can have its own value for Read more…

Java | Runtime Polymorphism

Author - Webner
|
0 Comments
|

There are two types of polymorphism:

1) Compile Time Polymorphism (Method Overloading) – Here it is clear at compile time that which method call in the program will invoke which of the methods.

2) Runtime Polymorphism (Method Overriding) – Here it is determined at run time that which method needs to be Read more…

Java | Some basics

Author - Kritika Sood

How Java achieves platform independence

First thing is what platform independence means?
It means compiled Java code can run on any OS without change.

Now the question is how Java achieves this?
Java achieves this with the help of Bytecode and JVM (which is OS dependent).

When we compile a Read more…

Java | Benefits of declaring SerialVersionUID in your code

Author - Rita
|
0 Comments
|

SerialVersionUID is a class invariant that is used to validate that the classes on both sides of the wire are the same. During Serialization it marshals an object and sends it over the stream. During marshalling process, the SerialVersionUID is also transferred over the wire. The receiving process (Deserialization) compares Read more…

AWS Amazon CloudFront – How to enable cache for whole site

Author - Navneet Kashyap
|
0 Comments
|

AWS Amazon CloudFront is a web service that speeds up serving static and dynamic web content like, .html, .css, .php, and image files and videos. It also integrates with other Amazon Web Services like S3, EC2, Elastic Load Balancer and Route 53. It also works seamlessly with any non-AWS Read more…

Java | ‘default’ method implementation for methods in Java interfaces

Author - Neha Mishra
|
0 Comments
|

Default method, a new concept used for interfaces has been added to Java 8.

Purpose: In Java 7 or older, classes implementing an interface were forced to implement each method of the interface. Consider a long running project in which an interface is implemented by several classes and Read more…

Does Java support call by reference?

Author - Webner

Java does not support call by reference because in call by reference we need to pass the address and address are stored in pointers. Java does not support pointers and it is because pointers break the security. Java does manipulate objects by reference and all object variables are references. Pass Read more…

Selenium | how to upload a csv file with Selenium script

Author - Namisha

In this post I will give an example of how to upload a csv file with Selenium script to a webpage. Below is the screenshot of webpage:

Code to automatically select a csv file and then click Submit button is given below. Go through the comments in the code.
package Read more…

How to show slanted text and images using CSS?

Author - Parminder Kaur
|
0 Comments
|

Slanted text and Images in CSS for different browser is given by transform property in CSS. We need to specify the angle by which to slant the image or text. Angle can be negative or positive. Positive angle inclines the image in clockwise direction and negative angle inclined it in Read more…

Salesforce | Trap incoming email and extract email content with attachments in salesforce

Author - Kiran Preet
|
0 Comments
|

Problem: Trap incoming email and extract email content with attachments in Salesforce
Solution: Salesforce provides us a mechanism to trap incoming emails on a specific email id and extra email contents including attachments out of it. To achieve this we need to follow these steps:

1 Read more…

PHP | Load Data Infile to insert csv data into Mysql with PHP

Author - Webner

Problem: How to insert csv data into mysql table with mysql query in php. What problems usually you face with this and how to resolve them.

Description: I have csv file with thousands of records. I want to insert these records in mysql table with php Read more…

Moodle/Totara | Creating a new Activity Plugin

Author - Webner

Introduction: In Moodle/Totara we can add a different type of activities to a course by selecting from the list of standard activities available. As shown in the the list below:

But there might be some cases in which we need to add a custom activity to a Read more…

CSS | Animate elements in background screen

Author - Neelam
|
0 Comments
|

We can move elements on background screen using CSS properties.

Below @keyframes rule specifies the animation code and “movement” gives a name to the animation:
@keyframes movement {
0 % {
background – position: 0 px 0 px,
0 px 0 px,
0 px 0 px
}
50 % {
background – color: #FFA07A
}
100 % {
background – position: 500 Read more…

Java | difference among return, continue, break and System.exit in Java

Author - Webner

Question: What is the difference between return, continue, break and System.exit statements in Java?

Answer: The differences among these 4 statements are described here Read more…

‹ Prev page1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 Next page ›
Send your message