Andrez Segovia

Hi there.

This is my personal site, I created it to fulfill the need of having my own place to drop notes, thoughts, pictures, or whatever I want to share on the internet. I like the concept of Digital Gardening and that’s the intention I have with this site, so you probably are going to find publications that may not have sense at all, but they do for me. I also believe in the idea of learning in public, so you are going to find a lot of “Today I Learned” (TIL) kind of notes which are short publications containing small fragments of information about something new I’ve learned.

I work as a software engineer and I have been doing so for about 10 years now, mainly focused on the backend, but I have done some frontend stuff too. I also have other interests that I explore in my free time such as reading books, writing, learning English, and exercising.

Feel free to look around and I hope you find something useful.

Form Param Request Matching with WireMock

The following is an example of how to use the withFormParam method to customize the response of a stub based on the value of a from parameter.

The @DirtiesContext Spring Annotation

In some test scenarios, a Spring Bean can become corrupted, causing other test scenarios to fail. To prevent this, we can annotate a test class or test method with @DirtiesContext, which tells the Spring Framework that the ApplicationContext is dirty, forcing the rebuilding of the Spring container and creating a new bean instances.

Working with Beans in Spring Framework

A JavaBean is a standard Java class with getter/setter methods, a no-arg constructor, and is serializable. And a Spring Bean is any Java object managed by Spring and can be automatically injected into other components. The Spring Dependency injection allows Spring to manage and inject beans where needed.

March 27, 2025

I’ve been learning more about testing spring boot application. I had tested spring boot applications before, but I had only used some basic features. Now, I would like to go deeper to explore what interesting things can be done with it.

Validate the arguments passed to a method

The Mockito framework has the ArgumentCaptor class that can be use to validate the arguments passed to a mocked method.

Formatting JSON returned by cURL in the terminal

Install the jq package:

macOS:

brew install jq

Linux:

sudo apt-get install jq

How to use it:

Jrnl CLI for Note-Taking

A Single Text File Is My Productivity Hack - Alejandro Garcia

My Simple Knowledge Management and Time Tracking System - Henrik Warne

Why I Love Coding - Henrik Warne

The Importance of a Brag Document

Julia Evans suggests keeping a document with all the work we’ve done —she calls it a Brag Document— to share with our managers, making their job easier during performance evaluations.

How To Use Apollo Kotlin in Java Projects

The article describes how to use Apollo Kotlin in Java projects.

The differences between List.of and Arrays.asList

This StackOverflow answer explains the different between List.of and Arrays.asList.

Find All Letters Event Grave And Acute Ones With a Regular Expression

String value = "a Á á É é Í 8 . - ? í Ó ó Ú ú ü / ! ¿";  
  
Stream.of(value.split("")).filter(s -> s.matches("\\p{L}"))  
        .forEach(System.out::printf);

//ÁaáÉeéÍiíÓóoOÚúü

The regular expression uses a Unicode character class escape with a General category property for filter only the letters.

Get flat boards EVERY TIME with this simple process. (Handtool stock-prep.) - Rex Krueger

Small Techonology Principles - small-tech.org

Sharpening and Setting the Bench Plane - Paul Sellers

Complete course on how to use a hand plane, ideal for beginners - Carpinteria Chavez

How to make square stock straight, smooth and square (stock preparation part 1) - Paul Sellers

What is Japanese Woodworking - An Introduction - Studio No Ha

An Introduction to the IndieWeb - Chris Aldrich

Getting Started - IndieWeb

Taking Back The Web

[10:59] Where Jeremy talks about the disadvantages of using platforms such as FaceBook, Instagram, or Twitter.

The Small Web

On the Big Web, you never own your own home. You must rent your home from Megacorps. Most often, you don’t have to pay for your home using money. You pay for it by forfeiting your privacy, freedom of speech, and your other human rights. Collectively, we pay for it by forfeiting a democratic future.1

The Web Revival

Surfing the web is about going on an adventure, it’s about clicking links and seeing where they go. You won’t find Web Revival sites on typical search engines, you won’t find them on social media sites and no algorithm will pick them out for you. To surf the Web Revival, you start on one site, you find links and you follow the trail; be brave, explore, keep going, keep going!1