<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Pawan Kumar</title>
    <description>The latest articles on DEV Community by Pawan Kumar (@pwnmahto).</description>
    <link>https://dev.to/pwnmahto</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F884460%2Fe54e9953-003f-4930-a6d8-e35ecda39379.png</url>
      <title>DEV Community: Pawan Kumar</title>
      <link>https://dev.to/pwnmahto</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pwnmahto"/>
    <language>en</language>
    <item>
      <title>The Top Five VS Code plugins for Java Developers</title>
      <dc:creator>Pawan Kumar</dc:creator>
      <pubDate>Thu, 23 Mar 2023 11:24:25 +0000</pubDate>
      <link>https://dev.to/pwnmahto/the-top-five-vs-code-plugins-for-java-developers-4pfb</link>
      <guid>https://dev.to/pwnmahto/the-top-five-vs-code-plugins-for-java-developers-4pfb</guid>
      <description>&lt;p&gt;As a Java developer, having the right tools is essential to making your job easier and more efficient. One tool that has become increasingly popular in recent years is Visual Studio Code (VS Code). This code editor is small but powerful, and it has many features and add-ons to help you customize and improve your workflow.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2ecg5xmsbrfbgk6dmi5b.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2ecg5xmsbrfbgk6dmi5b.jpeg" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The top five VS Code plugins for Java developers will be discussed in this article. These plugins can increase productivity, help you write better code, and help you find and fix bugs more quickly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Java Extension Pack&lt;/strong&gt;&lt;br&gt;
The Java Extension Pack is a set of popular add-ons for VS Code that help with Java development. It comes with extensions for testing, Maven, Gradle, and the Java Development Kit (JDK) for VS Code, which provides language support and debugging tools. With this pack installed, you’ll have everything you need to get started with Java development in VS Code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Debugger for Java&lt;/strong&gt;&lt;br&gt;
Debugging is a crucial part of the development process, and the Debugger for Java extension makes it simple to debug your Java code in VS Code. It has capabilities like hot code substitution, expression evaluation, and thread visualization, allowing local and remote Java programmes debugging.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Apache Maven for Java&lt;/strong&gt;&lt;br&gt;
Maven is a popular build tool for Java projects, and the Maven for Java extension brings Maven support to VS Code. It allows you to run Maven commands directly from the VS Code terminal, view Maven dependencies in the editor, and automatically update your project when you change dependencies.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Lombok Annotations&lt;/strong&gt;&lt;br&gt;
Lombok is a Java library that helps you write cleaner, more concise code by providing a set of annotations that generate boilerplate code for you. The Lombok Annotations extension supports these annotations to VS Code, making it easier to work with Lombok in your Java projects.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. SonarLint&lt;/strong&gt;&lt;br&gt;
SonarLint is a static code analysis tool that helps you find and fix issues in your code. The SonarLint extension integrates with VS Code to provide real-time feedback on your code as you write it, including issues related to coding standards, potential bugs, and security vulnerabilities.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxu6skj4jgbv3mn85r07k.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxu6skj4jgbv3mn85r07k.jpeg" alt="Image description" width="800" height="532"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;These are just a few VS Code plugins for Java developers. Whether you’re just starting with Java or are a seasoned pro, these plugins can help you write better code, debug more effectively, and improve your productivity. Give them a try and see how they can improve your workflow.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>java</category>
      <category>vscode</category>
    </item>
    <item>
      <title>A Deep Dive on Amazon Simple Storage Service(Amazon S3) for Hosting Static Website</title>
      <dc:creator>Pawan Kumar</dc:creator>
      <pubDate>Mon, 07 Nov 2022 03:04:25 +0000</pubDate>
      <link>https://dev.to/pwnmahto/a-deep-dive-on-amazon-simple-storage-serviceamazon-s3-for-hosting-static-website-1m8b</link>
      <guid>https://dev.to/pwnmahto/a-deep-dive-on-amazon-simple-storage-serviceamazon-s3-for-hosting-static-website-1m8b</guid>
      <description>&lt;h2&gt;
  
  
  &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F072vivr0ele2mri2g7e8.jpg" alt="AWS CLOUDS" width="800" height="1000"&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;In this article, we are going to explore “How to host a static website on Amazon S3”.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Amazon Simple Storage Service&lt;/strong&gt; (Amazon S3) is an object storage service that offers high scalability, data availability, security, and performance. Amazon S3 can be used for website hosting by configuring the bucket and then uploading your content to the bucket in a few steps.&lt;/p&gt;

