# Rohan Rajpal: all writing > Rohan Rajpal is the co-founder and CTO of Spur, a bootstrapped, profitable company building AI agents for sales and support on WhatsApp, Instagram, Messenger, live chat and email, used by 1,000+ brands in 70+ countries. Writes about building with AI, bootstrapping from India, and shipping fast. --- title: "My journey: from Moto G kernels to Spur and 1,000+ brands" description: "How custom Android ROMs, VideoLAN GSoC, IIIT Delhi, a viral CoWIN vaccine bot, and turning down Goldman Sachs led Royal Tomar and me to build Spur, a bootstrapped AI agent platform used across 70+ countries." author: Rohan Rajpal date: 2026-12-02 url: https://www.rohanrajpal.com/blog/my-journey tags: ["Founder notes", "Building Spur", "AI", "Engineering"] --- # My journey: from Moto G kernels to Spur and 1,000+ brands If you landed on the [home page](https://www.rohanrajpal.com/), you probably saw the pixel runner and the 3D city first. Both games trace the same ten chapters of how I went from flashing Android kernels in school to co-founding [Spur](https://www.spurnow.com) with Royal Tomar and running engineering, AI, and product there. This is the full written version of that journey: what happened at each turn, why we stayed 100% bootstrapped, and what actually compounded along the way. ## 2014: Flashing Moto G kernels for strangers My first real taste of shipping software had nothing to do with startups. Back in school in 2014, I got obsessed with Android internals, forked the [CyanogenMod device tree and kernel for the Motorola Moto G](https://www.rohanrajpal.com/achievements/moto-g-cyanogenmod-kernel), and put custom builds online for strangers flashing their daily phones. When someone bricks their phone because of a bad commit, you learn very quickly to read logs carefully, test before pushing, and respect the people running your code. ## 2017 to 2020: IIIT Delhi, VideoLAN, and real codebases I joined [IIIT Delhi for a BTech in Computer Science and Engineering](https://www.rohanrajpal.com/achievements/btech-cse-iiit-delhi) in 2017. Campus gave me strong systems fundamentals, close mentors, and my co-founder Royal Tomar. Four things from those college years shaped almost everything I built afterward: 1. **Production open source at VideoLAN (2019).** Through [Google Summer of Code 2019](https://www.rohanrajpal.com/blog/gsoc-with-vlc), I built the drag-and-drop controlbar editor in Qt and QML for the redesigned VLC interface. Maintainer reviews inside a decades-old codebase used by hundreds of millions of people taught me what clean, durable engineering looks like. 2. **Research discipline at Precog.** I spent roughly two years as an [undergraduate researcher at the Precog lab](https://www.rohanrajpal.com/achievements/precog-research-lab-iiit-delhi). That habit of measuring before claiming anything carried straight into how I later built AI evaluation pipelines at Spur. 3. **Community and campus shipping.** I served as [Google Developer Student Clubs (DSC) Lead at IIIT Delhi](https://www.rohanrajpal.com/achievements/google-dsc-lead-iiit-delhi) (running GSoC, Outreachy, and DevFest workshops), co-built [DMRC Connect](https://www.rohanrajpal.com/blog/dmrc-connect) (a Delhi Metro commuter design project that made the news), and worked as a [Teaching Assistant for Valuation and Portfolio Management](https://www.rohanrajpal.com/achievements/ta-valuation-portfolio-management-iiit-delhi). 4. **Enterprise vs startup internships (2020).** In summer 2020, I interned remotely in cloud and data engineering at [Expedia Group](https://www.rohanrajpal.com/blog/expedia-internship-experience) and also spent time at a [medical-imaging VR startup](https://www.rohanrajpal.com/achievements/medical-imaging-vr-startup-intern). Seeing both worlds back to back made it obvious that I wanted to build inside a small, fast-moving product team. ![Rohan with the DMRC Connect team at IIIT Delhi](https://www.rohanrajpal.com/photos/iiitd-dmrc-team.jpg) ## 2021: Hackathons, CoWIN Alerts, and 150,000+ people in chat In 2021, things accelerated fast. Royal and I built SevaShop, won [Hack InOut 7.0](https://www.rohanrajpal.com/achievements/inout-7-winner-sevashop), were picked for the first cohort of [Devfolio's Build India Fellowship](https://www.rohanrajpal.com/achievements/build-india-fellowship-devfolio) (where SevaShop was featured as one of four teams from 2,500+ applications), and completed [I-NCUBATE at GDC, IIT Madras](https://www.rohanrajpal.com/achievements/incubate-iit-madras-sevashop). Then India's second COVID-19 wave hit in May 2021. Vaccine slots on the CoWIN portal vanished within seconds of opening. Together with IIIT Delhi teammates Paras Mehan, Sidhant S Sarkar, and Royal Tomar, I built a free Telegram bot ([CoWIN Alerts](https://www.rohanrajpal.com/achievements/cowin-alerts-bot)) that watched open slots and pinged people the instant appointments went live. Word of mouth took over immediately: 1. **40,000+ users** within three weeks. 2. **60,000 users** in its first month and **150,000+ users** by June 2021. 3. **National coverage** across the [Times of India, NDTV, News18, The Tribune, and Mid-day](https://www.rohanrajpal.com/achievements/cowin-alerts-national-press). 4. **Institutional recognition:** placed on the Dean's List for Innovation Research and Development with the [IIIT Delhi Dean IRD Research Excellence Award](https://www.rohanrajpal.com/achievements/dean-ird-research-excellence-award-iiit-delhi) at Foundation Day 2021. ![IIIT Delhi Foundation Day 2021 Certificate of Appreciation and plaque for CoWIN Alerts](https://www.rohanrajpal.com/photos/deans-award-cowin.jpg) CoWIN Alerts changed my trajectory for good. At 22, we learned two things at once: we could keep real-time messaging infrastructure upright under sudden spikes, and an entire country was already comfortable taking serious action inside chat. ## Turning down Goldman Sachs for Headout Graduating in 2021, I had an offer from Goldman Sachs, but I [turned it down to join Headout](https://www.rohanrajpal.com/achievements/headout-software-engineer-bengaluru) as a software engineer in Bengaluru. I wanted to work close to shipping consumer software. At Headout, I focused hard on developer velocity: cutting the local change feedback loop [from 120 seconds down to 10 seconds (a 12x speedup)](https://www.rohanrajpal.com/achievements/headout-dev-feedback-loop-12x) and trimming [CI build time from 10 minutes to 3 minutes](https://www.rohanrajpal.com/achievements/headout-ci-pipeline-speedup). On nights and weekends, Royal and I completed the [Y Combinator Build Sprint](https://www.rohanrajpal.com/achievements/y-combinator-build-sprint) in September 2021. Then a merchant who had seen our CoWIN bot asked us for a bot that could sell to customers. That question turned into Spur. ## 2021 to 2023: Co-founding Spur from zero In December 2021, Royal and I incorporated Spurtastic Technologies Private Limited ([Spur](https://www.rohanrajpal.com/achievements/spur-incorporation-iiitd-incubation)), earned DPIIT Startup India recognition, and joined the IIIT-Delhi Innovation & Incubation Center in February 2022. From the first day, we decided to stay 100% bootstrapped and fund engineering directly from paying customers. The early milestones came one launch at a time: 1. **2022 launches:** Co-launched [Early-Stage OS](https://www.rohanrajpal.com/achievements/early-stage-os-product-hunt-3) (hunted by Ben Lang, #3 Product of the Day on Product Hunt with 274+ upvotes), then in September 2022 went live on the Shopify App Store and hit [#3 Product of the Day on Product Hunt](https://www.rohanrajpal.com/achievements/spur-shopify-app-store-product-hunt-3) (390+ upvotes) with our first Instagram DM automation tool. 2. **January 2023:** Showcased Spur at the [IISF 2022 Startup Conclave in Bhopal](https://www.rohanrajpal.com/achievements/iisf-2022-startup-conclave-bhopal). 3. **June 2023:** Met OpenAI CEO [Sam Altman in person during his India visit](https://www.rohanrajpal.com/achievements/sam-altman-openai-india-qa) at IIIT Delhi and asked live Q&A questions right as we began rethinking Spur around LLM agents. 4. **December 2023:** Selected as 1 of 10 startups from 1,000+ applicants on [Amazon Prime Video's *Mission Start Ab*](https://www.rohanrajpal.com/achievements/mission-start-ab-prime-video), featured on a billboard, hosted a 500-seat screening back at IIIT Delhi that brought us our earliest hires, and ranked [#4 Product of the Day on Product Hunt](https://www.rohanrajpal.com/achievements/product-hunt-4-spur-2023). ![Rohan Rajpal and Royal Tomar pitching Spur on Prime Video's Mission Start Ab](https://www.rohanrajpal.com/photos/mission-start-ab-pitch.jpg) ## 2024 to 2025: Rebuilding Spur around Actionable AI Agents By 2024, static keyword bots were clearly not enough. Merchants did not want chatbots that repeated FAQ paragraphs; they wanted agents that could check live orders, edit addresses, recover carts, confirm COD orders, and hand off cleanly to a human when needed. Over 2024 and 2025, we rebuilt the platform from the ground up: 1. **Commerce ecosystem:** Listed on Razorpay Rize Marketplace, expanded to WooCommerce, and shipped [Spur x Razorpay COD-to-Prepaid inside WhatsApp](https://www.rohanrajpal.com/achievements/spur-razorpay-rize-woocommerce-cod). 2. **Meta partnership:** Listed in the [Meta Partner Directory](https://www.rohanrajpal.com/achievements/meta-partner-directory-incubate-program) in June 2024 as a Meta Business Partner (Technology Partner) and joined the Meta Incubate Partner Program in 2025. 3. **Actionable AI Agents & Delivery Boost:** I architected [Spur's Actionable AI Agents](https://www.rohanrajpal.com/achievements/spur-actionable-ai-agents-delivery-boost) with typed, permissioned commerce tools, multi-LLM routing across OpenAI, Anthropic, Google, and xAI, and an adversarial multi-judge CI evaluation pipeline so changes cannot silently regress in production. Alongside it, we shipped Delivery Boost, lifting WhatsApp campaign delivery from roughly 30% to over 70%. 4. **Team and AI community:** Ran 30-day bootstrapped team workations in [Bali (2024) and Bangkok (September 2025)](https://www.rohanrajpal.com/achievements/spur-team-workations-bali-bangkok), met Turing Award laureate [Dr. Yann LeCun and Meta VP of AI Manohar Paluri](https://www.rohanrajpal.com/achievements/yann-lecun-meta-ai-meeting) with IIIT Delhi alumni, returned to [IIIT Delhi to guest-lecture the entrepreneurship course](https://www.rohanrajpal.com/achievements/iiit-delhi-guest-lecture-nit-rourkela-mentor) I took as a student, and mentored NIT Rourkela's hackathon with real AI and MCP problem statements. 5. **Meta HQ summits & viral education:** Co-hosted India's first Instagram-only business summits inside [Meta HQ Gurgaon](https://www.rohanrajpal.com/achievements/insta-ai-summit-meta-hq-gurgaon) (September 19, 2025: 483 registrations, 139 approved, 4.9/5 attendee rating) and [Meta HQ Mumbai, One BKC](https://www.rohanrajpal.com/achievements/insta-ai-summit-meta-hq-mumbai-real-estate) (September 25, 2025: 398 registrations, 251 approved at max capacity, keynote by Ravi Kewalramani), and kicked off our organic video education engine with [our first viral reel in Thailand](https://www.rohanrajpal.com/achievements/spur-educational-reels-viral-755k-views) (187,903 views and 4,502 shares on WhatsApp deliverability, scaling past 755,000 organic views with 97% non-followers). ![Rohan presenting on stage at Meta HQ Gurgaon during the Insta AI Summit](https://www.rohanrajpal.com/photos/meta-insta-ai-summit.jpg) ## 2026: 1,000+ brands, Spur MCP, and global scale Today, Spur is an agentic CRM built in New Delhi by a 12-person bootstrapped team, profitable every year since day one: 1. **Global scale:** [1,000+ brands across 70+ countries](https://www.rohanrajpal.com/achievements/spur-global-scale-1000-brands) (from two-person D2C shops to Jaipur Rugs and Golden Tree) running 72M+ conversations a year across e-commerce, real estate, education, healthcare, and travel. 2. **Production AI performance:** Our [AI agents resolve roughly 70% of conversations autonomously](https://www.rohanrajpal.com/achievements/spur-ai-agents-70-percent-resolution) and cut human escalations by up to 88%, while holding a [5.0-star rating across 118+ reviews on the Shopify App Store](https://www.rohanrajpal.com/achievements/spur-shopify-app-store-5-stars). 3. **Spur Sidekick & Spur MCP:** I built [Spur Sidekick and Spur MCP](https://www.rohanrajpal.com/achievements/spur-mcp-claude-chatgpt) with 40+ commerce and messaging tools so brands can build segments, launch WhatsApp campaigns, and check analytics straight from Spur, Claude, or ChatGPT. After launching Spur MCP live on stage at Meta Bengaluru HQ in April 2026, 36 paying brands connected in the first four weeks, and roughly 1 in 10 customers now operate Spur over MCP. 4. **Ecosystem milestones:** Five Spur teammates passed Meta's official Business Messaging certifications in November 2026 (including my [Meta Certified WhatsApp for Business Technical Implementation Professional](https://www.rohanrajpal.com/achievements/meta-certified-whatsapp-technical-implementation) credential), qualifying Spur for the official [Meta Business Partner (Technology Partner) badge](https://www.rohanrajpal.com/achievements/meta-business-partner-nvidia-inception) on November 24, 2026 (alongside joining NVIDIA Inception), plus [Meta's published Golden Tree success story](https://www.rohanrajpal.com/achievements/meta-golden-tree-success-story) in October 2026 (quoting me on our Spur-designed A/B test that lifted ROAS from 1.36x to 2.5x). 5. **Events and global tour:** Co-hosted [Operator Circle Bangalore at Meta HQ](https://www.rohanrajpal.com/achievements/operator-circle-bangalore-meta-hq) (862 registrations, 169 approved at max capacity with Meta, Shopify South Asia, and Razorpay Rize), [Operator Circle Jaipur](https://www.rohanrajpal.com/achievements/operator-circle-jaipur-meta) (212 registrations, 101 approved at max capacity; 1,955+ registrations across our four in-person Meta events), the [Meta x Spur Global Webinar](https://www.rohanrajpal.com/achievements/meta-spur-global-webinar-2026) (200+ attendees worldwide), and the [Inside WhatsApp Bidding webinar](https://www.rohanrajpal.com/achievements/meta-bid-based-marketing-messages-beta) with Razorpay Rize (1,272 registrations, 120-seat cap reached) as an early-access pilot partner on Meta's bid-based marketing messages beta. In June 2026, I attended [Meta Conversations in London and traveled through Scotland](https://www.rohanrajpal.com/achievements/meta-conversations-london-uk-2026), and in July we ran [Booth 9 at Meta's WhatsApp Business Summit in Bengaluru](https://www.rohanrajpal.com/achievements/whatsapp-business-summit-bengaluru-booth-9) as the only bootstrapped team on the floor (101 demos booked). 6. **New capabilities and press:** Moved into [Spur's first private office](https://www.rohanrajpal.com/achievements/spur-first-office-whatsapp-groups-calling), shipped WhatsApp Groups API and native WhatsApp Calling with automated call transcripts, and were profiled by [Digital Trends](https://www.rohanrajpal.com/achievements/digital-trends-profile-2026) in November 2026. ![Rohan moderating a WhatsApp marketing fireside at Meta Bengaluru HQ](https://www.rohanrajpal.com/photos/operator-circle-bangalore.jpg) ## Full circle: judging, mentoring, and IEEE peer review One of the best parts of 2026 has been sitting on the other side of the table from where I started: 1. **IIT Kanpur:** Judged [Techkriti'26 Pitch Premier](https://www.rohanrajpal.com/achievements/techkriti-26-pitch-premier-judge-iit-kanpur) across 200+ startup pitches in March 2026. 2. **IIIT Delhi:** Returned to campus to mentor and judge [Hack4Impact at E-Summit](https://www.rohanrajpal.com/achievements/hack4impact-judge-esummit-iiit-delhi) (24-hour hackathon, 800+ registrations) in April 2026. 3. **IIIT Allahabad:** Judged the [OOSC 4.0 open-source hackathon at IIIT Allahabad](https://www.rohanrajpal.com/achievements/oosc-4-hackathon-judge-iiit-allahabad) in August 2026. 4. **Academic peer review:** Completed two certified peer reviews for the [IEEE Internet of Things Journal](https://www.rohanrajpal.com/achievements/ieee-internet-of-things-journal-peer-reviewer) (November 7 and November 28, 2026; two IEEE Certificates of Reviewer Contribution publicly verified on Web of Science under ResearcherID `RPD-6688-2026`). ## Five things that actually compounded Looking back across twelve years of building, the same five habits drove almost every leap: 1. **Ship into real traffic early.** Moto G kernels, VLC patches, and CoWIN Alerts taught more in weeks of real user load than years of private side projects. 2. **Shrink feedback loops relentlessly.** Whether cutting Headout's dev loop 12x or building adversarial CI evals for Spur's AI agents, faster verified feedback beats working longer hours. 3. **Let customers fund the roadmap.** Staying 100% bootstrapped forced every feature to prove its worth in live merchant retention instead of pitch decks. 4. **Pair AI with deterministic systems.** LLMs shine when grounded in typed, permissioned actions and strict evaluation gates rather than open-ended prompts. 5. **Show up in person.** Campus hackathons, Meta HQ rooms, Operator Circle cities, and Booth 9 built relationships and product clarity that cold emails never touch. If you want to explore the interactive version of this story, [play the game on the home page](https://www.rohanrajpal.com/). If you want the structured archive with primary sources for every milestone, browse all [55 achievement pages](https://www.rohanrajpal.com/achievements). --- --- title: "OS Interview Prep Resources" description: "Some resources to learn more about the fundamentals of Operating Systems" author: Rohan Rajpal date: 2020-07-15 url: https://www.rohanrajpal.com/blog/os-interview-resources tags: ["Engineering", "Interview prep"] --- # OS Interview Prep Resources ## Concepts - [NPTEL Link](https://nptel.ac.in/courses/106/102/106102132/) - [Youtube playlist link](https://www.youtube.com/playlist?list=PLTtjs-HViBW6525-_a8QL3meFIlP31gGE)
## Questions - [Topic wise questions](https://www.sanfoundry.com/operating-system-questions-answers/) --- --- title: "The Virtual Internship: My Experience" description: "These summers, I interned at one of the largest travel companies of the world, Expedia Group™️. Who knew during a pandemic when travel is at an all time low, Expedia had a great intern program planned for us!" author: Rohan Rajpal date: 2020-07-13 url: https://www.rohanrajpal.com/blog/expedia-internship-experience tags: ["Learning", "Design"] --- # The Virtual Internship: My Experience These summers, I interned at one of the largest travel companies of the world, Expedia Group™️. Who knew during a pandemic when travel is at an all time low, Expedia had a great intern program planned for us! Luckily, my [previous intern](https://www.rohanrajpal.com/blog/gsoc-with-vlc) was remote too, so I was kind of used to work from home. In this internship, I majorly worked on cloud and data engineering. ![Our kickoff call on the first day](https://www.rohanrajpal.com/expedia/expediaPreview.png) ## The induction week Expedia organized an induction week for us, and it involved workshops on various topics: how to become a better leader, designer, and we even got to know how Expedia operates. We kept on having workshops throughout our intern, and there was a lot to learn from each session. ## My setup
setup with the laptop
setup with water and chai

