Highcharts Error #22 Map does not support latitude/longitude

Leave a Comment
When you are trying to use custom GeoJSON to draw a map using Highmap, you will get this error "Highcharts Error #22 Map does not support latitude/longitude".

Reason:
  1. It is because of custom GeoJSON you had is not supported projection format of the HighMap.
  2. Maybe you have not included proj4.js file in your html file.
    <script src="https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.3.6/proj4.js"></script>
    
  3. Maybe custom GeoJSON doesn't have projection (CRS) related information i.e. hc-transform in it.
    "hc-transform":{ 
        "default":{
            "crs":"+proj=mill +lat_0=0 +lon_0=0 +x_0=0 +y_0=0 +R_A +datum=WGS84 +units=m +no_defs"
        }
    }
Please refer following tutorial to create custom GeoJSON from scratch and also using same GeoJSON and draw highmaps. Custom HighMaps GeoJSON World Map Using QGIS

Generate hc-transform using QGIS

Leave a Comment
After re-projection of your map layers, then to know about CRS transformation follow the steps

Step 1: Open Projection Properties Dialog:

Use Ctrl+Shift+P in windows or Cmd+Shift+P on Mac to open Projection properties dialog.

Step 1: Add HC-TRANSFORM in your GeoJSON file:

Now add following hc-transform in your GeoJSON file like in the below image.

"hc-transform":{ 
    "default":{
        "crs":"+proj=mill +lat_0=0 +lon_0=0 +x_0=0 +y_0=0 +R_A +datum=WGS84 +units=m +no_defs"
    }
}

Feature has invalid geometry. Please fix the geometry or change the Processing setting to the "Ignore invalid input features" option QGIS

Leave a Comment
Settings > Options > Processing > General > Invalid features filtering


Step 1:

Step 2:

HTTP to HTTPS redirect Using htaccess

Leave a Comment
Create .htaccess file in your public_html folder if not exists. Add following conditions in it to redirect from http to https.

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

If Apache version is below 2 use this

RewriteEngine on
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]


Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings. Facebook Login

Leave a Comment
I had same issue (Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings) by updating SDK version solved the problem 

Solution: Simply update your SDK to latest version to 5.6.2 or 5.6.3 will solve the problem.

Bootstrap Responsive Datatables Not Working CakePHP 3

Leave a Comment
Please refer following implementation Bootstrap Responsive Datatables in CakePHP 3. I have implemented three types of Datatables.
  1. Default Responsive Datatables.
  2. Responsive Datatables With Immediate Child Row
  3. Responsive Datatables with Modal

Responsive Datatables with Ajax Pagination, Search Filter in CakePHP 3 Using Bootstrap 3, MySQL and jQuery

     

Kill Task on Specific Port Windows Command Line

Leave a Comment
Some times we want to kill task on specific port in order to start the task we want to run. Many times if this is happens what we do is , normally we do restart. Here is simple technique to kill specific task that runs on specific port without restarting the our system.

1. First we need find out task ID which runs on the specific port using following command.

C:\Users\username>netstat -o -n -a | findstr 0.0:80

suppose I want to kill the task that runs on the port 80, then I will run the following command to get task ID that runs on port 80. It will gives result like this.

TCP    0.0.0.0:80      0.0.0.0:0              LISTENING       1344


2. Next we need to kill the task using task ID we got from previous command.

Now run the following command to kill the task.

taskkill /F /PID 1344