<?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 Mr. Principle on Medium]]></title>
        <description><![CDATA[Stories by Mr. Principle on Medium]]></description>
        <link>https://medium.com/@siddhantacademy101?source=rss-e9d2fe71fa0c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*mDSYEKVGDoxAqYmal6aFuQ.png</url>
            <title>Stories by Mr. Principle on Medium</title>
            <link>https://medium.com/@siddhantacademy101?source=rss-e9d2fe71fa0c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 04:21:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@siddhantacademy101/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[I Thought They Loved Me. They Only Loved What I Could Do for Them.]]></title>
            <link>https://siddhantacademy101.medium.com/the-hardest-betrayal-isnt-when-someone-leaves-you-fa27b2dde24f?source=rss-e9d2fe71fa0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa27b2dde24f</guid>
            <category><![CDATA[emotional-intelligence]]></category>
            <category><![CDATA[psychology]]></category>
            <category><![CDATA[book-review]]></category>
            <category><![CDATA[personal-growth]]></category>
            <category><![CDATA[relationships]]></category>
            <dc:creator><![CDATA[Mr. Principle]]></dc:creator>
            <pubDate>Tue, 21 Jul 2026 11:39:59 GMT</pubDate>
            <atom:updated>2026-08-02T07:17:38.960Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong><em>I Thought They Loved Me. They Only Loved What I Could Do for Them.</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*63KA8B7c2vpxfXhGWfzu4Q.png" /></figure><blockquote><strong><em>Disclaimer:</em></strong><em> This article is a personal reflection inspired by </em>The Version of Me That Died<em>. It explores the book’s central themes through my own interpretation and perspective. While it discusses key ideas and emotional moments, it also contains </em><strong><em>major spoilers</em></strong><em> that may affect your reading experience. If you plan to read the book, I recommend doing so before continuing.</em></blockquote><p><em>“The hardest betrayal isn’t when someone leaves you. It’s when you realize they stayed only because you were useful.”</em></p><p>There comes a moment in almost everyone’s life when they ask a question that has no easy answer.</p><p><strong>Why do good-hearted people suffer so much?</strong></p><p>Why is it that the person who lies sleeps peacefully while the one who loved honestly spends nights replaying every conversation?</p><p>Why does the one who cheats move on so quickly while the loyal one struggles to breathe through the silence?</p><p>For years, I believed the world rewarded kindness.</p><p>I believed that if I loved deeply, life would eventually return that love.</p><p>If I stayed loyal, someone would choose loyalty.</p><p>If I gave without expecting anything back, people would naturally appreciate it.</p><p>I wasn’t naïve.</p><p>I was hopeful.</p><p>There is a difference.</p><p>Hope makes you believe that goodness eventually wins.</p><p>Experience teaches you that goodness alone is never enough.</p><p>And that lesson changes you forever.</p><h3>The Day I Realized Love Can Be One-Sided</h3><p>People imagine heartbreak begins when someone says,</p><p><em>“I don’t love you anymore.”</em></p><p>But that’s rarely how it happens.</p><p>Heartbreak begins much earlier.</p><p>It begins the first time someone ignores your feelings, and you convince yourself they’re just having a bad day.</p><p>It begins when your messages become paragraphs while theirs become one-word replies.</p><p>It begins when you always make time for them, but they suddenly become “busy” whenever you need them.</p><p>It begins when your effort slowly becomes expected instead of appreciated.</p><p>At first, you don’t notice.</p><p>Because love has a strange habit.</p><p>It makes excuses where logic would draw boundaries.</p><p>You don’t call it emotional neglect.</p><p>You call it understanding.</p><p>You don’t call it manipulation.</p><p>You call it patience.</p><p>You don’t call it disrespect.</p><p>You call it a difficult phase.</p><p>Love is beautiful.</p><p>But unchecked love can become the greatest liar we ever believe.</p><h3>Nobody Uses Someone Overnight</h3><p>One thing I have learned is this:</p><p>People rarely wake up one morning and decide to use someone.</p><p>It happens gradually.</p><p>So gradually that the person being used often doesn’t notice.</p><p>First, they ask for a small favor.</p><p>Then another.</p><p>Then emotional support.</p><p>Then financial help.</p><p>Then your time.</p><p>Then your energy.</p><p>Then your peace.</p><p>Eventually, your entire existence revolves around solving problems that were never yours to begin with.</p><p>You become the therapist.</p><p>The financial backup.</p><p>The emotional emergency contact.</p><p>The motivational speaker.</p><p>The career advisor.</p><p>The person who always understands.</p><p>The one who always forgives.</p><p>The one who always waits.</p><p>Until one day…</p><p>You realize you’ve become everything except someone’s priority.</p><h3>The Most Dangerous Addiction Isn’t Love</h3><p>It’s being needed.</p><p>Being needed feels incredible.</p><p>Someone calls only you.</p><p>Someone depends on only you.</p><p>Someone says,</p><p><em>“I don’t know what I’d do without you.”</em></p><p>Your heart translates those words into,</p><p><em>“They love me.”</em></p><p>But those are two completely different things.</p><p>Need creates dependence.</p><p>Love creates respect.</p><p>Someone can need your money.</p><p>Need your advice.</p><p>Need your emotional support.</p><p>Need your kindness.</p><p>Need your forgiveness.</p><p>Need your presence.</p><p>Without ever loving you.</p><p>And sometimes…</p><p>We mistake usefulness for intimacy.</p><p>That mistake costs years.</p><h3>Good Hearts Don’t Lose Because They’re Weak</h3><p>They lose because they assume everyone thinks like they do.</p><p>A kind person cannot imagine pretending to love someone.</p><p>So they never expect someone else to do it.</p><p>An honest person cannot imagine lying every day.</p><p>So they trust too easily.</p><p>A loyal person cannot imagine choosing someone else while promising forever.</p><p>So betrayal feels impossible.</p><p>The greatest strength of good people becomes their greatest vulnerability.</p><p>Not kindness.</p><p>Projection.</p><p>They project their own values onto people who never shared them.</p><p>And when reality finally arrives…</p><p>It doesn’t just break the relationship.</p><p>It breaks their understanding of people.</p><h3>Why We Ignore Every Red Flag</h3><p>Looking back, the signs were almost always there.</p><p>The inconsistency.</p><p>The disappearing acts.</p><p>The empty promises.</p><p>The lack of accountability.</p><p>The emotional distance.</p><p>The convenient apologies.</p><p>The selective effort.</p><p>The truth is…</p><p>Red flags are rarely invisible.</p><p>We simply paint over them with hope.</p><p>Because accepting the truth would force us to leave.</p><p>And leaving someone we love feels harder than losing ourselves.</p><p>So we choose self-abandonment.</p><p>Again.</p><p>And again.</p><p>And again.</p><p>Until we no longer recognize who we’ve become.</p><h3>The Quiet Death Nobody Talks About</h3><p>People think heartbreak is about losing another person.</p><p>It isn’t.</p><p>Heartbreak is grieving the version of yourself that existed before the betrayal.</p><p>The version that trusted effortlessly.</p><p>The version that believed words.</p><p>The version that loved without checking for hidden motives.</p><p>The version that thought consistency was normal.</p><p>That person dies quietly.</p><p>Nobody attends their funeral.</p><p>There are no flowers.</p><p>No condolences.</p><p>Only an empty feeling every time you realize you’re becoming more cautious than hopeful.</p><p>More guarded than open.</p><p>More tired than excited.</p><p>That’s the real loss.</p><p>Not the relationship.</p><p>The innocence.</p><h3>The World Doesn’t Reward Sacrifice</h3><p>This was the hardest lesson for me.</p><p>We grow up believing sacrifice proves love.</p><p>Movies celebrate it.</p><p>Poetry glorifies it.</p><p>Society praises people who give everything away.</p><p>But reality is far less romantic.</p><p>Many people don’t value what comes easily.</p><p>When you constantly sacrifice your own needs, you accidentally teach others that your needs don’t matter.</p><p>Every time you cancel your plans to make them happy…</p><p>You lower your own priority.</p><p>Every time you tolerate disrespect because you’re afraid they’ll leave…</p><p>You tell them your boundaries are negotiable.</p><p>Every time you accept less than you deserve…</p><p>You redefine what “enough” means.</p><p>People don’t always treat you the way you deserve.</p><p>They often treat you the way you’ve allowed them to.</p><p>That sentence hurts.</p><p>But it also gives you back your power.</p><h3>Healing Begins With One Brutal Question</h3><p>For months…</p><p>Maybe years…</p><p>You ask,</p><p><em>“Why wasn’t I enough?”</em></p><p>It’s the wrong question.</p><p>The better question is,</p><p><strong>“Why did I believe I had to earn love by suffering?”</strong></p><p>Why did I think exhausting myself proved commitment?</p><p>Why did I confuse being available with being valuable?</p><p>Why did I believe fixing someone would make them choose me?</p><p>Healthy love doesn’t require constant convincing.</p><p>It doesn’t require endless sacrifice.</p><p>It doesn’t leave you wondering where you stand.</p><p>If love constantly feels like an audition…</p><p>You’re performing.</p><p>Not belonging.</p><h3>Kindness Without Boundaries Is Self-Abandonment</h3><p>This doesn’t mean becoming cold.</p><p>It doesn’t mean distrusting everyone.</p><p>It doesn’t mean loving less.</p><p>It means loving wisely.</p><p>It means realizing that saying “no” protects your peace.</p><p>Walking away protects your dignity.</p><p>Being selective protects your heart.</p><p>Boundaries are not walls.</p><p>They’re doors.</p><p>The right people knock.</p><p>The wrong people complain they can’t get in anymore.</p><h3>You Were Never “Too Much”</h3><p>One of the cruelest lies heartbreak whispers is,</p><p><em>“Maybe I loved too much.”</em></p><p>No.</p><p>You loved genuinely.</p><p>The problem wasn’t your love.</p><p>The problem was where you invested it.</p><p>A gardener doesn’t blame water because one plant was dead.</p><p>Water wasn’t the problem.</p><p>The soil was.</p><p>Your kindness wasn’t wasted.</p><p>It simply fell into the wrong hands.</p><p>And someday…</p><p>Someone will appreciate the things another person ignored.</p><p>Not because you’ve changed.</p><p>But because they finally know how to hold what you’ve always offered.</p><h3>The Person Who Used You Didn’t Define You</h3><p>People who use others often leave with confidence.</p><p>Not because they were right.</p><p>Because they never carried the emotional weight you did.</p><p>Meanwhile, the one who truly loved questions everything.</p><p>Their appearance.</p><p>Their worth.</p><p>Their intelligence.</p><p>Their future.</p><p>They wonder whether being kind was a mistake.</p><p>It wasn’t.</p><p>Never let someone else’s inability to love honestly convince you that honesty has no value.</p><p>Do not let betrayal rewrite your identity.</p><p>Someone else’s character is not your reflection.</p><p>It is theirs.</p><h3>Here’s What I Know Now</h3><p>If I could speak to the version of myself who kept giving second chances…</p><p>I wouldn’t tell him to love less.</p><p>I’d tell him to leave sooner.</p><p>I’d tell him that peace is more valuable than potential.</p><p>That consistency matters more than promises.</p><p>That effort should be mutual.</p><p>That love should feel safe.</p><p>And that being chosen should never depend on how much you sacrifice.</p><p>Because the right people don’t love you for what you can provide.</p><p>They love you for who you are when you’re providing nothing at all.</p><h3>Final Thoughts</h3><p>If you’ve ever been cheated on…</p><p>If you’ve ever been emotionally used…</p><p>If you’ve ever questioned your worth because someone failed to recognize it…</p><p>Please remember this:</p><p>You were not difficult to love.</p><p>You were simply trying to build a home inside someone who only wanted a place to stay.</p><p>One day, you’ll stop asking why they left.</p><p>You’ll start thanking life for showing you the difference between being needed and being loved.</p><p>And on that day, you’ll realize something beautiful:</p><p>Your good heart never needed to change.</p><p>It only needed better hands to hold it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa27b2dde24f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Comprehensive Guide to Machine Learning Algorithms:]]></title>
            <link>https://siddhantacademy101.medium.com/a-comprehensive-guide-to-machine-learning-algorithms-4eb3c26ed9e0?source=rss-e9d2fe71fa0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/4eb3c26ed9e0</guid>
            <dc:creator><![CDATA[Mr. Principle]]></dc:creator>
            <pubDate>Fri, 07 Jun 2024 07:41:47 GMT</pubDate>
            <atom:updated>2024-06-07T07:41:47.664Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q64sAYCKJI-KEjQsoVfy3w.png" /></figure><p>Machine learning algorithms are the backbone of data science and artificial intelligence. Each algorithm has its unique strengths and applications, making it essential to understand how they work and how to implement them. This blog post covers six fundamental machine learning algorithms: K-Nearest Neighbor (KNN), Support Vector Machine (SVM), Linear Regression, Decision Tree, Naive Bayes, and K-Means Clustering. We will explore the theory behind each algorithm and provide hands-on implementation examples using Python’s Scikit-Learn library.</p><h3>Table of Contents</h3><ol><li>K-Nearest Neighbor (KNN)</li><li>Support Vector Machine (SVM)</li><li>Linear Regression</li><li>Decision Tree</li><li>Naive Bayes</li><li>K-Means Clustering</li></ol><h3>1. K-Nearest Neighbor (KNN)</h3><p><strong>Theory: </strong>K-Nearest Neighbor (KNN) is a simple, non-parametric, and lazy learning algorithm used for classification and regression. The algorithm classifies a data point based on how its neighbors are classified. KNN stores all available cases and classifies new cases based on a similarity measure (e.g., distance functions).</p><p>Key Concepts:</p><ul><li>Distance metrics: Euclidean, Manhattan, Minkowski</li><li>Number of neighbors (k)</li><li>Voting mechanism in classification</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1007/0*rfdQXdLXeotqYEpc" /></figure><p>Implementation:</p><pre>from sklearn.datasets import load_iris<br>from sklearn.model_selection import train_test_split<br>from sklearn.neighbors import KNeighborsClassifier<br>from sklearn.metrics import accuracy_score<br><br># Load dataset<br>iris = load_iris()<br>X = iris.data<br>y = iris.target<br><br># Split data into training and testing sets<br>X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.3, random_state=42)<br><br># Initialize and train the KNN classifier<br>knn = KNeighborsClassifier(n_neighbors=3)<br>knn.fit(X_train, y_train)<br><br># Make predictions<br>y_pred = knn.predict(X_test)<br><br># Evaluate the model<br>accuracy = accuracy_score(y_test, y_pred)<br>print(f&#39;KNN Accuracy: {accuracy}&#39;)</pre><h3>2. Support Vector Machine (SVM)</h3><p><strong>Theory:</strong> Support Vector Machine (SVM) is a powerful and versatile supervised learning algorithm used for both classification and regression. It works by finding the hyperplane that best separates the data into classes. SVM is effective in high-dimensional spaces and is used for both linear and non-linear data.</p><p>Key Concepts:</p><ul><li>Hyperplane and support vectors</li><li>Kernel functions: linear, polynomial, radial basis function (RBF)</li><li>Margin maximization</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*btNUqNDCP5ifwAGB" /></figure><p>Implementation:</p><pre>from sklearn.datasets import load_iris<br>from sklearn.model_selection import train_test_split<br>from sklearn.svm import SVC<br>from sklearn.metrics import accuracy_score<br><br># Load dataset<br>iris = load_iris()<br>X = iris.data<br>y = iris.target<br><br># Split data into training and testing sets<br>X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.3, random_state=42)<br><br># Initialize and train the SVM classifier<br>svm = SVC(kernel=&#39;linear&#39;)<br>svm.fit(X_train, y_train)<br><br># Make predictions<br>y_pred = svm.predict(X_test)<br><br># Evaluate the model<br>accuracy = accuracy_score(y_test, y_pred)<br>print(f&#39;SVM Accuracy: {accuracy}&#39;)</pre><h3>3. Linear Regression</h3><p><strong>Theory:</strong> Linear Regression is a simple algorithm used for predicting a continuous target variable based on one or more input features. It assumes a linear relationship between the input variables and the target variable.</p><p>Key Concepts:</p><ul><li>Linear equation: y = mx + c</li><li>Coefficients (slope and intercept)</li><li>Mean Squared Error (MSE) for evaluation</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*p-SF8tHD_WyqZiv4" /></figure><p>Implementation:</p><pre>import numpy as np<br>import matplotlib.pyplot as plt<br>from sklearn.datasets import make_regression<br>from sklearn.model_selection import train_test_split<br>from sklearn.linear_model import LinearRegression<br>from sklearn.metrics import mean_squared_error<br><br># Generate synthetic data<br>X, y = make_regression(n_samples=100, n_features=1, noise=10)<br>X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.3, random_state=42)<br><br># Initialize and train the Linear Regression model<br>lr = LinearRegression()<br>lr.fit(X_train, y_train)<br><br># Make predictions<br>y_pred = lr.predict(X_test)<br><br># Evaluate the model<br>mse = mean_squared_error(y_test, y_pred)<br>print(f&#39;Linear Regression MSE: {mse}&#39;)<br><br># Plot the results<br>plt.scatter(X_test, y_test, color=&#39;blue&#39;)<br>plt.plot(X_test, y_pred, color=&#39;red&#39;)<br>plt.title(&#39;Linear Regression&#39;)<br>plt.xlabel(&#39;Feature&#39;)<br>plt.ylabel(&#39;Target&#39;)<br>plt.show()</pre><h3>4. Decision Tree</h3><p><strong>Theory: </strong>Decision Tree is a supervised learning algorithm used for both classification and regression tasks. It works by splitting the data into subsets based on the value of input features, creating a tree-like model of decisions.</p><p>Key Concepts:</p><ul><li>Nodes (decision points) and leaves (outcomes)</li><li>Splitting criteria: Gini impurity, entropy</li><li>Pruning to prevent overfitting</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pRkF6BvNj_grpADu" /></figure><p>Implementation:</p><pre>from sklearn.datasets import load_iris<br>from sklearn.model_selection import train_test_split<br>from sklearn.tree import DecisionTreeClassifier<br>from sklearn.metrics import accuracy_score<br><br># Load dataset<br>iris = load_iris()<br>X = iris.data<br>y = iris.target<br><br># Split data into training and testing sets<br>X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.3, random_state=42)<br><br># Initialize and train the Decision Tree classifier<br>dt = DecisionTreeClassifier()<br>dt.fit(X_train, y_train)<br><br># Make predictions<br>y_pred = dt.predict(X_test)<br><br># Evaluate the model<br>accuracy = accuracy_score(y_test, y_pred)<br>print(f&#39;Decision Tree Accuracy: {accuracy}&#39;)</pre><h3>5. Naive Bayes</h3><p><strong>Theory:</strong> Naive Bayes is a probabilistic classifier based on Bayes’ theorem, assuming independence between features. It is especially useful for text classification problems.</p><p>Key Concepts:</p><ul><li>Bayes’ theorem</li><li>Assumption of feature independence</li><li>Types: Gaussian, Multinomial, Bernoulli</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*C-juq1t5QdsOPNxS" /></figure><p>Implementation:</p><pre>from sklearn.datasets import load_iris<br>from sklearn.model_selection import train_test_split<br>from sklearn.naive_bayes import GaussianNB<br>from sklearn.metrics import accuracy_score<br><br># Load dataset<br>iris = load_iris()<br>X = iris.data<br>y = iris.target<br><br># Split data into training and testing sets<br>X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.3, random_state=42)<br><br># Initialize and train the Naive Bayes classifier<br>nb = GaussianNB()<br>nb.fit(X_train, y_train)<br><br># Make predictions<br>y_pred = nb.predict(X_test)<br><br># Evaluate the model<br>accuracy = accuracy_score(y_test, y_pred)<br>print(f&#39;Naive Bayes Accuracy: {accuracy}&#39;)</pre><h3>6. K-Means Clustering</h3><p><strong>Theory: </strong>K-Means is an unsupervised learning algorithm used for clustering data into K groups based on their similarities. It works by minimizing the variance within each cluster.</p><p>Key Concepts:</p><ul><li>Number of clusters (K)</li><li>Centroids</li><li>Iterative refinement (assign and update steps)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KFYVO-4c-qa4snal" /></figure><p>Implementation:</p><pre>import numpy as np<br>import matplotlib.pyplot as plt<br>from sklearn.datasets import make_blobs<br>from sklearn.cluster import KMeans<br><br># Generate synthetic data<br>X, _ = make_blobs(n_samples=300, centers=4, cluster_std=0.60, random_state=42)<br><br># Initialize and train the K-Means model<br>kmeans = KMeans(n_clusters=4)<br>kmeans.fit(X)<br><br># Predict the cluster for each data point<br>labels = kmeans.predict(X)<br><br># Plot the results<br>plt.scatter(X[:, 0], X[:, 1], c=labels, s=50, cmap=&#39;viridis&#39;)<br>centers = kmeans.cluster_centers_<br>plt.scatter(centers[:, 0], centers[:, 1], c=&#39;red&#39;, s=200, alpha=0.75)<br>plt.title(&#39;K-Means Clustering&#39;)<br>plt.xlabel(&#39;Feature 1&#39;)<br>plt.ylabel(&#39;Feature 2&#39;)<br>plt.show()</pre><h3>Conclusion</h3><p>Understanding and implementing these fundamental machine learning algorithms — K-Nearest Neighbor, Support Vector Machine, Linear Regression, Decision Tree, Naive Bayes, and K-Means Clustering — provides a solid foundation for any aspiring data scientist or machine learning engineer. Each algorithm has its unique strengths and is suited for different types of problems. Practice these implementations, experiment with different parameters, and explore further to deepen your knowledge in machine learning. Happy learning!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4eb3c26ed9e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Scikit-Learn: A Comprehensive Guide for Hands-On Learning]]></title>
            <link>https://siddhantacademy101.medium.com/introduction-to-scikit-learn-a-comprehensive-guide-for-hands-on-learning-21e05a49354a?source=rss-e9d2fe71fa0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/21e05a49354a</guid>
            <dc:creator><![CDATA[Mr. Principle]]></dc:creator>
            <pubDate>Fri, 07 Jun 2024 06:42:47 GMT</pubDate>
            <atom:updated>2024-06-07T06:43:34.516Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ijRSl82CPSuCbHuLwVVgIw.png" /></figure><p>In the world of data science and machine learning, Scikit-Learn stands out as a powerful and easy-to-use Python library. Whether you are a beginner or an experienced data scientist, Scikit-Learn offers a wide array of tools for data analysis, preprocessing, model training, and evaluation. This blog post will provide a comprehensive guide to help you get started with Scikit-Learn and master its functionalities through hands-on learning.</p><h3>1. Introduction to Scikit-Learn</h3><p>Scikit-Learn Overview: Scikit-Learn (sklearn) is an open-source Python library that provides simple and efficient tools for data analysis and modeling. Built on NumPy, SciPy, and matplotlib, it is a cornerstone for scientific computing in Python.</p><p>Features:</p><ul><li>Tools for data preprocessing, feature selection, model training, and evaluation</li><li>A variety of algorithms for classification, regression, clustering, and more</li><li>Comprehensive documentation and a supportive community</li></ul><h3>2. Installation and Setup</h3><p>Installing Scikit-Learn: To get started with Scikit-Learn, you need to install it using pip:</p><pre>pip install scikit-learn</pre><p>Importing Scikit-Learn: Once installed, you can import Scikit-Learn in your Python script or Jupyter Notebook:</p><pre>import sklearn</pre><h3>3. Basic Concepts</h3><h4>Loading Data</h4><p>Scikit-Learn supports various data formats including CSV files, NumPy arrays, and pandas DataFrames.</p><pre>import pandas as pd<br>data = pd.read_csv(&#39;data.csv&#39;)</pre><h4>Data Preprocessing</h4><p>Preprocessing is crucial for preparing data before feeding it into machine learning models. It includes handling missing values, scaling features, and encoding categorical variables.</p><p>Handling Missing Values:</p><pre>from sklearn.impute import SimpleImputer<br>imputer = SimpleImputer(strategy=&#39;mean&#39;)<br>data_imputed = imputer.fit_transform(data)</pre><p>Feature Scaling:</p><pre>from sklearn.preprocessing import StandardScaler<br>scaler = StandardScaler()<br>data_scaled = scaler.fit_transform(data)</pre><h4>Feature Selection</h4><p>Feature selection helps identify the most relevant features for the model to improve performance and reduce overfitting.</p><p><strong>SelectKBest:</strong></p><pre>from sklearn.feature_selection import SelectKBest, f_classif<br>selector = SelectKBest(score_func=f_classif, k=2)<br>data_selected = selector.fit_transform(data, target)</pre><h3>4. Model Training and Evaluation</h3><h4>Linear Regression</h4><p>Linear regression models the relationship between a dependent variable and one or more independent variables using a linear equation.</p><pre>from sklearn.linear_model import LinearRegression<br>model = LinearRegression()<br>model.fit(X_train, y_train)<br>predictions = model.predict(X_test)</pre><h4>Model Evaluation</h4><p>Evaluating the performance of a machine learning model is crucial to ensure it works as expected.</p><p><strong>Mean Squared Error (MSE):</strong></p><pre>from sklearn.metrics import mean_squared_error<br>mse = mean_squared_error(y_test, predictions)</pre><h3>5. Regression Techniques</h3><h4>Linear Regression</h4><p>Assumes a linear relationship between input features and the target variable.</p><h4>Polynomial Regression</h4><p>Extends linear regression by adding polynomial terms to the features, allowing for modeling of non-linear relationships.</p><pre>from sklearn.preprocessing import PolynomialFeatures<br>poly = PolynomialFeatures(degree=2)<br>X_poly = poly.fit_transform(X)<br>model = LinearRegression()<br>model.fit(X_poly, y)</pre><h4>Support Vector Regression</h4><p>Uses support vector machines to find the best-fit line within a specified margin, useful for high-dimensional data.</p><pre>from sklearn.svm import SVR<br>svr = SVR(kernel=&#39;rbf&#39;)<br>svr.fit(X_train, y_train)<br>predictions = svr.predict(X_test)</pre><h4>Random Forest Regression</h4><p>An ensemble method that combines multiple decision trees to improve predictive accuracy and control overfitting.</p><pre>from sklearn.ensemble import RandomForestRegressor<br>rf = RandomForestRegressor(n_estimators=100)<br>rf.fit(X_train, y_train)<br>predictions = rf.predict(X_test)</pre><h3>6. Classification Techniques</h3><h4>Logistic Regression</h4><p>Models the probability of a binary outcome using a logistic function. Suitable for binary classification problems.</p><pre>from sklearn.linear_model import LogisticRegression<br>model = LogisticRegression()<br>model.fit(X_train, y_train)<br>predictions = model.predict(X_test)</pre><h4>Naive Bayes</h4><p>A probabilistic classifier based on Bayes’ theorem, assuming independence between features.</p><pre>from sklearn.naive_bayes import GaussianNB<br>model = GaussianNB()<br>model.fit(X_train, y_train)<br>predictions = model.predict(X_test)</pre><h4>Support Vector Machines</h4><p>Finds the hyperplane that best separates classes in the feature space. Effective for high-dimensional spaces.</p><pre>from sklearn.svm import SVC<br>model = SVC(kernel=&#39;linear&#39;)<br>model.fit(X_train, y_train)<br>predictions = model.predict(X_test)</pre><h4>Random Forest Classification</h4><p>Applies the random forest ensemble technique to classification tasks, improving accuracy by combining multiple decision trees.</p><pre>from sklearn.ensemble import RandomForestClassifier<br>model = RandomForestClassifier(n_estimators=100)<br>model.fit(X_train, y_train)<br>predictions = model.predict(X_test)</pre><h3>7. Clustering Techniques</h3><h4>K-Means Clustering</h4><p>Partitions data into K clusters by minimizing the variance within each cluster.</p><pre>from sklearn.cluster import KMeans<br>kmeans = KMeans(n_clusters=3)<br>kmeans.fit(data)<br>labels = kmeans.predict(data)</pre><h4>Hierarchical Clustering</h4><p>Builds a hierarchy of clusters by either merging or splitting them based on their similarity.</p><pre>from scipy.cluster.hierarchy import dendrogram, linkage<br>import matplotlib.pyplot as plt<br>linked = linkage(data, &#39;single&#39;)<br>dendrogram(linked)<br>plt.show()</pre><h4>DBSCAN</h4><p>A density-based clustering algorithm that groups data points based on their density, effective for data with noise and varying cluster shapes.</p><pre>from sklearn.cluster import DBSCAN<br>dbscan = DBSCAN(eps=0.5, min_samples=5)<br>labels = dbscan.fit_predict(data)</pre><h3>8. Dimensionality Reduction</h3><h4>Principal Component Analysis (PCA)</h4><p>Reduces the dimensionality of the data while maximizing the variance, useful for visualization and reducing computational complexity.</p><pre>from sklearn.decomposition import PCA<br>pca = PCA(n_components=2)<br>data_reduced = pca.fit_transform(data)</pre><h4>t-SNE</h4><p>A technique for reducing dimensions that focuses on preserving local structures in high-dimensional data, particularly useful for visualization.</p><pre>from sklearn.manifold import TSNE<br>tsne = TSNE(n_components=2)<br>data_reduced = tsne.fit_transform(data)</pre><h3>9. Model Selection and Hyperparameter Tuning</h3><h4>Cross-Validation</h4><p>A technique to evaluate the performance of a model by partitioning the data into multiple training and validation sets.</p><pre>from sklearn.model_selection import cross_val_score<br>scores = cross_val_score(model, X, y, cv=5)</pre><h4>Grid Search</h4><p>An exhaustive search over a specified parameter grid to find the best combination of hyperparameters.</p><pre>from sklearn.model_selection import GridSearchCV<br>param_grid = {&#39;param1&#39;: [1, 2, 3], &#39;param2&#39;: [4, 5, 6]}<br>grid_search = GridSearchCV(model, param_grid, cv=5)<br>grid_search.fit(X_train, y_train)<br>best_params = grid_search.best_params_</pre><h4>Randomized Search</h4><p>Randomly samples from a distribution of hyperparameters, allowing for faster exploration of the hyperparameter space.</p><pre>from sklearn.model_selection import RandomizedSearchCV<br>from scipy.stats import randint<br>param_dist = {&#39;param1&#39;: randint(1, 10), &#39;param2&#39;: randint(1, 20)}<br>random_search = RandomizedSearchCV(model, param_dist, n_iter=100, cv=5)<br>random_search.fit(X_train, y_train)<br>best_params = random_search.best_params_</pre><h3>10. Ensemble Methods</h3><h4>Bagging</h4><p>An ensemble technique that trains multiple models on different subsets of the training data and combines their predictions.</p><pre>from sklearn.ensemble import BaggingClassifier<br>bagging = BaggingClassifier(base_estimator=SVC(), n_estimators=10)<br>bagging.fit(X_train, y_train)<br>predictions = bagging.predict(X_test)</pre><h4>Boosting</h4><p>An ensemble technique that sequentially trains models, with each new model focusing on the errors made by the previous ones.</p><pre>from sklearn.ensemble import AdaBoostClassifier<br>boosting = AdaBoostClassifier(n_estimators=100)<br>boosting.fit(X_train, y_train)<br>predictions = boosting.predict(X_test)</pre><h3>Conclusion</h3><p>Mastering Scikit-Learn involves understanding its extensive functionalities from preprocessing to model evaluation. Practice with examples, explore documentation, and experiment with different techniques to gain a comprehensive understanding of machine learning workflows. With Scikit-Learn, you can unlock the potential of your data and build robust machine learning models efficiently.</p><p>This comprehensive guide should give you a solid foundation to start exploring and utilizing Scikit-Learn for your data science projects. Happy learning and coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=21e05a49354a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hosting of Static Websites on Azure with Nginx]]></title>
            <link>https://siddhantacademy101.medium.com/hosting-of-static-websites-on-azure-with-nginx-c966193cdbce?source=rss-e9d2fe71fa0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/c966193cdbce</guid>
            <dc:creator><![CDATA[Mr. Principle]]></dc:creator>
            <pubDate>Fri, 22 Mar 2024 09:17:35 GMT</pubDate>
            <atom:updated>2024-03-22T09:18:22.350Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sGMKe7QUDg44zK_Y" /></figure><h3>Project Scenario: Small Business E-commerce Site</h3><p>Background: A small business aiming to establish an online presence for their wholesale store decides to launch an e-commerce site. The site is primarily static but requires high reliability, fast load times, and the ability to handle spikes in traffic during promotional events or sales.</p><p>The project focused on deploying a static website using an Azure Virtual Machine (VM) and Nginx web server, with an emphasis on automation and best practices. The deployment process involved several key steps, from setting up the VM in Azure to configuring Nginx to serve the static content. Here’s a summary of the project and its successful deployment:</p><p><strong>Project Overview</strong></p><ul><li>Objective: To deploy a static website on a cloud infrastructure, utilizing Azure VM for hosting and Nginx for serving the website content.</li><li>Tools Used: Azure Cloud Services for the VM, Nginx as the web server, Bash for scripting the setup, and Git for source control management.</li><li>Deployment Method: Automated deployment using a custom Bash script.</li></ul><p><strong>Deployment Process</strong></p><ol><li>VM Setup: A Virtual Machine was created in Azure, selecting an appropriate size and region, and configuring it with Ubuntu 20.04 LTS as the operating system.</li><li>SSH Access: Secured SSH access was established for the VM, allowing remote management and script execution.</li><li>Nginx Installation: Nginx was installed on the VM, setting it up as the web server to handle HTTP requests.</li><li>Website Content Management: A specific directory structure was created under /var/www, and the static website content was cloned from a GitHub repository into this directory.</li><li>Nginx Configuration: The Nginx server block (virtual host) was configured to serve the static website, specifying the server name and document root, and ensuring proper handling of website requests.</li><li>Automated Script Execution: A Bash script automated the process, including system updates, Nginx installation and configuration, and website content deployment.</li><li>Security and Permissions: Proper permissions were set for the website content, and firewall rules were configured to allow HTTP traffic.</li><li>Final Testing: The Nginx configuration was tested for syntax errors, and the web server was restarted to apply all changes. The website was then accessed via the VM’s public IP address to confirm successful deployment.</li></ol><p><strong>Benefits</strong></p><ul><li>Efficiency: The automation script significantly reduced manual setup time and minimized human error.</li><li>Scalability: The use of Azure VMs allows for easy scaling of resources to accommodate varying traffic loads.</li><li>Control: Full control over the hosting environment was achieved, from the operating system to the web server configuration.</li><li>Security: SSH access and configurable firewall rules enhanced the security of the deployment.</li></ul><h3>Step 1: Create a VM in Azure</h3><p>Log in to your Azure Portal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*h3koNwsvIYXnBzcv" /></figure><p>Navigate to Virtual machines and click on + Create.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NfWEzk5Vlh82oNDb" /></figure><p>Choose your subscription and resource group (create a new one if necessary).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4SauYjjPirH3pItK" /></figure><p>Enter a Virtual machine name.</p><p>Choose a Region.</p><p>Select an Image (e.g., Ubuntu 20.04 LTS).</p><p>Choose a Size for your VM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EEpNbvL6da89p5YQ" /></figure><p>Set up Administrator account with a username and SSH public key (or password).</p><p>Under Inbound port rules, allow SSH (22) and HTTP (80).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rjP-u36JPaq-EmMA" /></figure><p>Click Next:Disk and then Next:Networking, check the box Delete public IP and NIC when VM is deleted</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*l_gVx6GMkZtLYPpF" /></figure><p>Click Review + create and then Create after validation passes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ngmOrgSAnfHQDk33" /></figure><p>And download the ssh key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/475/0*aR_IxEcZGfTZQk-R" /></figure><p>Your VM will be successfully created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Eaw75RMavb5KDkmD" /></figure><h3>Step 2: Connect to Your VM</h3><ul><li>Once your VM is deployed, click Home and Virtual Machine and go to its Overview page and note the Public IP address.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZqLJf09qKjXl78eT" /></figure><ul><li>Open the terminal where your ssh file .pem file is located and Connect to your VM via SSH: ssh -i your_username@your_vm_public_IP.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aXbXbHJpneGs9rwN" /></figure><p>Step 3: Create a bash file script.sh nano script.sh and paste following configuration and save the file, ctrl s and ctrl x .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dleh70kEq2vgUewj" /></figure><pre>#!/bin/bash<br># Ensure the script is run with root privileges<br>if [ &quot;$(id -u)&quot; != &quot;0&quot; ]; then<br>   echo &quot;This script must be run as root&quot; 1&gt;&amp;2<br>   exit 1<br>fi<br># Step 1: Update the operating system packages<br>apt update -y<br># Step 2: Install Nginx<br>apt install nginx -y<br># Step 3: Navigate to /var/www and create a folder named your_domain.com<br>cd /var/www<br>mkdir mystic.com<br>cd mystic.com<br># Step 4: Clone the GitHub repository into the directory<br># Replace &#39;https://github.com/siddhantbhattarai/e-commerce-static-site.git&#39; with your actual GitHub repository URL<br>git clone https://github.com/siddhantbhattarai/e-commerce-static-site.git .<br># Ensure git is installed or handle its absence<br>if ! command -v git &amp;&gt; /dev/null<br>then<br>    echo &quot;git could not be found, installing now...&quot;<br>    apt install git -y<br>    git clone https://github.com/siddhantbhattarai/e-commerce-static-site.git .<br>fi<br># Step 5: Configure Nginx to serve your site<br># Navigate to Nginx sites-available directory and create a new configuration<br>cd /etc/nginx/sites-available/<br># Note: It&#39;s better to use the sites-available and sites-enabled pattern with symlinks<br># Replace &#39;mystic.com&#39; with the actual domain name file for clarity, e.g., your_domain.com<br>sudo tee mystic.com &lt;&lt;EOF<br>server {<br>    listen 80;<br>    listen [::]:80;<br>    server_name mystic.com;<br>    root /var/www/mystic.com;<br>    index index.html;<br>    location / {<br>        try_files \$uri \$uri/ =404;<br>    }<br>}<br>EOF<br># Create a symlink to enable the site<br>ln -s /etc/nginx/sites-available/mystic.com /etc/nginx/sites-enabled/<br># Optional: Remove the default Nginx site configuration to avoid conflicts<br>rm /etc/nginx/sites-enabled/default<br># Step 7: Test Nginx configuration for syntax errors<br>nginx -t<br># Step 8: Restart Nginx to apply the changes<br>systemctl restart nginx<br># Display a success message<br>echo &quot;Nginx has been configured to serve your site and restarted successfully!&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Eb3fTsTPlBak4xYC" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*apsjywc_igGchCvC" /></figure><h3>Step 5: Access Your Website</h3><ul><li>Open a web browser and navigate to http://your_vm_public_IP. You should see your static website.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Zc_EVJNlxTPE57UP" /></figure><h3><strong>Step 6: Cleaning the Resources</strong></h3><p>To delete a Virtual Machine in Azure, follow these steps: Go to the Home page, click on “Virtual Machines,” select the VM you wish to delete, then click the “Delete” button. Finally, check the “I confirm” checkbox to acknowledge the deletion and proceed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BiNi99fFMgZOuRup" /></figure><p><strong>Conclusion</strong></p><p>This project exemplifies the power of cloud computing and automation in deploying and managing web applications. By leveraging Azure VMs, Nginx, and Bash scripting, a scalable, secure, and efficient hosting solution was implemented for a static website. The successful deployment underscores the importance of automation in modern cloud infrastructure management, providing a template that can be adapted for similar future projects.</p><p>Subscribe for more!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c966193cdbce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting Up a Scalable Two-Tier Architecture in Azure]]></title>
            <link>https://siddhantacademy101.medium.com/setting-up-a-scalable-two-tier-architecture-in-azure-d1fda3291b69?source=rss-e9d2fe71fa0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d1fda3291b69</guid>
            <dc:creator><![CDATA[Mr. Principle]]></dc:creator>
            <pubDate>Fri, 22 Mar 2024 09:07:19 GMT</pubDate>
            <atom:updated>2024-03-22T09:07:19.871Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*njdtBBmzr-J_kQGY" /></figure><h3><strong>Introduction</strong></h3><p>In today’s cloud-centric world, building a scalable and secure infrastructure is paramount for any application. Microsoft Azure, with its comprehensive suite of services, provides a robust platform for deploying a wide range of architectures. In this blog post, we’ll explore how to set up a scalable two-tier architecture in Azure. This setup includes a virtual network (VNet) with a public and a private subnet, hosting virtual machines (VMs) for a web application and its database, respectively. We’ll also implement a bastion host for secure access. Such an architecture is ideal for applications requiring a separation of concerns between the user-facing front end and the backend database, enhancing both security and scalability.</p><p><strong>Scenario</strong></p><p>Consider a scenario where you’re deploying a web application that requires a front-end accessible to the internet and a back-end database that should be isolated from direct internet access. The front-end needs to communicate with the back-end securely without exposing the database to potential threats. This setup is common for e-commerce websites, online platforms, and internal business applications requiring enhanced security and data integrity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/0*HsP3UeM4cUzv5OjK" /></figure><h3>Step 1: Planning and Creating Virtual Network</h3><p>Before diving into Azure, plan your network. Our architecture will use a VNet with CIDR block 10.0.0.0/16, ensuring ample IP addresses for scalability. Within this VNet, we’ll create two subnets:</p><ul><li>Public Subnet: 10.0.0.0/24, for our front-end VM, accessible from the internet.</li><li>Private Subnet: 10.0.2.0/24, for our back-end VM, isolated from direct internet access.</li></ul><p>1.1 Understand Your Architecture Requirements</p><p>First, understand the requirements and how your application’s components interact. This will determine how you segment your network. For our two-tier architecture:</p><ul><li>Front-End VM (Public Subnet): Requires internet access to serve content to users.</li><li>Back-End VM (Private Subnet): Holds sensitive data or processes and should not be directly accessible from the internet.</li></ul><p>1.2 Planning the CIDR Blocks</p><ul><li>Virtual Network (VNet): Choose a CIDR block that is large enough to accommodate future growth. The 10.0.0.0/16 CIDR block provides up to 65,536 IP addresses, offering ample space for subnetting and scalability.</li><li>Public Subnet: 10.0.0.0/24 offers 256 IP addresses (though a few are reserved by Azure), suitable for front-end services that might scale horizontally.</li><li>Private Subnet: 10.0.2.0/24 also provides 256 IP addresses, catering to back-end services that require isolation from the public internet.</li></ul><p>1.3 Creating the Virtual Network in Azure</p><ul><li>Navigate to the Azure Portal and sign in.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*joRlHDHnEz7lAyPr" /></figure><ul><li>Go to the “Create a resource” section and select “Networking&quot; &gt; &quot;Virtual network&quot; Or simply click on &quot;Virtual Networks&quot;</li><li>Setup the VNet:</li><li>Name: Choose a meaningful name, e.g., VNet-AZ900.</li><li>Address space: Enter 10.0.0.0/16.</li><li>Subscription: Select the appropriate subscription.</li><li>Resource group: Create a new one (e.g., AZ-900) or select an existing group.</li><li>Location: Choose the Azure region closest to your users or requirements.</li><li>Click “Create” to provision your VNet.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jJprsVf7Seht9MsB" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ziy7Ss73j7eAB4T0" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Qq2KMwTmM2VOWe54" /></figure><p>Creating an Azure Bastion host is a vital step in securing your virtual network (VNet) infrastructure, as it allows you to securely access your virtual machines (VMs) without exposing them to the public internet. Azure Bastion provides RDP and SSH access directly from the Azure portal over SSL.</p><ul><li>Check the box Enable Azure Bastion, it will automatically choose ip-address or you can create one.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GW93u1_OxfpmDoKv" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*A69fFc2a2ajw_9Ke" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GdPL3X-Idx7zWDoh" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Eh50C3ByhwdFRuRo" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FE4e3NxOuV74eZzx" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DJWwWLcbkHruZwme" /></figure><p>1.4 Adding Subnets to the Virtual Network</p><p>After creating your VNet, add your planned subnets to it:</p><ul><li>Navigate to your VNet: Go to the Azure Portal &gt; Networking &gt; Virtual networks, then select your VNet (VNet-AZ900).</li><li>Add the Public Subnet:</li><li>Click on “Subnets” &gt; “+ Subnet”.</li><li>Name: public-subnet.</li><li>Address range (CIDR block): Enter 10.0.0.0/24.</li><li>Configure any additional settings as needed, such as routing or security.</li><li>Click “Save” to create the subnet.</li><li>Add the Private Subnet:</li><li>Repeat the steps to add another subnet.</li><li>Name: private-subnet.</li><li>Address range (CIDR block): Enter 10.0.2.0/24.</li><li>Ensure this subnet’s settings align with your security requirements for backend access.</li><li>Click “Save” to create the subnet.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SvDKR3o8Z0CdSaE8" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dbcr3jkP8RMjW_Qw" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CEtR8u80No_eaHHh" /></figure><h3>Step 2: Deploying Virtual Machines</h3><p>Deploying a VM in the Public Subnet</p><h4>2.1 Selecting a VM Size and Image</h4><ul><li>Go to the Azure Portal: Sign in to your account.</li><li>Create a new VM: Navigate to “Virtual machines” and click on “+ Create” or “+ Add”.</li><li>Basics:</li><li>Subscription: Choose the appropriate subscription.</li><li>Resource group: Select the AZ-900 resource group you previously created.</li><li>Virtual machine name: Give your VM a descriptive name, like frontend-vm.</li><li>Region: Choose the same region as your VNet.</li><li>Availability options: Select an option based on your availability needs (e.g., no infrastructure redundancy required).</li><li>Image: Select an OS image, such as Ubuntu 18.04 LTS, suitable for your front-end application.</li><li>Size: Choose a VM size that matches your front-end’s performance requirements. Azure offers a variety of sizes, so select one that provides the necessary CPU, memory, and storage for your application.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Mcc1c-y2ENioxqei" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EP1nqgjvP2teMsDU" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GMHjO1dJbZZHshF-" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QW9MfRScVsV4BBTl" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7ACbcKST7pM864Ra" /></figure><h4>2.2 Configure Administrator Account</h4><ul><li>Authentication type: Choose between SSH public key and password. SSH is recommended for Linux VMs for security.</li><li>Username: Enter a username.</li><li>SSH public key or password: Provide your SSH public key or create a strong password.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1xre-wLBvMwkC49L" /></figure><h4>2.3 Configure Networking Settings</h4><ul><li>Virtual network: Select the VNet (VNet-AZ900) you created earlier.</li><li>Subnet: Choose the public-subnet (10.0.0.0/24).</li><li>Public IP: Enable a public IP address. This allows your VM to be accessible from the internet.</li><li>NIC network security group (NSG): Either create a new NSG or select an existing one that defines the security rules for your VM. Ensure the NSG allows inbound traffic on ports required by your application (e.g., HTTP/HTTPS).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EXs_A7PsnWyvxxQv" /></figure><h4>2.4 Review and Create</h4><ul><li>Review all settings, then click “Create” to deploy your VM.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*223Wjnax5c29wlSH" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BndFSUsGeioI15e9" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pj7AcQf_tnt8y92S" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8PPghC5jgzRJUNku" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tM8iiyUI66WnMVwA" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uKu9iIn90N8Y_d1j" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KqqxrMd5xouxx_oQ" /></figure><h3>Deploying a VM in the Private Subnet</h3><h4>2.5 Repeating the Process with Modifications</h4><p>Follow the same steps as above, but make the following adjustments for the back-end VM:</p><ul><li>Virtual machine name: Use a different name, like backend-vm.</li><li>Subnet: Select the private-subnet (10.0.2.0/24). This ensures the VM is isolated from direct internet access.</li><li>Public IP: Do not enable a public IP address for this VM. This is a critical step to ensure the VM’s isolation from the internet.</li></ul><h4>2.6 Network Security Group (NSG) Considerations</h4><p>For the VM in the private subnet, the NSG should be configured to allow only necessary internal traffic. Typically, this would include:</p><ul><li>Inbound traffic from the public subnet (where your front-end VM resides).</li><li>Necessary outbound access to the internet for updates or to access Azure services, which can be achieved via Azure NAT Gateway or a similar service.</li></ul><h4>2.7 Final Steps</h4><ul><li>Review and Create: After configuring the VM settings to suit the back-end application’s needs and ensuring it’s connected to the private subnet without a public IP, review all settings and click “Create”.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IF4A_V2ggu1blwUf" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*v0cnyNVAuOTruKVI" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NJ9sjfywdHR4yoFW" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IF0YdF4UdAEJ2iD2" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JoTBLsevSahMxqpt" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*igN_8VaWtoylWY_T" /></figure><h3>Step 3: Cleaning the Resources</h3><p>Access the desired resource by navigating to it. In this instance, we are focusing on removing the AZ-900. Once you’ve chosen the resource you wish to eliminate, confirm the deletion, ensure to mark the “apply forcefully delete” option, and then press the delete button. This action will eliminate all the resources associated with that Resource Group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8-SvMkPdqCITfagv" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fKedcovalPalMieo" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BSSMhh6DEL1QbKBP" /></figure><p>In conclusion, we’ve successfully set up a secure and scalable system for a web application using Microsoft Azure. This setup includes a special network that keeps the web part and the database part separate, making sure the website is fast and safe. We also added a secure way to access the system without exposing it to the internet. This is great for websites that need to keep their customer data safe but still run smoothly. Our project shows that Azure is a powerful tool for building strong and efficient online services.</p><p>Subscribe for more!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d1fda3291b69" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying Azure Infrastructure: Virtual Network & VMs with Azure CLI]]></title>
            <link>https://siddhantacademy101.medium.com/deploying-azure-infrastructure-virtual-network-vms-with-azure-cli-16c0c0b6012a?source=rss-e9d2fe71fa0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/16c0c0b6012a</guid>
            <dc:creator><![CDATA[Mr. Principle]]></dc:creator>
            <pubDate>Fri, 22 Mar 2024 09:02:13 GMT</pubDate>
            <atom:updated>2024-03-22T09:02:13.671Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vz8R48zT-_5jjPCI" /></figure><p>Navigating the world of cloud infrastructure can often seem daunting, but with the right tools and guidance, it becomes a seamless process. In this blog post, we will dive into how to deploy a virtual network and virtual machines (VMs) on Microsoft Azure using the Azure Command-Line Interface (CLI), a powerful tool that allows for managing Azure services directly from the command line. Whether you’re working from Windows, Linux, or Mac OS, this guide will help you set up your cloud infrastructure smoothly and efficiently.</p><h3>Prerequisites</h3><p>Before we get started, you’ll need:</p><ul><li>An Azure account. Sign up for a free trial <a href="https://azure.microsoft.com/en-us/pricing/offers/ms-azr-0170p">here</a> if you don’t have one already.</li><li>The Azure CLI installed on your machine. Check out the official installation guide.</li></ul><h3>Step 1: Environment Setup</h3><p><strong>For Linux and Mac OS Users</strong></p><p>Open your terminal and create Bash shell variables for your virtual network (vnet) and subnet:</p><pre>vnetName=&quot;ismt-vnet&quot;<br>subnetName=&quot;ismt-public-subnet-1&quot;<br>vnetAddressPrefix=&quot;172.168.0.0/16&quot;<br>subnetAddressPrefix=&quot;172.168.0.0/24&quot;<br>resourceGroup=&quot;az-900&quot;<br>location=&quot;eastus&quot;</pre><p><strong>For Windows Users</strong></p><p>Launch PowerShell and initialize variables for your setup:</p><pre>$vnetName=&quot;ismt-vnet&quot;<br>$subnetName=&quot;ismt-public-subnet-1&quot;<br>$vnetAddressPrefix=&quot;172.168.0.0/16&quot;<br>$subnetAddressPrefix=&quot;172.168.0.0/24&quot;<br>$resourceGroup=&quot;az-900&quot;<br>$location=&quot;eastus&quot;</pre><h3>Step 2: Create a Resource Group</h3><p>A resource group is essentially a logical container for Azure resources. Create one with:</p><pre>az group create --name $resourceGroup --location $location</pre><h3>Step 3: Deploy the Virtual Network</h3><p>Set up your virtual network and a subnet within your resource group:</p><p><strong>For Linux and Mac OS Users</strong></p><pre>az network vnet create \<br>  --name $vnetName \<br>  --resource-group $resourceGroup \<br>  --address-prefixes $vnetAddressPrefix \<br>  --subnet-name $subnetName \<br>  --subnet-prefixes $subnetAddressPrefix</pre><p><strong>For Windows Users</strong></p><pre>az network vnet create `<br>  --name $vnetName `<br>  --resource-group $resourceGroup `<br>  --address-prefixes $vnetAddressPrefix `<br>  --subnet-name $subnetName `<br>  --subnet-prefixes $subnetAddressPrefix</pre><h3>Step 4: Spin Up Your VM</h3><p>Deploy an Azure VM that will be part of your network:</p><p><strong>For Linux and Mac OS</strong></p><pre># create Bash shell variable<br>vmName=&quot;ismt-server&quot;<br>image=&quot;Canonical:0001-com-ubuntu-server-jammy:22_04-lts:latest&quot;<br>admin_username=&quot;azureuser&quot;<br>admin_password=&quot;Admin@123456789&quot;</pre><pre>az vm create \<br>  --resource-group $resourceGroup \<br>  --name $vmName \<br>  --image $image \<br>  --vnet-name $vnetName \<br>  --subnet $subnetName \<br>  --admin-username $admin_username \<br>  --admin-password $admin_password</pre><p><strong>For Windows (Powershell)</strong></p><pre># create Bash shell variable<br>$vmName=&quot;ismt-server&quot;<br>$image=&quot;Canonical:0001-com-ubuntu-server-jammy:22_04-lts:latest&quot;<br>$admin_username=&quot;azureuser&quot;<br>$admin_password=&quot;Admin@123456789&quot;</pre><pre>az vm create `<br>  --resource-group $resourceGroup `<br>  --name $vmName `<br>  --image $image `<br>  --vnet-name $vnetName `<br>  --subnet $subnetName `<br>  --admin-username $admin_username `<br>  --admin-password $admin_password</pre><h3>Step 5: Configure Network Accessibility</h3><p>Ensure your website can be reached by opening the necessary ports:</p><pre>az vm open-port --name $vmName --resource-group $resourceGroup --port 80 --priority 900<br>az vm open-port --name $vmName --resource-group $resourceGroup --port 443 --priority 901</pre><p>SSH to your VM</p><pre>ssh azureuser@&lt;public-ip-address&gt;</pre><h3>Step 6: Deploy Your Static Website with Nginx</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*C7zsL9p_Ig0Wry0c" /></figure><pre>#!/bin/bash<br># Ensure the script is run with root privileges<br>if [ &quot;$(id -u)&quot; != &quot;0&quot; ]; then<br>   echo &quot;This script must be run as root&quot; 1&gt;&amp;2<br>   exit 1<br>fi<br># Step 1: Update the operating system packages<br>apt update -y<br># Step 2: Install Nginx<br>apt install nginx -y<br># Step 3: Navigate to /var/www and create a folder named your_domain.com<br>cd /var/www<br>mkdir mystic.com<br>cd mystic.com<br># Step 4: Clone the GitHub repository into the directory<br># Replace &#39;https://github.com/siddhantbhattarai/e-commerce-static-site.git&#39; with your actual GitHub repository URL<br>git clone https://github.com/siddhantbhattarai/e-commerce-static-site.git .<br># Ensure git is installed or handle its absence<br>if ! command -v git &amp;&gt; /dev/null<br>then<br>    echo &quot;git could not be found, installing now...&quot;<br>    apt install git -y<br>    git clone https://github.com/siddhantbhattarai/e-commerce-static-site.git .<br>fi<br># Step 5: Configure Nginx to serve your site<br># Navigate to Nginx sites-available directory and create a new configuration<br>cd /etc/nginx/sites-available/<br># Note: It&#39;s better to use the sites-available and sites-enabled pattern with symlinks<br># Replace &#39;mystic.com&#39; with the actual domain name file for clarity, e.g., your_domain.com<br>sudo tee mystic.com &lt;&lt;EOF<br>server {<br>    listen 80;<br>    listen [::]:80;<br>    server_name mystic.com;<br>    root /var/www/mystic.com;<br>    index index.html;<br>    location / {<br>        try_files \$uri \$uri/ =404;<br>    }<br>}<br>EOF<br># Create a symlink to enable the site<br>ln -s /etc/nginx/sites-available/mystic.com /etc/nginx/sites-enabled/<br># Optional: Remove the default Nginx site configuration to avoid conflicts<br>rm /etc/nginx/sites-enabled/default<br># Step 7: Test Nginx configuration for syntax errors<br>nginx -t<br># Step 8: Restart Nginx to apply the changes<br>systemctl restart nginx<br># Display a success message<br>echo &quot;Nginx has been configured to serve your site and restarted successfully!&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dYdVQxcUZgE6GRlc" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sop6ZJBY6hMHhvlx" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*42wKeNpUZM7EKScH" /></figure><h3>Resource Cleanup</h3><p>To avoid unnecessary charges, it’s important to delete resources you no longer need:</p><pre>az group delete --name $resourceGroup --yes --no-wait</pre><h3>Wrapping Up</h3><p>Deploying infrastructure on Azure using the CLI not only simplifies the process but also introduces flexibility and automation capabilities to your workflow. This guide covered setting up a virtual network and deploying a VM to host a static website, showcasing the Azure CLI’s power and efficiency.</p><p>As you become more comfortable with these tools, you’ll find that the Azure CLI is an invaluable resource for managing your cloud infrastructure. Dive in, explore, and happy deploying!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16c0c0b6012a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating Your First Virtual Machine on Azure with Azure CLI]]></title>
            <link>https://siddhantacademy101.medium.com/creating-your-first-virtual-machine-on-azure-with-azure-cli-7d5ff9687eb3?source=rss-e9d2fe71fa0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d5ff9687eb3</guid>
            <dc:creator><![CDATA[Mr. Principle]]></dc:creator>
            <pubDate>Fri, 22 Mar 2024 08:53:46 GMT</pubDate>
            <atom:updated>2024-03-22T08:53:46.816Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction:</h3><p>Do you want to harness the power of cloud computing with Microsoft Azure? The Azure CLI (Command-Line Interface) is your key to managing Azure resources efficiently from the comfort of your terminal. This guide will equip you with the knowledge to install the Azure CLI on your Windows, macOS, or Ubuntu machine, log in securely, and create your first virtual machine (VM) with ease.</p><h3>Objective:</h3><p>This blog post aims to empower you with the following:</p><ul><li>Installing Azure CLI: Learn the straightforward steps to install the Azure CLI on your preferred operating system.</li><li>Logging In: Understand the secure login process to authenticate with your Azure account.</li><li>Creating a Virtual Machine: Discover the essential commands to create a basic VM on your Azure account.</li></ul><p>By following these steps, you’ll gain hands-on experience and be well on your way to exploring the vast capabilities of Azure in a practical way.</p><h3>Setting up Azure CLI</h3><h4>Windows</h4><ol><li>Download and Install: Go to the Azure CLI installation page (<a href="https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-windows">https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-windows</a>) and download the MSI installer. Run the installer and follow the prompts.</li><li>Verify Installation: Open a new Command Prompt window and run az --version to check if Azure CLI was installed correctly.</li></ol><h4>Mac OS</h4><ol><li>Install with Home brew: Open Terminal and run:</li></ol><pre>brew update &amp;&amp; brew install azure-cli</pre><p>Verify Installation: Run az --version to ensure Azure CLI is installed properly.</p><h4>Linux (Ubuntu)</h4><ol><li>Install with one command: Open a terminal and run:</li></ol><pre>curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash</pre><p>Verify Installation: Check the installation by running az --version.</p><h3>Logging into Azure</h3><ol><li>Login: Run az login in your terminal or command prompt. This command will open a web page where you can log in using your Azure account credentials.</li><li>List Subscriptions: To list all your available subscriptions, use az account list --output table. If you have multiple subscriptions, set the one you intend to use with az account set --subscription &quot;SubscriptionName&quot;.</li></ol><h3>Creating a VM with Azure CLI</h3><ol><li>Create a Resource Group: If you don’t already have a resource group, create one.</li></ol><pre>az group create --name az-900 --location eastus</pre><p>Create a Virtual Machine: Now, create your VM.</p><pre>az vm create --name siddhant-server --resource-group az-900 --image Canonical:0001-com-ubuntu-server-jammy:22_04-lts:latest --admin-username your_admin_username --admin-password your_password --public-ip-address-dns-name siddhant-server</pre><pre>az vm open-port --name siddhant-server --resource-group az-900 --port 80 --priority 900  <br>az vm open-port --name siddhant-server --resource-group az-900 --port 443 --priority 991</pre><ul><li>Adjust --image for different OS options, and --admin-username as needed.</li><li>Access the VM: After the VM is created, you can SSH into it using its public IP address.</li></ul><pre>ssh azureuser@&lt;PublicIPAddress&gt;</pre><ul><li>Manage VM: Learn more about managing your VM, such as starting, stopping, and deleting, by visiting the Azure CLI documentation on VM management (<a href="https://docs.microsoft.com/en-us/cli/azure/vm">https://docs.microsoft.com/en-us/cli/azure/vm</a>).</li><li>Delete the Resource</li></ul><pre>az group delete --name az-900 --yes --no-wait</pre><h3>Useful Links</h3><ul><li>Azure CLI Documentation: <a href="https://docs.microsoft.com/en-us/cli/azure/">https://docs.microsoft.com/en-us/cli/azure/</a></li><li>Azure CLI VM Management: <a href="https://docs.microsoft.com/en-us/cli/azure/vm">https://docs.microsoft.com/en-us/cli/azure/vm</a></li><li>Azure CLI Installation Guide: <a href="https://docs.microsoft.com/en-us/cli/azure/install-azure-cli">https://docs.microsoft.com/en-us/cli/azure/install-azure-cli</a></li></ul><p>Make sure to replace placeholders with your actual values where necessary, and adjust commands based on your specific requirements or Azure CLI updates. This guide provides a general outline, but the Azure documentation will have the most current and detailed information</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d5ff9687eb3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Step-by-Step Guide to Setting Up an Azure Load Balancer for Optimal Traffic Distribution]]></title>
            <link>https://siddhantacademy101.medium.com/step-by-step-guide-to-setting-up-an-azure-load-balancer-for-optimal-traffic-distribution-235e619c7922?source=rss-e9d2fe71fa0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/235e619c7922</guid>
            <dc:creator><![CDATA[Mr. Principle]]></dc:creator>
            <pubDate>Fri, 22 Mar 2024 08:32:50 GMT</pubDate>
            <atom:updated>2024-03-22T08:35:00.222Z</atom:updated>
            <content:encoded><![CDATA[<p>In the realm of cloud services, ensuring that your applications remain accessible and perform optimally under varying loads is paramount. One of the key components in achieving this is the use of load balancers. Azure Load Balancer stands out as a robust solution, offering to distribute incoming network traffic across multiple servers, ensuring no single server becomes a bottleneck. This guide walks you through setting up an Azure Load Balancer, ensuring your applications can handle traffic efficiently and reliably.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CDtmNGlcqZYtmrju" /></figure><h3>Define Deployment Variables</h3><p>The journey begins with the preparation phase, where defining your deployment variables is crucial. This blog provides a clear example, setting variables for resource groups, locations, network names, and more. This step is foundational, as these variables will be used throughout the setup process to streamline the creation of resources.</p><pre># Define deployment variables<br>resourceGroup=&quot;azure-lb-rg&quot;<br>location=&quot;eastus&quot;<br>username=&quot;siddhant&quot;<br>password=&#39;Admin@123456789&#39;<br>vnetName=&quot;ismt-vnet&quot;<br>subnetName=&quot;ismt-private-subnet&quot;<br>availabilitySetName=&quot;ismt-vm-as&quot;<br>nsgName=&quot;ismt-vm-nsg&quot;<br>vmSize=&quot;Standard_B1s&quot;<br>image=&quot;Canonical:0001-com-ubuntu-server-jammy:22_04-lts:latest&quot;</pre><h3>Create the resource group</h3><p>With variables in hand, the next step is creating a resource group in Azure. This group serves as a container for holding related resources for your load balancer setup. The command is straightforward, reflecting the simplicity Azure offers in orchestrating complex cloud services.</p><pre># Create the resource group<br>echo &quot;Creating resource group...&quot;<br>az group create --name $resourceGroup --location $location</pre><h3>Create the Virtual Network and Subnet</h3><p>A virtual network (VNet) is crucial for Azure VMs and Load Balancers, as it enables them to communicate securely. Subnets further organize resources within a VNet. This guide demonstrates the ease of setting up a VNet and a subnet, marking a critical step in preparing the environment for the load balancer.</p><pre># Create the virtual network and subnet<br>echo &quot;Creating virtual network and subnet...&quot;<br>az network vnet create \<br>  --name $vnetName \<br>  --resource-group $resourceGroup \<br>  --location $location \<br>  --address-prefixes &#39;172.16.0.0/16&#39; \<br>  --subnet-name $subnetName \<br>  --subnet-prefixes &#39;172.16.1.0/24&#39;</pre><h3>Create the Availability Set</h3><p>High availability is a key feature of robust applications. An availability set is a group of VMs that Azure uses to ensure that at least one VM is available during maintenance or failures. Creating an availability set is a simple yet significant step towards a fault-tolerant application setup.</p><pre># Create the availability set<br>echo &quot;Creating availability set...&quot;<br>az vm availability-set create \<br>  --name $availabilitySetName \<br>  --location $location \<br>  --resource-group $resourceGroup</pre><h3>Proceed with VM Creation</h3><p>Next, we create the virtual machines (VMs) that will serve our application. This method involves a loop to create multiple VMs, showcasing the scalability of Azure services. These VMs are later added to the load balancer for distributing incoming traffic.</p><pre># Proceed with VM creation<br>echo &quot;Creating VMs...&quot;<br>for NUM in 1 2 3; do<br>  az vm create \<br>    --name ismt-vm-0$NUM \<br>    --resource-group $resourceGroup \<br>    --location $location \<br>    --size $vmSize \<br>    --image $image \<br>    --admin-username $username \<br>    --admin-password $password \<br>    --vnet-name $vnetName \<br>    --subnet $subnetName \<br>    --public-ip-address &quot;&quot; \<br>    --availability-set $availabilitySetName \<br>    --nsg $nsgName<br>done</pre><h3>Open Port 80 for Web Traffic</h3><p>For web applications, opening port 80 is essential to allow HTTP traffic. This step is a testament to Azure’s flexibility in configuring network security groups (NSGs) to meet the application’s needs.</p><pre># Open port 80 for web traffic<br>echo &quot;Configuring network security group rules...&quot;<br>for NUM in 1 2 3; do<br>  az vm open-port --resource-group $resourceGroup --name ismt-vm-0$NUM --port 80 --no-wait<br>done</pre><h3>Install Nginx and Configure Web Page</h3><p>Before introducing the load balancer, ensuring your servers are ready to serve content is key. Installing Nginx on each VM and configuring a basic web page demonstrates how Azure supports a wide range of applications and services. The use of Azure VM extensions to automate software installations is a game-changer.</p><pre># Install Nginx and configure web page<br>echo &quot;Installing Nginx and configuring web page...&quot;<br>for NUM in 1 2 3<br>do<br>  az vm extension set \<br>    --resource-group $resourceGroup \<br>    --vm-name ismt-vm-0$NUM \<br>    --name CustomScript \<br>    --publisher Microsoft.Azure.Extensions \<br>    --version 2.0 \<br>    --settings &quot;{\&quot;fileUris\&quot;: [\&quot;https://raw.githubusercontent.com/siddhantbhattarai/azure-load-balancer/main/webserver-script.sh\&quot;], \&quot;commandToExecute\&quot;: \&quot;bash webserver-script.sh\&quot;}&quot; \<br>    --no-wait<br>done</pre><h3>Create the Load Balancer</h3><p>Creating a load balancer in Azure involves several steps, including setting up a resource group, creating the load balancer itself, configuring backend pools, health probes, load balancing rules, and, finally, connecting virtual machines (VMs) to the backend pool. Below is a step-by-step guide to creating a basic load balancer in Azure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wV2xLy0Tb_CQZ6EI" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oxubT1moryNIB7se" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dF_ni6W5skj1Jr_1" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JeJ1xXr3P71gn5e9" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*x9P_oaxnTZcYZdoP" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*i03D5j7WHddBaqev" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JEJ8SaSYWslOluOG" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*t6Sdq0eQ8VAGg8La" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UDLcHEnixncPt5Ck" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*teIA9n6D-FJKtNq1" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZnvIUsYB5AUzyGo5" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MWiohDDgA1sDLSvt" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gKZJBBE5C9FbtiJ1" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JgzdgoX2TkE8W35F" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RYeO0NnsOxIVwZD3" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XtjzysL-xnBu-14b" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*On3FPdg_C5a7Fmu_" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3VZWeynID5inBCCn" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1wDEB4ItC7KuFGBK" /></figure><h3>Conclusion</h3><p>In conclusion, setting up an Azure Load Balancer is a strategic move toward enhancing the scalability, reliability, and availability of my applications. Through the step-by-step guide I’ve provided, we’ve seen how to methodically prepare our environment, from defining deployment variables to creating virtual machines, and finally, establishing the load balancer itself. Each step is crucial, paving the way for a robust setup that ensures my application can withstand varying loads and maintain performance.</p><p>This guide underscores the importance of understanding the components and processes involved in deploying Azure Load Balancers. Whether I’m managing a small application or a large-scale enterprise system, the principles of traffic distribution, fault tolerance, and resource optimization are universally applicable. By following the outlined steps, I’m equipped to deploy a solution that not only meets my current needs but also scales for future growth.</p><p>Azure’s infrastructure and tools, as demonstrated, offer a flexible and powerful platform for deploying and managing load balancers. The ease with which one can automate and configure various aspects of the setup process is testament to the platform’s maturity and focus on user experience. As cloud technologies continue to evolve, leveraging these capabilities becomes increasingly important in delivering high-quality digital experiences.</p><p>Finally, remember that the journey doesn’t end with deployment. Monitoring, maintaining, and periodically reviewing my load balancer’s performance and configurations are key to ensuring ongoing operational excellence. Azure provides the tools and services necessary to not only deploy but also optimize my infrastructure over time. Embrace these opportunities to learn, adapt, and enhance my applications, ensuring they remain robust, responsive, and ready to serve my users efficiently.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=235e619c7922" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying a React Frontend App on AWS EC2 with Docker]]></title>
            <link>https://siddhantacademy101.medium.com/deploying-a-react-frontend-app-on-aws-ec2-with-docker-d6428185d5e1?source=rss-e9d2fe71fa0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6428185d5e1</guid>
            <dc:creator><![CDATA[Mr. Principle]]></dc:creator>
            <pubDate>Wed, 24 Jan 2024 06:46:10 GMT</pubDate>
            <atom:updated>2024-01-24T06:47:40.760Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Iy7WMiU-WqdE5nyZjVhNfg.png" /></figure><p><strong>Introduction:</strong></p><p>In this guide, we’ll walk through the straightforward process of deploying a React frontend application on an AWS EC2 instance using Docker. Docker allows us to encapsulate our application and its dependencies into a container, providing a consistent and reproducible environment across different systems. By following these steps, you’ll be able to set up a scalable and efficient environment for your React app.</p><p><strong>Prerequisites</strong>:</p><p>Before you begin, make sure you have:</p><ol><li>An AWS account.</li><li>Basic knowledge of AWS services.</li><li>A running EC2 instance with Ubuntu (t2.small, 30GB storage).</li></ol><p><strong>Step 1: Setting Up Your EC2 Instance</strong></p><ol><li>Launch an EC2 instance with the desired specifications (e.g., t2.small, 30GB storage).</li><li>Connect to your EC2 instance using SSH.</li></ol><pre>ssh -i your-key.pem ubuntu@your-ec2-ip</pre><p><strong>Step 2: Installing Docker</strong></p><p>Update your instance and install Docker.</p><pre>sudo apt update<br>sudo apt install -y docker.io</pre><p><strong>Step 3: Adding User to Docker Group</strong></p><p>Add the Ubuntu user to the Docker group to run Docker commands without sudo.</p><pre>sudo usermod -aG docker ubuntu</pre><p>Log out and log back in or run the following command to apply the changes.</p><p><strong>Step 4: Cloning the React Frontend Code</strong></p><p>Clone the React frontend code into your EC2 instance.</p><pre>git clone https://github.com/siddhantbhattarai/react-ecommerce-frontend.git<br>cd react-ecommerce-frontend</pre><p><strong>Step 5: Creating a Dockerfile</strong></p><p>Remove the existing Dockerfile if it exists.</p><pre>rm Dockerfile</pre><p>Now, create a new Dockerfile using a text editor (e.g., nano).</p><pre>nano Dockerfile</pre><p>Copy and paste the following Dockerfile content:</p><pre># Use an official Node runtime as a base image<br>FROM node:17-alpine<br><br># Set the working directory in the container<br>WORKDIR /usr/src/app/frontend<br><br># Copy package.json and package-lock.json to the container<br>COPY package*.json ./<br><br># Install frontend dependencies<br>RUN npm install<br><br># Copy the rest of the application files to the container<br>COPY . .<br><br># Build the frontend app<br>RUN npm run build<br><br># Expose port 3000 to the outside world<br>EXPOSE 3000<br><br># Command to run the application<br>CMD [&quot;npm&quot;, &quot;start&quot;]</pre><p><strong>Step 6: Building and Running the Docker Container</strong></p><p>Build the Docker image from the newly created Dockerfile.</p><pre>docker build -t react-frontend-app .</pre><p>Run the Docker container, exposing port 3000.</p><pre>docker run -d -p 3000:3000 react-frontend-app</pre><p><strong>Conclusion:</strong></p><p>Congratulations! You’ve successfully deployed your React frontend application on an AWS EC2 instance using Docker. This straightforward setup allows for easy scalability and management of your React app in a production environment. If you choose to explore further, consider pushing your Docker image to Amazon ECR for improved container management.</p><p>_________________________________________________________________</p><p><strong>Step 7: Pushing the Docker Image to AWS ECR (Elastic Container Registry)</strong></p><p>To deploy the Docker image on your EC2 instance, you need to push it to an image registry. In this example, we’ll use AWS ECR. Follow these steps to push the image:</p><ol><li>Create an ECR repository using the AWS Management Console.</li><li>Authenticate Docker to your ECR registry using the aws ecr get-login-password command.</li></ol><pre>aws ecr get-login-password --region &lt;your-region&gt; | docker login --username AWS --password-stdin &lt;your-account-id&gt;.dkr.ecr.&lt;your-region&gt;.amazonaws.com</pre><ol><li>Tag your Docker image with the ECR repository URI:</li></ol><pre>docker tag react-frontend-app:latest &lt;your-account-id&gt;.dkr.ecr.&lt;your-region&gt;.amazonaws.com/react-frontend-app:latest</pre><ol><li>Push the image to ECR:</li></ol><pre>docker push &lt;your-account-id&gt;.dkr.ecr.&lt;your-region&gt;.amazonaws.com/react-frontend-app:latest</pre><p><strong>Step 8: Running the Docker Container on EC2</strong></p><p>On your EC2 instance, pull the Docker image from ECR and run the container:</p><pre>docker pull &lt;your-account-id&gt;.dkr.ecr.&lt;your-region&gt;.amazonaws.com/react-frontend-app:latest</pre><pre>docker run -d -p 3000:3000 &lt;your-account-id&gt;.dkr.ecr.&lt;your-region&gt;.amazonaws.com/react-frontend-app:latest</pre><p><strong>Conclusion:</strong></p><p>Congratulations! You have successfully deployed your React frontend application on an AWS EC2 instance using Docker. This approach provides a scalable and maintainable solution, allowing for easy updates and efficient management of your application in a production environment.</p><p>_________________________________________________________________</p><p>If you are using NGINX as a reverse proxy for your React frontend application, you’ll need to make a few modifications to the Dockerfile and the overall setup. NGINX will be used to serve the built React application and handle incoming requests. Here’s how you can adapt the Dockerfile and include NGINX:</p><p><strong>Updated Dockerfile:</strong></p><pre># Use an official Node runtime as a base image for building the app<br>FROM node:17-alpine AS builder<br><br># Set the working directory in the container<br>WORKDIR /usr/src/app/frontend<br><br># Copy package.json and package-lock.json to the container<br>COPY package*.json ./<br><br># Install frontend dependencies<br>RUN npm install<br><br># Copy the rest of the application files to the container<br>COPY . .<br><br># Build the frontend app<br>RUN npm run build<br><br># Use NGINX as a lightweight base image to serve the app<br>FROM nginx:alpine<br><br># Copy the built app from the previous stage<br>COPY --from=builder /usr/src/app/frontend/build /usr/share/nginx/html<br><br># Expose port 80 to the outside world (default for HTTP)<br>EXPOSE 80<br><br># CMD is not needed as NGINX image has a default CMD to start the server<br></pre><p><strong>Changes and Explanation:</strong></p><ul><li>Multi-Stage Build: The Dockerfile now uses multi-stage building. The first stage (FROM node:17-alpine AS builder) is responsible for building the React app, and the second stage (FROM nginx:alpine) uses the lightweight NGINX image to serve the built application.</li><li>Copying Build Artifacts: The COPY --from=builder /usr/src/app/frontend/build /usr/share/nginx/html command copies the built React app from the builder stage to the NGINX image.</li><li>Port Exposition: NGINX listens on port 80 by default, so the EXPOSE 80 line is added to expose the NGINX server to the outside world.</li></ul><p><strong>Building and Running:</strong></p><p>The building and running steps remain the same as before:</p><pre>docker build -t react-frontend-app .<br>docker run -d -p 80:80 react-frontend-app</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Gq6_TRlGoydmhl6-" /></figure><p><strong>NGINX Configuration (Optional):</strong></p><p>You can also provide a custom NGINX configuration by including an nginx.conf file in your project and copying it to the appropriate location in the NGINX image. This step is optional but useful if you need to customize NGINX settings.</p><p>Include the following lines at the end of your Dockerfile to copy a custom nginx.conf file:</p><pre># Copy custom NGINX configuration<br>COPY nginx.conf /etc/nginx/nginx.conf</pre><p>Make sure to place your nginx.conf file in the same directory as your Dockerfile.</p><p>This approach allows NGINX to serve your React app efficiently and provides a clean separation of concerns in the Dockerfile.</p><p>Subscribe for more!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6428185d5e1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering VPC Peering Connections in AWS: A Comprehensive Guide]]></title>
            <link>https://siddhantacademy101.medium.com/mastering-vpc-peering-connections-in-aws-a-comprehensive-guide-4bb525264fff?source=rss-e9d2fe71fa0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/4bb525264fff</guid>
            <dc:creator><![CDATA[Mr. Principle]]></dc:creator>
            <pubDate>Tue, 14 Nov 2023 04:05:30 GMT</pubDate>
            <atom:updated>2023-11-14T04:05:30.305Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction</strong></p><p>A Virtual Private Cloud (VPC) serves as a dedicated virtual network within your AWS account, ensuring logical isolation from other virtual networks in the AWS Cloud. Within your VPC, you can seamlessly launch AWS resources, including instances such as Amazon EC2 instances.</p><p>A pivotal feature within the AWS networking landscape is the VPC peering connection, which establishes a networking link between two VPCs. This connection empowers you to route traffic between them using private IPv4 or IPv6 addresses. Instances in either VPC can communicate as if they belong to the same network. Notably, VPC peering connections can be established between your own VPCs or extended to VPCs in different AWS accounts, even spanning different Regions, known as inter-Region VPC peering connections.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/0*uKlaFl38xTi0pxWS.png" /></figure><p>Unlike traditional gateways or VPN connections, AWS leverages the existing infrastructure of a VPC to create a VPC peering connection. This eliminates the need for separate physical hardware, avoiding single points of failure and bandwidth bottlenecks.</p><p>One of the primary advantages of a VPC peering connection is its role in facilitating data transfer. For instance, if you manage multiple AWS accounts, you can peer VPCs across these accounts to establish a collaborative file-sharing network. Additionally, a VPC peering connection enables other VPCs to access resources within a specific VPC.</p><p>When establishing peering relationships between VPCs across different AWS Regions, various resources within these VPCs — such as EC2 instances and Lambda functions — can communicate using private IP addresses. This communication occurs without the reliance on gateways, VPN connections, or network appliances, and the traffic remains within the private IP space. Importantly, all inter-Region traffic is encrypted, providing enhanced security and resilience against common exploits and DDoS attacks. The communication stays on the global AWS backbone, never traversing the public internet. This not only mitigates threats but also offers a straightforward and cost-effective solution for sharing resources between regions or replicating data for geographic redundancy. Inter-Region VPC peering stands out as a powerful tool in optimizing network architecture within the AWS ecosystem.</p><p>Establishing secure and efficient communication between Virtual Private Clouds (VPCs) is a crucial aspect of architecting robust cloud infrastructures. In this technical blog post, we will delve into the intricacies of creating VPC peering connections in Amazon Web Services (AWS). Whether you’re connecting VPCs within the same account or spanning different accounts and regions, this guide will equip you with the knowledge to seamlessly set up and manage VPC peering connections.</p><p><strong>I. Overview of VPC Peering Connections:</strong> Before we dive into the step-by-step procedures, let’s understand the fundamentals of VPC peering connections. These connections enable secure communication between VPCs, facilitating the exchange of traffic without the need for internet gateways, VPNs, or other complex setups.</p><p><strong>II. Creating VPC Peering Connections:</strong> To create a VPC peering connection, the process involves a requester and an accepter. The requester initiates the connection, and the accepter must confirm the request. The steps vary based on factors such as VPCs in the same account, different accounts, and different regions.</p><h3>A. Prerequisites:</h3><p>Before initiating the process, ensure the following prerequisites are met:</p><ol><li>Review limitations and rules for VPC peering connections.</li><li>Avoid overlapping IPv4 CIDR blocks between VPCs, as this leads to immediate connection failure.</li><li>Be aware of VPCs having unique IPv6 CIDR blocks.</li></ol><h3>B. Creating VPC Peering Connections:</h3><h4>1. VPCs in the Same Account and Region:</h4><p>a. Open the Amazon VPC console.</p><p>b. Navigate to Peering connections.</p><p>c. Choose “Create peering connection” and configure the necessary information.</p><p>d. Accept the request and modify route tables for seamless traffic flow.</p><h4>2. VPCs in the Same Account and Different Regions:</h4><p>a. Open the Amazon VPC console.</p><p>b. Navigate to Peering connections.</p><p>c. Choose “Create peering connection” and configure details, including the region of the accepter VPC.</p><p>d. Accept the request and modify route tables for optimal connectivity.</p><h4>3. VPCs in Different Accounts and the Same Region:</h4><p>a. Open the Amazon VPC console.</p><p>b. Navigate to Peering connections.</p><p>c. Choose “Create peering connection” and input relevant details, including the AWS account ID of the accepter VPC.</p><p>d. Accept the request and manage tags for personalized identification.</p><h4>4. VPCs in Different Accounts and Regions:</h4><p>a. Open the Amazon VPC console.</p><p>b. Navigate to Peering connections.</p><p>c. Choose “Create peering connection” and provide essential information, including the AWS account ID and region of the accepter VPC.</p><p>d. Accept the request and configure tags for better organization.</p><h4>5. Using the Command Line:</h4><ul><li>AWS CLI: create-vpc-peering-connection</li><li>AWS Tools for Windows PowerShell: New-EC2VpcPeeringConnection</li></ul><p>Certainly! Below are the details on how to create a VPC peering connection using the command line with AWS CLI and AWS Tools for Windows PowerShell.</p><h3>Using AWS CLI:</h3><h4>Command: create-vpc-peering-connection</h4><ol><li>Open your command-line interface.</li><li>Use the following command template to create a VPC peering connection:</li></ol><pre>aws ec2 create-vpc-peering-connection --vpc-id &lt;requester-vpc-id&gt; --peer-vpc-id &lt;accepter-vpc-id&gt; --peer-owner-id &lt;accepter-account-id&gt; --peer-region &lt;accepter-region&gt;</pre><ul><li>&lt;requester-vpc-id&gt;: The ID of the requester VPC.</li><li>&lt;accepter-vpc-id&gt;: The ID of the accepter VPC.</li><li>&lt;accepter-account-id&gt;: The AWS account ID that owns the accepter VPC.</li><li>&lt;accepter-region&gt;: The region where the accepter VPC is located.</li></ul><ol><li>After running the command, you will receive a response containing information about the newly created VPC peering connection, including the VpcPeeringConnectionId.</li></ol><h3>Using AWS Tools for Windows PowerShell:</h3><h4>Command: New-EC2VpcPeeringConnection</h4><ol><li>Open the AWS Tools for Windows PowerShell.</li><li>Use the following command template to create a VPC peering connection:</li><li>COPY</li></ol><pre>New-EC2VpcPeeringConnection -VpcId &lt;requester-vpc-id&gt; -PeerVpcId &lt;accepter-vpc-id&gt; -PeerOwnerId &lt;accepter-account-id&gt; -PeerRegion &lt;accepter-region&gt;</pre><ul><li>&lt;requester-vpc-id&gt;: The ID of the requester VPC.</li><li>&lt;accepter-vpc-id&gt;: The ID of the accepter VPC.</li><li>&lt;accepter-account-id&gt;: The AWS account ID that owns the accepter VPC.</li><li>&lt;accepter-region&gt;: The region where the accepter VPC is located.</li><li>After running the command, you will receive a response containing information about the newly created VPC peering connection, including the VpcPeeringConnectionId.</li></ul><p>These commands allow you to initiate the creation of a VPC peering connection directly from the command line, providing a convenient and scriptable way to manage your AWS resources. Make sure to replace the placeholder values with the actual IDs and information relevant to your specific setup.</p><p><strong>III. Conclusion:</strong> In this comprehensive guide, we’ve explored the nuances of creating VPC peering connections in AWS. By following these step-by-step procedures, you can seamlessly establish and manage secure communication between your VPCs. Whether you prefer the AWS Management Console or command line, this guide equips you with the knowledge to navigate the complexities of VPC peering connections effectively. Elevate your cloud architecture by mastering the art of VPC peering in AWS.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4bb525264fff" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>