Moment.js – Get difference in two dates in years, months and days

You could get the difference in years and add that to the initial date; then get the difference in months […]

Updated on     Kisan Patel

ASP.NET WEB API: Error Self referencing loop detected for type

Problem: JSON.NET Error Self referencing loop detected for type How to solve self referencing loop issue when using Newtonsoft.Json The […]

Updated on     Kisan Patel

ASP.NET MVC : ‘Publish failed’ but build succeeded?

When using Visual Studio, when I “Publish Web Site”, the application builds correctly, but then I get a “Publish failed” […]

Updated on     Kisan Patel

IIS: Application pool stops randomly within in a specified time period

Problem: Application Pool Stops automatically. 503 Service Unavailable when not using default application pool. Application Pool automatically stop due to […]

Updated on     Kisan Patel

How to Send Email using PHP mail() Function [SMTP]

The SMTP mail settings can be configured from “php.ini” file in the PHP installation folder. Find “mail function” in php.ini […]

Updated on     Kisan Patel

Update all npm packages in package.json to the latest version

Problem: How do I update each dependency in package.json to the latest version? How to update all npm packages in […]

Updated on     Kisan Patel

ASP.NET MVC: Implement Maintenance Mode

Problems: How to take an ASP.NET MVC web site “Down for maintenance”? Implement “Down for maintenance” page. Web site Maintenance […]

Updated on     Kisan Patel

Simple PHP Script to Send iOS Push Notifications

Simple PHP script to send iOS Push Notification. $tokens = ‘-YOUR DEVICE TOKEN-‘; $url = ‘-URL-‘; $message = ‘Hey there!’; […]

Updated on     Kisan Patel

SQL Server: Database stuck in “Restoring” state

Problem: SQL Server: Database stuck in “Restoring” state Solution: You need to use the WITH RECOVERY option, with your database […]

Updated on     Kisan Patel

How to detect changes in any control of the windows form in C#?

Problem: How to detect changes in any control of the windows form in C#? detect changes in windows form c# […]

Updated on     Kisan Patel