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…

Salesforce | Refresh the parent window automatically on closing the child window

Author - Webner

On closing child popup window (on click of a button), we wanted to refresh the parent window automatically to check the updates.

We can refresh the parent window on closing the popup window by using javascript.

Syntax : This is sample javascript code of page loaded in popup:

<apex:page Read more…

Salesforce | Search Layout Section For Newly Created Objects

Author - Webner
|
0 Comments
|

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…

Java | Check if domain of an email address is valid or not

Author - Neha Mishra

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…

Issues of UTF-8 Encode Keyword

Author - Webner

<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″>

<?php echo utf8_decode(“selecciona una categoría”);?>

Above two lines are used to decode the special characters properly. We use the meta tag in section of the page to decode the whole page and second Read more…

jQuery | How to hide all right siblings

Author - Kajal Marwaha
|
0 Comments
|

If you want to hide all following siblings of an element with jQuery then you can use next() function. This function is used to get following siblings (means siblings that occur after selected element) of matched element. If a selector is provided, it retrieves the next sibling only if it Read more…

How to write CSS hacks for IE 11 and Safari

Author - Kajal Marwaha
|
0 Comments
|

In one of our projects we were working on, website page’s styling was not uniform when viewed on different browsers.

To solve this problem, we used CSS hacks for Safari and IE 11.

Tag for CSS hacks in IE 11:

@media all and (-ms-high-contrast: none),(-ms-high Read more…

Eclipse | Ctrl+click doesn’t redirect to parent function or class

Author - Webner

While working in eclipse, we faced a problem in which Ctrl+click was not redirecting to the parent function or class.

Solution: To solve this problem, we followed the below steps :

1. Exit Eclipse
2. Go to Workspace
3. Open .metadata folder
4. Open .plugins folder
5. Search for folder 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 39 40 41 Next page ›
Send your message