How to parse an XML file and save the parsed data into the corresponding objects?

Author - Divakar Sharma
|
0 Comments
|

Solution:

First of all, we need some dummy XML data for parsing as given below:

The above XML has many tags. The first one being the XML tag which lets us know that it is an XML document. Moving on to the next one we have Read more…

Validation vs. Application Rules In CakePHP

Author - Pawandeep Kaur
|
0 Comments
|

CakePHP uses a two-layered approach to validation:

1. Validation
It determines basic validity. It ensures that the data types, size, and format of data are correct. When we call newEntity() or patchEntity() methods, validations are triggered. For example, checking if an email address Read more…

PHP: mysqli_multi_query stops the execution of further MySQL queries.

Author - Ishpreet Kaur
|
0 Comments
|

The mysqli_query statement

Generally, we use mysqli_query to execute Mysql queries in PHP. We can use multiple mysqli_query statements to execute multiple operations like insert, update, and select. Sometimes, we store records in more than one table during save operation at the backend, but it is Read more…

Laravel 5.4 Logs And Errors

Author - Monika Dhiman
|
0 Comments
|

Introduction to Laravel 5.4

Logfiles:
A log file is a file that keeps a registry or records of events, processes, messages that occur in the operating system or any software runs.

-Laravel provides the robust logging services that allow the user to log Read more…

MongoDB Driver Not Found

Author - Manoj Thakur
|
0 Comments
|

Problem – Getting “Class ‘MongoDB\Driver\Manager’ not found” error while inserting some data in the collection (Laravel)

Check the following three points in order to resolve the MongoDB driver issue in Laravel:
1. PHP Module
2. MongoDB Extension
3. MongoDB Library
1. PHP Module –Read more…

Methods of Debugging – PHP

Author - Umang Pasricha
|
0 Comments
|

Methods of Debugging by dumping information

These methods are used for debugging in PHP. We can see the variable values in human-readable form on the console and can find errors in case there are issues due to variables incorrect values. print_r() and var_dump() are used Read more…

Bootstrap Templates, Grid System and Media-queries

Author - Kuldeep Singh
|
0 Comments
|

Bootstrap Templates, Grid System and Media-queries

What is Bootstrap?
Bootstrap is a powerful toolkit. It is a set of HTML, CSS, and JavaScript tools for making and building websites and internet applications. It is a free and open-source project, hosted on GitHub Read more…

Collections in C#

Author - Monika Dhiman
|
0 Comments
|

Collections in C#

Arrays
Arrays are useful for creating and working with a fixed number of strongly typed objects.

Problem with Arrays:
1. Fixed length
2. Insert similar data type elements

Collections
Collections are used to create and Read more…

Authorization Attribute Validation Issue

Author - Webner
|
0 Comments
|

Authorization attribute validation Issue: 404 status code is returned instead of 401 status code

In my application, I was using an API service to be used by external applications, where I needed to implement the authorization of valid requests by validating the supplied token in the Read more…

Progress Bar Using AJAX/PHP

Author - Webner
|
0 Comments
|

Progress Bar For Large Uploads Using AJAX/PHP

Problem:
When large files are being uploaded, a server at the back takes time to upload the same file. Users have to wait irrespective of knowing, whether the file is even being uploaded or not and how much Read more…

Best Practices for Logging in Node js

Author - Webner
|
0 Comments
|

Collecting Information or data from the system and storing it in a specific file is called logging. It may contain information or data for short or longer periods. Logs are the only way to troubleshoot an issue which the user has with the system.

Do logging correctly:

Creating Read more…

NodeJs Callback – Asynchronous Functions

Author - Harpal Singh
|
0 Comments
|

NodeJs Callback

NodeJs is an open-source server environment and it is free. It enables javascript to run on the server-side. It runs on various platforms(Windows, Linux, Mac, etc.). Callback is asynchronous equivalent code for a function. A callback function is called when a Read more…

Auto-Renew “Let’s encrypt” SSL Certificate using certbot

Author - Navneet Kashyap
|
0 Comments
|

Auto-Renew “Let’s encrypt” SSL Certificate using certbot

Make sure Domain is pointed to the server and should only be using IPv4 version. IPv6 will not work and you must have pre-configured the domain in apache configuration and make sure your default enabled ssl Read more…

Persist Data Using AsyncStorage in React Native

Author - Dalbir Kaur
|
0 Comments
|

Persist Data Using AsyncStorage in React Native

There are various ways to preserve the data in React Native but AsyncStorage is the most recommended way to persist data in your React Native applications as it is a built-in feature.

AsyncStorage is a simple, unencrypted, asynchronous Read more…

Create a drop-down with search capability using Devextreme components

Author - Harleen kaur
|
0 Comments
|

How to Create a drop-down with search capability using Devextreme components

Many of you might have seen a drop-down menu with a search capability that appears in Gmail on Move To Button click as shown in the screenshot below.

Similarly below is Read more…

Import Gravity Forms through code in WordPress

Author - Mamta Sharma
|
0 Comments
|

Import Gravity Forms through code – WordPress

Gravity form is a WordPress plugin that is basically used to build and publish the WordPress forms.

Sometimes the situation arises when we need to import Gravity Forms through code.
For instance, I needed gravity forms to be available in Read more…

In Totara – User Enrolment into Course as well as corresponding Group

Author - Pawandeep Kaur
|
0 Comments
|

Totara – How to programmatically Enroll User into Course along with the corresponding Group

As a trainer or a manager, if you go to Gradebook screen you will see the dropdown of group names there, on which you can filter the gradebook records by selecting a group Read more…

Language pack update in Totara 11

Author - Kritika Sood
|
0 Comments
|

Language pack updation in Totara 11

In previous versions of Totara, we were required to update the version of plugin in version.php file to reflect the language file changes. Therefore for a single string change the plugin version needed to be updated.

In Totara 11 Read more…

How to set the values of Metadata (column fields) of Sharepoint Documents

Author - Umang Pasricha
|
0 Comments
|

How to set the values of Metadata(Column fields) of Sharepoint Documents

Here is the code in C# which helps you to change the metadata field values of Sharepoint Files.

//This manager class can be used to obtain a SharePointContext object
OfficeDevPnP.Core.AuthenticationManager authMgr = new Read more…

Facebook Share – React Native

Author - Babita Kapoor
|
0 Comments
|

Facebook Share-React Native

React native provides Facebook SDK to integrate facebook APIs in react native application. It can be used for both (iOS and Android) platforms. Below is the documentation to configuration this package for android:

Installation:
1. Go to your project location Read more…

1 2 3 4 5 6 ... 54 Next page ›