To get Eclipse or any other editor to open the file by default every time you download a file from fileZilla follow these steps:
Open terminal and find path from which your editor executes using which command.
$ which eclipse
Output : /usr/bin/eclipse
Open fileZilla, go to edit->settings
Go Read more…
Follow these steps to integrate Axis2 and Rampart:
1. Download axis2 from the below link:
2. Download Rampart.
3. Set AXIS2_HOME using below commands on terminal:
$ vi /home/user/.bashrc
Add below line to the end of the file:
export AXIS2_HOME=/home/user/Downloads/axis2-1.6 Read more…
Purpose is to get MFA/ 2-step verification working i.e. google-authenticator + ssh Keys
First of all, install google authenticator on your server with following steps:
1. Yum install google-authenticator.x86_64 (Redhat/Centos)
sudo apt-get install libpam-google-authenticator (ubuntu OS)
2. Now vi /etc/pam.d Read more…
If you are using ssh (Secure shell ) to connect to remote server, typing long ssh commands in the terminal is unsecure and tedious job.
Following is the better and secure way to do this :
Just create a file with name config (without any extension ) inside your_home/.ssh folder (~/.ssh).
Add Read more…
Running Tomcat as a service in Linux:
For security reasons you should not run Tomcat as root service. It is better to create a new user and run Tomcat under it.
Create a file with the script:
$ sudo vi /etc/init.d/tomcat
(add following and set path of tomcat Read more…
Problem : How to show red asterisk symbol in place of red vertical bar for all required inputFields in Visualforce page?
Solution : Sometimes we have some mandatory fields in our form, for this we can simply use required=”true” attribute with . This will show a vertical red mark before all mandatory Read more…
We had a maven project connected to svn repository. There were some folders or file types that we never want to commit such as target folder, bin folder or .class extension files. We had ignored target folder in Eclipse settings as described below but still it was showing target folder Read more…
In one of our previous posts, we gave a brief introduction to Tarjetasvirtuales.
In this post, we will explain how a greeting card is sent using Tarjetasvirtuales.
After registering yourself in Tarjetasvirtuales, select the category of greeting card you want to send:
For example: let’s choose the Read more…
If HTML editor does not show up on summary area verify whether the editor has been enabled using the admin login to Moodle / Totara. This can be verified by checking the following points (in no particular order):
1. Is the TinyMCE HTML editor enabled in Settings > Site administration > Plugins > Text Read more…
Problem: How to attach PDF from a Visualforce page in email using apex class or trigger?
Description: We had a Visualforce page name ‘templateCOI’ which was rendered as a PDF. We wanted to use this page as an attachment in the automated email on a trigger.
Solution: Here is the Read more…
For Windows user:
1. Open folder that contains files in console
2. type dir /b > D:test.txt (it will copy the result in test.txt file)
For Linux user:
1. Open folder that contains files in console
2. type ls > /home/user/test.txt (it will copy Read more…
In one of our Totara theme projects, we wanted to display the categories->subcategories->courses structure dynamically up to any level. In Totara a category can have subcategories, each subcategory can have its own set of subcategories and so on up to any level. Also Courses can appear at any Read more…
Steps to install cordova/phonegap
To install cordova from command line, follow these steps
Download and install Node.js
$ sudo apt-get install node.js
Node.js is a runtime system for creating server-side applications.
Download and install npm
$ sudo apt-get install npm
npm is the Read more…
The Isset () Function:
The isset () function is used when we have to check whether a value in the variable is set or not. It returns false when variable contains null values.
For Example, values are stored in a session so that it can have access to another web Read more…
1. Accept vs Except vs Expect:
Accept: To approve/to agree.
Example: I accept the new business proposal.
Except: Leaving someone or something.
Example: The new software works on every operating system except Windows 98.
Expect: To hope.
Example: I expect this code will run successfully.
2. Loose vs Lose Read more…
In HTML, padding can be given to the text in following ways:
It is more appropriate to use “%” than “px”. The reason for this is when Read more…
Sometimes, we need to check when was the data last accessed. In MySQL, we had taken a field last_modified_time as timestamp datatype in a table, which was set to CURRENT_TIMESTAMP by DEFAULT.
When a new record was inserted, it automatically updated the field and set the current datetime into this Read more…
On closing child popup window (on click of a button), we wanted to refresh the parent window automatically to check the updates.
<apex:page Read more…
On creation of the new custom object, you will see search layout section on custom object detail page. Using Winter 16 Release, this section is not there, as in winter 16, search layout section is not enabled automatically.
Allow Search Features:
1. You can disable or enable search layout for Read more…
To Check if the domain of an email address is valid or not, pass the email address to the below method as an argument and execute it, it will return true or false by checking if the email id you entered has valid domain or not :
private static boolean doLookup Read more…