Category: Web Development
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
Photoshop | Content Aware Fill
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
Hibernate | javax.persistence.OptimisticLockException: Row was updated or deleted by another transaction
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 on
Salesforce | How to create Single Dynamic Batch Class to update multiple Sobjects in Salesforce
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
Introduction to LMS Report v1.0
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
Mysql | Forgot root password in Mysql
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