<?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 Basukrishna on Medium]]></title>
        <description><![CDATA[Stories by Basukrishna on Medium]]></description>
        <link>https://medium.com/@basukrishna1?source=rss-86a17a94d945------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*iWIxcSjDXpvfLp85dK-5fQ.jpeg</url>
            <title>Stories by Basukrishna on Medium</title>
            <link>https://medium.com/@basukrishna1?source=rss-86a17a94d945------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 04:00:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@basukrishna1/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[My Manifesto]]></title>
            <link>https://medium.com/@basukrishna1/my-manifesto-cb7fb2a3353?source=rss-86a17a94d945------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb7fb2a3353</guid>
            <dc:creator><![CDATA[Basukrishna]]></dc:creator>
            <pubDate>Mon, 21 Nov 2022 06:35:04 GMT</pubDate>
            <atom:updated>2022-11-21T06:49:47.409Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/509/1*JfbE9sbc1VZTYQZxRZL_cg.jpeg" /></figure><p>I believe everyone has a purpose in this universe. From a pencil tip to a human’s heart, everyone is special. It just takes time to know their worth. Everyone has something which makes them stand out from the world, their superpower some find it early in their life some later. I feel strongly that every single person is loved. That every single person is cared for. It&#39;s just time to open your eyes, observe and realize the amazing things happening around the world. From the dwindling daffodils to the sky, I believe everyone should appreciate the beauty nature has given to comfort our eyes.</p><p>Not every failure teaches you how not to make the same mistake. I believe it teaches you to be tolerant of the obstacles you encounter. Through unpleasant disappointments, you continuously discover things over which you have no control. You have GREATNESS within you, and although failure can take a massive emotional toll on your life, you are gaining the perspective that is needed to handle the inevitable that will arise.</p><p>“Bachelors in all but master in none”, is the phrase that people tend to comment on me. I believe having talent is a good thing, but it&#39;s hard when you realize that there are people who are far better than you in those individual aspects. When it comes to Quality vs Quantity, Quality wins. I believe it teaches you how not to be jealous of others and believe in yourself, believe in your hard work. You will realize how hard and sincerely you work on your talent there will be someone who will outshow you either now or in the future.</p><p>I believe everyone should be open to the possibility of improvement, rather less being a master in their field. Being humble and listening to the queries of a fool&#39;s mind is the best way to know every aspect of your talent. “Strive for continuous improvement rather than perfection”.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb7fb2a3353" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How does a QR code work?]]></title>
            <link>https://medium.com/spidernitt/how-does-a-qr-code-work-a1ac866f9d59?source=rss-86a17a94d945------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1ac866f9d59</guid>
            <category><![CDATA[qrious]]></category>
            <category><![CDATA[qr-code]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[spiders]]></category>
            <dc:creator><![CDATA[Basukrishna]]></dc:creator>
            <pubDate>Wed, 01 Dec 2021 12:33:24 GMT</pubDate>
            <atom:updated>2021-12-01T12:33:24.263Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1_QIeN9nbhto3hchkxwhoQ.jpeg" /></figure><p><em>Ever imagined a QR code scan, that can direct you to a restaurant’s menu card, give you details of a product you buy in a mall? What are those black and white stripes in a bar code? how does it work?</em></p><p><em>Let’s find it out and make our own QR code using HTML canvas !!!</em></p><h3><strong>Bar-Code</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/303/1*mZwDmidEEK6l6Mxcsy16ig.png" /></figure><p>Bar-Code basically represents a series of numbers. Each element of a bar code is divided into sets of 7, consisting of black and white strips, each set representing an individual number.</p><p>To understand let’s take white lines as ‘0’ and black as ‘1’.So the number 1 is actually represented by 0011001. To buy products the bar-codes have 12 digits, the first 5 representing manufacturing code, the next 5 representing product code, and the last two numbers representing check digits.</p><p><strong>Why only black and white stripes?</strong></p><p><em>The answer is simple Physics. Blacklight absorbs light whereas white reflects. So when a laser of suitable frequency sweeps across bar code some of the light gets absorbed, some get reflected. The scanner detects the amount of light and interprets the number behind it.</em></p><p><strong>QR code(Quick Response Code)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*sGaRRQEh55SOgQk4lOkHzg.png" /></figure><p><strong>Components</strong></p><p>How does our camera/scanner detects the presence of QR code?</p><p>It’s due to the presence of <em>positioning detection marks</em> (Red).</p><p>The <em>Timing marks</em>(Blue) show how large the data matrix is.</p><p>There are many versions/types of QR codes. The version of the code is identified by the <em>version information marks</em> (Dark Blue).</p><p>To straighten the QR code on a curved surface a<em>lignment marking</em>(Purple) is used.</p><p>The <em>format information</em>(Yellow) contains about error tolerance which makes it easier to scan the code.</p><p><strong>The rest black and white space </strong>is actually where the information is stored. Let’s see how.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/280/1*W1BlJ7q2L21urx701xUscg.png" /></figure><p>The QR code follows a zig-zag pattern(in pairs) to read values where black is represented by ‘1’ whereas white is ‘0’.</p><p>The first 4 bytes (from the bottom corner) represent the encoding. It might be bytes, numeric, alphanumeric, and kanji(<em>Logographic writing system</em>).</p><p>The next 8 bytes represent the length of the message represented by the QR code.</p><p>After that, all the next blocks represent an 8-bit binary number which further is converted into decimal values which when looked upon the ASCII table represents a letter.</p><p>The E1, E2, E3, etc represent the error correction that is required <strong>to restore data if the code is dirty or damaged.</strong></p><p>For example-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*0pjhuMW3r1pPatwZAXY6zA.jpeg" /></figure><p>The first block which is of 4 bytes represents its encoded in bytes</p><p>The second represents the length of the message. The dark blue represents ‘1’ and light blue as ‘0’ which makes the block 00001000 which is equal to 8 in binary. It means the length of the message is 8.</p><p>In the next block using the zig-zag pattern we traverse through the 8 bytes block and note the number. Here the binary number is 01000100 when converted to binary is 68 which is the ASCII value of the letter D.</p><p>And by the same way rest of the message is encoded.</p><p><strong>Here comes the interesting part, Can we generate our own QR code?</strong></p><p><em>YES, we can!</em></p><p><a href="https://cdnjs.cloudflare.com/ajax/libs/qrious/4.0.2/qrious.min.js"><strong>QRious</strong></a> is a pure JavaScript library for generating QR codes using HTML5 canvas.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1ba66349d2f412bafc9bf27e15edd0e3/href">https://medium.com/media/1ba66349d2f412bafc9bf27e15edd0e3/href</a></iframe><p><em>QRious</em> uses Html5 canvas. Here a constructor is created which retrieves the canvas element by id and the value is the link that we want to get through the QR code when scanned.</p><p><strong>Conclusion</strong></p><p>QR code and Bar code mostly use a combination of binary codes to represent a message which in fact is fast, reliable, easy to access. QR Code stores the information in the matrix, which stores the information on both axes horizontally or vertically. Whereas Bar code does in horizontal form.</p><p><strong>QR codes seem to be an advanced mode of advertising and marketing that brings innovation to the field.</strong> Living in such a fast-paced life, QR code exponentially reduces the time of doing the various tasks from getting information about a product to secure encryption.</p><p>Happy Coding!</p><p><strong>Reference</strong></p><p>Wikipedia — <a href="https://en.wikipedia.org/wiki/QR_code">Wiki</a></p><p>Youtube — <a href="https://youtu.be/142TGhaTMtI">How QR codes are made</a></p><p><em>This article is published as a part of ‘</em><strong><em>JavaScripted’</em></strong><em> under </em><a href="https://medium.com/spidernitt"><em>Spider Research and Development Club, NIT Trichy</em></a><em> on a Web Wednesday!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1ac866f9d59" width="1" height="1" alt=""><hr><p><a href="https://medium.com/spidernitt/how-does-a-qr-code-work-a1ac866f9d59">How does a QR code work?</a> was originally published in <a href="https://medium.com/spidernitt">Spider R&amp;D</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>