<?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 Abhinandan Nahar on Medium]]></title>
        <description><![CDATA[Stories by Abhinandan Nahar on Medium]]></description>
        <link>https://medium.com/@abhinandannahar378?source=rss-ed02e18d5509------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*PEoY7MdZ-sxcKG9k92_62w.jpeg</url>
            <title>Stories by Abhinandan Nahar on Medium</title>
            <link>https://medium.com/@abhinandannahar378?source=rss-ed02e18d5509------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 04:27:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abhinandannahar378/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[Mastering Common Table Expressions (CTEs) in MySQL: A Guide to Simplifying Complex Queries]]></title>
            <link>https://abhinandannahar378.medium.com/mastering-common-table-expressions-ctes-in-mysql-a-guide-to-simplifying-complex-queries-808a9ed08371?source=rss-ed02e18d5509------2</link>
            <guid isPermaLink="false">https://medium.com/p/808a9ed08371</guid>
            <dc:creator><![CDATA[Abhinandan Nahar]]></dc:creator>
            <pubDate>Sat, 22 Feb 2025 18:36:09 GMT</pubDate>
            <atom:updated>2025-02-22T18:36:09.446Z</atom:updated>
            <content:encoded><![CDATA[<h3>Mastering Common Table Expressions (CTEs) in MySQL</h3><h3>Introduction</h3><p>Structured Query Language (SQL) is a powerful tool for managing and manipulating relational databases. Among its many features, <strong>Common Table Expressions (CTEs)</strong> stand out as a game-changer for simplifying complex queries. If you’ve ever struggled with deeply nested subqueries or wanted an elegant way to handle hierarchical data, CTEs might be the perfect solution.</p><p>In this blog, we’ll dive deep into CTEs in MySQL, explore their importance, benefits, and use cases, and provide practical examples to help you master them.</p><h3>What is a Common Table Expression (CTE)?</h3><p>A <strong>Common Table Expression (CTE)</strong> is a temporary named result set that exists only during the execution of a SQL query. It helps break down complex queries into readable and manageable parts. CTEs are created using the WITH keyword and can be referenced within a SELECT, INSERT, UPDATE, or DELETE statement.</p><h3>Syntax of a CTE in MySQL</h3><pre>WITH CTE_Name AS (<br>    SELECT column1, column2<br>    FROM SomeTable<br>    WHERE condition<br>)<br>SELECT * FROM CTE_Name;</pre><h3>Why Are CTEs Important?</h3><p>CTEs are crucial in SQL for several reasons:</p><ol><li><strong>Readability &amp; Maintainability</strong> — Queries become more structured and easier to understand.</li><li><strong>Encapsulation of Logic</strong> — You can store intermediate results in a named result set.</li><li><strong>Recursion Support</strong> — Essential for hierarchical data queries.</li><li><strong>Performance Optimization</strong> — Helps the database engine optimize execution plans.</li><li><strong>Avoids Redundant Code</strong> — Eliminates the need to repeat complex subqueries.</li></ol><h3>When to Use CTEs?</h3><ul><li>When you need to simplify complex queries with multiple joins and subqueries.</li><li>When working with <strong>hierarchical data</strong> (e.g., employee-manager relationships, category trees).</li><li>When a subquery is referenced multiple times in a query.</li><li>When you want to improve <strong>readability and maintainability</strong> of your SQL code.</li><li>When recursive operations are required.</li></ul><h3>Practical Examples</h3><h3>Example 1: Using a CTE for Readability</h3><p>Let’s say we have an EmployeeRecords table and want to retrieve employees with a salary above 60,000.</p><pre>WITH HighSalaryEmployees AS (<br>    SELECT EmployeeID, FirstName, LastName, Salary<br>    FROM EmployeeRecords<br>    WHERE Salary &gt; 60000<br>)<br>SELECT * FROM HighSalaryEmployees;</pre><p>💡 <strong>Why Use a CTE?</strong> Instead of writing a long query, we encapsulate the filtering logic in HighSalaryEmployees, making it reusable and easy to read.</p><h3>Example 2: Recursive CTE for Hierarchical Data</h3><p>Imagine a company where employees report to managers, and we need to retrieve an employee hierarchy.</p><pre>WITH RECURSIVE EmployeeHierarchy AS (<br>    SELECT EmployeeID, FirstName, ManagerID<br>    FROM Employees<br>    WHERE ManagerID IS NULL  -- Top-level managers<br>    <br>    UNION ALL<br>    <br>    SELECT e.EmployeeID, e.FirstName, e.ManagerID<br>    FROM Employees e<br>    INNER JOIN EmployeeHierarchy eh ON e.ManagerID = eh.EmployeeID<br>)<br>SELECT * FROM EmployeeHierarchy;</pre><p>💡 <strong>Why Use a Recursive CTE?</strong> It helps retrieve hierarchical relationships in a clean and efficient way, avoiding complex self-joins.</p><h3>Benefits of Using CTEs</h3><p>✅ <strong>Better Code Readability</strong> — Queries are more structured and easier to debug. ✅ <strong>Reusability</strong> — Use the same CTE multiple times within the same query. ✅ <strong>Eliminates Complex Subqueries</strong> — No need for deeply nested queries. ✅ <strong>Easier Debugging</strong> — Logic is broken into parts, making it easier to troubleshoot. ✅ <strong>Improves Performance</strong> — In some cases, CTEs improve query execution speed by allowing better optimization.</p><h3>Conclusion</h3><p>Common Table Expressions (CTEs) are an essential tool for MySQL developers. Whether simplifying complex queries, handling recursive operations, or improving query performance, CTEs provide a structured and efficient approach to data retrieval.</p><p>If you’re still relying on subqueries or temporary tables, it’s time to leverage the power of CTEs. Try them in your next SQL project and see the difference!</p><p>💬 <strong>Have you used CTEs in your projects? Share your experience in the comments!</strong> 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=808a9ed08371" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Choosing the Right Metric: When to Use Accuracy, Precision, and Recall”]]></title>
            <link>https://abhinandannahar378.medium.com/choosing-the-right-metric-when-to-use-accuracy-precision-and-recall-7f9fbbbf2643?source=rss-ed02e18d5509------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f9fbbbf2643</guid>
            <dc:creator><![CDATA[Abhinandan Nahar]]></dc:creator>
            <pubDate>Mon, 17 Feb 2025 19:09:36 GMT</pubDate>
            <atom:updated>2025-02-17T19:09:36.655Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello folks! I’ve been working on something, and during my research, I came across an interesting topic that I’d love to share with you.</p><p><strong>When to Use Accuracy, Precision, and Recall — A Real-World Perspective</strong></p><p>In the world of data science, machine learning, and AI, evaluating model performance is crucial. But how do we determine which metric — accuracy, precision, or recall — is most relevant to our problem? Each metric serves a unique purpose and applies to different real-world scenarios. Let’s break them down with relatable examples.</p><h3>1. Accuracy: The Overall Correctness</h3><p>Accuracy is the most commonly used metric and is defined as: Accuracy=(TruePositives+TrueNegatives)(TotalPredictions)Accuracy = \frac{(True Positives + True Negatives)}{(Total Predictions)} It tells us the proportion of correctly classified instances out of all predictions.</p><p><strong>When to Use Accuracy:</strong></p><ul><li>When the dataset is balanced (i.e., the number of positive and negative instances is roughly equal).</li><li>When both false positives (FP) and false negatives (FN) have similar consequences.</li></ul><p><strong>Real-World Example:</strong> Imagine an image classification model distinguishing between cats and dogs. If the dataset has an equal number of cat and dog images, accuracy is a meaningful metric since misclassifications of either class are equally important.</p><h3>2. Precision: Minimizing False Positives</h3><p>Precision focuses on how many of the positive predictions were actually correct: Precision=TruePositives(TruePositives+FalsePositives)Precision = \frac{True Positives}{(True Positives + False Positives)} It measures the reliability of positive predictions.</p><p><strong>When to Use Precision:</strong></p><ul><li>When false positives are more costly than false negatives.</li><li>When you need a high level of confidence in positive predictions.</li></ul><p><strong>Real-World Example:</strong> Consider a spam email filter. If an important email is mistakenly marked as spam (false positive), it could lead to missed deadlines or lost opportunities. Therefore, a spam classifier should prioritize <strong>precision</strong> to ensure only actual spam emails are flagged.</p><h3>3. Recall: Minimizing False Negatives</h3><p>Recall (or sensitivity) focuses on how many actual positive instances were correctly identified: Recall=TruePositives(TruePositives+FalseNegatives)Recall = \frac{True Positives}{(True Positives + False Negatives)} It measures the model’s ability to capture all relevant instances.</p><p><strong>When to Use Recall:</strong></p><ul><li>When false negatives are more costly than false positives.</li><li>When missing a positive case can lead to serious consequences.</li></ul><p><strong>Real-World Example:</strong> Think about a medical diagnosis system for detecting cancer. Missing a cancer case (false negative) is far more dangerous than falsely diagnosing a healthy person (false positive). In this scenario, we prioritize <strong>recall</strong> to minimize undetected cancer cases.</p><h3>Finding the Right Balance: The F1-Score</h3><p>Often, there is a trade-off between precision and recall. The F1-score helps find a balance: F1−Score=2×(Precision×Recall)(Precision+Recall)F1-Score = 2 \times \frac{(Precision \times Recall)}{(Precision + Recall)} Use the F1-score when both false positives and false negatives need to be minimized simultaneously.</p><p><strong>Conclusion:</strong> Choosing the right metric depends on the specific problem at hand. If you want overall performance, use <strong>accuracy</strong>. If you want fewer false positives, go for <strong>precision</strong>. If missing a positive instance is costly, prioritize <strong>recall</strong>.</p><p>Understanding these concepts ensures that models are evaluated effectively, leading to better decision-making and impactful AI applications.</p><p>#DataScience #MachineLearning #AI #Accuracy #Precision #Recall #ModelEvaluation #ArtificialIntelligence #TechBlog #DeepLearning #MLMetrics #BigData #AIApplications #Analytics #DataDriven #AIInsights</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f9fbbbf2643" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linux is Fun in Shell Prompt]]></title>
            <link>https://abhinandannahar378.medium.com/linux-is-fun-in-shell-prompt-d67e6edc2029?source=rss-ed02e18d5509------2</link>
            <guid isPermaLink="false">https://medium.com/p/d67e6edc2029</guid>
            <dc:creator><![CDATA[Abhinandan Nahar]]></dc:creator>
            <pubDate>Sun, 26 Sep 2021 07:09:33 GMT</pubDate>
            <atom:updated>2021-09-26T07:09:33.883Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Linux command is a utility of the Linux operating system. All basic and advanced tasks can be done by executing commands. Linux is fun, at the end you will believe that Linux is a fun box.</h3><h3>1. <strong>cowsay </strong>command → An ASCII cow in the terminal will say whatever you want.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*_kJywnDXJ2CAqvB1YtjgRg.png" /></figure><h3><em>To explore more feature use :: cowsay -h</em></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nsDOQaT4AXT6Yi98uKbw1Q.png" /></figure><h3><em>To explore more animals use :: cowsay -l</em></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fj9bfq7EcUQYYC8qFLmnCQ.png" /></figure><h3><em>Different cowsay commands,</em></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VOcgPf7Jh3r9uTVQuqHoaA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wm-XvmAQ2CeW0hjmfh7lKg.png" /></figure><h3>Thank You…</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d67e6edc2029" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploring formats and options of “date” command]]></title>
            <link>https://abhinandannahar378.medium.com/exploring-formats-and-options-of-date-command-b96423ea3091?source=rss-ed02e18d5509------2</link>
            <guid isPermaLink="false">https://medium.com/p/b96423ea3091</guid>
            <dc:creator><![CDATA[Abhinandan Nahar]]></dc:creator>
            <pubDate>Sun, 26 Sep 2021 06:40:53 GMT</pubDate>
            <atom:updated>2021-09-26T06:40:53.958Z</atom:updated>
            <content:encoded><![CDATA[<p>In Linux, “date” is a program/command which is used to print or set the system date and time</p><blockquote>date [OPTION]…[+FORMAT]</blockquote><h4>To Diplay time in UTC,</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*1gYWtfEzZmIZeX4WZccguQ.png" /></figure><p><strong>Different Formats :</strong></p><blockquote><em>%a — locale’s abbreviated weekday name (e.g., Sun)<br>%A — locale’s full weekday name (e.g., Sunday)<br>%b — locale’s abbreviated month name (e.g., Jan)<br>%B — locale’s full month name (e.g., January)<br>%c — locale’s date and time (e.g., Thu Mar 3 23:05:25 2005)<br>%C — century; like %Y, except omit last two digits (e.g., 20)<br>%d — day of month (e.g., 01)<br>%D — date; same as %m/%d/%y<br>%e — day of month, space padded; same as %_d<br>%F — full date; same as %Y-%m-%d<br>%g — last two digits of year of ISO week number (see %G)<br>%G — year of ISO week number %h same as %b<br>%H — hour (00..23)<br>%I — hour (01..12)<br>%j — day of year (001..366)<br>%k — hour, space padded ( 0..23); same as %_H<br>%l — hour, space padded ( 1..12); same as %_I<br>%m — month (01..12)<br>%n — a newline<br>%N — nanoseconds (000000000..999999999)<br>%p — locale’s equivalent of either AM or PM<br>%P — like %p, but lower case<br>%q — quarter of year (1..4)<br>%r — locale’s 12-hour clock time (e.g., 11:11:04 PM)<br>%R — 24-hour hour and minute; same as %H:%M<br>%s — seconds since 1970–01–01 00:00:00 UTC<br>%S — second (00..60)<br>%t — a tab<br>%T — time; same as %H:%M:%S<br>%u — day of week (1..7); 1 is Monday<br>%U — week number of year, with Sunday as first day of week<br>%V — ISO week number, with Monday as first day of week<br>%w — day of week (0..6); 0 is Sunday<br>%W — week number of year, with Monday as first day of week<br>%x — locale’s date representation (e.g., 12/31/99)<br>%X — locale’s time representation (e.g., 23:13:48)<br>%y — last two digits of year (00..99)<br>%Y — year<br>%z — +hhmm numeric time zone (e.g., -0400)<br>%:z — +hh:mm numeric time zone (e.g., -04:00)<br>%::z — +hh:mm:ss numeric time zone (e.g., -04:00:00)<br>%:::z — numeric time zone with : to necessary precision<br>%Z — alphabetic time zone abbreviation (e.g., EDT)</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*Z2XY5fJbEuPNXalkjYnGiA.png" /></figure><blockquote>Thank You…</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b96423ea3091" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploring options of “espeak-ng”]]></title>
            <link>https://abhinandannahar378.medium.com/exploring-options-of-espeak-ng-7e0f32955055?source=rss-ed02e18d5509------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e0f32955055</guid>
            <dc:creator><![CDATA[Abhinandan Nahar]]></dc:creator>
            <pubDate>Sun, 26 Sep 2021 06:28:07 GMT</pubDate>
            <atom:updated>2021-09-26T06:28:07.106Z</atom:updated>
            <content:encoded><![CDATA[<p>In Linux, espeak-ng is a software speech synthesizer for English, and some other languages.</p><h3><em>espeak-ng [options] [words]</em></h3><h3>A<strong>vailable options in “espeak-ng” :</strong></h3><h3><em>To Speak a sentence in English(by default) Voice :: espeak-ng “Test”</em></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*2S3GBNK4_24Vn4CJW0-bGQ.png" /></figure><h3>To make system speak in different language : -v&lt;voice_name&gt;</h3><h3>Ex,for Afrikans:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/1*PdrZSHu8UPB6p_6ET4Y7PQ.png" /></figure><h3>By default,system would speak out in male voice.To make it female use the following:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GNMgWZOA0eVe1aLVMaM0Sw.png" /></figure><h3>Make text file to speak:-f&lt;file_name&gt;</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EersMG0Rh4jRJkftLPtnOg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e0f32955055" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Zenity]]></title>
            <link>https://abhinandannahar378.medium.com/zenity-e1c24e7eb4cf?source=rss-ed02e18d5509------2</link>
            <guid isPermaLink="false">https://medium.com/p/e1c24e7eb4cf</guid>
            <dc:creator><![CDATA[Abhinandan Nahar]]></dc:creator>
            <pubDate>Sun, 26 Sep 2021 06:02:59 GMT</pubDate>
            <atom:updated>2021-09-26T06:02:59.808Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Zenity</strong> is an open source and a cross-platform application which displays <strong>GTK+ Dialog Boxes</strong> in command-line and using shell scripts. It allows to ask and present information to/from shell in Graphical Boxes. The application lets you create Graphical dialog boxes in command-line and makes the interaction between user and shell very easy.</p><h3>Zenity Command</h3><p>To Display Calendar:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/0*MG8wKg3ikva9ETMf.png" /></figure><p>To display text dialog:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/0*_mTe_ohd3_upiJfT.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/0*ozKbSlimpRbozDWB.png" /></figure><p>To create a info dialog:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/0*E9emSB1SNr5DPQUO.png" /></figure><p>To display warning dialog:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/0*LF1aHXMjl0McLa3l.png" /></figure><p>There are other alternatives<strong>,</strong> but nothing compares to the simplicity of <strong>Zenity</strong>, specially when you don’t need complex programming. Zenity, a tool you must have your hands on.</p><blockquote>Keep Learning…</blockquote><p>Thank You!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e1c24e7eb4cf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“k-means” Clustering and it’s Real World Use cases in Security Domain]]></title>
            <link>https://abhinandannahar378.medium.com/k-means-clustering-and-its-real-world-use-cases-in-security-domain-b2226ceea864?source=rss-ed02e18d5509------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2226ceea864</guid>
            <dc:creator><![CDATA[Abhinandan Nahar]]></dc:creator>
            <pubDate>Sun, 18 Jul 2021 07:32:36 GMT</pubDate>
            <atom:updated>2021-07-18T07:32:36.731Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*v2e-CsXqTIcT1UeP.jpg" /></figure><p><strong>What is Clustering?</strong></p><p>It is basically a type of <a href="https://www.geeksforgeeks.org/supervised-unsupervised-learning/"><em>unsupervised learning method</em></a> . An unsupervised learning method is a method in which we draw references from datasets consisting of input data without labelled responses. Generally, it is used as a process to find meaningful structure, explanatory underlying processes, generative features, and groupings inherent in a set of examples.<br><strong>Clustering</strong> is the task of dividing the population or data points into a number of groups such that data points in the same groups are more similar to other data points in the same group and dissimilar to the data points in other groups. It is basically a collection of objects on the basis of similarity and dissimilarity between them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/0*vbmgSH906POPvNYn.jpg" /></figure><p><strong>Need of Clustering</strong></p><p><strong>Clustering</strong> is an unsupervised machine learning method of identifying and grouping similar data points in larger datasets without concern for the specific outcome. <strong>Clustering</strong> (sometimes called <strong>cluster</strong> analysis) is usually used to classify data into structures that are more easily understood and manipulated.</p><p>Grouping similar entities together help profile the attributes of different groups. The main advantage of clustering over classification is that, it is adaptable to changes and helps single out useful features that distinguish different groups. Clustering is also used to reduces the dimensionality of the data when you are dealing with a copious number of variables.</p><p><strong>What does <em>K-means Clustering </em>mean?</strong></p><p><strong><em>K</em></strong>-means clustering is a type of <a href="https://blogs.oracle.com/ai-and-datascience/post/supervised-vs-unsupervised-machine-learning">unsupervised learning</a>, which is used when you have unlabeled data (i.e., data without defined categories or groups). The goal of this algorithm is to find groups in the data, with the number of groups represented by the variable <strong><em>K</em></strong>. The algorithm works iteratively to assign each data point to one of <strong><em>K</em></strong> groups based on the features that are provided. Data points are clustered based on feature similarity. The results of the <strong><em>K</em></strong>-means clustering algorithm are:</p><p>1.The centroids of the <strong><em>K</em></strong> clusters, which can be used to label new data</p><p>2. Labels for the training data (each data point is assigned to a single cluster)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/0*gT4c_ommJdUGuiiv.png" /></figure><p><strong>How does <em>K-means Clustering</em> works?</strong></p><blockquote>Step 1: Choose the number of clusters k. …</blockquote><blockquote>Step 2: Select k random points from the data as centroids. …</blockquote><blockquote>Step 3: Assign all the points to the closest cluster centroid. …</blockquote><blockquote>Step 4: Recompute the centroids of newly formed clusters. …</blockquote><blockquote>Step 5: Repeat steps 3 and 4.</blockquote><p><strong>Real world use cases of <em>K-means clustering</em> in Security domain</strong></p><h4>1)Cyber-profiling criminals</h4><p>cyber-profiling is the process of collecting data from individuals and groups to identify significant co-relations. the idea of cyber profiling is derived from criminal profiles, which provide information on the investigation division to classify the types of criminals who were at the crime scene. <a href="https://thesai.org/downloads/volume7no7/paper_59-cyber_profiling_using_log_analysis_and_k_means_clustering.pdf">here is an interesting white paper </a>on how to cyber-profile users in an academic environment based on user data preferences.</p><h4>2)Call record detail analysis</h4><p>a call detail record (cdr) is the information captured by telecom companies during the call, sms, and internet activity of a customer. this information provides greater insights about the customer’s needs when used with customer demographics. in <a href="https://www.kdnuggets.com/2017/06/k-means-clustering-r-call-detail-record-analysis.html">this article </a>, you will understand how you can cluster customer activities for 24 hours by using the unsupervised k-means clustering algorithm. it is used to understand segments of customers with respect to their usage by hours.</p><h3>3)Rideshare data analysis</h3><p>the publicly available uber ride information dataset provides a large amount of valuable data around traffic, transit time, peak pickup localities, and more. analyzing this data is useful not just in the context of uber but also in providing insight into urban traffic patterns and helping us plan for the cities of the future. <a href="https://mapr.com/blog/monitoring-real-time-uber-data-using-spark-machine-learning-streaming-and-kafka-api-part-1/">here is an article </a>with links to a sample dataset and a process for analyzing uber data.</p><h4>4)Insurance fraud detection</h4><p>machine learning has a critical role to play in fraud detection and has numerous applications in automobile, healthcare, and insurance fraud detection. utilizing past historical data on fraudulent claims, it is possible to isolate new claims based on its proximity to clusters that indicate fraudulent patterns. since insurance fraud can potentially have a multi-million dollar impact on a company, the ability to detect frauds is crucial. <a href="http://www.aeuso.org/includes/files/articles/vol8_iss27_3764-3771_fraud_detection_in_automobile_insur.pdf">check out this white paper </a>on using clustering in automobile insurance to detect frauds.</p><h3>5)Delivery store optimization</h3><p>optimize the process of good delivery using truck drones by using a combination of k-means to find the optimal number of launch locations and a genetic algorithm to solve the truck route as a traveling salesman problem. <a href="https://upcommons.upc.edu/bitstream/handle/2117/88986/1929-8707-1-pb.pdf?sequence=1&amp;isallowed=y">here is a whitepaper on the same topic </a>.</p><p><strong>Conclusion</strong></p><p>K means clustering is one of the most popular clustering algorithms and usually the first thing practitioners apply when solving clustering tasks to get an idea of the structure of the dataset. The goal of k means is to group data points into distinct non-overlapping subgroups. It does a very good job when the clusters have a kind of spherical shapes and very useful in security domain.</p><p>Thank You…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2226ceea864" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript Usage By Linkedin]]></title>
            <link>https://abhinandannahar378.medium.com/javascript-usage-by-linkedin-4b899aeb0c62?source=rss-ed02e18d5509------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b899aeb0c62</guid>
            <dc:creator><![CDATA[Abhinandan Nahar]]></dc:creator>
            <pubDate>Fri, 25 Jun 2021 12:55:11 GMT</pubDate>
            <atom:updated>2021-06-25T12:55:11.500Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*aiUAZ_TicfbcxKKG.png" /></figure><p>Everyone knows most of the applications ,websites are created by using JavaScript for validation,backend,etc. to manage the webpages and control them as well.This usage is used widely in industries.JavaScript plays an important role in industries so it is important to learn JavaScript and its frameworks.</p><h3><strong>What is JavaScript?</strong></h3><p>JavaScript is a cross-platform, object-oriented scripting language used toofe make webpages interactive. There are also more advanced server side versions of JavaScript such as Node.js, which allow you to add more functionality to a website than downloading files. JavaScript contains a standard library of objects, such as Array, Date and Math and a core set of language elements such as operators, control structures, and statements.</p><h3>How Linkedin uses JavaScript?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/0*CFbR8G5GFkjhEVYt" /></figure><p>LinkedIn is the world’s largest professional network on the internet. You can use LinkedIn to find the right job or internship, connect and strengthen professional relationships, and learn the skills you need to succeed in your career. A complete LinkedIn profile can help you connect with opportunities by showcasing your unique professional story through experience, skills, and education. You can also use LinkedIn to organize offline events, join groups, write articles, post photos and videos, and more.</p><p>When the company sought to release an improved mobile application in 2012, they turned to JavaScript for both the front-end and back-end. By using a combination of HTML and native JavaScript code, LinkedIn’s development team was able to create a well-crafted application with a stunning user interface.</p><p>JavaScript made a major impact on LinkedIn’s mobile application performance as well. Ars Technica performed an in-depth analysis of LinkedIn’s mobile app development in 2012. The website noted that Node.js improved the application’s functionality in a number of ways.</p><p>Node.js increased performance and memory usage in comparison to Ruby on the Rails. In fact, the application ran 20 times faster in some cases. Even more surprising, overall mobile usage increased by 23% once the new app was released.</p><p>The development team also benefited from the switch to JavaScript. Front-end and back-end development could now be performed by a single group. This saved the company money, improved consistency, and enabled the company to cut the number of servers from 30 to 3.</p><p>LinkedIn’s mobile development lead Kiran Prasad told about use of Node in LinkedIn is -&gt; “ We use a ton of technologies at LinkedIn, but for the mobile server piece, it’s entirely Node-based. One reason was scale. The second is, if you look at Node, the thing it’s best at doing is talking to other services. The mobile app has to talk to our platform API and database. We’re not doing massive data analytics. Node showed us huge performance gains compared to what we were using before, which was Ruby on Rails.”</p><p>The improvements the team saw were staggering. They went from running 15 servers with 15 instances (virtual servers) on each physical machine, to just four instances that can handle double the traffic. The capacity estimate is based on load testing the team has done.</p><h3>Advantages Of JavaScript</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/0*6FpNTpP3se2omsBr" /></figure><p>The merits of using JavaScript are −</p><ul><li>Less server interaction − You can validate user input before sending the page off to the server. This saves server traffic, which means less load on your server.</li><li>Immediate feedback to the visitors − They don’t have to wait for a page reload to see if they have forgotten to enter something.</li><li>Increased interactivity − You can create interfaces that react when the user hovers over them with a mouse or activates them via the keyboard.</li><li>Richer interfaces − You can use JavaScript to include such items as drag-and-drop components and sliders to give a Rich Interface to your site visitors.</li></ul><h3><strong>Disadvantages Of JavaScript</strong></h3><ol><li><em>Client-Side Security - </em>Because the code executes on the users’ computer, in some cases it can be exploited for malicious purposes. This is one reason some people choose to disable JavaScript.</li><li><em>Browser Support- </em>JavaScript is sometimes interpreted differently by different browsers.</li></ol><p><strong>Thank You…</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b899aeb0c62" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Role of Confusion Matrix in Cyber Crime]]></title>
            <link>https://abhinandannahar378.medium.com/role-of-confusion-matrix-in-cyber-crime-5efe0129dc34?source=rss-ed02e18d5509------2</link>
            <guid isPermaLink="false">https://medium.com/p/5efe0129dc34</guid>
            <dc:creator><![CDATA[Abhinandan Nahar]]></dc:creator>
            <pubDate>Sun, 06 Jun 2021 15:11:58 GMT</pubDate>
            <atom:updated>2021-06-06T15:11:58.476Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*eR50xfSQ6rxYK63D.jpg" /></figure><h3>What is Cyber Crime?</h3><p><strong>Cybercrime</strong>, also called <strong>computer crime</strong>, the use of a computeras an instrument to further illegal ends, such as committing fraud, trafficking in child pornography and intellectual property, stealing identities, or violating privacy. Cybercrime, especially through the Internet, has grown in importance as the computer has become central to commerce, entertainment, and government.</p><h3><strong>Types Of Cybercrime:</strong></h3><ol><li>Email and internet fraud.</li><li>Identity fraud.</li><li>Theft of financial or card payment data.</li><li>Theft and sale of corporate data.</li><li>Ransomware attacks.</li></ol><h3>What is Confusion Matrix?</h3><p>A Confusion matrix is an N x N matrix used for evaluating the performance of a classification model, where N is the number of target classes. The matrix compares the actual target values with those predicted by the machine learning model. This gives us a holistic view of how well our classification model is performing and what kinds of errors it is making.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*tZEpb5__LSw0Ta4v.png" /></figure><p><em>The target variable has two values: </em><strong><em>Positive </em></strong><em>or </em><strong><em>Negative.</em></strong></p><p><em>The </em><strong><em>columns </em></strong><em>represent the </em><strong><em>actual values</em></strong><em> of the target variable.</em></p><p><em>The </em><strong><em>rows </em></strong><em>represent the </em><strong><em>predicted values </em></strong><em>of the target variable.</em></p><h3>Lets understand the above term given in the figure:</h3><p>True Positive (TP) :- Model Predicted True and Actual Value is also True .</p><p>True Negative (TN) :- Model Predicted False and Actual Value is also False.</p><p>False Positive (FP) :- Model Predicted True and Actual Value is also False</p><p>False Negatives (FN) :- Model Predicted False and Actual Value is also True</p><h3>How Confusion Matrix can helps in Cyber Security Field to tackle with Cyber Attacks ?</h3><ol><li>Confusion matrix not only gives you insight into the errors being made by your classifier but also types of errors that are being made.</li><li>Every column of the confusion matrix represents the instances of that predicted class.</li><li>Each row of the confusion matrix represents the instances of the actual class.</li><li>It shows how any classification model is confused when it makes predictions.</li><li>To design the IDS we can use multiple machine learning algorithms but the question is which algorithm is most accurate in cyber attack detection as well as require less time.To find the answer of this question we need to test and compare the results of various algorithms and here comes the role of “Confusion Matrix”.</li></ol><h3>How To Deal With False Positive and False Negative?</h3><p>A False Positive Error, or False Positive, is a result that indicates a given condition exists when it does not. For example, a pregnancy test which indicates a woman is pregnant when she is not, or the conviction of an innocent person.</p><p>False Positive and False Negative are technical errorsand thus, need close investigation of the system used in tests. In order to solve the problem of False Positive, it is important that the IDS configuration is checked and reviewed</p><p>These false alarms account for roughly 40% of the alerts cybersecurity teams receive on a daily basis and at large organizations can be overwhelming and a huge waste of time.</p><p><em>False negatives</em> are uncaught cyber threats overlooked by security tooling because they’re dormant, highly sophisticated or the security infrastructure in place lacks the technological ability to detect these attacks.</p><h3>What Does a Confusion Matrix Tell You?</h3><p>A Confusion Matrix is an N x N matrix used for evaluating the performance of a classification model, where N is the number of target classes. The matrix compares the actual target values with those predicted by the machine learning model.</p><p>Thanks For Reading..</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5efe0129dc34" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Launching GUI Application On Docker]]></title>
            <link>https://abhinandannahar378.medium.com/launching-gui-application-on-docker-5dad13ce18b?source=rss-ed02e18d5509------2</link>
            <guid isPermaLink="false">https://medium.com/p/5dad13ce18b</guid>
            <dc:creator><![CDATA[Abhinandan Nahar]]></dc:creator>
            <pubDate>Sun, 30 May 2021 09:13:39 GMT</pubDate>
            <atom:updated>2021-05-30T09:13:39.878Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*NkJw4YfTcAJmiXRF.png" /></figure><p>If we are building a UI application and deploying it on a docker container. And we want that UI application to display the user interface screen on your local machine while running the application inside the docker container, we have to connect the display of the Docker container with the display of Local Machine. So, here we want Jupyter Notebook which runs on a browser to be run inside docker container.</p><p>For any Graphical user interface (GUI) application to run,we need Xserver.</p><h3>What is XServer?</h3><p>On Unix-like operating systems, X, typically located at /usr/bin/X, is the original X server executable of MIT’s X Window System. Typically, you do not need to run X manually. If what you’d like to do is start a new X Window session, use the startx command instead.</p><h3><strong><em>To Configure Xserver we have to use following command:</em></strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*216OSVbBO5GONoZEZIJcwA.png" /></figure><p>Run command <strong>yum install python3</strong> to install python in the docker container.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0vQu3evx6LiJDD71fZEqQg.png" /></figure><p>Now, to run jupyter notebook, we should have a browser. So here i am installing firefox browser inside the container using command <strong>yum install firefox.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b2XkgZPnlk6JRsofU2r1vg.png" /></figure><p>Now, lets install jupyter. <strong>pip3 install jupyter.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XrZzT_Cbsqgtho-MXcPp5Q.png" /></figure><p>Now we have to create a workspace where we store our jupyter notebook to train our model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O_kC55i8FFJ7DdSTYVeOPw.png" /></figure><p>We have to transfer our dataset from RHEL8 host to our container.For that open a new terminal and type below command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M8I7xBTQc6y6Sl5WWKAcfg.png" /></figure><p>We need to install some python library to do our work.Used the coomand:<strong>pip3 install pandas numpy scikit-learn</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KOEiRXQyYSMp9huozrSw3Q.png" /></figure><p>To run the jupyter notebook we have to used following command: <strong>jupyter notebook — allow-root</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t5H3N_k5d9KGiTQR9pZlqQ.png" /></figure><p>Create new python3 notebook</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sopl0axZXF3bjYUbV4UjiQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cv49CJbSFu_PZBsnFl4vTw.png" /></figure><p>And in this notebook we can train our ML model.</p><p><strong>Thanks for reading.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5dad13ce18b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>