<?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 Ekansh Srivastva on Medium]]></title>
        <description><![CDATA[Stories by Ekansh Srivastva on Medium]]></description>
        <link>https://medium.com/@ekanshkr.srivastva.cer15?source=rss-1ddfbb36bb4f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*emnfGHANEAkOerF9CX3ORw.jpeg</url>
            <title>Stories by Ekansh Srivastva on Medium</title>
            <link>https://medium.com/@ekanshkr.srivastva.cer15?source=rss-1ddfbb36bb4f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 12:15:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ekanshkr.srivastva.cer15/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[The Philography Connection - Episode I]]></title>
            <link>https://medium.com/@ekanshkr.srivastva.cer15/the-philography-connection-episode-i-85ede1586cc2?source=rss-1ddfbb36bb4f------2</link>
            <guid isPermaLink="false">https://medium.com/p/85ede1586cc2</guid>
            <category><![CDATA[philosophy]]></category>
            <category><![CDATA[photography]]></category>
            <category><![CDATA[review]]></category>
            <category><![CDATA[travel]]></category>
            <category><![CDATA[inspiration]]></category>
            <dc:creator><![CDATA[Ekansh Srivastva]]></dc:creator>
            <pubDate>Tue, 02 Jul 2019 20:23:50 GMT</pubDate>
            <atom:updated>2019-07-02T20:23:50.520Z</atom:updated>
            <content:encoded><![CDATA[<p>A note on Photography and philosophy — ish connection.</p><blockquote>Not Art and science serve alone, Patience must in the work be shown.<br>-Goethe(and thanks to Google translation for being this much absurd)</blockquote><p>So it&#39;s been a long time since I have written anything here and now, I think I should start once again — don&#39;t worry if you have seen similar lines in previous stories that’s just me :P. I think writing on things that I observe everywhere- People, Organisations, Technology, Art: Especially Art and trying to find that art connection and connecting them back would be a great way for me to perfectly release and realise all the things that continuously revolves and rotates and performs 84 backflips throughout my day.</p><p>So today lets try an art elaboration today.</p><h3><strong>Every photograph tells a story.</strong></h3><p>So although technically, I’ve been quite busy these days and I don&#39;t see(and don&#39;t want to see) any day of no work day, I’m still managing to find some minutes looking around, talking to people, phubbing Instagram for some minutes — favourite part when you can see your old nostalgic(technically, 1 month old) city — Varanasi. I’ve been very fortunate and grateful for being around people with so much passion and inclination for photography and motions. As mentioned above, after coming back from the karma bhumi, I decided to phub over Instagram for a while and here comes the photograph of today:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pldLfY5PSY9zelILHHBNXg.jpeg" /><figcaption>Should I stay or should I go? By Zeeshan Mohammed</figcaption></figure><p>One thing that first came into my mind was the layers of contrasts that was just trying to transpire from the picture- one at a time. Just look at the picture and you’ll see a huge time or thinking(or certainly both of them) Zeeshan would have given to the framing and timing for the picture. The colours and their transitions along with the details are just fabulous. Let’s try to understand the story behind the photograph using these layers.</p><h3>The different layers or you can call it — Choices:</h3><p>The different subject placements — one still sleeping in the shadows enjoying the comfort he had been recieving at this part of the ghats and the one continuing on his journey in the hot sunny morning in Varanasi both depicts almost similar men looking at their outfits but with different mindsets. The different layers: The motion and stillness, The lights and the shadows, The colour and how the picture fades far away. I think the mood that this picture is trying to convey is the choices the photographer has in front of him — similar to what anyone would feel when he/she is up to a new journey or chapter in his/her life. The boat also produces a sense of ‘Voyage’ type journey in front of the photographer that he is about to get into. The Boats, the People in the boat and on the other side, the sleeping man and the one who is on his journey, clearly shows different people at different stages of their voyage of life and looking at all this, the photographer asks the question — <em>Should I Stay or Should I go? </em>Beautiful!</p><p>Well, this is the ultra-short version I managed to write tonight.</p><p>Let me know in the comments what you think I should improve on and what shall I focus more on to make the coming stories of the stories better.<br>Till then, M A H A D E V _/\_</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85ede1586cc2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Google Assistant can increase Productivity]]></title>
            <link>https://medium.com/@ekanshkr.srivastva.cer15/how-google-assistant-can-increase-productivity-10c2e6831ac3?source=rss-1ddfbb36bb4f------2</link>
            <guid isPermaLink="false">https://medium.com/p/10c2e6831ac3</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[google-assistant]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[tutorial]]></category>
            <dc:creator><![CDATA[Ekansh Srivastva]]></dc:creator>
            <pubDate>Sun, 17 Mar 2019 10:52:50 GMT</pubDate>
            <atom:updated>2019-03-17T10:52:50.973Z</atom:updated>
            <content:encoded><![CDATA[<h3>Increasing Productivity feat. Google Assistant</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hLJ5MADVm7DcqFGF" /><figcaption>Photo by <a href="https://unsplash.com/@ecasap?utm_source=medium&amp;utm_medium=referral">Elaine Casap</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Imagine you sitting at your workplace, determined to finish off that particular chapter or work. You start and then there is one message notification and one more and then someone’s status update and one more…..</p><p>You passed all day at your workplace phubbing on your smartphone and then realizing in deep pain that not even half of the work has been finished till now.</p><p>So, here I’m thinking about the possibilities of having an intelligent personal assistant who can watch over you every time you pick your phone while you’re working. Wouldn&#39;t it be great to have someone which can help you achieve your goals only by enabling you to become a bit more productive every day? The only problem is, we have to build it ourselves.</p><p>Luckily, we don&#39;t have to build the whole Natural Language Understanding thing ourselves rather we can use the Platforms provided by Google(Thanks!) to build our “TaskWoman” action for our Google Assistant.</p><h4>What exactly is an Action?</h4><p>An action is an entry point to an interaction that developers build for the Google Assistant. Users can request to a particular action by typing in or speaking to the assistant — See, no website logins, no app download, install and taps.</p><p>The Google Assistant conversation can be broken down in two parts:</p><ul><li><strong><em>Intent:</em></strong> This is the ultimate motive of the conversation. This acts like a request the user performs to the assistant for a particular piece of item/information.</li><li><strong><em>Fulfillment: </em></strong>This is the response which can be in the form of a service, an app, or a piece of information. This handles the intent and carries out the corresponding action.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/342/1*w-7uI64i8wx2vBdogDT2Pw.png" /></figure><p>Look at the image and you’ll understand what intent and fulfillment mean.</p><p>If not, here:</p><p>When the user asks for the best pickup line, the user requested his intent to know about the best pick-up line he can use.</p><p>The assistant replied with the information which acted as the fulfillment and handled the intent.</p><p>The behind the scenes look something like the picture below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tBX3cMv2Fx3QOmAqOgdnPw.png" /><figcaption>What happens behind the scenes</figcaption></figure><p>Many readers might be knowing about the <strong>Pomodoro Technique </strong>— if you think you are quite productive, you might be using this technique or might have developed this habit unconsciously.</p><h4>About the Pomodoro Technique</h4><ul><li><strong>Choose a Task you would like to Get Done</strong></li></ul><blockquote>This could be anything: study, work, anything you want to get done.</blockquote><ul><li><strong>Set the Pomodoro to 25 mins</strong></li></ul><blockquote>Setting the Pomodoro means taking an oath that whatever happens, you are not going to lose focus the next 25 minutes.</blockquote><ul><li><strong>Work on the task until the Pomodoro rings</strong></li></ul><blockquote>Work till 25 minutes, if you realize there is another thing you need to do, write it down on a sheet of paper.</blockquote><ul><li><strong>After 25 minutes, take a short Break</strong></li></ul><blockquote>Breath, grab a coffee(anything which is not work) for 5 minutes.</blockquote><ul><li><strong>After every 4 Pomodoro(Four 25–5 cycles), take a longer break</strong></li></ul><blockquote>Take a long break for 20 to 30 minutes — chill.</blockquote><p>Summing up,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/1*DI1sbp8PilVZMi_w0sJk4w.png" /></figure><h4>The Design</h4><p>Let’s call this assistant action — <strong>TaskWoman</strong>.</p><ul><li><strong>Goal</strong>: To assist the users in getting more productive and getting their job done.</li><li><strong>Users</strong>: People who use Google Assistant in their SmartPhones, in Google Home and their Android Watch.</li><li><strong>Use Cases</strong>:</li></ul><ol><li>Starting the Action (Invocation for eg. “Hey Google, Start TaskWoman”).</li><li>Telling TaskWoman to start the Pomodoro Cycle.</li><li>Getting Notified by the TaskWoman when to start work and when to take breaks and when to start again.</li><li>Listening to soft study/work/productive playlist while the cycle is on.</li></ol><p>In the next part, I’ll write about the features and about technologies like Dialogflow and Google Action Console. Till then, MAHADEV _/\_</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=10c2e6831ac3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tech Survival Guide 1.0]]></title>
            <link>https://medium.com/@ekanshkr.srivastva.cer15/tech-survival-guide-1-0-b9ffc049ce3e?source=rss-1ddfbb36bb4f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9ffc049ce3e</guid>
            <category><![CDATA[begginer-tips]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[guides-and-tutorials]]></category>
            <category><![CDATA[product]]></category>
            <dc:creator><![CDATA[Ekansh Srivastva]]></dc:creator>
            <pubDate>Mon, 11 Mar 2019 15:50:18 GMT</pubDate>
            <atom:updated>2019-03-11T15:56:23.908Z</atom:updated>
            <content:encoded><![CDATA[<p>#EeetnaTohAanaChahiye</p><p>Ever wondered how the internet works from inside? You type in something in the address bar of your browser and you are open to an infinite number of applications and content that is powered and provided by numerous players around the globe. How when you click on the download button, you get your stuff saved on your smartphone or laptop?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m3vlxneAo50hBQYOZbT_ug.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/2EJCSULRwC8?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Alex Knight</a> on <a href="https://unsplash.com/search/photos/tech-savvy?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>In this article and the following articles, I’ll share stuff that the curious me searches over the internet. I’ll keep updating the series by sharing new articles. Also, people are invited to share anything interesting they come across in the comments and I’ll add them to the coming parts of the series. The links and information below have been presented in a question-answer format.</p><p><strong>How does the Torrent work?</strong></p><p><a href="https://www.howtogeek.com/141257/htg-explains-how-does-bittorrent-work/">How Does BitTorrent Work?</a></p><p>BitTorrent consumes 12% of total Internet traffic in North America and 36% of total traffic in the Asia-Pacific region, according to <a href="http://www.sandvine.com/news/pr_detail.asp?ID=394">a 2012 study</a></p><p>BitTorrent is a peer-to-peer protocol, which means that the computers in a BitTorrent “swarm” (a group of computers downloading and uploading the same torrent) transfer data between each other without the need for a central server.</p><p>Traditionally, a computer joins a BitTorrent swarm by loading a .torrent file into a BitTorrent client. The BitTorrent client contacts a “tracker” specified in the .torrent file. The tracker is a special server that keeps track of the connected computers. The tracker shares their IP addresses with other BitTorrent clients in the swarm, allowing them to connect to each other.</p><p>In this way, everyone downloading a torrent is also uploading the same torrent. This speeds up everyone’s download speed. If 10,000 people are downloading the same file, it doesn’t put a lot of stress on a central server.</p><p>Users downloading from a BitTorrent swarm are commonly referred to as “leechers” or “peers”. Users who upload are called “seeders”.</p><p>As <a href="http://www.bittorrent.org/beps/bep_0005.html">the DHT protocol specification</a> says, “In effect, each peer becomes a tracker.” This means that BitTorrent clients no longer need a central server managing a swarm. Instead, BitTorrent becomes a fully decentralized peer-to-peer file transfer system.</p><p><strong>Adv: Download speed increases, no need of a server, save bandwidth cost.WikiLeaks distributed data via BitTorrent, taking a significant load off their servers. Linux distributions use BitTorrent to help distribute their ISO disc images.</strong></p><ol><li><strong>How does the internet work?</strong></li></ol><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F7_LPdttKXPc%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D7_LPdttKXPc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F7_LPdttKXPc%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/8246e4a54fc67963b10e8dae8e323c8f/href">https://medium.com/media/8246e4a54fc67963b10e8dae8e323c8f/href</a></iframe><p>To understand the Internet, it helps to look at it as a system with two main components. The first of those components is hardware. That includes everything from the cables that carry terabits of information every second to the computer sitting in front of you. Others are <a href="https://computer.howstuffworks.com/router.htm">routers</a>, <a href="https://computer.howstuffworks.com/web-server.htm">servers</a>, cell phone towers, satellites, radios, <a href="https://electronics.howstuffworks.com/smartphone.htm">smartphones</a> and other devices — they make up servers, clients and nodes.</p><p>All of this hardware wouldn’t create a network without the second component of the Internet: the protocols. Protocols are sets of rules that machines follow to complete tasks. Without a common set of protocols that all machines connected to the Internet must follow, communication between devices couldn’t happen.</p><p><strong>Major Protocols: </strong>hypertext transfer protocol is what we use to view Web sites through a browser — that’s what the http at the front of any Web address stands for. Two of the most important protocols are the transmission control protocol (TCP) and the Internet protocol (IP).</p><p>The version of IP most of us use today is IPv4, which is based on a 32-bit address system. When you want to send a message or retrieve information from another computer, the TCP/IP protocols are what make the transmission possible. Your request goes out over the network, hitting domain name servers (DNS) along the way to find the target server. The DNS points the request in the right direction.</p><p>To read the article: Open web browser, type in URL, check different cache for the IP, if not DNS query initiated, request sent to ISP, ISP redirects to the DNS via router, DNS looks fo a match and sends accordingly, if not found send further up to another DNS server until it is found, browser initiates TCP connection — 3 way handshake (SYN, ACK), browser sends HTTP request (GET/POST), finally web server (Apache) receives request, sends to request handler (program written in PHP, Ruby) and sends back packets of info, each packet 1kb, packets have headers and footers to tell how to connect, they travel diff path of least resistance and reach browser, browser stitches them together — frist HTML, then sends request for CSS, JavaScript, etc. Mostly static files are cached by browser. —</p><p><a href="https://medium.com/@maneesha.wijesinghe1/what-happens-when-you-type-an-url-in-the-browser-and-press-enter-bb0aa2449c1a">What happens when you type a URL in the browser and press enter?</a></p><p><em>For maps.google.com, first, the DNS recursor will contact the root name server. The root name server will redirect it to .com domain name server. .com name server will redirect it to google.com name server. google.com name server will find the matching IP address for maps.google.com in its’ DNS records and return it to your DNS recursor which will send it back to your browser.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/0*w5axms4ygLOsiE0J" /></figure><p><strong>How does data security for cloud work?</strong></p><p>Cloud based applications are convenient for many businesses; they enable secure data management, analysis, and access from anywhere. Cloud services allow users to get information in real time and create a platform for a business owner to interact off premises.</p><p>Cloud security has three components:</p><p>Monitoring data — using ML to see anomalies</p><p>Gain visibility in the cloud to see who is causing the problem</p><p>Have Identity and Access control</p><p><strong>Secure the server: </strong>The traditional network had no measures to ensure that servers had full protection. The servers had to protect themselves from threats. With cloud web security; traffic gets to the cloud instead of being routed to the servers directly. The cloud analyses the traffic and only allow the legitimate users to gain access. Any traffic that the cloud does not approve, it blocks it from getting to the server.</p><p><strong>Inspects and filters data: </strong>The traditional systems have applications that filter data before it reaches the server. The applications are expensive and hard to maintain. With club web security services, traffic is redirected to the security cloud first where it gets filtered before reaching the application system.</p><p><strong>Five key areas:</strong></p><p>I. Governance and enterprise risk: The ability of an organization to govern and measure enterprise risk that is introduced by cloud computing.</p><p>II. Compliance and audit implications</p><p>III. Encryption: This concern addresses access controls of both access to resources and for protecting data.</p><p>IV. Key management</p><p>V. IAM</p><p><strong>API vs Webservice:</strong></p><p><strong>API:</strong></p><p>API is the list of methods and classes exposed by that application which can be used by other application to use their functionalities.</p><p>It lets developers integrate any two parts of an application or any different applications together. It consists of various elements such as functions, protocols, and tools that allow developers to build applications.</p><p>There are APIs for all types of systems, including operating systems, libraries, and the Web.</p><p>XML and JSON are two favorite examples of response media types that can be easily interpreted by API consumers.</p><p><strong>Webservice:</strong> is the type of API over HTTP. E.g Google, facebook, twitter’s webservice to use the login service for authenticating and signing into other application.</p><p>A web service is any piece of software that makes itself available over the internet and uses a standardized XML messaging system.</p><p>As all communication is in XML, web services are not tied to any one operating system or programming</p><p>language — Java can talk with Perl; Windows applications can talk with Unix applications.</p><p>Web services are built on top of open standards such as TCP/IP, HTTP, Java, HTML, and XML.</p><p><strong>REST vs SOAP:</strong></p><p>REST is stateless, SOAP needs to be aware of previous states.</p><p>REST is an architecture, SOAP is a protocol. REST can use SOAP web service, not vice versa.</p><p>REST does not need to follow a set of rules, SOAP has standard set of rules.</p><p>REST makes use of existing and widely adopted technologies, specifically HTTP, and does not create any new standards. REST is very data-driven, compared to SOAP, which is strongly function-driven.</p><p>SOAP relies heavily on XML</p><p><strong>TCP vs UDP:</strong></p><p><a href="https://support.holmsecurity.com/hc/en-us/articles/212963869-What-is-the-difference-between-TCP-and-UDP-">What is the difference between TCP and UDP?</a></p><p>Both TCP and UDP are protocols used for sending bits of data — known as packets — over the Internet. They both build on top of the Internet protocol. In other words, whether you are sending a packet via TCP or UDP, that packet is sent to an IP address. These packets are treated similarly, as they are forwarded from your computer to intermediary routers and on to the destination.</p><p>UDP is mailing a letter at the post office.</p><p>TCP is mailing a letter with a return receipt at the post office, except that the postmaster will organize the letters in-order-of mailing and only deliver them in-order.</p><p><strong>TCP</strong>: When you load a web page, your computer sends TCP packets to the web server’s address, asking it to send the web page to you. The web server responds by sending a stream of TCP packets, which your web browser stitches together to form the web page and display it to you. When you click a link, sign in, post a comment, or do anything else, your web browser sends TCP packets to the server and the server sends TCP packets back. TCP is not just one way communication — the remote system sends packets back to acknowledge it is received your packets.</p><p><strong>UDP: </strong>UDP stands for User Datagram Protocol — a datagram is the same thing as a packet of information. The UDP protocol works similarly to TCP, but it throws all the error-checking stuff out. All the back-and-forth communication and deliverability guarantees slow things down.</p><p>When using UDP, packets are just sent to the recipient. The sender will not wait to make sure the recipient received the packet — it will just continue sending the next packets. If you are the recipient and you miss some UDP packets, too bad — you can not ask for those packets again. There is no guarantee you are getting all the packets and there is no way to ask for a packet again if you miss it, but losing all this overhead means the computers can communicate more quickly.</p><p><strong>TCP</strong>:</p><ul><li>World Wide Web(HTTP)</li><li>E-mail (SMTP TCP)</li><li>File Transfer Protocol (FTP)</li><li>Secure Shell (SSH)</li></ul><p><strong>UDP</strong>:</p><ul><li>Domain Name System (DNS)</li><li>Streaming media applications such as movies</li><li>Online multiplayer games</li><li>Voice over IP (VoIP)</li><li>Trivial File Transfer Protocol (TFTP)</li></ul><p>Diagram- <a href="https://intronetworks.cs.luc.edu/current/html/tcp.html">https://intronetworks.cs.luc.edu/current/html/tcp.html</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/0*O4tEKr0KXBiilM6_" /></figure><p><strong>DNS, WWW, URL, HTTP:</strong> WWW is identified by URL, interlinked by hypertext, written in HTML (or CSS, JavaScript, PHP), accessible via the internet.</p><p><strong>Ipv4 vs Ipv6:</strong></p><p><a href="https://mashable.com/2011/02/03/ipv4-ipv6-guide/#x_zPLT_y5Oqx">IPv4 &amp; IPv6: A Short Guide</a></p><p><strong>HTML, CSS, PHP, JavaScript:</strong></p><p><strong>What is CSS? </strong>Cascading Style Sheets, or CSS, allow you to specify things like the font you want on your page, the size of your text, whether the page is to have 2 columns, whether your text is to be in bold or italics, and so on. In other words, it is the part that lets you control the appearance of your web page.</p><p><strong>What are JavaScript, PHP and Perl? </strong>Since the HTML/CSS combination is analogous to the data found in a Word document, it is good only for displaying information.</p><p>If you want your web pages to do different things depending on the situation, you will need a programming language. For example, some websites want to provide a <a href="https://www.thesitewizard.com/faqs/membership-password-protected-site.shtml">membership facility where people can log into the site</a>, and access certain information. Other sites provide a <a href="https://www.thesitewizard.com/wizards/feedbackform.shtml">feedback form</a> so that visitors can contact them. All these things require facilities that a simple document format cannot do.</p><p><a href="https://www.thesitewizard.com/javascripts/index.shtml">JavaScript</a>, <a href="https://www.thesitewizard.com/php/index.shtml">PHP</a> and <a href="https://www.thesitewizard.com/perl/index.shtml">Perl</a> are three of the most commonly-used programming languages on the Internet. They are used by websites to carry out more complicated operations.</p><p>Programs written in JavaScript run in the web browser itself, so if your website has a JavaScript program, the program will be automatically fetched by your visitor’s browser and executed on his/her computer. PHP and Perl programs, on the other hand, run on the computer where your website is located, that is, on your <a href="https://www.thefreecountry.com/webhosting/budget1.shtml">web host</a>’s computer. After the PHP or Perl program does what it needs to do, it sends the result to the visitor’s web browser, which merely displays the results.</p><p><strong>SSL vs TLS:</strong></p><p>It’s worth noting here that SSL and TLS simply refer to the handshake that takes place between a client and a server. The handshake doesn’t actually do any encryption itself, it just agrees on a shared secret and type of encryption that is going to be used.</p><p>SSL and TLS are both cryptographic protocols that provide authentication and data encryption between servers, machines and applications operating over a network (e.g. a client connecting to a web server). SSL is the predecessor to TLS. Over the years, new versions of the protocols have been released to address vulnerabilities and support stronger, more secure cipher suites and algorithms.</p><p><strong>HTTP, TCP/IP, SSL/TLS:</strong></p><p>The term “TCP/IP” stands for Transmission Control Protocol / Internet Protocol and refers to a number of protocols. The “IP” part of the term, which stands for <a href="https://searchunifiedcommunications.techtarget.com/definition/Internet-Protocol">Internet Protocol</a>, is used by <a href="https://searchnetworking.techtarget.com/definition/TCP">TCP</a>and <a href="https://searchnetworking.techtarget.com/definition/UDP-User-Datagram-Protocol">UDP</a>, to transport them from one network to another. Think of IP as a sort of high-way that allows other protocols to get on and find their way to other computers. TCP and UDP are the “trucks” on the highway, and the “load” they are carrying are protocols such as HTTP, <a href="https://searchenterprisewan.techtarget.com/definition/File-Transfer-Protocol">File Transfer Protocol (FTP)</a> and more.</p><p>SSL/TLS — establishes secure connection — agreement. IP — road. TCP/UDP — truck. HTTP — load.</p><p><strong>How does TinyURL work?</strong></p><p><a href="https://stackoverflow.com/questions/1562367/how-do-short-urls-services-work">How do short URLs services work?</a></p><p><strong>Best guide ever —</strong></p><p><a href="https://www.educative.io/collection/page/5668639101419520/5649050225344512/5668600916475904">Designing a URL Shortening service like TinyURL</a></p><p>When you click on a link like that, an HTTP request is sent to their server with the full URL, like <a href="http://bit.ly/duSk8wK">http://bit.ly/duSk8wK</a> (links to this question). They read the path part (here duSk8wK), which maps to their database. In the database, they find a description (sometimes), your name (sometimes) and the real URL. Then they issue a redirect, which is an HTTP 302 response and the target URL in the header.</p><p>This direct redirect is important. If you were to use files or first load HTML and then redirect, the browser would add TinyUrl to the history, which is not what you want. Also, the site that is redirected to will see the referrer (the site that you originally come from) as being the site the TinyUrl link is on (i.e., twitter.com, your own site, wherever the link is). This is just as important, so that site owners can see where people are coming from. This too, would not work if a page gets loaded that redirects.</p><p>PS: there are more types of redirect. HTTP 301 means: redirect permanent. If that would happen, the browser will not request the bit.ly or TinyUrl site anymore and those sites want to count the hits. That’s why HTTP 302 is used, which is a temporary redirect. The browser will ask TinyUrl.com or bit.ly each time again, which makes it possible to count the hits for you (some tiny url services offer this).</p><p><strong>How does OAuth security work?</strong></p><ul><li><a href="https://www.csoonline.com/article/3216404/authentication/what-is-oauth-how-the-open-authorization-framework-works.html">What is OAuth? How the open authorization framework works</a></li><li><a href="https://medium.com/@lunaticmonk/oauth-explained-with-real-life-example-f0386ad63637">OAuth explained with real life example.</a></li></ul><p><strong>Explain a database to a child in 3 sentences:</strong></p><p>A database is used to store information, organized collection of data, could be of any type, and easily accessible.</p><p>To a kid:</p><p>How do you know where to find your favorite toy at the toy store?</p><p>Because it is ordered and can be easily accessible right?</p><p>That is exactly a database — data arranged in local order and easily accessible in various ways.</p><p>Another way:</p><p>Think of a toy room which has three boxes: board games, toys and sports. If I asked you for Monopoly, which box would you open?</p><p>Kid answers. Great, how did you know that?</p><p>Now, if there were no boxes, what would you do? Becomes messy right?</p><p>That’s a database does: stores information in an ordered manner to retrieve easily.</p><p><strong>OOPS Concepts:</strong></p><p><strong>Inheritance</strong> is the process through which the properties <em>(state and behaviour)</em>of parent is reflected in the child. In OOP, inheritance is beneficial because it allows for <em>code reusability</em> and <em>polymorphism</em>.</p><p><strong>Encapsulation</strong> is a mechanism of wrapping the properties together as a single unit. In OOP, think of a class as an encapsulated unit of states(variables) and behaviours(methods/functions). Encapsulation allows <em>Data-Hiding</em><strong><em> </em></strong>and <em>Data Abstraction. </em>Through abstraction<em>, </em>the user/programmer using the encapsulated class doesn’t need to know the values of variables or the implementation of the methods. They just need to know which method to call to do which task.</p><p><strong>Polymorphism</strong> is the ability of an object to take on many forms. In OOP, polymorphism is achieved through <em>inheritance</em>. Suppose you require an animal to pull a cart but there is no specific mentioning of which animal to use. The animal can be either an ox, horse, donkey or camel <em>(which are all animals i.e., inherit the properties of what we would consider an animal in general)</em>. Therefore the <em>animal object</em> in this context is polymorphic.</p><p><strong>Inheritance and polymorphism</strong> are two sides of the same coin. Any class can have many subclasses — that is polymorphism. Those subclasses will differ from each other in some detail. But each any entity of those subclasses (subtypes) can be attached to a reference of the parent type. When an operation is done on that object, the differing details may affect the exact operation. Hence you have polymorphism. The typical example is SHAPE, with subclasses CIRCLE, SQUARE, RECTANGLE. You may reference each of these objects through a reference to SHAPE (or in a collection). When you apply ‘draw’ to each of these objects it draws the different shape.</p><p><strong>Encapsulation</strong> just means that all of the details are wrapped up in a single object. Thus an object should be independent of its context. This is good for software correctness, since debugging means you only need to consider the state of the object. Where state of the object bleeds into the environment it might seem that you get different results from applying the same operation to the object. Dependencies should be reduced by encapsulation. This results in more correct software and more flexible software able to cope with changing requirements.</p><p><a href="https://en.wikipedia.org/wiki/Abstraction_%28software_engineering%29"><strong>Abstraction</strong></a><strong> is the process of <em>generalisation</em></strong>: taking a concrete implementation and making it applicable to different, albeit somewhat related, types of data. The classical example of abstraction is C’s qsort function to sort data: The thing about qsort is that it doesn’t care about the data it sorts — in fact, it <em>doesn’t know</em>what data it sorts. Rather, its input type is a typeless pointer (void*) which is just C’s way of saying “I don’t care about the type of data” (this is also called type erasure). The important point is that the implementation of qsort always stays the same, regardless of data type. The only thing that <em>has</em> to change is the compare function, which differs from data type to data type. qsort, therefore, expects the user to provide said compare function as a function argument.</p><p><strong>System Design:</strong></p><p><a href="https://www.youtube.com/channel/UCRPMAqdtSgd0Ipeef7iFsKw">Gaurav Sen</a></p><p>Runtime of the data structures:</p><p>System Design: API: sketch out the endpoints.</p><ol><li>APIs are function calls to perform actions on websites and apps.</li><li>All code bases have something called routes — that route file has all the URLs that someone can click, and what to do when the request comes in. <strong>There is a routes file on the front-end which takes care of rendering the data you get. API gives all the data and that is backend. </strong>API gets triggered when you perform a function — clicking on the profile, that sends it to a URL, routes file calls the appropriate function.</li><li>SOAP vs RESTful vs COAR — REST is a guideline for how to structure the API. HTTP is a stateless protocol — every request has an access token/session/cookie to let server know who you are. Most websites use it — it’s very understandable and organized. From an endpoint standpoint as well it is easy.</li><li><strong>Vertical vs Horizontal Scaling:</strong></li></ol><p><strong>Horizontal scaling means that you scale by adding more machines</strong> into your pool of resources whereas <strong>Vertical scaling means that you scale by adding more power (CPU, RAM) to an existing machine</strong>.</p><p>An easy way to remember this is to think of a machine on a server rack, we add more machines across the <strong>horizontal</strong> direction and add more resources to a machine in the <strong>vertical</strong> direction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/0*brrZCaGTKxKJ3Elb" /></figure><p>In a database world horizontal-scaling is often based on the partitioning of the data i.e. each node contains only part of the data, in vertical-scaling the data resides on a single node and scaling is done through multi-core i.e. spreading the load between the CPU and RAM resources of that machine.</p><p>With horizontal-scaling it is often easier to scale dynamically by adding more machines into the existing pool — Vertical-scaling is often limited to the capacity of a single machine, scaling beyond that capacity often involves downtime and comes with an upper limit.</p><p>Good examples of horizontal scaling are Cassandra, MongoDB (NoSQL DB), <a href="https://cloud.google.com/spanner">Google Cloud Spanner</a> .. and a good example of vertical scaling is MySQL — Amazon RDS (The cloud version of MySQL). It provides an easy way to scale vertically by switching from small to bigger machines. This process often involves downtime.</p><p><strong>More: An important advantage of horizontal scalability is that it can provide administrators with the ability to increase capacity on the fly. Another advantage is that in theory, horizontal scalability is only limited by how many entities can be connected successfully. The distributed storage system Cassandra, for example, runs on top of hundreds of commodity nodes spread across different data centers. Because the commodity hardware is scaled out horizontally, Cassandra is fault tolerant and does not have a single point of failure (SPoF).</strong></p><p><strong>Vertical scalability, on the other hand, increases capacity by adding more resources, such as more memory or an additional CPU, to a machine. Scaling vertically, which is also called scaling up, usually requires downtime while new resources are being added and has limits that are defined by hardware. When Amazon RDS customers need to scale vertically, for example, they can switch from a smaller to a bigger machine, but Amazon’s largest RDS instance has only 68 GB of memory.</strong></p><p><strong>What is master-slave architecture?</strong></p><p>Master/slave is a model of communication where one device or process has unidirectional control over one or more other devices. In some systems a master is elected from a group of eligible devices, with the other devices acting in the role of slaves.</p><p>In computer science, the master/slave architecture initially started in the context of database replication. For example, if theres a database where data is replicated across 3 servers. There are chances that atleast one of these could be out of sync with others. In such cases how to resolve the inconsistency? With the master-slave architecture, one replica is identified as the master and the others serve as slaves. The new terminology is primary vs replica (or secondary).</p><p>In the case of database, typically, the clients will read and write to the master (some times reads are done on slaves too), and the data are copied asynchronously to the slaves.</p><ol><li><strong>Application Server vs Web Server:</strong></li></ol><p>A Web server handles the HTTP protocol. When the Web server receives an HTTP request, it responds with an HTTP response, such as sending back an HTML page. To process a request, a Web server may respond with a static HTML page or image, send a redirect, or delegate the dynamic response generation to some other program such as CGI scripts, JSPs (JavaServer Pages), servlets, ASPs (Active Server Pages), server-side JavaScripts, or some other server-side technology.</p><p>When a request comes into the Web server, the Web server simply passes the request to the program best able to handle it. The Web server doesn’t provide any functionality beyond simply providing an environment in which the server-side program can execute and pass back the generated responses.</p><p>As for the application server, according to our definition, an application server exposes business logic to client applications through various protocols, possibly including HTTP. While a Web server mainly deals with sending HTML for display in a Web browser, an application server provides access to business logic for use by client application programs.</p><p>The information traveling back and forth between an application server and its client is not restricted to simple display markup. Instead, the information is program logic. Since the logic takes the form of data and method calls and not static HTML, the client can employ the exposed business logic however it wants. An application server’s clients are often applications themselves, and can include web servers and other application servers.</p><p>Eg: As an example, consider an online store that provides real-time pricing and availability information. Most likely, the site will provide a form with which you can choose a product. When you submit your query, the site performs a lookup and returns the results embedded within an HTML page.</p><p>A <a href="https://www.nginx.com/resources/glossary/reverse-proxy-server/">reverse proxy</a> and <a href="https://www.nginx.com/resources/glossary/load-balancing/">load balancer</a> sit in front of one or more web servers and one or more web application servers to route traffic to the appropriate server, first based on the type of content requested and then based on the configured load-balancing algorithm. Most load balancer programs are also reverse proxy servers, which simplifies web application server architecture.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9ffc049ce3e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ok So, let's start. ..]]></title>
            <link>https://medium.com/@ekanshkr.srivastva.cer15/ok-so-lets-start-c01e4176638d?source=rss-1ddfbb36bb4f------2</link>
            <guid isPermaLink="false">https://medium.com/p/c01e4176638d</guid>
            <category><![CDATA[blogging]]></category>
            <category><![CDATA[writing]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[storyofmylife]]></category>
            <category><![CDATA[journey]]></category>
            <dc:creator><![CDATA[Ekansh Srivastva]]></dc:creator>
            <pubDate>Tue, 26 Feb 2019 09:25:23 GMT</pubDate>
            <atom:updated>2019-02-26T09:25:23.445Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RI3i9uoT8tBCq-z0" /><figcaption>Photo by <a href="https://unsplash.com/@honza_kahanek?utm_source=medium&amp;utm_medium=referral">Jan Kahánek</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Ok So, let&#39;s start. ..</h3><p>This is my personal space to write anything that comes in my mind, I don’t have a good grasp over English but I’ve been reading lots of self-help books so I think I can build that up once I continue writing about anything every day.</p><p>So, after quite a good amount of thinking regarding stuff that would keep me writing here every week, I think the best thing for me to start is Technology and different Ideas that comes along with it.</p><p>I am no good as a writer or any of a great analysis guy, but I think I can improve all of them if I continuously work along this direction I would love to tell anyone who is reading these articles everything about the things that I come across on the web. I also request people who somehow find themselves reading up till here to kindly provide feedbacks and also Ideas are welcome to tell me what topic the next article should be about. Also, I’m thinking of doing some tech researches about companies that I go through and those articles will be something like a mixture of views from various people who come across over this internet and some of my own views.</p><p>So, Today is Feb 26th and I could have waited for 1st March to come to start writing but as I learned from a good book, “Start Yesterday” — so, I’m already late!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c01e4176638d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>