<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ajesh Martin on Medium]]></title>
        <description><![CDATA[Stories by Ajesh Martin on Medium]]></description>
        <link>https://medium.com/@ajeshmartin01?source=rss-927bd82d0541------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*9tWjMSlzi-ebeoZv.jpg</url>
            <title>Stories by Ajesh Martin on Medium</title>
            <link>https://medium.com/@ajeshmartin01?source=rss-927bd82d0541------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 08:47:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ajeshmartin01/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[My C.C.P Story!]]></title>
            <link>https://medium.com/featurepreneur/my-c-c-p-story-72d90186b5a6?source=rss-927bd82d0541------2</link>
            <guid isPermaLink="false">https://medium.com/p/72d90186b5a6</guid>
            <category><![CDATA[aws-cloud-practitioner]]></category>
            <category><![CDATA[tactii]]></category>
            <category><![CDATA[tactlabs]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[featurepreneur]]></category>
            <dc:creator><![CDATA[Ajesh Martin]]></dc:creator>
            <pubDate>Thu, 06 Jan 2022 18:11:31 GMT</pubDate>
            <atom:updated>2022-01-06T18:11:31.491Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*3Oe7vN_8Q4Pa0YgWXrXQDA.jpeg" /></figure><p>I’ve just obtained my AWS Cloud Practitioner Certification after spending my past days fully focused on it. I’ll tell you about my experience, the resources I used, and the people who guided me through it.</p><p>My experience with the cloud started when I first joined Tactlabs as an intern. At that point in time, I had a very abstract understanding of it. But as an intern, I had the opportunity to work with a slew of AWS services which helped me develop a broader understanding of the AWS Ecosystem. Which in turn gave me the experience and confidence I needed to pass the CCP exam. Ngl, the last few hours before the exam was a bit nerve-wracking. But it all paid off in the end.</p><p>A huge thanks to <a href="https://www.linkedin.com/company/tactii/">Tactlabs</a> for being my sponsor and for providing me with an environment and a community where I could learn and grow. I am immensely grateful to <a href="https://www.linkedin.com/in/rajacsp/">Raja Sir</a>, my mentor who guided me through my preparation, helped me see the growth points in my development, and helped me kick-start my career.</p><h4>Some of the resources I used :</h4><p>A Cloud Guru’s <a href="https://acloudguru.com/course/aws-certified-cloud-practitioner">CCP course</a> ( needs an active subscription )</p><p>Andrew Brown’s <a href="https://www.youtube.com/watch?v=SOTamWNgDKc">complete video course</a> ( Free )</p><p>A few <a href="https://docs.aws.amazon.com/whitepapers/latest/aws-overview/aws-overview.pdf#introduction">white papers</a> ( boring, ik )</p><p>Udemy’s <a href="https://www.udemy.com/course/aws-certified-cloud-practitioner-practice-exams-c/">practice tests</a> ( Highly recommended )</p><p>Happy coding :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=72d90186b5a6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/featurepreneur/my-c-c-p-story-72d90186b5a6">My C.C.P Story!</a> was originally published in <a href="https://medium.com/featurepreneur">featurepreneur</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why FastAPI?]]></title>
            <link>https://medium.com/featurepreneur/why-fastapi-69fb172756b7?source=rss-927bd82d0541------2</link>
            <guid isPermaLink="false">https://medium.com/p/69fb172756b7</guid>
            <category><![CDATA[fastapi]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python3]]></category>
            <category><![CDATA[flask]]></category>
            <dc:creator><![CDATA[Ajesh Martin]]></dc:creator>
            <pubDate>Tue, 03 Aug 2021 16:32:00 GMT</pubDate>
            <atom:updated>2021-08-03T16:32:00.764Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*du7p50wS_fIsaC_lR18qsg.png" /></figure><p>FastAPI is a rather minimalistic framework, more of the likes of Flask. However, that doesn’t make it less powerful. FastAPI is built using modern Python concepts and it’s based out of Python 3.6 type declarations. Let’s see some of the features this library is packed with:</p><h4>Automatic Docs</h4><p>A must-have for any API is documentation about the endpoints and the types. A common approach to solve this problem is the use of <a href="https://github.com/OAI/OpenAPI-Specification">OpenAPI</a> and subsequently tools like <a href="https://github.com/swagger-api/swagger-ui">Swagger UI</a> or <a href="https://github.com/Redocly/redoc">ReDoc</a> to present the information. These come packed automatically with FastAPI. Allowing you to focus more on your code rather than setting up tools.</p><h4>Typed Python</h4><p>This is a BIG one. FastAPI makes use of Python 3.6 type declarations (thanks to Pydantic), this means that it uses a Python feature that allows you to specify the type of a variable. And this framework makes extensive use out of it, providing you with great editor support. Autocompletion works amazingly.</p><p>Here is a sample code using typed declarations:</p><pre>from fastapi import FastAPI<br>from pydantic import BaseModel<br><br>app = FastAPI()<br><br>class Item(BaseModel):<br>    name: str<br>    price: float<br><br>@app.get(&quot;/&quot;)<br>def read_root(item: Item):<br>    return item.price</pre><p>We just went from</p><pre>name</pre><p>to</p><pre>name: str</pre><p>that’s it! and as a result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*Gkwbdpwlc8EbYBlYkt0jXQ.png" /></figure><h4>Validation</h4><p>Validation is already integrated into this framework thanks to Pydantic. You can validate standard Python types as well as some custom field validations. Here are a few examples:</p><ul><li>JSON objects (dict)</li><li>JSON array (list)</li><li>String (str) with min and max lengths</li><li>Numbers (int, float) with min and max values</li><li>URL</li><li>Email</li><li>UUID</li><li>and many more…</li></ul><h4>Security and Authentication</h4><p>This is a crucial part of any API, and it’s code that we usually just repeat, so why not integrate much of it into the framework? FastAPI does exactly that.</p><p>The library provides support for the followings:</p><ul><li>HTTP Basic</li><li>OAuth2 (JWT tokens)</li><li>API keys in headers, query params, or cookies.</li></ul><h4>Documentation</h4><p>Perhaps is not exactly a feature of the framework, however, it is worth mentioning. The documentation of the project is simply amazing. It’s very clear and covers the topics with examples and explanations.</p><h4>Performance</h4><p>FastAPI is fast! , it <strong>is much faster than the flask</strong> because it’s built over ASGI (Asynchronous Server Gateway Interface) instead of WSGI (Web Server Gateway Interface) s the flask is built on.</p><h4>Asynchronous by nature</h4><p>Let’s take a look at the following code:</p><pre>@app.post(&quot;/item/&quot;, response_model=Item)<br>async def create_item(item: Item):<br>    result = await some_code_running_in_background(item)<br>    return result</pre><p>Is that Javascript? I promise you, is not, though looks familiar, right? That snippet is actually Python, using async methods.</p><p>FastAPI supports asynchronous endpoints by default, which can simplify and make your code more efficient. This is a huge advantage over Flask. Django on the other hand already made some async support work, but is not as integrated as it is in FastAPI.</p><h4>Conclusion</h4><p>FastAPI is a relatively new framework that follows the minimalist approach of Flask but adding crucial features that makes it easier to work with and with a stunning performance. It is a great choice for your next API project!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69fb172756b7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/featurepreneur/why-fastapi-69fb172756b7">Why FastAPI?</a> was originally published in <a href="https://medium.com/featurepreneur">featurepreneur</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flask, Django or Pyramid? Choose the right Python Framework for your project.]]></title>
            <link>https://medium.com/featurepreneur/flask-django-or-pyramid-choose-the-right-python-framework-for-your-project-3a9dd23ee51c?source=rss-927bd82d0541------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a9dd23ee51c</guid>
            <category><![CDATA[django-framework]]></category>
            <category><![CDATA[pyramid-framework]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[python3]]></category>
            <category><![CDATA[flask-framework]]></category>
            <dc:creator><![CDATA[Ajesh Martin]]></dc:creator>
            <pubDate>Tue, 03 Aug 2021 16:31:30 GMT</pubDate>
            <atom:updated>2021-08-03T16:31:30.755Z</atom:updated>
            <content:encoded><![CDATA[<p>Django, Flask, and Pyramid are frameworks for web development in Python. A web framework includes a collection of packages or modules that allow developers to write web applications without having to handle low-level details like sockets, process/thread management, or protocols.</p><p>Whenever we start a new project, we begin by thinking about its architecture and technology stack. Most of the time, we pick the stack that we’re used to. But sometimes it’s worth to think whether our habits and preferences are enough to argue for choosing that particular technology.</p><h4>Django</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*VJvm1cEIqEwFtQACLoEgkw.png" /></figure><p>Django was built with ‘batteries included’ idea in mind. That’s why it allows to quickly create a functional application we can gradually improve and develop. Developers get an ORM that supports the most essential database systems (PostgreSQL, MySQL, MSSQL, Oracle, SQLite3) and migrations.</p><p>Other advantages of Django are its advanced templates language, forms services, auto-generated admin panel, straightforward user and permissions system, and decent protection against attacks such as CSRF, clickjacking, SQL Injection, and XSS. Another significant advantage of Django is its comprehensive documentation.</p><p><strong>Thanks to all these advantages, Django is today surrounded by a growing community of developers who have enriched it with amazing extensions. </strong>Many people consider Django a perfect framework for creating a CMS. No wonder that it’s being used for that purpose by giants like Instagram, IKEA, Disqus, Washington Post, and NASA.</p><p>Are there any cons to using Django?</p><p>Many advanced developers complain about the ORM that has a particular syntax and doesn’t allow taking full advantage of opportunities offered by the SQL language. Another thing is that Django is a megaframework. If we need higher responsiveness in our project, it might turn out that Django mechanisms are just too heavy and don’t allow for the quick response we’re aiming for.</p><h4>Flask</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GVvohkgdf-42P6R9CwEYBw.png" /></figure><p>Flask is almost a direct opposite of Django. It’s a micro-framework that delivers only minimal tools and requires everything else to be manually configured. That means developers have full flexibility in choosing their tools.</p><p>If you’d like to use a different ORM than the popular SQLAlchemy, it’s not a problem! Want a different template language than Jinja2, be my guest! Thanks to this type of approach, Flask works great whenever developers want to have full control over every single element in their application.</p><p>Some of the most popular portals based on Flask are Pinterest and LinkedIn. The former was originally based on Django, but the high demands it put on the organization’s database finally forced Pinterest to migrate to Flask.</p><p><strong>Flask works best in projects where the architecture is based on microservices</strong>. On the other hand, launching a project with Flask might become more challenging because of the time and effort required to write up and configure everything manually — while all these elements are simply provided in Django. So by picking Flask, you’re basically trading comfort for greater flexibility.</p><h4>Pyramid</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*qDi3dw75eL4cEWZOyv0ISw.png" /></figure><p>The last framework I wanted to talk about here is Pyramid. The framework is often considered a viable alternative to both Django and Flask. Some people say that it’s a framework designed for creating frameworks, other say that it’s Flask on steroids.</p><p>At its core, Pyramid contains basic mechanisms for URL routing with views, useful authorization functionalities and quite large set of plugins and third party apps that can provide for example a scaffold that serves as the equivalent to the admin panel we get in Django.<strong> You’ll find that its toolset is slightly larger than the one provided in Flask, however, you still need to choose the ORM, template language, forms services, and others.</strong></p><p>All in all, Pyramid can become a solid foundation for a project. Granted, it can be slightly overwhelming at the beginning, especially if you’re coming from Django. Pyramid is used today by Mozilla and Yelp.</p><h3>Takeaway</h3><p>Whenever you begin a project, it’s a good idea to write down the architecture properly and define your assumptions about its development.</p><p>If you’re building an application based on a robust CMS, Django might be the best pick because it will allow you to create a prototype quickly and develop it into a fully functional service.</p><p>But if your project requires top efficiency or you don’t want a framework’s assumptions to constrain you in realizing the specific requirements of your project, it’s a good idea to choose Flask or Pyramid.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a9dd23ee51c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/featurepreneur/flask-django-or-pyramid-choose-the-right-python-framework-for-your-project-3a9dd23ee51c">Flask, Django or Pyramid? Choose the right Python Framework for your project.</a> was originally published in <a href="https://medium.com/featurepreneur">featurepreneur</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Azure DevOps?]]></title>
            <link>https://medium.com/featurepreneur/what-is-azure-devops-863698ae986f?source=rss-927bd82d0541------2</link>
            <guid isPermaLink="false">https://medium.com/p/863698ae986f</guid>
            <category><![CDATA[azure-devops]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Ajesh Martin]]></dc:creator>
            <pubDate>Tue, 03 Aug 2021 16:30:59 GMT</pubDate>
            <atom:updated>2021-08-03T16:30:59.776Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*Ome-oSxDNx7mQxJFZJ-NJg.png" /></figure><p>DevOps — the combination of the teams of software development (Dev) and IT operations (Ops) — has become the go-to methodology in IT today. The goal is to provide a constant stream of improved software releases quickly and with fewer errors. Ultimately, developers turn to DevOps to shorten the overall development lifecycle.</p><p>App creators have many DevOps tools to choose from, and the sheer number is enough to make anyone’s head spin. To that end, we are devoting some time to one of the better DevOps tools available, Microsoft Azure DevOps.</p><h3>What is it?</h3><p>Let’s begin with the basics: what exactly IS Microsoft Azure DevOps? It’s a software as a service (SaaS) platform that offers users an end-to-end DevOps toolchain to develop and deploy software.</p><p>Azure DevOps is not a single program but instead consists of the following services:</p><ul><li>Azure Boards: This covers agile planning, work item tracking, and visualization, and reporting tools.</li><li>Azure Pipelines: This is a language, platform, and cloud-agnostic CI/CD platform with support for containers or Kubernetes.</li><li>Azure Repos: This offers a cloud-hosted private Git repository, with pull requests, advanced file management, and other benefits.</li><li>Azure Artifacts: The artifacts in question provide developers with integrated package management, including support for Maven, npm, Python, and NuGet package feeds from either public or private sources.</li><li>Azure Test Plans: This service provides an integrated, all-in-one planned, and exploratory testing solution.</li></ul><h3>What are it’s benefits?</h3><p>Azure DevOps provides DevOps teams with powerful tools.</p><h4><em>Dashboard control:</em></h4><ul><li>Using the DevOps dashboard feature, you can quickly navigate to different areas of the project, add and manage dashboards, and configure dashboard widgets.</li></ul><h4>Improved Source Control</h4><ul><li>Azure DevOps systems support two popular types of source control: Git (distributed) or Team Foundation Version Control (TFVC), which is a centralized, client-server system. You can add and manage Azure Git tags, review, download, and edit files to see change history.</li></ul><h4>Place and track your work</h4><ul><li>Azure DevOps systems provide you with a couple of types of work items used to monitor features, requirements, user stories, tasks, bugs, and more. For planning purposes, you can access several kinds of backlogs and boards to support the main agile methods: Scrum, Scrumban, or Kanban. You can add and update relevant work items, manage product backlog, use sprint backlogs to plan sprints, and use Kanban boards to visualize the workflow and update statuses.</li></ul><h4>Continuous Integration and Deployment (CI/CD)</h4><ul><li>Many developers employ the practice of CI/CD, and Azure DevOps supports them. By using Azure pipelines, developers can automate many of the design processes, including defining builds and their steps, creating test instructions, and manage simultaneous releases.</li></ul><h4>Support for Manual and Exploratory Testing</h4><ul><li>Azure DevOps’ test features facilitate manual, exploratory, and continuous testing, including workflow customization, end-to-end traceability, criteria-based selection, and real-time charts that track test activity.</li></ul><h4>Integrated Collaboration Services</h4><ul><li>The feature that enables teams to collaborate across with the entire collection of Azure DevOps features and functions:</li><li>Team dashboards</li><li>Project wiki</li><li>Discussion within work item forms</li><li>Linking work items, commits, pull requests, and other artifacts that support traceability</li><li>Alerts and change notifications managed per user, team, project, or organization</li><li>The ability to request and manage feedback</li><li>Analytics service, analytic views, and Power BI reporting</li></ul><h4>Azure Cloud-hosted Services</h4><ul><li>Azure provides DevOps teams with cloud-hosted services that support application development and deployment. These services can be used by themselves or in combination with Azure DevOps.</li></ul><h3>Competitive Advantages of Azure DevOps</h3><p>Let’s take a look at how Azure stacks up to similar DevOps tools and services.</p><h4>Jenkins</h4><ul><li>Although Jenkins is open-sourced and is excellent for asynchronous development, it has issues with plug-in compatibility, the need for workarounds for basic requirements, and a comparative lack of support. While Jenkins is easier to use overall, this simplicity limits its usefulness.</li></ul><h4>JIRA</h4><ul><li>JIRA is a top-rated application lifecycle management (ALM) Suite that has advantages such as automatic notifications, sprint planning, and customized dashboards. However, users experience problems with project administration, permissions, comparative difficulty in creating lists of versions, and weak reporting.</li></ul><h4>GitLab</h4><ul><li>GitLab is another web-based, open-source, DevOps lifecycle tool. In a side by side comparison, Azure DevOps has every feature that GitLab has, and then some. GitLab especially comes up short in supporting other commonly found test formats, reporting, and integration with other tools and extensions.</li></ul><h4>TFS</h4><ul><li>The TFS application lifecycle management (ALM) suite has respectable functionality and builds management features. But on the downside, it is hampered by a dashboard that doesn’t is overly customizable, a test interface that’s not very intuitive, and a price tag that runs a bit high when compared with other project management tools.</li></ul><p>These comparisons aren’t meant to imply that Azure DevOps is perfect because, in the final analysis, no product or tool is. Additionally, some organizations may have specific requirements that are best served by another DevOps tool. What stands out with Azure is the comprehensive set of tools and features which enable DevOps teams to run projects from start to finish from one provider. That being said, Azure is highly agnostic, so teams can work with other tools and services if they choose.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=863698ae986f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/featurepreneur/what-is-azure-devops-863698ae986f">What is Azure DevOps?</a> was originally published in <a href="https://medium.com/featurepreneur">featurepreneur</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is EC2? Why is it important?]]></title>
            <link>https://medium.com/featurepreneur/what-is-ec2-why-is-it-important-68541a3d607f?source=rss-927bd82d0541------2</link>
            <guid isPermaLink="false">https://medium.com/p/68541a3d607f</guid>
            <category><![CDATA[ec2]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Ajesh Martin]]></dc:creator>
            <pubDate>Tue, 03 Aug 2021 16:30:34 GMT</pubDate>
            <atom:updated>2021-08-03T16:30:34.003Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*icemCezVMahlyIQB31tzpA.png" /></figure><p>With over 32 percent of the entire world’s public cloud share, it’s no surprise that AWS serves more than 190 countries with scalable, reliable, and low-cost infrastructure. One of its most powerful and commonly used services are Amazon EC2 (Elastic Cloud Compute).</p><p>Amazon EC2 provides scalable computing capacity in the AWS cloud. Leveraging it enables organizations to develop and deploy applications faster, without needing to invest in hardware upfront. Users can launch virtual servers, configure security and networking, and manage cookies from an intuitive dashboard.</p><h4>Why is it important?</h4><ol><li>You don’t require any hardware units</li><li>Easily scalable (up or down)</li><li>You only pay for what you use</li><li>You have complete control</li><li>Highly secure</li><li>You can access your assets from anywhere in the world</li></ol><h4>What is AWS EC2?</h4><p>Among the vast array of services that Amazon offers, EC2 is the core compute component of the technology stack. In practice, EC2 makes life easier for developers by providing secure, and resizable compute capacity in the cloud. It greatly eases the process of scaling up or down, can be integrated into several other services, and comes with a plan where you only pay for how much you use it.</p><p>Let’s look at EC2(Elastic Cloud Compute) in action.</p><h4>Use Case: Notifying Users about a Newsletter</h4><p>Imagine if your user base is enjoying your product. How would you let them know about the other services you offer?</p><p>That’s where AWS comes in. With Amazon Simple Notification Service (SNS), EC2, and Simple Storage Service (S3), you should be able to do everything you want with ease. You’ll be able to notify users every time the company creates a newsletter, for example.</p><p>Here’s how:</p><p><strong>1. Create an AWS account</strong></p><p><strong>2. Set up an EC2 instance</strong></p><p>If at some point in the future, you wanted to create an application using the resources you’ve stored on S3, you’ll need to create an instance EC2.</p><p><strong>2a) Choosing an AMI (Amazon Machine Image):</strong></p><p>An AMI is a template that is used to create a new instance — or virtual machine — based on user requirements. The AMI will contain information about the software, operating system, volume, and access permissions. There are two types of AMIs:</p><p>i) Predefined AMIs: Amazon creates these, and the user can modify them.</p><p>ii) Custom AMIs: The user also creates these, and they can be reused. These AMIs are also available in the AMI Marketplace</p><p><strong>2b) Choosing an instance type:</strong></p><p>An instance type specifies the hardware specifications that are required in the machine from the previous step. Instance types belong to five main families:</p><p>i) Compute-optimized: For situations that require a lot of processing power</p><p>ii) Memory-optimized: For setting up something to do with your in-memory cache</p><p>iii) GPU optimized: For setting up a gaming system, or something with the requirement of a large graphic</p><p>iv) Storage optimized: When you need to set up a storage server</p><p>v) General-purpose: When everything is equally balanced</p><p>Instance types are fixed, and their configurations cannot be altered.</p><p><strong>2c) Configure Instance:</strong></p><p>You have to specify the number of instances, purchasing options, the kind of network, the subnet, assign a public IP, set the IAM role, the shutdown behavior, etc. On that note, stopping the system and terminating the system under ‘Shutdown behavior’ are completely different things.</p><p>Stopping = Temporarily shutting down the system</p><p>Terminating = Returning control to Amazon</p><p>Under the advanced details, users can also add bootstrap scripts that are executed when the virtual machine starts up. It also offers multiple payment options, such as:</p><p>i) On-demand instances: Can be launched whenever the user requires normal rates</p><p>ii) Reserved instances: These instances are reserved for one year or three years. The entire amount has to be paid upfront or over a span of a few months.</p><p>iii) Spot instances: Bidding goes to the bidder with the highest bid. These instances are available at a lesser cost than on-demand instances.</p><p><strong>2d) Adding Storage:</strong></p><p>You’re tasked with deciding the type of storage, which could be:</p><p>i) Ephemeral Storage (temporary and free)</p><p>ii) Amazon Elastic Block Store (permanent and paid)</p><p>iii) Amazon S3</p><p>The size (in GBs), volume type, where the disk is mounted, and whether the volume needs to be encrypted needs to be specified. Free users get to access up to 30 GBs of SSD or magnetic storage (which can be found under ‘Volume Type’).</p><p><strong>2e) Adding tags:</strong></p><p>This helps to identify instances more quickly.</p><p><strong>2f) Configuring security groups:</strong></p><p>These are used to specify rules based on which users are given access to the EC2 instance. You set up the type of security, protocol, the port range, and source (from where the incoming traffic is coming from). Incoming traffic has to be explicitly specified, and outgoing traffic is open.</p><p><strong>2g) Review</strong></p><p>Click on ‘Launch’ and the instance is created. However, there’s a little more work to be done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/1*d02fiQq28YnU24etSTg9Cw.png" /></figure><p>Private key: The user downloads the private key</p><p>Public key: AWS uses the public key to confirm the identity of the user.</p><p>After choosing to create a new pair, a new private key is downloaded as a .pem file.</p><p>For the next step, we need to use the following tools: PuTTY and PuTTYgen. PuTTY is generally used when you need to connect a Windows system with a Linux system, which is what we’re doing now. PuTTY doesn’t accept .pem files.</p><p>So, using the PuTTY Key Generator, you create a new .ppk file.</p><p>Conversion&gt; Insert Key</p><p>And load the .pem file.</p><p>Select “Save Private Key” and find a location to save the key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*Yv88JuzLDGhS3AZLlq-hqQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*7md_hE8UssHRa0ly85jX4g.png" /></figure><p>Once that’s done, a terminal will open up where you can log in as ec2-user</p><p><strong>3. Create an SNS and a topic</strong></p><p><strong>4. Make sure the topic is set to “public.”</strong></p><p><strong>5. Add subscribers:</strong></p><p>These are the individuals who have opted-in to be notified about your newsletter</p><p><strong>6. Create an S3 bucket</strong></p><p><strong>7. Set up an event relating it with SNS:</strong></p><p>A notification is sent to the company’s subscribers every time something is added to the bucket</p><p><strong>8. Sync the S3 bucket and AWS instance</strong></p><p><strong>And that’s it: Your users will be notified.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68541a3d607f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/featurepreneur/what-is-ec2-why-is-it-important-68541a3d607f">What is EC2? Why is it important?</a> was originally published in <a href="https://medium.com/featurepreneur">featurepreneur</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Angular in 2021]]></title>
            <link>https://medium.com/featurepreneur/angular-in-2021-443f9ad089a1?source=rss-927bd82d0541------2</link>
            <guid isPermaLink="false">https://medium.com/p/443f9ad089a1</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[angular]]></category>
            <dc:creator><![CDATA[Ajesh Martin]]></dc:creator>
            <pubDate>Tue, 03 Aug 2021 16:29:44 GMT</pubDate>
            <atom:updated>2021-08-03T16:29:44.963Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2SExhAXj2uD-tS0auUdKmA.jpeg" /></figure><p>For Startups before entering the JavaScript world, it’s essential to understand the demand and growth of the latest JavaScript frameworks in the coming years. So, that they can take a wise decision when working with Angular applications.</p><p>If you’ve never implemented Angular at all, why not try it once?</p><p>This post mainly focuses on the current state and future possibilities of Angular development.</p><h4>A brief introduction about angular:</h4><p>Angular is an open-source, JavaScript framework originated by Google based on TypeScript and designed for developing web applications. It comes under the MEAN tech stack and at the same time provides a wide range of code editors. It comes with detailed documentation but has a steeper learning curve.</p><h4>What Angular development holds</h4><ul><li>Writing, testing and documenting JavaScript, HTML ,and CSS components</li><li>Ensuring high performance of single page applications across all platforms i.e. desktop and mobile</li><li>Delivering a complete and functional front end application</li><li>Develop User Interfaces for Rich Internet Applications with latest Front End Technologies</li><li>Implementation of product analysis and development tasks of complex nature</li><li>Make robust designs for AngularJS projects</li><li>Develop application code and perform unit testing in the AngularJS</li></ul><p>JavaScript has already conquered the web world with its outstanding functionalities. Undoubtedly, JavaScript is utilized almost everywhere on the web.</p><p>According to a Developer’s Survey 2020, more than 70% of developers write their code in JavaScript.</p><p>In addition to this, there are great JavaScript Frameworks stealing the show nowadays. The JavaScript frameworks such as Angular, Node.js and React have the largest gap between demand and supply.</p><p>Presently, there are many developers in the tech world specialized in these frameworks, but still the number of employers searching for the professionals are in big numbers.</p><h4>Six Digit Salaries</h4><p>Today, JavaScript Framework is continually growing its reputation and dominance in the web development world. According to the <strong>2020</strong> developer survey, JavaScript is considered the second most loved language by the developers.</p><p>More than <strong>11</strong> <strong>million</strong> developers are actively using it on a daily basis. Presently, on Indeed job portal, there are over 29,000 vacancies looking for JavaScript developers in the US.</p><p>Surprised?</p><p>So what’s the reason behind all this popularity of JavaScript language and high demand for developers?</p><p>Any idea?</p><p>Let’s find the answer to this question in the given post.</p><p>In the tech sector, the turnover rate is the highest, and losing expert employees is costing businesses money.</p><p>According to a report, the average JavaScript developer salary in the USA is $113,421 annually or $58.16 per hour.</p><p>In USA, the onsite costs of Front end developer(Angular/React) is $88,000 annually. At the same time, if you want to outsource this technical expertise it will costs you $36000.</p><p>So, here the difference is quite big. If planning to outsource this expertise than in my opinion you should drop the plan and go for onsite angular development. It will costs you a bit less.</p><h4>What’s new in Angular 2021?</h4><p>When you work with Angular framework, you will come across various small and high performance apps. In the year 2021 and beyond, the framework comes with</p><ul><li>differential loading of modern JavaScript, and</li><li>Opt-in-Ivy preview</li><li>Dependency injection for assembling data services for web applications</li><li>Bazel, a compiling tool for improving file size and producing smaller bundles</li></ul><p>In addition to this, a faster building process for an overall enhanced general developer experience will be available soon.</p><p>Hence, the current state of Angular is pretty good, and it’s going popular day by day. The web applications are getting featured rich and efficient with Angular framework.</p><h4>Bottom Line</h4><p>As Angular has much larger dependencies and components built inside, no matter what your application is, Angular has all covered.</p><p>You have many features to choose from. A clear set of rules, syntax, and typescripts provided to follow good practices.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=443f9ad089a1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/featurepreneur/angular-in-2021-443f9ad089a1">Angular in 2021</a> was originally published in <a href="https://medium.com/featurepreneur">featurepreneur</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is DevOps?]]></title>
            <link>https://medium.com/featurepreneur/what-is-devops-761d7b9d7b1c?source=rss-927bd82d0541------2</link>
            <guid isPermaLink="false">https://medium.com/p/761d7b9d7b1c</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Ajesh Martin]]></dc:creator>
            <pubDate>Tue, 03 Aug 2021 16:29:18 GMT</pubDate>
            <atom:updated>2021-08-03T16:29:18.977Z</atom:updated>
            <content:encoded><![CDATA[<p>DevOps is an evolving philosophy and framework that encourages faster, better application development and faster release of new or revised software features or products to customers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h5Zs-8nFcTrgR1UceyKYXA.png" /></figure><p>The practice of DevOps encourages smoother, continuous communication, collaboration, integration, visibility, and transparency between application development teams (Dev) and their IT operations team (Ops) counterparts.</p><p>This closer relationship between “Dev” and “Ops” permeates every phase of the DevOps lifecycle: from initial software planning to code, build, test, and release phases and on to deployment, operations, and ongoing monitoring. This relationship propels a continuous customer feedback loop of further improvement, development, testing, and deployment. One result of these efforts can be the more rapid, continual release of necessary feature changes or additions.</p><p>Some people group DevOps goals into four categories: culture, automation, measurement, and sharing (CAMS), and DevOps tools can aid in these areas. These tools can make development and operations workflows more streamlined and collaborative, automating previously time-consuming, manual, or static tasks involved in integration, development, testing, deployment, or monitoring.</p><h4>Why Does it matter?</h4><p>Along with its efforts to break down barriers to communication and collaboration between development and IT operations teams, a core value of DevOps is customer satisfaction and the faster delivery of value. DevOps is also designed to propel business innovation and the drive for continuous process improvement.</p><p>The practice of DevOps encourages faster, better, more secure delivery of business value to an organization’s end customers. This value might take the form of more frequent product releases, features, or updates. It can involve how quickly a product release or new feature gets into customers’ hands -all with the proper levels of quality and security. Or, it might focus on how quickly an issue or bug is identified, and then resolved and re-released.</p><p>Underlying infrastructure also supports DevOps with seamless performance, availability, and reliability of software as it is first developed and tested then released into production.</p><h4>DevOps Methods:</h4><p>There are a few common DevOps methods that organizations can use to speed and improve development and product releases. They take the form of software development methodologies and practices. Among the most popular ones are Scrum, Kanban, and Agile:</p><ul><li><strong>Scrum.</strong> Scrum defines how members of a team should work together to accelerate development and QA projects. Scrum practices include key workflows and specific terminology (sprints, time boxes, daily scrum [meeting]), and designated roles (Scrum Master, product owner).</li><li><strong>Kanban.</strong> Kanban originated from efficiencies gained on the Toyota factory floor. Kanban prescribes that the state of software project work in progress (WIP) be tracked on a Kanban board.</li><li><strong>Agile.</strong> Earlier agile software development methods continue to heavily influence DevOps practices and tools. Many DevOps methods, including Scrum and Kanban, incorporate elements of agile programming. Some agile practices are associated with greater responsiveness to changing needs and requirements, documenting requirements as user stories, performing daily standups, and incorporating continuous customer feedback. Agile also prescribes shorter software development lifecycles instead of lengthy, traditional “waterfall” development methods.</li></ul><h4>DevOps Toolchain:</h4><p>Followers of DevOps practices often use certain DevOps-friendly tools as part of their DevOps “toolchain.” The goal of these tools is to further streamline, shorten, and automate the various stages of the software delivery workflow (or “pipeline”). Many such tools also promote core DevOps tenets of automation, collaboration, and integration between development and operations teams. The following shows a sample of tools used at various DevOps lifecycle stages.</p><ul><li><strong>Plan.</strong> This phase helps define business value and requirements. Sample tools include Jira or Git to help track known issues and perform project management.</li><li><strong>Code.</strong> This phase involves software design and the creation of software code. Sample tools include GitHub, GitLab, Bitbucket, or Stash.</li><li><strong>Build.</strong> In this phase, you manage software builds and versions, and use automated tools to help compile and package code for future release to production. You use source code repositories or package repositories that also “package” infrastructure needed for product release. Sample tools include Docker, Ansible, Puppet, Chef, Gradle, Maven, or JFrog Artifactory.</li><li><strong>Test.</strong> This phase involves continuous testing (manual or automated) to ensure optimal code quality. Sample tools include JUnit, Codeception, Selenium, Vagrant, TestNG, or BlazeMeter.</li><li><strong>Deploy.</strong> This phase can include tools that help manage, coordinate, schedule, and automate product releases into production. Sample tools include Puppet, Chef, Ansible, Jenkins, Kubernetes, OpenShift, OpenStack, Docker, or Jira.</li><li><strong>Operate.</strong> This phase manages software during production. Sample tools include Ansible, Puppet, PowerShell, Chef, Salt, or Otter.</li><li><strong>Monitor.</strong> This phase involves identifying and collecting information about issues from a specific software release in production. Sample tools include New Relic, Datadog, Grafana, Wireshark, Splunk, Nagios, or Slack.</li></ul><h4>DevOps practices:</h4><p>DevOps practices reflect the idea of continuous improvement and automation. Many practices focus on one or more development cycle phases. These practices include:</p><ul><li><strong>Continuous development.</strong> This practice spans the planning and coding phases of the DevOps lifecycle. Version-control mechanisms might be involved.</li><li><strong>Continuous testing.</strong> This practice incorporates automated, prescheduled, continued code tests as application code is being written or updated. Such tests can speed the delivery of code to production.</li><li><strong>Continuous integration (CI).</strong> This practice brings configuration management (CM) tools together with other test and development tools to track how much of the code being developed is ready for production. It involves rapid feedback between testing and development to quickly identify and resolve code issues.</li><li><strong>Continuous delivery. </strong>This practice automates the delivery of code changes, after testing, to a preproduction or staging environment. A staff member might then decide to promote such code changes into production.</li><li><strong>Continuous deployment (CD).</strong> Similar to continuous delivery, this practice automates the release of new or changed code into production. A company doing continuous deployment might release code or feature changes several times per day. The use of container technologies, such as Docker and Kubernetes, can enable continuous deployment by helping to maintain consistency of the code across different deployment platforms and environments.</li><li><strong>Continuous monitoring.</strong> This practice involves ongoing monitoring of both the code in operation and the underlying infrastructure that supports it. A feedback loop that reports on bugs or issues then makes its way back to development.</li><li><strong>Infrastructure as code.</strong> This practice can be used during various DevOps phases to automate the provisioning of infrastructure required for a software release. Developers add infrastructure “code” from within their existing development tools. For example, developers might create a storage volume on demand from Docker, Kubernetes, or OpenShift. This practice also allows operations teams to monitor environment configurations, track changes, and simplify the rollback of configurations.</li></ul><h4>Benefits of DevOps:</h4><p>DevOps proponents describe several business and technical benefits, many of which can result in happier customers. Some benefits of DevOps include:</p><ul><li>Faster, better product delivery</li><li>Faster issue resolution and reduced complexity</li><li>Greater scalability and availability</li><li>More stable operating environments</li><li>Better resource utilization</li><li>Greater automation</li><li>Greater visibility into system outcomes</li><li>Greater innovation</li></ul><h4>History of DevOps:</h4><p>Many DevOps methods for streamlining software development and deployment have an early basis in agile software development and lean programming. But DevOps originally evolved from several grassroots movements to harmonize the activities of developers and their operations team counterparts.</p><p>The early 2000s saw the need to maintain availability of popular websites such as Google and Flickr against massive hits. This need led to the use of software reliability engineers (SREs) — operations people working closely with developers to ensure that the sites would keep running after code was released into production.</p><p>In 2009, Flickr engineers John Allspaw and Paul Hammond presented their own DevOps-like methodology at a conference. Their presentation was entitled “10+ Deploys per Day: Dev and Ops Cooperation at Flickr.” The same year, Patrick Debois organized the first “DevOps Day” in Belgium. A #DevOps hashtag was also incorporated and gained momentum as more DevOps Days were held around the world.</p><p>Over the coming years, industry and open-source tools and frameworks were developed and proposed to further the goals of DevOps.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=761d7b9d7b1c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/featurepreneur/what-is-devops-761d7b9d7b1c">What is DevOps?</a> was originally published in <a href="https://medium.com/featurepreneur">featurepreneur</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting up Homebrew and using it]]></title>
            <link>https://medium.com/featurepreneur/setting-up-homebrew-and-using-it-598671aa6374?source=rss-927bd82d0541------2</link>
            <guid isPermaLink="false">https://medium.com/p/598671aa6374</guid>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[mac-development]]></category>
            <category><![CDATA[macos]]></category>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[homebrew]]></category>
            <dc:creator><![CDATA[Ajesh Martin]]></dc:creator>
            <pubDate>Tue, 03 Aug 2021 16:28:18 GMT</pubDate>
            <atom:updated>2021-08-03T16:28:18.505Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CzzLwn4XdpjXk-uzQe9vuA.png" /></figure><p><a href="https://brew.sh/">Homebrew</a> calls itself <em>The missing package manager for macOS</em> and is an essential tool for any developer.</p><h3>Installation</h3><p>Before you can run Homebrew you need to have the <strong>Command Line Tools for Xcode</strong> installed. It include compilers and other tools that will allow you to build things from source, and if you are missing this it’s available through the App Store &gt; Updates. You can also install it from the terminal by running the following:</p><pre>sudo xcode-select --install</pre><p>To install Homebrew run the following in a terminal:</p><pre>/bin/bash -c &quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)&quot;</pre><p>hit <strong>Enter</strong>, and follow the steps on the screen.</p><h3>Setting up your PATH</h3><p>To make the Homebrew-installed programs available in your shell, you need to add your Homebrew installation location to your $PATH. This is done for you already on macOS 10.14 Mojave and newer. For older versions of macOS, do the following:</p><p>You change your path by adding /usr/local/bin to your PATH environment variable. This can be done on a per-user basis by adjusting PATH in your ~/.bash_profile. To do this, run:</p><pre>echo &#39;PATH=&quot;/usr/local/bin:$PATH&quot;&#39; &gt;&gt; ~/.bash_profile</pre><p>(If you’re using zsh, you should do this for ~/.zshrc in addition to ~/.bash_profile.)</p><p>Alternatively, you can also insert /usr/local/bin before the first line of /etc/paths to change the global default paths order, for all users and all major shells. An admin password will be required if you modify the file.</p><p>Then, to be able to use brew you need to start a new terminal session. After that you should make sure everything is working by running:</p><pre>brew doctor</pre><p>If everything is good, you should see no warnings, and a message that you are “ready to brew!”.</p><h3>Using Homebrew</h3><p>To install a package (or <strong>Formula</strong> in Homebrew vocabulary) simply type:</p><pre>brew install &lt;formula&gt;</pre><p>To update Homebrew’s directory of formulae, run:</p><pre>brew update</pre><p><strong>Note</strong>: If that command fails you can manually download the directory of formulas like this:</p><pre>cd /usr/local/Homebrew/<br>git fetch origin<br>git reset --hard origin/master</pre><p>To see if any of your formulas need to be updated:</p><pre>brew outdated</pre><p>To update a formula:</p><pre>brew upgrade &lt;formula&gt;</pre><p>Homebrew keeps older versions of formulas installed on your system, in case you want to roll back to an older version. That is rarely necessary, so you can do some cleanup to get rid of those old versions:</p><pre>brew cleanup</pre><p>If you want to see what formulae Homebrew would delete <em>without actually deleting them</em>, you can run:</p><pre>brew cleanup --dry-run</pre><p>To see what you have installed (with their version numbers):</p><pre>brew list --versions</pre><p>To search for formulas you run:</p><pre>brew search &lt;formula&gt;</pre><p>To get more information about a formula you run:</p><pre>brew info &lt;formula&gt;</pre><p>To uninstall a formula you can run:</p><pre>brew uninstall &lt;formula&gt;</pre><h3>Homebrew-Cask</h3><p><a href="https://github.com/Homebrew/homebrew-cask">Homebrew-Cask</a> extends Homebrew and allows you to install large binary files via a command-line tool. You can for example install applications like Google Chrome, Dropbox, VLC and Spectacle. No more downloading .dmg files and dragging them to your Applications folder!</p><h3>Search</h3><p>To see if an app is available on Cask you can search on the <a href="https://formulae.brew.sh/cask/">official Cask website</a>. You can also search in your terminal:</p><pre>brew search &lt;package&gt;</pre><h3>Example Applications</h3><h3>Quick Look plugins</h3><p>These plugins add support for the corresponding file type to Mac Quick Look (In Finder, mark a file and press Space to start Quick Look). The plugins includes features like syntax highlighting, Markdown rendering, preview of JSON, patch files, CSV, ZIP files and more.</p><pre>brew install --cask \<br>    qlcolorcode \<br>    qlstephen \<br>    qlmarkdown \<br>    quicklook-json \<br>    qlprettypatch \<br>    quicklook-csv \<br>    betterzip \<br>    webpquicklook \<br>    suspicious-package</pre><h3>App Suggestions</h3><p>Here are some useful apps that are available on Cask.</p><pre>brew install --cask \<br>    alfred \<br>    android-file-transfer \<br>    appcleaner \<br>    caffeine \<br>    cheatsheet \<br>    colloquy \<br>    docker \<br>    doubletwist \<br>    dropbox \<br>    google-chrome \<br>    google-hangouts \<br>    flux \<br>    1password \<br>    rectangle \<br>    sublime-text \<br>    superduper \<br>    transmission \<br>    valentina-studio \<br>    vlc</pre><p>Happy Coding! :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=598671aa6374" width="1" height="1" alt=""><hr><p><a href="https://medium.com/featurepreneur/setting-up-homebrew-and-using-it-598671aa6374">Setting up Homebrew and using it</a> was originally published in <a href="https://medium.com/featurepreneur">featurepreneur</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Guide to Iterm2]]></title>
            <link>https://medium.com/featurepreneur/guide-to-iterm2-46cd4625d55a?source=rss-927bd82d0541------2</link>
            <guid isPermaLink="false">https://medium.com/p/46cd4625d55a</guid>
            <category><![CDATA[iterm2]]></category>
            <category><![CDATA[macos]]></category>
            <category><![CDATA[command-line]]></category>
            <category><![CDATA[mac]]></category>
            <dc:creator><![CDATA[Ajesh Martin]]></dc:creator>
            <pubDate>Tue, 03 Aug 2021 16:27:08 GMT</pubDate>
            <atom:updated>2021-08-03T16:27:08.223Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ha6bUhaMJpmnzD-5PUdxxg.jpeg" /></figure><p><a href="http://www.iterm2.com/">iTerm2</a> is an open source replacement for Apple’s Terminal. It’s highly customizable and comes with a lot of useful features.</p><h3>Installation</h3><p>Use <a href="https://sourabhbajaj.com/mac-setup/Homebrew/">Homebrew</a> to download and install:</p><pre>brew install --cask iterm2</pre><h3>Customization</h3><h3>Colors and Font Settings</h3><p>Here are some suggested settings you can change or set, <strong>they are all optional</strong>.</p><ul><li>Set hot-key to open and close the terminal to command + option + i</li><li>Go to profiles -&gt; Default -&gt; Terminal -&gt; Check silence bell to disable the terminal session from making any sound</li><li>Download <a href="https://github.com/mbadolato/iTerm2-Color-Schemes/tree/master/schemes">one of iTerm2 color schemes</a> and then set these to your default profile colors</li><li>Change the cursor text and cursor color to yellow make it more visible</li><li>Change the font to 14pt Source Code Pro Lite. Source Code Pro can be downloaded using <a href="https://sourabhbajaj.com/mac-setup/Homebrew/">Homebrew</a> brew tap homebrew/cask-fonts &amp;&amp; brew install --cask font-source-code-pro</li><li>If you’re using BASH instead of ZSH you can add export CLICOLOR=1 line to your ~/.bash_profile file for nice coloring of listings</li></ul><h3>zsh</h3><p>The Z shell (also known as zsh) is a Unix shell that is built on top of bash (the default shell for macOS) with additional features. It&#39;s recommended to use zsh over bash. It&#39;s also highly recommended to install a framework with zsh as it makes dealing with configuration, plugins and themes a lot nicer.</p><p>We’ve also included an env.sh file where we store our aliases, exports, path changes etc. We put this in a separate file to not pollute our main configuration file too much. This file is found in the bottom of this page.</p><p>Install zsh using Homebrew:</p><pre>brew install zsh</pre><p>Now you should install a framework, we recommend to use <a href="https://github.com/robbyrussell/oh-my-zsh">Oh My Zsh</a> or <a href="https://github.com/sorin-ionescu/prezto">Prezto</a>. <strong>Note that you should pick one of them, not use both.</strong></p><p>The configuration file for zsh is called .zshrc and lives in your home folder (~/.zshrc).</p><h3>Oh My Zsh</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vFPA0k4Pw6W6YBuwx8FKUw.png" /></figure><p><a href="https://github.com/robbyrussell/oh-my-zsh">Oh My Zsh</a> is an open source, community-driven framework for managing your zsh configuration. It comes with a bunch of features out of the box and improves your terminal experience.</p><p>Install Oh My Zsh:</p><pre>sh -c &quot;$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)&quot;</pre><p>The installation script should set zsh to your default shell, but if it doesn&#39;t you can do it manually:</p><pre>chsh -s $(which zsh)</pre><h3>Configuration</h3><p>The out-of-the-box configuration is usable but you probably want to customise it to suit your needs. The <a href="https://github.com/robbyrussell/oh-my-zsh/wiki">Official Wiki</a> contains a lot of useful information if you want to deep dive into what you can do with Oh My Zsh, but we’ll cover the basics here.</p><p>To apply the changes you make you need to either <strong>start new shell instance</strong> or run:</p><pre>source ~/.zshrc</pre><h4>Plugins</h4><p>Add plugins to your shell by adding the name of the plugin to the plugin array in your .zshrc.</p><pre>plugins=(git colored-man-pages colorize pip python brew osx)</pre><p>You’ll find a list of all plugins on the <a href="https://github.com/robbyrussell/oh-my-zsh/wiki/Plugins">Oh My Zsh Wiki</a>. Note that adding plugins can cause your shell startup time to increase.</p><p>zsh-syntax-highlighting</p><p>The Syntax Highlighting plugin adds beautiful colors to the commands you are typing.</p><p>Clone the zsh-syntax-highlighting plugin’s repo and copy it to the “Oh My ZSH” plugins directory.</p><pre>git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting</pre><p>zsh-autosuggestions</p><p>This plugin auto suggests any of the previous commands. Pretty handy! To select the completion, simply press → key.</p><p>Clone the zsh-autosuggestions plugin’s repo and copy it to the “Oh My ZSH” plugins directory.</p><pre>git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions</pre><p>Enforce Changes</p><p>To apply the changes you make you need to either <strong>start new shell instance</strong> or run:</p><pre>source ~/.zshrc</pre><h4>Themes</h4><p>Changing theme is as simple as changing a string in your configuration file. The default theme is robbyrussell. Just change that value to change theme, and don&#39;t forget to apply your changes.</p><pre>ZSH_THEME=pygmalion</pre><p>You’ll find a list of themes with screenshots on the <a href="https://github.com/robbyrussell/oh-my-zsh/wiki/themes">Oh My Zsh Wiki</a>.</p><h3>Prezto</h3><p><a href="https://github.com/sorin-ionescu/prezto">Prezto</a> is a configuration framework for zsh; it enriches the command line interface environment with sane defaults, aliases, functions, auto completion, and prompt themes.</p><p>Install Prezto:</p><pre>git clone --recursive https://github.com/sorin-ionescu/prezto.git &quot;${ZDOTDIR:-$HOME}/.zprezto&quot;</pre><p>Next create your ~/.zshrc by running:</p><pre>setopt EXTENDED_GLOB<br>for rcfile in &quot;${ZDOTDIR:-$HOME}&quot;/.zprezto/runcoms/^README.md(.N); do<br>    ln -s &quot;$rcfile&quot; &quot;${ZDOTDIR:-$HOME}/.${rcfile:t}&quot;<br>  done</pre><p>For more information on customisation visit the <a href="https://github.com/sorin-ionescu/prezto">GitHub repository for Prezto</a>.</p><h3>Modules</h3><p>Add modules to Prezto by editing ~/.zpreztorc and adding the modules as strings to the list:</p><pre>zstyle &#39;:prezto:load&#39; pmodule \<br>  &#39;environment&#39; \<br>  &#39;terminal&#39; \<br>  &#39;editor&#39; \<br>  &#39;history&#39; \<br>  &#39;directory&#39; \<br>  &#39;spectrum&#39; \<br>  &#39;utility&#39; \<br>  &#39;completion&#39; \<br>  &#39;git&#39; \<br>  &#39;syntax-highlighting&#39; \<br>  &#39;history-substring-search&#39; \<br>  &#39;prompt&#39;</pre><p>And don’t forget to apply your changes by <strong>starting a new shell instance</strong>.</p><h3>Themes</h3><p>To list all available themes run:</p><pre>prompt -l</pre><p>Then open up your config file (~/.zpreztorc) and change to the theme you want:</p><pre>zstyle &#39;:prezto:module:prompt&#39; theme &#39;minimal&#39;</pre><h3>env.sh</h3><p>To include env.sh, open ~/.zshrc and add the following:</p><pre>source ~/&lt;path to file&gt;/env.sh</pre><p>This file comes with some pre-defined settings, <strong>they are all optional</strong>. Please review them before you use them as your configuration. These are just examples to show you what you can customise in your shell.</p><pre>#!/bin/zsh</pre><pre># Add commonly used folders to $PATH<br>export PATH=&quot;/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin&quot;</pre><pre># Specify default editor. Possible values: vim, nano, ed etc.<br>export EDITOR=vim</pre><pre># File search functions<br>function f() { find . -iname &quot;*$1*&quot; ${@:2} }<br>function r() { grep &quot;$1&quot; ${@:2} -R . }</pre><pre># Create a folder and move into it in one command<br>function mkcd() { mkdir -p &quot;$@&quot; &amp;&amp; cd &quot;$_&quot;; }</pre><pre># Example aliases<br>alias cppcompile=&#39;c++ -std=c++11 -stdlib=libc++&#39;<br>alias g=&#39;git&#39;</pre><h3>tree</h3><p>tree is a recursive directory listing command that produces a depth indented listing of files.</p><h3>Installation</h3><p>To install the latest version, use homebrew:</p><pre>brew install tree</pre><h3>Usage</h3><p>Running tree will produce output like this:</p><pre>$ tree</pre><pre>.<br>├── Apps<br>│   ├── Octave.md<br>│   ├── README.md<br>│   ├── Settings.md<br>│   ├── araxis-merge.jpg<br>│   ├── beyond-compare.png<br>│   ├── delta-walker.jpg<br>│   ├── filemerge.png<br>│   └── kaleidoscope.png<br>├── CONTRIBUTING.md<br>├── Cpp<br>│   └── README.md<br>├── Docker<br>│   └── README.md<br>├── Git<br>│   ├── README.md<br>│   └── gitignore.md<br>└── Go<br>    └── README.md</pre><pre>5 directories, 14 files</pre><p>To limit the recursion you can pass an -L flag and specify the maximum depth tree will use when searching.</p><pre>tree -L 1</pre><p>will output:</p><pre>.<br>├── Apps<br>├── CONTRIBUTING.md<br>├── Cpp<br>├── Docker<br>├── Git<br>└── Go</pre><pre>5 directories, 1 files</pre><h3><a href="https://sourabhbajaj.com/mac-setup/">fzf</a></h3><h3>fzf</h3><p><a href="https://github.com/junegunn/fzf">fzf</a> is a general-purpose command-line fuzzy finder. On it&#39;s own it&#39;s not very useful but when combined with other tools it becomes super powerful.</p><h3>Installation</h3><p>Use <a href="https://sourabhbajaj.com/mac-setup/Homebrew/README.html">Homebrew</a> to install fzf:</p><pre>brew install fzf</pre><p>If you want to use shell extensions (better shell integration):</p><pre>/usr/local/opt/fzf/install</pre><p>which gives you:</p><ul><li>Key bindings (CTRL-T, CTRL-R, and ALT-C) (available for <em>bash</em>, <em>zsh</em> and <em>fish</em>)</li><li>Fuzzy auto-completion (available for <em>bash</em> and <em>zsh</em>)</li></ul><h3>Example Usages</h3><p>Add any of these functions to your shell configuration file and apply the changes to try them out. Or just paste the function in your terminal if you just want to try it out without saving it.</p><pre># fd - cd to selected directory<br>fd() {<br>  local dir<br>  dir=$(find ${1:-.} -path &#39;*/\.*&#39; -prune \<br>                  -o -type d -print 2&gt; /dev/null | fzf +m) &amp;&amp;<br>  cd &quot;$dir&quot;<br>}</pre><pre># fh - search in your command history and execute selected command<br>fh() {<br>  eval $( ([ -n &quot;$ZSH_NAME&quot; ] &amp;&amp; fc -l 1 || history) | fzf +s --tac | sed &#39;s/ *[0-9]* *//&#39;)<br>}</pre><p><strong>For more fuzzy search examples see the </strong><a href="https://github.com/junegunn/fzf#fuzzy-completion-for-bash-and-zsh"><strong>official repo</strong></a><strong>.</strong></p><h3>Chrome history from your terminal</h3><p>Open up your shell config and add following function:</p><pre># ch - browse chrome history<br>ch() {<br>  local cols sep<br>  cols=$(( COLUMNS / 3 ))<br>  sep=&#39;{::}&#39;</pre><pre>  cp -f ~/Library/Application\ Support/Google/Chrome/Profile\ 1/History /tmp/h</pre><pre>  sqlite3 -separator $sep /tmp/h \<br>    &quot;select substr(title, 1, $cols), url<br>     from urls order by last_visit_time desc&quot; |<br>  awk -F $sep &#39;{printf &quot;%-&#39;$cols&#39;s  \x1b[36m%s\x1b[m\n&quot;, $1, $2}&#39; |<br>  fzf --ansi --multi | sed &#39;s#.*\(https*://\)#\1#&#39; | xargs open<br>}</pre><p><strong>Note</strong>: Ensure that path to History file is correct; read more information on <a href="https://stackoverflow.com/a/16742333/1564365">StackOverflow</a>.</p><h3>ack</h3><p>ack is a search tool designed for code. It&#39;s built to be a replacement for grep with higher speed and more options.</p><h3>Installation</h3><p>To install the latest version, use homebrew.</p><pre>brew install ack</pre><h3>Why use ack over grep</h3><ul><li>Faster</li><li>Skips unimportant files by default</li><li>It searches recursively by default</li><li>Customizable</li></ul><h3>Usage</h3><pre>ack [OPTION]... PATTERN [FILES OR DIRECTORIES]</pre><p>Let’s say you want to find all JavaScript files that are using the module pancakes in your project, with ack it&#39;s as easy as</p><pre>ack --js pancakes</pre><p>Or you may want to find all files that <em>does not</em> contain the word <em>brew</em></p><pre>ack -L brew</pre><h3>Customization</h3><p>You can customize ack to behave the way you want it to, this configuration i s stored in /.ackrc.</p><p>For example, you can add a custom type to use as a flag when searching. The following configuration will allow you to only search in .md, .mkd and .markdown files using the --markdown flag.</p><pre>--type-set=markdown=.md,.mkd,.markdown</pre><p>You can also tell ack to always sort and use colors in the result.</p><pre>--sort-files<br>--color</pre><p>To see what configuration ack uses you can use the dump flag.</p><pre>ack --dump</pre><h3>Alternatives to ack</h3><p>There’s <a href="https://github.com/ggreer/the_silver_searcher">The Silver Surfer</a> which describes itself as a</p><blockquote><em>A code searching tool similar to </em><em>ack, with a focus on speed.</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46cd4625d55a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/featurepreneur/guide-to-iterm2-46cd4625d55a">Guide to Iterm2</a> was originally published in <a href="https://medium.com/featurepreneur">featurepreneur</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting up Docker on a Mac]]></title>
            <link>https://medium.com/featurepreneur/setting-up-docker-on-a-mac-2d3ab93801e4?source=rss-927bd82d0541------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d3ab93801e4</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[macos]]></category>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[mac-development]]></category>
            <dc:creator><![CDATA[Ajesh Martin]]></dc:creator>
            <pubDate>Tue, 03 Aug 2021 16:26:40 GMT</pubDate>
            <atom:updated>2021-08-03T16:26:40.789Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*zwx6M_QR_AneMZTRwdvojg.png" /></figure><p><a href="https://docs.docker.com/">Docker</a> is a platform for developers and sysadmins to develop, ship, and run applications. Docker lets you quickly assemble applications from components and eliminates the friction that can come when shipping code. Docker lets you get your code tested and deployed into production as fast as possible.</p><p>With Docker, developers can build any app in any language using any toolchain. “Dockerized” apps are completely portable and can run anywhere — colleagues’ macOS and Windows laptops, QA servers running Ubuntu in the cloud, and production data center VMs running Red Hat.</p><h3>Docker for Mac</h3><p>Docker for Mac is the current release of Docker for macOS.</p><h3>Installation</h3><p>Docker for Mac can be downloaded <a href="https://docs.docker.com/docker-for-mac/install/">here</a>.</p><h3>Prerequisite</h3><p>You’ll need homebrew-cask to install Docker Toolbox.</p><h3>Installation</h3><p>There are two ways to install Docker</p><p>Option 1: These are the steps to install docker using brew</p><ul><li>Install the docker and docker machine from brew</li></ul><pre>brew install docker docker-machine</pre><ul><li>Install VirtualBox to let Docker create the images.</li></ul><pre>brew install --cask virtualbox</pre><blockquote><em>If you encounter an issue with the installer with an error message like</em></blockquote><pre>The install failed (The installer encountered an error that caused the installation to fail.<br>Contact the software manufacturer for assistance.)</pre><blockquote><em>Use the following When you do fail, turn on System Preference and see if ‘System software from developer “Oracle America, inc” was blocked from loading.’ If you see that message, click Allow button and try to install again.</em></blockquote><p>This should complete the installation</p><p>Now to create a Machine, follow the following steps:</p><pre>docker-machine create --driver virtualbox default</pre><p>Run the following to tell Docker which machine to execute Docker on</p><pre>docker-machine env default</pre><p>Finally, to verify all the installations:</p><pre>docker run hello-world</pre><p>You can find more about Docker in the <a href="https://docs.docker.com/">documentation</a>.</p><p>Option 2: Install using the Docker App</p><ul><li>Navigate to the following link</li></ul><pre><a href="https://hub.docker.com/editions/community/docker-ce-desktop-mac/">https://hub.docker.com/editions/community/docker-ce-desktop-mac/</a></pre><p>This installation should provide you all the necessary GUI tools</p><p>Here follows a list of useful Docker commands with useful flags for each command.</p><h3>Table of Contents</h3><ol><li>docker build</li><li>docker exec</li><li>docker images</li><li>docker inspect</li><li>docker logs</li><li>docker ps</li><li>docker rmi</li><li>docker run</li></ol><h3><a href="https://docs.docker.com/engine/reference/commandline/build/">docker build</a></h3><p>Build an image from a Dockerfile.</p><pre>docker build [DOCKERFILE PATH]</pre><h3>Example</h3><p>Build an image tagged my-org/my-image where the Dockerfile can be found at /tmp/Dockerfile.</p><pre>docker build -t my-org:my-image -f /tmp/Dockerfile</pre><h3>Useful flags</h3><ul><li>--file -f Path where to find the Dockerfile</li><li>--force-rm Always remove intermediate containers</li><li>--no-cache Do not use cache when building the image</li><li>--rm Remove intermediate containers after a successful build (this is true) by default</li><li>--tag -t Name and optionally a tag in the ‘name:tag’ format</li></ul><h3><a href="https://docs.docker.com/engine/reference/commandline/exec/">docker exec</a></h3><p>Execute a command inside a <strong>running</strong> container.</p><pre>docker exec [CONTAINER ID]</pre><h3>Example</h3><pre>docker exec [CONTAINER ID] touch /tmp/exec_works</pre><h3>Useful flags</h3><ul><li>--detach -d Detached mode: run command in the background</li><li>-it This will not make the container you started shut down immediately, as it will create a pseudo-TTY session (-t) and keep STDIN open (-i)</li></ul><h3><a href="https://docs.docker.com/engine/reference/commandline/images/">docker images</a></h3><p>List all downloaded/created images.</p><pre>docker images</pre><h3>Useful flags</h3><ul><li>-q Only show numeric IDs</li></ul><h3><a href="https://docs.docker.com/engine/reference/commandline/inspect">docker inspect</a></h3><p>Shows all the info of a container.</p><pre>docker inspect [CONTAINER ID]</pre><h3><a href="https://docs.docker.com/engine/reference/commandline/logs/">docker logs</a></h3><p>Gets logs from container.</p><pre>docker logs [CONTAINER ID]</pre><h3>Useful flags</h3><ul><li>--details Log extra details</li><li>--follow -f Follow log output. Do not stop when end of file is reached, but rather wait for additional data to be appended to the input.</li><li>--timestamps -t Show timestamps</li></ul><h3><a href="https://docs.docker.com/engine/reference/commandline/ps/">docker ps</a></h3><p>Shows information about all running containers.</p><pre>docker ps</pre><h3>Useful flags</h3><ul><li>--all -a Show all containers (default shows just running)</li><li>--filter -f Filter output based on conditions provided, docker ps -f=&quot;name=&quot;example&quot;</li><li>--quiet -q Only display numeric IDs</li></ul><h3><a href="https://docs.docker.com/engine/reference/commandline/rmi/">docker rmi</a></h3><p>Remove one or more images.</p><pre>docker rmi [IMAGE ID]</pre><h3>Useful flags</h3><ul><li>--force -f Force removal of the image</li></ul><h3><a href="https://docs.docker.com/engine/reference/commandline/run/">docker run</a></h3><p>Creates and starts a container in one operation. Could be used to execute a single command as well as start a long-running container.</p><p>Example:</p><pre>docker run -it ubuntu:latest /bin/bash</pre><p>This will start a ubuntu container with the entrypoint /bin/bash. Note that if you do not have the ubuntu image downloaded it will download it before running it.</p><h3>Useful flags</h3><ul><li>-it This will not make the container you started shut down immediately, as it will create a pseudo-TTY session (-t) and keep STDIN open (-i)</li><li>--rm Automatically remove the container when it exit. Otherwise it will be stored and visible running docker ps -a.</li><li>--detach -d Run container in background and print container ID</li><li>--volume -v Bind mount a volume. Useful for accessing folders on your local disk inside your docker container, like configuration files or storage that should be persisted (database, logs etc.).</li></ul><h3>Learn More Commands</h3><p>A list of more useful Docker commands can be found in the <a href="https://github.com/wsargent/docker-cheat-sheet">docker-cheat-sheet</a>.</p><h3>Tips and Tricks:</h3><h3>Docker Tips and Tricks</h3><p>A collection of useful tips and tricks for Docker.</p><h3>Delete all containers</h3><p><strong>NOTE:</strong> This will remove ALL your containers.</p><pre>docker container prune</pre><p>OR, if you’re using an older docker client:</p><pre>docker rm $(docker ps -a -q)</pre><h3>Delete all untagged containers</h3><pre>docker image prune</pre><p>OR, if you’re using an older docker client:</p><pre>docker rmi $(docker images | grep &#39;^&lt;none&gt;&#39; | awk &#39;{print $3}&#39;)</pre><h3>See all space Docker take-up</h3><pre>docker system df</pre><h3>Get IP address of the running container</h3><pre>docker inspect [CONTAINER ID] | grep -wm1 IPAddress | cut -d &#39;&quot;&#39; -f 4</pre><h3>Kill all running containers</h3><pre>docker kill $(docker ps -q)</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d3ab93801e4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/featurepreneur/setting-up-docker-on-a-mac-2d3ab93801e4">Setting up Docker on a Mac</a> was originally published in <a href="https://medium.com/featurepreneur">featurepreneur</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>