Selenium | Opening and closing browser tabs with Key controls

Author - Webner

We can use Robot class to open and close tabs in Selenium but we also have the Key_Control concept. These are keyboard shortcuts to open and close the tabs in browser :

Ctrl+t (Open New tab)
Ctrl+w (Close tab)

We can use these keyboard shortcuts in Selenium script also Read more…

Salesforce | Passing data via Javascript to Apex Controller

Author - Komal

Some situations occur when we become unable to pass the data from visualforce page to apex controller directly.  For example: Suppose you have three divs (todoDiv, doingDiv, doneDiv) that are showing some tasks through the List from apex controller. It has the drag and drop functionality that allows the user Read more…

Salesforce | System.Callout Exception: Unauthorized End Point

Author - Webner

I tried to send REST request to my server on click of a custom button in Salesforce. It shows me “unauthorized end point exception”.

Solution : To resolve this issue we need to add the server address as a remote site in Salesforce. Here are the steps to add remote site Read more…

Selenium Locators

Author - Webner

To locate elements in Selenium WebDriver, we can use findElement() for single element and findElements() to locate a list of elements satisfying the search criteria. List of different ways in which both the methods can be used are given below:
driver.findElement Read more…

How to install and use command line tools in Heroku

Author - Manju Kashyap

What is Heroku Command Line:

The heroku command-line tool is an interface to the Heroku Platform API and includes support for things like creating/renaming apps, running one-off dynos, taking backups, and configuring add-ons. It is generally installed in your local development operating system.

Installing Read more…

Java | Base64 Encoding/Decoding with javax.xml.bind.DatatypeConverter

Author - Rita

Base64 Encoding/Decoding with javax.xml.bind.DatatypeConverter in java 6 and 7.

Solution: javax.xml.bind.Datatypeconverter class is the built in class inside JRE. We don’t need any third party library as we need in case of Cipher encoding/decoding method. javax.xml.bind.DatatypeConverter Read more…

CakePHP Security Component

Author - Manju Kashyap

CakePHP Security Component is very useful and provides an easy way to enable very tight security in our application:

1. It can restrict which HTTP methods our application accepts.
2. It provides Form Tampering Protection.
3. It can force to require that SSL must be used.
4. It Read more…

Jquery | How to create/edit Jquery Datatable dynamically

Author - Parminder Kaur

How to create/edit Jquery Datatable dynamically?

HTML code:
<div class=”col-md-12 col-sm-12 col-xs-12″>
<table id=”table”>
</table Read more…

Selenium Webdriver script | Open new browser tab and switch between tabs

Author - Webner

In Selenium Webdriver script how to open a new browser tab and then switch between first browser tab and 2nd browser tab?

Solution: This is the script to achieve it, go through comments in the code to understand how the code works:
public static void main(String[] args Read more…

Moodle | Add and access custom elements in Blocks

Author - Kritika Sood

In Totara how to add custom HTML elements (checkboxes, input boxes etc) and then access the value selected by user on server side:

1. Adding custom elements.
2. Accessing values of custom elements.

Each problem is discussed below: Overview:

In Totara, for blocks, we have some Read more…

Totara | How to enroll audience to Course/Program

Author - Namisha

Problem: I want to enroll audience in course/program and I do not know that how we can enroll audience in course/program. To enroll audience in course/program, I have followed the below steps:

1.Click Audiences link. To click on Audience link go Read more…

Salesforce Mobile iOS SDK | Retrieve the list of objects from salesforce

Author - Webner

Salesforce Mobile:

Retrieve the list of objects from salesforce in iOS native mobile app

Description: Using the salesforce mobile iOS-native SDK we can retrieve the list of objects using “requestForDescribeGlobal” SDK method. This method will return the data of all the objects from your salesforce org.

In your Read more…

Shopify webhook getting fired multiple times and then getting deleted from shopify store

Author - Webner

In our Shopify store we have an order creation webhook that points to a cakephp action URL. The action that webhook points to fetches the order data and then saves this to the database.

The problem that we were facing with this webhook was that it was getting invoked multiple Read more…

WordPress | Get title and description from posts dynamically

Author - Neelam

In wordpress we can get title from post title and description from post content area dynamically:
$id = get_the_ID();          //get the post id.
$title = get_the_title($id);           //get title from the post.
$content = get_post_field(‘post_content’, $id);     // Get all content from post content area.
$trimmed_content = wp_trim_words( $content, 20, ‘….’ ); // This function trims Read more…

Sorting Alphanumeric Data in PHP

Author - Kritika Sood

While fetching data from database, in SQL query I had ‘order by’ clause but the results were not sorted when the data was in alphanumeric form. The reason for this is that SQL sorts character by character from left to right. So it places c10 before c2 as 1&lt Read more…

Why Hadoop and Big Data are getting popular

Author - Webner

Surprisingly, over 90% of the data in the world today has been created only in the last couple of years. With the revolution in mobile industry, social media networks, sharing of digital photos and videos online we are continuing to grow the world’s data at lightning speed. To manage Read more…

CakePHP | How to handle special characters (like apostrophes) in queries

Author - Ishpreet Kaur

Let us take an example:

We have table employees with following fields:

id int primary key,

name varchar(50),

city varchar(50)

We have following records in the table:

(1, isha, amr);

(2, Hamlet’s, ghy);

(3, éhjj, amr);

2nd and 3rd records have special characters in their Read more…

Salesforce | Data Loader Application error about upgrade to TLS 1.1 or Higher

Author - Ashish

You may receive receive error in Salesforce Data Loader Application about upgrade of TLS 1.1 or Higher. To resolve this issue follow these steps:

Step 1: Install latest version of Java.

Step 2: Goto setup in Salesforce > type Data Loader in Quick find and download and install the latest Read more…

Java Spring | org.springframework.beans.factory.BeanDefinitionStoreException

Author - Neha Mishra

ERROR : Context namespace element ‘annotation-config’ and its parser class :

[org.springframework.context.annotation.AnnotationConfigBeanDefinitionParser] are only available on JDK 1.5 and higher

Description : My project is using :

server – Tomcat8
java- 1.8
Framework – Spring 2.5

I had added all the jar files required Read more…

Bootstrap | Introduction to Font Awsome icons

Author - Neelam

Font Awesome is an icon set that contains different scalable vector icons. There are many different types of icons that come with Font Awesome: social media, UI/web-related, and more!
Font Awesome gives us flexible vector icons that we can be customized according to our requirement. We can change Read more…

‹ Prev page1 ... 31 32 33 34 35 36 37 38 39 40 41 ... 54 Next page ›