Moodle | Flash SCORM modules not showing content on shared hosting

| By Webner

We faced a problem that Scorm content packages uploaded in Moodle were not displaying content correctly on shared hosting server. After entering the Quiz the page was redirecting back to the same page rather than displaying the further pages of

Selenium | Unable to find Command button using Selenium Webdriver

| By Webner

Problem: Unable to find the Command button using Selenium Webdriver. Solution: You can use following script code if you want to find command button on a web page and then click it: driver.findElement(By.xpath(“//button[text()='(Button name)’]”)).click(); Here is the script which we used in

Chargify | Single php function for all Chargify API calls

| By Webner

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)

| By Webner

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

| By Webner

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

Salesforce | How to get Salesforce lookup field object id using javascript

| By Webner

Suppose we have the following lookup field on a VF page: <apex:inputField id=”owner” value=”{!Event.Ownerid}”> </apex:inputField> To get value of above lookup field using field id in javascript, if we directly use document.getElementById(‘{!$Component.owner}’).value, it will return the text that is displayed