Namecheap Hosting Not Reflecting Latest Javascript Files Code on Upload

I am in India and using Namecheap hosting from last 5 years. But from past 2 years, I was facing a strange issue with uploading javascript file on the server. JS file was not reflecting on the server and was not same as uploaded. I talked to Namecheap support about 5 times but they said we are seeing the latest file. They always told me to clean browser cache which was of no use.

Continue reading Namecheap Hosting Not Reflecting Latest Javascript Files Code on Upload

Convert HTML Document into Image JPG PNG from Canvas

html2canvas is a powerful library to convert HTML into a canvas. Canvas created can be used to create PDF or we can simply append in the document somewhere required. Here we are going to simply convert HTML document or any element into a canvas which we later convert into Image of JPG or PNG type.

Continue reading Convert HTML Document into Image JPG PNG from Canvas

How to Add Back Arrow in Android Activity

Here is a simple method to add a back arrow to other Activity to come back to MainActivity. To enter a new activity we create an Intent then start a new Activity using that intent instance using the startActivity method.

After we enter the new activity we add a listener on action bar instance to finish other activity to come back to MainActivity.

Continue reading How to Add Back Arrow in Android Activity

jQuery & PHP Convert Date time to Facebook Style TimeAgo

Whenever a user sees a date or time, he/she start doing comparisons between current time and given time. So it takes some more brain resources to do time difference calculations. Facebook knows about this lazy human behavior, that’s why it always shows date time in the following format

less than a minute ago
17 minutes ago
1 Year ago

Instead of

30 May 2018 15:35:47
30 May 2018 15:18:33
23 May 2017 09:28:23

Continue reading jQuery & PHP Convert Date time to Facebook Style TimeAgo

Change Version Number of App in Android Studio v 3.1

Following method is to change the version number of application in Android Studio V 3.1 using settings. There are two methods we can follow, let’s have a look at both:

Continue reading Change Version Number of App in Android Studio v 3.1

Lenovo – Enable VT-x in BIOS

Most probably you may have encountered VT-x disabled issue during Android Emulator Installation. VT-x is Virtualization Technology which allows PC platforms to run multiple applications and operating systems simultaneously blah blah…

This procedure is for Lenovo for other It may be a similar process.

Let’s enable it

Continue reading Lenovo – Enable VT-x in BIOS

Check Hardware Details of CPU using Small Utility

Going to share a very helpful PC application to check your hardware configuration deeply. Without opening your CPU as I did :/ .I wanted to know DDR version of RAM installed. Download this free and small utility to check basic to advanced hardware details like

Continue reading Check Hardware Details of CPU using Small Utility

jQuery UI Datepicker AngularJS Directive using Min Max Options

In an Angularjs project, if you are trying to add a datepicker having all features like MinDate MaxDate etc, you will hardly find any module which is performance efficient, bug-free and is requirement friendly like jQuery UI datepicker.

So, If you are looking to use jQuery Datepicker as a directive in your AngularJS project, then believe me at present it will be a great option available which is fast, healthy and powerpack with huge options.

here I am going to share with you datepicker directive with basic options only like MinDate, MaxDate and default date, But as per requirement you can follow the same procedure to add more option in the directive.

Continue reading jQuery UI Datepicker AngularJS Directive using Min Max Options

RESOLVED! Shared Preference Context Error

During android development, especially for a beginner like me the creepiest thing which I felt was Handling Contexts. Shared preferences is really a cool thing if we want to save some handy information by the user on a device even if an app is killed. BUT context exceptions are everywhere.

So here we will not go deep into context understanding or preferences documentations. We will only discuss the best approach to use Shared Preference in application from anywhere inside your app. Using this method you can SET or GET preference literally from anywhere

– Mainactivity
– Non-Mainactivity
– Services
– Broadcasts

Continue reading RESOLVED! Shared Preference Context Error

Angular 7/6 | Not Reflecting Change in Variable and Model Value Passed in Component Method as Parameter/ Argument Resolved!

In an Angular application in some situations, we need to make changes in local variables which are getting used and defined as global. These variable or Model values does not reflect any change if we pass them as argument or parameter in a component method, then change in that parameter value does not reflect globally in view.

Continue reading Angular 7/6 | Not Reflecting Change in Variable and Model Value Passed in Component Method as Parameter/ Argument Resolved!