Portable kepler.gl

Requirement: Implement Kepler in a portable way so that it can be used without installation in any windows x64 computers.   What is Kepler? Kepler.gl is a tool designed for geospatial data analysis. This guide will help you get started creating visualizations in kepler.gl Map Enthusiast? Make beautiful data-driven maps. Data Scientist? Gain insights from location data and deliver business outcomes. Features: More Details about Kepler visit : https://kepler.gl/ To view the documentation click here : https://github.com/keplergl/kepler.gl/blob/master/docs/user-guides/j-get-started.md Step 1: Download the Kepler portable file from my GitHub : https://github.com/haneefputtur/PortAKepler/archive/master.zip Step 2 : Create an account with MapBox – https://www.mapbox.com Step 3: Copy the MapBox Public Token Open the file \work\kepler\examples\demo-app\startup.bat using notepad and add the token as below and save Now double click NodeJs-Portable Now type startup and press enter It will open a browser with address 0.0.0.0  and give an error. Just ignore and try to access the web from the IP address of the machine with no port number. Now open the browser and type the local IP address . By default, I configured to work with Port 80. So test by opening the url : http://localhost If it works please try to access the system from another […]

» Read more

MVC C# Session Time Out Popup

Challenge : Develop an application which will alert the user the session is going to timeout in 30 seconds and allow the user to extend the session. If there is no activity session will be logged off. Features: ASP .net MVC Can be integrated with any application Minimal coding Only applies if the user is logged in Variables can be changed easily. If the user is working on the browser without interacting with server still the code keeps the session alive by sending a heartbeat every minute. heartbeat time can be controlled to avoid overloading server. Heartbeat is lightweight to save bandwidth No refreshing of the page is required Adding to the layout file will protect all the pages. Configurable timeout variables in web.config Beep sound to alert the user when the popup is triggered.   Step 1 : Create a partial view  _KeepAlive.cshtml inside Views/Shared folder and copy the following code. https://github.com/haneefputtur/Protect_Timeout/blob/master/_KeepAlive.cshtml Please edit these lines to match your configuration. var sessoff = “/Account/Logoff”; //edit with your logoff url var sessurl = “/home/KeepSessionAlive”; // edit line with your KeepSessionAlive URL of step 2 Step 2 : Create an Action Method inside the controller and name it as KeepSessionAlive() and […]

» Read more

Google 2 Step Authenticator – MVC 5.0 ASP.Net C#

Requirement : Implement google 2 step authentication in any existing MVC C# Project. Features : Highly Secure No need of internet to get OTP Code No cost for OTP code unlike SMS No need to wait long to get a code Both IOS and Android are supported Complete solution with source code available for download 30 Days cookie so no need to authenticate daily [Can be changed] Easily add or edit private secure code in web config. Enable 2 step feature from Web.config The session cookie is Encrypted for security purpose Source Code : Download complete source code from my repository: https://github.com/haneefputtur/GauthenticatorMVC5 Steps : Create a blank MVC Project Install Google Authenticator from Nuget Package 3. Add New Controller and name as LoginController Copy Below Code to controller using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; using System.Web.Configuration; using System.Web.Mvc; using System.Web.Security; using GAuthenticator.Models; using Google.Authenticator; namespace GAuthenticator.Controllers { public class LoginController : Controller { // GET: Login public ActionResult Index() { return View(); } public ActionResult Login() { return View(); } [HttpPost] public ActionResult Login(LoginModel login) { string message = “”; bool status = false; //check UserName and password form our database here string GAuthPrivKey = WebConfigurationManager.AppSettings[“GAuthPrivateKey”]; […]

» Read more

ESP-12E Based Weather Station – NodeMCU 12-E, BME280 and Yaler

Preface : Develop a Weather Station which can be accessed through the internet Advantage : Extremely low budget Easily available hardware Easy to configure Hardware Components Required : NodeMCU – ESP 8266-12E BME280 I2C or SPI Temperature Humidity Pressure Sensor Breadboard Internet Subscription Required : Yaler.net   Hardware Details ESP8266 – NodeMCU 12E     BME/BMP 280 Sensor Bread Board               Jumper cables                           Pin Configuration Pin Number D3 ESP — > SDA Pin BMP/BME 280 Pin Number D4 ESP — > SDB Pin BMP/BME 280 Pin Number 3V3 ESP — > VIN Pin BMP/BME 280 Pin Number GND ESP — > GND Pin BMP/BME 280 Online Subscription for Domain Send an email to get an account by paying their fee. Once you get the user account note down your Relay-Host and Relay-Domain   Install Arduino (if you dont have) from https://www.arduino.cc/en/Main/Software   After installation Open the Arduino software. Tools –> Boards –> Board Manager       You can also download the Yaler library files from https://bitbucket.org/yaler/yalercontrib/downloads/YalerESP8266WiFiServer.zip   Once download copy to Arduino Library folder make sure your folder looks like […]

