<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Mayukh Pankaj</title>
    <description>The latest articles on DEV Community by Mayukh Pankaj (@mayukh).</description>
    <link>https://dev.to/mayukh</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F476909%2Fcf638576-4b78-4e6c-af8e-b6ce1b0c51b5.jpeg</url>
      <title>DEV Community: Mayukh Pankaj</title>
      <link>https://dev.to/mayukh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mayukh"/>
    <language>en</language>
    <item>
      <title>2021 Rewind </title>
      <dc:creator>Mayukh Pankaj</dc:creator>
      <pubDate>Thu, 30 Dec 2021 09:44:57 +0000</pubDate>
      <link>https://dev.to/mayukh/2021-rewind-3lo1</link>
      <guid>https://dev.to/mayukh/2021-rewind-3lo1</guid>
      <description>&lt;p&gt;It's Rewind time ! 2021 has been such an amazing year. I learned quite a few new stuffs. Apart from academic studies, I was involved in web &amp;amp; app development.&lt;/p&gt;

&lt;p&gt;here's my 2021 summarized ⏪,&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;January&lt;/strong&gt;: I worked on covid-hotspots, A app that shows Covid-19 data for user's geolocation. Learned Javascript, TypeScript and API&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;February&lt;/strong&gt;: Completed Python for Everybody course, learned automating stuff with python&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;March&lt;/strong&gt;: Programming.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;April&lt;/strong&gt;: here's where thing got interesting, at IEEE Student Branch-BIT Mesra's Lead, Finally stopped procrastinating, made a portfolio website - with light/dark mode feature and completed other tasks.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;May&lt;/strong&gt;: Learned web scraping with BeautifulSoup, selenium, and made a Job Scraper with Flask as backend, again in IEEE lead.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;June&lt;/strong&gt;: Learned React &amp;amp; Node.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;July&lt;/strong&gt;: Can't remember, procrastinated.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;August&lt;/strong&gt;: participated in Major League Hacking hackathon, developed Vaccinater, app that sends Notification with vaccine availability in user's location to email &amp;amp; sms.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;September&lt;/strong&gt;: Data structures , Earned 4 ⭐ on Hackerrank&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;October&lt;/strong&gt;: Hacktoberfest, maintained repo for IETE BIT, resolving conflicts , merging PRs, creating Issues. nice experience. learned.&lt;/p&gt;

&lt;p&gt;Learned basics of Machine Learning at Society for Data Science BIT Mesra. Algorithms like Linear, Logistic Regression, KNN, Random forest, Decision Tree.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;November&lt;/strong&gt;: loading...&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;December&lt;/strong&gt;: Learned React Native-firebase, Building an app for a Hackathon. (RN is cool)&lt;/p&gt;

&lt;p&gt;Looking forward to another year of doing.&lt;br&gt;
Thanks to Mentors like Angela Yu, Brad Traversy, NetNinja for amazing Tutorials ❤️&lt;br&gt;
Thanx to my friends who were constant help ✨, You know who you are !&lt;/p&gt;

&lt;p&gt;Find me on &lt;br&gt;
Github: &lt;a href="https://github.com/mayukhpankaj"&gt;https://github.com/mayukhpankaj&lt;/a&gt; &lt;br&gt;
Linkedin Post: &lt;a href="https://www.linkedin.com/feed/update/urn:li:activity:6882235583062691840/"&gt;https://www.linkedin.com/feed/update/urn:li:activity:6882235583062691840/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Happy new year 🎉🥳&lt;/p&gt;

</description>
      <category>devjournal</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Vaccinater | vaccine notification</title>
      <dc:creator>Mayukh Pankaj</dc:creator>
      <pubDate>Thu, 30 Dec 2021 09:35:37 +0000</pubDate>
      <link>https://dev.to/mayukh/vaccinater-vaccine-notification-2lhb</link>
      <guid>https://dev.to/mayukh/vaccinater-vaccine-notification-2lhb</guid>
      <description>&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/wydgbawcdJg"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;To beat covid-19, Vaccination is going all around the world. In India vaccination is being carried at a great pace with coWIN.gov.in .But unfortunately, getting a slot for your jab is tough, as they quickly fill out.&lt;br&gt;