&lt;p&gt;Before making our hands dirty for hosting our static website on Amazon S3, let’s explore why Amazon S3 is the first choice for hosting static websites:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;It offers industry-leading scalability, data availability, security, and performance.&lt;/li&gt;
&lt;li&gt;This is used to store and protect any amount of data for all kinds of industries having any size.&lt;/li&gt;
&lt;li&gt;This supports a wide range of use cases like hosting static, backup and restore, Disaster recovery (DR) and Data lakes and big data analytics, Hybrid cloud storage &amp;amp; Cloud-native application data, etc.&lt;/li&gt;
&lt;li&gt;S3 is free service from Amazon Web Services and follows a pay-as-you-go service model.&lt;/li&gt;
&lt;li&gt;Amazon S3 is designed for 99.999999999% (11 9’s) of durability &amp;amp; between 99.95% to 99.99% availability.&lt;/li&gt;
&lt;li&gt;Amazon S3 is trusted by big giants like Netflix, SmugMug, Pinterest (for hosting images) &amp;amp; many more for various use cases. Even Reddit is hosted on Amazon S3.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The process of hosting a static website can be divided into four simple steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create Your S3 Bucket&lt;/li&gt;
&lt;li&gt;Configuring the bucket for “Static Website Hosting”&lt;/li&gt;
&lt;li&gt;Uploading all files/documents of the static website&lt;/li&gt;
&lt;li&gt;Adding a policy to the bucket that will make the bucket publicly available&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Let's host our static website:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Step 1: Create Your S3 Bucket&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The name of the new bucket should be a unique DNS-compliant name. The following naming conventions should be followed while naming your bucket.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The bucket name must be unique across all existing bucket names in Amazon S3(globally unique).&lt;/li&gt;
&lt;li&gt;The name must not contain uppercase characters &amp;amp; always start with either lowercase letters or numbers.&lt;/li&gt;
&lt;li&gt;The length of the bucket name must be between 3 and 63 characters.&lt;/li&gt;
&lt;li&gt;The bucket name cannot be updated once the bucket is created. If you want to change the Bucket Name then you need to create a new Bucket.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;We need to select a region where the bucket will reside. The nearest region should be selected to minimize latency &amp;amp; costs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Note:&lt;/em&gt;&lt;/strong&gt; &lt;em&gt;We don't need to login to a specific region to use Amazon S3. The Amazon S3 service is globally available.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd11a05sucft2821quqcy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd11a05sucft2821quqcy.png" alt="Image description" width="800" height="511"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Go to AWS S3 console and click on “&lt;strong&gt;Create bucket&lt;/strong&gt;”. In the pop up that follows, choose a suitable region from the Select a “&lt;strong&gt;Region&lt;/strong&gt;” dropdown. If you have an existing bucket &amp;amp; you want to use the settings of that bucket for this new one then select choosing “&lt;strong&gt;Copy settings from an existing bucket&lt;/strong&gt;”, and then choose that particular bucket. &lt;strong&gt;Versioning&lt;/strong&gt;, &lt;strong&gt;tags&lt;/strong&gt; , and &lt;strong&gt;logging&lt;/strong&gt; are the bucket properties that will be copied from source bucket to destination Bucket. This is an optional step though.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Step 2: Configuring the bucket for “Static Website Hosting”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Now we need to configure our bucket as a website. To achieve this, select your bucket and click on the “&lt;strong&gt;Properties&lt;/strong&gt;” section and click on the &lt;strong&gt;“Static Website Hosting”&lt;/strong&gt;. Now Select the option &lt;strong&gt;“Use this bucket to host a website”&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Now we will configure the home or default page on the website. Add &lt;strong&gt;“index.html”&lt;/strong&gt; as &lt;strong&gt;“Index Document”&lt;/strong&gt;. We can also configure &lt;strong&gt;“Error document”&lt;/strong&gt; that will be returned in case of any errors.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx38y6gplb4qc046upzs0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx38y6gplb4qc046upzs0.png" alt="Image description" width="550" height="621"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Step 3: Uploading all files/documents of the static website.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Select the bucket and upload all the files of the website. Amazon S3 is a simple key-based object-store. Every object is assigned with a unique object key that can later be used to retrieve the data. When any file is successfully uploaded to the bucket then AWS S3 will respond with 200 OK responses.&lt;/p&gt;

