Blogs

Reading barcode or QRcode using cordova or Phonegap

September 28, 2018
Sharing code how you can easily install and configure “phonegap-plugin-barcodescanner” plugin for reading barcode and QRcode in hybrid mobile app. I am using cordova for development if you are using PhoneGap just replace “Cordova” with “phonegap” in commands below, rest will be same. Step 1: Install plugin “phonegap-plugin-barcodescanner” using below command cordova plugin add phonegap-plugin-barcodescanner After running ...
Read more..

Windows service on local computer started and then stopped

September 28, 2018
I am getting below error while running windows service: The "my service name" service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other service or programs" It is difficult to track down this type of generic errors. You can do the following options to figure out the ...
Read more..

Installing Windows Services using command prompt

September 26, 2018
In this post, I am sharing how you can install or uninstall windows services in your local windows system . Assuming you already built one windows services using C# and want to install it using the command prompt. Follow the below steps to install on your local windows 10 environment: Step 1: Before you install ...
Read more..

Customize excel file before exporting using jQuery DataTables

September 4, 2018
I need to format excel data before it gets exported to excel. Not much help from official documentation. So I thought of sharing few formatting tricks which are easy to do. 1) Setting file name and title: buttons: [ { extend: 'excelHtml5', filename: "File Name You want", title: "some ...
Read more..

DataTables header and body not aligned

August 3, 2018
When scrolling is enabled in DataTables using scrollX or scrollY parameters, it will split the entire table into two or three individual HTML table elements; the header, the body and, optionally, the footer. This is done in order to provide the ability to scroll the different sections of the DataTable in a cross-browser manner. In my ...
Read more..

Starting windows services from C# MVC 4

July 6, 2018
Sometime you need to start/stop windows services from your C# MVC application. Here i am sharing how you can do that: 1) To access windows service you need to add below namespace in your controller: using System.ServiceProcess; If you are getting error as “namespace name ‘ServiceController’ could not be found” while adding above namesapce you need to add ...
Read more..

The type or namespace name ‘ServiceController’ could not be found

July 6, 2018
May times you need to add namespaces to your application, here I sharing how you can add “System.ServiceProcess” required to incorporate windows services to your application. Follow the below steps add references: 1) Right click on solution explore and click on add reff 2( go to Assembly => Framework and look for “System.ServiceProcess” and enable it. Click OK to ...
Read more..

You have not accepted the license agreements of the following SDK components

April 26, 2018
While building Android application you may get error for not accepting license agreement like below: You have not accepted the license agreements of the following SDK components: . Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio ...
Read more..

WordPress: Top interview questions and answers

April 19, 2018
What is the use of function.php in WordPress Every theme folder contains one and only one function.php. The purpose of this file is to allow theme developers to define theme features and functions. This file acts just like a WordPress plugin and can be used to add your own custom code snippets in WordPress. Updating your ...
Read more..

How can we change the port number of an Apache Web server?

April 19, 2018
There are many instance where we need to change apache port number so that other system/application work properly. Following are some conflicts that may occur: 1) Installing IIS on same machine. Change IIS PORT 2) Skype also used same port. How change Skype port. Either you can change the port of ohter Application or change the apache port. ...
Read more..