So I thought of a hack that can notify users whenever vaccine slots is available in their location.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp5eyb24xefmw2u0hhj47.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp5eyb24xefmw2u0hhj47.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;$ git init&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;While searching api for covid data for my covid dashboard, I came across &lt;a href="https://apisetu.gov.in/public/marketplace/api/cowin" rel="noopener noreferrer"&gt;api.setu.gov.in&lt;/a&gt;, API endpoints for CoWin app. I started looking into these api response. &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F227bqgn0up075gt5wrpf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F227bqgn0up075gt5wrpf.png" alt="Image description"&gt;&lt;/a&gt;&lt;br&gt;
As you can see it returns an array with centers data like like available dose, vaccine name , address etc. API takes two parameters, district id &amp;amp; current date.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;url = 'https://cdn-api.co-vin.in/api/v2/appointment/sessions/public/calendarByDistrict?district_id='+str(district)+'&amp;amp;date='+today
response = requests.get(url).json()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;requesting url with python Requests library and then .json() converts JSON response to python dictionary, Now we can easily access response data.&lt;br&gt;
Now with data at our hands, we want to request this API for each users, so we need to get each users data, so let’s build a form. Since I’m using python so I will be using Flask and instead of using WTForms I have used POST method to save user responses.&lt;br&gt;
after getting user details, we also need to add it to a database. since all user’s data are unrelated so I’m simply using NoSQL, like MongoDB with pymongo.&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;p&gt;*&lt;em&gt;Notification.py *&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Now with data stored in our DB, we want to iterate it over and make request to CoWin API for each user, make a message out of it &amp;amp; send it to users email.&lt;br&gt;
sorting the whole database &amp;amp; using previous response can save us a lot of time. Like if 100 users are from Delhi, Instead of calling the API 100 times for Delhi, We can use the first response for rest 99 users.&lt;br&gt;
Sort Query on MongoDB&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sorted_doc = collection.find().sort('district',pymongo.ASCENDING)&lt;br&gt;
users = list(sorted_doc)&lt;/code&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Remember collection.find() gives a cursor object which is not exactly a list, so we can use list() to get a list &amp;amp; can iterate it easily.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Sending pretty HTML emails&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;we can setup a basic SMTP client to send emails &amp;amp; use MIMEText to send html in email. HTML ? yes, now we can design our email just like any webpage.&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;


&lt;p&gt;&lt;strong&gt;Scheduling&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;since we want to carry out this operation &amp;amp; send email everyday at specific time so we need schedule this job. we can use scheduler or APScheduler in python, but it requires the cloud instances to be running, So I have used GCP cloud function to schedule this job.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import schedule
import time
def notify():
 #todo
schedule.every().day.at("09:00").do(notify)
while True:
 schedule.run_pending()
 time.sleep(1)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;**&lt;br&gt;
Thank you for reading !**&lt;/p&gt;

</description>
      <category>python</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
    <item>
      <title>BIT Mesra Lead | Learn By Doing</title>
      <dc:creator>Mayukh Pankaj</dc:creator>
      <pubDate>Thu, 30 Dec 2021 09:11:38 +0000</pubDate>
      <link>https://dev.to/mayukh/bit-mesra-lead-learn-by-doing-405</link>
      <guid>https://dev.to/mayukh/bit-mesra-lead-learn-by-doing-405</guid>
      <description>&lt;p&gt;The 8-week long IEEE Lead 2.0 has finally come to an end!&lt;/p&gt;

&lt;p&gt;So what’s LEAD ?&lt;br&gt;
In 2020, IEEE BIT Mesra started Lead as a learn by doing event. It is aimed at freshers where they deep dive into the world of web development. Over the 8 week long event, students learn skills like HTML, CSS, Javascript, Python and then put their skills to test, developing different projects.&lt;/p&gt;

&lt;p&gt;One of the best part is that it’s a mentorship event, So if you’re stucked, tired of searching on google or stackoverflow, Mentors come to rescue. You just need to ping on the discord server.&lt;br&gt;
How to participate?&lt;/p&gt;

&lt;p&gt;It’s organised annually around the month of April, Follow IEEE BIT Mesra on LinkedIn, Instagram, Facebook , Youtube to stay updated.&lt;br&gt;
Any Prerequisites ?&lt;/p&gt;

