How to disable collapsing to one line for single folders in Visual Studio Code

If you have been using Visual Studio Code, you might have encountered that if you have a folder that only has a single folder inside, Visual Studio Code will automatically collapse both parent and child folders into a single line.

Actually, if you have a chain of subfolders that have only one folder inside, it will merge all folders into a single line, as you can see on the image below.

I used to solve this by adding a dummy file or folder just to have a better folder structure, but even that is annoying since there are extra files that you can see that you do not need.

To solve this collapsing of the folder structure to a single line for single parent/child folder, follow the steps below.

Continue reading How to disable collapsing to one line for single folders in Visual Studio Code

How to enable mouse scroll zoom in Visual Studio Code

By default, making your font bigger or smaller by using Ctrl + Mouse Wheel is not enabled in Visual Studio Code. But with a settings change, we can enable this.


Steps to enable Mouse Scroll Zoom in Visual Studio Code

In Visual Studio Code window, click on File >> Preferences >> Settings.

This will create a new tab called Settings.

Continue reading How to enable mouse scroll zoom in Visual Studio Code

How to Fix OBS Studio Black Screen Display Capture

If you opened your OBS Studio and added Display Capture, but you are getting a black or blank screen, stay calm. There is nothing wrong with your computer or OBS Studio. We just need to do some tweaking in your Windows Settings.

The reason why OBS Studio does not show your display is because it is selecting the wrong Graphics Card by default.

OBS Studio Black Screen on Display Capture

In my case, I have two GPU – AMD Radeon(TM) Graphics and NVIDIA GeForce RTX 2060, and OBS Studio kept using the RTX 2060 when it should be using the built-in AMD Radeon(TM) Graphics.

Continue reading How to Fix OBS Studio Black Screen Display Capture

Understanding gp3 IOPS – EBS Volumes

In my goal to understand when the gp3 is cheaper than gp2 volumes, I need to know what each of the performance settings of each Elastic Block Store (EBS) Volume Types are.

I have already discussed the Throughput of gp3 and gp2 in different posts. If you do not know what Throughput is then I suggest going to the post about EBS Volumes Throughput.

Let’s go straight to dicussing about gp3 type IOPS.


What is the IOPS of gp3 Volumes?

From the AWS documentation the IOPS of gp3 Volumes has a minimum of 3,000 IOPS and a maximum of 16,000 IOPS.

Minimum IOPS3,000 IOPS
Maximum IOPS16,000 IOPS

The advantage of gp3 Volumes to gp2 is that you can set their IOPS regardless of the volume size. This is very unlike the gp2 where the IOPS and Throughput is highly dependent on the volume size.

We also no longer have to think about bursting IOPS in gp3 Volume types or having high IOPS operation for an extended period of time as long as you set your gp3 IOPS properly.

Maximum IOPS per Volume Size

You may think that whatever the volume size from 1 GiB (minimum) to 16 TiB (maximum), you can assign any IOPS as long as its between 3000 IOPS and 16,000 IOPS.

Continue reading Understanding gp3 IOPS – EBS Volumes

gp2 vs gp3 Cost Comparison – EBS Volumes

Amazon Web Services (AWS) has launched the gp3 type EBS Volume and they are saying that it is 20% cheaper compared to gp2 types. Since the gp3 has a different pricing model compared to the gp2, I decided to go down this rabbit hole to see if the statement that gp3 is 20% cheaper than gp2 is always true.

My goal here is to confidently know that moving from a gp2 to gp3 will give us significant savings without the degraded performance.

TL;DR – Most of the time gp3 is cheaper than gp2. There are scenarios where the gp3 is more expensive than the gp2.



gp2 and gp3 EBS Pricing Models

Based on the Amazon EBS Pricing page this is the pricing of gp2 and gp3 Volumes.

gp2 Pricing

gp2 Volume Pricing$0.10 per GB-month of provisioned storage

gp3 Pricing

gp3 Storage Pricing$0.08/GB-month
gp3 IOPS Pricing3,000 IOPS free and
$0.005/provisioned IOPS-month over 3,000
gp3 Throughput Pricing125 MB/s free and
$0.04/provisioned MB/s-month over 125

Note: Pricing below is based on N. Virginia Region. Different regions have different pricing but the concepts and percent discount will be the same.

