<?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 EASHUBH THAPLIYAL on Medium]]></title>
        <description><![CDATA[Stories by EASHUBH THAPLIYAL on Medium]]></description>
        <link>https://medium.com/@dikshuthapliyal?source=rss-ccec1cad69d1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*PqyXlac3jdkXTPM1lWpY-A.jpeg</url>
            <title>Stories by EASHUBH THAPLIYAL on Medium</title>
            <link>https://medium.com/@dikshuthapliyal?source=rss-ccec1cad69d1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 19:36:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dikshuthapliyal/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[Flutter Fundamentals: Casting Expecto Patronum on Null Dementors]]></title>
            <link>https://medium.com/@dikshuthapliyal/flutter-fundamentals-casting-expecto-patronum-on-null-dementors-594e0c585b71?source=rss-ccec1cad69d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/594e0c585b71</guid>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[nullcheck]]></category>
            <category><![CDATA[nullpointerexception]]></category>
            <category><![CDATA[null-safety]]></category>
            <dc:creator><![CDATA[EASHUBH THAPLIYAL]]></dc:creator>
            <pubDate>Sun, 22 Sep 2024 13:45:50 GMT</pubDate>
            <atom:updated>2024-09-22T13:45:50.818Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*TmVJNaacjf3I4rblW0vkyg.png" /></figure><p>Hey there, Flutter dev 👋 Ever had that sinking feeling when you reach for your phone, and it’s not in your pocket? That moment of panic is kinda like what happens in programming when we try to use something that isn’t there. In the coding world, we call this mysterious “not there” thing null. Today, we&#39;re going to learn how to handle null like a pro in Dart, so your Flutter apps can be as cool as a cucumber 🥒 (and not crash!).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*wEvr8ZO9YrswXCMauEHsVg.png" /></figure><h4>What’s the Big Deal with Null?</h4><p>In the coding world, assume Null Dementors as errors that occur when we try to use something that isn’t there — something that’s null. Just as Dementors can suck the happiness out of a person, these null errors can suck the life out of your app, causing it to crash faster than you can say &quot;Quidditch&quot;!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*W9uh72tFzE2s2CZXbOkDhQ.png" /></figure><h4>Null Safety: Dart’s Expecto Patronum</h4><p>Fear not, for Dart has given us a powerful charm to ward off these Null Dementors: Null Safety! Like the Patronus charm, null safety creates a protective barrier around your code, keeping those nulls from taking away the fun from your app.</p><p>Let’s learn how to cast this charm with various incantations:</p><ol><li><strong>The “?” : The Nullable marking</strong></li></ol><pre>String? maybePatronus = summonPatronusFunc(); // maybePatronus can hold either <br>// a String or a null , so no matter if summonPatronusFunc() returns a string <br>// or return a null , in any case its safe to assign the return value <br>// to maybePatronus variable.<br></pre><p>So in the above code we added “ ? ” after the data type. This tells dart that the variable being defined can contain a value or a null or in other words that maybePatronus is a Nullable String.</p><p><strong>2. The “!” Operator : The absolute Non-Null Marking</strong></p><pre>String definitelyPatronus = maybePatronus!; // The value of maybePatronus is<br>//100% not null, and it can be assigned to a non-null String definitelyPatronus</pre><p>The ! is like declaring, &quot;I solemnly swear this variable is not null!&quot; But beware – if you&#39;re wrong, you might find yourself face-to-face with a Null Dementor or a “Null check operator used on a null value ” Exception !</p><p><strong>3. The “??” Operator: The Backup Plan</strong></p><pre>String patronus = maybePatronus ?? &quot;Expecto Patronum!&quot;;// If the value of <br>// maybePatronus is null , then assign &quot;Expecto Patronum!&quot; to patronus.</pre><p>This is like having another charm ready , in case the charm you were expecting turned out to be a null .</p><p><strong>4. The “?.” Operator: The Cautious Spell</strong></p><pre>int? patronusStrength = maybePatronus?.length; // So lets say<br>// that maybePatronus is null , and we are trying to get length of a null ie.<br>// calculating length of something that does not exist (null) , this will <br>// result in null exception.<br>// Thats why we used ?. operator<br></pre><p>If maybePatronus is not null, then we will get its length easily , and if its null, then null will be assigned to patronusStrength as patronusStrength is a nullable integer , so it can hold a null or an int .<br>Lets say we are pretty sure that maybePatronus is not going to be null then we can use maybePatronus!.length to get the lenght . Again if you are wrong and maybePatronus is indeed null then you would again face the Null Exception.</p><p>This is like cautiously peeking around a corner before casting your spell. If maybePatronus exists, we&#39;ll get its length. If not, patronusStrength will be null, and we&#39;ll quietly back away without any Null Errors!</p><h4>Wrapping Up: Null Safety in Plain Terms</h4><p>Alright, let’s step back from the magical world and look at null safety in simple coding terms:</p><p>Null safety is all about preventing errors that happen when we try to use something that isn’t there (null) in our code. It’s like trying to use a toy that’s not in your toy box — it just doesn’t work!</p><p>Here’s what you need to remember:</p><ol><li>The ? symbol: This tells Dart &quot;Hey, this thing might be null, and that&#39;s okay.&quot; It&#39;s like putting a question mark on your toy box.</li></ol><pre>String? toyName = getToyFromBox();</pre><p>2. The ! symbol: This is you telling Dart &quot;I promise this thing is definitely not null &quot; But be careful – if you&#39;re wrong, your app might crash.</p><pre>String definitelyAToy = toyName!;</pre><p>3. The ?? symbol: This is like saying &quot;Try to use this thing, but if it&#39;s null there, use this other thing instead.&quot;</p><pre>String toyToPlay = toyName ?? &quot;default toy&quot;;</pre><p>4. The ?. symbol: This is a careful way to use something that might be null. If it&#39;s null , Dart just skips it instead of crashing.</p><pre>int? toySize = toyName?.length;</pre><p>Remember, the goal of null safety is to help you catch mistakes early and write more reliable code. It might seem a bit tricky at first, but with practice, it becomes second nature. Soon, you’ll be handling nulls like a pro, making your Flutter apps stronger and less likely to crash.</p><p>Keep coding, keep learning, and don’t be afraid to experiment. Every great developer started where you are now!</p><p>Stay tuned for our next article, where we’ll dive deeper into the world of Flutter and unlock more of its potential</p><p>Happy coding, and may your widgets always align perfectly! 🚀📱✨</p><p>Like , share , save and follow .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=594e0c585b71" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter Foundations: Solving the Mystery of Scaffold, MaterialApp]]></title>
            <link>https://medium.com/@dikshuthapliyal/flutter-foundations-solving-the-mystery-of-scaffold-materialapp-c905aff7017b?source=rss-ccec1cad69d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/c905aff7017b</guid>
            <category><![CDATA[materialapp]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[scaffold]]></category>
            <category><![CDATA[beginners-tips]]></category>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[EASHUBH THAPLIYAL]]></dc:creator>
            <pubDate>Sun, 15 Sep 2024 13:28:23 GMT</pubDate>
            <atom:updated>2024-09-15T13:28:23.500Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*6e2_1V6e100EUQGX8m2tEg.png" /></figure><p>Hey there, future Flutter wizards! 👋 Whether you’re coming from coding languages like Java, C++, or you’re completely new to programming, let’s break down some key Flutter concepts that will help you build strong foundation for you Flutter — ing career .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*ty6mGyHGoVscPnzHH5US8g.gif" /><figcaption>The runApp method.</figcaption></figure><h4><strong>The Initiation of a Flutter App: Where It All Begins</strong></h4><p>Every program needs a starting point, and Flutter apps are no exception. But here’s where it gets interesting — we actually have two important “kickoff points” to consider:</p><ol><li><strong>The Dart Entry Point</strong>: As Flutter (Framework) uses Dart(language) , the main() function is the entry point for a Dart program.</li><li><strong>The Flutter App’s Starting Point</strong>: The runApp() function</li></ol><pre>void main() {<br>  runApp(MyApp());<br>}</pre><h4>The Dart Entry Point: main()</h4><p>The main() function is the entry point for any Dart program, including Flutter apps. It&#39;s where the Dart runtime begins executing your code. If you&#39;re coming from other programming languages, this might look familiar:</p><ul><li>In C++, you’ve got: int main() { /* your code here */ }</li><li>Java gives you: public static void main(String[] args) { /* your code here */ }</li><li>Python keeps it simple with: if __name__ == &quot;__main__&quot;: # your code here</li></ul><h4><strong>The Flutter App’s Starting Point: runApp()</strong></h4><p>While main() is where Dart starts, runApp() is where your Flutter app truly comes to life. This function is specific to Flutter and serves as the starting point for your Flutter app. It takes the root widget of your app (usually a MaterialApp or CupertinoApp) and tells Flutter, &quot;Hey, start building the UI from this widget!&quot;</p><p>So, you can think of it like this:</p><ul><li>main() says, &quot;Dart, wake up! We&#39;ve got code to run.&quot;</li><li>runApp() says, &quot;Flutter, it&#39;s showtime! Let&#39;s start building our app&#39;s UI.&quot;</li></ul><p>This two-step process allows Flutter to seamlessly integrate with Dart while providing its own app-specific initialization.</p><h4>MaterialApp: Your App’s Trusty Sidekick</h4><p>Now, let’s chat about MaterialApp. Think of it as your app&#39;s personal assistant, always there to help out with the basics so you can focus on the cool stuff.</p><pre>class MyApp extends StatelessWidget { // Dont focus here ....<br>  @override                           //  or here<br>  Widget build(BuildContext context) { // not even here ....<br>    return MaterialApp( // yess this should be your focus ....<br>      title: &#39;My Awesome Flutter App&#39;,<br>      theme: ThemeData(<br>        primarySwatch: Colors.blue,<br>      ),<br>      home: MyHomePage(),<br>    );<br>  }<br>}</pre><p>MaterialApp does a bunch of behind-the-scenes work:</p><ol><li><strong>It’s your app’s navigator</strong>: Imagine you’re in a big building with many rooms. The navigator helps you move from room to room. In app terms, it helps you move between different screens or pages.</li><li><strong>It sets the dress code</strong>: The theme property is like setting a dress code for your app. Want everything to have a blue vibe? This is where you say it. It keeps your app looking consistent and snazzy.</li><li><strong>It’s the welcoming committee</strong>: The home property is like telling your app, &quot;When someone arrives, this is where you should greet them.&quot; It&#39;s the first thing users see when they open your app.</li></ol><h4>Scaffold: The Swiss Army Knife of Flutter UI</h4><p>Now, let’s talk about Scaffold. If you&#39;ve ever seen construction workers putting up scaffolding around a building, you&#39;ve got the right idea. Just like scaffolding provides a structure for workers to build and decorate a building, Flutter&#39;s Scaffold gives you a structure to build your app&#39;s UI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xJ9nVAT-NMZGpmW6M2-xdg.png" /><figcaption>This is called Scaffolding (in construction terms)</figcaption></figure><h4>Want to see what Scaffold automatically does for you ?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*M4zAmsmlRgmTnka5N_NrSA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*PW07SaIqyAz9zMFI8LJKwg.png" /><figcaption>With Scaffold Left |||| Without Scaffold Right</figcaption></figure><p>Here’s why Scaffold is so handy:</p><ol><li><strong>It’s like the floor plan of a house</strong>: Just as a house has specific areas for the kitchen, living room, etc., Scaffold gives you dedicated spaces for things like the app bar, the main content area (body), and even a special spot for a floating action button.</li><li><strong>It’s adaptable</strong>: Building a skyscraper? A cozy cottage? Scaffold works for both! Whether you&#39;re making a simple one-screen app or a complex multi-page application, Scaffold has got your back.</li><li><strong>It handles the basics</strong>: Ever noticed how most apps have a bar at the top with the app’s name? That’s the app bar, and Scaffold makes it super easy to add one. It&#39;s like getting pre-installed cabinets in your new kitchen – they&#39;re there if you need them, but you can always customize or remove them.</li><li><strong>It’s responsive</strong>: Scaffold automatically adjusts to different screen sizes. It&#39;s like having a room that magically expands or shrinks to always fit perfectly, no matter the size of your house.</li></ol><p>More about Scaffold <a href="https://api.flutter.dev/flutter/material/Scaffold-class.html">here</a> .</p><h4>The Material Design Connection</h4><p>Now, you might be wondering, “What’s with all this ‘Material’ stuff? I thought we were doing Flutter, not Android!” Well, here’s a fun fact: Flutter’s Material widgets are inspired by Google&#39;s Material Design, but they&#39;re not just for Android!</p><p>Imagine you’re designing a building. Material Design is like a set of architectural guidelines that suggest using certain types of materials, shapes, and layouts to create a modern, functional space. In the app world, it’s a design language that Google created to make apps intuitive and visually pleasing.</p><p>Flutter took this idea and said, “Hey, this looks great! Let’s make it work everywhere!” So even though it started as an Android thing, Flutter’s implementation works on iOS, web, and pretty much anywhere Flutter runs. It’s like designing a house that looks great whether you build it in the city / urban or the countryside / rural!</p><p>You can view all the Material Components Flutter has to offer <a href="https://docs.flutter.dev/ui/widgets/material">here</a> and <a href="https://m3.material.io/develop/flutter">here</a></p><h3>Wrapping Up: Putting It All Together</h3><p>So, let’s recap our Flutter app anatomy:</p><ol><li>It all starts with main(), the entry point where your app takes its first breath.</li><li>MaterialApp is your app&#39;s personal assistant, handling themes, navigation, and other app-wide settings.</li><li>Scaffold is your UI&#39;s best friend, giving you a flexible structure to build beautiful, functional layouts.</li></ol><p>Together, these elements form the backbone of your Flutter app, giving you a solid foundation to build upon. As you grow more comfortable with these concepts, you’ll find yourself creating more complex and beautiful UIs with ease.</p><p>Stay tuned for our next article, where we’ll dive deeper into the world of Flutter and unlock more of its potential</p><p>Happy coding, and may your widgets always align perfectly! 🚀📱✨</p><p>Like , share , save and follow .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c905aff7017b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Flutter is Revolutionizing App Development: A Game-Changer for Beginners and Pros]]></title>
            <link>https://medium.com/@dikshuthapliyal/why-flutter-is-revolutionizing-app-development-a-game-changer-for-beginners-and-pros-51c154aa75da?source=rss-ccec1cad69d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/51c154aa75da</guid>
            <category><![CDATA[why-choose-flutter]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutter-beginner]]></category>
            <dc:creator><![CDATA[EASHUBH THAPLIYAL]]></dc:creator>
            <pubDate>Sun, 25 Aug 2024 13:09:40 GMT</pubDate>
            <atom:updated>2024-09-15T13:41:45.923Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*hlEuIkEzLG19ZlEiUjpD_w.png" /></figure><p>In today’s rapidly changing world of app development, Flutter has risen to great position, offering an innovative alternative to traditional native app development. Whether you’re just starting out or you’re a pro, Flutter might just be the tool that transforms the way you approach your projects.</p><h4>What is Flutter?</h4><p>Flutter, created by Google, is a powerful framework that helps you build apps for mobile, web, and desktop using just one codebase. It’s based on Dart, a programming language designed to make creating user-friendly interfaces easier.</p><p><strong>Umm but what is a Framework</strong> ?<br>A framework is like a toolbox for developers. It provides a set of pre-built tools and components that make it easier to build software.</p><p>For example, if you’re building a house, a framework would be like having a kit with ready-made walls, doors, and windows that you can put together, rather than building everything from scratch. In software development, a framework like Flutter gives you ready-made pieces (like buttons, text fields, and layouts) that you can use to build your app, saving you time and effort.</p><h4><strong>Why Flutter Stands Out:</strong></h4><ol><li><strong>Rapid Development</strong>: Flutter’s hot reload feature lets you see changes in your app right away as you code, which speeds up development. This means you can quickly test new ideas, make improvements faster, and get your app ready for launch sooner.</li><li><strong>Cross-Platform Efficiency</strong>: With Flutter, you write your code once and use it for different platforms like Android, iOS, web, and desktop. This saves you time and ensures your app looks and works the same everywhere, so you don’t have to manage separate versions of your code.</li><li><strong>Beautiful, Customizable UI</strong>: Flutter offers a wide variety of customizable widgets that make it easy to create beautiful, branded apps that look and feel natural on both iOS and Android.</li></ol><p><strong>What is a Widget in flutter ?</strong></p><p>A widget in Flutter is a basic building block of your app’s user interface. It can be something simple like a button or text, or more complex like a layout or an entire screen. Basically everything you see in a Flutter app is made up of widgets.</p><p>Lets continue with the pros of flutter .</p><p>4. <strong>Growing Community and Support</strong>: Flutter’s community is vibrant and expanding rapidly. This means more packages, tools, and resources are becoming available every day, making development even easier.</p><p>5.<strong> Future-Proof Technology</strong>: As Flutter expands to web and desktop, your skills become more versatile, allowing you to create apps for multiple platforms with a single skill set.</p><p>6.<strong> Performance</strong>: Flutter’s performance is on par with native apps in most cases, thanks to its compilation to native code and <strong>Skia</strong> its efficient rendering engine .</p><h4>Addressing the Native Aspect</h4><p>While Flutter is our focus, it’s important to acknowledge the value of understanding native development. Having a solid grasp of platform-specific concepts can enhance your Flutter projects, especially when you need to dip into platform-specific code to unlock certain features.</p><h4><strong>Cons of Flutter (and How to avoid them):</strong></h4><ul><li><strong>Slightly larger app size:</strong> This can be easily optimized with the right techniques (We will take up this topic in the future articles).</li><li><strong>Learning curve for Dart:</strong> While Dart is different, it shares similarities with other popular languages, making the transition smoother than you might expect.</li><li><strong>Occasional delay in access to the newest platform features:</strong> While some features might be slower to appear in Flutter, you can stay up-to-date by integrating native code. Additionally, sometimes achieving certain features can be complex or not well-defined in Flutter’s documentation, but you can address these by writing platform-specific code</li></ul><p><strong>Why Choose Flutter Over Native:</strong></p><ul><li><strong>Cost-Effective:</strong> Build your app for multiple platforms with a single codebase, saving on development and maintenance costs.</li><li><strong>Faster Time-to-Market:</strong> Quickly launch your minimum viable product (MVP) and make improvements based on user feedback.</li><li><strong>Consistent Brand Experience:</strong> Keep your app’s look and feel uniform across all platforms.</li><li><strong>Future-Ready:</strong> As Flutter grows and supports more platforms, your skills will remain relevant and valuable.</li><li><strong>Backed by Google:</strong> Enjoy the backing and resources of a major tech company.</li></ul><h4>Conclusion</h4><p>While native development will always have its place, Flutter is shaping up to be the future of app development. It offers a powerful, efficient, and enjoyable development experience that’s hard to match. Whether you’re a beginner looking to make your mark or an experienced developer seeking to broaden your horizons, Flutter provides a compelling path forward.</p><p>Stay tuned for our next article, where we’ll dive deeper into the world of Flutter and unlock more of its potential</p><p>Like , share , save and follow .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=51c154aa75da" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simple Python Program To detect Number Plates of the cars and look for their information using RTO…]]></title>
            <link>https://medium.com/@dikshuthapliyal/simple-python-program-to-detect-number-plates-of-the-cars-and-look-for-their-information-using-rto-b3e1326ac263?source=rss-ccec1cad69d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3e1326ac263</guid>
            <dc:creator><![CDATA[EASHUBH THAPLIYAL]]></dc:creator>
            <pubDate>Tue, 07 Sep 2021 16:44:25 GMT</pubDate>
            <atom:updated>2021-09-07T16:44:25.725Z</atom:updated>
            <content:encoded><![CDATA[<h3>Simple Python Program To detect Number Plates of the cars and look for their information using RTO API</h3><p>So here’s a python program that detects the number plate of the cars and then prints their information.</p><p>I have used edge and contour detection to look for the car license plate .</p><p>After that I used easyocr to extract the text in the number plate .</p><p>After extraction of the text I have created a simple function that looks for the information of the key we provide using the API .I then have passed the extracted text to the particular function and print the details</p><p>The link for the particular code is <a href="https://github.com/Eashubh128/number_plate_detection">https://github.com/Eashubh128/number_plate_detection</a></p><p>I am open to all suggestions and collaboration .</p><p>Thank you .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3e1326ac263" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CGI AND KUBERNETES]]></title>
            <link>https://medium.com/@dikshuthapliyal/cgi-and-kubernetes-a5dc9b93c23?source=rss-ccec1cad69d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/a5dc9b93c23</guid>
            <dc:creator><![CDATA[EASHUBH THAPLIYAL]]></dc:creator>
            <pubDate>Tue, 24 Aug 2021 15:31:21 GMT</pubDate>
            <atom:updated>2021-08-24T15:31:21.737Z</atom:updated>
            <content:encoded><![CDATA[<p>This article is going to cover the concepts of a CGI program that helps to run</p><p>CGI commands on redhat(here working as the server ).</p><p>Lets Configure kubernetes and kubectl in “REDHAT”:-</p><ol><li>I have kubernetes and minikube installed in Windows(host).To run kubectl commands in redhat ,we have to do to setups,first one being transferring the kubernetes certificates and config file from windows to redhat inside a new folder named “.kube”,second install kubectl in the redhat.Furthermore you have to update the path of the certificate in the config file .</li><li>Now we have to configure the network adapters of redhat to match them with the adapters of the minkube vm.</li><li>After completing with the above mentioned steps ,all you have to do is start the minikube and launch the website with which user will interact with the redhat and will be able to run commands on redhat.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a5dc9b93c23" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cyber Crime and Confusion Matrix]]></title>
            <link>https://medium.com/@dikshuthapliyal/cyber-crime-and-confusion-matrix-102950ebaab4?source=rss-ccec1cad69d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/102950ebaab4</guid>
            <dc:creator><![CDATA[EASHUBH THAPLIYAL]]></dc:creator>
            <pubDate>Wed, 11 Aug 2021 16:27:18 GMT</pubDate>
            <atom:updated>2021-08-11T16:27:18.538Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction to Confusion Matrix</h3><p>After data cleaning and pre-processing, the first step we do is to feed the data to the ML model. But we need to measure the effectiveness of our model. Better the effectiveness, better the performance and that’s exactly what we want. And it is where the Confusion matrix comes into play. Confusion Matrix is a performance measurement for machine learning classification.</p><h3>What is Confusion Matrix?</h3><p>It is a performance measurement for machine learning classification problem where output can be two or more classes. It is a table with 4 different combinations of predicted and actual values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/60/0*SBr-jgfyWUFZZFuE" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/356/0*eTh1veCrCSJUFFIm.png" /></figure><p>It is extremely useful for measuring Recall, Precision, Specificity, Accuracy and most importantly AUC-ROC Curve. Now let’s understand TP, FP, FN, TN in terms of pregnancy analogy.</p><p><strong>✅ True Positive:</strong></p><p><strong>Interpretation:</strong> You predicted positive and it’s true.</p><p><strong>Example: </strong>You predicted that a woman is pregnant and she actually is.</p><p><strong>✅ True Negative:</strong></p><p>b You predicted negative and it’s true.</p><p><strong>Example: </strong>You predicted that a man is not pregnant and he actually is not.</p><p><strong>✅ False Positive: (Type 1 Error)</strong></p><p><strong>Interpretation:</strong> You predicted positive and it’s false.</p><p><strong>Example: </strong>You predicted that a man is pregnant but he actually is not.</p><p><strong>✅ False Negative: (Type 2 Error)</strong></p><p><strong>Interpretation: </strong>You predicted negative and it’s false.</p><p><strong>Example: </strong>You predicted that a woman is not pregnant but she actually is.</p><h3>Cyber Crime</h3><p>Cyber-attacks have become one of the biggest problems of the world. They cause serious financial damages to countries and people every day. The increase in cyber-attacks also brings along cyber-crime. The key factors in the fight against crime and criminals are identifying the perpetrators of cyber-crime and understanding the methods of attack. Detecting and avoiding cyber-attacks are difficult tasks. However, researchers have recently been solving these problems by developing security models and making predictions through artificial intelligence methods.</p><p>The above 2 types of error(Type 1 and Type 2) is very critical in cyber security. Here is an example. Consider a face recognition system which is installed infront of the data warehouse which holds critical error. Consider that the manager comes and the recognition system is unable to recognize him. He tries to log in again and is allowed in.</p><p>Let’s consider another condition. A new person comes and tries to log himself in. The recognition system makes and error and allows him in. Now, this is very dangerous. An unauthorized person has made an entry. This could be very damaging to the whole company.</p><p>In both the cases there was an error in the face recognition system. This shows the critical nature that might vary according to situation and condition where we want a tradeoff between the two types of error.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=102950ebaab4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kmeans And Its Uses in Security Domain]]></title>
            <link>https://medium.com/@dikshuthapliyal/kmeans-and-its-uses-in-security-domain-866fee62fe50?source=rss-ccec1cad69d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/866fee62fe50</guid>
            <dc:creator><![CDATA[EASHUBH THAPLIYAL]]></dc:creator>
            <pubDate>Wed, 11 Aug 2021 16:19:39 GMT</pubDate>
            <atom:updated>2021-08-11T16:19:39.112Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Kmeans And Its Uses in Security Domain</strong></p><p><strong>What is K-MEANS ?</strong></p><p>k-means clustering is a method of vector quantization, originally from signal processing, that aims to partition observations into k clusters in which each observation belongs to the cluster with the nearest mean, serving as a prototype of the cluster.To tell u guys in a very basic or should i say in layman terms , kmeans is an algorithm that is basically used for solving problems that require user or the programmer to differentiate between classes.To be more basic and simple,it is a method used to solve classification problems</p><p>1. Specify number of clusters <em>K</em>.</p><p>2. Initialize centroids by first shuffling the dataset and then randomly selecting <em>K </em>data points for the centroids without replacement.</p><p>3. Keep iterating until there is no change to the centroids. i.e assignment of data points to clusters isn’t changing.</p><ul><li>Compute the sum of the squared distance between data points and all centroids.</li><li>Assign each data point to the closest cluster (centroid).</li><li>Compute the centroids for the clusters by taking the average of the all data points that belong to each cluster.</li></ul><p><strong>Now what is this “Classification Problem ”</strong></p><p>In machine learning, classification refers to <strong>a predictive modeling problem</strong> where a class label is predicted for a given example of input data. Examples of classification problems include: Given an example, classify if it is spam or not. Given a handwritten character, classify it as one of the known characters.</p><p><strong>Use of K-Means in real life</strong></p><p>A clustering algorithm like K-Means Clustering can <strong>help you group the data into distinct groups</strong>, guaranteeing that the data points in each group are similar to each other. A good practice in Data Science &amp; Analytics is to first have good understanding of your dataset before doing any analysis.</p><p><strong>Kmeans in Security Domain</strong></p><p>Cyber Profiling</p><p>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. Profiling is more specifically based on what is known and not known about the criminal. Profiling is information about an individual or group of individuals that are accumulated, stored, and used for various purposes, such as by monitoring their behavior through their internet activity . Difficulties in implementing cyber profiling is on the diversity of user data and behavior when online is sometimes different from actual behavior. Given the privilege in personal behavior, inductive generalizations can be very reliable but can also lead to a misunderstanding of behavior analysis. Therefore the cyber-profiling process is via a combination of deductive and inductive methods. For investigation, the cyber-profiling process gives a good, contributing to the field of forensic computer science. Cyber Profiling is one of the efforts made by the investigator, to know the alleged offenders through the analysis of data patterns that include aspects of technology, investigation, psychology, and sociology.</p><p>✔ Cyber Profiling process can be directed to the benefit of:</p><p>✨ Identification of users of computers that have been used previously.</p><p>✨ Mapping the subject of family, social life, work, or network-based organizations, including those for whom he/she worked.</p><p>✨ Provision of information about the user regarding his ability, level of threat, and how vulnerable to threats</p><p>✨ Identify the suspected abuser</p><p>The process of profiling against criminals often also known as cyber-criminal profiling criminal investigation or analysis. Criminal profiles generated in the form of data on personal traits, tendencies, habits, and geographic-demographic characteristics of the offender (for example: age, gender, socioeconomic status, education, origin place of residence). Preparation of criminal profiling will relate to the analysis of physical evidence found at the crime scene, the process of extracting the understanding of the victim (victimology), looking for a modus operandi (whether the crime scene planned or unplanned), and the process of tracing the perpetrators were deliberately left out (signature). The new approach to cyber profiling is to use clustering techniques to classify the Web-based content through data user preferences. This preference can be interpreted as an initial grouping of the data so that the resulting cluster will show user profiles. User profiling can be seen as the conclusion of the interests of users, intentions, characteristics, behavior and preferences. User profiles are created for a description of the background knowledge of the user. User profile represents a concept model which is owned by the user when searching for information web.</p><p>✔ Below Figure shows the flow of the application of K-Means algorithm in the profiling process:-</p><p>✔ Below Figure is a flow of the algorithm K-Means:</p><p>Initialization of the initial cluster center in the clustering process can be seen in Table 2.</p><p>An initial value is determined based on the data that have the highest value, the median value, and the smallest value. Those values are at the center of the initial cluster that will be followed in the process of “K-Means”.</p><p>The new centroid calculations will continue to do (iteration) until the discovery of iterations where centroid result is the same as the results of the previous centroid. The iteration process can be seen in Table 3.</p><p>The result of the iteration process in determining the initial clustering center can be seen in Table 4.</p><p>The results of clustering details will be explained as follows:</p><p>✨ Cluster-1. On the results of clustering that has been done, the first cluster has as much data as 1467 records. The first cluster has the most members, but this cluster has a value which is below the overall average of the data studied. In the first cluster has a data value in the range of 1–10, because in this cluster of existing data has a low level of traffic. Thus, cluster unity categorized on the website that has the least traffic from another cluster.</p><p>✨ Cluster-2. In the second cluster, members who entered at this cluster of some 126 records. The value of the results of the second cluster is in the range 11–31. This value indicates that the members of the second cluster have a medium level visits, because it has a higher value than the average value generated by clustering. Thus, the second cluster of clusters categorized as having moderate traffic levels.</p><p>✨Cluster-3. On the results of the third cluster, cluster members who sign on as many as 33 records. The results of this third cluster have the fewest number of members in comparison with other clusters, but the members of this cluster have the highest value of the data that has been generated. The value in this cluster is in the 34–63 range, pointing to a result that the third cluster has a value far above average. Thus, the third cluster is categorized as a cluster that has the highest traffic levels.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=866fee62fe50" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>