Java | Instance and Static variables with final keyword

Author - Webner
|
0 Comments
|

When to use instance variables, static variables and when to use final with them?

Instance variables belong to the object and each object has its own value for each instance variable.

For example:

The company has many employees and each employee has different properties like name, emp_id, address Read more…

Cron jobs in Totara

Author - Webner
|
0 Comments
|

When I made any new changes to the audience or add a new user(s) to existing audience in totara, it didn’t reflect in the member area of that audience. Sometimes it doesn’t even show changes made for many days because of scheduled Cron not running properly and Read more…

CakePHP | Calling Web API in CakePhp 3.x

Author - Parminder Kaur
|
0 Comments
|

Web API requests in CakePhp 3.x and difference from curl in php.

Cakephp provides an easy method to communicate with webservices as compared to core PHP. In core php we make api requests using curl. Below is the sample code :

function testAPI() {
header(“Content-type: application/json”);
$url = “https Read more…

Java | Few tips about Maven

Author - Rita

1.  How to compile maven project using different poms?

Solution: When we start compiling project with mvn -clean install command, maven tool first attempts to search the pom.xml file in the current directory. If no pom is found in the current directory then it will show following Read more…

Sendgrid | Display sender name with email in “from” field

Author - Manju Kashyap
|
0 Comments
|

If we want that when we send email to our users using sendgrid api then the name of the sender (if we provide) should appear along with sender-email then follow the process given below :

To accomplish this, we just need to pass an extra parameter “fromname” to the curl Read more…

Selenium IDE | Switch automation process to new browser window after link click

Author - Webner
|
0 Comments
|

Selenium IDE: (How to copy a link from a webpage and opening it in a new window and switch the automation process to new window).

Problem: In Selenium IDE we were required to copy a visible link on a webpage, open it in a new window Read more…

Salesforce | Steps to create Web To Lead form

Author - Webner
|
0 Comments
|

Steps to create Web To Lead form in Salesforce

Steps To Follow:
1. Login to your Salesforce account.
2. Click on Setup.
3. Under Build, section click on customize.
4. Click on Leads.
5. Under leads click on the web to Lead.
Show in Below ScreenShot:

6. Web Read more…

OpenSSL Project | The Heartbleed Bug

Author - Navneet Kashyap
|
0 Comments
|

The OpenSSL Project is an Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS) protocols as well as a general purpose cryptography library and contains the following vulnerability:

Allows stealing the information protected, under normal conditions, by the SSL/TLS encryption used to Read more…

AWS Amazon EC2 – Install php5.6 in Amazon linux

Author - Webner

In Amazon Linux, it is not yet packaged with php5.6. When we install PHP by a standrad command:
$yum install php*
1. It will install PHP version 5.3

Below are the steps to update PHP version from 5.3 to 5.6 in Amazon Linux:

Remove Read more…

PHP script scheduling without cron jobs

Author - Ishpreet Kaur

PHP script scheduling without cron job

Sometimes a website built in php needs to schedule a script on daily or hourly basis – for example, Reminder Emails, Newsletter emails or Database backups to be taken automatically. Normally, these types of backend tasks can be handled with the Read more…

Problems in mounting Windows NTFS drives in Ubuntu

Author - Webner
|
0 Comments
|

While using dual boot system (Windows + Ubuntu) there can be problems with mounting the drives of Windows inside Ubuntu. This problem generally occurs with Windows 8 and above versions.

Solution:
When we shutdown our system it does not fully shutdown in case of windows 8 and above Os, It actually Read more…

CakePhp | beforeSave and afterSave Callback Methods

Author - Kailash
|
0 Comments
|

beforeSave(): This function is called automatically before every save or update operation. This function must return true if you want to continue save process. The data for save, if needed in this function, will be in $this->data.

Syntax:
class MyModel extends AppModel {
public
function beforeSave() {
if (isset($this – > data Read more…

PHP | What is the purpose of data filtering in PHP?

Author - Ishpreet Kaur
|
0 Comments
|

Data Filtering is required in PHP to validate input and sanitize input received. Generally, we need to validate data before inputs need to be saved or used in our webpage. Wrong data inputs may cause exceptions or erroneous state in a webpage.

Data Filtering involves:
Validation:Read more…

Apache Solr | Indexing all files in a folder recursively

Author - Harleen Kaur
|
0 Comments
|

Indexing of all files inside a folder and all its subfolders can be done using java language in the following ways:

1. Using data import handler.
2. Without data import handler i.e by creating a recursive function in java code.

These methods are discussed below:

1.  Using Read more…

Java | Wrapper classes, autoboxing and unboxing

Author - Komal
|
0 Comments
|

Wrapper classes are the classes to convert the primitive types to objects of their respective class. We have many primitive types in Java like int, float, char etc. These primitive types can not be used in Collections as Collections only allow objects. Therefore in such situations wrapper classes are used Read more…

Salesforce | Why to use @TestVisible annotation

Author - Webner
|
0 Comments
|

Problem: Why we use @TestVisible annotation for a private method and private variable of a Class in Salesforce?

Description: I have a situation where I want to call a private method of a class in the test class, whenever I tried to call the private Read more…

PHP | Short introduction to traits in PHP

Author - Parminder Kaur
|
0 Comments
|

In PHP, the trait is a method of code re-usability. Php is single inheritance programming language. So there is a limitation of code reusability due to single inheritance. Traits in PHP is basically a method of code reusability. Traits have a similar declaration like the class but it includes Read more…

Salesforce | How to track email sent by workflows or process builder in email history section of record?

Author - Kiran Preet
|
0 Comments
|

1.Create an email template.
For example, we created a template called “Leads: Welcome email”
Somewhere in the template, add “ref:{Object Id of the record}” which you want to track the activity
For example, in our template, we added ref: {!Lead.Id}. If you want to hide this line Read more…

Moodle | Uploading Scorm Package and some internal function calls

Author - Kailash
|
0 Comments
|

1.Uploading a scorm package (.zip) in moodle:

a. Log-in to moodle, navigate to your course and “turn editing on”:

b. Click “Add an activity or resource” link:

c. Select Scorm package from list and click Add button:

d.Add basic information about the SCORM package that you are Read more…

Java Servlets | Converting relative path to absolute for file upload

Author - Harleen Kaur

In the program of uploading files to a server location, instead of using absolute location for saving file to that path, relative path needs to be used. Program was working correctly for absolute path.

In the maven project with the following directory structure , I created a resources folder in the 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 39 40 41 42 43 44 45 46 Next page ›