Salesforce | How to show different apex message at different places on clicking a single button?

Author - Kiran Preet
|
0 Comments
|

In a Visualforce page we have multiple UI blocks (for simplicity we have considered only 2 blocks below). In each block we have a form with some html elements and few action buttons to submit form of only that block. In addition we also have global action buttons which submit Read more…

Moodle/Totara | How to give Grade to user in enrolled course

Author - Namisha
|
0 Comments
|

To give grade to user enrolled in course follow the below steps:

1. Open the course in which user is enrolled:

2. To the left, click on link labelled “Grades” as shown below:

3. Click on the button “Turn editing on”:

4. On clicking of “Turn editing on” button, the Read more…

Eclipse Luna | Dark theme and window split

Author - Kailash
|
0 Comments
|

1. You can select a dark theme for Eclipse Lune now:

To use the dark theme, go to Window -> Preferences -> General -> Appearance and choose ‘Dark’.

2. Editors can be split horizontally ( CTRL+_ ) or vertically ( CTRL+{ ) allowing you to edit two parts of a file Read more…

FileZilla | How to switch from current editor to other editor

Author - Kritika Sood
|
0 Comments
|

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…

Integrate Axis2 and Rampart

Author - Neha Mishra
|
0 Comments
|

Follow these steps to integrate Axis2 and Rampart:

1. Download axis2 from the below link:

Click

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…

Ubuntu | Google Authenticator not working with SSH keys

Author - Navneet Kashyap

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…

Ubuntu | How to avoid typing full ssh command to connect to remote server

Author - Rita

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…

Linux | Configure Tomcat service in linux

Author - Navneet Kashyap

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…

Salesforce | Show red asterisk symbol in place of red vertical bar

Author - Kiran Preet
|
0 Comments
|

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…

Eclipse | SVN still showing already ignored folders during commit

Author - Rita
|
0 Comments
|

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…

Tarjetasvirtuales.com | Sending a Card

Author - Webner
|
0 Comments
|

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…

Moodle/Totara | HTML Editor doesn’t show up on summary area

Author - Webner

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…

Salesforce | Attach PDF from Visualforce page as an email attachment

Author - Webner
|
0 Comments
|

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…

How to insert file names in a text file from command prompt

Author - Navneet Kashyap

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…

Moodle Themes | Totara Themes | Hierarchical Structure

Author - Kritika Sood
|
0 Comments
|

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…

How to install Cordova/Phonegap

Author - Webner
|
0 Comments
|

Steps to install cordova/phonegap

To install cordova from command line, follow these steps

Download and install Node.js

Command :

$ sudo apt-get install node.js

Node.js is a runtime system for creating server-side applications.

Download and install npm

Command:

$ sudo apt-get install npm

npm is the Read more…

Using Isset() function in php

Author - Webner

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…

English | Some confusing words

Author - Webner

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…

HTML | Padding in px versus %

Author - Webner
|
0 Comments
|

In HTML, padding can be given to the text in following ways:

Method 1:
style=”padding-left:100px;”

or

style=”padding-right:100px;”
Method 2:
style=”padding-left:30%;”

or

style=”padding-right:30%;”
It is more appropriate to use “%” than “px”. The reason for this is when Read more…

MySQL | How to automatically update timestamp field

Author - Webner

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…

‹ Prev page1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 Next page ›
Send your message