Topic
Coding
88 articles

Active Directory Federation Service
Active Directory Federation Service (ADFS) uses claims-based identity model to maintain application security and to implement federated identity. ADFS is a concept of Windows Server operating system, that provides users with single sign-on access to the application, those are located across organizational boundaries. For Example: We have 2 organizations – Organization 1 and Organization 2. […]

Remote Access to Microsoft SQL Database Server
Remote access to a SQL server is important because it allows users to access the server from anywhere, at any time. This enables remote workers to access the data they need when they need it, even if they are not physically in the same location as the server. It also allows IT admins to access […]

Types of Load Balancer in AWS
What is Load Balancing ? Load balancing is a critical component of any scalable and highly available Cloud or On-premise architecture. It helps distribute incoming traffic across multiple servers, improving the availability and scalability of a website or application. In the cloud, load balancing is offered as a service by various cloud providers such as […]

SSH into a Docker Container
Hi there! Here we will see how to enable SSH into a Docker Container. Firstly let’s see what Docker and SSH are What is Docker? Docker is a containerisation tool that helps run an application in an isolated environment. Some Important terms that you will get while reading/listening to anything related to Docker Docker File: […]

Using adb command to make a call, reject a call and sending / receiving a message
1. Incoming calls/Outgoing call Two devices are required to make incoming calls and single device is required to make an outgoing call Using two devices to make incoming calls or outgoing callcmd : adb -s “UDID Number” shell am start -a android.intent.action.CALL -d tel:”Phone number” Using single device to make outgoing callcmd : […]

Map, Filter, Reduce in Javascript
Overview: .map(), .filter(), .reduce() are all array methods in javascript. Each method will iterate over an array and perform transformations or computation. Each will return a new array based on the result of the function. Lets see how to use each of these methods in this article. Map : The map() is a method that […]

How to Automatically Trigger Builds at Scheduled Time Using Jenkins?
In continuous automation suite execution, it is important to run test cases every day and at certain time intervals to ensure that the product is working seamlessly in production.If any cases fail, the QA is alerted and the issue is fixed before a customer encounters the issue. Cron Patterns helps to achieve automation by scheduling […]

Angular nglf
In this blog we will explore how to use ngIf with “Else” statement and “Then”. Angular ngIf: Even Though HTML is a programming language, it doesn’t have an if statement like Javascript. The Angular ngIf directive will work essentially as an if statement for HTML. Example: In the above example, the container div will only […]

Caching for making your website faster
Hey folks… What would you do if you want to read a book everyday? Would you go to the library everyday or just purchase a copy and keep it at your desk? You would obviously purchase. Similarly, when we need milk for a restaurant instead of going to the dairy to purchase every time, we […]

How Angular is Different from AngularJS
What is Angular? Angular is a popular open-source Typescript framework and free to use. Considered to be a JavaScript-based framework,TypeScript.is its primary programming language. TypeScript is Developed by Microsoft and its superset of JavaScript, which simply means that TypeScript has all the capabilities that JS has and more additional features. Angular is majorly used for […]

Angular constructor vs ngOnInit
Overview: If you are new to angular or have been working with it for a while, you will have questions like: Is it necessary to inject dependencies in the constructor and bind data? When should we use ngOnInit ? What is the difference between constructor and OnInit?. So, in this blog we will answer all […]

CORS – Cross Origin Resource Sharing
Are you one of those wondering what is CORS or facing issues with your website due to CORS policy? Let’s get to know more about CORS. CORS is a mechanism that enables things like sharing content/sources between two domains/websites. This kind of request is called a Cross-Origin request, as a resource of one domain is […]

Variables in CSS
CSS variables (also referred as CSS custom properties) are just like simple variables in other programming languages. They reduce the redundant work. They are used to storing values and reused at multiple places and updated/modified from one place. Syntax: CSS variable is any CSS property whose name starts with two dashes. Like Custom property names […]

