Webner Blogs - eLearning, Salesforce, Web Development & More - Page 47 of 59

Heroku | Checkout Git project into Eclipse from Heroku

Author - Webner

1. Go to Heroku and copy the link of the specific apps that you want to take checkout of:

2. Open eclipse and start the git perspective, then click cloning icon:

3. Paste the URL link into the dialog box that appears:

4. Edit pasted url – replace protocol type i Read more…

Photoshop | Add audio to Gif animation in Photoshop

Author - Webner

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…

jQuery | Click event does not work on dynamically created HTML elements

Author - Ishpreet Kaur

Solution: Suppose we have the following HTML and jQuery code:

<div id=”container”>
<button id=”1″ class=”createNewElement”>Button</button>
alert(“Element with id ” + $(this).attr(‘id’) + ” is clicked!”); // tells id of button clicked
newElementId Read more…

Maintaining record history in database

Author - Webner

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…

Java | Configure Tomcat as a service on linux

Author - Navneet Kashyap

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?

Author - Ishpreet Kaur

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:

Click here

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

Author - Webner

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…

How to move complete site from one location to another using gdrive for heavy files via terminal

Author - Navneet Kashyap

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…

CakePHP | Using Elements for common code

Author - Rita

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…

PHP | Rename all the files in zip and then extract zip in PHP

Author - Kiran Preet

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…

Moodle | New lang strings not accessible

Author - Kritika Sood

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…

PHP | How to merge multiple PDFs into single file using pdftk

Author - Webner

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”;
$dir =”Files/GeneratedPDFs/”;
for($i =0;$i<sizeOf($arrayOfPDFFiles);$i++)
$multiplePDFs = $multiplePDFs Read more…

Moodle/Totara | Upgrade Moodle database after making changes to a plugin

Author - Webner

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…

Eclipse | Undo deleted file in Eclipse

Author - Parminder Kaur

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…

Ubuntu 14.04 | Installing postgresql 9.4

Author - Webner

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…

ACORD Forms autofill

Author - Webner

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…

java.sql.SQLException: Data truncated for column date at row 1

Author - Webner

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…

PGAdmin not retaining created connections on reopening (Ubuntu)

Author - Webner

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…

Zoho Creator or PHP based solution?

Author - Webner

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…

PHP | Convert date from one format to another in php

Author - Webner

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…

‹ Prev page1 ... 42 43 44 45 46 47 48 49 50 51 52 ... 59 Next page ›