Customize Time Picker from Bootstrap Time Picker Plugin to add additional features

Author - Ishpreet Kaur
|
0 Comments
|

With bootstrap timepicker plugin, one can select time similar to datepicker (we select date, month, year from datepicker). With bootstrap timepicker plugin, we can select hour, minutes and meridian. In the following screenshot, you can understand, what timepicker does:

Screenshot 1

In short, this is how to use the timepicker Read more…

JavaScript and Jquery Best Practices

Author - Webner
|
0 Comments
|

1. Place Scripts at the Bottom of the Page: If we include script at the top, sometime page elements are not loaded completely and script starts working. So we need to include scripts after loading all the elements. Also if scripts are loaded at the top, browser has Read more…

Moodle | SQL report example in Configurable Reports plugin

Author - Harleen Kaur
|
0 Comments
|

SQL Report in ‘Configurable Reports’ plugin provides us an easy UI to write SQL Query and draw results immediately without involving any code complications.

Suppose I want to generate my custom grades report based on some specific activities from course – Let’s say these are PreTest 1, Pretest 2 and Read more…

Moodle: Performing search through wildcard queries with ‘Like’ operator

Author - Harleen Kaur
|
0 Comments
|

‘Like’ operator of SQL can be used in the following ways in Moodle:

Using expression $DB->sql_like:
$grade_item_test = $DB->get_records_sql ( ‘SELECT * FROM {grade_items} WHERE
‘.$DB->sql_like(‘idnumber’, ‘:idnum’).’ AND courseid=:cid order by itemmodule’,
array (‘idnum’=>’test’,’cid’=> $courseid) );
Using like operator:
$grade_item_test = $DB-&gt Read more…

Salesforce | Select * in SOQL and dynamic queries

Author - Webner
|
0 Comments
|

Execute dynamic query in salesforce. Also retrieve all fields from salesforce object without writing fields names in query.

Solution: In Salesforce we can’t write as Select * from object. We have to mention the field specific field name to query data. Also there are situations when we need Read more…

Salesforce | Upload Document in Salesforce using javascript

Author - Navdeep Kaur

We can create a document/attachment object record in Salesforce using Javascript by calling Salesforce soap webservice.

Note – Variable __sfdcSessionId is used to store sessionid.

Script files:

<script type=”text/javascript”>// <![CDATA[
__sfdcSessionId = ‘{!$Api.Session_Id}’;
// ]]></script>
<script src=”/soap/ajax/30.0/connection Read more…

Chargify | How to check for subscriptions having expired credit cards

Author - Manju Kashyap
|
0 Comments
|

If we want to check for the subscriptions having Expired Cards in chargify then there are two ways to do that:

1. By using the notification on dashboard (see image below):

By clicking on the symbol of notification it will show the subscriptions having expired cards:

2. Second method is Read more…

Postgres | JSONB data type field in PostgreSQL(9.4) and using it in CakePHP

Author - Kailash
|
0 Comments
|

JSONB (JSON Blob) datatype in Postgres is used to save JSON data. We can search on JSONB type of column after creating an index on it.

For example:

Usage in PostgreSQL:

1. Create table and index
CREATE TABLE tests
(
id integer NOT NULL,
email citext NOT NULL,
address jsonb NOT Read more…

Handling twitter and google plus share button in wordpress

Author - Harleen Kaur

Handling content and image sharing with twitter and google plus share buttons in wordpress

To achieve dynamic content(including image) sharing from a website with share buttons (or links) for share and likes on social sites like twitter and google plus, wordpress requires somewhat more specific functions while creating plugin Read more…

Moodle | Writing HTML content into pdf file and sending the pdf file as attachment

Author - Harleen Kaur
|
0 Comments
|

To create a new customized plugin with email functionality and sending a pdf file as attachment requires some simple lines of code with TCPDF library file inside the library directory of moodle. And for performing file operations, filelib.php reference is required. For creating pdf file from HTML content, append Read more…

Software Testing | Identifying bugs in different ways

Author - Webner
|
0 Comments
|

In software testing, we have various way to identify the bug/defect. Some of them are as given below:

1. Severity Wise:

* Major: When defect affects major functionality. Example: Suppose a Logo text is not Proper that will be affect the company work.
* Minor: When defect Read more…

Using Google reCaptcha to authenticate user login on login form

Author - Richa

Google reCaptcha is a free service API provided by Google to protect your site from unauthorized access, abuses and spam. The API uses advanced risk analysis technique to distinguish among a human being and a bot. The reCaptcha API comes in the form of a widget and it can be Read more…

Some Important new features in html5

Author - Neelam
|
0 Comments
|

Semantic tags in HTML 5: Semantic tag introduces meaning to the web page rather than just presentation. like and tags are not semantic tags because these are just used for content presentation in the browser.

These are list of semantic tags:

// we should use this tag Read more…

Salesforce Google drive integration | Upload files from Salesforce to Google drive

Author - Webner
|
0 Comments
|

Follow the below steps for the integration of Salesforce and Google drive (to select files from local and upload to Google drive using Salesforce code):

1. Open Google Drive console. Here is the link for console:
https://console.developers.google.com/apis

2. Select a project. If you Read more…

Salesforce | Send an email alert to Lead owner after X business hours from Lead Creation timestamp

Author - Shalini
|
0 Comments
|

Let’s say our business hours are from 9am to 6pm (Monday to Friday) and if Lead is created at 5pm on Monday an email alert should be sent to LeadOwner at 12am on Tuesday.

You can set your business hours in Salesforce under Company Profile.

Above requirement can be Read more…

Chargify | How to refund for duplicate payments

Author - Manju Kashyap
|
0 Comments
|

Description: If any customer has been charged for multiple times for the same month then there is an option in chargify to refund back for a particular transaction. So, if we want to refund for duplicate transaction, we can do that from our chargify account by logging in as merchant Read more…

HTML | Make HTML table sortable on column click

Author - Ashish
|
0 Comments
|

When we need to sort an HTML table on click of any of its column headers then we can use sortable.js:

Download library file sorttable.js.
Add this js file to the current page.
Add sortable class to the table for which sorting is required.

If you Read more…

Importance and Need of child theme in WordPress

Author - Neelam
|
0 Comments
|

In wordpress, a child theme is a theme that inherits the functionality and styling of its parent theme.

Child themes are the recommended way of modifying an existing theme (like inheritance in object oriented programming). If we have any theme and we want to modify its header or any other Read more…

Heroku | Fatal error due to PHP 7 and old version of CakePHP

Author - Manju Kashyap
|
0 Comments
|

Fatal Error on website whenever we were pushing any code change to our website hosted on heroku.

We were suddenly facing a fatal error (error 500) on our website. After making debugger on, it displayed the following error :

After exploring about it, we found that it was due to the Read more…

Cakephp | How to send email using google api (gmail) in cakephp 2.x ?

Author - Webner
|
0 Comments
|

How to send email using google api (gmail) in cakephp 2.x?

Answer: When you send email using google api, you’ll need:

1. Cakephp 2.x
2. A Google account with Gmail enabled.
3. PHPMailer Library.

Download PHPMailer library from below link:
https://github.com/PHPMailer/PHPMailer

After downloading 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