Thunder Client – an alternative to Postman
Overview : As developers who are dealing with implementation of code in our daily life, we recommend using efficient and effective tools, applications, extensions and methods for our comfort and ease. As a backend developer it is necessary to test API every time. Generally we use Postman to test the APIs. To use a postman, […]

Angular – Difference between ng-container and ng-template
Overview: ng-container and ng-template, both are angular elements which will work like containers with HTML elements, but with different purpose/use cases. Lets see what is the use of ng-container and ng-template below: ng-container: In some cases when you do not want to add an extra HTML element to the DOM , for example like div […]

Verify google recaptcha with Node.js
Overview Google Recaptcha is a captcha system provided by Google to distinguish between humans and robots. There are two versions of Recaptcha, namely Recaptcha v2 Recaptcha v3 This blog will help you understand how google Recaptcha can be used along with node.js and a simple HTML page. Approach There are following basic steps to follow […]

Which ‘Quick Settings’ Tiles can you control using setQuickPanelItems() in a Samsung Android device
What is a Quick Settings Tile? Quick Settings Tiles are the individual items in the notification panel that represent several system settings such as Wifi and Bluetooth, which can be accessed at any time. But what if you want to block these ‘Quick Settings’ Tiles on your device? In Samsung devices secured by Knox Premium […]

How to extract APK file of installed application in Android programmatically
Step 1 : Get the path of the installed application Step 2 : Store the Apk file in required folder

Disable MAC Randomization in Android 10 and above devices
Recently we came across an interesting feature, to set static MAC address for the wifi ssids for Android 10 and above devices.MAC Randomization generates a random MAC address for a wifi ssid for the following conditions mentioned below :- When connecting with that particular network for the first time=- Forget and rejoin the network. in […]

Set up work profile on company owned android 11 and above device
Android 11 introduces work profiles for company owned devices with improved support for work profiles. If a work profile is created from a setup wizard using QR code or zero touch enrollment, the device is recognized as Work profile on company owned devices. If a work profile is created using any other method except the […]

How to Restrict Broadcast within an Application in Android
Whenever we initiate an event through a broadcast in our application then that broadcast is announced system wide. So any application who is listening to the broadcast with the same action and category that our application is broadcasting then that application will also be notified about the broadcast. Is there a way to restrict broadcasts […]

Getting started with Java Streams
Introduced in JDK v1.8, Streams concepts makes the life of programmers a lot easier. Don’t believe me! read along, at the end of this blog you’ll have a basic idea how we can use Streams APIs in our day to day programming life and once you get the hang of it, you will love it. […]

Getting started with the android Navigation component
The navigation from one screen to another in android applications is made easier through android Navigation component. With the Navigation component, we get a collection of libraries and tools that simplifies navigation and gives the programmer a visualization of how the navigation works. Advantages of using Navigation component 1. Simplified setup and common navigation 2. […]

JavaScript to TypeScript Conversion
In this blog we are going to know how to convert javascript files to typescript files. Even though while compiling a typescript file it will produce javascript files with the same name , we have to ensure that the original javascript file which acts as input , is present in a directory so that typescript […]

Difference Between CSS and SCSS
Over the past few years, CSS has been the first choice of the developers when it comes to web creation and development. However, the influence of SASS (Syntactically Awesome Style Sheets) in the market significantly reduced the overall use of CSS. There is an enhanced version of SASS known as the SCSS- deployed widely in […]

Essential guide to SCSS
Now a days every programmer will follow a principle which says Don’t Repeat Yourself(DRY), So, we have methods/functions in programming and we can call them when it is needed and we have conditional attributes in HTML to display html elements conditionally. When we think about CSS, stylesheets are getting larger and harder to maintain due […]

MongoDB – Working with Date and Time
Overview One of the most common pain points in querying mongodb is datetime operations. Even if you know the query operators, typing the query will raise doubts. In this blog I will try to help you out on date queries in MongoDB. MongoDB Query Example (less than) Assume that you have the following record stored […]

