Skip to main content

Posts

Top 5 Visual Studio Code Extensions for Azure

In my one of the recent posts, I mentioned about top five Visual Studio Code extensions and after that I received lot many feedbacks asking my top recommendation on Azure specific extensions. Hence, this article is here. When it comes to Azure, there are lot many extensions you can find. Here is the gist of that: Above list is not limited to what I've shown above, there is much more than this. Let's quickly jump on to my top five favorite extensions specific to Azure: Azure Tools This is my most favorite one as it handles lot many things. It includes long list of extensions which are very much useful to interact with Azure. It allows you to host your web sites, it allows very seamless interaction between MongoDB and Cosmos DB in terms of creating databases and writing scripts, you can manager your virtual machines, view all your Azure resource groups, you can deal with docker images and many more.  Here is the list extensions included in it: Docker Azure Functions Azure Resourc

Implementing Dependency Injection In Azure Functions

This article talks about how we can use dependency injection in Azure Functions. Dependency injection is a very well known design pattern that is used to implement IoC as provides you a facility to segregate object creation logic from its usage.  Prerequisites And Tools Used In order to implement dependency injection in Azure Function App, you need an active Azure subscription, Visual Studio (I’m using Visual Studio 2019), and working knowledge of the C# language.  Create Function App in Visual Studio The first step is to create a new project in Visual Studio of type Azure Functions: and select Http Trigger as shown below:  Add Classes For Dependency Injection Next, we need to add the service (classes) which we want to inject. For simplicity, we will create an interface and a class implementing that interface. This interface will have only one method named GetCurrentTime() and it will provide current time to the caller. Here are the definitions: public interface ICurrentTimeProvider {

Stock Risk Analysis App in Python

In this article, I’ll explain about how we can perform risk analysis for certain publicly listed stocks. To perform this, we will look at the data of certain time frames and will try to analyze which stock is riskier than the other one based on the price deviation and the average price. Throughout this exercise, I’ll be using Python as a programming language. Required Packages Here is the list of packages we need to be installed before proceeding: pandas numpy yfinance matplotlib Once packages are installed, we are good to go. Importing Libraries import pandas as pd import numpy as np import yfinance as yf import matplotlib . pyplot as pyplot Select Stocks and Duration Next, we need to select the list of stocks we want to analyze and the duration. Here, I’m going with Microsoft and Tesla stocks, and the duration I’m selecting is from 2018–01–01 to 2022–02–01. stocks = yf . download ( [ ‘MSFT’ , ’TSLA’ ] , start = ” 2018 – 01 – 01 ", end=”2022–02–01&quo

Top Visual Studio Code Extensions

How fast anyone can code, depends on many factors. But I feel the most important among all of those is the IDE, Integrated Development Environment. More friendly the development IDE is, more help a developer will get in terms of intellisense, syntax, re-factoring, etc.  IDEs are of various types as few are fully loaded with all the required features, tools and plugins whereas few requires user’s attention. No, when it comes to user’s choice, it again varies by which development language he or she is going to use. In this article, I’m going to write about VS Code, which is Visual Studio Code and is one of my favorite IDEs.  VS Code is not pre-loaded with all the features as it supports lot many languages. So, it’s on user to install the required extensions based on project and development language’s need. How to install an extension Here is the screenshot mentioning how to install an extension: Let’s talk about few of the very useful extensions: vscode-icons While working on hug

Plot and Compare the Stock Price Trend

Introduction Nowadays, whoever is dealing with finance data, specifically with stock market needs very good understanding of data. Obviously, understanding of data completely depends on how the data is displayed or shown to someone. When we are putting money in the stock market, it is always advisable to first understand the pattern or behavior of the stock which you are going to buy or sell.  In this article, I'm neither going to cover the internals of finance nor am I going to discuss about what all parameters one needs to analyze or understand. The idea behind this article is, how one can use certain financial parameters to get the gist of market trend. Getting Started Let's consider a scenario, in which you would like to know, what is the opening price of Microsoft stock in the last few weeks. So that, by looking at the price, you can derive some conclusions. To perform this entire exercise, we need a few things: Stock symbol : In our case, it is MSFT. Prog