Arpit J | Notes

Hello 👋, I am Arpit

I (occasionally) write on tech I use, things I do, and stuff I learn.

Notes

Mar 2025

atoi()

LC8 took all of my time today. Pseudocoding here for reference later – Problem Statement Convert a string to integer - Leading whitespaces to be ignored + or - to be taken into account for the integer sign Non-digit characters to be ignored Digit characters to be converted to integers Constraint specifies a string length of 0 to 200, integer overflow is possible; answer in that case to be rounded off to the max/min integer value Return the final signed integer Pseudocode index = 0 answer = 0 sign = 1 if string length = 0, return 0 while (index < string.

Dec 2024

Advent of Code 2024

I have decided to challenge my problem solving by following through on Advent of Code this year. “Advent of Code is an Advent calendar of small programming puzzles for a variety of skill levels that can be solved in any programming language you like. People use them as interview prep, company training, university coursework, practice problems, a speed contest, or to challenge each other.” I’m solving the problems in Java since I use it at work and feel most comfortable with it.

Sep 2024

How to fix messed up internal VPN on Ubuntu

For legal and sanity reasons, there’s no classified stuff here. To anyone from work: Yes, I fixed it. Crisis averted, lesson learnt. This is mostly a note to self in case I try to fix this issue when it happens again, and I need to revert everything. Problem WiFi works 10/10 on work laptop. VPN works 5/10. It connects, works for a few minutes and then it just stops working. Even after disconnecting from VPN, WiFi does not work normally and a system reboot is needed.

Jun 2024

A/B Testing 101

Since this year started, I have been working on a project on controlled online experimentation system implemented from scratch, christened: Abacus: The A/B Testing Projectâ„¢. It’s currently in the SIT environment right now where I’m interning, with a few natural holdups that happen due to cross-team collaboration. Nevertheless, I’m confident we’ll take it to production soon. Case Study Let’s say I bake two different batches of cookies. The first batch I call Hide n’ Sleep (my favourite), and the second I call Padhle-G (the classic).

May 2024

DAO Design Pattern with Spring Boot

It has been a couple of months to me developing a backend driven service for the organization where I’m interning. From hating the J of Java (irrationally) to easily writing complex controller classes and services with Spring Boot, this project has given me my first hands-on experience with Java, Spring Boot, and the DAO design pattern. Spring Boot Spring Boot is a framework based on Java which is used to build web apps and microservices.