Azure Spring Apps is a fully managed service from Microsoft
(built in collaboration with VMware), focused on building and
deploying Spring Boot applications on Azure Cloud without
worrying about Kubernetes.
And, the Enterprise plan comes with some interesting features,
such as commercial Spring runtime support, a 99.95% SLA and some
deep discounts (up to 47%) when you are ready for
production.
You can also ask questions and leave feedback on the Azure
Spring Apps GitHub page.
Partner – Aegik AB – NPI EA (cat=JPA)
Slow MySQL query performance is all too common. Of course
it is. A good way to go is, naturally, a dedicated profiler that
actually understands the ins and outs of MySQL.
The Jet Profiler was built for MySQL only, so it can do
things like real-time query performance, focus on most used tables
or most frequent queries, quickly identify performance issues and
basically help you optimize your queries.
Critically, it has very minimal impact on your server's
performance, with most of the profiling work done separately - so
it needs no server changes, agents or separate services.
Basically, you install the desktop application, connect to your MySQL
server, hit the record button, and you'll have results
within minutes:
Accelerate Your Jakarta EE Development with Payara Server!
With best-in-class guides and documentation, Payara
essentially simplifies deployment to diverse
infrastructures.
Beyond that, it provides intelligent insights and actions to
optimize Jakarta EE applications.
The goal is to apply an opinionated approach to get to
what's essential for mission-critical applications - really solid
scalability, availability, security, and long-term support:
The AI Assistant to boost Boost your productivity writing unit
tests - Machinet AI.
AI is all the rage these days, but for very good reason. The
highly practical coding companion, you'll get the power of
AI-assisted coding and automated unit test generation.
Machinet's Unit Test AI Agent utilizes your own project
context to create meaningful unit tests that intelligently aligns
with the behavior of the code.
And, the AI Chat crafts code and fixes errors with ease,
like a helpful sidekick.
Get non-trivial analysis (and trivial, too!) suggested right
inside your IDE or Git platform so you can code smart, create
more value, and stay confident when you push.
Get CodiumAI for free and become part of a community of
over 280,000 developers who are already experiencing improved and
quicker coding.
Looking for the ideal Linux distro for running modern Spring
apps in the cloud?
Meet Alpaquita Linux: lightweight, secure, and powerful
enough to handle heavy workloads.
This distro is specifically designed for running Java
apps. It builds upon Alpine and features significant
enhancements to excel in high-density container environments while
meeting enterprise-grade security standards.
Specifically, the container image size is ~30% smaller than
standard options, and it consumes up to 30% less RAM:
Yes, Spring Security can be complex, from the more advanced
functionality within the Core to the deep OAuth support in the
framework.
I built the security material as two full courses - Core and
OAuth, to get practical with these more complex scenarios. We
explore when and how to use each feature and code through it on
the backing project.
DbSchema is a super-flexible database designer, which can
take you from designing the DB with your team all the way to
safely deploying the schema.
The way it does all of that is by using a design model, a
database-independent image of the schema, which can be shared in a
team using GIT and compared or deployed on to any database.
And, of course, it can be heavily visual, allowing you to
interact with the database using diagrams, visually compose
queries, explore the data, generate random data, import data or
build HTML5 database reports.
Slow MySQL query performance is all too common. Of course
it is. A good way to go is, naturally, a dedicated profiler that
actually understands the ins and outs of MySQL.
The Jet Profiler was built for MySQL only, so it can do
things like real-time query performance, focus on most used tables
or most frequent queries, quickly identify performance issues and
basically help you optimize your queries.
Critically, it has very minimal impact on your server's
performance, with most of the profiling work done separately - so
it needs no server changes, agents or separate services.
Basically, you install the desktop application, connect to your MySQL
server, hit the record button, and you'll have results
within minutes:
Creating PDFs is actually surprisingly hard. When we
first tried, none of the existing PDF libraries met our needs. So
we made DocRaptor for ourselves and later launched it as one
of the first HTML-to-PDF APIs.
We think DocRaptor is the fastest and most scalable way to
make PDFs, especially high-quality or complex PDFs. And as
developers ourselves, we love good documentation, no-account trial
keys, and an easy setup process.
Cactoosis a library of object-oriented Java primitive types.
In this tutorial, we’ll take a look at some of the classes available as a part of this library.
2. Cactoos
The Cactoos library’s repertoire is pretty rich, ranging from string manipulation to data structures. The primitive types and their corresponding methods offered by this library are similar to the ones provided by other libraries like Guava and Apache Commons but are more focused on object-oriented design principles.
2.1. Comparison With Apache Commons
Cactoos library is equipped with classes that provide the same functionality as the static methods that are part of the Apache Commons library.
Let’s take a look at some of these static methods that are part of the StringUtils package and their equivalent classes in Cactoos:
Static method of StringUtils
Equivalent Cactoos class
isBlank()
IsBlank
lowerCase()
Lowered
upperCase()
Upper
rotate()
Rotated
swapCase()
SwappedCase
stripStart()
TrimmedLeft
stripEnd()
TrimmedRight
More information on this can be found in the official documentation. We’ll take a look at the implementation of some of these in the subsequent section.
3. The Maven Dependency
Let’s start by adding the required Maven dependency. The latest version of this library can be found on Maven Central:
As discussed earlier, Cactoos library provides an IsBlank class to check for null or empty String:
new IsBlank(new TextOf(testString)) != null;
5. Collections
This library also provides several classes for working on Collections. Let’s take a look at a few of these.
5.1. Iterating a Collection
We can iterate a list of strings, using the utility class And:
new And(
new Mapped<>(
new FuncOf<>(
input -> System.out.printf("Item: %s\n", input),
new True()
),
strings
)
).value();
The above method is a functional way of iterating over the Strings list that writes the output to the logger.
5.2. Filtering a Collection
The Filtered class can be used to filter a collection based on specific criteria:
public Collection<String> getFilteredList(List<String> strings) {
return new ListOf<>(
new Filtered<>(
s -> s.length() == 5,
strings
)
);
}
Let’s test this method by passing in a few arguments, only 3 of which satisfy the criteria:
CollectionUtils obj = new CollectionUtils();
List<String> strings = new ArrayList<String>() {
add("Hello");
add("John");
add("Smith");
add("Eric");
add("Dizzy");
};
int size = obj.getFilteredList(strings).size();
assertEquals(3, size);
Some other classes for Collections provided by this library can be found in the official documentation.
6. Conclusion
In this tutorial, we have looked at Cactoos library and some of the classes it provides for string and data structure manipulation.
In addition to these, the library also provides other utility classes for IO operations and also Date and Time.
As usual, the code samples used in this tutorial are available over on GitHub.
Partner – Bellsoft – NPI EA (cat = Spring)
Looking for the ideal Linux distro for running modern Spring
apps in the cloud?
Meet Alpaquita Linux: lightweight, secure, and powerful
enough to handle heavy workloads.
This distro is specifically designed for running Java
apps. It builds upon Alpine and features significant
enhancements to excel in high-density container environments while
meeting enterprise-grade security standards.
Specifically, the container image size is ~30% smaller than
standard options, and it consumes up to 30% less RAM:
Creating PDFs is actually surprisingly hard. When we
first tried, none of the existing PDF libraries met our needs. So
we made DocRaptor for ourselves and later launched it as one
of the first HTML-to-PDF APIs.
We think DocRaptor is the fastest and most scalable way to
make PDFs, especially high-quality or complex PDFs. And as
developers ourselves, we love good documentation, no-account trial
keys, and an easy setup process.
Slow MySQL query performance is all too common. Of course
it is.
The Jet Profiler was built entirely for MySQL, so it's
fine-tuned for it and does advanced everything with relaly minimal
impact and no server changes.
Basically, write code that works the way you meant it to.
Partner – Machinet – NPI EA (cat = Testing)
AI is all the rage these days, but for very good reason. The
highly practical coding companion, you'll get the power of
AI-assisted coding and automated unit test generation.
Machinet's Unit Test AI Agent utilizes your own project
context to create meaningful unit tests that intelligently aligns
with the behavior of the code.