Salesforce | Roll back changes or delete unused classes/triggers from Production

Author - Shalini
|
0 Comments
|

There are two most common ways to revert your changes back to Salesforce sandbox from production:

1.) Force.com IDE
2.) Salesforce Migration tool (ANT)

Using Force.com IDE :

If you are already using force.com IDE then you can go for this option to delete components from production.

Below Read more…

Some Useful Features from jquery and Html5

Author - Neelam

1. Data attribute :

This is the new attribute in html5. Using data attribute we can store custom data in any of the html elements. Data attribute consists of a prefix “data-” and a unique name appended to the prefix. Major use of data attribute can be found when html elements Read more…

CakePHP | Date format translation using internationalization

Author - Parminder Kaur
|
0 Comments
|

In Cakephp, To translate the application language into another, we use internationalization and localization. To display the correct translated date string on change of locale, we need to use right classes.

use Cake\I18n\I18n;
use Cake\I18n\Time;

I18n::Locale(‘es’’); // es locale is for Spanish
$date = ‘2017-08 Read more…

Moodle | Totara | Create bulk enrollments from command line

Author - Kailash
|
0 Comments
|

1. Go Home ► Site administration ► Development ► Debugging and set Debug messages with “DEVELOPER: extra debug messages for developers”.

2. Create a testcourse.bash file in root directory with :

for i in {1..100}
do
var=”Course_from_script_$i”
echo $var
php admin/tool/generator/cli/maketestcourse.php –shortname=$var –size=S Read more…

MySql Multi-table Join Query using Cakephp 3

Author - Parminder Kaur
|
0 Comments
|

Below is a mysql query joining three tables.

SELECT c.course_path, t.sf_name FROM courses c JOIN modules m ON c.id = m.course_id JOIN topics t ON m.id = t.module_id WHERE t.topic_name = ‘test_topic’.

This Query will return Course_path and Sf_name from Topics Table.

In cakephp 3, we Read more…

How to create Subscriptions in cybersource Payment Gateway

Author - Tanuj

Basically subscription in Cybersource is the customer profile that holds its details like customer details, billing and shipping details, customer payment information like card type, expiration date, account number etc. We have to pass all these details to Cybersource with an API call and corresponding to that request cybersource will Read more…

How to change wordpress multisite Subdomain to subdirectory

Author - Neelam
|
0 Comments
|

In a project I was working on WordPress multisites run on subdomains and we wanted to change multisite subdomains to subdirectory path like this: www.test.domain.com to www.domain.com/test.

Following steps are needed to follow for converting the subdomain to subdirectory URL :

1. Firstly Read more…

SSL certificate problem: unable to get local issuer certificate

Author - Navneet Kashyap
|
0 Comments
|

Problem :
Error comes when trying to use https with url on xampp server, error “SSL certificate problem: unable to get local issuer certificate”.

Solutions:
you need to follow below mentioned steps:

1. Stop apache service from xampp control panel.

2. Either generate a new self signed certificate or Read more…

Upgrading Liquid files from 2.x.x to 3.x.x (on new machine)

Author - Navneet Kashyap
|
0 Comments
|

Below are the steps to migrate liquid files from 2.x (old machine) to 3.x (new machine)

Command on old machine :

# ft migrate

1. Migrate to this system

2. Migrate from this system

3. Cancel

? 2

This will enable you to migrate the data and the configuration Read more…

Jquery | $ is not defined – Solving JQuery Conflict

Author - Kiran Preet
|
0 Comments
|

Piwik analytics is a open source analytic platform. Piwik provides APIs to manipulate and fetch analytics data and one can also create their custom APIs for same purpose. There are many APIs available in PIWIK but here I will explain Module Live API.

The Live API lets you access complete Read more…

Jquery | $ is not defined – Solving JQuery Conflict

Author - Deepika
|
0 Comments
|

Due to some project requirements sometimes we need to load multiple versions of jquery (not recommended). As most of the jquery library uses $ as an alias name for jQuery, therefore only $ of last library loaded into page works and if we try to use some functions from previous library using Read more…

Zoho | How to configure territories in zoho

Author - Webner
|
0 Comments
|

What is Territory?
Territories in Zoho can be used to create groups of customers/accounts on the basis of region, product etc and then a staff member of organization can be permitted to have visibility into accounts of a particular Territory only.

For example:
We want Accounts which Read more…

SQL Transaction in Cakephp 3

Author - Parminder Kaur
|
0 Comments
|

SQL transaction in Cakephp 3 is a series of statements working in a logical order to handle database errors and ensure data integrity. There are four main methods being used in Sql transaction in Cakephp 3.

1. Initialize the statement using begin() method.

2. Execute the statement which Read more…

Brief introduction to TinyMCE Editor

Author - Sahil
|
0 Comments
|

TinyMCE is an editor which lets you create your own editor functionality similar to MsWord. We can manipulate editor code and functionality according to our requirements.

Some features of TinyMCE editor :

1. It is a stable WYSIWYG HTML editor.
2. It performs on all the browsers (Cross-Browser Performance).
3 Read more…

Moodle | New Database table not getting created

Author - Kritika Sood
|
0 Comments
|

In Moodle, we were creating a new table for our custom plugin in db/install.xml file.

Install.xml file :

<TABLES>

<TABLE NAME=”test_student” COMMENT=”Student details.”>

<FIELDS>

<FIELD NAME=”id” TYPE=”int” LENGTH=”10″ NOTNULL=”true” SEQUENCE=”true”/>

&lt Read more…

Git | An introduction to get started

Author - Tanuj
|
0 Comments
|

Git is a distributed version control system. It is a system that records changes in a file or set of files over time so that user can recall previous versions later. As a result of which a user can revert files or project back to previous version, can compare changes Read more…

Salesforce | Toggle button to let TinyMCE editor switch between text or html mode

Author - Kiran Preet
|
0 Comments
|

Situation: We need to use tinyMCE editor for the rich text field so that user can switch from Visual to html editor. It means he can also use html coding or add effects from UI as required. As we know there is a default editor in salesforce for Read more…

Azure | Consumer Web application to crerate copy of SQL Database

Author - Harleen Kaur
|
0 Comments
|

Azure provides various rest apis to perform different actions and operations that are possible in the azure server like to create web applications, databases and many more. User can design their own simplified UI to perform actions, instead of logging into Azure and perform all the steps one by one Read more…

Run Apache Tomcat server via cron job and notify an email id

Author - Navneet Kashyap
|
0 Comments
|

Below is the shell script which can start Apache Tomcat server via cron job and send notification to defined email is:

#!/bin/sh

RESULT=`netstat -na | grep 8009 | awk ‘{print $7}’ | wc -l`
if [ “$RESULT” != 0 ]; then
echo “TOMCAT IS RUNNING”
elif [ “$RESULT” = 0 ]; then
/opt/lev8/tomcat/bin/startup Read more…

MySql | Display Latest entries of two columns of two rows into single row

Author - Ishpreet Kaur
|
0 Comments
|

Suppose we have two tables : articles and article_comments

CREATE TABLE articles(
`id` INT( 11 ) NOT NULL AUTO_INCREMENT ,
`title` VARCHAR( 200 ) NOT NULL ,
`content` VARCHAR( 500 ) NOT NULL ,
`author_name` VARCHAR( 20 ) DEFAULT 1 NOT NULL ,
`author_email` VARCHAR( 50 ) NOT NULL ,
`created_date` TIMESTAMP NOT NULL DEFAULT ‘0000-00-00 00:00:00 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 42 43 44 45 46 47 Next page ›