How to Convert XML to a dynamic object in C#

Author - Neha Mishra
|
0 Comments
|

First of all how to parse a predefined XML structure to a class object in C#

Sample XML:
<User>
     <Name>Joseph Lawrence</Name>
     <Class>Second</Class>
     <Section>B</Section>
     <Roll_number&gt Read more…

Uploading files on Amazon AWS S3 server using PHP

Author - Richa
|
0 Comments
|

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 required in the code which we get while creating Read more…

Steps to Create and Delete Windows TaskScheduler instance in C#

Author - Navdeep Kaur
|
0 Comments
|

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

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

1. Create the instance of TaskScheduler:
TaskScheduler.TaskScheduler objScheduler = new Read more…

Salesforce | Apply Workflow on existing records as well

Author - Kiran Preet
|
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

Author - Webner
|
0 Comments
|

Question: Can we add custom functions in quickbook?

Answer: 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 Read more…

Linux | Warning (Y/N) on shutdown command

Author - Navneet Kashyap
|
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

1. Add Alias in ~/.bash_profile Read more…

How to Disable CSRF token in Laravel Application

Author - Mamta
|
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

Author - Deepika
|
0 Comments
|

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

1. 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 Read more…

Chargify Retry and Dunning – How to manage failed transactions

Author - Manju Kashyap

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

Author - Komal
|
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

Author - Ishpreet Kaur

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

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…

‹ 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 Next page ›