Using an ONNX Resnet model in Java

Hello everyone! 👋 This is a follow-up post to the previous one, long story short I started taking the course from fast.ai to learn more about Deep Learning. I’ve built a simple Image Tagging model using the Resnet architecture (don’t worry about the paper I did not read it, GitHub Copilot suggested it while writing this blog post). FastAI is a high-level Python library that allows you to train complex ML models really fast and efficiently....

July 4, 2023 · 7 min · Denis Nutiu

HTTPClients are reusable

Hi 👋, I wanted to write this article to tell you that instantiating a HttpClient class is often a costly operation. If you have a method that does something like: public class Main { static void myMethod() { HttpClient client = new HttpClient() // do stuff } } You should refactor it ASAP. Either move the HttpClient into the class and perhaps ensure that the class is a Singleton or retrieve the HttpClient instance using an Object Pool pattern like the HttpClient class from System....

June 23, 2022 · 1 min · Denis Nuțiu

How I got my PR merged into Apache Flink

Hi 👋 This is a short story on how I got my pull request merged into Apache Flink. It started with the need to set CPU and Memory limits to Flink jobs running under Kubernetes. The first thing I did was to join the user mailing list and ask around if someone has encountered the issue and if there’s a solution to it. The people from the mailing list were very friendly and they pointed me to an existing ticket on the Flink jira board, which was exactly what I needed....

February 13, 2022 · 2 min · Denis Nuțiu

My Spring Boot notes

Lately I’ve been busy with university, work and learning something new. I’ve started my programming journey when I was in high school with Python, I didn’t have any informatics classes so I had to study on my own. I confess that I didn’t really understood how Python works, until I’ve tried Java. Python had a dynamic type system and it was very confusing for a newbie like me. After finishing Introduction to Computing with Java course from HKUST on edX I started to get a better grasp on programming....

October 7, 2018 · 2 min · Denis Nuțiu