Category: Web Development
Google Maps | Display routes to different locations from common starting point
Suppose in Google Maps you want to display routes to different locations from common starting point. 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
Subclipse – How to disconnect and connect your project to a repository
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
Salesforce | Read csv file, insert objects and get results back in Apex visualforce page
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.
Sendgrid | How to send bulk emails in one batch using sendgrid in php
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
Mysql | Maximum execution time of 360 seconds exceeded at data import time
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
Salesforce | Passing data from one Visualforce page to another
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
Salesforce | How to access php code in salesforce apex class
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. Syntax: @future(callout=true) public static void function_Name() { //variable
Joomla- Database Error: Unable to connect to the database
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’;
Moodle | Fetch all the categories based on the programs assigned to a user
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