Deep dive into android developer options
Android developer options have many usages like usb debugging, transition speed, showing and hiding layout bounds, and features which are helpful for developers for android app development. To enable android developer options : Below Android 4.2 – Developer options is enabled by default. Android 4.2 and above – To enable tap on Build Number options […]

Understanding Taints and Tolerations in Kubernetes
Node affinity is a concept where pods are attracted to a set of nodes either through hard or soft requirement. On the other hand, Taints work quite the opposite to node affinity. Taints allow nodes to repel a set of pods, the ones which do not tolerate the taints. Tolerations are applied to pods. It allows […]

BigQuery Views
View is a technique to create a virtual copy of a table by querying it. The technique is beneficial when we repeatedly need the latest data from the original table. We will discuss two types of views, Standard and Materialized, in this blog. Standard View: A standard view is helpful when we do not want […]

Temporary Tables in BigQuery
Data is extracted from the BigQuery with the help of some SQL queries and provides the result in some temporary table. BigQuery temporary table can cache the query results, name them randomly and stored in a special database. Temporary table is stored in BigQuery for 24 hours and we can also retain/query that table and […]

Avoidable mistakes while Working with Gradle
In This Blog we have seen how to avoid mistakes which people face while working with Gradle and some best practices

Creating Debian Package
This Blog describe how to create a Debian package from scratch with example and focus on common mistakes that people do.

Getting Notification related to our application using microphone even though microphone permission is not declared in application’s Manifest file (Android).
Recently, we found an interesting bug while working with one of our partners. The issue was that even though our application and the libraries needed for our application were not using the microphone permission,still we were getting notifications related to our application using the microphone.The issue was easily reproducible on their set of devices as […]

Accessing Removable SD card in Android Studio
For Android versions that are below Android 10, accessing the External Storage of your device is pretty straightforward. The method Environment.getExternalStorageDirectory() would return the appropriate path but now, this method is deprecated and only points to /sdcard which is not necessarily the removable secondary storage path. You could try to hardcode the path such as […]

Remote support touch events on Chrome OS devices.
Many Chrome OS devices for instance,chrome book now support Android apps and Google play store. Android apps designed for phones and tablets can be optimized for Chromebooks. There are various applications such as SureMDM, Teamviewer, Anydesk to remotely access android devices and perform touch events on them with the help of their corresponding android client […]

How to get configured APN types from the APN Type Bitmask?
OVERVIEW : An Access Point Name (APN) provides a gateway to connect different carrier mobile networks (GSM, GPRS, 3G, 4G) to another computer network, which mostly is the public internet. Carrier reads APN Settings to generate an IP Address, connect to the secure gateway, determine if the private network is required, and more. Most of […]

Useful Shortcut to Speed up Android Development
Developing Android Application as an Android Developer requires a lot of things out of which writing code & navigating through code is an important aspect . So while doing that you can use a bunch of shorthand tricks that will help you speed up your development process. 1. Recent File List : Ctrl + E (in Windows) […]

How to troubleshoot the “not reproducible” bugs reported by customers
Often we come across bugs reported by customers which are not reproducible at our end but it is reproducible in the customer’s environment. Once you’ve made a number of attempts to reproduce the issue and eliminated the most obvious cases, the cause is something less obvious. It could be the customer using a different configuration, […]

How Monkey Testing command can be useful in Automation
We usually see every QA engineer executing many test cases for regression testing manually during the sprint cycle. And during this time we tend to forget (or sometimes neglect) to perform some stress testing on applications. Even if the tester tries different scenarios by putting random values and checking, there are very less chances of […]

Basics of Shell Scripting
Unix is a multi-user operating system that can handle numerous users’ activities at the same time. The development of Unix was near 1969 at AT&T Bell Labs by Ken Thompson and Dennis Ritchie. Kernel − Kernel is regarded as the operating system’s heart. It interacts with the hardware and tasks like memory management, task scheduling, and […]

