Tag: Business Website
WordPress | Unable to access admin panel for the WordPress site
The problem was because of the plugin named “ITheme Security”. When plugin was enabled, the wp-admin panel did not work and gave the following error: 404 page not Found Error. On disabling this plugin, admin panel worked fine. But disabling
Page break in PDF not working when table is created in loop
Problem: Page break in PDF was not working when table was created in loop. We wanted to have certain amount of rows on same page. If there was not enough space then next set of rows automatically shifted to the
WordPress accessing custom fields in code
In WordPress you can use following code for accessing value of custom fields: $key_name = get_post_custom_values($key = ‘Key Name’); echo $key_name;//display the value Here ‘key name’ is name of the custom field. get_post_custom_values() is a function in WordPress, which is
Download the PDF in Landscape mode using MPDF
While downloading the PDF from standard portrait mode to landscape mode, first of all you need to set the style in % (no hard coding of width or height). Then make an object of mpdf class. This is how we
Chargify | Single php function for all Chargify API calls
Following single function can be used for all Chargify API calls whether API calls belong to test site (site for test transactions) or live site (live transactions): <?php function sendRequest($uri, $method, $data = ”) { $apiKey = ‘XOTUsyy7pJ6yLgmMa233AtJ’; $subdomain =
Java | How to Create Entities from existing database in eclipse (ubuntu)
Follow steps below to generate JPA Entity classes automatically in Eclipse: Step 1: Create a simple java project and convert it to JPA Project using following steps: 1.1. Right Click on your Project. 1.2. Select Configure option from the menu.
javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher
We were getting following exception when trying to decrypt data using Cipher: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher Actually we were using three layers of encryption with three different secret keys. Everything was
Java | Remove duplicate objects from Java Hashsets and Hashmap keys
In Java, a Hashset, theoretically, cannot contain any duplicate values but it is not valid when you store user defined objects in it. Same is true in case of Hashmap keys which supposedly cannot be duplicate. The reason is, how
JQuery | Check/uncheck the radio button on click using jquery
When we click radio button, it gets checked. Once it gets checked it doesn’t get unchecked when again clicked. We can use checkbox for checked/unchecked status of input, but sometimes requirement arises when we need to use radio button for