Uploading files on Amazon AWS S3 server using PHP

written by : Richa Sharma (Senior Software Engineer)
|
0 Comments
|

Uploading files on Amazon AWS S3 server using PHP

Before uploading any document to Amazon AWS S3 server, make sure that user has to write access on the bucket where files will be saved else it will throw ‘Access denied’ error. Apart from the write permissions, access keys are also Read more…

Steps to Create and Delete Windows TaskScheduler instance in C#

written by : Navdeep Kaur (Software Engineer)
|
0 Comments
|

Steps to Create and Delete Windows TaskScheduler instance in C# code:

Dependencies: Add reference of taskschd.dll file.
On click of start button following steps need to be executed to create a instance of Scheduler.

1. Create instance of TaskSchedular

TaskScheduler.TaskScheduler objScheduler = new TaskScheduler.TaskScheduler();

2. Call connect method Read more…

Salesforce | Apply Workflow on existing records as well

written by : Kiranpreet Kaur (Software Engineer)
|
0 Comments
|

I have created a new workflow with criteria “Evaluate the rule when a record is created, and any time it’s edited to subsequently meet criteria”. It includes all the newly created records which fulfil the criteria. But I want to include all the old records which are already existing Read more…

QuickBooks Integration | Important Quickbooks Webconnector Facts

written by : Kunal Kumar (Software Engineer)
|
0 Comments
|

Question: Can we add custom functions in quickbook?

Ans: Yes, In quickbook.php file we need to add Constants to make custom function and we can add as many as we want. After defining these constant we can map these in our web service.

For example:

Suppose we want to Read more…

Linux | Warning (Y/N) on shutdown command

written by : Navneet Kashyap (Senior System Administrator)
|
0 Comments
|

Sometime unknowingly we execute shutdown or reboot command on production live server. So in order to be on the safe side we can configure the shutdown command to ask us for Y/N like explained below.

Switch to root user and then proceed

Step1. Add Alias in ~/.bash_profile as mentioned Read more…

How to Disable CSRF token in Laravel Application

written by : Mamta Sharma (Software Engineer)
|
0 Comments
|

CSRF stands for cross-site request forgery. CSRF token is basically used for security purpose in Laravel forms. To understand how it works read here – https://laravel.com/docs/5.4/csrf

How to disable it if required?

CSRF protection is enabled by default in all routes of Laravel 5 Read more…

Download CSV of table Records using OUTFILE sql command and PHP

written by : Deepika Saini (Software Engineer)
|
0 Comments
|

Create and Download CSV of table Records using OUTFILE Sql command and PHP

Step1: Create temporary csv file using OUTFILE sql command:-
OUTFILE command is used to write your sql command output to the
specified location. You can write the output to some files using OUTFILE
When required.

Syntax :-
SELECT Read more…

Chargify Retry and Dunning – How to manage failed transactions

written by : Manju Kashyap (Senior Software Engineer)
|
0 Comments
|

Description: When we use auto debit system to charge our customers using their credit cards, it is possible some transactions get declined. This can happen due to different reasons like user’s credit card has expired or due to authentication failure by bank etc. So, if we face such a Read more…

WordPress | Deployment of code to live website from Github, Bitbucket or Gitlab

written by : Komal Dhiman (Software Engineer)
|
0 Comments
|

Suppose we have live websites and we are using bitbucket to save the code of plugins, themes etc of those websites. Then we can manage the deployment to live sites easily through the WP pusher plugin.

WP Pusher plugin is used for the deployment of code to the live websites Read more…

Compare Passwords in HTML5 form validation using Jquery

written by : Ishpreet Kaur (Senior Software Engineer)
|
0 Comments
|

In one of our projects, requirement was to compare two password values using HTML5 form validation (display the message in the same format as regular HTML5 messages are displayed).

Let us assume that we have a HTML5 form for change password screen,
<form action=”Controller/User.php”

<div Read more…

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

written by : Ishpreet Kaur (Senior Software Engineer)
|
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

written by : 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 to wait Read more…

Moodle | SQL report example in Configurable Reports plugin

written by : Harleen Kaur (Software Engineer)
|
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

written by : Harleen Kaur (Software Engineer)
|
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

written by : 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 to make Read more…

Salesforce | Upload Document in Salesforce using javascript

written by : Navdeep Kaur (Software Engineer)
|
0 Comments
|

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

written by : Manju Kashyap (Senior Software Engineer)
|
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

written by : Kailash Kumar (Software Engineer)
|
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

written by : Harleen Kaur (Software Engineer)
|
0 Comments
|

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

written by : Harleen Kaur (Software Engineer)
|
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…

1 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 Next page ›
Send your message