Schedule Queries in BigQuery
When you want to run BigQuery queries on a recurring basis, BigQuery provides an amazing feature called Schedule Queries. Schedule queries can include data definition language (DDL) and data manipulation language (DML) statements and can be written in Standard SQL. It is pretty easy to create and delete scheduled queries. All you need is BigQuery […]

Horizontal Pod Autoscaling (HPA) In Kubernetes Based On Custom Metrics
Hi everyone!! In kubernetes, Horizontal pod autoscaling(HPA) is mostly done either based on CPU or memory. But, in some cases, we’d like to scale the pods based on custom metrics such as ‘number of http requests received per second’. In this tech blog, I will explain how that can be achieved. Generally, there are 3 […]

Fetch more than 1000 objects from S3 using C#
You know that we can't get more that 1000 objects in a response from S3 at a time. Read to know how to get all objects from S3.

How to use Deeplinks in Android
Deep links are links that take users straight to an app rather than a website. Deeplinks in android saves time, increases the user experience.

Node Affinity in Kubernetes
Hi everyone!! While managing the kubernetes deployment, have you ever wanted a pod to get scheduled on a particular node, but it doesn’t happen the way you want and the pod gets scheduled randomly in any of the nodes. Don’t Worry, there is a way through which we can make this happen using the concept […]

Generate huge reports from BigQuery efficiently
BigQuery is a fully managed enterprise data warehouse that helps us to manage,analyze our data, helps in generating huge reports efficiently

Using Counting Semaphore with Async and Await in C#
The term "semaphore" refers to an integer variable that is shared by multiple threads. The async keyword enables the await keyword.

Deploying Prometheus and Grafana using Helm in kubernetes
Hi Everyone!! If you have deployed any application using kubernetes, it is very important to monitor the kubernetes cluster and the application. ‘Monitoring’ plays a crucial role. For monitoring purposes, the popular and widely used tools are prometheus and grafana. They are often used together. Prometheus is used to store the metrics and grafana is […]

Check if a Windows Service is up through C#
This blog helps you to write a function to check if a windows service is running. You can further restart or stop the service.

Check if a folder exists in S3 through C#
This blog demonstrates a small function which checks if a particular folder exists in S3, provided the bucket name.

Use Mailgun over SMTP
Mailing is an important part of any application. Let's see how we can send emails using SMTP MailGun credentials.

Serializing RSAPublicKey in Java / Android
Serializing RSAPublicKey in Java and Android

Hello Q# World!
Writing Hello World Program in Q# using Visual Studio

Make your BigQuery queries Faster and Cheaper!!! Part-2
Following the previous blog where we discussed some important features of bigquery – Clustering and Partitioning. And we left on a question that, are these the only way to improve query performance? And as you already know the answer is ‘No’. So, What is that technique/feature? 🤔 Query performance can be optimized/improved by choosing the right/appropriate […]

Authorization In HiveMQ Using Extension
Authorization In HiveMQ Using custom Extension, encryption/decryption in HiveMQ, check valid message in HiveMQ

Generate large excel files in C#
Generate large excel files in C#, Generate large excel files in .net, XLSX files in C#, Huge excel reports, large excel sheets in c#

Cross Platform Asymmetric Key Serialization
Serializing And Deserializing RSA Public Key Across Different Programming Languages

Quantum Programming
Getting started with Quantum Programming

Make your BigQuery queries Faster and Cheaper!!!
BigQuery is a great tool to analyze huge amounts of data quickly but there are many times we only care about analyzing a subset of data, for example analyzing data over a particular period of time or over particular columns. But in the on-demand model you are charged on the basis of data volume which […]

