Salesforce | Methods defined as TestMethod do not support Web service callouts

Author - Webner

Our code has some classes which contain functions that are used to make webservice callouts to connect with AWS S3 or EC2 machine. We have to cover these functions in our test methods but “Run Test” fails after running the first function with following message:

(Older Read more…

Heroku | Import/Commit Heroku App in/from Eclipse

Author - Webner
|
0 Comments
|

1.  Install plugin in Eclipse IDE :

Open Eclipse and navigate to Help->Install new Software.
Enter http://eclipse-plugin.herokuapp.com/install for the “Location” and click “Ok”.
Open Window->Preferences.
Select Heroku.
Enter Heroku username in Email field.
Enter your password in Password field.
Click Read more…

Maven | Using Properties defined in pom.xml in .properties file

Author - Webner

We are working on a web application built in spring MVC. We have some resources inside src/main/resources folder (Maven Project). The resources are Property files with data in the form of key-value pairs. We are using maven property placeholder syntax (${…}) inside properties files to use property values Read more…

Heroku | How to create/deploy your Php/CakePHP app (Ubuntu)

Author - Webner

1.  Sign up:

First, go to Heroku.com and click “sign up” to get your free Heroku account.

2.  Install the Heroku Toolbelt:

The Heroku Toolbelt contains the Heroku client, a command-line tool for creating and managing Heroku apps Read more…

Ubuntu | Open VPN Client Connection

Author - Webner

How to connect to VPN using open vpn-client in ubuntu 12.04 using username, password and ssl keys?

You have to first install openvpn

1. Run this command in terminal Read more…

Jquery | DataTables warning: table id – Cannot reinitialise DataTable

Author - Webner
|
0 Comments
|

If you try to set properties of Jquery datatable 2 times as below, it will give an error:

table = $(‘#product-data-table’).DataTable({stateSave: true}) ;

table = $(‘#product-data-table’).DataTable
({“aoColumns”:
[
{
“bSortable”: false },null,null,null
]
});

“DataTables warning: table id=product-data-table – Cannot reinitialise DataTable”.

DataTables does not allow Read more…

XML parsing problem – HTML entity characters in XML

Author - Webner

Problem

We had written a PHP program to parse large XML files and split each file into smaller chunks. Program was working fine for all the XML files except few. It was not splitting some XML files. After looking for the issue we found that Read more…

Ubuntu – GPG Error while running apt-get update

Author - Webner

While running update command after some time we were getting GPG error. It was showing an error message with public key => EAA903E3A2F4C039 not found Read more…

Salesforce | Dynamic object name in SOQL query

Author - Webner
|
0 Comments
|

Problem:

We have a visualforce page with a drop down list (apex:selectlist) containing Salesforce object names and a corresponding input box (apex:inputText). Requirement is to select an object from dropdown, enter a value in the input box and on submit search records of Read more…

Moodle – Few Key Features

Author - Webner

In this article we will go through some important features provided by Moodle. This is the list of features that we will cover:

1.Adding a book to a course

2.Adding and Managing Assignment

3.Adding a Quiz to a Course

4.Adding a Chat Activity

5.Course backup Read more…

Paypal Integration | Creating ClientId and Secret Key via REST API

Author - Webner
|
0 Comments
|

One needs ClientId and Secret Key for payment through Paypal via REST API. To get values of these 2 key fields, follow these steps:

1.Create a Developer account on Paypal site “https://developer.paypal.com/”.

2.Click on Sign up button at top right of the site.

3.A Read more…

IE 11 broken image issue

Author - Webner

Recently we faced a strange issue in one of sites we have developed in WordPress. We are displaying thumbnail images on a page. The site looks great in Firefox, Chrome and Safari. But in IE, some of images were broken, it just showed a red cross instead of the image Read more…

Windows over AWS EC2 | Really slow remote server

Author - Webner

On one of the AWS Windows EC2 machine we faced frequent problem of low disk space issue in C Drive. We figured out that a lot of user accounts were created on the server and from time to time those users used to login and create their content (documents, spreadsheets Read more…

Zoho | Max Deluge statements in Custom Function

Author - Webner
|
0 Comments
|

Maximum number of deluge statements that can be executed in one custom function is 5000. Now if you have a loop that has 10 statements inside it, and the loop runs 500 times, that means all of the 5000 statements will be exhausted. So your custom function may not run Read more…

Accessing AWS S3 bucket in PHP | Period / Dot in Bucket Name

Author - Webner

You may face a problem in your code if you are trying to access an AWS S3 bucket which contains period / dot in its name (like my.first.bucket). It gives a fatal error in PHP. This problem actually occurs with some AWS SDKs not all, so the solution is Read more…

PHP | Encoding Spanish Characters with json_encode

Author - Webner

You may face a problem with Spanish characters in PHP while trying to use json_encode. After json_encode it doesn’t give any result and no any error either. For solving this use utf8_encode instead of json_encode.
$result = utf8_encode ($value)

Webner Solutions is a Software Development company focused on developing CRM Read more…

Salesforce password expires and it needs to be changed in code everytime

Author - Webner

Problem:

We’re integrating Salesforce to a third-party e-commerce site using our custom cakephp app. In the app we’ve written code which uses Salesforce API to connect to Salesforce using Salesforce account username and password and then makes use of API calls to insert and Read more…

Codeigniter | How to remove index.php from URLs

Author - Webner

Problem: The default URL for Codeigniter contains index.php in it. How to remove that from URL?

For example: How do we change

http://localhost/workspace/pagination_demo/index.php/Home/ to http://localhost/workspace/pagination_demo/Home/

Solution:

Steps:

1.  Go to application- config folder inside your project:

2 Read more…

Salesforce | Invoking a Visualforce page in a managed package

Author - Webner

Remember one thing i.e to use __ (double underscore) after package name. Suppose you have a Visualforce page that uses custom controller. Visualforce page name is Upload_a_File. You have created a button on this page to choose a file and then upload this file to Amazon S3 or some Read more…

Error Code: 3. Error writing file ‘/tmp/MYMI5iqH’ (Errcode: 28)

Author - Webner

Problem

Recently in a website we were developing in Codeigniter PHP Framework, some of the urls stopped working and started throwing 500 internal server error. On investigation we found a MySQL query which was causing the problem .Query is simple but when we ran it 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