Category: Salesforce
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
Mobile Apps | Fluctuation in the latitude and longitude values for the current location
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
Introduction to tarjetasvirtuales
Internet has totally changed the face of communication and how we do things and sending greeting cards is not an exception to this. There are roughly hundreds of ways to express your feelings to someone who is special to you,
How to be a good Technical Writer
In software development world, technical writers are those who write about technology, software manuals, “How to” guides etc. They gain understanding of the complex products and explain them in a precise manner to the target audience. Technical writers put themselves
Couple of approaches to generate test-data in bulk
Sometimes you need to fill a database table with thousands of test data records. You may also need to generate test data in the form of csv file to feed to a program. How can you generate such a large
Moodle | Call to undefined method mysqli_native_moodle_database :: insert_records()
We were using insert_records() function to insert multiple records in a Moodle database table but it was not working. We checked for errors by adding following lines in config.php file of moodle: @error_reporting(E_ALL | E_STRICT); @ini_set(‘display_errors’, ‘1’); $CFG->debug = (E_ALL