DNS tweaks for Developer and Testers
In this work-from-home situation, the developer needs DNS hosting (Public or local) for testing or R&D purpose. Very difficult to achieve above the things in Home-based routers or Hotspot devices. Hence, we can use the below steps to achieve a DNS host for testing. Developers or testers are do everything from controlling access to websites […]

Configurable .NET Core application
This is the ultimate guide to make your .NET CORE application configurable. To make our app configurable, we must have an appsettings.json

findViewById() vs DataBinding
We are all familiar with the findVIewById() method but it is a costly operation for applications. Each and every time we try to do findVIewById() that particular view is being searched in the view hierarchy during runtime which is a time consuming process and it can slow the application for the user. To fix it […]

Hands on with Docker from scratch
Docker is a containerization tool. It creates, manages and maintain the containers. It is a lightweight container orchestration tool. It’s easy to deploy an applications with in containers and offers fast way of application execution, efficient way to build, Interoperability and multiple OS level abstraction. Steps for Docker installation in UbuntuUpdate the packages command : Adding […]

Why ClamAV is required and steps to install it.
Nowadays, data is very much important to persist securely. Generally a computer system without antivirus can be considered safe, if it does not have internet connectivity. But when it bridges to the internet it transpires whole world information and other unnecessary data also in it. There are many operating systems available which have user friendly […]

Encrypt and Decrypt a message using DES Algorithm in Python
What is Cryptography? Cryptography is that the art of communication between a sender and a receiver using codes in order that only those for whom the knowledge is meant can read and process it. Terminologies of Cryptography Plain Text: it is the text which is readable and can be understood by all users. Cipher Text: the message obtained after applying cryptography on […]

Efficient way to process large text/log files using awk with Python
The efficient way to read and process very large (> 5GB) text/log files with Python. Integrate C based tools with Python

How to fetch unread lines from a large file that is dynamically adding logs using python?
Analysts often depend on log files to dive deeper into the issues that break systems. Handling huge log files that are more than 10GB line by line and seeking the RCA is hectic as well as time-consuming. Here is one way to get unread lines from a large file where logs are being added every […]

Python | Pandas DataFrame – Basics
Pandas is one of the most useful and powerful libraries to Analyze the different formats of data and make the work simple, accurate and fast.

How to compress/zip files older than x days and delete the original files post compression using power shell script.
If your application is generating huge log files everyday or you have a big database backup which needs to be stored somewhere then definitely storage space is one of the big concerns here. By compressing the files you can save a lot of storage space. But compressing files manually on a daily basis is one […]

Monitor multiple AWS MSK Clusters in a single machine
In this blog, we will see how to monitor multiple AWS MSK Clusters in a single machine without creating a separate job or machines Problem Outline You can monitor multiple AWS MSK Clusters in a single machine by creating multiple jobs for each and every cluster or defining multiple brokers in a single job. In […]

Monitoring IIS Based Web Application With ELG Stack (Elastic, Logstash, Grafana)
We will build an analytics solution for IIS based web application, we will be using ELG stack(Elasticsearch, Logstash, Grafana) and FileBeat

Access Google Cloud Pub/Sub on Android without using credential file
This blog will explain to you to access multiple Google Cloud Pub/sub dynamically from the android app without using credential files

MongoDB vs SQL
Introduction MongoDB and SQL are two opposite sides of the database world. MongoDB deals with chaotic unstructured data, while SQL deals with organized structured data, both having their own set of advantages and disadvantages and different types of use cases. In this topic, we will learn about the basic comparison between MongoDB vs SQL databases. […]

Using adb for speeding up the Device Owner Enrollment
Problem Statement: Enrolling devices to DO Mode is time taking process which involves factory reset. To overcome this difficulty we can make use of adb commands, configure the app as Device Owner in just few mins without worrying about factory resetting the device . Prerequiste: 1.Enable adb & install adb tools on PC you can […]

