<?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 Mohit Gupta on Medium]]></title>
        <description><![CDATA[Stories by Mohit Gupta on Medium]]></description>
        <link>https://medium.com/@itsmohitt?source=rss-8a83ee54ef0e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*jafGfzwijBiybTDzErOGeQ.jpeg</url>
            <title>Stories by Mohit Gupta on Medium</title>
            <link>https://medium.com/@itsmohitt?source=rss-8a83ee54ef0e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 16 Nov 2026 16:20:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@itsmohitt/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[Working with OpenLayers 4 | Part 3— Setting customised markers and images on the map]]></title>
            <link>https://medium.com/attentive-ai/working-with-openlayers-4-part-3-setting-customised-markers-and-images-on-map-da3369a81941?source=rss-8a83ee54ef0e------2</link>
            <guid isPermaLink="false">https://medium.com/p/da3369a81941</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[gis]]></category>
            <category><![CDATA[maps]]></category>
            <category><![CDATA[openlayers-3]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Mohit Gupta]]></dc:creator>
            <pubDate>Sun, 20 May 2018 07:31:00 GMT</pubDate>
            <atom:updated>2019-10-20T12:22:14.695Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g8171BzNFnjmHY-1nXdusA.jpeg" /><figcaption>Working with OpenLayers 4 | Part 3 — Setting customized markers and images on the map</figcaption></figure><p>In the Previous Part <a href="https://medium.com/magentacodes/working-with-openlayers-4-part-2-using-markers-or-points-on-the-map-f8e9b5cae098">Working with OpenLayers 4 | Part 2 — Using markers or points on the map</a>, we learned about making a marker on a given latitude and longitude on map.</p><p>In this article, we will customise the markers according to our need and place an image to a particular latitude and longitude extents.</p><blockquote>Note: This article requires a server application on your machine or you will have <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin">Access-Control-Allow-Origin</a> issue. My recommendation is to use <a href="http://www.wampserver.com/en/">WAMP(Windows)</a> / <a href="https://bitnami.com/stack/lamp/installer">LAMP(Linux)</a> / <a href="https://www.mamp.info/en/">MAMP(Macintosh)</a> on the local machine if you do not know so much about <a href="https://httpd.apache.org/">Apache</a> or <a href="https://www.nginx.com/">Nginx</a> setup on your local machine.</blockquote><p>We will start with the previous codes and will customise the marker we set on the New York City’s City Hall. Followed by adding an image over the city hall with bounding area.</p><h3>Customising the Marker:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/20/1*SQI_HuavHth418JorokW1Q.png" /><figcaption>Image to be used for markers</figcaption></figure><p>For customization, we will be using a transparent background image of dot and will fill it with magenta color (Hex Code: ‎#FF00FF).</p><blockquote>Key point: In OpenLayers, if you want to customize the style of point, line or polygon, you can use the setStyle() method of the object you created passing an ol.style.Style() object as an argument.</blockquote><p>In our case we will set an image in the style of marker:</p><pre>var marker = new ol.Feature({<br>  geometry: new ol.geom.Point(<br>    ol.proj.fromLonLat([-74.006,40.7127])<br>  ),  // Cordinates of New York&#39;s City Hall<br>});</pre><pre>marker.setStyle(new ol.style.Style({<br>        image: new ol.style.Icon(({<br>            crossOrigin: &#39;anonymous&#39;,<br>            src: &#39;dot.png&#39;<br>        }))<br>    }));</pre><p>On setting the image on the marker, our City Hall’s marker will look in the following way:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0mISCAkso6nGynP9ohvQiA.png" /></figure><p>To set the color of the background of the marker’s image, add the color attribute in the image style object.</p><pre>marker.setStyle(new ol.style.Style({<br>        image: new ol.style.Icon(({<br>            color: &#39;#ffcd46&#39;,<br>            crossOrigin: &#39;anonymous&#39;,<br>            src: &#39;dot.png&#39;<br>        }))<br>    }));</pre><p>Now, if we reload the page, we can clearly see that the image that we have used for the marker have a yellow background now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fmChT60NghulWsgcxCq_JQ.png" /></figure><p>In this way, you can customize the marker and use the color or images of your own desire to make your markers more interactive.</p><h3>Adding an image to an extent:</h3><p>As we have placed a marker on the map using our own image. Now, if you want to set an image for a specific area, you can also do that in OpenLayers library. This type of functionality is especially useful for GIS industries when you don’t have a geo-tagged satellite image but the extent coordinates.</p><p>For the setting of the image, we will use the Image subclass of OpenLayers’s layer class and pass the ImageStatic subclass of source class in it as a source.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*pJI7Lq0pv0WQYFazJjXRDg.png" /><figcaption>Beard Guy (photo.png)</figcaption></figure><p>I am going to use the image of this bearded guy to place over the city hall.</p><p>This time we will not have to give the lat-long of a point location. We will define the image in a rectangular area by giving the latitudes of south and north of the area and longitudes of east and west of the area. In other words, you need the north-east and south-west coordinates of the area on which you are going to mount the image on the map.</p><pre>var north = 40.7127;<br>var south = 40.7129;<br>var east = -74.0059;<br>var west = -74.0061;<br>var extent = ol.proj.transformExtent([east, north, west, south], &#39;EPSG:4326&#39;, &#39;EPSG:3857&#39;);<br>var imageLayer = new ol.layer.Image({<br>  source: new ol.source.ImageStatic({<br>                url: &#39;photo.png&#39;,<br>                imageExtent: extent<br>              })<br>});<br>map.addLayer(imageLayer);</pre><p>I have used a transformExtent method to convert the Latitude and Longitude extent coordinates for the mapping library. And if you reload the webpage and zoom to the pointer, you can clearly see our beard guy over the City Hall.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LGHN9bfjrAKBLwZdtu8mQw.png" /></figure><p>In this way you can certainly place any image over anywhere on the map, covering as much extent as you need.</p><p>You can download the full code from this <a href="https://github.com/itsmohitt/openlayers-tutorials/commit/cf80e6a21949fb406332b2c19d9069b804805cd6">Github</a> repo.</p><h4>Full Course Links:</h4><ul><li><a href="https://medium.com/magentacodes/working-with-openlayers-4-part-1-creating-the-first-application-9ab27bbd7a62">Working with OpenLayers 4 | Part 1 — Creating the first application</a></li><li><a href="https://medium.com/@itsmohitt/working-with-openlayers-4-part-2-using-markers-or-points-on-the-map-f8e9b5cae098">Working with OpenLayers 4 | Part 2 — Using markers or points on the map</a></li><li><a href="https://medium.com/attentive-ai/working-with-openlayers-4-part-3-setting-customised-markers-and-images-on-map-da3369a81941">Working with OpenLayers 4 | Part 3 — Setting customized markers and images on the map</a></li><li>…</li></ul><p>And if you enjoyed this post, share it on Facebook and Twitter. I Love Sharing.<br>You can also follow me on twitter: <a href="https://twitter.com/itsmohitt"><strong><em>here</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da3369a81941" width="1" height="1" alt=""><hr><p><a href="https://medium.com/attentive-ai/working-with-openlayers-4-part-3-setting-customised-markers-and-images-on-map-da3369a81941">Working with OpenLayers 4 | Part 3— Setting customised markers and images on the map</a> was originally published in <a href="https://medium.com/attentive-ai">Attentive AI Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Working with OpenLayers 4 | Part 2 — Using markers or points on the map]]></title>
            <link>https://medium.com/attentive-ai/working-with-openlayers-4-part-2-using-markers-or-points-on-the-map-f8e9b5cae098?source=rss-8a83ee54ef0e------2</link>
            <guid isPermaLink="false">https://medium.com/p/f8e9b5cae098</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[openlayers]]></category>
            <category><![CDATA[gis]]></category>
            <category><![CDATA[maps]]></category>
            <category><![CDATA[design]]></category>
            <dc:creator><![CDATA[Mohit Gupta]]></dc:creator>
            <pubDate>Thu, 10 May 2018 17:40:41 GMT</pubDate>
            <atom:updated>2019-10-20T12:20:56.266Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e_CgbSJ3zfMwktDxSA-Qog.jpeg" /><figcaption>Working with OpenLayers 4 | Part 2 — Using markers or points on the map</figcaption></figure><p>In the Previous Part <a href="https://medium.com/magentacodes/working-with-openlayers-4-part-1-creating-the-first-application-9ab27bbd7a62">Working with OpenLayers 4 | Part 1 — Creating the first application</a>, we made a basic openlayer map page and initiated the map at the desired location and desired zoom level.</p><p>We will start with the previous codes and make a marker on New York’s town hall.</p><p>In openlayers, actually there is no such thing like marker, it has only layers and features like point, line, and polygon. So, to make the marker we will make a feature object, will make source object for this feature, will add this object to a new layer and add this new layer over the map so that we can see the marker.</p><h3>Making a new feature marker:</h3><pre>var marker = new ol.Feature({<br>  geometry: new ol.geom.Point(<br>    ol.proj.fromLonLat([-74.006,40.7127])<br>  ),  // Cordinates of New York&#39;s Town Hall<br>});</pre><h3>Now let’s make a source for this feature :</h3><pre>var vectorSource = new ol.source.Vector({<br>  features: [marker]<br>});</pre><p>If you want to add multiple markers, you can add multiple feature objects array to the feature key of the source object, this way you can show more than one marker on the map.</p><h3>Now make a new layer and add it to the map:</h3><pre>var markerVectorLayer = new ol.layer.Vector({<br>  source: vectorSource,<br>});<br>map.addLayer(markerVectorLayer);</pre><h3>Now the whole map.js file will look like this:</h3><pre>var baseMapLayer = new ol.layer.Tile({<br>  source: new ol.source.OSM()<br>});<br>var map = new ol.Map({<br>  target: &#39;map&#39;,<br>  layers: [ baseMapLayer],<br>  view: new ol.View({<br>          center: ol.proj.fromLonLat([-74.0061,40.712]), <br>          zoom: 7 //Initial Zoom Level<br>        })<br>});<br></pre><pre>//Adding a marker on the map</pre><pre>var marker = new ol.Feature({<br>  geometry: new ol.geom.Point(<br>    ol.proj.fromLonLat([-74.006,40.7127])<br>  ),  // Cordinates of New York&#39;s Town Hall<br>});<br>var vectorSource = new ol.source.Vector({<br>  features: [marker]<br>});<br>var markerVectorLayer = new ol.layer.Vector({<br>  source: vectorSource,<br>});<br>map.addLayer(markerVectorLayer);</pre><p>I have also separated the base layer into an object with the variable named baseMapLayer for a better understanding of the codes.</p><p>Now if you run the code and see the results, you will see a marker on the map.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BX0CslhFmP5ZD5oTUkaJKQ.png" /><figcaption>Blue marker on the city town hall</figcaption></figure><p>You can download the full code from this <a href="https://jsfiddle.net/itsmohitt/0xn80v8f/">jsfiddle</a> or <a href="https://github.com/itsmohitt/openlayers-tutorials/commit/64b9b3b6b13dda389bf526ebd4e9484ea90c8043">Github</a> repo.</p><h4>Full Course Links:</h4><ul><li><a href="https://medium.com/magentacodes/working-with-openlayers-4-part-1-creating-the-first-application-9ab27bbd7a62">Working with OpenLayers 4 | Part 1 — Creating the first application</a></li><li><a href="https://medium.com/@itsmohitt/working-with-openlayers-4-part-2-using-markers-or-points-on-the-map-f8e9b5cae098">Working with OpenLayers 4 | Part 2 — Using markers or points on the map</a></li><li><a href="https://medium.com/attentive-ai/working-with-openlayers-4-part-3-setting-customised-markers-and-images-on-map-da3369a81941">Working with OpenLayers 4 | Part 3 — Setting customized markers and images on the map</a></li><li>…</li></ul><p>And if you enjoyed this post, share it on Facebook and Twitter. I Love Sharing.<br>You can also follow me on twitter: <a href="https://twitter.com/itsmohitt"><strong><em>here</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f8e9b5cae098" width="1" height="1" alt=""><hr><p><a href="https://medium.com/attentive-ai/working-with-openlayers-4-part-2-using-markers-or-points-on-the-map-f8e9b5cae098">Working with OpenLayers 4 | Part 2 — Using markers or points on the map</a> was originally published in <a href="https://medium.com/attentive-ai">Attentive AI Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What should I tackle first: Problem-solving or programming languages?]]></title>
            <link>https://medium.com/plutonic-services/what-should-i-tackle-first-problem-solving-or-programming-languages-c81813e28e9f?source=rss-8a83ee54ef0e------2</link>
            <guid isPermaLink="false">https://medium.com/p/c81813e28e9f</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[problem-solving]]></category>
            <category><![CDATA[algorithms]]></category>
            <dc:creator><![CDATA[Mohit Gupta]]></dc:creator>
            <pubDate>Thu, 03 May 2018 17:20:17 GMT</pubDate>
            <atom:updated>2019-07-19T13:58:00.139Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*88Si3_5QAE_T-LZOTzQgeg.png" /><figcaption>Problem-solving or programming languages</figcaption></figure><p>During the starting period of learning ‘how to code’ or ‘learning to program’, students are always confused about what should they tackle first…</p><p>Whether they should start learning the fundamentals of problem-solving that includes algorithms, complexities, etc. or they should start learning the core fundamentals of coding that includes concepts of any particular programming language, library, framework, etc.</p><blockquote>To be honest, we are not going to prove that any one of them is less important than the other, but how to prioritise one of them depending upon the learning stage you are already at.</blockquote><p>Depending upon the early stage of learning, we have divided the learning process into three chunks, which can give you marvelous result and speed if followed.</p><h3>Stage 1: Learning the Basics of Coding</h3><p>This does not mean that you should focus on programming language first. This part is learning very basics of the coding or learning how the computer works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qTkFitXLpZXNpndxv27mlA.jpeg" /><figcaption>Stage 1: Learning the Basics of Coding</figcaption></figure><p>This includes :</p><ul><li>Basic Syntax ( Printing “Hello World” )</li><li>Data Types</li><li>Variable &amp; Constants</li><li>Loops</li><li>Decision Making (If Else)</li><li>Functions</li></ul><p>No matter which language you prefer, all of them work the same way on basic properties. Still, it’s better to choose from C, Java, and Python.</p><p>By learning this, you understand the basic principles of how the computer works. Now, you are ready for the next stage.</p><h3>Stage 2: Learn Problem Solving &amp; Algorithms</h3><p>After learning the basics of how computer works and what instructions a computer can understand, you are ready to learn to solve the problem for the machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ut55XNszCQPxCG9qaEQfAw.png" /><figcaption>Stage 2: Learn Problem Solving &amp; Algorithms</figcaption></figure><p>This is the real part where you learn about problem solving and algorithms. You can follow the step by step process for learning about different algorithms and their implementation.</p><p>For the Data Structure part follow these :</p><ul><li>Scope Binding</li><li>Array &amp; Linked List</li><li>Stacks &amp; Queues</li><li>Trees, BSTs and Binary Heaps</li></ul><p>For Algorithms &amp; Analysis part follow these :</p><ul><li>Analysis and Asymptotic Notations</li><li>Divide &amp; Conquer</li><li>Greedy Approach</li><li>Dynamic Programming</li><li>Graph Traversal, Hashing, and Sorting</li><li>Complexity Classes : P, NP, NPH, and NPC</li></ul><p>The above are very big topics if you learn and go through them, you will learn about so many things like :</p><ol><li>Mixing and modifying data types as per your need and making a new data structure.</li><li>Storing and retrieving data from complex data structures.</li><li>Analyzing and comparing different types of problem-solving algorithms.</li><li>Famous algorithms approach designed yet and which one to choose as per your need.</li><li>To check whether the solution is feasible in the practical world or not.</li></ol><h3>Stage 3: Learning Programming Languages and Frameworks</h3><p>After you have learned how to solve the problems from a machine perspective. You are ready to learn to give instructions to the machine so it can understand and perform your tasks as per your instructions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*h_vtZn0U3JFsUFaUMqByNQ.png" /><figcaption>Stage 3: Learning Programming Languages and Frameworks</figcaption></figure><p>At this stage, you are also able to decide on your own which programming language, framework or libraries you should start learning or use in your next project and will be able to use the full potential of the language and machine at this point of time.</p><p>Share your experiences and feedback, you can also follow me on</p><ul><li><a href="https://twitter.com/itsmohitt">Twitter</a></li><li><a href="https://www.linkedin.com/in/itsmohitt/">LinkedIn</a>.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c81813e28e9f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/plutonic-services/what-should-i-tackle-first-problem-solving-or-programming-languages-c81813e28e9f">What should I tackle first: Problem-solving or programming languages?</a> was originally published in <a href="https://medium.com/plutonic-services">Plutonic Services</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why I started wearing the same outfit every day.]]></title>
            <link>https://medium.com/plutonic-services/why-i-started-wearing-same-outfit-every-day-6d5d3850512f?source=rss-8a83ee54ef0e------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d5d3850512f</guid>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[lifestyle]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[daily-blog]]></category>
            <category><![CDATA[clothing]]></category>
            <dc:creator><![CDATA[Mohit Gupta]]></dc:creator>
            <pubDate>Wed, 02 May 2018 16:38:45 GMT</pubDate>
            <atom:updated>2018-05-24T16:19:35.270Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S4NUiq-z1ukmiqkm8vXJcw.jpeg" /></figure><p>Yes, I have been wearing the same kind of outfit for more than last six months. At first, thinking about wearing the same outfit every day seems so boring. Why wear the same outfit every day when you have millions or billions of choices to choose from.</p><p>I very much like to experiment things with my productivity and find new and efficient ways to improve it. And this may be the biggest reason why I chose to wear the same outfit each and every day.</p><h3>Why I chose the same outfit :</h3><ol><li><strong>Decision Fatigue</strong>: Waking up every morning and deciding what to wear, and when you have decided, check whether the pair of trousers looks good with the shirt and if not, you are back to deciding what to wear. Aren’t you getting late for office, dude?</li><li><strong>Deciding when to repeat clothes</strong>: Don’t be embarrassed. This happens to everyone. I had thoughts too “I wore it a day before yesterday, would someone judge me for it?”, “If I wear only three pairs of shirts every day, everyone will think that I don’t have clothes to wear”. And believe me, this types of thoughts makes you feel insecure and reduces your level of confidence.</li><li><strong>Time-Saving</strong>: It saves time, a lot of time. You don’t have to think even a single time about your clothes, your subconscious mind already knows it, and this saves you a whole lot of time.</li><li><strong>Body Energy</strong>:</li></ol><blockquote>Manage your energy, not your time.</blockquote><p>We save a lot of body energy, that we can use on our productive tasks that are really more important than choosing the outfit for every single day.</p><p>And why not, many of the entrepreneurs and world leader have tried this thing and are doing this.</p><p><strong>Steve Jobs :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*R8BfvRfxrfF6oEGUGhRF7Q.jpeg" /><figcaption>Steve Jobs Clothing</figcaption></figure><p>Well, I guess most of the people have known about Steve Jobs and his same black turtleneck, blue jeans and New Balance sneakers every day. He was the CEO of the biggest tech giant Apple Inc. and in his whole career, he stuck to single outfit for every day.</p><p>When you think about the co-founder and (former) CEO of the most valuable company in the world wearing the same outfit every day, it’s pretty clear that Steve understood he had a finite capacity to make excellent decisions.</p><p><strong>Mark Zuckerberg</strong> :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*GStM8n5ZpefAQ5iblpfj3w.jpeg" /></figure><p>The CEO of Facebook, Mark Zuckerberg, have many grey t-shirts and hoodies in his wardrobe. Except for the special occasions, he wears the same outfits every day.</p><p>“I really want to clear my life to make it so that I have to make as few decisions as possible about anything except how to best serve this community,” Zuckerberg once explained of the curious sartorial decision.</p><p><strong>Giorgio Armani</strong> :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*_8cytMxx61jDoLZaYF8Jvw.jpeg" /></figure><p>Who make the best suits in the world? Armani !! And the owner, Giorgio Armani wears navy blue silk T-shirt, cashmere sweater, navy blue drawstring pants, and white sneakers, all by Armani, naturally.</p><p><strong>Barack Obama</strong> :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*NkJaKWynNmcH4-KxFvXelA.jpeg" /></figure><p>The former president of USA, Barack Obama, wears the same types of suits every day.</p><p><strong>The Pope</strong> :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*zlCfUt7NQfuq7Up31_vacQ.jpeg" /></figure><p>One of the most famous personality, The Pope, wears his white outfit each and every single day.</p><h3>Why you should also give it a try :</h3><ol><li><strong>Discipline:</strong> You believe it or not, wearing the same outfit brings the discipline in your body. If you are trying to make your lifestyle more classic, you should definitely try this.</li><li><strong>Time-Saving:</strong> Just think about the everyday time you could save on deciding the outfit daily.</li><li><strong>Money-Saving:</strong> You ultimately end up in saving your money in a long term. I bet you will end up saving 20 to 50 percent of money you spent on buying clothes.</li></ol><p>Now, its time to try something new that you will never want to change. Share your experience in the comments and messages.</p><p>Share your experiences and feedback, you can also follow me on</p><ul><li><a href="https://twitter.com/itsmohitt">Twitter</a></li><li><a href="https://www.linkedin.com/in/itsmohitt/">LinkedIn</a>.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d5d3850512f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/plutonic-services/why-i-started-wearing-same-outfit-every-day-6d5d3850512f">Why I started wearing the same outfit every day.</a> was originally published in <a href="https://medium.com/plutonic-services">Plutonic Services</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Working with OpenLayers 4 | Part 1 - Creating the first application]]></title>
            <link>https://medium.com/attentive-ai/working-with-openlayers-4-part-1-creating-the-first-application-9ab27bbd7a62?source=rss-8a83ee54ef0e------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ab27bbd7a62</guid>
            <category><![CDATA[openlayers-3]]></category>
            <category><![CDATA[leaflet]]></category>
            <category><![CDATA[openstreetmap]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[maps]]></category>
            <dc:creator><![CDATA[Mohit Gupta]]></dc:creator>
            <pubDate>Mon, 09 Apr 2018 17:29:36 GMT</pubDate>
            <atom:updated>2018-05-20T07:48:59.330Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*igOTFMD0OVTS0jegvwefFQ.jpeg" /><figcaption>Working with Openlayers 4</figcaption></figure><p>OpenLayers is an open source map library and provides the huge number of mapping tools across different platforms.In this very first tutorial, we will initiate a basic web page with some basic openLayers map API tools.</p><h3>Introduction</h3><blockquote><em>A high-performance, feature-packed library for all your mapping needs.</em></blockquote><p>OpenLayers is an open source mapping library which makes it easy to put a dynamic map in any web page.It can display map tiles, vector data and markers loaded from any source. OpenLayers has been developed to further the use of geographic information of all kinds. It is completely free, Open Source JavaScript, released under the 2-clause BSD License (also known as the FreeBSD).</p><p>— Source (<a href="http://openlayers.org/">http://openlayers.org/</a>)</p><h3>Implementation</h3><p>To implement the map on a web page, we will start with two files. The directory structure of the files is given below for reference.</p><pre>├── index.html<br>└── map.js</pre><p>First, we will start with the index.html file and start with some basic HTML tags and this is what our index.html file will look like.</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>&lt;head&gt;<br> &lt;title&gt;Working with Openlayers&lt;/title&gt;<br> &lt;style type=&quot;text/css&quot;&gt;<br>  #map{<br>   width:100%;<br>   height:600px;<br>  }<br> &lt;/style&gt;<br> &lt;!--Basic styling for map div, <br> if height is not defined the div will show up with 0 px height  --&gt;</pre><pre>&lt;/head&gt;<br>&lt;body&gt;<br> &lt;div id=&quot;map&quot;&gt;<br>  &lt;!-- Your map will be shown inside this div--&gt;<br> &lt;/div&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><p>After this we will start embedding the openlayers map API with this file and will include our map.js file with index.html . To do that we will include three links in our index.html file and the final code will look something like this.</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>&lt;head&gt;<br> &lt;title&gt;Working with Openlayers&lt;/title&gt;<br> &lt;link rel=&quot;stylesheet&quot; href=&quot;<a href="https://openlayers.org/en/v4.6.5/css/ol.css">https://openlayers.org/en/v4.6.5/css/ol.css</a>&quot; type=&quot;text/css&quot;&gt;<br> &lt;!-- Openlayers CSS file--&gt;<br> <br> &lt;style type=&quot;text/css&quot;&gt;<br>  #map{<br>   width:100%;<br>   height:600px;<br>  }<br> &lt;/style&gt;<br> &lt;!--Basic styling for map div, <br> if height is not defined the div will show up with 0 px height  --&gt;</pre><pre>&lt;/head&gt;<br>&lt;body&gt;<br> &lt;div id=&quot;map&quot;&gt;<br>  &lt;!-- Your map will be shown inside this div--&gt;<br> &lt;/div&gt;<br>&lt;/body&gt;<br>&lt;script src=&quot;<a href="https://openlayers.org/en/v4.6.5/build/ol.js">https://openlayers.org/en/v4.6.5/build/ol.js</a>&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;<br> &lt;!-- Openlayesr JS fIle --&gt;<br> &lt;script type=&quot;text/javascript&quot; src=&quot;map.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;<br> &lt;!-- Our map file --&gt;</pre><pre>&lt;/html&gt;</pre><p>Now we will start editing our second file map.js. First we will start with map object.</p><pre><strong>var</strong> map = <strong>new</strong> ol.Map({<br>        target: &#39;map&#39;,<br>});</pre><p>We have initialised an object of map and pointed out its target to ‘map’ which is the id of the DOM element in which we want to render the map.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YSufJGK-LQNrglb8952qLg.png" /></figure><p>If you check the web page, if have initiated the base for the map, but there is no map view in the mapping area.To initialise a map view, we will have to render a layer of the base map into the map. You can choose any layer or more than one layer for the map. <a href="http://openlayers.org/en/latest/apidoc/ol.source.html">OpenLayer sources</a> API provide the list of the sources of layers available for the map. We will use OSM (Open Street Map) in this tutorial.And I have set the initial map coordinates to New York City.<br>After this layer, our map.js will finally look like this code snippet.</p><pre>var map = new ol.Map({<br>        target: &#39;map&#39;,<br>        layers: [<br>          new ol.layer.Tile({<br>            source: new ol.source.OSM()<br>          })<br>        ],<br>        view: new ol.View({<br>          center: ol.proj.fromLonLat([-74.006,40.712]), // Coordinates of New York<br>          zoom: 7 //Initial Zoom Level<br>        })<br>      });</pre><p>And if you finally see our webpage, it will show us the New York City in the map.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zwt6ZIEDaVZOxmLKKS_ZMA.png" /></figure><p>You can also get the above code from my this <a href="https://github.com/itsmohitt/openlayers-tutorials/tree/7505a67568d68fc70eb951a2d05b92ae0643263a">Github Repo</a>.</p><h4>Full Course Links:</h4><ul><li><a href="https://medium.com/magentacodes/working-with-openlayers-4-part-1-creating-the-first-application-9ab27bbd7a62">Working with OpenLayers 4 | Part 1 — Creating the first application</a></li><li><a href="https://medium.com/@itsmohitt/working-with-openlayers-4-part-2-using-markers-or-points-on-the-map-f8e9b5cae098">Working with OpenLayers 4 | Part 2 — Using markers or points on the map</a></li><li><a href="http://Working with OpenLayers 4 | Part 3- Setting customised markers and images on map">Working with OpenLayers 4 | Part 3 — Setting customised markers and images on map</a></li><li>…</li></ul><p>And if you enjoyed this post, share it on Facebook and Twitter. I Love Sharing.<br>You can also follow me on twitter: <a href="https://twitter.com/itsmohitt"><strong><em>here</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ab27bbd7a62" width="1" height="1" alt=""><hr><p><a href="https://medium.com/attentive-ai/working-with-openlayers-4-part-1-creating-the-first-application-9ab27bbd7a62">Working with OpenLayers 4 | Part 1 - Creating the first application</a> was originally published in <a href="https://medium.com/attentive-ai">Attentive AI Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why “Two Large Pizza” team is the best team ever.]]></title>
            <link>https://medium.com/plutonic-services/why-two-large-pizza-team-is-the-best-team-ever-4f19b0f5f719?source=rss-8a83ee54ef0e------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f19b0f5f719</guid>
            <category><![CDATA[organizational-culture]]></category>
            <category><![CDATA[startup-lessons]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[teamwork]]></category>
            <dc:creator><![CDATA[Mohit Gupta]]></dc:creator>
            <pubDate>Sun, 21 Jan 2018 10:16:11 GMT</pubDate>
            <atom:updated>2019-06-11T11:08:56.616Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2fsDBHSRMoxzZjirmbnqPw.jpeg" /></figure><p>In my past 5 year experience, I worked with many people and teams. Some of them were college students, some entrepreneurs, some new startups and many industry professionals. In short terms, I worked with almost every team size and maturity level in many roles like as an intern, as a team leader, as partners, as a freelancer and also as an employee.</p><p>In this past 5 year experience, I got so many life-changing experiences and learned so many skills from different types of peoples in different aspects. But one of the most meaningful things I learned from my experience is what should be the perfect size for the team?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/384/1*gTCWb41cKj_A1o22GTxlyg.jpeg" /></figure><blockquote>And about the perfect team size, I totally agreed with <em>Jeff Bezos (Founder of Amazon) </em>that the Two Large Pizza team is a perfect size for the team.</blockquote><h3>But wait, what is a Two Large Pizza team?</h3><p>The term “Two Large Pizza” for a team came from the statement of Jeff Bezos:</p><blockquote>“If you can’t feed a team with two large pizzas, it’s too large.” -Jeff Bezos</blockquote><p>He beautifully defined the size of a perfect team. From his statement, he made clear that if your team size is more than the servings of Two Large Pizzas, you have already made it too large.</p><blockquote>In this way, it is concluded that the “Two Large Pizza” team is the team with the size of not more than 8 or 9 people.</blockquote><h3>What’s wrong with the teams with big size?</h3><h4>1. Communication gets terrible as team size grows :</h4><p>The issue with larger teams isn’t quite the team size itself. As an organizational psychologist and expert on team dynamics J. Richard Hackman would point out, it’s the <strong>number of links between people</strong> that is the problem. Take a look at the formula for determining the number of links between members in a group: <strong>n(n-1)/2.</strong></p><p>As group size increases, the links start to get unwieldy.</p><ul><li>If you take a basic two-pizza team size of, say, 6. That’s 15 links between everyone.</li><li>Double that group for a team of 12. That shoots up to 66 links.</li><li>Small business of 50 people has an incredible 1225 links to manage.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*ugBfTQQZQgWp-4SF9fLCCw.png" /></figure><p>The cost of coordinating, communicating, and relating to each other snowballs to such a degree that it lowers individual and team productivity. Hackman explained, “The larger a group, the more process problems members encounter in carrying out their collective work …. Worse, the vulnerability of a group to such difficulties increases sharply as size increases.”</p><h4>2. Underestimation of any work :</h4><p>Many managers and leaders fall into the mental trap that adding more people to a team is always good. People are your best assets, so adding more assets to a project should power up progress. Right?</p><p>The fact is, larger team size makes people overconfident. This is the tendency for people “to increasingly underestimate task completion time as team size grows,” as researchers Bradley Staats, Katherine Milkman, and Craig Fox explain. In one of their experiments, they discovered that when tasked to build the same Lego figure, two-person teams took 36 minutes while four-person teams took 52 minutes to finish — over 44% longer.</p><p>Yet the larger teams were almost twice as overoptimistic about how long they’d take.</p><p>When a project is running behind, you want to get something done faster, or there’s an ambitious milestone at stake, it seems reasonable to add more people power. Sticking to a max number of a two-pizza team will balance a natural tendency to underestimate the costs and friction of dealing with those extra links.</p><h3>How to optimize things if you have a very large or massive team?</h3><p>It’s totally normal for any organization to have a team with the size of more than one digit number. but the most important part is how I can improve your big team so that its efficiency is as good as a two large pizza team’s efficiency.</p><p>And the trick is simple, break your big teams into small teams or sub-teams of small groups of people. By breaking your large team into smaller teams, you ensure that the communication gap is filled properly between them and the tasks are being accomplished by the sub-teams.</p><p>Share your experiences and feedback about your team, and you can also follow me on</p><ul><li><a href="https://twitter.com/itsmohitt">Twitter</a></li><li><a href="https://www.linkedin.com/in/itsmohitt/">LinkedIn</a>.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f19b0f5f719" width="1" height="1" alt=""><hr><p><a href="https://medium.com/plutonic-services/why-two-large-pizza-team-is-the-best-team-ever-4f19b0f5f719">Why “Two Large Pizza” team is the best team ever.</a> was originally published in <a href="https://medium.com/plutonic-services">Plutonic Services</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Things you should know about Google FooBar Invitation]]></title>
            <link>https://itsmohitt.medium.com/things-you-should-know-about-google-foobar-invitation-703a535bf30f?source=rss-8a83ee54ef0e------2</link>
            <guid isPermaLink="false">https://medium.com/p/703a535bf30f</guid>
            <category><![CDATA[google-foobar]]></category>
            <category><![CDATA[developer-stories]]></category>
            <category><![CDATA[google-developer]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[google-developer-group]]></category>
            <dc:creator><![CDATA[Mohit Gupta]]></dc:creator>
            <pubDate>Sat, 13 Jan 2018 06:27:10 GMT</pubDate>
            <atom:updated>2024-05-14T14:59:13.172Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HUqQfrZU0i6mhw6VyJ9Caw.png" /></figure><p>So. you got Google’s Foobar Invitation. First of all, very very congratulations on that, you should have known that this is not an ordinary invitation but the special one that Google sends to only some special type of developers.</p><blockquote>If you have not got the invitation yet, this article still can be useful to you in many aspects.</blockquote><p>Now we know Foobar is some weird invitation from Google, but I want to talk about a little in detail. So, let’s explore all the questions you have in mind.</p><h3>I’m a novice, tell me in details about Google Foobar:</h3><p>Google Foobar is Google’s secret hiring challenge. Google uses this to hire some of the best developers around the globe which they think can be a good match for their organization. Many developers in Google have been hired through this hiring challenge.</p><h3>I want to take this challenge:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r8Ae6nYDAR1o_FJMarOskQ.png" /></figure><p>it’s good to see your spirit, but there is a sad thing that not everyone can take this challenge.</p><blockquote>Google Foobar is an invitation based hiring challenge. Means, you can only take the challenge if you have got the invitation from Google for Foobar.</blockquote><h3>How can I get the invitation:</h3><p>Getting the invitation for Google Foobar is also a mysterious thing, no one exactly knows the criteria for the Google Foobar invitation eligibility. The suggestions from the people who got the invitation are:</p><blockquote>Google send the invitation on the basis of your search history and your problem solving related keyword searches, like if you are a developer, it is obvious that you search a lot of problems related to programming on Google or Stack Overflow. And based on Google search algorithms, they show you an invitation for Google Foobar.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W_2QJkG82gHXFyxjOqwqeQ.jpeg" /><figcaption>Google Foobar Invitation</figcaption></figure><p>And when you get the invitation, it looks like this and it says</p><blockquote>“You’re speaking our language. Up for a challenge?”</blockquote><h3>What happens after I get the invitation:</h3><p>When you get the invitation, and you choose to accept it, you are redirected to a website that kind of look like UNIX command line like interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HUqQfrZU0i6mhw6VyJ9Caw.png" /></figure><p>And it gives you access to traverse into some folders using UNIX commands, and <strong><em>help</em></strong> command to see all of the available commands. In all of the commands available, you have to type the command “<strong><em>request</em></strong>” to get the challenge started.</p><p>After you request for the challenge, you get some files in your Foobar command-line folder, and you have a question waiting for you to solve. When you are reading the question file, you can also see that you can submit your answers either in <strong><em>JAVA</em></strong> or <strong><em>Python.</em></strong></p><p>You get two files to write the solution to your problem statement “<strong><em>solution.java</em></strong>” and “<strong><em>solution.py</em></strong>”. You can write your solution in any of the files depending upon your preferred language for the solution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qvFodoUNVQpiI1rfo7zJxQ.png" /></figure><p>And to edit the file you can run the command “ <strong><em>edit filename</em></strong>”, and you get a tab on your same webpage and in the tab, an editor with your file open.<br>you can “<strong><em>Save</em></strong>” your file with the use of shortcut keys.</p><p>After you have done the editing, and you are confident enough that the solution you wrote is correct and error-free, you can verify it with “<strong><em>verify filename</em></strong>” command and it shows you the test case result of your solutions. To submit your submission type “<strong><em>submit filename</em></strong>” and it will accept your solution and check if it is correct or not and if all the test cases are passed by your solution, you get a success message.</p><p>This is a success message when you finish level 1, and you get to know there is a total of 5 levels to solve.</p><h3>What will happen after the completion of all 5 levels :</h3><p>After you complete all the 5 levels, you get some fields to fill your details and your contact details to contact you and when you are done with these details.</p><blockquote>You get a call or a mail from Google after one or two days, in which you can get the invitation for interview in Google and if you pass the interview, you can be hired into Google.</blockquote><h3>So, if I get hired, what will be the post of joining :</h3><p>When you are done with your Google Foobar challenge, you get the chance for the interview, but the post of joining is not the same for all.</p><blockquote>It can be high-end developer or assistant developer depending upon your Foobar Challenge solutions and your interviews.</blockquote><h3>Has Google hired anyone through Foobar Challenge? :</h3><p>And the answer is “<strong><em>Yes</em></strong>”. Most of the people who complete the Foobar challenge, also get the joining offers.<br>And in my opinion, the reason is simple.</p><blockquote>You only get the Google Foobar invitation, if you are qualified enough to join the Google and if you get the invitation and you are also completing the Foobar Challenge, there must be something in you that Google need.</blockquote><p>Although, this Google Foobar challenge looks like an invitation from a secret society, and it also feels like this when you get the invitation. But if you get the invitation, I recommend you to go through it and try to solve the challenges whether you want to get hired into Google or not. This challenge can give you the best of the experience you ever had in all the coding challenges you ever took part in.</p><p>If you feel any doubt or want to share your experience with Google Foobar, comment below. You can also follow me on twitter <a href="https://twitter.com/itsmohitt">here</a>.</p><p>If you are looking for a nice platform to convert units or related to other internet tools, Try <a href="https://www.internettoolwizard.com/">Internet Tool Wizard</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=703a535bf30f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What the hell is “ASYNC” ??]]></title>
            <link>https://medium.com/magentacodes/what-the-hell-is-async-65aea57146ef?source=rss-8a83ee54ef0e------2</link>
            <guid isPermaLink="false">https://medium.com/p/65aea57146ef</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[javascript-tips]]></category>
            <category><![CDATA[asynchronous]]></category>
            <category><![CDATA[javascript-development]]></category>
            <dc:creator><![CDATA[Mohit Gupta]]></dc:creator>
            <pubDate>Thu, 14 Sep 2017 14:30:36 GMT</pubDate>
            <atom:updated>2019-07-19T13:53:22.154Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ST1J5oxW7yMe1MQIyimLCQ.png" /><figcaption>What the hell is “ASYNC” ??</figcaption></figure><p>Many of us have heard the asynchronous word and many times we used it too, but still, if you are new to programming especially Javascript, you must have also faced some specific issues related to the asynchronous property of the language.<br>Most of the time, we also don’t get the real problem but the solution.</p><p>To understand Asynchronous property, we will go through the synchronous property and its difference from the asynchronous property. First of all, let’s start with a funny example simply.</p><p>I’ll try to explain as simply as I can so you’ll (hopefully) remember:</p><h3>Synchronous Execution :</h3><p>When a task is executed synchronously, you wait for a task to be completed before moving on to another task. One task depends on the end of another.</p><blockquote>My boss is a busy man. He tells me to write the code. I tell him: Fine. I get started and he’s watching me like a vulture, standing behind me, off my shoulder. I’m like “Dude, WTF: why don’t you go and do something while I finish this?”<br>he’s like: “No, I’m waiting right here until you finish.”<em> </em>This is synchronous.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*2mLxjaA5QFnS21sOs1H-Xg.jpeg" /></figure><h3>Asynchronous Execution :</h3><p>When a task is executed asynchronously, you can directly switch to another task before the previous has been completed. One task does not depend on the other.</p><blockquote>The boss tells me to do it, and rather than waiting right there for my work, the boss goes off and does other tasks. When I finish my job I simply report to my boss and say: “I’m DONE!” This is Asynchronous Execution.</blockquote><p>It’s that simple! Hope it helps.</p><h3>Real confusion with Asynchronous:</h3><p>The biggest confusion with this property is the way it works.<br>Take the example of the given code :</p><pre>var result = get(&#39;<a href="https://api.github.com/users/itsmohitt">https://api.github.com/users/itsmohitt</a>&#39;);<br>console.log(result);</pre><p>If we run the above code, we will get “pending” in the console. But, what’s the problem, if called the API and API is returning its data and we are taking that data in variable result.</p><blockquote>The problem here is the API calling, whenever we call an API, it will take some time, may be 250ms or 25 seconds, but it will take some.And during that, the next instruction will start executing.To overcome this, you use callback functions.</blockquote><p>To run this, we will use callbacks</p><pre>get(&#39;<a href="https://api.github.com/users/itsmohitt">https://api.github.com/users/itsmohitt</a>&#39;).then(function(result){<br>    console.log(result);<br>});</pre><p>Now, if you run this, you will get the real result on your console.</p><h3>Summary</h3><p>Asynchronous property of programming languages provide us the ability to use the system power continuously and doesn’t wait for a certain task to perform others. In this way, you can call multiple tasks which will take a long time to complete simultaneously.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65aea57146ef" width="1" height="1" alt=""><hr><p><a href="https://medium.com/magentacodes/what-the-hell-is-async-65aea57146ef">What the hell is “ASYNC” ??</a> was originally published in <a href="https://medium.com/magentacodes">magenta codes</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Net Neutrality : Why is it so important ?]]></title>
            <link>https://medium.com/plutonic-services/net-neutrality-why-is-it-so-important-c07d209f052c?source=rss-8a83ee54ef0e------2</link>
            <guid isPermaLink="false">https://medium.com/p/c07d209f052c</guid>
            <category><![CDATA[internet]]></category>
            <category><![CDATA[savetheinternet]]></category>
            <category><![CDATA[internet-culture]]></category>
            <category><![CDATA[net-neutrality]]></category>
            <dc:creator><![CDATA[Mohit Gupta]]></dc:creator>
            <pubDate>Mon, 14 Aug 2017 20:42:25 GMT</pubDate>
            <atom:updated>2019-07-01T04:43:09.605Z</atom:updated>
            <content:encoded><![CDATA[<h3>Net Neutrality: Why is it so important?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S7l-9nxbESR4bNF-iq3tMw.jpeg" /></figure><p>Ever since the birth of the Internet, it became more and more important to every person on the Earth as time flew. Every person on this planet is directly or indirectly connected to the biggest network of the world that is the Internet. We use it for email, website surfing, games, communication, reading, and many more things.</p><blockquote><strong>But what if, your ISP charges you extra for playing games, or making calls with free services like Skype or Hangouts?<em><br></em>What if, your favourite websites are always slow other than big giants like Google, Facebook or Twitter?<br>What if, you are blocked to visit the websites of many countries or of some particular topics like Bitcoin or even Net Neutrality?</strong></blockquote><p><em>This could happen and in fact, this has been done by some ISPs in many regions near the past. Let’s go into details step by step to better understand the net neutrality, what defines it, its rules, and how can we save it.</em></p><h3>The Almighty Internet</h3><blockquote>The Internet is the global system of interconnected computer networks and an Internet service provider (ISP) is an organisation that provides services accessing and using the Internet.</blockquote><p>We all know this thing, that the Internet is a big giant network and ISP connects us with this network by sending our data to and fro to the internet.<br>According to Wikipedia, “As of March 2017, 49.7% of the population is on the internet. In 2015, the <a href="https://en.wikipedia.org/wiki/International_Telecommunication_Union">International Telecommunication Union</a> estimated about 3.2 billion people, or almost half of the world’s population, would be online by the end of the year.”</p><h3>Net Neutrality</h3><p>The meaning of ‘Net Neutrality’ is to treat all the information or data on the network in the same manner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*ey4OP0ad3uZNJsq8rSw7sw.gif" /></figure><p>Although, there are <strong>three basic principles</strong> which define the Net Neutrality :</p><ol><li>All sites must be equally accessible; ISPs and other telecom operators should not block certain sites or apps just because they don’t pay them. No gateways should be created, in order to give preferential discovery to one site over another</li><li>All sites must be accessible at the same speed (at an ISP/telco level); This means no speeding up of certain sites because of business deals. More importantly, it means o slowing down (throttling) of some sites.</li><li>The cost of access to all the sites must be same (per Kb/Mb or as per data plans); This means no “Zero Rating”. In countries like India, Net Neutrality is more about the cost of access than the speed of access: all lanes are slow.</li></ol><h3>What would happen if we lost Net Neutrality?</h3><p>The internet without Net Neutrality isn’t really the internet. Unlike the open internet that has paved the way for so much innovation and given a platform to people who have historically been shut out, it would become a closed-down network where cable and phone companies call the shots and decide which websites, content or applications succeed.</p><p>Without Net Neutrality, we will only be able to share and read what the ISPs will want or they will be paid to. You won’t be able to make a movement. ISPs will be able to block websites or content they don’t like or applications that compete with their own offerings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*CDWSmC02LUwtFq2dd5y_pQ.png" /></figure><blockquote>Losing the Net Neutrality is like let your mobile carrier decide whom to make calls and what words you can speak; Means whatever you see on internet is actually will be what ISPs want you to see.</blockquote><blockquote>Net Neutrality is crucial for small business owners, startups and entrepreneurs, who rely on the open internet to launch their businesses, create markets, advertise their products and services, and reach customers. We need the open internet to foster job growth, competition and innovation.</blockquote><blockquote>Net Neutrality lowers the barriers of entry by preserving the internet’s fair and level playing field. It’s because of Net Neutrality that small businesses and entrepreneurs have been able to thrive online.</blockquote><p><strong>Without Net Neutrality, the next Google or Facebook would never get off the ground.</strong></p><h3>What can we do to save the Internet?</h3><p>ISPs and opponents have done everything they can to destroy Net Neutrality. Many countries like Brazil, Canada, Chile, European Union, India<strong>, </strong>Netherland, Philippines, Singapore are fighting for Net Neutrality for a long time.</p><p>It’s a long run to save the internet, and unfortunately, there is no direct approach to do this, our unity is our strength and that is what can make us win.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/333/1*BjaXM8ZxFcbmNefLEsfWMQ.png" /></figure><p>Millions have already taken a stand to defend our rights to connect and communicate. <a href="http://act.freepress.net/sign/internet_NN_trump">Take action now and join the fight</a>.<a href="https://www.savetheinternet.com/sti-home"> Sign the Petition</a>, and make your voice even larger to save the open Internet.</p><h3>Summary</h3><p>Internet is a very important part of the Earth and ISPs are the gatekeepers of the Internet, we will have to fight against these odds to save the Internet because without Net Neutrality, Internet will be like the hallucinating Matrix and we will not able to know that too.</p><p>If you enjoyed this post, share it on Facebook and Twitter. I Love Sharing.<br>You can also follow me on twitter: <a href="https://twitter.com/itsmohitt"><strong><em>here</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c07d209f052c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/plutonic-services/net-neutrality-why-is-it-so-important-c07d209f052c">Net Neutrality : Why is it so important ?</a> was originally published in <a href="https://medium.com/plutonic-services">Plutonic Services</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Here’s What No One Tells You About Port Number]]></title>
            <link>https://medium.com/plutonic-services/heres-what-no-one-tells-you-about-port-number-628dea05ceda?source=rss-8a83ee54ef0e------2</link>
            <guid isPermaLink="false">https://medium.com/p/628dea05ceda</guid>
            <category><![CDATA[internet-of-things]]></category>
            <category><![CDATA[port-number]]></category>
            <category><![CDATA[networking-tips]]></category>
            <category><![CDATA[internet]]></category>
            <category><![CDATA[networking]]></category>
            <dc:creator><![CDATA[Mohit Gupta]]></dc:creator>
            <pubDate>Tue, 08 Aug 2017 06:35:31 GMT</pubDate>
            <atom:updated>2017-08-08T06:41:11.313Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r1QQXbfPZv67gZezSH4x7g.jpeg" /><figcaption>Here’s What No One Tells You About Port Number</figcaption></figure><p>Port Number has always been the important part of the networking industry, and without the port number, we will lose more than 90% power of the Internet.Port number makes the connection between different processes of different server possible with the minimum complexity.</p><h3>Why there is a confusion?</h3><p>The real reason why it becomes difficult to understand port number is because humans have the tendency to relate the knowledge with the physical articles to keep them remember, and this is where port number becomes complex although it is a simple concept.</p><p>We often relate the port numbers or port to the female connectors on hardware devices, and this is where all the confusion arises.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*sacUJPnBw9N4cXuwPf6FMA.jpeg" /><figcaption>Female Connectors on Hardware</figcaption></figure><p>This part of the port or female connector given in the image is not the network port number that we are talking about.</p><h3>What really is a port number?</h3><blockquote><strong>The port number or port in networking devices is not the female connectors we see on the hardware, but it is a logical construct that identifies a specific process or a type of network service.</strong></blockquote><p>In other words, To identify a specific process running on a server, we use the port number. Port number is a logical concept, and it has no physical appearance on any servers or machines.</p><blockquote><strong>A port number is similar to a roll number provided to every process running inside a machine or server, and this number helps to find the processes when the machine is at some address(IP Address) on the internet.</strong></blockquote><h3>Ok, but why we use it?</h3><p>This is an important question that why we use it; and to answer this, let me give you an example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RZbf14HuXabdz20hO6Uouw.jpeg" /><figcaption>Vending Machine</figcaption></figure><p><em>Suppose, you want a packet of chips from the vending machine, so first thing you will do is go to a particular vending machine that has the particular type of packet of chips that you want, and after it, you will request a packet of chips by providing the particular code to the machine of the packet of chips that you want; and you get the chips from the machine :)</em></p><p>Now, the same happens here too. To access a particular service of any machine you need a code number. This code number is the port number which connects you to different services or process such as HTTP, FTP, telnet and hundreds of more.</p><h3>So, who assigns the port number to a process?</h3><p>There is always a confusion on if every process has a port number, then who defines it inside the machine.</p><p>The assignment of the port is done at the time of development of the service and many services used by the developers also have the configurations to set the port number manually.</p><p>If you are developing a service that will serve requests coming from different machine, you will have to assign a specific port number to it.</p><h3>Summary</h3><p>Port number is a concept many do not understand clearly and this is where they begin to doubt about it.</p><p>Port number is just a number assigned to the different services of the machine to interact easily similar to roll number assigned to the class students to make many problem simples.</p><p>I believe that next time when you read or hear the word port number, there won’t be a doubt again about how this is going to work.</p><p>If you enjoyed this article, share it on Facebook and Twitter. I Love Sharing.<br>You can also follow me on twitter: <a href="https://twitter.com/itsmohitt"><strong><em>here</em></strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*sXgFsNIIks9HxAEEnKGQeg.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=628dea05ceda" width="1" height="1" alt=""><hr><p><a href="https://medium.com/plutonic-services/heres-what-no-one-tells-you-about-port-number-628dea05ceda">Here’s What No One Tells You About Port Number</a> was originally published in <a href="https://medium.com/plutonic-services">Plutonic Services</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>