Ubuntu | Remove sendmail completely

Author - Ishpreet Kaur

Problem: I installed sendmail in my ubuntu system with the help of link http://lukepeters.me/blog/getting-the-php-mail-function-to-work-on-ubuntu. I installed it to test php mail functionality on localhost for my project. It was working slow, therefore, after testing, I wanted Read more…

Microsoft Azure | Deploy ASP.NET Web Project on Microsoft Azure

Author - Neha Mishra
|
0 Comments
|

1.Go to Server Explorer. Right- click on Azure and click on Connect to Microsoft Azure subscription.

A login screen will appear. Enter valid credentials with at least one subscription and sign-in.

2. Now expand Azure. Right click on App Service and create a new web App. See below Read more…

PDFtk | View PDF field information from command line

Author - Kiran Preet
|
0 Comments
|

Solution: If you have a pdf and you do not know the names of the fields used in the pdf just follow these steps:

1.   Install pdftk (search online).
2.   Open the command prompt, run the command:
pdftk YourPdf.pdf dump_data_fields

Using Above command you will get information Read more…

Java | Hibernate best practices

Author - Rita
|
0 Comments
|

1.  Always define hashCode() and equals() methods in your Persistent classes.
2.  Persistent class method’s equals() and hashCode() must access its fields through getter methods. It is a good practice to use accessor methods instead of direct instance variable access.
3.  Always Implement Serialization with your entity classes. It Read more…

A Brief Introduction to SOAP

Author - Parminder Kaur
|
0 Comments
|

SOAP stands for Simple Object Access Protocol. This protocol allows to communicate over the web between the programs (or Web service-enabled applications) running on two different systems using Http and language used by this protocol to communicate is XML (Extensible Markup Language).

The SOAP message is sent in an Read more…

How to configure DevExtreme with visual studio MVC application

Author - Neelam

These are the steps :

1. Install Microsoft visual studio on your machine.
2. Then we need Xpress Developer Studio. Which is available on https://js.devexpress.com/.
3. Install Xpress Developer Studio in your machine.
4. Then we need to install DevExtreme tool in the Microsoft visual studio.
5. Create Read more…

Importing gmail contacts in your website using javascript

Author - Richa
|
0 Comments
|

Importing gmail contacts in external website is common these day where you can login to gmail from within external website and then access your contacts directly inside external website. For example, the requirement could be to allow user to refer their friends to use your website and for that they Read more…

Moodle | Calling custom function on an event

Author - Kritika Sood
|
0 Comments
|

Event driven architecture is inbuilt into Moodle. There are various kinds of events present in moodle like:

1. Course completion
2. Course creation
3. Course deletion
4. Course Module creation
5. Category Creation
etc.

On trigger of an event we can call our custom function of custom block Read more…

Can static variables be local?

Author - Komal
|
0 Comments
|

Static variables are the variables that belongs to class. Static variables are shared among all the objects i.e there is only single copy of that variable.These do not get memory in each object. They automatically get initialised to 0.

For Example :
class Example {
static int count Read more…

WordPress | Add html form on a slide using Slider revolution Plugin

Author - Webner
|
0 Comments
|

How can we add html form in a slide in slider revolution plugin in WordPress?

Solution: Slider Revolution plugin gives us options to add image, shapes, layers to enter text for example.

For placing a form on a slide follow these Steps:

1. Click on Slider Read more…

Salesforce | Best Practices

Author - Webner
|
0 Comments
|

Best Practices for Salesforce

For Apex Classes:

1. Use Asynchronous Apex methods like @future methods, batch processing, scheduler that does not need to be executed synchronously.
2. Asynchronous Apex should be “bulkified”. It means able to handle collections of records.
3. Apex code must have appropriate exception handling Read more…

CakePhp 3.x | Declaration of user defined constants

Author - Parminder Kaur
|
0 Comments
|

In cakephp 3 we declare constants in bootstrap.php file under /app/config folder.

A constant can be declared as:

Configure::write(‘CONSTANT_NAME’, Value, true);

Example: Configure::write(‘USERNAME’, ‘Webners’, true);

To use this constant in another file, use this:

use Cake\Core\Configure;

Now the constant can be accessed Read more…

PHP and AWS | Copy AWS S3 file to local folder

Author - Ashish
|
0 Comments
|

How to copy a file from Amazon s3 to some local folder using PHP code

$t=file_put_contents(‘[Destination file address]’, file_get_contents(“[S3 url]”));

Here $t will get the size of file in bytes if successful otherwise 0. Before executing this make sure that the S3 file has access permission and Read more…

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
|
1 Comment
|

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
|
0 Comments
|

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…

‹ Prev page1 ... 26 27 28 29 30 31 32 33 34 35 36 ... 54 Next page ›