<?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 Satyam Setia on Medium]]></title>
        <description><![CDATA[Stories by Satyam Setia on Medium]]></description>
        <link>https://medium.com/@satyam7991?source=rss-68252895adf3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*gsOTTJv3IFzby1zKtawPUg.jpeg</url>
            <title>Stories by Satyam Setia on Medium</title>
            <link>https://medium.com/@satyam7991?source=rss-68252895adf3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 18:27:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@satyam7991/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[Data over Sound]]></title>
            <link>https://medium.com/@satyam7991/data-over-sound-11bdccfef633?source=rss-68252895adf3------2</link>
            <guid isPermaLink="false">https://medium.com/p/11bdccfef633</guid>
            <category><![CDATA[transmission]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[sound]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[internet-of-things]]></category>
            <dc:creator><![CDATA[Satyam Setia]]></dc:creator>
            <pubDate>Wed, 09 Jan 2019 09:15:32 GMT</pubDate>
            <atom:updated>2019-01-09T09:15:32.031Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*IM74zrH0yiiXE2lNoyjjCg.png" /></figure><p>Think of the devices literally talking to each other. Yeah, the idea of sharing data over sound actually sounds interesting.</p><p>Traditionally, the data has been sent over cables, radiowaves, microwaves and infrared. But transmitting data using sound waves at both audible and inaudible frequencies can offer huge range of benefits in certain scenarios. It can be a good alternative to the technologies like WiFi, Bluetooth, NFC or QR codes in many situations. For example consider an area where the transmission of radio waves is prohibited, sound waves can be used for data transmission at such places. UK based EDF energy uses this technology to communicate with mobile workers in nuclear power stations and also to connect sensors for monitoring plant.</p><p>The thought process behind this technology is very simple. The sender translates the data into sequence of sounds that can be decoded by another device. The receiving device processes the audio and converts it back to the original form.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*yzgJ-66YvsokIvqw93jiJQ.png" /></figure><blockquote>But this has been done using WiFi or Bluetooth then why are we thinking of sound?</blockquote><h3>Why is it cool?</h3><h4>Simple</h4><p>Unlike Bluetooth or WiFi, sound doesn’t require pairing or setting up connection. It can be as simple as one tap for sharing data over sound and providing smoother experience.</p><h4>Universal</h4><p>Almost every device like smartphones have speaker and mic present in them and if not these can be incorporated easily at lesser cost. And this is all needed from hardware point of view for data-over-sound.</p><h4>Offline</h4><p>Sound doesn’t require any network like internet for travelling. Thus data can be transmitted in offline or airplane mode. This can be useful in cases where internet is not available like military communications.</p><h4>Low Power</h4><p>Average power consumption of a simple speaker and microphone is very less.</p><p>We have seen the benefits of this technology and now we can discuss it’s scope and applications.</p><h3>Applications</h3><p>Some of the companies like Chirp, Trillbit, Lisnr are actively exploring this technology. They have found the applications of data-over-sound in many areas including the following -</p><h4>Payments</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4mvbvDq5H9Z4-C96" /><figcaption>Google Pay</figcaption></figure><p>Google Pay’s tez mode and ToneTag have implemented solutions for faster and secure transactions or payments. Their product is based on data-over-sound. Google pay shares the details like bank account number over ultrasonic sound waves in such a way that no physical upgrades are required. It can be completed with smartphone’s speaker and microphone only.</p><h4>Retail</h4><p>Just like Bluetooth Beacon technology but with no extra hardware upgrades, data-over-sound can be used as good alternative. It can deliver hyper-contextualized information based on customer’s location in store. Offers and trending products can be recommended to customers when they are near the store. It can be a good advertising tool with power of personalization.</p><h4>Mobility</h4><p>Standing in queues and waiting for turn is always a difficult task. It is common while ticketing at stadiums or cinemas and at toll plazas. If average time spent per person in these scenarios can be reduced somehow then the mobility can be maintained. Data over sound offers simplest solution to these kind of problems. ToneTag, a bangalore based startup is working on such solution for reducing time per vehicle spent during payments at toll plazas.</p><h4>Broadcast</h4><p>As the emitted sound can be received be any number of listeners in the hearing range without the need of any network. Thus data over sound can be helpful in broadcasting information over an area without WiFi or cables.</p><h4>Places where radio frequencies are restricted</h4><p>As we discussed earlier, UK based EDF energy uses Chirp’s technology in part of nuclear power stations where radio transmissions are prohibited. They used this technology to communicate with mobile workers in nuclear power stations and also to connect sensors for monitoring plant.</p><blockquote>These are just few of application that we discussed. Data over sound has a big scope ahead.</blockquote><h3>How it can benefit IoT?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/421/1*NTWCrf3t7cQw7B2NZQwtUA.png" /></figure><p>There is no standard protocol in IoT for connecting remote devices. Trillbit proposed to use sound’s omnipresence to build an universal ecosystem that can be leveraged by multiple devices across different platforms. It can be able to provide safe and secure connections between smart devices rather than relying on traditional hackable network.</p><p>Consider the case of smart doors, it doesn’t actually need WiFi or Bluetooth for any data transfer. Smart doors can be efficiently controlled by this technology.</p><p>In the future we might find a number of different use cases where it might not be possible nor desirable to use existing networking technologies due to security concerns, excessive costs or because of complex and off-putting set-up processes for the consumer to connect the device to their network.</p><p><em>What next?</em></p><p><em>The amount of data that can be transferred over audio spectrum is limited even after compression. So it can presently be used for transferring small files only. But work is being done by companies like Lisnr towards optimization techniques to push chunks of data over sound waves.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11bdccfef633" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Web Browser … behind the scenes]]></title>
            <link>https://medium.com/@satyam7991/web-browser-behind-the-scenes-ddce8ffba50b?source=rss-68252895adf3------2</link>
            <guid isPermaLink="false">https://medium.com/p/ddce8ffba50b</guid>
            <category><![CDATA[dom]]></category>
            <category><![CDATA[cssom]]></category>
            <category><![CDATA[html-parsing]]></category>
            <category><![CDATA[web-browser]]></category>
            <category><![CDATA[css-parsing]]></category>
            <dc:creator><![CDATA[Satyam Setia]]></dc:creator>
            <pubDate>Mon, 26 Nov 2018 19:42:23 GMT</pubDate>
            <atom:updated>2018-11-26T19:58:05.376Z</atom:updated>
            <content:encoded><![CDATA[<h3>Web Browser … behind the scenes</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*br-_TR6nqqJD8eLJf4VO_Q.png" /></figure><p>A web browser can be described in simple words as an application software designed for accessing information from server and displaying it on client side.</p><p>Recently i have been reading how a simple web search on browser works. It’s quite interesting to explore the path followed in this process from the point when you enter any URL in browser to the point a web page is displayed. Here is a brief summary of this journey…</p><blockquote>We are going to discuss only client perspective of this journey and leaving the server’s task for some other time.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*noH59J_UZYZuBcUk" /><figcaption>Let’s begin</figcaption></figure><p>It all starts with writing <em>something</em> in the address bar of browser. Browser makes a request to server and expects some files in response which can be used to display web page on the screen.</p><blockquote>In the last line a lot of magic has already happened on the server side but we will not deviate from our discussion and continue from the point where browser gets response from the server.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*P6tchWtmAmnTKqXq" /></figure><p>Browser receive files from server. These files may be HTML, CSS, JavaScript file or any other document like PDF, image or media file.</p><p>Wait!!</p><p>But we have heard that data is sent in the form of packets over the internet.</p><p>Yeah, that’s true . It’s actually the task of our browser to interpret the received bytes into some meaningful information that can be used to render web pages.</p><p>But how? Let’s dive deep into it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/1*eJSbT_XDtqhm1EIG7wl28w.gif" /><figcaption>Raw data received from server</figcaption></figure><p>Each of the file whether it is HTML, CSS or JavaScript is obtained in the above format. The raw bytes of HTML are converted into a thing that we call as Document Object Model or just DOM.</p><p>The generation of DOM is itself a series of steps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*FcS1gsqRd4i7vTEWJRUK2A.png" /><figcaption>From raw bytes of HTML to DOM</figcaption></figure><p>Characters are simply the set of words that you have written in code. Browser can not understand it directly so it first performs tokenization.</p><p>During this process of generating tokens, the browser parses the HTML and read each word within angular brackets (i.e. html tags) so that it can apply the defined set of rules to the text written inside those start tag and end tag.</p><p>A node is just a distinct object with specific properties. These nodes are linked to form a tree like structure called DOM tree.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/665/1*0tHMEYIQUo2nLMHi7xUu7A.png" /><figcaption>Nodes linked to form DOM tree</figcaption></figure><p>Similar sort of things happen with CSS files to generate CSSOM (CSS object model), which can be viewed as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/1*A6zvaLnkNHC2g9HijsrMyA.png" /><figcaption>CSSOM</figcaption></figure><p>Now, the browser has two objects with it namely DOM and CSSOM. Both of them store different kind of information.</p><p>DOM has the information about different elements of web page and relationship between them whereas CSSOM has the information about the styling of these elements.</p><p>Browser combines these two to form a structure called <strong>Render Tree</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*HxNXjJyEZFQ1jZMK43yreA.png" /><figcaption>Render Tree</figcaption></figure><p>Render tree stores the information of all the visible elements on the web page and styling provided to each of them from CSSOM.</p><blockquote>Consider the case of an element with styling “display: none;”. It will not be present in render tree but it will be there in DOM tree.</blockquote><p>Now, it’s time to paint the screen with the information obtained from render tree. But before just displaying elements on screen, the browser performs some calculations about the size and positioning of these elements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JpaPEhxeC1Vngvan" /><figcaption>Preparing for layout</figcaption></figure><p>Based on the relationship between elements and their styling, each of them is positioned on the screen to complete a web page.</p><p>Finally, the web page is rendered on the screen.</p><p>Wait!! Are we missing something?</p><p>Yes, the interactivity of web page. We have discussed the interpretation of raw HTML and CSS files to DOM and CSSOM respectively but what’s about JavaScript?</p><p><a href="https://en.wikipedia.org/wiki/JavaScript_engine">JavaScript Interpreter</a> comes into action to handle the script. When the HTML parser encounters script tag it starts storing the data till the end of script and passes it to JavaScript interpreter. HTML parser waits for the execution of script and resume parsing when JS interpreter returns back to it.</p><blockquote>Due to this pause in HTML parsing because of the execution of script, it is recommended to put all the script tags at the bottom of the code to improve the perceived load time.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ddce8ffba50b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>