How to transfer ownership(Device owner) from one android application to another?
There can be many ways to achieve transfer ownership(Device owner) from one android application to another. Transfer of ownership means transfer of one administrator to another. I am going to explain one of the simplest ways to transfer ownership in this blog. In Device owner mode: Once the device is factory reset and provisioned using […]

Split Large Text file into smaller parts
Let’s take an example where you need to run a script for a large file of 10 GB, what would the consequences be? Either it will take a lot of time or the program will crash. To avoid such situations we need to divide the text file into smaller parts accordingly. Let’s get started with […]

Deploy a .NET Core Web Application on Kubernetes in GCP with HTTPS
This blog will cover how to deploy a .NET Core Web Application on Kubernetes in Google Cloud Platform(GCP). Starting from setting up GCP to running the application on web browser. We will also be covering steps to integrate HTTPS with our web application. But let’s first have a look at what exactly HTTPS is! You […]

How to run Broadcast Receiver on Worker Thread?
Provide the scheduler to registerReceiver, which will run the broadcast receiver in the context of the scheduler (worker thread).

Bare Minimum code for Authenticating Google G-Suite users in ASP.NET
Google OAuth2 Authentication using Owin Security in your ASP.NET C# project using just few lines of code Visual studio scaffolding allows you to generate code to perform Google G-Suite authentication while creating a new ASP.NET project. However, this scaffolding adds a lot of code to your project that you may not require. I will walk […]

kubernetes secrets for storing .net core appsettings.json
If you are working on .net core application and doing the kubernetes deployment, there is an important consideration one must consider which will be explained below Every .net core project consists of one config file(appsettings.json) which contains connection strings that includes sensitive information such as server ips, passwords etc that shouldn’t be exposed to anyone. […]

Mitigating BREACH attack in Nginx server
BREACH is one of the commonly seen vulnerabilities in all types of web servers. In the Ngnix server there are multiple fixes available but choosing the appropriate mitigation technique is challenging Disabling compression HTTP compression and gzip filter module is the best solution to mitigate this vulnerability this will completely eliminate the side-channel attack. Below […]

Analyze, Measure and Optimize Battery and Data usage of your Mobile app on Android devices using Automation
Application Data and Battery usage by mobile applications is an important factor for Mobile users. In the era of using mobile apps that support push notifications and data sync (Gmail, official twitter and facebook apps, UEM client, Gmaps) or using apps set to check every x minutes for accounts to get near-immediate notifications (email clients) […]

Enable IPv6 support in Nginx
Nginx is a web server which is commonly used as a reverse proxy and load balancer to manage incoming traffic. IPv6 provides a much larger address pool (128-bit address) than IPv4 (32-bit address) so that many more devices can be connected to the internet. It also improves addressing and routing of network traffic. Following are […]
Delete File or Folder path in C#
Following is a C# code snippet to delete a path (file or directory). First we have to determine whether the path is a file or a folder and then call appropriate Delete methods. In case of directory, you can specify whether the contents should be recursively deleted before deleting the directory. void DeletePath(string path) { […]

C# code to soft reset a Windows Mobile device
Here is the C# code to soft reset a Windows Mobile device (using P/Invoke)

How to block Control + Alt + Delete in Windows 7 and 8?
Control + Alt + Delete is a powerful key combination to terminate a running program/task or restart a computer/Windows device. Blocking this key combination becomes crucial when your Windows 7 or Windows 8 device is being used as a kiosk. SureLock blocks this key combination with its Keyboard Filtering feature. To block Control + Alt +Delete, follow below mentioned steps: 1. On SureLock Home Screen, tap anywhere 5 times […]

How to get process id and thread id from a Window Handle in .NET CF?
Specify the namespace for doing P/Invoke stuff i.e. calling Win32 API functions from managed code. GetWindowThreadProcessId Win32 function retrieves the identifiers of the process and thread that created the specified window. Here is how we declare GetWindowThreadProcessId for use in managed code (c#). Description: hWnd is the window handle lpdwProcessId stores the process identifier after the […]
