To check the login history of your Salesforce account (who is accessing your Salesforce account manually or through API calls) follow these steps :
1. Click on setup.
2. Click login history as shown in image below and you will find the information related to your login sessions Read more…
Hold down the alt key and use the num pad of your keyboard to create these symbols:
For copyright – 0169 – ©
Registered – 0174 – ®
Trademark – 0153 – ™
Hold down the alt key and press the desired letter of your keyboard to create these symbols manually:
For copyright – Alt+g Read more…
We were working on codeigniter website project. We had wsdl web services available to access our backend functionality. We had configured a WSDL Client in our php code but it was not working.
$testSoapClient = new SoapClient(TYPE_WSDL_PATH_HERE, array(‘trace’ => 1));
catch (Exception $e)
echo ‘Provider not Read more…
When we write selenium script for downloading files over internet through Mozilla Firefox following dialog box appears to save or open the file:
Note: This dialog box cannot be handled with simple find element functions like:
******So we Read more…
Suppose in Google Maps you want to display routes to different locations from common starting
For this we need accurate lat/long of the origin and destination addresses (only 1 origin and multiple destinations). We will use following statement to draw 1 route and run it in a loop Read more…
Right click on project -> Team ->select Disconnect option, following dialog box will appear:
Now if you want to delete complete svn metadata information, select the respective option and click yes.
Now your project is totally independent and you can attach it to any repository.
Now you Read more…
If you have a csv file with raw data and you want to read it using apex, convert to sfdc objects and insert these, then get success and failure results back then following steps and code can help you:
1. Create an Apex Class which will read the CSV Read more…
Recently we were working on a project in which the requirement was to send emails to 500 users at a time. Earlier, emails were being sent to 500 users in a loop 1 by 1 in which sendgrid-API was being called 500 times and this was consuming very huge Read more…
In one of the project we had to import some .csv files into Mysql database. Files were of size 80mb and more. When we tried to upload the files through phpmyadmin it was resulting in timeout error – Maximum execution time of 360 seconds exceeded (see image below):
A better solution Read more…
There was a situation when we were required to pass some values from one visualforce page to another. For achieving this we invoked the second VF page by calling the controller extension of this page using following code.
In the code segment below we are passing two parameters along the Read more…
We can access the php code in salesforce using @future(callout=true/false). The function we make for accessing the php code in apex class is of static type and does not return any value.
public static void function_Name()
Http h Read more…
While working with Joomla if you get an error – “Database Error: Unable to connect to the database:Could not connect to database”, check following properties in Joomla’s configuration.php file :
//given values are sample data only.
var $dbtype = ‘mysql’;
var $host = ‘localhost’;
var $user = ‘user_jo151’;
var $password = ‘YourPassword’;
var Read more…
Below are the Moodle database tables that will be used to fetch all the categories based on the programs assigned to a user (complete query is also written after table information):
1. mdl_prog : This table contains each program along with the category to which program belongs, its summary, fullname and Read more…
We had to use this image in one of the project but there is a problem with the image that it has some text as a watermark on its green arrow.
There is a tool in photoshop called Content Aware Fill, by using this tool we got rid of this Read more…
These are the steps to upgrade to PHP 5.6:
Add the PPA containing version 5.6 of php for Ubuntu 12.04:
sudo apt-add-repository ppa:ondrej/php5-5.6
sudo apt-add-repository ppa:ondrej/php5
Run these command in terminal to upgrade php :
sudo apt-get Read more…
You may face following exception while trying to update data in a database table using hibernate:
javax.persistence.OptimisticLockException : Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [com.abc.pkg.db.entities.customer.CustomerOfferScheduledTask#2504849]
The reason is optimistic lock is applied Read more…
Suppose you want to update field name ‘Status’ to ‘Active’ in multiple Sobject and there are large number of records for each Sobject. Instead of writing a batch class for each Sobject you can update multiple Sobjects like this.
Declare three variables, one for SOQL, one for field name which Read more…
While we continue to develop multi-tenant cloud based systems based on leading LMS software like (Moodle, Totara, Blackboard to name a few) for our clients, we have started to launch our own mobile apps related to the same. First such app recently launched by us on Android Playstore and Read more…
If you forget mysql root password these are few easy steps to regain access:
1. shell> mysqld_safe –skip-grant-tables
2.Open another terminal shell> mysql -u root -p (hit enter and use blank password)
3. mysql>UPDATE mysql.user SET Password=PASSWORD(‘NewPassword’)WHERE User=’root’;
4. mysql>FLUSH Read more…
In mobile applications development tracking lat/long of the current location is one of the most commonly used features. To achieve such functionality we mainly use three types of providers which are:
1. GPS providers
2. Network Providers
3. Sim Card or Offline providers
But when we use any of Read more…