&lt;p&gt;No, You learn as you go. Resources and roadmap are shared in the orientation meet.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--BlQXzviO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pqpc1y05ok8wz8uyo4ah.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--BlQXzviO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pqpc1y05ok8wz8uyo4ah.png" alt="Image description" width="719" height="293"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Preparatory phase :&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt; Go through curated list of resources, tutorials.&lt;/li&gt;
&lt;li&gt;Development phase :  ( 1 week )&lt;/li&gt;
&lt;li&gt;$git push -u origin master&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Challenges&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--9CgIZEon--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ylaxobvcz87bb2ysecnm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--9CgIZEon--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ylaxobvcz87bb2ysecnm.png" alt="Image description" width="638" height="261"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So the event had three challenges, each one with different milestones. each milestone carried some points &amp;amp; brownies points were awarded for additional features. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Portfolio Website&lt;/strong&gt;&lt;br&gt;
First task was to design a personal portfolio website &amp;amp; host it on Github pages. Repository link. Techstack — frontend like HTML, CSS, React&lt;br&gt;
· About page · Skills page · Projects page · Contacts Page · CodeForces Rating Integration&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--i4bCMcBa--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9is6esemcppccz93rn10.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--i4bCMcBa--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9is6esemcppccz93rn10.png" alt="Image description" width="875" height="479"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Job scraping&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Second Task was to scrap job details like job title, company, application link &amp;amp; show it on Tkinter GUI. Repository Link. Techstack used — Python, BeautifulSoup, Tkinter&lt;br&gt;
· Scraping Google search · LinkedIn · Job websites like Indeed.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--rrN3R0yf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ixfb5hiewwns6t8veizj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--rrN3R0yf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ixfb5hiewwns6t8veizj.png" alt="Image description" width="875" height="492"&gt;&lt;/a&gt;&lt;br&gt;
 **&lt;br&gt;
API**&lt;/p&gt;

&lt;p&gt;Covid Tracking web app techstack — Javascript , fetch API , reverse geocode API&lt;br&gt;
· Fetching world data · India data · Geolocation’s data&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--82MyxYr4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jbw0hk8kr4zhuixpdilk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--82MyxYr4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jbw0hk8kr4zhuixpdilk.png" alt="Image description" width="875" height="457"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Kickstart — Git &amp;amp; Github&lt;/strong&gt;&lt;br&gt;
The event began with a workshop on git &amp;amp; Github. Git was breifly introduced, participants learned to fork, pull, push and make pull-request to repositories, as it was crucial for contributing to Lead 2.0 Github Repo.&lt;br&gt;
Event was hosted by Bhavya Hoda &amp;amp; Sanchit Gupta, streamed live on Youtube. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--sAQ2-2gC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4w62kymvd5yhvxcmds8t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--sAQ2-2gC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4w62kymvd5yhvxcmds8t.png" alt="Image description" width="875" height="414"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Final Exhibition&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The event concluded with an exhibition of top 3 projects from each challenge. K17 seniors Archit Gupta, Gyan Karn, Puneet Rai were invited as guest to judge the shortlisted projects. Judges also gave valuable feedback and suggestions to improve the project. Like for me, using local storage to store user preference, using MPEG instead of GIF to name few.&lt;br&gt;
Audience poll was also considered, as they voted for their favourite entries. Exhibition was also live streamed on Youtube.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--btX8As7A--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sy7ni5mz6z1ym3juy7g7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--btX8As7A--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sy7ni5mz6z1ym3juy7g7.png" alt="Image description" width="875" height="458"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Learned a lot in past 2 months, many takeaways. I wanted to make my portfolio but kept pending it, Implemented dark theme feature which I wanted to develop since the day I used it ! Webscraping , Pulling data with fetch API, XHR, Jquery was fun. Looking forward to keep contributing.&lt;/p&gt;

&lt;p&gt;I think it could have been a hell lot of more fun , if it was offline at BIT campus. Like live interaction and environment was missing. But anyways it was fun, thanx to discord and gmeet.&lt;/p&gt;

&lt;p&gt;Thank you. &lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
