Tag: Business Website
Java | What is the default location for maven repository and how we can modify it
To print maven default configurations, run following command: Command: mvn -X This will show you maven default configurations similar to following: Apache Maven 3.0.4 Maven home: /usr/share/maven Java version: 1.7.0_79, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-7-openjdk-i386/jre Default locale: en_IN, platform
PHP | How to call SOAP based web services from php
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. Sample Code: try { $testSoapClient = new
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
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’;
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
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
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
Secure Apache Webserver
By default Apache web server does not come with all the securities enabled. We have to enable enhanced securities before making it live & accessible to the outside world. Remove Server Version Banner : Modify httpd.conf and add following directives