Posts

Showing posts from 2021

[ Windows 10 ] How to Upgrade the WSL Version from 1 to 2 for the Distribution package installed

Image
  In my previous post we have discussed steps for setting up WSL in windows 10 machine with Ubuntu Package. If we have not specified the WSL version that we require before installing the distribution package most likely WSL version will be 1. The problem with WSL version 1 is that it does not come with entire Linux package and there is no container support on its own that means that for running docker daemon process we have to depend on Docker Desktop which is installed in the host machine. Know Which Version of WSL Is Installed Lets now see how we can check the wsl distribution package version which is installed with the help of below command:  wsl -l -v This has to be entered in the PowerShell in the admin mode. you are seeing the version field as 2 because i have already migrated from version 1 to version 2. For migrating the installed distribution package from version 1 to 2 there are some prerequisite packages that needs to be installed. WSL2 Linux Kernel Update Package   Once th

How to use Linux in Windows 10 with the help of WSL(Windows Subsystem for Linux)

Image
  Linux is one of the popular Operating Systems for developing applications, However most of us have Systems/Laptops running in Windows. Microsoft came up with a way to use Linux shell in Windows 10 with the help of Windows Subsystem for Linux. Its similar to a virtual machine but its very light weight. It can be used for some testing or development activities but not for production. Now we are going to see a step by step approach towards Setting up Windows Subsystem for Linux in Windows 10. Steps To Setup WSL In Windows 10 Step 1: Press on Windows Button and Search for "Turn Windows Features On/Off" as shown in the figure below. Step 2: Launch the Dialog for Windows Features and Enable Windows Subsystem for Linux as shown in the figure below: Step 3: Click on Ok after selecting the option and Reboot the Machine Step 4: Once the machine boots up now we can install the distribution package that needs to be run in WSL, For that go to Microsoft Store and Select the Ubuntu Packag

Parameters To Consider For Selecting Stocks 🤔

  Often selecting quality stocks from the ones listed in the indices becomes a tricky operation as there are lot of them to choose from, Especially for one who is starting out to invest in stocks. Many a times people used to go by the trend or momentum existing in the market for a particular stock in general. The issue while following this approach of going by the momentum is that many a times this is short lived and some times these may not be a reflection of the corresponding business fundamentals. There are different kinds of stocks available in the stock market which can be traded using different strategies, For example some of the stocks depict huge fluctuations in prices during trading sessions, Such stocks are suitable for day trading or a.k.a Intra-day trading. On the other hand there are some stocks which does not display such volatility and  exhibit growth over long term. Here we are going to discuss about some of the parameters that can be considered before selecting a stock

How To Use WSDL File To Consume WCF Service in .NET Core Application?

Image
  WCF Services play a pivotal role in modern day distributed application as all the requests from the UI Layer is passed on to the WCF Service API's which serve those requests appropriately. Lets see how we can consume the WCF Service by a .NET Core WPF application. What is WSDL File? WSDL Stands for W eb S ervice D escription L anguage, as the name suggests it gives a description of the functionality offered by the particular WCF service in a XML Format. How to Download WSDL File? WSDL file can be downloaded by going to the URL location where the WCF Service is hosted,  For example:   I have hosted the WCF Service locally identified by URL:  http://localhost:6875/process How to Configure Service Reference with the help of WSDL File? Steps: Step 1 :   enter this URL in a Web browser as shown below Accessing WCF Service through Web browser Step 2: Click on the link as highlighted in the below image Accessing the WSDL Content through the URL Step 3: When you click on the link mention

What are Foreground and Background Threads?

Image
  Threads are means to parallelize the work being done so that a given task can be accomplished quickly. There exists two broad classification of threads they are called as Foreground and Background Threads. Let us look at them one by one with the help of some examples. Here we will be seeing some examples from the c# context. Foreground Thread These are the threads which are created by default. These Threads run until its task gets finished and is not dependent on other threads such as other foreground threads. In other words it can be said that an application is kept alive until all its Foreground thread completes its execution and terminates. Foreground Threads are mainly used to perform Application critical tasks such as processing the application data which is required to be shown in the User Interface. Syntax for creating a Foreground Thread: Creating a Foreground Thread Background Thread Background Threads are the threads whose lifetime depends on the Foreground Thread of the ap

Should Investor Consider Investing in Gold ? 🤔

  Introduction Investment nowadays is not a choice but a necessity, Having said that one must be aware of the investment avenues available around us and know which one suits His/ Her needs. Gold and Fixed Deposit Instruments were popular investment instruments some time ago. Bank Fixed Deposit Instruments has lost its sheen mainly due to the decreasing interest rate on the deposits. On the other hand Gold still occupies some place in an investors portfolio. Lets now look at various investment options available to invest in Gold Instruments: Physical Gold       This mode of investment is self explanatory where the physical gold is purchased from the retail typically in the form of jewelry and kept with the investor. Lets understand its pro's and Con's          Pro's Since the gold is with the investor he has the full freedom to sell it at any point in time or in other words liquidity is not an issue.         Cons Since the Gold is purchased from the retail store the investo

Is it Worth Investing in FD's now ? What are the Alternatives Available ?

Image
               FD's or Fixed Deposits have always been a favorite investment options of people. Understandably so, As there is no depreciation in the value at least visibly from the invested amount.             Lets take a case where a person has invested in FD's which fetches return's of say 7.00% per annum, This means that the returns offered here is guaranteed by the Financial institution like Bank. But in the current scenario where the inflation is hovering around 5% approximately, The inflation adjusted returns on these deposits made is around 3%, Adding tax on the interest earned into the picture the returns further diminishes. So is it sufficient to meet our goals and to achieve Financial Freedom ? Alternative to Fixed Deposit  Most of you might be thinking then what are the alternatives available?. Hold on there is some good news for you there are other investment options or means available which offers more returns with more or less similar risks compared to the Fi