» Read more

Secure your WhatsApp with 2 Step Verification today!

Hereis the tips to secure your whatsapp with 2 step verification. Why I need to secure? If you lose your mobile number for any reason like failed ID card registration or finishing the contract with service providers all your messages will not be available for the next subscriber of the same number. If the new subscriber cannot enter the pass code your number will be automatically removed from any previous subscribed groups. Usually if there is no 2 step pass code all your contents including pictures will be available to the next subscriber of your number without your consent. What 2 step will do? Once you enable 2 step authentication, WhatsApp will frequently make sure you are the real owner of the WhatsApp account. Also in case you change mobile device it will copy the previous content only after you enter valid passcode. How to Enable 2 Step Verification in WhatsApp ? Its very simple procedure and hardly takes 2 minutes to harness your whatsapp account privacy. Procedure for Android Users : Open Whatsapp –> Settings –> Account –> 2 Step Verification –> Enable Please keep note of the 6 digit passcode you have entered. In case you forgot the […]

» Read more

Easy Password validator for MVC C#

If you are developing an application in MVC C# use this code in your password model to make easy validation [Required] [DataType(DataType.Password)] [StringLength(100, ErrorMessage = “The {0} must be at least {2} characters long.”, MinimumLength = 8)] [Display(Name = “Password”)] [RegularExpression(“^((?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])|(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[^a-zA-Z0-9])|(?=.*?[A-Z])(?=.*?[0-9])(?=.*?[^a-zA-Z0-9])|(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^a-zA-Z0-9])).{8,}$”, ErrorMessage = “Passwords must be at least 8 characters and contain at 3 of 4 of the following: upper case (A-Z), lower case (a-z), number (0-9) and special character (e.g. [email protected]#$%^&*)”)] public string Password { get; set; } This will impose following password policy Passwords must be at least 8 characters And Satisfy any of  3 from 4 of the following: upper case (A-Z), lower case (a-z), number (0-9) special character (e.g. [email protected]#$%^&*)

» Read more

Regx for Validating UAE Telephone Numbers

This is the regx which can be used to validate UAE contact numbers in your developments. In C# Use as below in your models [RegularExpression(“^(?:\\+971|00971|0)?(?:50|51|52|54|55|56|58|2|3|4|6|7|9)\\d{7}$”, ErrorMessage = “Enter Valid UAE Numbers”)] public string Mobile { get; set; } Verify and test this regx online : https://regexr.com/47qlv In other designs you can use this  ^(?:\+971|00971|0)?(?:50|51|52|54|55|56|58|2|3|4|6|7|9)\d{7}$      

» Read more

Integrating Google Recaptcha to Webid – Auction Script

Webid do not have built in support for new google Recaptcha . If use enable Recaptcha of webid your registration form may not work. To resolve this follow below steps.   Step 1 : Register for google Recaptcha https://www.google.com/recaptcha/admin Enter google username and Password   Once you register google will provide a site key , please make a note of it. Step 2 : Open the file themes/modern/global_header.tpl     .. If you are using different theme use concerned folder. Add This line exactly before the >/head> tag <script src=’https://www.google.com/recaptcha/api.js’></script> Step 3 : Open themes/modern/register.tpl   and replace below code   Replace below code block after replacing the site key <div class=”form-group col-lg-12″> <div class=”capchabox”>{CAPCHA}</div> </div> <!– CAPCHA CODE –> <div class=”form-group col-lg-12″> <div class=”g-recaptcha” data-sitekey=”SITE KEY HERE”></div> </div>     Now login to webid panel and disable captcha setting to now as below.   Now you open the home page in webid admin panel and click on clear cache as below Now open the registration page you will see the new Google recapcha version 2 as follows    

» Read more

Enable Right Click – Copy in protected web pages

Problem : Some websites use javascripts to block mouse right click so that you will not be able to copy text or images from the site. Solution: If you are using google chrome , add the extension called Allow Copy. Features of Allow Copy: Allow Copy will re-enable select, copy, paste and right click in any webpage using any copy protection. Just click on extension icon to enable it on any page!    

» Read more
1 2 3 33