The 20% Cheaper Statement

If we only look at the pricing of the gp3 in terms of Storage Size ($0.08/GB-month) compared to the pricing of gp2 ($0.10/GB-month) we can definitely say that gp3 is 20% cheaper than gp2 Volumes.

Continue reading gp2 vs gp3 Cost Comparison – EBS Volumes

gp2 Throughput Explained – EBS Volumes

I wanted to investigate if the statement of Amazon Web Services (AWS) that “gp3 is 20% cheaper than gp2” is always true. That is why I’m creating this series of post to investigate when can we say that gp3 is really cheaper than gp2.

I have already written about Throughput of Elastic Block Store (EBS) Volumes and Throughput of gp3 EBS Volume type.

In this post, I will be discussing the Throughput of gp2 Volumes.


What is the Throughput of gp2 Volumes?

A quick look in the AWS documentation, here are the details of gp2 Volumes.

Minimum Size1 GiB
Maximum Size16 TiB
Price*$0.10 per GB-month of provisioned storage
Maximum IOPS16,000 IOPS
Maximum Throughput250 MiB/s

price is based on N. Virginia Amazon Web Services (AWS) Region.

The table in the Solid State Drive (SSD) part of the documentation only said something about Maximum Througput, but it never really say anything about what is the real Throughput or what are the conditions that affect the Throughput of gp2 volumes.

Continue reading gp2 Throughput Explained – EBS Volumes

gp3 Throughput Explained – EBS Volumes

In order for me to understand when a gp3 volume becomes cheaper than a gp2 volume, I need to understand the difference between the two EBS Volume types.

We have discussed before what is Throughput and how it affects performance of EBS Volumes. In this post we will be discussing the Throughput of gp3 volumes.



What is the Throughput of gp3 Volumes?

gp3 volumes has the following details.

Minimum Size1 GiB
Maximum Size16 TiB
Price of Size*$ 0.08/GiB-month
Minimum IOPS3000 IOPS
Maximum IOPS16000 IOPS
Price of IOPS*3000 IOPS free
$0.05/provisioned IOPS-month over 3000 IOPS
Minimum Throughput125 MiB/s
Maximum Throughput1000 MiB/s
Price of Throughput*125 MiB/s
$0.04/provisioned MiB/s-month over 125 MiB/s

* price is based on N. Virginia Amazon Web Services (AWS) Region.

For gp3 EBS Volumes, the throughput you set is sustained throughout its life unless you modify it.

Unlike the gp2 which has a Throughput that is dependent on the size of the volume and its burst credits, gp3’s Throughput is dependent on what you set, and how much are you willing to pay for the Throughput.

Continue reading gp3 Throughput Explained – EBS Volumes

EBS Volumes Throughput Explained

I have been using gp2 type Elastic Block Store (EBS) Volumes by default, that when the gp3 type was launched I was really curious about the difference between the two.

This lead me into a rabbit hole trying to look beyond the statement of Amazon Web Services (AWS) that “gp3 is 20% cheaper than gp2 EBS Volume types”.

I realized that I have a small understanding about Throughput compared to IOPS, so in this post, I will go into the details about the Throughput of EBS Volumes.



What is Throughput?

For an EBS Volume, throughput is the total amount of data that a storage can read/write per second.

In the AWS documentation the unit for Throughput is MiB/s.

Here are some simple examples on how to compute Throughput.

Continue reading EBS Volumes Throughput Explained

How to use Arduino IDE without installing in Windows 10

If you are like me who does not like installing software in my Windows computer, then you might want to use the non-install option for Arduino IDE.

Follow the steps below.


Steps on how to run Arduino IDE without installation

Download Arduino IDE

Go to https://www.arduino.cc/en/software.

On the Download Options section, click on Windows ZIP file.

Continue reading How to use Arduino IDE without installing in Windows 10

How to solve not secure warning when logging into WordPress

When I logged into my WordPress site via Google Chrome, I was warned with “The information you’re about to submit is not secure. Because the site is using a connection that’s not completely secure, your information will be visible to others.”

Not secure connection when logging into WordPress

At first I did not understand why it was giving me this warning after more than year of setting up HTTPS in my site.

Continue reading How to solve not secure warning when logging into WordPress