IntelliJ

Avoiding Wildcard imports in Java/Kotlin with IntelliJ

Tagged , Leave a Comment on Avoiding Wildcard imports in Java/Kotlin with IntelliJ

What is a wildcard import or a star import? When you want to import multiple classes from the same package like this: Java has an option to combine them into a single […]

READ MORE

HTML

First look at HTML

Tagged , , Leave a Comment on First look at HTML

HTML is used to feed the content on the web page or web application. HTML = content. HTML is not used for styling the page if you want to style then you […]

READ MORE

HTML / Web Development

How to run an HTML file?

Leave a Comment on How to run an HTML file?

Many modern editors are available to create and modify web pages. But we recommend using simple editors like Notepad (windows) and Textedit (Mac). How to open Notepad in windows? Open start and […]

READ MORE

React

React: How to use Apollo with ‘Union Types’ in GraphQL

Tagged Leave a Comment on React: How to use Apollo with ‘Union Types’ in GraphQL

Apollo is one of the most popular React library to work with GraphQL APIs. However they don’t have native support when your APIs contain union types. Let’s look at an example API […]

READ MORE

Spring Boot

Fixing slow Bcrypt and BasicAuthenticationFilter.doFilter

Tagged Leave a Comment on Fixing slow Bcrypt and BasicAuthenticationFilter.doFilter

I recently investigated and fixed a performance issue with user authentication in our Spring Boot based API service. Our users started complaining about random 504s from our service. Looking at our thread […]

READ MORE

CI/CD

Jenkinsfile – Cheat sheet, Examples & References

Tagged Leave a Comment on Jenkinsfile – Cheat sheet, Examples & References

All of these examples were tested with the ‘Multibranch Pipeline’ type jobs. This may not work with other types of jobs in Jenkins. Validate Jenkinsfile for syntax Navigate to the directory which […]

READ MORE

PHP

Vagrant Remote Debugging – Xdebug 3 & IntelliJ or PHPStorm

Tagged , , Leave a Comment on Vagrant Remote Debugging – Xdebug 3 & IntelliJ or PHPStorm

Debugging is one of the most efficient ways to investigate an unexpected behaviour. This post details how to setup a debugger for a PHP application running in a vagrant machine via your […]

READ MORE

Productivity

iTerm2 – Clear scrollback automatically on a schedule

Tagged , Leave a Comment on iTerm2 – Clear scrollback automatically on a schedule

iTerm2 is my default terminal and have been using it for close to 8 years now. It is highly customizable and has API support for hackability. I was using it today to […]

READ MORE