Not the fanciest setup out there, but enough to get the work done :)

## My Team - Vrbo: Stayx dot net modernization pod I was a part of the Stay Experience team, which looks after the post-booking experience for a traveller. The team was divided into pods, and I worked on the .Net Stack Modernisation pod. My work involved making a microservice and figuring out how to deploy it to the cloud. I worked with a manager and a buddy. We synced up every week and discussed work updates every day. It motivated me to stay on track. I also synced up with our project sponsor a few times. I enjoyed such one on one sessions. They helped me connect with the team better. All the Vrbo interns together had a weekly sync with the Vrbo managers. We socialized, played some games, get help on some issues. It was nice to have someone for support throughout the program, and these calls also helped me get to know the other interns better. ## The project ### Motivation We have a database which stores the notifications for guests of guests in a homestay. Now we wanted a way in which we can store the data in S3 and keep it updated. - Why are you storing the data in two different places? - This data is not only used to send a notification but also by an analyst or data scientist. The MongoDB database also backs the GoG API, and if everyone does their operations on MongoDB, it might severely affect the API. We finally came up with the idea to use a Spark Job. This job would take the data from MongoDB and store it in an S3 bucket. - Why a spark job? - Spark and Scala are the industry standard for data management. The jobs will be able to manage huge amounts of data without any hiccups. ### Aim: Create a spark job to sync data from MongoDB to S3 ### A quick revision This blog is going to get more technical now, just keeping this for a quick reference if you have a doubt. **What's MongoDB?** It's a NoSQL database. **What's scala?** It's a programming language widely used for data management. I did all my coding in the Scala language. **What's Apache spark?** It's a fast and general-purpose cluster computing system for large scale data processing. Some important things to know about spark are: - Dataframe: This is data in the form of a table, just like a relational database table. - Dataset: Extension of Dataframes, they provide the functionality of being type-safe and an object-oriented programming interface. - SparkSession vs SparkContext: Spark session is a unified entry point of a spark application from Spark 2.0. It provides a way to interact with various spark’s functionality with a lesser number of constructs. Instead of having a spark context, hive context, SQL context, now all of it is encapsulated in a Spark session - Prior Spark 2.0, Spark Context was the entry point of any spark application and used to access all spark features and needed a sparkConf which had all the cluster configs and parameters to create a Spark Context object **What's a spark job?** In a spark application, when you invoke an action on RDD, a job is created. It's the main function that has to be done and submitted to spark. **What's a vault?** Hashicorp Vault is a tool for secrets management, encryption as a service, and privileged access management. **What's an S3 bucket?** Just a simple distributed file storage system, think of it like the hard disk on your computer ![the tech stack](https://www.rohanrajpal.com/expedia/techStack.png) ### Approach ![job](https://www.rohanrajpal.com/expedia/experience/datasyncJob.jpg) The spark job - Authenticates the vault and gets the secrets - Reads the updated data from MongoDB - Reads the data stored as parquet in S3 bucket - Does a left anti join on s3 and mongo data, you now have the data that did not change - Merge the data that didn't change with the new data with the new data - Write the data as parquet in S3 bucket The authentication was a little better than just sending a saved token: - Grab the EC2 metadata and nonce - Send the metadata and nonce to Vault - Vault checks if the EC2 instance is allowed and the nonce is correct - Obtain secrets like AWS access and secret key, and MongoDB password - Send a nonce to the Vault server and get the token - Get the secrets via the token Here's a nice example explaining everything: ```text Mongo id author book updateTime 1 A1 B1 T1 2 A2 B2 T2 3 A3 B3 T3 4 A4 B4 T4 S3 1 A1 B1 T1 2 A2 B2 T2 3 A3 B3 T2.1 Step 1: get all docs from mongoDb between updateTime1 and updateTime2 where T2 < updateTime1 < updateTime2 fetched records: 3 A3 B3 T3 4 A4 B4 T4 Step 2: read all records from S3. fetched records: 1 A1 B1 T1 2 A2 B2 T2 3 A3 B3 T2.1 Step 3: Left anti join on id between S3 and mongo data so that we have the data that did not change 1 A1 B1 T1 2 A2 B2 T2 Step 4: Merge results of Step 3 with data fetched in Step 1: new data set: 1 A1 B1 T1 2 A2 B2 T2 3 A3 B3 T3 4 A4 B4 T4 This can be put back to S3. You can see how this data is in sync with Mongo data ``` ### Challenges (and how I tackled them)
meme on intellij ram usage
- **VPN Issues:** The VPN I was using did not support Linux or [WSL](https://github.com/microsoft/WSL/issues/5068), so I had to work on windows. Windows is not at all developer-friendly. It was challenging to find a workaround for one-line commands in Linux. - However, I found a hack for this. I created an EC2 instance on the Expedia network and shifted all my work to that. Not only I could access all the links, but the scripts ran much faster than on my computer. - **RAM Issues:** I initially was using IntelliJ since it was easier to setup a scala project with it. Intellij was terribly slow and took a lot of RAM. - I later switched to VSCode plus Metals. Although it was a little more time consuming to setup, once understood, all RAM issues were solved, additionally using bloop instead of sbt decreased compile time. - Having a local MongoDB server for testing was also quite RAM hungry, MongoDB Atlas helped me a lot here. I deployed a free cluster in the cloud, and my work was done :) - **Spark and MongoDB** - Spark has some underlying concepts which were a little nontrivial to understand, at least for a first-timer like me. Above that the documentation of MongoDB-Spark connector was following old spark conventions at one place and new ones somewhere else. The documentation confused me a bit. - **Understanding Vault EC2 authentication** - Authentication took most of the time, being a college student, I really didn't worry about securing my applications in projects. Since we really didn't put something into production. - I learned about Hashicorp Vault(Store secrets), Terraform(Build instances from code) and Consul(Backend for Vault) - Rather than having a token to authenticate vault and get the secrets, a better method would be to use the ec2 metadata in which the spark job will be running to authenticate vault. - Making EC2 instances with Terraform and Consul - **Setting up EC2 instances** - I had some trouble finding the correct configurations so that I am able to SSH into an instance and make sure the instance can access all VPN links. --- --- title: "DBMS Interview Prep Resources" description: "Some of the best Youtube resources to learn and practice DBMS" author: Rohan Rajpal date: 2020-07-10 url: https://www.rohanrajpal.com/blog/dbms-interview-resources tags: ["Interview prep", "Engineering"] --- # DBMS Interview Prep Resources ## Concepts ### Basic of DBMS, Relational Algebra and SQL - [Playlist link](https://www.youtube.com/playlist?list=PLx5CT0AzDJCnO9k98RsrPY9WGAXj8yeKL) ### Transaction Management - [Playlist link](https://www.youtube.com/playlist?list=PLcV9HJoLZqnSlySIzXxAWoAsoRyqUCReg) ## B+ Trees ## Problems - [Topic wise DBMS questions](https://www.sanfoundry.com/1000-database-management-system-questions-answers/) --- --- title: "Competitive Programming: C++ Cheat Sheet" description: "Snippets I use while doing competitive programming that might help you too!" author: Rohan Rajpal date: 2020-06-20 url: https://www.rohanrajpal.com/blog/cp-cheat-sheet tags: ["Engineering", "Interview prep"] --- # Competitive Programming: C++ Cheat Sheet ## Improve speed ### Leetcode ```cpp static int fastio = []() { ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(0); return 0; }(); ``` ### Normal compile ```cpp #define fast ios_base::sync_with_stdio(false),cin.tie(NULL) ``` ## Header Template ```cpp #include #define ll long long #define ld long double #define vll vector #define vii vector #define vvll vector< vll > #define pll pair #define MOD 1000000007 #define rall(v) v.rbegin(),v.rend() #define fst first #define mp make_pair #define pb push_back #define fast ios_base::sync_with_stdio(false),cin.tie(NULL) #define int long long #define endl "\n" #define all(v) v.begin(),v.end() #define scd second #define for1(i,n) for(ll (i) = 1 ; (i) <= (n) ; ++(i)) #define forr(i,n) for(ll (i) = (n)-1 ; (i)>=0 ; --(i)) #define forn(i,n) for(ll (i) = 0 ; (i) < (n) ; ++(i)) #define forab(i,a,b,c) for(ll (i) = a ; (i) <= (b) ; (i)+=(c)) #define mst(A) memset( (A) , 0 , sizeof(A) ); #define tc() int t; cin >> t ; while (t--) using namespace std; ``` ## Comparators ```cpp class Solution { public: int twoCitySchedCost(vector>& costs) { sort(costs.begin(),costs.end(),[](auto &i1,auto &i2) -> bool {return i1[0] - i1[1] < i2[0] - i2[1];}); int sum=0; for(int i=0;i size_t operator()(const pair& p) const { auto hash1 = hash{}(p.first); auto hash2 = hash{}(p.second); return hash1 ^ hash2; } }; unordered_map, bool, hash_pair> um; ``` ### Increase map speed ```cpp umap.reserve(n) ``` ### String stuff int to string ```cpp class Solution { public: vector fizzBuzz(int n) { vector ans(n); for(int i=1;i<=n;i++){ if(i%3==0 and i%5==0) ans[i-1]="FizzBuzz"; else if(i%3==0) ans[i-1]="Fizz"; else if(i%5==0) ans[i-1]="Buzz"; else ans[i-1]=to_string(i); } return ans; } }; ``` ### Priority Queue ```cpp //max heap priority_queue g = gq; //min heap priority_queue , greater> gquiz; ``` --- --- title: "DMRC Connect: Improve your daily commute" description: "While DMRC is putting in full efforts to relay this information to riders, is it really reaching the intended audience? Are complaints being solved fast enough for affected riders to benefit from it? Do all complaints be it from Twitter, or from their helplines come with complete information?" author: Rohan Rajpal date: 2019-11-15 url: https://www.rohanrajpal.com/blog/dmrc-connect tags: ["Open source", "Design"] --- # DMRC Connect: Improve your daily commute From July-November 2019, my team and I worked on an application. This project was a part of the course: CSE501-Designing Human-Centered Systems.
logo of our app

DMRC-Connect

## Media Coverage We were glad that our project was covered by various news channels. Click on any of the images below to read more: ## Motivation The metro has been the backbone of transport in Delhi NCR, with daily ridership in excess of 5 million riders. It is famous for providing world-class transit with reach to almost all corners of the city with a reputation of punctuality and quality. At the core of these values lie the vision and mission of DMRC that aim to have the best possible experience for riders from all walks of life and have that with trust and reliability. DMRC has always tried to take an extra step ahead to connect better with the riders and provide them with the best experience. Social media plays an important role in their endeavour to build this connection, with DMRC being active on all social media platforms and constantly engaging with the riders. However, the question remains, do all Delhi metro users really use Twitter? While DMRC is putting in full efforts to relay this information to riders, is it really reaching the intended audience? Are complaints being solved fast enough for affected riders to benefit from it? Do all complaints be it from Twitter, or from their helplines come with complete information? Unfortunately, a general trend after rolling out small surveys and talking to users at various metro stations and in and around Delhi, we got to know that this wasn't the case. Not only was social media outreach restricted to those who followed DMRC on Twitter, but this sort of engagement also was never advertised or encouraged by any official metro source. ## Problem Statement ### What does DMRC Connect do? We create an application that facilitates interaction between DMRC officials and DMRC users and bridges the gap created earlier due to less outreach. ### What are the features? Sticking to the theme of the user and official interaction, the features of DMRC Connect are: 1. Announcements 2. Complaint registration 3. Complaint tracking 4. Quick access helplines 5. FAQs ## The Design Process ### Contextual Enquiry To help understand the problem better and get the user's perspective on it, we set out to interview general metro users about their usage patterns and general behaviour when it comes to complaints. Our aim was to understand the kind of behaviour users have while interacting with current systems and understand whether the current modes of communication were effective or not. The target audience was any general rider of the metro who was not a minor, and questions ranged from general ones that helped us understand their general behaviour towards tackling issues they faced, to more specific ones that asked the user about their experiences specific to the metro. A few of the questions were: 1. How often do you face "issues" or "problems" in services offered to you? It could be in an app, it could be during transportation like railway/metro/bus, it could be college or conferences? 2. Have you ever come across official announcements from Delhi metro? Where did you hear about them? 3. What problems have you faced in the metro till now? Can you describe any one instance? ![affinity diagram](https://www.rohanrajpal.com/dmrc/affinityDiagram.jpg) ### Lo-Fidelity Prototypes Based on the affinity mapping, we came up with the initial paper prototypes of our application and took them to users for testing through Task Analysis. ![lofi](https://www.rohanrajpal.com/dmrc/lofiPrototypes.jpg) Key Findings from v0 and v1: 1. Users went to "Help Centre" to do most tasks related to getting help from DMRC, very few users went to the actual intended target location. 2. "Contact Us" seemed to be a way to contact the developers rather than DMRC helplines. 3. Some people went to the complaint section in v2 to find women's helpline. 4. In helplines, instead of direct calls, users wanted phone numbers to pop-up instead. ### Hi-Fidelity Prototypes After 3 iterations of user testing through Task analysis on the lo-fidelity prototypes, we arrived at the first version of the hi-fidelity prototype and conducted testing on it. One of the major changes after user testing on the Hi-Fidelity prototype was to change the colour scheme to one with less hue, i.e primarily blue-based instead of red-based, and to shift from side navigation to bottom navigation instead. ### Final Color Scheme and Typography The typography used throughout was Roboto, as it is standardly used by Google and the colour scheme is mentioned below. dmrc app color scheme ### Final Application The final application, made with help of Android Studio and a Flask backend, was made live on the play store for users to use. The application is available [here](https://bit.ly/2NVhIEV). However, due to lack of resources, we have closed the backend for now. ## DMRC Connect is now Open Source! We have released the source code on github. Feel free to clone and play around with it! ## Building Better Interfaces #BBI2019
the DMRC team the bbi team props used during bbi with the director of IIITD with pk
## Team members - Rohan Rajpal - Meghna Gupta - Saatvik Jain - Tanya Gupta - Siddharth Yadav --- --- title: "My GSoC experience with VideoLAN: Redesigning the VLC media player" description: "My Google Summer of Code experience of working with VideoLAN." author: Rohan Rajpal date: 2019-08-12 url: https://www.rohanrajpal.com/blog/gsoc-with-vlc tags: ["Engineering", "Open source"] --- # My GSoC experience with VideoLAN: Redesigning the VLC media player ## Introduction

This summer, I participated as a Google Summer of Code student under VideoLAN. GSoC is undoubtedly one of the best summer programs out there. From designing interfaces and interactions to writing production-level code, I've learned tons of exciting stuff! I was blessed to have great mentors and learned a lot about the open-source community.

profile
### Project and Proposal The VLC media player has an Editor which enables you to customize the player controlbar UI; you can arrange buttons like the play button as per your liking. My main task was to implement this Editor functionality in the new UI for VLC. You can have a look at my [project page](https://summerofcode.withgoogle.com/projects/#5519642150305792) on the GSoC website. Feel free to check out my [proposal.](https://docs.google.com/document/d/1h6ABFFuIs7gJh4_zwkN23aYkeuDNsn3GkMUPgzeB7OI/edit) ### Patches I made an account on [VideoLAN's Gitlab](https://code.videolan.org) and worked on [this](https://code.videolan.org/rohanrajpal/vlc-qml) repository. I used to push all my commits there to get them reviewed. Then made patches out of them and sent commits to the VLC-developer mailing list. A few other people would then review the patches. Finally, after making the required changes, the patches would get merged. [Here is a list of all my patches.](https://patches.videolan.org/project/vlc-devel/list/?submitter=908&state=*) ## The Team A big thanks to the team and my mentors who helped me with my endless doubts! - [Abel Tesfaye](https://code.videolan.org/AbelTesfaye) (GSoC Student) - [Sagar Kohli](https://mail.google.com/mail/u/0/?view=cm&fs=1&tf=1&source=mailto&to=kohli.sagar2@gmail.com) (GSoC Student) - [Jean-Baptiste Kempf](https://code.videolan.org/jbk) (VideoLAN president) - [Pierre Lamot](https://code.videolan.org/chub) (Software engineer at Videolabs) - [Alexandre Janniaux](https://code.videolan.org/alexandre-janniaux) (Software engineer at Videolabs) - [Rohan Rajpal](https://code.videolan.org/rohanrajpal) (Me) Our communication was mainly via emails and #vlc-gsoc on IRC. ## The Project ### What work was done? I had made some contributions towards the player controlbar and further wanted to work on it. Jean then suggested I should work on the Editor. Making the Editor was a big task to do, we divided it into the following parts: 1. Create a model of all the buttons/widgets on the player ControlBar. 2. Load the player buttons from the model instead of hardcoding them. 3. Make a simple drag and drop interface which changes the model by dragging and dropping and updates the config 4. Make a View from which you can drag and add buttons to the player ControlBar. 5. Add profiles combobox via which you can load, make and delete configurations for the player. 6. Populate the miniplayer from the model 7. Make miniplayer editable and add a tab for it in the editor I have also worked on a few other things 1. Add all the missing buttons and widgets. I've added the following: - Volume Widget ![volume](https://www.rohanrajpal.com/gsoc/volumeDemo.gif) - Teletext Widget ![teletext](https://www.rohanrajpal.com/gsoc/teletextPopup.png) - Aspect Ratio widget ![aspect](https://www.rohanrajpal.com/gsoc/aspectRatioWidget.png) - Record button - Spacer widget - Extended Spacer widget - FullScreen button - Record button - AB Loop button - Snapshot button - Stop button - Media Info button - Frame by frame button - Faster button - Slower button - Open media button - Extended settings button - Step forward button - Step backward button - Quit button 2. Create a topbar for non editable buttons ![topBar](https://www.rohanrajpal.com/gsoc/topBar.png) ### What's left to do? Although I completed every task I was assigned, below-mentioned tasks are best suited as a follow-up for my work done: 1. If too many widgets come on one side the center buttons don't remain in the center anymore. This has to be fixed. 2. The design of the Teletext and a few other widgets isn't final and work needs to be done. ## Demo Have a look on how the VLC Editor works below:
## Highlights and Challenges ### Make a generic player controlbar The first task was to make a model that had all the button and widget data. Then I had to use that model to populate the player ControlBar. Loaders are quite helpful when you have to load a component in QML. ```cpp Loader { id: myLoader source: "MyItem.qml" } ``` After making the buttons model. The next step was to make a QtAbstractListModel to maintain a list of the buttons in current config. This is how the player ControlBar is populated now: - The model would load the config from VLC Core API. - The player controlbar model would then add the respective buttons to the list. - The main controlbar would then use this model to get the list and ids which would then load the button from the buttons model. ### Make sure VLC is accessible via keyboard One had to make sure that VLC is easily useable via the Keyboard as well. KeyNavigation and Focuscope are the critical things you'll work with when you are working with Focus. With a lot of documentation reading, experimenting, and Pierre's help, I successfully got the KeyNavigation right. ### Drag and Drop We all use drag and drop interfaces quite frequently. Making such interfaces made me understand the design and the logic behind it. To make an item draggable, you have to set it as a drag target. Similarly, to make it possible to drop a draggable, you need to declare a DropArea. I also had to add functionalities like move, insert and delete to the model, because Drag and Drop involve all these actions. Have a look at some of the actions below: ![dnd demo](https://www.rohanrajpal.com/gsoc/DNDDemo.gif) The next task was to code the cancel and close buttons. The player controlbar should only be updated when the user presses the close button. To implement this, I used signals. When you press the close button, the toolbarConfUpdated signal emits, and the playerControlBar is updated. [Signals and Slots](https://doc.qt.io/archives/qt-4.8/signalsandslots.html) are used for communication between objects in Qt. Here's the signal sent when toolbar is updated: ```cpp if( toolbarEditor->exec() == QDialog::Accepted ) emit toolBarConfUpdated(); ``` ### Hinting the user For the user to easily use the drag and drop interface, we have to provide some hints. When you hover over a draggable item, the cursor changes to an open hand cursor. If you click and hold over it, the cursor changes to a closed hand cursor. ![cursor shape](https://www.rohanrajpal.com/gsoc/cursorShape.jpg) The cursor changes to ForbiddenCursor if you take the draggable to a place where it's not possible to drop. ### Profiles Profiles help someone easily save their preferences. For this, I kept the configs of both the player and the mini-player controlbar and split them using a delimiter. ![profile demo](https://www.rohanrajpal.com/gsoc/profileDemo.gif) ### Different parts of the Editor One interesting thing about this editor is that it is a mix of QML and Qt/C++. The window, profiles section and action buttons are coded in Qt. The whole drag and drop part is in QML. Why use Qt when all can be done in QML? Because: - qml takes more ram - qml accessibility is hard to get - qml is harder to debug, and helps doing some big qml files, which we want to avoid at all cost. The picture below shows the division. ![Alt Text](https://www.rohanrajpal.com/gsoc/EditorDivision.png) ### Things I learned - Git - [Tricks](https://fle.github.io/git-tip-keep-your-branch-clean-with-fixup-and-autosquash.html) like fixup and autosquash help a lot in keeping the commits clean. - Rebase and reset is quite helpful when you need to edit or rearrange commits. - How to work with patches, send emails from git directly. - Handling merge conflicts like a pro. - How to split commits? A nice trick is if the commit message has bullet points, it can further be split. - Code - Avoid writing [over-engineered](https://www.youtube.com/watch?v=-AQfQFcXac8) code - How to work on a huge codebase. Things like Memory leaks, ram consumption, learned how to use the VLC Core API. - Design patterns like the [D-pointer strategy](https://wiki.qt.io/D-Pointer) and [Model View Delegate](https://doc.qt.io/qt-5/qtquick-modelviewsdata-modelview.html). - Qt/C++, QML and writing production-level code in them. - QtCreator, one of the best IDEs I've used. - Design - Learned design concepts like form follows the flow. - Prototyping, brainstorming on interactions. - Clipping - Thinking design solutions keeping the code in mind.