Author Archives: Haneef Puttur

Convert Python into EXE file

Scenario : We want to convert a python application into standalone windows application.   Required Package :   What is Pyinstaller : PyInstaller bundles a Python application and all its dependencies into a single package. The user can run the packaged app without installing a Python interpreter or any modules. PyInstaller supports Python 2.7 and Python 3.4+,… Read More »


Requirement: Implement Kepler in a portable way so that it can be used without installation in any windows x64 computers.   What is Kepler? is a tool designed for geospatial data analysis. This guide will help you get started creating visualizations in Map Enthusiast? Make beautiful data-driven maps. Data Scientist? Gain insights from… 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… 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 :   Hardware Details ESP8266 – NodeMCU 12E    … Read More »

Python – Check TensorFlow Using GPU

To check weather Tensorflow using GPU follow these steps:   from tensorflow.python.client import device_lib print(device_lib.list_local_devices()) If GPU support is not enabled you will see the output as follows If you have GPU support enabled then you will see the output as follows.   Run Below code to assign specific GPU to your code if you… 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… 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 : 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 »

SB Admin 2 Bootstrap Theme – Visual Studio 2017

I have updated the SB Admin 2 theme to match with Visual Studio 2017 . I have also updated all the nuget packages related. Features SB Admin 2 Bootstrap admin theme, dashboard template, or webapp UI starter. The theme features a variety of custom jQuery plugins to add extended functionality past the built in Bootstrap… Read More »