RSSAmplifier

Blog

Arihant Verma

Learning In Public About Tech, Writing Personal Essays, Poems and Stories

arihantverma.comRSS feed ↗35 posts

Latest posts

Tech Week - 1

You can write styles for properties that tailwind@3.x.x doesn't support < div class = " [mask-type:luminance] [cx:17px] " > <!-- ... --> </ div > How to use css variables in tailwind < div class = " bg-[--my-color] " > <!-- ... --> </ div > How to use media and supports in tailwind inline < div class = " [@supports(cx:1)]:translate-x-0 [@media(hover:none)]:w-12 " > <!-- ... --> </ div > Media…

Netlify Astro DB PNPM Typescript Error

On netlify, I kept getting this error when trying to build my astro project: 6:17:37 PM: src/pages/dashboard/messages/index.astro:87:28 - error ts(7006): Parameter 'message' implicitly has an 'any' type. 6:17:37 PM: 87 {messages.map((message) => { 6:17:37 PM: ~~~~~~~ In one of my astro files, in frontmatter, the messages was all rows from an astro db table: const messages = await db . select ( ) .…

Old Jems

I was trying to find something else in my hardware archives bag when I found these two things, an old office card, which I never gave to anyone, and a multi audio connector/audio splitter. The card says that I am a word nerd and a read-o-holic. That is true. I don't know why but I'm kind of proud of whoever's idea it was to add this section in the card. I like that that line says more about me…

Discriminated / Tagged Union Types

I learnt about Discriminated Union Types for the first time 2 years back from Typescript in 50 Lessons book by Stefan Baumgartner . The example from the book: // common properties for an event entity type TechEventBase = { title : string , description : string date : Date , capacity : number , rsvp : number , } type Talk = { title : string , abstract : string , speaker : string } type Conference =…

Iterators for Pagination

I've have been spending some time using and reading github api through their official JavaScript SDK octokit . One interesting thing I stumbled upon today was their .paginate.iterator api ( implementation ), wherein you can provide this function any other listing api’s fetching function ( say listCommits ), and provide options to tell how many to fetch in one time ( and optionally takes a page ).…

Patch to make @octokit/types work with vite/astro

If you are using node, use patch-package . If you are using pnpm use the in-built patch command. Trying to use @octokit/types with vite/astro? You might run into this kind of error This is because of how vite.js resolves packages. @octokit/types doesn't export any javascript file, so vite says I don't recognise you, can't let you in. You need to add a dummy main file in the package's package.json…

Struggling Experiences At Hospitals

My father's health deteriorated in the last week of November. My last day at job was November 30th. On 3rd December I booked a flight for the next day to be with him and be of help. He's never informed me much about what's up with his health, never acquainted me on which medicines he took and for what. I also never asked. His standard answer to how he's doing would be and still is First class, all…

Where Does The Empathy Go?

Sadoo and Pareshaan In The Hospital Admin Office 🔗 I waited in the cue to get discharge papers at the hospital. The office had two people sitting and working seriously. One of them, let's call him Sadoo – the one in a suit – visibly the one working there for longer, looked particularly indifferent, no emotions on his face, except a slight hint of sanctimonious. The other one, let's call him…

Lack of Burning Desire of Dreaming Big

Felt vulnerable and introspective. Might delete later. When I was a kid I used to revel in the pride of being good at maths and science. When we used to live in villages and small towns of Himachal, we didn't have a lot of cable channels. So when I'd go to Mohali at my Nani's, apart from Cartoon Network, I'd be hooked to Discovery and National Geographic channels, especially the programs about…

In The Moments Of Passing Quiet

The Audacious Car Park In The Middle Of The Road And The Eye Smiles 🔗 I was coming back from fetching my car from someone who had borrowed it for a trip, early in the morning. About 10 minutes away from my home, at a small T intersection without traffic lights, an audacious driver — without a hint of brakes — came and stood right in the middle of the intersection. I could see her mind saying Teri…

The Overarching, Outreaching Hands Of Intuition — The Speaker Who Summons A Middle Path

Often our minds swing in between two extremes of actions — complete acquiescence or complete disconsolation wherever you find yourself. Changing jobs, places, partners, friends, don't help. As if the mind's vacillations between the past and the future weren't enough to the already outstanding restlessness and anxiety making up the background of our time. The roots of those 'action' extremes are…

Eavesdropping On Neighbours

I live in a ground floor apartment. The first floor neighbour on the flat above us shared a lot of feelings with the neighbour on our left on the ground floor. I couldn't help but take notes. She [little kid] suddenly started having a loose stomach after eating a pear. He [husband] was also not picking up the phone and was away so I didn't know what to do. I didn't have your number, otherwise I'd…

Eavesdropping On Kids

After working non stop for over a week at work on a tough project, when I stopped around 8:30pm today, I felt a void. I didn't feel like doing anything. I'd exhausted my listening to songs capacity. I tried walking, but walking always feels better when it's sandwiched between things, even if one of the things it's sandwiched between is sleep. It was too early to sleep. I felt kidnapped, forced to…

The Secret Behind A Mysterious Voice Calling A Certain Baby

In the morning, between 7-8, the same woman would start shouting Baby! Baby! Incessantly. Imagine how you got scolded by your parents when you wouldn't stop calling them or pulling their clothes for urgent attention. This mysterious woman kept calling a certain baby that quickly. The hardest part was to wake up to this voice everyday. The inflection in her voice of how she called this certain…

Notes On Grief

I recently read Notes on Grief by Chimamanda Ngozi Adichie. I didn't plan to. I saw the book in the Amazon's home page suggestions and I started reading. The author's father died during Covid from a kidney malfunction. In the book, she tries to do two things – Remember her father. As you'd read this tiny but profound book you'll live memories of difficult, shocking, sudden, chortling, sarcastic…

Why Is Sudarshan Kriya Like Brushing For The Body And Mind

We brush our teeth daily. 🪥 Yes, there are some weekends where we become careless and let the day slip by without it. Big deal! We poop almost daily too in the morning ( noon or evening, whatever your body and your digestive system clock prefers ) 💩 What does Sudarshan Kriya have to do with brushing and pooping? Our body sustains on periodic cleanliness, does it not? What about our mind? It's…

Song Lyrics I Got Wrong

My aunt who lives in Mumbai now, used to live close by when I was growing up. She'd host New Year's, Chirstmas parties, where friends and family would get together, sing, eat and dance. Vengaboys CDs and music were rave back then. I remember looking in wonder at the CDs with Vengaboys cartoon cover up one side of the CD. We're going to Ibizza automatically became We're going to eat pizza This post…

If On A Winter&#39;s Night A Traveller — Book Musing No. 1

This is not a book review. Book reviews are difficult to write. You've to keep all these notes, and make tradeoffs to keep the book review terse yet powerful and useful. This is a book musing. I underline and write in books I read ( bite me? ), and I thought those notes get lost. So maybe I should wrap those highlights and notes in the garb of musings and publish them to live on the internet for…

Palpitations And The Way Out?

I don't know why but when something mind stirring happens, or rather when something happens which stirs the mind, I at least once think about writing it in a non trivial, non banal way, that'd be artistic and artsy to read. Like taking mud after storm and turning pots from it. It has always never happened. Even the cryptic ( reminds me of Jorie Graham's poems ), sometimes (?) awe inspiring poems…

About The Strange Thing About Love

The first time I read this poem, I felt freer at that moment. Ever since, I've shared this poem with a lot of people, with the intent of gift in mind, even if it only meant sharing a photograph of the physical poem. There have been instances where I've wanted to share it with people, but I didn't have the book with me, and online searches for the poem were dead ends. Today I opened the poem and…

Watching The Making Of A Prodigy

I took Tanay Pratap's advice to not spend too much time learning how to invest. I hired a wealth manager through a mentor-friend, with a proven track record, and I am happily not caring about investments for time being. I told him that I had mentored people online this year – helped them learn to code. He asked me if I could guide his son, whenever he'd have any doubts or would need direction, on…

React Children, Iteration Methods And Their Limitations

Workaround for _next/data URLs throwing 404, for multiple Next.js Apps Running On Same Domain

If you have to use multiple Next.js apps on a single domain, the only straightforward way for you to do that is to have baseUrl option set in next.config.js . But the problem with that is, you'll have different URLs for different apps on your domain: example.com/app-1/some-route example.com/app-2/some-other-route If you want to do have them as so: example.com/some-route ( from app-1 )…

React&#39;s UI State Model vs Vanilla JavaScript DOM State — A Beginner&#39;s Introduction

This article is aimed at beginners who've never had the chance to see 'why React'. It takes a very contrived example to make a point about how React's declarative state model could help keep state sanity when code scales. If you're an experienced developer these series of posts by Steven might give deep insights about why declarative abstractions scale in a way you might not have thought before.…

The Problem With Glorification Of Rockstar Culture In Tech

Disclaimer 🔗 These points are made out of observation and experience and in no way attempts to generalise. Let's Talk Glorification Rockstar Culture In Tech 🔗 It's draining, impersonal and segregating but monetarily rewarding. Values only outputs rather than processes that enable tech innovations and helps multiple people reach results. In this process, the silent hard workers, who might have…

Learning to Teach ☀️

I want to tell you a story of full circle ⭕️ In 2015, I got a job out of college. I was not very happy about it, I was not sad about it either. I wasn't excited about it to put it fair and square. Probably because I didn't study at all to get it. I think the highlight of the interview, which got me in, was when I told the interviewer that I had tried to create a font out of using Processing…

Time Traveling Learning

Since the last three weeks I've been on a continuous work ride. My wrists hurt from typing too fast too much, my eyes are baggy, I lose track of when days go by to the point where I don't recognise when the week has passed. I haven't seen my face in the mirror for a long time. I'm pushing myself to learn because my efforts will directly affect the code quality and standards of the project I'm…

Observations and Experiences Earning Money Through Codementor

I don't remember when I started following Sunil on Twitter. He's a developer who — apart from his day job — invests a lot of time in curating development resources in Twitter threads. He has a significantly large Twitter following. He spends a lot of free time freelancing. He also writes ebooks about developer platforms, passive income generation, freelancing, his developer experiences, how to…

Creating An Outside Focus And Click Handler React Component

The 💩 Incidents

Trigger Warning: 💩 grossness When The Water In The Toilet Mug Danced On A Sunday 🔗 6th grade. It had been 6 months that I had moved from Majra to Nahan, both an hour apart. Father had transferred, and I had to switch schools. On a lazy Sunday, with mother, father and brother not at home, I was in the house with my grandmother. I woke up late, went to the toilet on wobbly feet, sleep drunk. I sat…

When I Woke Up To ₹ 28,000 Bill From Google Cloud Not Knowing Why

Until recently, like many of us, the first thing I used to do in the morning would be to check my mobile phone. I realised that it was taking about 20 mins to half an hour of my morning time. So I stopped doing it and replaced it with keeping my eyes closed and meditating instead for 15-20 mins. But the incident I'm going to tell you about happened when I still used to look up for my mobile phone…

Thinking About Writing As A Means Of Livelihood

History 🔗 In May 2015, during the last days of college, I kept expressing a wish which no body cared to reply or attend to. They had no reason to. I casually wished to my friends I wish we had something of our own, some of us, so that we wouldn't have to go away from each other and these memories and friendship . Some of my batchmates ended up doing their things . None of my close friends did.…

Changing Narration Voices and Tenses ft. Margaret Atwood and Shinjini Kumar

Some months back I had a completely random thought We are done. Just like this sentence popped out of nowhere, I thought it'd be interesting to use it in a story where it's completely unexpected. The story — at least in this first draft — starts as: "We are done", I hear someone say. I interrupt Litany singing PS2 in my ear pods. It feels like a dream broken. If you notice, I've used simple…

Butterfly With A Third Wing; A Possibly Blind, Hypnotized or Drunk Pigeon; Memory Of An Old Friend

The Butterfly With A Third Wing 🔗 Sitting down in the lawn of my father's government residence in Rohru, Himachal Pradesh, I was miles away from worries in the head, thanks to the listlessness that had grappled my senses. The setting sunlight hit my face. As I stood to walk the ennui off, I almost stepped over a butterfly sitting on a blade of golden dry winter grass. I casually sat down and saw…

Being Useful ft. A Hungry Bird And Being Truthful To Myself

Last 6 months have been tougher than I had thought would be. It still feels unreal. Everything actually. Sometimes I have these bouts of blankness. I see something, or I just sit back and look around and feel…blank. The answers to questions why am I doing what I am doing and what's the point of all this are still elusive in a way that makes me answer dull, sometimes frustrating I don't know and…