-
Enterprise Java
Custom HTTP Header with the HttpClient
A quick guide to set custom HTTP Header in Apache HTTPClient request. On HttpRequest call setHeader() method to set HttpHeaders…
Read More » -
Core Java
Java UnknownHostException – Invalid Hostname for Server – How to Fix It?
A quick guide to An UnknownHostException and it is thrown if a java.net.UnknownHostException occurs while creating a connection to the…
Read More » -
Enterprise Java
HttpClient 4 API – Get the Status Code -getStatusLine().getStatusCode() Example
A quick guide to get the status code in the HttpClient API. getStatusLine().getStatusCode() Example and related errors. 1. Introduction In…
Read More » -
Enterprise Java
Encrypt with OpenSSL, Decrypt with Java, Using OpenSSL RSA Public Private Keys
Abstract In 2017 I wrote a 3 part series on choosing the best hashing and encryption algorithms. While doing the…
Read More » -
Core Java
How to process images and videos within Java JVM
Processing of images – let alone videos – within the Java JVM has always been a challenging task. ImageIO classes have come…
Read More » -
Software Development
[MEGA DEAL] Network, Security & Ethical Hacking: The Ultimate Cybersecurity Certification Bundle (52%)
Your 28-Hour Roadmap as an Ultimate Security Professional — Master Network Monitoring, PenTesting, and Routing Techniques & Vulnerabilities Hey fellow…
Read More » -
Core Java
7 Examples to Read File into a byte array in Java
Hello guys, Java programmers often face scenarios in real-world programming, where they need to load data from a file into…
Read More » -
Core Java
Mockito Matchers Precedence
This post is opinion. Let’s look at the verify method in Mockito for testing in Java. Example: verify(myMock).someFunction(123) – expects…
Read More » -
Software Development
The Library Paradox
I’ve started a few new projects recently, and faced a lot of bootstrap effort. Tricks of the trade, like efficiently…
Read More »