Category: Zoho
New & Custom workspace in Illustrator
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
How to move complete site from one location to another using gdrive for heavy files via terminal
Problem: How to move complete site from one location to another using gdrive for heavy files via terminal. Solution: 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
CakePHP | Using Elements for common code
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.
PHP | Rename all the files in zip and then extract zip in PHP
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 =
Moodle | New lang strings not accessible
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’);
PHP | How to merge multiple PDFs into single file using pdftk
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: $arrayOfPDFFiles; $outputPDFName = “mergeResult.pdf”; $dir =”Files/GeneratedPDFs/”;
Moodle/Totara | Upgrade Moodle database after making changes to a plugin
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
Eclipse | Undo deleted file in Eclipse
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
Ubuntu 14.04 | Installing postgresql 9.4
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