<?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 Shreya Singh on Medium]]></title>
        <description><![CDATA[Stories by Shreya Singh on Medium]]></description>
        <link>https://medium.com/@shreya-singh?source=rss-13eb772017f8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*suIUqW854y5xGjmFtSxhEg.jpeg</url>
            <title>Stories by Shreya Singh on Medium</title>
            <link>https://medium.com/@shreya-singh?source=rss-13eb772017f8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 17:55:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shreya-singh/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[How to create a basic React app and make an API call?]]></title>
            <link>https://faun.pub/how-to-create-a-basic-react-app-and-make-an-api-call-a8e605e50a9?source=rss-13eb772017f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/a8e605e50a9</guid>
            <category><![CDATA[api-integration]]></category>
            <category><![CDATA[frontend-development]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Shreya Singh]]></dc:creator>
            <pubDate>Sun, 04 Jul 2021 18:17:02 GMT</pubDate>
            <atom:updated>2021-07-07T10:31:51.078Z</atom:updated>
            <content:encoded><![CDATA[<p>This article is for all the people out there who are starting with React. This can be a good first project where you will learn the following:<br><strong>1. Setup for creating React app<br>2. Creating a React app<br>3. Making an API Call using React<br>4. Setup React Developer Tools</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*qm99PBZm_YQu0MQ1tvJD9A.png" /></figure><p>The code for this tutorial is present at:</p><pre><a href="https://github.com/singh-shreya6/react-app"><strong>https://github.com/singh-shreya6/react-app</strong></a></pre><p>If you already have IDE and node installed on your system Skip to the section on Creating a React App</p><h3><strong>1) Setup for creating a React App</strong></h3><p>i. <strong>Setup an IDE</strong>: I used <em>Visual Studio Code</em> for implementing the following project.<br>Download VSCode from this link: https://code.visualstudio.com/download</p><p>ii. <strong>Setup Node</strong>: I had node previously installed on my system, however for this project, I needed a more recent version of node, so I used nvm to switch between multiple node versions.</p><p><strong><em>How to setup nvm?</em></strong></p><pre>curl -o- <a href="https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh">https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh</a> | bash</pre><pre>nvm --version</pre><p><strong><em>How to setup Node using NVM?</em></strong><br>Install the specific version that you want of node: Example:<br>nvm install 12<br>To switch between node version use:nvm use 12<br>To check Node version use: node -v<br>Check npx version: npx -v</p><h3><strong>2) Creating a React App</strong></h3><p>Creating a React App is simply now that you have the setup.</p><p>Use npx to create a react app. This will create a sample app with all the required things in a folder named my-app. After the folder gets created, change directory to the folder and run the app.</p><pre>npx create-react-app my-app<br>cd mp-app<br>npm start</pre><p>Something like this will come up on port 3000:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EJUK9UoTTvETkbG5SOMieg.png" /></figure><h3><strong>3) Make an API Call using React</strong></h3><p>Congratulations your basic React app is up and running. Now let us try to edit App.js and learn to make an API call using React.</p><p>Here I have used apublic api to make an API call, so that we don’t have to grow through the hassle of creating api-key.</p><p>API Used: <br><a href="https://api.coindesk.com/v1/bpi/currentprice.json">https://api.coindesk.com/v1/bpi/currentprice.json</a></p><p>API Response:</p><pre>{<br> “time”:{<br> “updated”:”Jul 4, 2021 17:55:00 UTC”,<br> “updatedISO”:”2021–07–04T17:55:00+00:00&quot;,<br> “updateduk”:”Jul 4, 2021 at 18:55 BST”<br> },<br> “disclaimer”:”This data was produced from the CoinDesk Bitcoin Price Index (USD). Non-USD currency data converted using hourly conversion rate from openexchangerates.org”,<br> “chartName”:”Bitcoin”,<br> “bpi”:{<br> “USD”:{<br> “code”:”USD”,<br> “symbol”:”&amp;#36;”,<br> “rate”:”35,583.4383&quot;,<br> “description”:”United States Dollar”,<br> “rate_float”:35583.4383<br> },<br> “GBP”:{<br> “code”:”GBP”,<br> “symbol”:”&amp;pound;”,<br> “rate”:”25,743.1231&quot;,<br> “description”:”British Pound Sterling”,<br> “rate_float”:25743.1231<br> },<br> “EUR”:{<br> “code”:”EUR”,<br> “symbol”:”&amp;euro;”,<br> “rate”:”29,990.2556&quot;,<br> “description”:”Euro”,<br> “rate_float”:29990.2556<br> }<br> }<br>}</pre><p>Code to fetch API Response:</p><pre>componentDidMount() { <br>document.title = “Bitcoin Prices”; fetch(‘https://api.coindesk.com/v1/bpi/currentprice.json&#39;) <br>      .then(results =&gt; { return results.json(); })<br>      .then(data =&gt; {<br>            const bpi = get(data, ‘bpi’, {}); <br>            const time = get(data, ‘time’, {}) <br>       <br>       this.setState({ bpi: bpi, <br>                       time: time }); <br>     });<br>}</pre><p>Here I am calling the API in this line: fetch(‘https://api.coindesk.com/v1/bpi/currentprice.json&#39;)<br>I am extracting the bpi and time fields from Json response above and setting a state variable with the value of these attributes of json object. Our API Call is successful and I have the state variables ready to use. I created a basic table structure to display the Country Code, Description and rate from the bpi state variable. Then ran the command: npm start</p><p>Complete code is present at: <a href="https://github.com/singh-shreya6/react-app/blob/master/src/App.js">https://github.com/singh-shreya6/react-app/blob/master/src/App.js</a></p><p>The server comes up with the following output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/838/1*HA6mdMd02a0sJaJmAhpAJA.png" /></figure><h3><strong>4) Setting up React Developer Tools</strong></h3><p>To see the react components we can use the extension <strong>React Developer Tools</strong> which makes debugging easy for React. Search for the extension and add it to your browser.<br>Once you have add it go to Inspect and switch to the Component tab and you will be able to see the resources created in your app, something like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wZtvoe9Kan0Hr_0uJzh3PA.png" /></figure><p>Congratulations, You have learned how to successfully create a react app, make API calls and debug using React.</p><figure><a href="https://faun.to/i9Pt9"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t_MOgMTr_f1N4qHN_R7KVA.png" /></a></figure><p>Join FAUN: <a href="https://faun.to/i9Pt9"><strong>Website</strong></a><strong> </strong>💻<strong>|</strong><a href="https://faun.dev/podcast"><strong>Podcast</strong></a><strong> </strong>🎙️<strong>|</strong><a href="https://twitter.com/joinfaun"><strong>Twitter</strong></a><strong> </strong>🐦<strong>|</strong><a href="https://www.facebook.com/faun.dev/"><strong>Facebook</strong></a><strong> </strong>👥<strong>|</strong><a href="https://instagram.com/fauncommunity/"><strong>Instagram</strong></a><strong> </strong>📷|<a href="https://www.facebook.com/groups/364904580892967/"><strong>Facebook Group</strong></a><strong> </strong>🗣️<strong>|</strong><a href="https://www.linkedin.com/company/faundev"><strong>Linkedin Group</strong></a><strong> </strong>💬<strong>|</strong> <a href="https://faun.dev/chat"><strong>Slack</strong></a> 📱<strong>|</strong><a href="https://thechief.io/"><strong>Cloud Native</strong> <strong>News</strong></a><strong> </strong>📰<strong>|</strong><a href="https://linktr.ee/faun.dev/"><strong>More</strong></a><strong>.</strong></p><p><strong>If this post was helpful, please click the clap 👏 button below a few times to show your support for the author 👇</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a8e605e50a9" width="1" height="1" alt=""><hr><p><a href="https://faun.pub/how-to-create-a-basic-react-app-and-make-an-api-call-a8e605e50a9">How to create a basic React app and make an API call?</a> was originally published in <a href="https://faun.pub/">FAUN.dev() 🐾</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Investment 101 for Indian Women: A step towards financial independence]]></title>
            <link>https://shreya-singh.medium.com/investment-101-for-indian-women-ff6b29e9a50?source=rss-13eb772017f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff6b29e9a50</guid>
            <category><![CDATA[women]]></category>
            <category><![CDATA[women-in-tech]]></category>
            <category><![CDATA[india]]></category>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[investment]]></category>
            <dc:creator><![CDATA[Shreya Singh]]></dc:creator>
            <pubDate>Sun, 27 Jun 2021 10:42:13 GMT</pubDate>
            <atom:updated>2021-06-27T14:24:00.876Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong><em>“Someone’s sitting in the shade today because someone planted a tree a long time ago.”<br>“Risk comes from not knowing what you are doing.”</em></strong><br>- Warren Buffet</blockquote><p>Investments are for everyone. Despite working and earning, many women in India are still dependent for their investment/financial decisions. Women are less likely to invest generally, and even those who do invest tend to wait until they are older to start. It is really the time now that women also need to start investing as soon as they start earning. Often women tend to think they don’t know enough about investing to properly grow their savings, and tend to wait to start investing until they feel they’re more financially stable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*J2eh71NDt2bEHJdtkiaL4w.jpeg" /><figcaption>Image Source(<a href="https://healthmanagementdc.ch/">healthmanagementdc.ch</a>)</figcaption></figure><p><strong>Why should women take their own investment decision and start investing as soon as they start earning?</strong><br>For the simple reason that is to attain <em>financial independence.</em> It’s the most important reason why women should invest herself. We need to be able to achieve a sense of financial independence, only then we will be truly growing, both in terms of our career and our money.</p><h3><strong>How should you start investing?</strong></h3><ol><li><strong>Gain financial knowledge</strong>: Learn about investing, markets, accounting and more. It will help you make overall better financial decisions. It may look very exhaustive and a lot of work at the beginning. But trust me tonnes of financial knowledge resources are present on the internet and it really doesn’t take long once you understand the basics. You can take help from friends/family to understand better. It is important to gain knowledge from everywhere, but invest your money yourself.</li><li><strong>Get your banking online</strong>: Internet Banking is an asset. It not only saves time, but with the aid of Internet Banking, investments can be made by few clicks alone. It makes investing a thousand times easier and hassle free. We can even open Demat Accounts without visiting the bank even once, thanks to the apps like Zerodha, Upstox, Groww. All you need are your documents like Aadhaar and PAN Card.</li><li><strong>Start looking at Mutual Funds:</strong> Mutual Funds are a good way to get started with investing. Initially just keep the app installed and explore it whenever you get time. See the mutual funds with highest returns, go through the companies in which it has holding. Observe the charts for monthly, yearly performance. Once you feel familiar, start investing. Depending on your income and savings, you can start with any amount. The important things is to get started and not the amount. Gradually, when the understanding increases and when you see that the markets have dipped a bit, you can invest more in the same Mutual Fund.</li><li><strong>Share Market Trading</strong>: The golden rule is to make calculated risks. First observe, see the charts for any stock over some period. Add some famous shares in your watchlist and analyse the performance. Understand the basic terminology like lower circuit, upper circuit, holdings, intraday. Watch the news around the famous shares and invest when you see the share is below currently than its normal range. And most importantly have patience. Do not make rushed decisions.</li><li><strong>Traditional Investment Options</strong>: The easiest approaches to begin investing are the traditional approaches which are more long term like PPF, EPF, FD, NSC. These are good options always. Although they have lesser return in shorter period, but none the less, growing money anywhere is better than not doing anything at all.</li></ol><p><strong>My 2 cents on Financial Investment</strong><br>Ideally, we should do all of these. However, it is really important to take the first step to financial freedom. So women, please don’t wait for years before you start investing. Whatever be your earning, start investing a little amount. You will feel confident. You cannot get rich with your money sitting in a savings account. It is important to invest in appreciating assets.</p><p>So ladies, let’s start our journey to true financial independence!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff6b29e9a50" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Experience at Google I/O, seeing Sundar Pichai and visiting California]]></title>
            <link>https://shreya-singh.medium.com/my-experience-at-google-i-o-seeing-sundar-pichai-and-visiting-california-cc22df4da1e?source=rss-13eb772017f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc22df4da1e</guid>
            <category><![CDATA[conference]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[california]]></category>
            <category><![CDATA[google-io-2019]]></category>
            <dc:creator><![CDATA[Shreya Singh]]></dc:creator>
            <pubDate>Sun, 30 May 2021 18:30:27 GMT</pubDate>
            <atom:updated>2021-05-30T20:04:27.640Z</atom:updated>
            <content:encoded><![CDATA[<p>Visiting the Silicon valley and seeing Sundar Pichai deliver his keynote speech just few feet in front of me are just one of the many surreal experiences, that made this trip to the Bay Area something to remember always. Attending Google I/O was an experience of a lifetime for me for a multitude of reasons.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MLWUhWRqgFLvfdwJqcy69A.jpeg" /></figure><p>Google I/O is an annual developer conference held by Google in Mountain View, California. I got the opportunity to attend this developer conference in the year 2019 by being among the top contestants in a coding competition held every year. The top competitors in this contest are awarded a ticket and a stipend to attend to Google I/O.</p><p>Google I/O was a three day event(7th May- 9th May 2019) packed with workshops, tech talks, sandboxes, code labs, keynote speeches, band performance, first hand experience at seeing the impressive technologies being implemented. The event started with a keynote speech by Sundar Pichai. It was surreal to see him in person delivering the keynote with so much calm and conviction. Out of all the experiences which are unforgettable for me from that conference, probably this tops everything. Being in California, sipping coffee while hearing the keynote speech by the first ever Indian CEO of Google felt exhilarating. It was followed by several sessions and talks on Tensorflow, Flutter, Android, Artificial Intelligence, Voice Recognition, Live Captioning. Coming from the people who have developed these cutting edge technologies, just listening to these tech talks was so informative.</p><p>This trip was memorable for several other reasons too. It was my first trip to the USA and my second international trip abroad. The entire process from getting the visa, to the long travel to San Francisco was very exciting. I had traveled from Patna to Delhi(2 hours), then Delhi to Dubai(4.5 hours), then Dubai to San Francisco(16 hours). But this long journey’s tiredness was gone in a minute when I saw my flight landing on the SFO Airport with Pacific ocean just beside the runaway. I was in the Silicon valley, the place where it all started, the technological revolution. The weather of Bay Area immediately captivates with its light breezy coolness. I stayed in Cupertino, CA from where I used to go to Shoreline Amphitheatre in Mountain View, CA where the conference was happening.</p><p>Taking Lyft, walking across the streets of California, eating at some fabulous places, visiting the Golden Gate Bridge, Baker Beach, Fisherman’s Wharf, walking across Pier 39, shopping in China Town are some indelible memories. It was also very liberating as I was doing all this alone on the last day of the trip, an Indian Girl in a foreign country, with just internet and tonnes of research on how to make the most of this experience. I remember calling my family from the Golden gate bridge, and it just felt so empowering that I was a long way from home, but I was so confident and making memories to cherish for a lifetime. For the most of the trip, I had a fellow Indian student Namrata with me and we visited so many places like the Apple Headquarters in Cupertino, The Computer History Museum, the Android park. We had dinner at an Indian restaurant when we missed Indian food so bad after eating sandwiches and pizza for days.</p><p>All these experiences were very unique and gave me a lifetime of memories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R_Bd4VQSJ1pCeIEHRLo7DQ.jpeg" /><figcaption>Golden Gate Bridge</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GqiReK5NjH0qmLhxdsYO3A.jpeg" /><figcaption>Keynote by Sundar Pichai</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YXQosv76OUckghN67mWvbA.jpeg" /><figcaption>Shoreline Amphitheatre, Mountain View, CA</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p-A_ZkDJVtWbhtmEwwXFzA.jpeg" /><figcaption>Google Office</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc22df4da1e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GSSoC- A beautiful start to my journey in the world of Open Source]]></title>
            <link>https://shreya-singh.medium.com/gssoc-a-beautiful-start-to-my-journey-in-the-world-of-open-source-98703b29601f?source=rss-13eb772017f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/98703b29601f</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[summer-of-code]]></category>
            <category><![CDATA[girlscript]]></category>
            <category><![CDATA[algorithms]]></category>
            <dc:creator><![CDATA[Shreya Singh]]></dc:creator>
            <pubDate>Sun, 02 Jun 2019 08:39:43 GMT</pubDate>
            <atom:updated>2019-06-02T09:03:17.218Z</atom:updated>
            <content:encoded><![CDATA[<p>During the month of February of 2019, I got to know about <strong><em>GirlScript Summer of Code</em></strong>. For those of you who haven’t heard of it, GSSoC is a three month long <strong><em>Open Source program</em></strong> during summers conducted by GirlScript Foundation, started in 2018, with an aim to help beginners get started with Open Source Development while encouraging diversity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4DKjP-tZVoyU-TZMnR4QxQ.png" /></figure><p>At the start of March, I had a lot on my schedule already and I was very skeptical about whether or not I would be able to contribute to it even though I was enthusiastic about it. Thankfully, I found the wonderful repository <strong><em>Algo-ds-notes</em></strong> by Aman Jain. It was the time when I was looking to study Data Structures and Algorithms extensively and Algo-ds-notes provided me the perfect opportunity to learn as well as contribute to GSSoC and thus began my journey in the world of open source.</p><p>During the course of three months, I didn’t even realize, but I found myself finding out the time somewhere between other tasks to contribute algorithms to GSSoC. In retrospect, I feel those are the time I might have completely wasted doing something irrelevant. GSSoC gave me a sense of purpose for a period of three months. I can’t thank all the mentors of Algo-ds-notes enough namely Aman Jain, Rishabh Garg, Manbir Singh Marwah and several others who were also working as hard as the participants to make GSSoC a good learning experience. They were there day-in and day-out resolving any issue that came forward.</p><p>However, my biggest thanks is reserved to my fellow contributors in GSSoC. It is only because of their such active participation throughout the three months, that even I pushed myself to do more. It is only because of them that I have more than 60 Pull requests merged in such a short span. The healthy competition helped me learn so many algorithms that I was completely unaware of.</p><p><strong><em>However, my biggest learning through GSSoC are not just the algorithms I learnt. I had several interesting life lessons as well.</em></strong><br>1) You never know how much you can handle. Never doubt your own capabilities. During the course of GSSoC, I got overburdened with tasks. I had to travel a lot, work a lot, attend family functions, but somehow I was able to successfully handle almost of the things which at some point seemed impossible.</p><p>2) It is never too late to start a new journey. So don’t hesitate to set foot in a new domain. I was in my final year when I got to know about GSSoC. I didn’t have any experience in the field of open source as well. Most of my fellow contributors were my juniors, but I was determined to begin contributing to open source and I have to say, GSSoC turned out to be a phenomenal learning experience for me.</p><p>3) When you do it alone, you might lose motivation along the way. When you do it with friends, you won’t even realize how much you have achieved. Your friends and your fellow contributors prove to be the biggest catalysts and support systems.</p><p>I am extremely happy to have been a part of GirlScript Summer of Code. I would definitely recommend this program to my juniors as GSSoC is an amalgamation of a good learning experience, a perfect first step to open source and expose you to an active community of like-minded people.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=98703b29601f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Real Time Object Detection using YOLO model: A Navigation Assistant for the visually impaired…]]></title>
            <link>https://shreya-singh.medium.com/real-time-object-detection-using-yolo-model-a-navigation-assistant-for-the-visually-impaired-185034f6d100?source=rss-13eb772017f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/185034f6d100</guid>
            <category><![CDATA[text-to-speech]]></category>
            <category><![CDATA[object-detection]]></category>
            <category><![CDATA[yolo]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Shreya Singh]]></dc:creator>
            <pubDate>Sun, 10 Mar 2019 07:57:48 GMT</pubDate>
            <atom:updated>2019-03-10T07:57:48.079Z</atom:updated>
            <content:encoded><![CDATA[<h3>Real Time Object Detection using YOLO model: A Navigation Assistant for the visually impaired using Speech to Text, Object Detection and Text to Speech</h3><p><strong>YOLO: </strong>Real-Time Object Detection. You only look once (<strong>YOLO</strong>) is a state-of-the-art, real-time object detection system. It is a pre-trained model for several common objects like chair, person, car, bottle etc.</p><p>The github repository of this project can be found at this url: <a href="https://github.com/singh-shreya6/Navigation-Assistant"><strong>https://github.com/singh-shreya6/Navigation-Assistant</strong></a></p><p>We utilised it make a navigation assistant which tells how far left, right or ahead the object of search is in degrees. The entire system had three modules:</p><ol><li><strong><em>Speech to Text using Google API</em></strong>: The user gives input in the form of speech. Example: Find me a chair, find bottle etc.</li><li><strong><em>Object Detection</em></strong>: The YOLO model detects the object in search. We modified it to tell us the degrees left or right at which object is present.</li><li><strong><em>Text to Speech</em></strong>: Pyttsx library of python was used to give back the output in the form of speech. Example: Chair found at 21 degrees left, Bottle found ahead etc.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mUpx9T7RM43fS8Lfdt33dQ.png" /><figcaption>Workflow of the system</figcaption></figure><p><strong><em>Requirements</em></strong>:<br>It is primarily a python based model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XWfqcw_Y5Nun3ffxHYHemg.png" /><figcaption>Requirements of the system</figcaption></figure><p><strong><em>Run Command:</em></strong></p><blockquote>python code.py \<br> — prototxt MobileNetSSD_deploy.prototxt.txt \<br> — model MobileNetSSD_deploy.caffemodel</blockquote><p><strong><em>Workflow Explained:</em></strong></p><ol><li>The entire system is initially on sleep mode. On speaking “<strong><em>Help Me</em></strong>”, the system gets activated.</li><li>The user can then give their voice query in the form of find me a bottle, find bed etc.</li><li>A video stream starts using the imutils library of python.</li><li>The object detection module gets activated, where it matches the object against its set of predefined classes. <strong><em>Deep Neural Network</em></strong> (DNN) is used as the model.</li><li>If object is found, it makes a box around the object. We have fetched the co-ordinates of the box. For getting the user’s viewpoint, we have considered the center of the bottom line of the box. If object is not present in its training dataset, the system returns object not found output.</li><li>The calculation of degree has been made by the mathematical formula:<strong><em> math.degrees(math.atan(abs(centerX-user_x)/abs(centerY-user_y)))</em></strong></li><li>The video stream stops.</li><li>Finally, the text output is converted to speech by using the pyttsx library of python.</li></ol><p><strong><em>Output:</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sXX0-uvsI8XUkUPtd1sdDw.png" /><figcaption>Video stream and outputs on terminal</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*FILsIYt7l2XuVuTQWUjzhA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=185034f6d100" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My experience at the Google Women Techmakers Scholars Retreat 2018 (APAC) at Google Office…]]></title>
            <link>https://shreya-singh.medium.com/my-experience-at-the-google-women-techmakers-scholars-retreat-2018-apac-at-google-office-f453a08b5b03?source=rss-13eb772017f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/f453a08b5b03</guid>
            <category><![CDATA[google]]></category>
            <category><![CDATA[women-in-tech]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[scholarship]]></category>
            <category><![CDATA[singapore]]></category>
            <dc:creator><![CDATA[Shreya Singh]]></dc:creator>
            <pubDate>Thu, 18 Oct 2018 09:47:48 GMT</pubDate>
            <atom:updated>2018-11-16T11:13:37.383Z</atom:updated>
            <content:encoded><![CDATA[<h3>My experience at the Google Women Techmakers Scholars Retreat 2018 (APAC) at Google Office, Singapore</h3><p>It all started on 18th of September, 2018 when the results for the Women Techmakers Scholarship program by Google was out. Making it through 25000 applications, and out of the 1250 interview phone calls, finally, 73 of us were selected from 14 different countries and I was one of them. The retreat was to be held in Singapore during October 10th- 14th and hence the visa process began. The journey and all other expenses of stay were covered by Google.</p><p>On the 9th of October, I had a flight from Patna to Delhi at 7:00 PM and by 11:15 PM on that day, I left Delhi for Singapore. It was 5-hour long flight. I reached Singapore on the morning of 10th October around 7:30 AM Singapore time. Our stay was booked at Hotel Park Alexandra and I had the remarkable experience of being roommates with a girl from Pakistan. Since I had reached early, I went for Singapore sightseeing during the day to Sentosa Islands.</p><h3>Day 0</h3><p>The event started with a welcome dinner and we got some Google Goodies on that day itself. We finally met the Googlers involved with us during all the previous processes. Our table numbers were predecided and we were randomly paired with girls from different countries. We next had the Karaoke night and all the tables were called to sing a song that we commonly knew. The food was good but there were very, very limited options for vegetarians. However, the dessert was yum.</p><h3><strong>Day 1</strong></h3><p>This day was packed with events from morning to night. The day started at 8:45 AM when we left the hotel to Google Office, Singapore. We had breakfast at Google Cafe Shiok. The talks and speeches started at 10 AM with Welcome Keynote by Sunita Mohanty who came all the way from Google India Office. We then had a session on Bias Bursting by Emily from Google Office, Sydney, and Charlotte from Google Office, Singapore. We got to know how biases unconsciously find a way into our decisions and how important it is to get rid of such biases.<br>Next, we got to see the amazing Google Office and had lunch till 2:00 PM. We then had a fun activity “Journey to the unknown”. It consisted of solving more than 11 puzzles to reach up to the treasure box. My team was the first one to be able to complete it.<br>Tech Talks by several people from Google, flying all the way from different offices of Google all over the world, followed next. We got to know in detail about Google Search Engine and apps like Google Pay, and how Google is now targetting the next billion customers. That is why South-east Asia is very, very important to Google. Next, there was a panel of Google Women Engineers and they answered some important questions that we had and Google had prepared. They shared their life journey and how their career took path within Google.<br>Next, there was a Kickstart session by Engineers (Akashdeep Nain and others) from Google India and told us about the benefits of data structures and algorithm, and we discussed some questions and puzzles.<br>A South East Food Festival followed. A photo booth was kept and we got some really cool pictures. A calligraphy artist was also present, and we could get two of our items signed by the artist.</p><h3><strong>Day 2</strong></h3><p>The day again started at 8:45 AM by traveling to the office and taking breakfast. We had an opening Keynote by Priyanka Pundhir and she was inspirational. There was a former scholars panel and they told us about their amazing experiences post their retreat and what they had been doing.<br>There was a Codelab on Android Things by Google Engineers and we got to run some interesting codes on Rainbow Hat for Android Things and Raspberry Pi. We even got to keep the kit for our use.<br>Some interesting projects going on in Google Offices at their various centers were discussed with us. Stories of both success and failure were discussed in fields relating to AI, the future of search and Youtube.<br>Next, they discussed what all they look for in a CV when they come across millions of CV in a single year. A mock interview was also held for us and guidance was given on how to be interactive and clear in our thought process and how we should think out loud during our interviews. We should keep our codes clean and self-explanatory.<br>Future work on helping out the community was discussed with our country leads, for India they were Anjali Thakur and Suhail. Dinner followed at the National Gallery of Singapore.</p><h3><strong>Day 3</strong></h3><p>This was the last day of our retreat. One session that I found absolutely amazing on this day was #IAmRemakable Session. We had to write points on why we thought we were remarkable, one professional and one personal and then speak it out loud. We were made to realize that we should all realize our self-value and speak about our accomplishments. It not only gives us confidence but helps the world in realizing the ideals and strong person that we represent. Women are more likely to stay humble about their accomplishments but it is very very important in the workspace to talk about it.<br>Group photos were taken. Then we had the Scavenger Hunt. We were divided into teams and given subway and bus passes and we had to travel across Singapore and click pictures at important locations of Singapore and collect points. We went to China Town and Sentosa. It was a really fun experience. We had some closing notes and then farewell.</p><p>In all, the retreat was a celebration for the community of women that were present there. All the 73 scholars were remarkably talented with marvelous accomplishments at their young age. The most important takeaway from the retreat was the not experience at Google Office or the Google Goodies but the amazing community that we belonged to and got to be a part of, for a lifetime.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*rLtG_Gxbw02vyUUBVf1T_A.jpeg" /><figcaption>73 scholars, 14 counties and the Googlers</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gPfm0HiiPe1xGJlsZ3HCrg.jpeg" /><figcaption>With Google</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wyo-sgNB316ub171vSsjUA.jpeg" /><figcaption>Google Goodies</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mr1e4BRZUyzYE4Ph4cSFyw.jpeg" /><figcaption>Google WTM Scholars India</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zdOYX6bTUD_uB1zJTIzEHw.jpeg" /><figcaption>Woman Techmaker</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dLH9O88D2iNgYeIwykR8zQ.jpeg" /><figcaption>With Android</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-kr1bYJdqaMSTMsbLskyUg.jpeg" /><figcaption>Certificate of Recognition</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f453a08b5b03" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scholarships for Women in Technology: Google WTM Scholarship and GHCI Scholarship]]></title>
            <link>https://shreya-singh.medium.com/scholarships-for-women-in-technology-google-wtm-scholarship-and-ghci-4f9f24f913c6?source=rss-13eb772017f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f9f24f913c6</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[women]]></category>
            <category><![CDATA[women-in-tech]]></category>
            <category><![CDATA[conference]]></category>
            <category><![CDATA[scholarship]]></category>
            <dc:creator><![CDATA[Shreya Singh]]></dc:creator>
            <pubDate>Tue, 02 Oct 2018 16:13:11 GMT</pubDate>
            <atom:updated>2018-10-02T16:15:33.329Z</atom:updated>
            <content:encoded><![CDATA[<p>As much as talent and hard work are important to succeed in this world, so is awareness. Awareness about the things happening around us, awareness towards technology, awareness towards social causes, awareness towards opportunities can take anyone a long way. For a person enthusiast about technology, there are numerous opportunities available to outreach their individual efforts. Two such scholarships for women that I came to know about this year and thankfully in time to apply were <strong>Google APAC WTM Scholars Program</strong> and <strong>Grace Hopper Celebration for Women in Computing India (GHCI)</strong>. I am so happy to share that I got selected in both.</p><blockquote><strong>Procedures:</strong></blockquote><h3>Google APAC Women Techmakers Scholarship 2018</h3><p>Previously known as Google Anita Borg Scholarship, this scholarship is one of the most prestigious scholarships for women in technology. I applied for this in my final year of Engineering.</p><ol><li>Application round- We had to fill out an application form by 12th of August, 2018. It asked for my basic details, my transcript, CV, and a detailed answer (500 words) to the following questions:<br><strong>a)</strong> <strong><em>How do you think computer science, computer engineering and/or a closely related technical field is changing the world? How do you plan to contribute?<br>b) Please discuss the structural issues impacting underrepresented groups that you have observed or experienced in computer science, computer engineering, and/or a closely related technical field. What connection and/or effect do you think these have to the industry and/or the wider world?<br>c) Please write about an activity that you are currently or recently involved in to address structural issues for underrepresented groups in your field.</em></strong></li><li>Telephonic Interview-On August 31, I got a mail regarding my application being shortlisted and I was asked to fill out a 45-minute slot for a telephonic interview any day between 4th September 2018 to 7th September 2018. I selected 2:00– 2: 45 PM slot on 5th of September 2018. The interview lasted for 40 minutes. <br>My interviewer was a Ma’am and she asked me several questions about the volunteer work I had done. I had volunteered for several causes throughout my school and college life like volunteering, fundraising, teaching etc. for Cancer Aid Society, teaching the underprivileged children in a society named Sankalp in our college and teaching my juniors in Coding Club of NIT Patna. Next, the talk shifted to technology, how it affects the world and how the world affects technology. I was asked about what I think to be the biggest challenges that technology is facing today. I was also asked about what companies, corporates, organizations can do more to help women? What would I do if I got the scholarship in addition to what I was already doing? We had a good discussion for 40- 45 minutes on several topics but mostly on technology and women, and what have I done to help.</li><li>Next I got a sanctions form to fill around 13th of September. The final result came on 18th of September. At 8:00 PM, I got a call from Anjali Thakur from Google India, she informed me that I had been selected and a mail followed. We had quick chat regarding the next steps and I got to know the retreat location and duration which is going to be held at Google Office, Singapore between October 11th-13th.</li></ol><h3><strong>Grace Hopper Celebration for Women in Computing, India (GHCI), 2018</strong></h3><p>GHCI had a detailed application in which we had to talk about the work we have been doing in the field of technology and towards society, why do you want to be a part of GHCI but the answers had to be brief as usually 100- 150 words were allowed per question. We had to provide academic transcripts and letter of recommendations from two professors. Most importantly a video testimonial of 2–3 minutes talking about yourself, and why do you want to attend GHCI had to be shared on any video sharing site. I think the video testimonial was a very, very crucial factor for selection. Link to my testimonial:<br><a href="https://www.youtube.com/watch?v=wMYRxR0n5Q4">https://www.youtube.com/watch?v=wMYRxR0n5Q4</a></p><p>The last date to apply was 30th June 2018. The result for GHCI was declared on 4th September 2018 through mail. The conference is going to be held between 14th November, 2018 to 16th November 2018 in Bengaluru, India.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f9f24f913c6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sabre India Campus Placement Drive/Interview Experience]]></title>
            <link>https://shreya-singh.medium.com/sabre-technologies-campus-recruitment-interview-experience-6b28c74d3337?source=rss-13eb772017f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b28c74d3337</guid>
            <category><![CDATA[recruitment]]></category>
            <category><![CDATA[placement]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[campus-placements]]></category>
            <category><![CDATA[jobs]]></category>
            <dc:creator><![CDATA[Shreya Singh]]></dc:creator>
            <pubDate>Thu, 02 Aug 2018 18:32:38 GMT</pubDate>
            <atom:updated>2020-07-21T17:50:56.152Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ftZekw1HCw_t_0KyBCFjFQ.png" /></figure><p>Recently Sabre India came to my campus for recruitment. They had 4 rounds.</p><blockquote><strong>ROUND 1</strong></blockquote><p>It was a coding test comprising of two coding questions and MCQs.</p><p>1. (20 Marks) <a href="https://www.geeksforgeeks.org/check-instance-15-puzzle-solvable/">https://www.geeksforgeeks.org/check-instance-15-puzzle-solvable/</a></p><p>2. (50 marks) Given a matrix comprising of 0’s,1’s, and 2, find out the minimum distance between the starting position and any of the boundary cells of the matrix. <br>Here, the cell marked 2 is the starting position. <br>The cells containing 1’s are plants and one should not step over such plants. <br>The cells containing 0’s are valid cells to move to.<br>The objective is to find the shortest path between the starting cell and any of the boundary cells without stepping on plants or the cells containing 1’s. One can move only in adjacent cells containing 0’s.</p><p>Input:<br>4 5<br>1 1 0 1 1<br>1 0 0 2 1<br>0 0 1 0 1<br>1 0 1 0 1<br>Output:<br>2</p><p>3. (98 marks) There were 40 MCQs on aptitude, blood-relation questions, permutations and combinations, OS, Computer Networks, DBMS.</p><p>I solved the 2nd coding question of 50 marks based on BFS on matrix, and several MCQs. Approximately 20 students were shortlisted for the next round.</p><blockquote><strong>ROUND 2</strong></blockquote><p>This round was Technical Interview. It lasted for about 1 hr for each candidate. The questions asked in this round to me were as following:</p><ol><li>Explain the working of your code of Round 1 with a test case. Detailed discussion on how can you optimize it even further.</li><li>I got a few options from Computer Science Curriculum and had to select two of my most preferred courses for answering the next few questions. I selected Object-Oriented Programming and Database Management Systems. So questions followed on these courses. What is Encapsulation? What is Abstraction? Difference between the two and real-world examples of the two.</li><li>What is Polymorphism?</li><li>How to prevent a class from being inherited?</li><li>What is the difference between DBMS and RDBMS?</li><li>What are the different types of Normal forms? Explain all with examples.</li><li>What is the error thrown when you delete the primary key which is a foreign key in another table?</li><li>A question was given and I was asked to write pseudo-code for it in the least time complexity. The question was this: <a href="https://www.geeksforgeeks.org/longest-even-length-substring-sum-first-second-half/">https://www.geeksforgeeks.org/longest-even-length-substring-sum-first-second-half/</a></li><li>How can you identify and fix bugs in a program?</li><li>Do you have any particular idea or topic on which you would like to work on in life?</li></ol><p>I had answered all the questions almost, so I moved to the next round.</p><blockquote><strong>ROUND 3 AND ROUND 4</strong></blockquote><p>Selected students after Technical Interview Round moved to Managerial round which was combined with HR round due to constraint of time. This interview lasted for 1–1.5 hr.</p><ol><li>Write pseudocode to print the nth row of Pascal’s Triangle.</li><li>Write code in your preferred language for summation of data of Binary tree nodes lying in the same vertical line.<br><a href="https://www.geeksforgeeks.org/vertical-sum-in-a-given-binary-tree/">https://www.geeksforgeeks.org/vertical-sum-in-a-given-binary-tree/</a></li><li>Out of the projects mentioned on your resume, explain one project in detail. I explained my Machine Learning based project. Questions followed which lead to a wholesome discussion on the implementation of the project.</li></ol><p>Then there was the HR round simultaneously. The questions asked were:</p><ol><li>What were your thoughts when you were explaining your solution to Sir?</li><li>Describe yourself in 2 minutes.</li><li>What are the qualities which best represent you?</li><li>Are you an introvert or an extrovert?</li><li>What are your expectations from this job from Day 1 to Day 365 in the company?</li></ol><p>After 4 complete and thorough rounds, 5 students were selected from my college and I was one of them.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b28c74d3337" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to implement distributed opentracing using Go?]]></title>
            <link>https://shreya-singh.medium.com/how-to-implement-distributed-opentracing-using-go-84be090b2949?source=rss-13eb772017f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/84be090b2949</guid>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[opentracing]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[go]]></category>
            <category><![CDATA[golang]]></category>
            <dc:creator><![CDATA[Shreya Singh]]></dc:creator>
            <pubDate>Tue, 26 Jun 2018 16:28:58 GMT</pubDate>
            <atom:updated>2018-06-26T16:30:53.577Z</atom:updated>
            <content:encoded><![CDATA[<p>This is an implementation of distributed open-tracing using Golang and Jaeger UI.</p><p>In micro services architectures of modern application development, distributed tracing instrumentation is used by developers to trace requests across the different endpoints of a system. With the higher-level distribution of services that takes place in a cloud-based environment, tracing will become a key part of the cloud infrastructure supporting those services.</p><p>In OpenTracing, a trace tells the story of a transaction or workflow as it propagates through a distributed system. The concept of the trace borrows a tool from the scientific community called a directed acyclic graph (DAG), which stages the parts of a process from a clear start to a clear end.</p><h4>The github repository of the codes is available at this link:</h4><pre>https://github.com/singh-shreya6/opentracing.go.git</pre><p>Here I have provided the code for opentracing in a distributed environment where a user is making a request on a browser at some port.The request to server 1 prints out Hello ! time is . After completing this operation, server 1 makes a request to server 2 on another port,by sending the name in request, the second server takes the name in its response body and displays Hello !</p><h4><em>So overall the following operations takes place:</em></h4><ol><li>A browser makes a request to <a href="http://localhost:8082/name">http://localhost:8082/name</a></li><li>The browser displays Hello name! time is Thu Jun 7 17:18:54 2018</li><li>Server 1 sends a POST request to Sever 2 with the name at <a href="http://localhost:8081/">http://localhost:8081</a></li><li>Server 2 captures this request in response body and displays Hello name!</li></ol><h3><strong><em>Code for Server-1:</em></strong></h3><blockquote>package main</blockquote><blockquote>import (<br> “fmt”<br> “net/http”<br> “time”<br> “io/ioutil”<br> “strings”<br> “context”<br> “go-opentracing”<br> “log”<br>)</blockquote><blockquote>func main() {<br> go_opentracing.Init(“server-1”)<br> s:=&amp;http.Server{<br> Addr: “:8082”,<br> Handler: go_opentracing.HttpMiddleware(“server-1”, http.HandlerFunc(handle)),<br> }<br> log.Fatal(s.ListenAndServe())</blockquote><blockquote>}</blockquote><blockquote>func handle(w http.ResponseWriter, r *http.Request) {<br> t:=time.Now()<br> name:=r.URL.Path[1:]<br> time.Sleep(250 * time.Millisecond)<br> makeRequest(r.Context(), “<a href="http://localhost:8081/">http://localhost:8081</a>&quot;,name)<br> fmt.Fprintf(w, “Hello %s! time is %s”, name,t.Format(“Mon Jan _2 15:04:05 2006”))<br>}</blockquote><blockquote>func makeRequest(ctx context.Context, serverAddr string, name string){<br> span, ctx:=go_opentracing.Introduce_span(ctx,”server-1_to_server-2&quot;)<br> defer span.Finish()</blockquote><blockquote>req, err := http.NewRequest(http.MethodPost, “<a href="http://localhost:8081/">http://localhost:8081</a>&quot;, strings.NewReader(name))<br> if err != nil {<br> fmt.Printf(“http.NewRequest() error: %v\n”, err)<br> return<br> }</blockquote><blockquote>go_opentracing.Serialise(ctx,req)</blockquote><blockquote>c := &amp;http.Client{}<br> resp, err := c.Do(req)<br> if err != nil {<br> fmt.Printf(“http.Do() error: %v\n”, err)<br> return<br> }<br> defer resp.Body.Close()</blockquote><blockquote>data, err := ioutil.ReadAll(resp.Body)<br> if err != nil {<br> fmt.Printf(“ioutil.ReadAll() error: %v\n”, err)<br> return<br> }<br> fmt.Printf(“\n%s”, string(data))<br>}</blockquote><h3><strong><em>Code for Server-2:</em></strong></h3><blockquote>package main</blockquote><blockquote>import (<br> “net/http”<br> “io/ioutil”<br> “fmt”<br> “log”<br> “go-opentracing”<br> “time”<br>)</blockquote><blockquote>func handle(w http.ResponseWriter, r *http.Request) {<br> if r.Method != http.MethodPost {<br> w.WriteHeader(http.StatusMethodNotAllowed)<br> return<br> }<br> serverSpan,r:= go_opentracing.Deserialize(r,”server-2&quot;)<br> defer serverSpan.Finish()</blockquote><blockquote>reqBody, err := ioutil.ReadAll(r.Body)<br> if err != nil {<br> fmt.Printf(“ioutil.ReadAll() error: %v\n”, err)<br> w.WriteHeader(http.StatusBadRequest)<br> return<br> }</blockquote><blockquote>name := string(reqBody)<br> time.Sleep(500 * time.Millisecond)<br> w.WriteHeader(http.StatusOK)<br> fmt.Fprintf(w, “Hello %s!”, name)<br>}</blockquote><blockquote>func main() {<br> go_opentracing.Init(“server-2”)<br> s := &amp;http.Server{<br> Addr: “:8081”,<br> Handler: go_opentracing.HttpMiddleware(“server-2”, http.HandlerFunc(handle)),<br> }<br> log.Fatal(s.ListenAndServe())<br>}</blockquote><h3><strong><em>Go Opentracing code:</em></strong></h3><blockquote>package go_opentracing</blockquote><blockquote>import (<br> “github.com/opentracing/opentracing-go”<br> “github.com/uber/jaeger-client-go”<br> “net/http”<br> “context”<br> “github.com/opentracing/opentracing-go/ext”<br> “log”<br> “time”<br>)</blockquote><blockquote>func Init(s string) {<br> // init open tracing<br> udpTransport, _ := jaeger.NewUDPTransport(“localhost:5775”, 0)<br> reporter:= jaeger.NewRemoteReporter(udpTransport)<br> sampler := jaeger.NewConstSampler(true)<br> tracer, _ := jaeger.NewTracer(s, sampler, reporter)<br> opentracing.SetGlobalTracer(tracer)<br>}</blockquote><blockquote>func Introduce_span(ctx context.Context,spanName string)(opentracing.Span,context.Context) {<br> span,ctx:=opentracing.StartSpanFromContext(ctx, spanName)<br> return span,ctx<br>}</blockquote><blockquote>func Serialise(ctx context.Context,req *http.Request){<br> req = req.WithContext(ctx)<br> if span := opentracing.SpanFromContext(ctx); span != nil {<br> opentracing.GlobalTracer().Inject(<br> span.Context(),<br> opentracing.HTTPHeaders,<br> opentracing.HTTPHeadersCarrier(req.Header))<br> }<br>}</blockquote><blockquote>func Deserialize(r *http.Request,spanName string) (opentracing.Span,*http.Request){<br> time.Sleep(250 * time.Millisecond)<br> var serverSpan opentracing.Span<br> appSpecificOperationName := spanName<br> wireContext, err := opentracing.GlobalTracer().Extract(<br> opentracing.HTTPHeaders,<br> opentracing.HTTPHeadersCarrier(r.Header))<br> if err != nil {<br> log.Fatal(“Error”)<br> }<br> serverSpan = opentracing.StartSpan(<br> appSpecificOperationName,<br> ext.RPCServerOption(wireContext))<br> ctx := opentracing.ContextWithSpan(context.Background(), serverSpan)<br> r=r.WithContext(ctx)<br> return serverSpan,r<br>}</blockquote><blockquote>func HttpMiddleware(serverName string, h http.Handler) http.Handler {<br> return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {<br> span, newCtx := opentracing.StartSpanFromContext(r.Context(), serverName)<br> defer func() {<br> span.Finish()<br> }()<br> r = r.WithContext(newCtx)<br> h.ServeHTTP(w, r)<br> })<br>}</blockquote><p>Thus in all we get 3 spans, 1st span is of server-1, 2nd span is from server-1 to server-2 and 3rd span of server 2. The opentracing package used is Jaeger.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l8FQ1xrLNljbieUYNdLHmw.png" /><figcaption>Spans</figcaption></figure><p><strong><em>Jaeger is run via Docker using the following command:</em></strong></p><blockquote>docker run -d -e COLLECTOR_ZIPKIN_HTTP_PORT=9411 -p5775:5775/udp -p6831:6831/udp -p6832:6832/udp -p5778:5778 -p16686:16686 -p14268:14268 -p9411:9411 jaegertracing/all-in-one:latest</blockquote><p>or it can also be run using:</p><blockquote>docker run -d -p 5775:5775/udp -p 16686:16686 jaegertracing/all-in-one:latest</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xcSk4-C2cC5LBBjIYOOaxQ.png" /><figcaption>Jaeger-UI</figcaption></figure><p>In Linux/Ubuntu, do remember to prefix sudo with these commands. Now the Jaeger UI runs at<strong><em> </em></strong><a href="http://localhost:16686/"><strong><em>http://localhost:16686</em></strong></a><strong><em> </em></strong>All the codes in Golang.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=84be090b2949" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to fix blank screen (no icons) after login in Ubuntu 14.04/ Ubuntu 16.04?]]></title>
            <link>https://shreya-singh.medium.com/how-to-fix-blank-screen-no-icons-after-login-in-ubuntu-14-04-ubuntu-16-04-a5a58ba9a779?source=rss-13eb772017f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/a5a58ba9a779</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[login]]></category>
            <dc:creator><![CDATA[Shreya Singh]]></dc:creator>
            <pubDate>Tue, 26 Jun 2018 13:41:22 GMT</pubDate>
            <atom:updated>2018-06-26T13:43:38.353Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently I was trying to install and uninstall certain packages and I encountered an error after I restarted my system after login, it was blank, no icons at all. I suggest you not to tamper with the Nvidia drivers but try these basic solutions instead.</p><p>Solutions to fix this:</p><p><strong><em>Solution 1: See if this works for you</em></strong></p><p>First, open terminal by CTRL+ALT+F1</p><pre>sudo dpkg --configure -a<br>sudo apt-get update<br>sudo apt-get upgrade -y<br>sudo reboot</pre><p><strong><em>Solution 2: If the above doesn’t work, try this</em></strong></p><p>First, open terminal by CTRL+ALT+F1</p><pre>sudo apt-get update<br>sudo apt-get install --reinstall ubuntu-desktop<br>sudo apt-get install unity<br>sudo shutdown -r now</pre><p><strong><em>Solution 3: If none of the above work for you, try this:<br></em></strong>None of the above worked for me however, so I upgraded my Ubuntu from 14.04 to Ubuntu 16.04. All my previous files were preserved.</p><ol><li>First, open terminal by CTRL+ALT+F1</li><li>sudo do-release-upgrade</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a5a58ba9a779" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>