Step 1. Click “Window” > “Timeline” to show the image sequence of animation.
Step 2. Go to timeline and click add audio.
Step 3. Select the desired audio you want to add in your .gif file.
Step 4. Select audio and click ok to import it.
Step 5. Adjust the audio Read more…
Solution: Suppose we have the following HTML and jQuery code:
<button id=”1″ class=”createNewElement”>Button</button>
alert(“Element with id ” + $(this).attr(‘id’) + ” is clicked!”); // tells id of button clicked
newElementId Read more…
When you are building a web-based multi/single tenant system or a desktop system which has a database at its backend to maintain records, keeping the history of records proves to be very useful in the long run from information and security perspectives. History of records means keeping track Read more…
Configure Tomcat service in Linux:
These instructions are related to installing and running Tomcat 7 as a service, which means that it will be launched at system boot and will be closed properly on system shutdown.
Running tomcat as a service in Linux:
For security reasons, you should not run Read more…
How to use SimpleSAMLPhp as a Service Provider for authenticating users? Some Basic steps to start using simplesamlphp.
1. Download stable version of SimpleSAMLphp from this link:
2. Go to the directory or your workspace where you want to install simpleSAMLphp, extract the zip file. Give Read more…
New & Custom workspace in Illustrator:
1. Go to the file or press Ctrl + N in Windows system / command + N on Mac:
2. This will open New window panel on your screen. You can change the title of your document here:
3. Next step is to choose the Read more…
Problem: How to move complete site from one location to another using gdrive for heavy files via terminal.
1. Log on to server where site is hosted via SSH.
2. Make a tar.gz of folder/directory of your site located.
3. Download gdrive in Read more…
￼Problem: How to separate redundant piece of code from your view using cakephp 3.0.
Description: Let’s take an example. You have a list of products to display. We show products at many places such as
1. Show all products.
2. Show products of the specific category.
3. Show Read more…
Description: In one of our PHP projects, we wanted to rename all the files in zip folder and then extract the zip.
The code for this is written below :
$zip = new ZipArchive;
$res = $zip->open($sourceFolder.’\’.$file);
for ($i = 0; $i < $zip->numFiles; $i++)
$filename = $zip->getNameIndex($i);
$arr Read more…
In Moodle we had declared some new strings in lang file of a plugin like this:
$string[‘LIBRARY_NAME’] = ‘E-Lab’;
$string[‘BOOK_READ_SUCCESS’]=’Congratulations on reading the book’;
We wanted to use it in view.php file of the plugin like this:
$result=Get_String(‘BOOK_READ_SUCCESS’, ‘plugin name’);
But the output was Read more…
Using PDFtk we can merge multiple files into a single file using a command like this:
Example : pdftk file1 file2 output file3.
Sample code to accomplish the same using PHP is given below:
$outputPDFName = “mergeResult.pdf”;
$multiplePDFs = $multiplePDFs Read more…
In one of our Moodle projects, we modified a plugin’s code to add extra functionality to plugin. The modification in plugin’s code was not reflected and Moodle showed the older version of plugin.
To solve this problem, we upgraded the Moodle database and changes in plugin’s code Read more…
Problem: Undo deleted file in Eclipse
Solution: We were working on a project in Eclipse. Accidentally one of the PHP files got deleted in which code was written. Eclipse does not use the Linux ‘Trash’ but keeps local history from where we were able to recover the file.
Follow these Read more…
Follow steps below to install Postgresql 9.4 (instead of 9.3 for which sources are added by default in Ubuntu 14.04):
1. Remove the previous PostgreSQL Version:
*Make sure that you firstly backup your databases.
$ sudo apt-get –purge remove postgresql-*
2. Add Repository:
$ sudo add Read more…
We get this request from a lot of clients in US insurance industry who want to generate ACORD forms automatically, means they want data of corresponding insurance Policy and other objects filled automatically in the editable ACORD PDF. Most of the clients have their data in a CRM system like Read more…
You may face this exception while trying to insert data in a mysql table using hibernate:
java.sql.SQLException: Data truncated for column date at row 1
While there can be different reasons of this problem, in our case it was occurring because by mistake we were trying to insert Read more…
If you are using PGAdmin version 1.18.1 on Ubuntu and it is not retaining connections that you create, all you need to is this:
A. Open command prompt and create file .pgadmin3 in your home folder
B. chmod 755 .pgadmin3
Now create a new connection, close pgamin and Read more…
A lot of Zoho users want to extend the capability that Zoho CRM provides out of the box. For example, one of our clients wanted to build a custom Quote Generator. They initially wanted to get the customization done to default Zoho CRM Quote form but their requirements were not Read more…
To convert date from one format to another we need to specify to php interpreter the format of our current value. See code below:
In statement below, we are providing date and format to DateTime::createFromFormat function so that function could know day, month and year values separately
$date = DateTime Read more…
Suppose there are two filters on the screen:
We need to reload data of Jquery datatable based on changed filter values.
“ Datatable “ plugin for jQuery needs to be called by including AJAX call as shown below :
Suppose id of the button on which we have to Read more…