&lt;p&gt;To upload the static website to S3 via the AWS Console, we need to proceed with the following steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Select the bucket and click on the “Upload” button.&lt;/li&gt;
&lt;li&gt;Either we can drag and drop all files at once or click on “Add files” and upload all the files and click on “Next”.&lt;/li&gt;
&lt;li&gt;We will go with the default permissions that S3 offers as it is recommended that we should not change the default settings. We should always make changes to object permissions when the objects are successfully uploaded into the bucket.&lt;/li&gt;
&lt;li&gt;Finally, click on “Next” and click on “Upload” to upload files. We can see 200 OK response for every file that is being uploaded to AWS S3.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;After uploading all the files of your static website, the bucket structure will look like :&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3sn7kraef5gyv3xw7uc8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3sn7kraef5gyv3xw7uc8.png" alt="Image description" width="800" height="510"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Step 4: Adding a policy to the bucket that will make the bucket publicly available&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Now the newly created Amazon S3 buckets are always private and protected by default. We are required to use Access Control Lists (ACLs) and bucket policies to grant access to anonymous users. This adds an extra layer of security. We need to perform the following steps before adding Bucket Policy.&lt;/p&gt;

&lt;p&gt;In your bucket, select the &lt;strong&gt;“Permissions”&lt;/strong&gt; panel, under the &lt;strong&gt;“Public access settings”&lt;/strong&gt; section, uncheck the following and click on save.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Block new public ACLs and uploading public objects&lt;/li&gt;
&lt;li&gt;Block new public bucket policies&lt;/li&gt;
&lt;li&gt;Block public and cross-account access if the bucket has public policies&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Now, to make the bucket publicly available, select your bucket and click on the &lt;strong&gt;“Properties”&lt;/strong&gt; section and choose &lt;strong&gt;“Permissions”&lt;/strong&gt;.&lt;br&gt;
Then choose to add bucket Policy. To use the bucket as a website, the bucket must have public read access. The following policy can be added to the bucket Policy Editor.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AddPermission",
      "Action": [
        "s3:GetObject"
      ],
      "Effect": "Allow",
      "Resource": "arn:aws:s3:::www.my-example-site.com/*",
      "Principal": "*"
    }
  ]
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;&lt;em&gt;Note:&lt;/em&gt;&lt;/strong&gt; &lt;em&gt;You can use the AWS Policy Generator to generate your policy.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Now open any browser and hit the URL “&lt;strong&gt;&lt;a href="http://www.my-example-site.com.s3-website-us-east-1.amazonaws.com" rel="noopener noreferrer"&gt;http://www.my-example-site.com.s3-website-us-east-1.amazonaws.com&lt;/a&gt;&lt;/strong&gt;” i.e. &lt;strong&gt;.s3-website-.amazonaws.com&lt;/strong&gt; or to get the Endpoint of your bucket, go to “&lt;strong&gt;Properties&lt;/strong&gt;” section then click on “&lt;strong&gt;Static Website Hosting&lt;/strong&gt;” option.&lt;/p&gt;

&lt;p&gt;Congratulations! You’ve successfully hosted a static website on Amazon Simple Storage Service (Amazon S3). 😊😊😊&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
