Recently, I needed to reschedule my Ethiopian Airlines flight due to a change in plans. With just a week before departure, I was anxious about whether I could manage the rescheduling in time. Here’s how I handled it, step by step...
Continue reading → Tags : travel
I usually build my jekyll
website using bundle install
. However I started getting following build error...
Continue reading → Tags : ruby jekyll
These are my rough notes while reading this book...
Continue reading → Tags : books
Dear Vishi, this is my weekly logs from Nov 18 to 24, 2024...
Continue reading → Tags : diary letters
My experience on how to get Brazil's tourist visa with India passport living in the US...
Continue reading → Tags : travel brazil
These are my rough notes while reading this book...
Continue reading → Tags : books
Dear Vishi, this is my weekly logs from Nov 4 to 10, 2024...
Continue reading → Tags : diary letters
Dear Vishi, this is my weekly logs from Oct 28 to Nov 3, 2024...
Continue reading → Tags : diary letters
Dear Vishi, this is my weekly logs from from Oct 21 to 27, 2024...
Continue reading → Tags : diary letters
Dear Vishi, this is my weekly logs from from Oct 14 to 20, 2024...
Continue reading → Tags : diary letters
As a Java developer, you often need to switch between multiple versions of Java for different projects. Managing this manually can be tedious, but SDKMAN! is a great tool that simplifies the process of installing, listing, and switching between Java versions...
Continue reading → Tags : java
Dear Vishi, this is my weekly logs from from Oct 7 to 13, 2024...
Continue reading → Tags : diary letters
Spring Data Redis Reactive offers a powerful solution for working with Redis in a non-blocking, reactive manner. Let's dive into the key components and how to use them effectively...
Continue reading → Tags : redis java
Google Chrome is one of the most widely-used web browsers for its speed, security, and versatility. After installing Chrome, there are a few key steps you can take to optimize your experience and boost productivity...
Continue reading → Tags : tools
This morning, I woke up and made a smoothie for myself—a mix of blueberries, raspberries, and milk, with no added sugar. I felt pretty good, thinking, "At least I'm eating healthy!" But then, curiosity got the better of me. Are smoothies really as healthy as they seem?...
Continue reading → Tags : health
Sleep is often seen as a dull, passive part of our lives, but it's one of the most important things we do daily. During REM (Rapid Eye Movement) sleep, our bodies undergo temporary muscle paralysis, a natural mechanism to prevent us from acting out our dreams. Our ancestors likely dreaded the vulnerability sleep brought, especially in the presence of nocturnal predators...
Continue reading → Tags : sleep
To continue my passion for hiking, I recently visited Grandfather Mountain State Park, one of North Carolina's most iconic hiking destinations. It offers a variety of trails and experiences, but the Grandfather Trail, known for its challenging terrain, ladders, and stunning views, was my primary target...
Continue reading → Tags : hike
Given a string s and an array of strings words, return the number of words[i] that is a subsequence of s. A subsequence of a string is a new string generated from the original string with some characters (can be none) deleted without changing the relative order of the remaining characters...
Continue reading → Tags : leetcode java
Preauthorize annotation can be use to enforce access control in Spring Boot applications. It's part of Spring Security that allows you to specify access control expression for methods. These expressions are evaluated before method execution, determining whether the current user has the authority to invoke the method...
Continue reading → Tags : java spring boot spring security
Method overloading is a fundamental concept in object-oriented programming that allows multiple methods to share the same name within a class, differentiated by their parameter lists. This feature enhances code readability and provides type safety at compile-time...
Continue reading → Tags : java
Car Registration in North Carolina...
Continue reading → Tags : car
I regularly play badminton at the Marion Diehl Recreation Center and Pool, where intermediate sessions are held every Wednesday from 7:00 pm to 9:00 pm. To secure a spot, you can make a reservation by calling +1 980-314-1300. From my experience, if you're looking to reserve a spot for the entire month, it's best to call on the 15th of the preceding month...
Continue reading → Tags : charlotte
When working with JavaScript, it's important to understand that objects are reference types. This means that when you assign an object to a new variable, you're not creating a new copy of the object—instead, both variables reference the same object in memory. This can lead to some unexpected behavior if you're not careful...
Continue reading → Tags : javascript
kcat (formerly known as kafkacat) is a versatile command-line tool for Apache Kafka. It allows you to consume and produce Kafka messages and interact with Kafka clusters efficiently. This guide will help you set up and use kcat with SASL authentication to consume and produce messages...
Continue reading → Tags : kafka
In Spring application, it's common to have multiple beans of the same type. However, this can lead to issues when Spring tries to autowire these beans, as it doesn't know which bean to inject. This problem can be resolved using Qualifier annotation...
Continue reading → Tags : spring boot spring
git stash is a powerful and nifty feature in Git that allows you to temporarily set aside changes you've made to your working directory. This can be incredibly useful when you need to switch branches but aren't ready to commit your changes. Here’s a comprehensive guide on how to use git stash effectively...
Continue reading → Tags : git
What's a dopamine? It's a molecule secreated by part of brain. Often dubbed pleasure molecule, it's presumed to be released when we experience pleasures. However this book explores how dopamine is a molecule of more not just pleasure. Like the author said the dopamine activity is not a marker of pleasure. It's a reaction to the unexpected - to possibility and anticipation...
Continue reading → Tags : books
Dear Vishi, this is my weekly logs from from July 15 to 21, 2024...
Continue reading → Tags : diary letters
Travelling hacks...
Continue reading → Tags : flying travel
Dear Vishi, this is my weekly logs from from July 1 to 7, 2024...
Continue reading → Tags : diary letters
Nalanda University, located in present-day Bihar, India, was one of the most renowned centers of learning in the ancient world. Its destruction marks a significant loss to global intellectual heritage, but the question of who destroyed this great institution remains a subject of debate among historians and scholars. ..
Continue reading → Tags : history india
Issue Links in Jira allow you to create meaningful relationships between different issues. These links help in maintaining traceability and provide a clear context for related work items...
Continue reading → Tags : jira
Dear Vishi, this is my weekly logs from from June 24 to 30, 2024...
Continue reading → Tags : diary letters
Whoosh is Indonesia's first bullet train, zipping between Jakarta and Bandung. This project came to life thanks to China outbidding Japan in a tight race...
Continue reading → Tags : indonesia
Tale of my food adventures...
Continue reading → Tags : food indonesia
You can publish your Java libraries to the Maven Local repository, enabling developers to easily test and share their work within their local environment. Maven Local is a local repository on your machine that cache downloaded dependencies and stores your own project's artifacts (e.g. JAR files). This allows for faster builds and provide an easy way to share artifact across different projects without the need to publish them to a remote repository...
Continue reading → Tags : maven gradle
Dear Vishi, this is my weekly logs from from June 17 to 23, 2024...
Continue reading → Tags : diary letters
Cozumel, a jewel in the Caribbean Sea, is famed for its crystal-clear waters, vibrant coral reefs, and lush green landscapes. While this Mexican island offers a plethora of activities for the eager tourist, one of the best ways to explore its natural beauty and hidden gems is by renting a scooter...
Continue reading → Tags : mexico cozumel
How often do you come across a lizard so relaxed it seems almost lazy? After flying thousands of miles and encountering a variety of lizards, one sultry afternoon presented me with a particularly memorable moment. I spotted this cute fellow, quite literally, yawning away without a care in the world...
Continue reading → Tags : mexico cozumel
During my week-long stay in Cozumel, I explored numerous restaurants. However, it was not until the last day that I discovered a true gem, leaving me with the sole regret of not finding it sooner...
Continue reading → Tags : places food mexico cozumel
Dear Vishi, this is my weekly logs from May 6 to May 12, 2024...
Continue reading → Tags : diary letters
Dear Vishi, this is my weekly logs from Apr 22 to Apr 28, 2024...
Continue reading → Tags : diary letters
Dear Vishi, this is my weekly logs from Apr 8 to Apr 14, 2024...
Continue reading → Tags : diary letters
I bought a ping pong table on eBay, only to endure an agonizing wait of over a month. When it finally arrived, the table bore no resemblance to the one advertised in the pictures. Eager to fast-track my return, I discovered that contacting eBay directly via phone was not an option. The customer service numbers provided no straightforward path to speak with a live representative. Engaging directly with a person often speeds up resolution processes, but finding that human connection proved to be a challenge in this case...
Continue reading → Tags : ebay
Dear Vishi, this is my weekly logs from Apr 1 to Apr 7, 2024...
Continue reading → Tags : diary letters
Consider the following scenario: You're sitting on a bus when a stranger initiates a conversation. "What do you do for a living?" he asks. At this time, I was unemployed. "I'm currently in between jobs," I responded...
Continue reading → Tags : opinion
When to use a materialized view? And how does it perform against a normal view. Benchmarking using docker...
Continue reading → Tags : sql database python docker
The MacOS Catalina (v 10.15.3) has a security feature known as Gatekeeper, which verifies downloaded applications. When you encounter the error: "chromedriver" cannot be opened because the developer cannot be verified, it's due to Gatekeeper restricting the execution of the chromedriver executable. This is because it doesn't recognize the developer, which is a common issue for developers and testers who use chromedriver for browser automation...
Continue reading → Tags : macos
GlobalProtect is a security platform that extends the capabilities of a firewall to end-user devices. It is a product of Palo Alto Networks and it provides a network security infrastructure that prevents cyber threats regardless of what device is being used and from where. However, there might be instances where you would want to stop or disable this service. This can be done by modifying a specific system file, known as the LaunchAgent property list (plist) for GlobalProtect...
Continue reading → Tags : macos vpn
Dear Vishi, this is my weekly logs from Feb 26 to Mar 3, 2024...
Continue reading → Tags :
Dear Vishi, this is my weekly logs from Feb 19 to Feb 25, 2024...
Continue reading → Tags : diary letters
Jenkins pipelines are a powerful tool for automating continuous integration and delivery workflows. However, when dealing with file operations in a Jenkins pipeline, developers often encounter a common pitfall related to file handling...
Continue reading → Tags : jenkins
Dear Vishi, this is my weekly logs from Feb 12 to Feb 18, 2024...
Continue reading → Tags : diary letters
I went to North Carolina Museum of Natural Sciences on a damp morning with Richu and her mom. There is no entrance fee and the street parking was easy to find. I was particularly enamored with the fossils of dinosaurs and whales which are pretty humongous. There's also a cafe inside if you get tired from walking. Below are some of the highlights of my visit...
Continue reading → Tags : north carolina
Dear Vishi, this is my weekly logs from Feb 5 to Feb 11, 2024...
Continue reading → Tags : diary letters
Dear Vishi, this is my weekly logs from Jan 29 to Feb 4, 2024...
Continue reading → Tags : diary letters
Dear Vishi, this is my weekly logs from Jan 22 to Jan 28, 2024...
Continue reading → Tags : diary letters
Dear Vishi, this is my weekly logs from Jan 15 to Jan 21, 2024...
Continue reading → Tags : diary letters
Gradle build cache is an essential tool for optimizing build times in software development. By storing build outputs either locally or remotely, it significantly reduces the time and resources required for rebuilding similar tasks. This cache mechanism is especially beneficial in continuous integration environments where builds occur frequently...
Continue reading → Tags : gradle java
Dear Vishi, this is my weekly logs from Jan 8 to Jan 14, 2024...
Continue reading → Tags : diary letters
Dear Vishi, this is my weekly logs from Jan 1, 2024 to Jan 7, 2024...
Continue reading → Tags : diary letters
Dear Vishi, this is my weekly logs from Dec 25,2023 to Dec 31, 2023...
Continue reading → Tags : diary letters
The problem statement, as given on LeetCode, asks us to find the maximum width of a binary tree. The width of a level is defined as the number of nodes at that level. The maximum width of the binary tree is the maximum width among all levels...
Continue reading → Tags : python queue java
In this blog, we'll explore how to create a simple Spring Boot application that leverages Spring AI for generating responses. We'll build a BooksApi application that can tell us which book won the booker prize for a given year...
Continue reading → Tags : spring boot
We delve into a popular algorithmic problem from LeetCode: the "Binary Tree Right Side View". This problem is an excellent exercise for understanding tree-based data structures and breadth-first traversal techniques...
Continue reading → Tags : python queue java
I went to Charlotte Fintech Meetup. It was held in Room 326 of Sykes Hall, which is located in the McColl School of Business at Queens University. ...
Continue reading → Tags : charlotte finance python
Getting started with Javascript Promises and Async Await..
Continue reading → Tags : javascript
In search of a barber during my stay in Cartagena, I turned to Google Maps for assistance. It led me to Valentino Barberia, located at 130001, Cartagena de Indias, Bolívar. The ambiance of the place, complete with Spanish music playing softly in the background, immediately caught my attention. Upon entering, I requested a "corte de barba," seeking a neat beard trim to freshen up my look...
Continue reading → Tags : travel cartagena
I flew to Mexico on the eve of Thanksgiving, November 22, 2023. Holding an Indian passport with a valid H1B visa stamped, I was eligible for visa-free entry to Mexico, as the country accepts travelers with a valid U.S. visa with at least six months validity. This made my travel plans smoother, requiring only that my passport be valid for the duration of my stay in Mexico...
Continue reading → Tags : mexico travel
Git, a powerful version control system, is essential for managing and organizing files, especially in team environments. When working collaboratively, developers often create multiple branches to isolate their work. The git rebase command becomes crucial when you need to integrate changes from the master(sometimes can also be main) branch into your feature branch...
Continue reading → Tags : git
In Kafka, a deserializer is responsible for converting byte arrays from kafka topic into Java Objects. Kafka provides default deserializer for standard data types like strings and integers, but you can also implement custom deserializer for complex types...
Continue reading → Tags : kafka
The Liskov Substitution Principle, named after Barbara Liskov who introduced it in 1987, is one of the five SOLID principles of object-oriented design and programming. It states that..
Continue reading → Tags : oop java
Dear Vishi, this is my daily log for Oct 13, 2023...
Continue reading → Tags : diary letters
Dear Vishi, this is my daily log on Oct 11, 2023...
Continue reading → Tags : diary letters
Dear Vishi, this is my daily log on Oct 10, 2023...
Continue reading → Tags : diary letters
Dear Vishi, this is my daily log for Oct 7, 2023...
Continue reading → Tags : diary letters
When it comes to selecting sunscreen, the options might seem overwhelming. With an array of brands and SPF numbers on the shelves, it's essential to understand what these numbers mean and the importance of using sunscreen. Let's delve into the science behind it...
Continue reading → Tags : sunscreen
Spring Boot provides a range of functionalities that allow developers to run specific code blocks during the application's lifecycle. One such feature is the CommandLineRunner interface. This interface is specifically designed to execute a code block just once, right after the Spring Boot application has initialized. This can be particularly useful for tasks like database seeding, running sanity checks, or any other initialization logic you want to run before your application begins processing...
Continue reading → Tags : spring boot
Dear Vishi, this is my daily log for Oct 3, 2023...
Continue reading → Tags : diary letters
Amazon Simple Storage Service (s3) is a scalable object storage service provided by AWS. It allows users to store and retrieve vast amount of data, make it a fundamental building block for many applications hosted on AWS. Deleting a s3 bucket is a two step process: empty a s3 bucket and then delete a s3 bucket...
Continue reading → Tags : jenkins aws
Java provides various modifiers to control the behavior of classes, methods, and variables. Two such modifiers are final and static final. Let's delve deeper into their significance and differences...
Continue reading → Tags : java
Data can be broadly categorized into three types based on its structure: Unstructured, semi-unstructured, structured data...
Continue reading → Tags : parquet spark
Developers using Netty on MacOS M1 systems may encounter an error indicating a missing DNS resolver library. This error arises because Netty utilizes native code for optimal DNS resolution, and the necessary library might not be present on M1 systems...
Continue reading → Tags : macos gradle maven
Dear Vishi, this is third weekly reflection for Aug, 2023...
Continue reading → Tags : letters
JavaScript is full of surprises and unexpected behaviors that often leave developers scratching their heads. One of those strange behaviors is the fact that Math.max() < Math.min() is true in JavaScript. In this blog, we'll delve into the underlying reasons for this seemingly paradoxical result...
Continue reading → Tags : javascript
Design a time-based key-value data structure that can store multiple values for the same key at different time stamps and retrieve the key's value at a certain timestamp...
Continue reading → Tags : java leetcode
Angular provides the DatePipe for formatting dates. You can use it directly in your templates with the pipe syntax, or you can use it programmatically in your components...
Continue reading → Tags : angular
Observables provide support for passing messages between parts of your application. They are use frequently in Angular applications for handling async data flows...
Continue reading → Tags : angular
Dear Vishi, this is my daily log for July 24, 2023...
Continue reading → Tags : letters
As we delve into the realms of sophisticated data management, we will be harnessing the strengths of Spring Boot, the agility of MongoDB, and the responsiveness of reactive programming to implement an efficient pagination system. Pagination is a critical feature, instrumental in enhancing user experience and application performance. By the end of this guide, you'll have a deep understanding of reactive pagination, equipping you with the skills to manage large data sets with ease and proficiency. Let's get started...
Continue reading → Tags : spring boot java mongodb
You are playing a game that contains multiple characters, and each of the characters has two main properties: attack and defense. You are given a 2D integer array properties where properties[i] = [attacki, defensei] represents the properties of the ith character in the game....
Continue reading → Tags : java
As we gaze into the dark sky, captivated by the sparkling stars, we often find ourselves contemplating the deeper meaning of life and the existence of a higher power. The question of whether God is a mere human construct or if our existence holds merit in the vast realm of the universe remains..
Continue reading → Tags : religion audio
I recently found myself in need of a rejuvenating break during a road trip from Charlotte. I stumbled upon Thai Philly Spa, which was in between my trip to East Providence, RI. The spa center was anything but..
Continue reading → Tags : travel spa philadelphia
Jenkins is a popular automation tool used for continuous integration and continuous delivery (CI/CD) processes. Kafka, on the other hand, is a distributed event streaming platform capable of handling large volumes of real-time data. By combining the power of Jenkins and Kafka, we can effectively publish pipeline information to a Kafka topic...
Continue reading → Tags : groovy jenkins kafka
You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adjacent houses have security systems connected and it will automatically contact the police if two adjacent houses were broken into on the same night...
Continue reading → Tags : javascript java python rust
I went for lunch with my team at Bang Bang Burgers in Charlotte. It was a bit of a walk from the office, but luckily the weather wasn't hot, so it was a pleasant stroll to the restaurant...
Continue reading → Tags : charlotte food
In this kata, you are given a string that represents a time in the format "HH:MM:SS". The string may be in the wrong format, or it may be missing some characters. Your task is to correct the string so that it represents a valid time...
Continue reading → Tags : java javascript
As I arrived in Charlotte after a long journey from Durham, NC, my body was in dire need of respite. Hours spent in the car had left me fatigued and achy, prompting me to seek solace at a spa. With hopes of rejuvenation, I eagerly indulged in a massage session, eager to alleviate the tension that had accumulated during my travels...
Continue reading → Tags : charlotte travel spa
In the annals of crime and justice, there are stories that captivate our attention due to their sheer complexity and the ethical dilemmas they present. One such story is that of Marianne Bachmeier, a woman whose actions shocked the world. On January 6, 1981, in a courtroom in Germany, Bachmeier took the life of the man accused of sexually abusing and murdering her daughter. Was her act justified?..
Continue reading → Tags : people
Imagine you have a magical tool called studentized residuals that helps you explore the secrets hidden in data. These residuals are like detectives who investigate the influence and odd behaviors of individual data points. They compare the actual values of something you're trying to predict with the values your model predicts, and then they measure how different they are. By using a special formula, they make sure the measurements are fair, no matter what model or dataset you're using...
Continue reading → Tags : sas richa gairola r
Apache Kafka is a distributed streaming platform designed to handle real-time data streams efficiently. It uses a publish-subscribe model, where producers publish messages to topics, and consumers subscribe to those topics to receive the messages. Amazon MSK simplifies the deployment and management of Kafka clusters on AWS, providing a fully managed and scalable solution. You can use AWS lambda in python to publish to MSK topic...
Continue reading → Tags : kafka aws python
In AWS Lambda functions, it's common to use temporary directories for tasks like generating temporary files, storing intermediate data, or processing data securely. However, improperly managing publicly writable directories can lead to security vulnerabilities. In this article, we'll explore how to address this issue and ensure safe usage of temporary directories in AWS Lambda functions using Python's tempfile module...
Continue reading → Tags : sonarqube python aws
Testcontainers is a Java library that provides lightweight, disposable containers for running integration tests. It's a useful tool for testing applications that rely on external dependencies like databases or message queues...
Continue reading → Tags : java spring boot testcontainers
Strings are immutable in java. It's best to convert string to StringBuilder/StringBuffer so that it's memory efficient for string manipulation...
Continue reading → Tags : java interview
Thailand has got a bad reputation for its seedy masssage parlors and go go bars. However it's a beautiful country with plenty of toursit attractions. Below is my snapshot of my travel to Thailand...
Continue reading → Tags : thailand travel
Dear Vishi, this is my daily log for May 7, 2023...
Continue reading → Tags : diary letters
AWS lambda function are event driven serverless code. To follow TDD, we should write unit test our lambda functions...
Continue reading → Tags : aws python
As a non-immigrant worker in the United States, navigating the visa stamping process can be a cumbersome task. However, with proper planning and understanding of the process, the journey can be much smoother...
Continue reading → Tags : visa usa india
Dear Vishi, this is my daily log for Apr 25, 2023...
Continue reading → Tags : diary letters snyk
I grew up in India and am still unable to grasp the complexity of the caste system. While there is still caste discrimination plaguing India, the country with a population of over a billion people, diverse languages, cultures, and levels of prosperity does not have a consensus on caste. However, it is unfortunate that a white professor in the US, who has lived all her life outside India, seems to claim expert knowledge on caste...
Continue reading → Tags : caste
Reactive programming is becoming increasingly popular in modern software development, and the use of reactive frameworks like Spring Reactor and RxJava is becoming more common. Reactive programming is an event-driven approach to programming that emphasizes asynchronous data streams, non-blocking I/O, and functional programming...
Continue reading → Tags : reactive programming java
Lunarvim is a powerful tool that can enhance productivity for advanced software engineers. One feature that is particularly useful for working with multiple files is vsplit
and telescope
. However, it can become cumbersome to navigate between files using a mouse. ..
Continue reading → Tags : neovim vim lunarvim
Dear Vishi, this is my daily log for March 10, 2023. ..
Continue reading → Tags : diary letters
If you're a writer or a developer who frequently deals with text formatting, you're probably familiar with Markdown. Markdown is a lightweight markup language that allows you to easily format text using simple syntax. While you can write Markdown in any text editor, using a dedicated Markdown editor can make the process much easier and more efficient...
Continue reading → Tags : docker mardkown
A set in Java is a collection that stores a unique set of elements. This means that there are no duplicates in a set. You can define set using HashSet, TreeSet, or LinkedHashSet...
Continue reading → Tags : java interview
JSON-Server is a popular tool for creating fake REST APIs quickly and easily. It's a great option for testing purposes when you need to mock up an API to see how your application interacts with it...
Continue reading → Tags : api
Dear Vishi, this is my daily log for Feb 07, 2023...
Continue reading → Tags : diary letters
Dear Vishi, this is my daily log for Feb 06, 2023...
Continue reading → Tags : diary letters spanish
Dear Vishi, this is my daily log for Feb 05, 2023...
Continue reading → Tags : diary letters
Dear Vishi, this is my daily log for Jan 31, 2023...
Continue reading → Tags : diary letters
Dear Vishi, this is my daily log for Jan 30, 2023...
Continue reading → Tags : diary letters
Dear Vishi, this is my daily log for Jan 29, 2023...
Continue reading → Tags : diary letters
I stumbled upon a youtube video of Georgia Purdom, an American biologist and young Earth creationist. As a biologist, how can one reject the theory of evolution, the very foundation of the field?..
Continue reading → Tags : science religion
SonarQube is an open-source platform used to manage code quality. It provides static code analysis, which means it can automatically analyze code to detect bugs, vulnerabilities, and code smells (design issues that could lead to problems in the future)...
Continue reading → Tags : docker sonarqube
It's a easy problem on Graph in leetcode to find if a path exist in graph...
Continue reading → Tags : leetcode java
Unless you were living under a rock, it's very likely that you saw the movie - Finding Nemo. I liked Marlin who was nemo's dad who faught against the odds to recover his son. Can you tell me if nemo was male or a female?...
Continue reading → Tags : letters
How often do you bump into a painter? "So what do you do?", I asked. "Well I am a painter", she said. "Like a real painter?". "Yes"...
Continue reading → Tags : letters
I could not delete a statemachine that had running instances stuck in Progress. Since the number of instances were humongous, it was impossible to manually delete them using UI...
Continue reading → Tags : aws statemachine
I have a Syrian hamster called Mustard. In less than a week he has learned to climb stairs...
Continue reading → Tags : hamster pet
Most of the terminal I have used in Windows were at best lackluster. However wsl2 is a game changer which makes your Windows OS Unixy...
Continue reading → Tags : wsl windows
Performing inner join on pandas dataframe is straightforward. However I wanted to override values from the right dataframe...
Continue reading → Tags : python pandas
AWS offers managed service Amazon MemoryDB which is redis compatible. The entire keyspace in Redis cluster is divided into hash slots and these slots are assigned to multiple nodes. In redis, getting a single value is straightforward...
Continue reading → Tags : python redis memorydb aws
What's the first link that google throws at you when you search anything? Wikipedia is always foremost search result that you encounter. When it comes to science and technology, Wikipedia often provides good foundation for the beginners. However when it comes to politics, Wikipedia often begins to falter...
Continue reading → Tags : opinion
I stumbled upon a ransomware negotiation simulator by Financial Times. It's a mock simulation where you're in a hot seat at a hacked company, trying to stop cybercriminals from releasing sensitive data they have stolen from your systems. ..
Continue reading → Tags : hacking
Waterfire is a popular festival at Providence, Rhode Island. The Waterplace park is lit up with bonfires along with boat processions and music. There are also food trucks if you are feeling hungry...
Continue reading → Tags : rhode island travel
In this tutorial, we will extract tweets from Twitter using python...
Continue reading → Tags : python
I was looking for a company to play ping pong. I found a table tennis meetup at Pig Pound Brewery at Greensboro, North Carolina. I drove hundred miles from Charlotte to reach the place which is a testimony to the fact that I really like the sport...
Continue reading → Tags : north carolina
Super Mario Odyssey is a 2017 video game has been voted as the one of the best Mario game ever made. The game is only available for Nitendo Switch. Luckily I end up playing the game on Windows nonetheless...
Continue reading → Tags : game
Dear Vishi, this is my daily log on Aug 30, 2022...
Continue reading → Tags : diary letters
Dear Vishi, this is my daily log on Aug 29, 2022...
Continue reading → Tags : diary letters
AWS Glue job are fully managed ETL service. Glue job uses hive-compatible metastore called Glue Data catalog. ..
Continue reading → Tags : aws glue
As I was walking down the aisle of a food mart, I was consumed with guilt about whether or not to buy a large can of coke. My waist is competing with inflation as both refused to halt their progress. I have thrown my weighing machine in the thrash as she refuses to lie at least once about my weight...
Continue reading → Tags : health drinks
Design an algorithm to serialize and deserialize a binary tree. There is no restriction on how your serialization/deserialization algorithm should work. You just need to ensure that a binary tree can be serialized to a string and this string can be deserialized to the original tree structure...
Continue reading → Tags : leetcode java python design
It's a just another day in twitter when you come across tweets disparaging Hinduism. "Hinduism is a veritable chambers of horrors..
Continue reading → Tags : hinduism caste
Dear Vishi, this is my daily log for July 11, 2022...
Continue reading → Tags : diary letters
Dear Vishi, this is my daily log for July 10, 2022...
Continue reading → Tags : diary letters
A sentence is a string of single-space separated words where each word can contain digits, lowercase letters, and the dollar sign '$'. A word represents a price if it is a sequence of digits preceded by a dollar sign...
Continue reading → Tags : leetcode java python string
I am an ardent fan of Tomb Raider game series. I grew up falling in love with Tomb Raider III. Much time swept away since I have tried any other game of this series. So finally I decided to try my hands on Rise of Tomb Raider. ..
Continue reading → Tags : game
Given a string s, sort it in decreasing order based on the frequency of the characters. The frequency of a character is the number of times it appears in the string...
Continue reading → Tags : leetcode java python heap
Amazon Redshift is fully managed warehouse service provided by AWS. The Amazon Redshift engine is a SQL-compliant, massively-parallel, query processing and database management system designed to support analytics workload...
Continue reading → Tags : python sql lambda function aws redshift
In python, everything is an object. So functons are also objects which can be passed around. A decorator is a function that receives a function and returns a function...
Continue reading → Tags : python
An interesting problem on leetcode to find minimum number of ways to pick up consecutive cards. We will start with a brute force algorithm that would exceed in time limit. Later we will improve upon this algorithm using hashmap...
Continue reading → Tags : leetcode java python hashmap
I am an ardent vim
user. A forked version of vim called neovim
recently caught my attention. It has more features like support for language server protocol
that provides auto-complete
, etc. LunarVim
provides neovim configuration files so that it behaves as an IDE...
Continue reading → Tags : vim neovim lunarvim
Windows Subsystem for Linux (WSL2) provides native Linux environment for Windows. It's great alternative to cygwin
which can't run native Linux apps. However WSL2 doesn't have out-of-box connectivity with internet once you connect with vpn
...
Continue reading → Tags : vpn wsl windows
I grew up in India with a diet of basmati rice and superstition. I have seen pedestrians freezing at the sight of a black cat crossing their path for fear of bad luck. Lemon and chilis hang in front of vehicles to ward off bad spirits. I fondly remember numerous advertisements proclaiming protection from evil eyes. Recently I stumbled upon an ad that refreshed my memories...
Continue reading → Tags : superstition rationalism python
After the outbreak of Covid-19 pandemic and Fall of Kabul, year 2022 was supposed to instill normalcy back into the world. However world looks more topsy-turvy than before with the advent of war between Ukraine and Russia...
Continue reading → Tags : ukraine afghanistan russia war
When you develop AWS lambda functions, you might feel the need to install additional python
libraries. This can be achieved using Lambda layers that can be included in any lambda function...
Continue reading → Tags : docker aws python
Lots of website have added dark themes
to their platform. Twitter also has a dark mode which I really love while reading at night. Also there are benefits of using dark mode for the eyes...
Continue reading → Tags : jekyll
You are given a 0-indexed binary array nums
of length n
. nums
can be divided at index i
(where 0 <= i <= n
) into two arrays (possibly empty) numsleft and numsright..
Continue reading → Tags : leetcode hashmap array java python
Badminton sport has a low learning curve unlike tennis. Even your granny can hit a birdie. I grew up playing badminton but decided to try my luck with tennis. "Playing tennis would be a cakewalk", I thought. However my hubris was soon deflated...
Continue reading → Tags : tennis recreation badminton sports
In this leetcode problem, we are asked to find the length of the longest string of characters in a provided string that does not contain repeating characters. In other words, in the string abcabcbb
the longest substring without repeating characters is abc
(with a length of 3)...
Continue reading → Tags : leetcode two pointers set string
One of the nifty feature in any code development is the ability to debug your application using break points. Submitting a Spark job while waiting for it to complete will waste a lot of time debugging. Spark jobs can be debugging with break points
and step over
and step into
and step out
commands...
Continue reading → Tags : spark pyspark docker vscode
"Marriages are made in heaven" is an old adage quite prevalent across all cultures. Whether heaven harbors any interest in the mortal affair has still scant empirical evidence. However, there is a rare marriage that not only invites heaven's fury but also is consummated by mutual suicide...
Continue reading → Tags : science annihilation matter antimatter audio
There are a total of numCourses courses you have to take, labeled from 0 to numCourses - 1. You are given an array prerequisites where prerequisites[i] = [ai, bi] indicates that you must take course bi first if you want to take course ai...
Continue reading → Tags : leetcode graph bfs java python
You are given a string s and an integer k, a k duplicate removal consists of choosing k adjacent and equal letters from s and removing them, causing the left and the right side of the deleted substring to concatenate together...
Continue reading → Tags : leetcode stack python java scala javascript
Today I walked a little further,
further than yesterday.
while my feet ache and plead,
I dragged 'em without paying any heed...
Continue reading → Tags : poetry friends audio
Questions involving the binary tree data structure are very popular in tech interviews, and can be challenging and varied! A binary tree is a data structure consisting of a collection of nodes (starting at a root node), where each node consists of a value (data), together with a directed edges to at most two nodes (the "left child" and "right child"), with the additional conditions that no two edges point to the same node and no edge points to the root. I recently solved an interesting problem on binary tree...
Continue reading → Tags : leetcode java python javascript scala
Ternary string is an interesting problem that could be solved using two pointers techniques. It's a convenient way to keep track of multiple indices. This helps in making decisions based on two values...
Continue reading → Tags : codeforces two pointers java python
It's one of the most popular questions on leetcode that seems very easy at first. Coin change is a classic dynamic programming problem. I will proceed with an obvious (albeit wrong) solution and subsequently proceed to an efficient correct solution...
Continue reading → Tags : leetcode dp java python
I was an intern working in Upstate New York. Public transport required hopping multiple trains & buses and was woefully tedious. I found some other interns who were willing to split the fare with me for Uber. Even a ride in Uber consumed more than two hours. Occasionally I used to steal a quick nap. After a siesta of a few hours, I had always woken up with a gaggle of laughter. My peers often pulled my leg, "You were snoring like a pig". However, I dismissed my faux pas as just a mere nuisance...
Continue reading → Tags : snoring sleep apnea diary letters audio
When the alarm clock breaks my slumber, I roll down on my bed, blindly crawling towards my alarm clock as if it was a bomb to diffuse it. After multiple snoozes, I relinquished my dreams and come to my senses. Gulping water after I wake up is my first activity. Next, I excuse myself to the bathroom for “nature call”. All living things from a simple bacteria to a giant dinosaur needs to perform two basic life function; eat and excrete...
Continue reading → Tags : virus diary letters audio
There's an interesting problem I recently solved on leetcode based on dynamic programming. My Github repository contains list of all problems that I have solved. I often start with a brute force approach without fretting about time complexity. Later I try to improve my algorithm for a better efficient solution...
Continue reading → Tags : leetcode dp java python
This is my first time visiting Mexico city, also known as CDMX. Initially I was scared to come here because of Narcos. However during my brief two weeks stay I have felt safe. With my limited Spanish, I decided to book an Airbnb experience for a bike tour...
Continue reading → Tags : cdmx mexico travel bike
Do you believe in ghosts? I did when I was a kid. I was infatuated with the paranormal. Sometimes I used to wander around desolate buildings with other kids concocting horror stories. I loquaciously gossiped about ghosts in school which earned me a sizeable audience. I was convinced that someday I would stumble upon an innocuous spirit that would instill some unearthly powers in me...
Continue reading → Tags : diary letters infrasound
AWS CDK is a great framework to programmatically deploy cloudformation stack. If you are unfamiliar with AWS CDK, I would recommend first to check out Getting started with AWS CDK...
Continue reading → Tags : aws cdk cloudformation typescript tutorial
Cloudformation service in AWS allows you to describe an entire set of resources required to make a pipeline. The cloudformation template can be described in JSON or YAML format. Updating the cloudformation template was not a pleasant experience. I wanted to discover alternative ways to generate cloudformation template programmatically...
Continue reading → Tags : aws cdk cloudformation typescript python
What’s a nationality? The idea of the nation-state is pretty modern. Ancient lands were usually under the suzerainty of kings & queens. While most emperors spilled blood to expand their kingdom, the common man was seldom concerned about borders...
Continue reading → Tags : diary letters
If you are not living under a cave, you probably have already heard about carcinogens. News is often awash with headlines alerting perils of carcinogens. In a nutshell, these are substances that have the potential to cause cancer. Not all carcinogens cause cancer. Not all cancer is caused by carcinogens. Cancer is a complicated group of diseases. Of course, it’s not my forte to expound on the subject of cancer. However, we should try to understand how carcinogens are identified and what we should do to protect ourselves...
Continue reading → Tags : diary letters carcinogen meditation
Today I tried to meditate again. I used Insight Timer app for background sound. However I think I'll just stick to Youtube as it has more varieties. I struggled for 20 minutes sitting cross-legged as my mind wandered in the labyrinth of thoughts. I guess it will take more practice to hone my skill. Have you ever wondered how monks can meditate for countless hours or days?..
Continue reading → Tags : diary letters
Did you remember we watched The Time Machine movie together? The protagonist loses his fiancée when a mugger kills her. He then builds a time machine to travel back in time to save her. Of course multiple movies have been made romanticizing the concept of time machine...
Continue reading → Tags : time diary letters
Today the sleep was better. Yesterday I was sleep deprived. Hunger is the best ingredient to make any food delicious. Likewise a sound sleep is like a manna from heaven
for me...
Continue reading → Tags : diary letters
I didn't have proper sleep today. I could barely keep my eyes open. Empty stomach and a heavy mind is a disaster for sound sleep. Yesterday I was brooding too much while trying to sleep. I guess I need to filter noises in my mind. Proper sleep is the basic physiological need in Maslow's pyramid. I guess it's a blessed day not to have a insomnia...
Continue reading → Tags : diary letters
Recently I finished watching web-series Scam 1992. It's based on story of Harshad Mehta, a famous Indian stockbrocker who made fortunes in stocks. Despite his iconic success & failure, the series rekindled my interest in world of "stocks". I guess the famous dialogue "Risk Hai Toh Ishq Hai" has stuck with me...
Continue reading → Tags : stocks python finance money google selenium
I am currently reading The Emperor of Maladies. This is a fascination book where Siddhartha Mukherjee not only educate its readers about cancer disease but also shares interesting tidbits. Werner Bezwoda was an infamous oncologist who fudged data about bone marrow transplant in women with metastatic breast cancer...
Continue reading → Tags : pseudoscience cancer breast cancer bone marrow
Poetry is a great dependency management tool in python. It's better than managing a flat file like requirements.txt
. There are also other great tools like pipenv. However I found poetry much simpler in resolving dependencies...
Continue reading → Tags : windows python poetry bug
Dynamodb is a great NoSQL service by AWS. One of the most common use case is to export data to s3. There are multiple ways to export data to s3. For this tutorial we will leverage lambda function to achieve our goal...
Continue reading → Tags : aws lambda function dynamodb s3
I recently came across a Youtube video of a famous Indian actress Genelia Deshmukh promoting homeopathic products. The Bollywood couple, Riteish and Genelia Deshmukh, has invested in Welcome Cure, a Homeopathy treatment service platform. Science has repeatedly dismissed homeopathy as quakery or at best placebo, but that has not deter companies or Indian government to continue to fund and research in homeopathy...
Continue reading → Tags : pseudoscience homeopathy ayurveda india audio
This is my Part 1 of the review of Carl Sagan's book, Demon-Haunted World. This is more of my commentary rather than a review of the book.
I have begun to realize how many posts on Facebook, Whatsapp, etc contains pseudoscience and misinformation. Few posts are easy to debunk. Magic water curing cancer is a no-brainer. However other posts are too meticulous to debunk. I thought it might be fruitful for me as a layman to learn critical & skeptical thinking from a famous astrophysicist, Carl Sagan...
Continue reading → Tags : pseudoscience books review religion audio
I was looking to write a scala script to fetch large data from Oracle database. I was earlier using the Alteryx software to fetch data (around 1 million rows) from oracle which took around 7 minutes. Licensed softwares like Alteryx or Informatica, etc are great, but I was looking for a free solution...
Continue reading → Tags : jdbc scala oracle database
It feels great to sleep at night. I have a small but a cozy room. It’s not lavish or splending. It doesn’t even hoard much furniture. However it’s as peaceful as it can get...
Continue reading → Tags : sleep opinion
Jobs failed! Screamed an automatic failure alert in email inbox. Existing python scripts were failing in the server which fetched data from Oracle database. I wondered if the credentials had changed...
Continue reading → Tags : kerberos projects python docker oracle database
India is currently witnessing multiple protests against the Citizenship Amendment Act (CAA) passed by the BJP (the ruling party of India). In a nutshell it fast tracks citizenship to few religiously persecuted refugees like Hindu, Sikh, Jain, Buddhist, Christian and Parsi from neighbouring countries...
Continue reading → Tags : faiz india urdu bjp nationalism caa nrc npr
Graph are data structures made of vertices & edges. There are lots of interesting problems that can be solved using graphs. Part 1 covers the basic for creating a template for graph data structure...
Continue reading → Tags : graph java implementation
I recently came across a simple telephonic interview problem. The problem was to sort an array recursively. But even numbers need to be placed before odd numbers. At first glance it was obvious that it was a simple case of implementation of merge sort...
Continue reading → Tags : algorithm java code
When I was a kid, I was perturbed at the outbreaks of new diseases. There was no Swine Flue before twenty first century or HIV before tenth century. Why nature was hell-bent in pulling diseases out of a hat everytime humans make progress in science?..
Continue reading → Tags : biology evolution antibiotics
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists...
Continue reading → Tags : programming leetcode code
I wanted to decode an old debate that I saw on ndtv. It was about a controversy erupted by the comments of a junior Indian education minister, Satyapal Singh. He is India's Minister of State for Human Resource Development. He had claimed that evolution is "scientifically wrong" because he never saw an ape turning into human being...
Continue reading → Tags : pseudoscience evolution india ndtv news debate
Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero...
Continue reading → Tags : leetcode two pointers java
I might slip into a cesspool of hate in criticizing India’s most successful movie, Baahubali 2: The Conclusion. One of my Telugu colleague eyes beamed with pride when she told me how she watched first day first show & how this movie has propelled Telugu movies in the same league of Hollywood...
Continue reading → Tags : baahubali movies
Recently, my roommate, had his job contract terminated. He found a new job in another city which meant I had to hunt for a new roommate. So I quickly posted an ad on Sulekha, a popular website in USA among Indians...
Continue reading → Tags : rent scam
The sun’s rays had already crept through my window & drenched my room with light. Sleep taste sweetest when you resist it. It is but with a heavy heart that I relinquish my sleep & pull myself together...
Continue reading → Tags : meditation opinion
On a brisk day, I was carpooling with my manager. Amidst the roaring traffic, was the familiar melodious voice on the radio. We have grown accustomed to the RJ who played songs that was music to our ears. As my manager revved up the engine, with the occasional drip in audio of the AM, often we broke into conversation...
Continue reading → Tags : india pakistan cow vigilantism
It was just another day in Bangalore. I caught the bus from the /Kormangala bus depot. Amid exhausting heat & nudging elbows, I somehow managed to grab a seat in the bus. Securing a seat in the Indian bus during peak time is considered a fortune. This often attracts resentful eyes. However my Indian genes have made me immune to both pani puri & judgment...
Continue reading → Tags : story india fiction bangalore sci-fi
Users with the newest versions of Mac OS X (Mountain Lion or later) no longer see the option of web sharing in System Preferences->Sharing
. If you are a web developer / designer, you might find this change unpleasant. However Mac OS X still includes Apache HTTP version.
Testing web sites on your personal computer is indispensable for web developers / designers. Enabling php
on Mac OX S is plain and easy. ..
Continue reading → Tags : macos php
Browsers have made browsing insanely easy. Toolbar fetches webpage magically. However, under the hood, lots of requests
are exchanged. These requests are based on REST
architecture.
What is REST? REST is REpresentational State Transfer. Loosely speaking it defines how resources are exchanged based on item of request. Two most common HTTP Request Methods are POST
and GET
. Using tshark, we can see the headers exchange as you browse the web...
Continue reading → Tags : tshark rest http get post
I finally divorced Windows
soon after I fell in love with Linux. Ubuntu was my first love. I met her on Distrowatch
. But she spoke no English. So I spent hours gawking at her sleaky terminal trying to learn her language, bash
...
Continue reading → Tags : arch linux install
Any deterministic general sorting algorithm has average case time complexity $ O(nlogn) $ . However, certain sorting algorithm can run faster in $ O(n) $ but with limitation. Instead of comparision-based sort, each element is looked individually by its value. Radix sort is one fine example of integer sorting...
Continue reading → Tags : lsd radix sort sorting cplusplus
Imagine a sunset, with a tired sun sinking over a meadow. The chirping of birds steals your attention as they return to their homes. And while the sun disappears, you sink back and relish your sourrounding...
Continue reading → Tags : programming general
"If you've got nothing to hide, you've got nothing to fear". This is the most common retort used by governments to espouse Mass surveillance. They do it in the pretext of security. But even if you're not a fugitive, you have the right to protect your privacy...
Continue reading → Tags : privacy surveillance snooping
"India’s Daughter”, a documentary on Gang rape of 2012 has been officially banned. The Indian government went all gun to arrest the release of the documentary in India & abroad. BBC, Google, Youtube have all been sent legal notices to comply with the government’s diktat. Congratulations! We have shown the world that we will silence anything that will make us uncomfortable...
Continue reading → Tags : bbc india ban
Different religion tells us about plethora of beautiful tales about the genesis of humans. We humans, like any other trivial species, descended not from heaven (sigh!) but due to mitosis in single cell organisms...
Continue reading → Tags : code cryptography cipher monoalphabetic
Often we meet,
Avoiding prying eyes secretly,
In between stretches a velvet sky,
Only gulf in between us apparently...
Continue reading → Tags : poetry romance moon audio
I was lying around on a secluded meadow. Under the open sky I gazed at the clouds scudding by. Suddenly it seemed that I was drifting away. A scathing sound began to wreak the whole place. And the mischievous alarm pulled me out of my dreams...
Continue reading → Tags : god religion science audio
I walked miles on my feet and hope,
against all weather, people and slope,
But after some distance I could not keep,
enough pace as the way was steep...
Continue reading → Tags : poetry happiness
I once complained to my friend of his desktop on his computer. His desktop was a tangled mess of icons. "It's easier this way.", he chuckled, "I can quickly find all the softwares I need.". I showed him my desktop which was spick and span."Doesn't it consumes time in finding the softwares you need?", he asked...
Continue reading → Tags : emacs editor
It was just another day in Gurgaon. The hot scorching sun was parading the city. The inescapable life of riding with the autowalas is the common sight of this concrete jungle. Though I am a FOSS enthusiast, my first job landed me to just another India's IT company. I vividly remember the countless occasions when ViM saved my day...
Continue reading → Tags : vi vim editor code
Once a friend of mine asked if I could Hack. I asked him what he meant by hacking. Bemused at such a lame question he replied, "Don't you know what hacking is?". On insisting he reluctantly explained, "breaking into website or stealing passwords of Facebook, etc". I was crestfallen at the rampant misconception about hacking...
Continue reading → Tags : hacking hackers code
As I lay on my cosy bed,
a hanging moon did my curtains lit,
under my pillow sank my weary head,
and slumber weaved its sleepy knit...
Continue reading → Tags : poetry sleep
The Debian claimed to be the Universal Operating System. Impressed by the stability and the community, I decided to switch to Debian. Earlier I used Fedora which handled all the hassles for me. Unlike Fedora, I had manually configure it to connect to the internet. But I soon realized it was not as difficult as it earlier seemed to be...
Continue reading → Tags : debian usb modem
After a ruckus, the government agreed to roll back the proposed decision to increase FDI in retail sector. This could have paved way for the behemoth giants like Walmart to enter India. Indian Inc. was largely disappointed with the lack of much needed retail reform while the opposition parties including the local shopkeeper rejoiced over the fear of Walmart...
Continue reading → Tags : india walmart fdi