<?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 Shreyas Nisal on Medium]]></title>
        <description><![CDATA[Stories by Shreyas Nisal on Medium]]></description>
        <link>https://medium.com/@shreyasnisal?source=rss-37b6998668ff------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*etGuf7uZQqqG4VyAaJzIHA.jpeg</url>
            <title>Stories by Shreyas Nisal on Medium</title>
            <link>https://medium.com/@shreyasnisal?source=rss-37b6998668ff------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 09:32:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shreyasnisal/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[J1 Visa Experience]]></title>
            <link>https://shreyasnisal.medium.com/j1-visa-experience-ddd848284806?source=rss-37b6998668ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/ddd848284806</guid>
            <category><![CDATA[j-1-visa]]></category>
            <category><![CDATA[visa]]></category>
            <category><![CDATA[us-visa]]></category>
            <category><![CDATA[mit]]></category>
            <category><![CDATA[usa]]></category>
            <dc:creator><![CDATA[Shreyas Nisal]]></dc:creator>
            <pubDate>Sun, 10 Apr 2022 15:57:42 GMT</pubDate>
            <atom:updated>2022-05-03T02:37:24.268Z</atom:updated>
            <content:encoded><![CDATA[<p>For my research internship at MIT Media Lab, I needed a J1 visa, which is an Exchange Visitor visa. Here is my story about the entire process of getting a J1 visa.</p><h3>Type of Visa</h3><p>I landed this internship in October 2021, and the internship itself was for the Spring 2022 semester. I had a multiple-entry tourist visa (B1) for the United States, valid until 2027, which meant that I could travel to the US as a tourist multiple times before 2027. However, before I could travel for my research internship, I had to acquire a J1 visa.</p><p>The J1 visa hinges on one single document- the DS 2019 (in some cases you might need a DS-7002 as well, but that wasn’t required for me). The process becomes complex because of how a DS-2019 is acquired. The exact list of documents required may vary from university to university, but here is what I needed.</p><h3>Obtaining a DS-2019</h3><h4>Application by Host Lab</h4><p>The process starts with the host lab (in my case, Media Lab), submitting an application. For this application, I was asked for personal details and details about my work at the lab. Below is the exact information that I was asked for</p><p><strong>As they appear on your passport</strong></p><ul><li>First Name</li><li>Middle Name</li><li>Last Name</li><li>Sex (M/F)</li><li>Date of Birth (mm/did/yyyy)</li><li>Country of Citizenship</li></ul><p><strong>General</strong></p><ul><li>Email address</li><li>Phone Number, including country code</li><li>Mailing address</li><li>Home University</li><li>Status at Home University (grad or undergrad)</li><li>Exact dates of anticipated visit</li></ul><p><strong>Funding</strong></p><ul><li>Overview of who will be funding the internship</li><li>Confirmation that you do not expect to receive a stipend from MIT</li><li>Would you be able to cover the $1000 processing fee that is required internally for every visiting student?</li></ul><p><strong>Invitation Letter</strong></p><ul><li>Is there any specific requirement from your home university regarding the invitation letter?</li><li>A general paragraph about the work you intend to do while at MIT and how it applies to your major/thesis</li></ul><h3>Funding</h3><p>Most of the above information is fairly straightforward. Here, I want to talk about one important requirement by MIT. I’m not sue how this process works at other universities, but at MIT, a visiting student can only use personal and family funding for 49% of the stay expenses during the internship. You are required to find a source of funding for the remaining 51%. This could be a scholarship (government or non-government), or it could be any organization such as a company. Right after sending the information mentioned in the previous section, you would have to send a letter from the organization providing proof that they intend to fund 51% or more of your stay there. Make sure that this letter contains an amount (you can get an expense estimate from the university to find the 51% of it), and the duration.</p><h4>English Proficiency</h4><p>You are also required to demonstrate proficiency in English via one of the following ways</p><ol><li>An English Proficiency Exam such as TOEFL or IELTS</li><li>A letter from your home institute stating that the medium of instruction for your undergraduate coursework was English</li><li>An interview with the Professor or the Administrative Assistant at the lab</li></ol><p>If you’re from BITS, there is a letter available online declaring that the medium of instruction at BITS is English. If you’re from a different university, see if you can find such a letter, since this is the simplest way to show English proficiency. If that is not possible, try scheduling an interview with the Professor or the Administrative Assistant, and their signature suffices as a proof of proficiency in the language. I would <strong>not</strong> recommend TOEFL or IELTS just for the purpose of a research internship, since these exams are expensive and involve hassle for some people. However, if these exams are useful for you in some other regard as well, you can take them and submit the score report as valid proof of English proficiency.</p><h4>IPIA Form and Mentoring Plan</h4><p>There are two more forms that must be filled out before the process can move forward, one that has to be filled at your end and the other that is filled out by the PhD or the Professor.</p><p>The IPIA form protects the university’s intellectual property, and involves some questions about the home organization and some other details.</p><p>This form for me required an MIT ID and email address to be filled out; thus before this form could be completed, the two had to be generated for me. Moreover, educational institutes in India fall under the “Non-profit research institution” category, which you would have to select in the form from among a total of three options. Finally, this form must be signed not just by you but also by an official from your university with the authority to sign such a document (for me, it was my on-campus advisor for the thesis, who was also Associate Dean of Academic Undergraduate Studies).</p><p>The mentoring plan would be filled out by the professor or the PhD, describing the goals for the semester, the skills that you would acquire during the process, and more details along these lines. Once filled, you would have to sign this document, and it appeared again for me in a future step, but with no significant action required.</p><h3>Onboarding</h3><p>It is at the onboarding stage that you can acquire a DS-2019. I received an onboarding email from MIT, where I had to upload another set of documents, and the request for a DS-2019 had to be made through the iMIT portal, which required yet another set of documents.</p><p>On the onboarding portal itself, I had to upload the following documents:</p><ol><li>Resume</li><li>Official Transcripts from Home Institute</li><li>Passport</li></ol><p>I also had to approve the mentoring plan and the IPIA documents again on this onboarding portal, but these involved a single click each.</p><p>On the iMIT portal, the request for a DS-2019 involved the following documents</p><ol><li>Funding letter from sponsoring organization(s)</li><li>Personal or Family bank statements showing adequate funds- this had to be on the bank’s letterhead, with the bank official’s signature and stamp. Moreover, adequate funds had to be shown in combining only savings accounts and deposit accounts that were maturing before the start date. Funds in deposit accounts that mature after the start date do not count.</li><li>A proof of enrolment letter from the home institute- this should involve the expected date of graduation. A J1 exchange visitor (at least at MIT) can only have a program that consists of a duration such that the student is enrolled in he home institute throughout that duration. So if you want a program end date of 31st July 20xy, make sure the proof of enrolment clearly states your program end date at the home institute as 31st July 20xy or later.</li><li>An invitation letter from the host lab at the host university- in my case I needed an invitation letter from Media Lab. An important note regarding this invitation letter is that this will contain the program start and end dates. If for any reason you encounter a situation where you need to request for any date updates in the DS-2019, you would first have to get an updated invitation letter (and possibly an updated funding letter from the sponsoring organization)</li></ol><p>With all of these documents and some details on the iMIT portal, you can request for the DS-2019, which is generated by the international student office. Note that the DS-2019 is a document that will be <em>shipped</em> to you, and you will need the physical document at various places.</p><blockquote><em>Random fun fact- the first DS-2019 I received (after a painful, week-long wait) was by the name of another person! Turned out that the MIT international student office had labelled correctly, but FedEx decided to mix up their labels. Thanks FedEx!! I had to write to the ISO and get them to ship the DS-2019 again, which took another week. This time it reached India in 3 business days but wouldn’t reach me for some weird FedEx reason</em></blockquote><p>With the DS-2019, all documents from the host university are in place. Next comes the visa interview appointment part (parts of which you can and should do while the above process is going on).</p><h3>Visa Interview Appointment</h3><p>To apply for a visa interview, you are first required to fill out the <a href="https://ceac.state.gov/GenNIV/Default.aspx">DS-160 form</a>. This form will ask for a huge set of details, including but not limited to previous education, work experience, family details, previous US visas, US trips, and much more. Once you start the DS-160 form, you can also start filling up the <a href="https://cgifederal.secure.force.com/">visa appointment scheduling form</a> on the CGI Federal website. Normally, you can fill up a DS-160 multiple times if you enter incorrect information and submit the form. However, once you use the DS-160 number in your appointment scheduling form, you won’t be able to change information, so be careful when submitting it.</p><blockquote>For Indian Applicants: As of writing this article (March 2022), Aadhar was not registered as a national identification number. Check this at the time of your application, and if the same applies, select “Does not apply” under the national identification number question</blockquote><p>On the CGI Federal website, once you fill in all detail, you would be required to pay a fee of ₹12480 ($160 @ 78 ₹/$ at the time of writing this article). Once you pay this, it could take anywhere from hours to a couple of days for the website to accept your MRV receipt number (this is a 12-digit number that you should be able to find in the SMS received; it’s not the transaction number).</p><p>Once the payment receipt gets accepted, it takes you to the date selection for the visa interview. When I was trying to find an appointment, I wanted one at a very short notice. Not only was an appointment for the same month unavailable, no appointment was available <em>at all</em>! In such a scenario you just have to try opening the website at various times and hope to find an appointment.</p><blockquote>The CGI Federal website puts a limit on the number of times you can visit the date picking page, so if it gives you a warning that you are approaching this limit, either pick a date or close the website and try again some other time. If you exceed their limit, you would be locked out of the website for 72 hours</blockquote><p>If either the DS-160 or the CGI Federal form asks for details from the DS-2019 (they do), and you haven’t yet received the actual DS-2019 yet, you should still be able to get the details required in these forms. If you haven’t, write to the university and get those details in an email so that you can start these forms before receiving the actual DS-2019.</p><p>Before proceeding any further, you are also required to pay a SEVIS fee ($220 at the time of writing this article). You must do this on the <a href="https://www.fmjfee.com/i901fee/index.html">Department of Homeland Security website</a>, and print the payment receipt for the visa interview.</p><h4>Interview Waiver</h4><p>In some cases, an interview waiver is granted if you have a prior US visa and you meet some other requirements. When filling information on the CGI Federal website where you schedule your appointment, you would be asked some question to see if you are eligible for an interview waiver. With an interview waiver, you only need to submit your documents at an off-site center (not the consulate/embassy), and these are processed to approve or reject your visa. The document drop-off at the center is also done on an appointment basis only, but these appointment dates are easier to get than getting an appointment for an interview.</p><p>One important question for the interview waiver is regarding the category of the J1 visa. There are only a few categories given and you are asked if any of those apply to you. Since I was attempting to schedule my interview before I received my DS-2019 and because I planned on visiting for a research internship, I was under the impression that the categories “Research Scholar” or “Short-Term Scholar” applied to me. However, there is a specific category for each J1 visa, mentioned on the DS-2019 as shown in the image, and if and only if that is one of the categories mentioned in the question, you should answer “yes” to it.</p><figure><img alt="Blurred DS-2019 with Exchange Visitor Category highlighted, the category being “Student Non-Degree”" src="https://cdn-images-1.medium.com/max/1024/1*RLPc0ZptJ-SPZrjg8w1WRw.jpeg" /></figure><p>For example, in my case, the category is “Student Non-Degree”, as a result of which I answered “no” to the question and was not granted an interview waiver.</p><h4>Emergency Appointment</h4><p>Once you have some appointment, you can apply for an emergency one. Keep in mind the following points</p><ol><li>To apply for an EA, you first need some appointment. Even if the appointment is after your program end date, you can pick that date and apply for an EA.</li><li>You can only apply for an EA if your program start date is within 60 days, and chances are if it is more than 30 days your EA will be rejected.</li><li>Once you pick an appointment, your EA will be at the same location (for example, if the original appointment is at Kolkata, your EA interview will be at Kolkata).</li></ol><p>Keeping in mind the above points, make sure you don’t pick a date right away if your program start date is too far away. Opening the website at different times on different days can open up new slots. You are allowed to reschedule your appointment <strong>once</strong>, so you can first pick a random date and then keep trying to reschedule, that is a perfectly good option as well. Next, pick the placeholder appointment at a location that is convenient for you, since even the EA will be at the same location.</p><p>To apply for an EA, go to the CGI Federal website and select Emergency Appointment. You would have to give a brief description of the reason for your emergency, and supporting documents. You can upload up to 5 documents, and here are the ones that I uploaded</p><ol><li>DS-2019</li><li>SEVIS Payment Confirmation</li><li>DS-160 Confirmation</li><li>Invitation Letter</li><li>COVID Vaccination (This is absolutely optional but I put it in there just in case)</li></ol><p>It was through the emergency application that I was able to get my interview, and I received a response regarding my EA within the same day of applying for it. However, a response can come within anywhere between a few hours and 2–3 days, so look out for an email and on the CGI Federal website.</p><h3>OFC and Visa Interview</h3><p>Any US visa appointment consists of two components (unless one of them is waived for you), which are on different days.</p><p>The first is the OFC (Off-site Facilitation Center). This is simply an appointment to confirm your DS-160 confirmation and Appointment confirmation, and to take your fingerprints and a photograph. This is a very quick process, and you just need the following documents:</p><ol><li>Appointment Confirmation (1 page)</li><li>DS-160 Confirmation (1 page)(Make sure you’re carrying the DS-160 <em>confirmation</em> and not the DS-160 application itself)</li><li>Current passport</li></ol><p>Despite only needing these documents, I was carrying all the documents I had prepared for the interview.</p><p>The second component is the interview. Before you get to the interview room, your DS-160, Appointment confirmation, SEVIS payment confirmation, passport and DS-2019 are verified. I had an 8:00 am interview appointment, and they ask candidates to form a queue outside the embassy gate 30 minutes before their interview time. The queue goes through the various stages where these documents are verified, and continues into the interview room.</p><p>During the interview, the interviewer asked for my current passport and the DS-2019. Surprisingly, he did not ask for any other documents. Hence, here is a list of essential documents that I needed:</p><ol><li>Current Passport</li><li>DS-160 Confirmation</li><li>DS-2019</li><li>Appointment Confirmation Letter</li><li>SEVIS Payment confirmation</li></ol><p>However, here is a list of other documents that I was carrying with me, in case the interviewer asked for more proof on any of the information I had filled in my forms</p><ol><li>All old passports</li><li>DS-160 (entire application)</li><li>Funding letter from the company sponsoring me</li><li>A letter from my parents declaring that they would be funding the remaining 49% of my expenses</li><li>Account statements of my parents to show that they had adequate funds for my visit</li><li>The invitation letter from the host lab (Media Lab)</li><li>Address proof for my parents, to show that they are based in India</li><li>A copy of my sister’s passport and US work visa (I had filled her information as an immediate family member residing in the US on a non-immigrant visa)</li><li>A letter from my friend with his contact details confirming that I would be staying with him during my visit</li><li>Photographs clicked according to US visa specifications</li><li>Proof of my enrolment at my home institute</li><li>Thesis forms from my home institute (Since this research internship was is considered an undergraduate thesis at my home university, there are two forms associated with that)</li><li>My HSC (12th) marksheet</li><li>Transcripts from my home institute</li><li>My resume</li><li>My TOEFL score report</li><li>COVID Vaccination Certificate</li></ol><p>Based on which of these are applicable to you, you can carry documents accordingly.</p><p>An additional complication in my case was the fact that the DS-2019 I had with me had a start date of March 15th, and my interview was on March 22nd. I had an updated DS-2019 being shipped to me, but it could not reach me before the start date. As a result, I had a letter from the MIT International Student Office stating that my updated DS-2019 was in transit. I also had an additional invitation letter from Media Lab with an updated start date. However, the interviewer asked for none of these documents.</p><p>Below is a transcript of my interview, as accurate as I can remember. There were some parts which I either didn’t understand during the interview or don’t remember at all now</p><p>Interviewer: hi good morning Me: hi good morning Interviewer: how are you doing? Me <em>(passing him my passport)</em>: I’m good, thank you, how are you Interviewer: I’m good. I’ll need your DS-2019 as well <em>(I passed him the DS-2019)</em> Interviewer: keep your left four fingers on the fingerprint scanner <em>(I did as asked)</em> Interviewer: okay. When was the last time you visited the unites states? Me: I visited last time in 2018. Interviewer: why were you visiting? Me: I was visiting my sister. She was in Ann Arbor at the time so I went to spend time with her. Interviewer: Okay. So you’re visiting as a post doc now? Me: not post doc actually, I’m an undergraduate right now and I’m going as a research intern Interviewer <em>(looking at DS-2019)</em>: Oh, student non-degree, yeah makes sense. So what are you going to be working on? Me: I’ll be working on emotion regulation using brain-computer interfaces…. Interviewer <em>(making some wavy indications with his finger)</em>: So you get those waves and you get data from that and do stuff with it… Me: yes exactly Interviewer: sweet Interviewer: All right Interviewer <em>(signing and stamping the DS-2019)</em>: Your visa has been approved, you’ll receive your passport within the week…. Me: thank you! Interviewer: have a great day Me: thanks, you too!</p><p>For both the OFC appointment and the interview, if possible don’t carry anything with you other than the documents and your mask. At the OFC appointment, they will let you switch off your phone and take it inside, but no other electronic devices.</p><h3>Receiving the Passport</h3><p>At the end of your interview, the interviewer retains your current passport if your visa is approved. If it isn’t, a rejection is stamped on the passport and it is returned to you.</p><p>Once your passport is retained, it reached you through courier in approximately a week. Depending on whether you opted for it being delivered at your house or you picking it up from a pickup location, you would have to act accordingly. When it is ready to be picked up, you would get a message, and you can get your passport with the visa printed on one of the pages.</p><p>While waiting for your passport, you can track its progress through two portals. The first is the <a href="https://cgifederal.secure.force.com/">CGI Federal website</a> where you scheduled your appointment, and the second is the <a href="https://ceac.state.gov/ceacstattracker/status.aspx">CEAC website</a>.</p><p>Receive your passport and book your tickets to the United States!</p><blockquote><em>Some last helpful points if you’re scheduling your interview in Kolkata like I did. Try to book a room at The Harrington Residency. It is a great place to stay with nice owners and staff, and is walking distance from the OFC appointment location. The best part is that it is right across the street from the Consulate. You can see the gate and the queue forming outside. If someone is accompanying you it is simple for them to return to the room while you go through the process.</em></blockquote><blockquote><em>If you can get an early appointment (8:00 am), try for that. A lot of times it takes over an hour or two to finish the entire interview process. However, I was back in the room at 8:15</em></blockquote><h3>Traveling to the US</h3><p>Considering the current scenario, traveling to the United States also involves a few steps. I was flying by Emirates, and was required to show an RT-PCR negative report within 12 hours of the departure of the first flight. My first flight was to Dubai, and I was not asked for the report anywhere after the first check-in counter, despite a long layover at the Dubai airport. However, you should check the airline website for information on when the RT-PCR needs to be done.</p><p>Additionally, you would have to go through customs and border control. It is highly recommended to carry as few food items as possible, since these are the trickiest at customs. If you are carrying food, try to carry packaged goods as much as possible, because these are usually not an issue. It is also good to know roughly the ingredients of the food items you are carrying, and this could be something that the customs officer asks you about.</p><p>I was also questioned about the start date on my DS-2019 form. The start date on my DS-2019 was March 15th 2022, and my visa interview was on March 21st. The interviewing officer did not question me about the start date having passed, but just in case he did, I was carrying a letter from the MIT International Students Office stating that my start date had been electronically updated on the SEVIS portal and that an updated DS-2019 was in transit. I intended to travel with or without the updated DS-2019 in the event that my passport reached me before the form. However, I received the updated document before my departure and I carried it with me. The officer at border control noticed that the DS-2019 signed by me and the interviewing visa officer had a start date of March 15th, and asked me about it since it was already April 2nd when I arrived in the US. He was satisfied after he saw the updated form with a start date of 1st April even though it had not been signed by a visa officer from a US embassy/consulate in India. If you have discrepancies with the start dates and your arrival in the US, it is best to ask for an updated DS-2019 or a letter from the host university stating that the dates have been updated on the SEVIS portal.</p><h3>Maintaining your Visa Status</h3><p>When arriving in the US, the border control officer will stamp the page next to your J1 visa and write a date until which the visa is valid. In case of a tourist visa, this date is generally 6 months after your arrival in the US (that is the longest you can stay in the US on a tourist visa without leaving the country, even if the visa itself is valid for 10 years). On a J1 visa, instead of a date until which the visa is valid, the officer would normally write D/S. which means that you can stay in the US for the duration of your study or program.</p><p>To maintain your visa status, you need to make sure that you complete the onboarding procedure required by your university. One of the most important steps in doing so is updating your address on the SEVIS portal. Any time you change your address in the US, make sure to update it in this portal as well. Usually, only when you are registered with the university do you get your ID card, if your university provides you one, and it will give you access to the university buildings. An essential step for me was to take a COVID booster shot, since I hadn’t taken one when I got to the US. I had taken CoviShield (manufactured by Oxford-AstraZeneca) in India, and I was expected to take the Pfizer booster. The CVS website provides information about all stores where they have vaccines available, and you can get yours for free by scheduling an appointment. If your university provides you with health insurance, you would have to add those details while scheduling an appointment. You also need to select Pfizer as your previous vaccines, since selecting “Other” doesn’t makes you ineligible for an appointment. Once you get to the pharmacy, you can inform the pharmacist that your earlier shots were Oxford-AstraZeneca. With all onboarding steps completed, you’re all set for your program in the United States!</p><p>Hope this article helped you. If it did, do give it a 👏!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ddd848284806" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exporting Trello Boards]]></title>
            <link>https://shreyasnisal.medium.com/exporting-trello-boards-b412ff32bc2f?source=rss-37b6998668ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/b412ff32bc2f</guid>
            <category><![CDATA[python-scripting]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[trello-bots]]></category>
            <category><![CDATA[trello]]></category>
            <dc:creator><![CDATA[Shreyas Nisal]]></dc:creator>
            <pubDate>Tue, 01 Mar 2022 22:57:14 GMT</pubDate>
            <atom:updated>2022-03-01T22:57:14.171Z</atom:updated>
            <content:encoded><![CDATA[<p>Trello is one of the most popular Kanban-style list-making tool used by numerous people. During our research, we conducted a study with several participants where they answered some questions and wrote their experiences in Trello boards. Once we had these Trello boards, we wanted to export all this data into a word file to be used for further analysis, for example using tools such as NVivo. The free version of Trello allows only exporting boards as JSON files, which contain not just the current state of the board but exact details of all labels, past actions and more. However, this was not something that we wanted. Another disadvantage of exporting as a JSON was that we needed the images as well, which later turned out to be quite a task. The challenge now was to get a word file with the current state of the board, and I spent quite some time trying to find the best way to do this. Here’s how I did it, and you can too 👇</p><h3>Using Power-Ups</h3><p>Third-party tools have been developed that can be accessed from within Trello, which allow exporting data from a board in different formats including CSV, Excel, etc. The most popular among these is one by Orah Apps, which you can use at $7.50/month or $24/year.</p><p>However, I wanted to get this data converted for free, so we won’t dwell much on this option. I wanted to put this out there just in case you want a simple and quick way to get the job done. A point to note here is that since I did not try out any power-ups at all, I don’t know if they allow creation of a word file that includes the images as well (from what I understood in the description of the tool, images are not included).</p><h3>Using an Online Tool</h3><p>My search for a tool that could help with this conversion led me to this awesome online platform developed by connie-clark and hosted on GitHub. You can check out the tool <a href="http://connie-clark.github.io/print-trello/">here</a>, and get a PDF version of your Trello board pretty nicely. The tool lets you select what details from the board you want in your PDF, and generates a neat document based on the preferences.</p><p>The disadvantage here is that the tool only gives us a PDF version of the board, and I had to use another online tool to convert the PDF to word. This not only adds another step to the process, but also slightly messes up the formatting of the document.</p><p>Having to do this for several boards would be a painstaking process. I also wanted the images exported, which is not something this tool offers.</p><p>Here’s where Python comes to the rescue!</p><h3>Using a Python Script</h3><p>As a last resort, I quickly wrote a Python script that could import the JSON files exported from the Trello boards and generate word documents consisting of all lists from a boards, and containing the images as well.</p><p>Before you use the script, however, you will need to make all the Trello boards that you are using <strong>public</strong>. This is required because image links are present in the JSON files, and for the script to access the images through these links, access to the board must be public. Once the script is finished you can change the board access to whatever you want.</p><p>Here’s the entire Python script in case you want to use it, and you can also find it in the <a href="https://github.com/shreyasnisal/TrelloDataExport">GitHub Repository</a> I made for the same.</p><pre>import json<br>import os<br>from docx import Document<br>​<br>DIR_PATH = &quot;.&quot;<br>print(&quot;Using all json files from {}&quot;.format(DIR_PATH))<br>word_doc = Document()<br>​<br>word_doc.add_heading(&quot;Trello Boards&quot;, 0)<br>​<br>for filename in os.listdir(DIR_PATH):<br>   <br>   if not filename.endswith(&quot;.json&quot;):<br>      continue<br>​<br>   print(&quot;Converting file {}&quot;.format(filename))<br>​<br>   word_doc.add_heading(filename, level=1)<br>​<br>   with open(os.path.join(DIR_PATH, filename), &#39;r&#39;, encoding=&#39;utf-8&#39;) as json_file:<br>      json_data = json.load(json_file)<br>      lists = {}<br>      for list in json_data[&quot;lists&quot;]:<br>         lists[list[&quot;id&quot;]] = list[&quot;name&quot;]<br>​<br>      list_cards = {}<br>      for card in json_data[&#39;cards&#39;]:<br>         card_data = {&quot;name&quot;: card[&quot;name&quot;], &quot;desc&quot;: card[&quot;desc&quot;]}<br>         if lists[card[&quot;idList&quot;]] in list_cards:<br>            list_cards[lists[card[&quot;idList&quot;]]].append(card_data)<br>         else:<br>            list_cards[lists[card[&quot;idList&quot;]]] = [card_data]<br>​<br>      for list in list_cards:<br>         word_doc.add_heading(list, level=2)<br>         for card in list_cards[list]:<br>            word_doc.add_heading(card[&quot;name&quot;], level=3)<br>            word_doc.add_paragraph(card[&quot;desc&quot;])<br>​<br>      word_doc.add_page_break()<br>​<br>word_doc.save(&#39;output.docx&#39;)</pre><p>To use the script, export data from all the boards that you want converted to word files (a separate word file will be created for each board), and place it in the same folder as the script. Rename the data files to a appropriate names, since the name of the file is used as the heading.</p><p>Assuming you’ve named the script <em>export_trello_data.py</em>, run the script using the command python export_trello_data.py</p><p>This will create multiple output word files with the data from all Trello boards in the folder, and you’re ready to use this data wherever you want!</p><p>I hope this article helped you with exporting Trello data, using any of the methods mentioned above. If it did, give the article some <strong>👏</strong>, and to keep reading more of my articles, follow me on Medium.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b412ff32bc2f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Twilio Interview Experience]]></title>
            <link>https://shreyasnisal.medium.com/twilio-interview-experience-67aebead6151?source=rss-37b6998668ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/67aebead6151</guid>
            <category><![CDATA[interview-preparation]]></category>
            <category><![CDATA[twilio]]></category>
            <category><![CDATA[interview-questions]]></category>
            <category><![CDATA[interview-tips]]></category>
            <category><![CDATA[interview]]></category>
            <dc:creator><![CDATA[Shreyas Nisal]]></dc:creator>
            <pubDate>Sat, 25 Sep 2021 20:50:18 GMT</pubDate>
            <atom:updated>2021-09-25T20:50:18.861Z</atom:updated>
            <content:encoded><![CDATA[<p>I interned at Twilio in June and July of 2021, and I thought it would be helpful if I shared my interview and internship experience. So in this first article, I’ll talk about my interview experience. There’s also a corresponding <a href="https://www.youtube.com/watch?v=oYsbGclP3_c">video</a> on my YouTube channel, so go watch that as well!</p><h3>Round 1: Coding Test</h3><p>The first round of shortlisting happened via a coding round, consisting of 2 questions to be completed in 60 minutes. The questions were fairly simple, and a lot of people were able to get all test cases, including bonus ones, running correctly.</p><p>Both questions were based on strings, and had been built around what Twilio actually operates with. For example, one question was related to phone numbers and their validation and categorization. It was meant to be done by verifying substrings in the numbers, and this is something that might be similar to what Twilio had to do at some point. I feel this is important to mention because it is something I really like, rather than the question being based on a fictional story completely unrelated to what the company does.</p><p>The instructions specifically mentioned that we were expected to write clean code, which meant good variable names, proper indentation and comments wherever necessary. I made sure to keep this in mind, and was still able to submit the test with around 20 minutes to spare.</p><p>If you’re appearing for the Twilio coding round, keep the following points in mind:</p><ol><li>Write clean (easily readable) code</li><li>Get all test cases running, and submit the test as early as possible</li></ol><p>I believe these two points might have been the criteria for the shortlisting after the coding round (there is also a chance that the shortlisting was done based on the resume I submitted).</p><h3>Round 2: Coding Interview</h3><p>The second round for me was the coding interview. The interview was conducted on a real-time code editor with my video on. The interviewer jumped right into the question, which was as follows:</p><blockquote>Given a list in the following form:<br>LAX -&gt; LHR<br>SFO -&gt; LAX<br>LHR -&gt; JFK<br>Write a program to print the path from the source to the destination</blockquote><p>For the first part of the question, I was told that there would not be more than one flight into or out of an airport, which meant no branching, and I was also given that there would not be any cycles in the graph.</p><p>I didn’t know the exact implementation of a graph so I used maps to store each airport and the destination. I started in C++ but because of some issues with my imports, I could not get the code running (yes, the interviewer wanted me to actually run the code and not write pseudo code). I switched languages in the middle of the interview and got the code running in Java.</p><p>The next part of the question included multiple flights from a single airport. All I had to do was switch from a map&lt;string, string&gt; to a map&lt;string, list&lt;string&gt;&gt; and I was able to get the code running with some modifications.</p><p>The last part of the question included cycles in the graph, but I did not have time for this part.</p><h3>Round 3: Hiring Manager Interview</h3><p>The third and final round was the hiring manager interview. The interviewer started with asking me to introduce myself, and I mentioned that I made videos on programming languages. He asked my about what languages I knew and which ones I had made videos on. He was impressed by the fact that I was sharing knowledge with my classmates in college and my juniors.</p><p>The hiring manager interview is a process to determine if candidates embody the values that are appreciated at Twilio (we call it the <a href="https://www.twilio.com/company/values">Twilio Magic</a>), which in turn determine if they would be a good fit in the company and the team. If you have an interview with a hiring manager at Twilio, be sure to read up on the Twilio Magic and demonstrate how you embody those values.</p><p>The interview consisted of a few HR questions- “Have you had a conflict with a teammate?”, “Have you ever missed a deadline, what did you do in that situation?” and finally a technical question based on how a queue can be implemented using 2 stacks.</p><p>After the interviews, I found out the same night that I had been hired for the summer internship at Twilio, and I was delighted! I had used Twilio Programmable Video before my interviews, and it was awesome that I got to be at a company that made a product that I loved. Summing up, both interviewers were super friendly, and I think it was a very smooth and comfortable interview experience. I really liked the fact that the interviews were both scheduled in advance and I did not have to sit for one interview and then wait anxiously to see if I had been shortlisted for the next one.</p><p>Hope you enjoyed reading. If you’re interviewing with Twilio, all the very best; do your best and you’ll be a Twilion soon!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67aebead6151" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Thoughts on Flutter vs React Native]]></title>
            <link>https://shreyasnisal.medium.com/thoughts-on-flutter-vs-react-native-3d77224a8811?source=rss-37b6998668ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d77224a8811</guid>
            <category><![CDATA[cross-platform]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[app-development]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Shreyas Nisal]]></dc:creator>
            <pubDate>Sun, 02 May 2021 03:04:04 GMT</pubDate>
            <atom:updated>2021-05-02T03:04:04.749Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve been developing apps using both React Native and flutter for a couple of years now, and I thought I should write something on what I feel about the two. I want to go beyond the popular comparisons on factors such as performance, community support, et cetera, and talk about my personal opinion on the two.</p><h4>External Libraries</h4><p>I like the fact that basic functionality in flutter doesn’t require adding a package as a dependency. When it comes to react native, things as simple as navigation require an additional package. According to official react native blog posts, some functionality was removed from the core react native package so as to move towards a lean core.</p><p>However, the biggest issue with having too many libraries is that we need to keep track of updates in each library, upgrade our project according to those, and manage dependency conflicts. With a large-scale, production application, this becomes a rather tiresome task.</p><h4>Code Structure</h4><p>The way react native code can be designed, keeping stylesheets different from the functionality and JSX markup is much more convenient to manage as compared to flutter code where most of the markup and styles are written together.</p><p>This might be because of the way I have been writing code and there might be a better way to approach it, but it affects readability to a large extent as far as my projects are concerned.</p><p>Flutter has library classes for everything, and although I understand how that might be useful from a design pattern point of view, but when it comes to using those, it becomes a huge pain. I don’t want to create a new object of BorderRadius class to specify the border radius for a widget; I just want to give a number or a percentage there!</p><p>Similarly, although it makes sense to have Stateful and Stateless widgets since widgets, I feel like it becomes confusing at times. Stateless widgets, which are immutable and where the build function is called only once, might be useful in terms of faster rendering, but I wouldn’t mind having Stateful widgets only.</p><h4>Reusable Components/Widgets</h4><p>Somewhat continuing my previous point on code structure, I feel like developing reusable components in react native is much simpler as compared to those in flutter. This allows for more modular code and hence a better structure.</p><p>Moreover, it is easier to create files to store information such as color themes to be used throughout the app. In flutter, there is once again a built-in class that needs to be used for a theme.</p><h4>Using Flutter vs React Native</h4><p>Having discussed the above factors, and also taking into consideration the popularly discussed ones, I want to finish off by talking about situations where I use flutter and where I use react native. Most often, when I want to make extremely standard apps, where the look as well as the functionality is similar to a lot of existing apps, I go with flutter. It gives the app a clean look and a professional feel.</p><p>However, as soon as I require an app with an unconventional look or functionality which I think isn’t present in most of the existing apps, react native is my fallback option.</p><p>This is of course just my opinion and you might be more comfortable with flutter as compared to react native. Continue using whichever framework you prefer, and keep up the development. Happy coding!</p><p>Don’t forget to give the article a clap (or 50) if you found this article insightful, and follow me for more!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d77224a8811" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Multiple Navigators in React Navigation 5]]></title>
            <link>https://shreyasnisal.medium.com/multiple-navigators-in-react-navigation-5-883a415187a0?source=rss-37b6998668ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/883a415187a0</guid>
            <category><![CDATA[react-navigation]]></category>
            <category><![CDATA[react-navigation-5]]></category>
            <category><![CDATA[react-native-development]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Shreyas Nisal]]></dc:creator>
            <pubDate>Sat, 24 Oct 2020 17:11:01 GMT</pubDate>
            <atom:updated>2020-10-24T17:11:01.276Z</atom:updated>
            <content:encoded><![CDATA[<p>I previously wrote an article on how to have multiple navigators in react native. However, since react-navigation 5 was released, there have been major changes, and a huge chunk of my previous article may not be as useful anymore. So here’s an article on how to create multiple navigators in react-navigation 5.</p><h3>Installing Packages</h3><p>First off, make sure you have all the required packages, as mentioned in the react-navigation documentation. You can install them using this command:</p><pre>npm install --save @react-navigation/native react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context @react-native-community/masked-view</pre><p>Next, since we are going to use the stack, tab and drawer navigators, we need to install these packages too. You can do so using this command</p><pre>npm install --save @react-navigation/stack @react-navigation/drawer @react-navigation/bottom-tabs</pre><p>Note: We are using the bottom tab navigator. React Navigation also offers other types of tab navigators, you can try them out too, depending on your requirements.</p><p>With this, we’re done with the package installations. Let’s now dive into using these navigators in our project!</p><h3>Creating Screens</h3><p>To navigate between screens, we need to first create the screens. You can use your own screens or use the code below to create some demo screens. Our screens will be stored in the /src/routes/ directory, and I’ve omitted the import statements and the styles for brevity.</p><blockquote>Home.js</blockquote><pre>export default class Home extends Component {render() {<br>    return(<br>      &lt;View style={styles.container}&gt;<br>        &lt;TouchableOpacity onPress={() =&gt; this.props.navigation.openDrawer()} style={styles.btn}&gt;<br>          &lt;Text&gt;Open Drawer&lt;/Text&gt;<br>        &lt;/TouchableOpacity&gt;<br>        &lt;Text style={styles.infoText}&gt;Home Screen&lt;/Text&gt;<br>        &lt;TouchableOpacity style={styles.btn} onPress={() =&gt; this.props.navigation.navigate(&#39;StackScreen&#39;)}&gt;<br>          &lt;Text&gt;Stack Navigation&lt;/Text&gt;<br>        &lt;/TouchableOpacity&gt;<br>      &lt;/View&gt;<br>    );<br>  }<br>}</pre><blockquote>StackScreen.js</blockquote><pre>export default class StackScreen extends Component {render() {<br>    return(<br>      &lt;View style={styles.container}&gt;<br>        &lt;Text style={styles.infoText}&gt;Stack Screen&lt;/Text&gt;<br>      &lt;/View&gt;<br>    );<br>  }<br>}</pre><blockquote>TabA.js</blockquote><pre>export default class TabA extends Component {<br>  render() {<br>    return(<br>      &lt;View style={styles.container}&gt;<br>        &lt;TouchableOpacity onPress={() =&gt; this.props.navigation.openDrawer()} style={styles.btn}&gt;<br>          &lt;Text&gt;Open Drawer&lt;/Text&gt;<br>        &lt;/TouchableOpacity&gt;<br>        &lt;Text style={styles.infoText}&gt;Tab-A&lt;/Text&gt;<br>      &lt;/View&gt;<br>    );<br>  }<br>}</pre><h3>Navigators</h3><p>Next, we need to create the navigators. We have 3 navigators, one stack navigator, one drawer navigator, and one tab navigator. Our aim is to navigate between the above 3 screens using these navigators. I created the navigators in different files as mentioned below, and placed them in the /src/navigation/ directory.</p><blockquote>StackNavigators.js</blockquote><pre><em>const</em> Stack = createStackNavigator()</pre><pre>export default <em>class</em> StackNavigator extends Component {<br>    render() {<br>        return(<br>            &lt;<em>Stack.Navigator</em>&gt;<br>                &lt;<em>Stack.Screen</em> name=&#39;Home&#39; component={Home} /&gt;<br>                &lt;<em>Stack.Screen</em> name=&#39;StackScreen&#39; component={StackScreen} /&gt;<br>            &lt;/<em>Stack.Navigator</em>&gt;<br>        )<br>    }<br>}</pre><p>The Stack Navigator is our most straightforward navigator. It has 2 screens, the home screen and the stack screen, both of which we created in the previous section.</p><blockquote>TabNavigator.js</blockquote><pre><em>const</em> Tab = createBottomTabNavigator()</pre><pre>export default <em>class</em> TabNavigator extends Component {<br>    render() {<br>        return(<br>            &lt;<em>Tab.Navigator</em>&gt;<br>                &lt;<em>Tab.Screen</em> name=&#39;Home&#39; component={StackNavigator} /&gt;<br>                &lt;<em>Tab.Screen</em> name=&#39;TabA&#39; component={TabA} /&gt;<br>            &lt;/<em>Tab.Navigator</em>&gt;<br>        )<br>    }<br>}</pre><p>For our Tab Navigator, we have set the home as the stack navigator. This nests our stack navigator inside our tab navigator, and for the “Home” tab, allows us to navigate between any screens in our Stack Navigator.</p><blockquote>DrawerNavigator.js</blockquote><pre><em>const</em> Drawer = createDrawerNavigator()</pre><pre>export default <em>class</em> DrawerNavigator extends Component {<br>    render() {<br>        return(<br>            &lt;<em>Drawer.Navigator</em> drawerContent={(<em>props</em>) <em>=&gt;</em> &lt;<em>SideMenu </em>{...props} /&gt;}&gt;<br>                &lt;<em>Drawer.Screen</em> name=&#39;Home&#39; component={TabNavigator} /&gt;<br>            &lt;/<em>Drawer.Navigator</em>&gt;<br>        )<br>    }<br>}</pre><p>Our Drawer Navigator is the most complex of the 3 navigators we have. Here, we only have the Tab Navigator as the only screen specified. However, what we can additionally do is have a way to navigate to TabA as well. To do that, we have specified a custom drawer content. This option lets us write the component that will be shown inside a drawer, which is going to be a list of screens that we can navigate to using the drawer.</p><p>Here is the code for the custom drawer component</p><blockquote>SideMenu.js</blockquote><pre>class SideMenu extends Component {<br>  render() {<br>    return(<br>      &lt;ScrollView&gt;<br>        &lt;TouchableOpacity<br>          style={styles.drawerItem}<br>          onPress={() =&gt; {<br>            this.props.navigation.navigate(&#39;Home&#39;);<br>            this.props.navigation.closeDrawer();<br>          }<br>        }&gt;<br>        &lt;Text style={styles.drawerText}&gt;Home&lt;/Text&gt;<br>        &lt;/TouchableOpacity&gt;<br>        &lt;TouchableOpacity<br>          style={styles.drawerItem}<br>          onPress={() =&gt; {<br>            this.props.navigation.navigate(&#39;TabA&#39;);<br>            this.props.navigation.closeDrawer();<br>          }<br>        }&gt;<br>        &lt;Text style={styles.drawerText}&gt;Tab-A&lt;/Text&gt;<br>        &lt;/TouchableOpacity&gt;<br>        &lt;TouchableOpacity<br>          style={styles.drawerItem}<br>          onPress={() =&gt; {<br>            this.props.navigation.navigate(&#39;TabB&#39;);<br>            this.props.navigation.closeDrawer();<br>          }<br>        }&gt;<br>        &lt;Text style={styles.drawerText}&gt;Tab-B&lt;/Text&gt;<br>        &lt;/TouchableOpacity&gt;<br>      &lt;/ScrollView&gt;<br>    );<br>  }<br>}</pre><p>This finishes up our navigators. The last thing we need to do is create the navigation container and place our navigator inside this container. We do this in our App.js file, which after modification will look as given below.</p><blockquote>App.js</blockquote><pre>export default <em>class</em> App extends Component {<br>    render() {<br>        return(<br>            &lt;<em>NavigationContainer</em>&gt;<br>                &lt;<em>DrawerNavigator</em> /&gt;<br>            &lt;/<em>NavigationContainer</em>&gt;<br>        );<br>    }<br>}</pre><p>So that’s it for this article, which corresponds to react-navigation 5. Hope you liked the article; if you did, don’t forget to 👏 for it!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=883a415187a0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing QLogic: A Quantum Computing Puzzle Game]]></title>
            <link>https://shreyasnisal.medium.com/introducing-qlogic-a-quantum-computing-puzzle-game-e5ea52e6f85b?source=rss-37b6998668ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/e5ea52e6f85b</guid>
            <category><![CDATA[android-game-development]]></category>
            <category><![CDATA[quantum-computing]]></category>
            <category><![CDATA[quantum-mechanics]]></category>
            <category><![CDATA[quantum]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Shreyas Nisal]]></dc:creator>
            <pubDate>Sun, 16 Aug 2020 19:55:30 GMT</pubDate>
            <atom:updated>2020-08-16T19:55:30.379Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OuMHGBJpNhkqt4CX664mOQ.png" /><figcaption>QLogic</figcaption></figure><p>I’ve been doing game development for a while now- <a href="https://play.google.com/store/apps/details?id=com.Paltan.DoubleBounce">Double Bounce</a>, <a href="https://play.google.com/store/apps/details?id=com.Paltan.Blindfold">Blindfold</a>, <a href="https://play.google.com/store/apps/details?id=com.paltan.rockets">Rockets</a> are some of the games I developed for android and which are available on the Play Store. I have also been curious about the field of quantum computing, and have had a lot of fun playing around with the IBM Quantum Experience.</p><p>I am pursuing a double major in physics and computer science at Birla Institute of Technology and Science, Goa, and I often find myself discussing quantum computing with a physics classmate, Cheshta. During one such fascinating conversation, I found out about Quantum Tic-Tac-Toe, a version of the old game which made it much more interesting!</p><p>Since our conversation, we started brainstorming ideas for games that revolve around quantum physics. One such idea that we came up with was QLogic, a puzzle game that offers an interface similar to the IBM Quantum Experience. One of the biggest problems we’ve seen with the platform is that even though it’s fun to try out the quantum gates, you need to think of an experiment before being able to do anything meaningful.</p><p>To overcome this challenge, QLogic offers a series of puzzles that you can solve to have fun with quantum gates.</p><p>While QLogic is an amazing game for people already learning quantum computing, it is also a fantastic puzzle game for those who just want some brain exercise and don’t want to get their hands into quantum computing. The game is easy enough to understand, although the levels progressively get difficult.</p><p>Having come up with the game concept, we approached Namita, a UX designer, who came up with the screen designs and user flows, which we developed in React Native.</p><p>QLogic is already on the <a href="https://play.google.com/store/apps/details?id=com.paltangames.qlogic">Play Store</a>, with 45 puzzles, a Time Attack mode and a playground. So while we work on adding more levels and some really fun features, you can start playing! Do let us know if you like the game, and pass it on to your friends to see who completes the challenges fastest!</p><p>You can also join us on <a href="https://www.instagram.com/paltangames/">Instagram</a> and <a href="https://twitter.com/paltan_games">Twitter</a> for the latest updates. In case you have any feedback on the game, you can get in touch directly with the QLogic team on the <a href="https://t.me/paltangames_qlogic">Telegram</a> channel.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5ea52e6f85b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React Native Windows]]></title>
            <link>https://shreyasnisal.medium.com/react-native-windows-2bd251750958?source=rss-37b6998668ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/2bd251750958</guid>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[react-native-development]]></category>
            <category><![CDATA[windows-10]]></category>
            <category><![CDATA[getting-started]]></category>
            <dc:creator><![CDATA[Shreyas Nisal]]></dc:creator>
            <pubDate>Thu, 18 Jun 2020 16:09:53 GMT</pubDate>
            <atom:updated>2020-06-18T16:09:53.435Z</atom:updated>
            <content:encoded><![CDATA[<p>Microsoft recently started a project, in which they’re adding react native support for native windows applications. Although it is at an early stage right now, and there aren’t many libraries that have windows support, you can start building simple windows applications with react native.</p><p>This article focuses on how you can set up your windows machine to run react native windows applications.</p><p>First things first, you need nodejs installed on your windows machine. To make sure you do, run the command node -v and if you get a version number, you’re all set. Next, I would strongly recommend that you install react native cli, which would ensure that you don’t have to use <em>npx</em> every time you want to work on RN. For this, run npm install -g react-native-cli and react native cli would be installed globally for your system.</p><p>Now, we are all set to create a react native application (make sure to navigate from your terminal to the location where you want the project), and you can do this by running react-native init &lt;project-name&gt; --version ^0.61.5 where you’ll have to add a name for your project. Right now, you’ll have a project with android and iOS support only, but we’re soon going to add windows support.</p><p>Before we proceed to adding windows support to this project, we need to make sure we have Visual Studio Build Tools on our system. If you don’t you can download the community version from the Microsoft website itself. When installing the build tools, make sure you have the following selected:</p><ol><li>Universal Windows Platform Build Tools &gt; Windows 10 SDK</li><li>Universal Windows Platform Build Tools &gt; C++ (v141) Universal Windows Platform tools</li></ol><p>Once you are done with this installation, you’re ready to add windows support to your react native app.</p><p>Go to your application folder (make sure to go inside the directory named with the name that you gave your project) and run npx react-native-windows-init and this should add windows support to your project. You can ensure this by looking at your project and noticing that another directory like <em>android</em> and <em>iOS</em> has been created, this time named <em>windows</em>.</p><p>Another step we need to follow before running our app on windows is making sure we have developer mode ON on our machine. You can do this by simply opening the <strong>Settings</strong> app and searching for <em>developer settings</em>, and you should find a radio button corresponding to developer mode there.</p><p>Next is running the project, and this part is the same as how you would run an RN project on android or iOS. You just need to run react-native run-windows just like <em>run-android</em> or <em>run-ios</em>.</p><p>However, this is where I got stuck for quite some time. I kept getting an error that said, “<strong>Build failed, maybe developer mode is not on.</strong>” To fix this, all you have to do is open your command prompt with <em>Administrator Access</em> and run the same command, react-native run-windows from the root of your project structure.</p><p>Voila! you have an RN application running on windows!</p><p>Hope this article helped, and if it did, don’t forget to give it a clap, and follow me on medium for more such articles. Happy coding, hope to see some really cool windows native apps made in react native soon!</p><p>In case you have any questions, feel free to drop a comment, and if this article helped you and you developed a windows app in RN, do send me a link as well. I would love to take a look!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2bd251750958" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Swipe to Toggle Drawer in React Native]]></title>
            <link>https://shreyasnisal.medium.com/swipe-to-toggle-drawer-in-react-native-66f01d5dc3df?source=rss-37b6998668ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/66f01d5dc3df</guid>
            <category><![CDATA[react-navigation]]></category>
            <category><![CDATA[react-native-development]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Shreyas Nisal]]></dc:creator>
            <pubDate>Fri, 15 Nov 2019 20:07:51 GMT</pubDate>
            <atom:updated>2019-11-15T20:07:51.991Z</atom:updated>
            <content:encoded><![CDATA[<p>If you implement a drawer navigator in React Native, you might notice that by default the drawer often doesn’t open when you swipe the screen in the necessary direction, at least on android. This is because of some issues with the react-native-gesture-handler. The solution to this problem is actually quite simple, although it involves writing native code.</p><p>Open the MainActivity.java file located in /android/app/src/main/java/<strong>YOUR-PACKAGE-NAME </strong>and add the following import statements to it:</p><pre>import com.facebook.react.ReactActivityDelegate;<br>import com.facebook.react.ReactRootView;<br>import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView;</pre><p>Having added these import statements, now add the below method in the MainActivity class:</p><pre>@override<br>protected ReactActivityDelegate createReactActivityDelegate() {<br>    return new ReactActivityDelegate(this, getMainComponentName()) {<br>        @override<br>        protected ReactRootView createRootView() {<br>            return new RNGestureHandlerEnabledRootView(MainActivity.this);<br>        }<br>    };<br>}</pre><p>That’s it! Your drawer should now open and close when you swipe on the screen in the correct directions.</p><p>Hope this article helped! If it did, don’t forget to give it a clap. Follow me on medium for more such articles!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66f01d5dc3df" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Duplicate Resources Error- React Native 0.60+]]></title>
            <link>https://shreyasnisal.medium.com/duplicate-resources-error-react-native-0-60-2200aa18d3e5?source=rss-37b6998668ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/2200aa18d3e5</guid>
            <category><![CDATA[react-native-development]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[apk]]></category>
            <dc:creator><![CDATA[Shreyas Nisal]]></dc:creator>
            <pubDate>Thu, 17 Oct 2019 16:58:41 GMT</pubDate>
            <atom:updated>2019-10-17T16:58:41.950Z</atom:updated>
            <content:encoded><![CDATA[<p>I wrote an article on fixing the packaging error when building an apk with React Native. The error was regarding bundling issues and the presence of duplicates of some resources. However, the same procedure does not work for React Native 0.60+. So in case you have a duplicate resources error in React Native now, how do you go about fixing it?</p><p>First things first, you don’t need the bundling command before trying to build an apk from React Native now. However, in case you still have the “duplicate resources” error, the way to fix it is simple.</p><p>Go to android/app/src/main/res and delete all the directories starting with <em>drawables</em>. This is similar to what we did for earlier versions of React Native. However, this time, also delete the directory named <em>raw</em>, which contains .json files, including app.json. Now, you’re ready to build your apk. Before you do so, make sure none of your own assets (images, videos, etc) do not have the same name, since that would also yield a duplicate resources error. Having done that, head to the terminal and change your directory to /android . It is always a good idea to run ./gradlew clean (skip the “./” if you’re a windows user) before you move on to generating the apk. The command deletes the build directory, so that you have nothing left from your earlier builds, be it a release build or a debug one.</p><p>Finally, run the command ./gradlew assembleRelease (once again skip the “./” for windows users) from the /android directory to generate the apk. This might take a while, but it should generate an apk file in your build/outputs directory.</p><p>Hope this article helps and saves you hours more of searching on forums. If it helped, don’t forget to give a clap, and follow me for more such fixes and tricks!</p><p>P.S. There might be other ways to fix the duplicate resources error, such as adding code to the node_modules/react-native/react.gradle but I personally would not recommend such a thing since modifying existing code/native code is not such a great idea. Also, if the issue persists or you do not find the directories mentioned above at all, run the bundling command from my previous article on fixing the packaging error, which you can read <a href="https://medium.com/@shreyasnisal/solved-packing-error-in-react-native-release-apk-f887687edc4f">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2200aa18d3e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pitfalls to Avoid with Multiplexed Arduino 7 Segment Display]]></title>
            <link>https://shreyasnisal.medium.com/pitfalls-to-avoid-with-multiplexed-arduino-7-segment-display-691b7c2d80e?source=rss-37b6998668ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/691b7c2d80e</guid>
            <category><![CDATA[7-segment]]></category>
            <category><![CDATA[arduino-code]]></category>
            <category><![CDATA[arduino]]></category>
            <category><![CDATA[multiplexer]]></category>
            <dc:creator><![CDATA[Shreyas Nisal]]></dc:creator>
            <pubDate>Tue, 24 Sep 2019 00:12:39 GMT</pubDate>
            <atom:updated>2019-09-24T00:12:39.946Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’re starting the learning curve for Arduino just as I am, you might be interested in projects related to 7 segment displays. And I’m sure you can find numerous resources on the internet to help you get started. However, I was using those resources too, and had a lot of frustrating moments when working with a multiplexed 7 segment display. Hence, I thought it would be a good idea to list out the points that I wish I had been told before I spent hours trying to find what I was doing wrong. So here we go:</p><ol><li>Make sure to keep track of the <em>active high/active low </em>status of all your pins. In my case, my digit pins, which control whether a digit on the display is on or off, were active <em>low</em>, meaning that a LOW signal on a digit pin meant that the digit was actually ON.</li><li>Make sure you prepare the digit to be displayed <em>before</em> you turn on a digit, that helps a lot. For example, if you want to display a 5 on digit-2, display a 5 <em>first</em>, and only then turn on digit-2.</li><li>Make sure you don’t have any large delays anywhere in your program. In case you’re trying to make something like a minutes counter or a clock (like I did), make sure you use some function like millis() which does not stop/block the rest of the program.</li></ol><p>I think these 3 points sum up most of it, but you could still run into your own issue when working with a multiplexed 7 segment display. If you do, feel free to discuss these issues in the comments here! Also, if these points helped you and/or saved your time, don’t forget to give a clap!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=691b7c2d80e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>