Latest Blog postings

24

Nov 16

24. November 2016

Compile Time Speed GWT 2.8.0 vs. TeaVM 0.4.3

By mirkosertic / Java

Some years ago I wrote a JavaFX based Game auhoring system. It was also written to be ported to different...

Read More

17

Jun 16

17. June 2016

How to remove the Maven primary artifact during install and deploy phase

By mirkosertic / Java

Sometimes we use Maven “war” packaging and add the RPM Plugin to create a rpm which contains the project primary...

Read More

1

Feb 16

1. February 2016

A very simple Polymer Web Component

By mirkosertic / Architecture & Design

Web Components are a very amazing new feature of HTML5. Google released its Polymer project which adds Web Components support...

Read More

24

Jan 16

24. January 2016

How to schedule Jobs in a Java CDI Environment

By mirkosertic / Java

Often we need to schedule Jobs. Standard Java CDI does not have a build in Job Scheduler feature. But this...

Read More

29

Dec 15

29. December 2015

How to download Maven artifacts with Maven >=3.1 and Eclipse Aether

By mirkosertic / Java

Starting with Maven 3.1, Sonatype Aether(github.com/sonatype/sonatype-aether) was replaced with Eclipse Eather(www.eclipse.org/aether). Now, sometimes we need do download additional Artifacts from...

Read More

3

Apr 15

3. April 2015

A JavaFX based LUA editor

By mirkosertic / Java

One of my favorite projects is my JavaFX based Gameengine. It has a flexible entity component system, supports WYSIWYG game...

Read More

25

Mar 15

25. March 2015

Tuning HTML5 Canvas.fillText()

By mirkosertic / Java

Two years ago I wrote a Java based GameEngine. I used technologies such as GWT and TeaVM to transpile the...

Read More

18

Dec 14

18. December 2014

GWT vs. Dragome vs. TeaVM for Game Programming

By mirkosertic / Java

Last year I wrote a cross platform game engine. It used a JavaFX based Game Auhoring System and had a...

Read More

31

Oct 14

31. October 2014

How to set the HTML base Tag in a JSP page

By mirkosertic / Java

Sometimes we have to set the HTML base Tag from within a JSP page. For this purpose, we have to...

Read More

13

Jun 14

13. June 2014

How to create user and eye friendly scannable Log4J log files

By mirkosertic / Java

Often we are writing logs files for our program execution. The logs are sometimes hard to parse, we have to...

Read More

15

Nov 13

15. November 2013

A JavaFX based Game Authoring System

By mirkosertic / Java

A few weeks ago I decided to enhance my knowledge in game coding, so I bought two very interesting books:...

Read More

5

Nov 13

5. November 2013

Java Properties reinvented

By mirkosertic / Java

Recently i stumbled across the Owner Library(owner.aeonbits.org). Using this small piece of technology, usage of Java property files can be...

Read More

13

Oct 13

13. October 2013

Java Array Iterator Performance

By mirkosertic / Java

Lets check a very simple example: we want to fill a multi-dimensional array with values. What is the fastest way...

Read More

3

Oct 13

3. October 2013

Java SE Context and Dependency Injection with Java EE support

By mirkosertic / Architecture & Design

Java CDI(Context and Dependency Injection) JSR-299 is available on Java EE application servers, but CDI(Weld is the reference implementation) is...

Read More

1

Oct 13

1. October 2013

How to create JUnit assertions from running applications

By mirkosertic / Java

JUnit is a cool and powerful framework for unit test creation. But there is a drawback: we need to create...

Read More

22

Sep 13

22. September 2013

Domain-driven Design with JSF, EJB and CDI

By mirkosertic / Architecture & Design

Based on my previous post about Domain-driven Design Architecture i want to offer some implementation details about how to build...

Read More

21

Sep 13

21. September 2013

Bootstrapping Weld CDI from command line with Java SE

By mirkosertic / Java

It is possible to use CDI and Weld in a Java command line program. There are several options to bootstrap...

Read More

5

Sep 13

5. September 2013

OpenGL2 on Android example

By mirkosertic / Java

The last days i fiddled a bit with OpenGL 2 on Android. The Android OpenGL tutorials are a bit outdated,...

Read More

5

Sep 13

5. September 2013

Comparison of String iterator performance

By mirkosertic / Java

Often we need to iterate over a String. Java gives use several options. We can either use a simple loop...

Read More

27

Jul 13

27. July 2013

Realtime face detection on Android using OpenCV

By mirkosertic / Java

There is a cool computer vision library called OpenCV available. Using OpenCV, we can do stuff like object detection, feature...

Read More

9

Jul 13

9. July 2013

High performance Android handwriting

By mirkosertic / Java

For one of my Android Apps Leas Painting App i needed to implement a sketching and handwriting functionality. The user...

Read More

26

Jun 13

26. June 2013

Method validation with JSR303 and AspectJ

By mirkosertic / Java

Hibernate Validator since version 4.2 supports method validation. For instance consider the following Java code: [crayon-5844b39e79172614169260/] Wouldn't it be cool...

Read More

23

May 13

23. May 2013

Comparison of JAXB XML and JSON Serialization Performance

By mirkosertic / Java

Once i tried to figure out the difference between JAXB XML and JSON Java Object serialization performance. I wanted to...

Read More

7

May 13

7. May 2013

Building Portals with JavaFX, HTML5 and some Microdata

By mirkosertic / Java

Often we need to integrate different applications. This can be done at different integration levels, like integration using the database,...

Read More

2

May 13

2. May 2013

JavaFX Custom Controls or WebView with D3.js?

By mirkosertic / Java

Often we need to visualize complex data in a fancy way. The core JavaFX controls are sometimes capable to do...

Read More

26

Apr 13

26. April 2013

A JavaFX based Desktop Search Engine

By mirkosertic / Java

Microsoft Windows search is not fast, and it also does not give us good search results. So i thought about...

Read More

26

Apr 13

26. April 2013

Google Style Query Parser for Apache Lucene

By mirkosertic / Java

I needed a query parser for Apache Lucene supporting Google style queries. Basically the following searches should be supported: mirko...

Read More

22

Apr 13

22. April 2013

Domain-driven Design Example

By mirkosertic / Architecture & Design, Java

I saw a lot of IT projects in the past. Some of them were pretty good designed, others were really...

Read More

13

Apr 13

13. April 2013

Adding HTML5 Microdata to DokuWiki

By mirkosertic / Architecture & Design

Microdata overview HTML5 is the new standard for webpage markups. It comes with some pretty cool new features like media...

Read More

8

Apr 13

8. April 2013

Implementing State Machines with Java Enums

By mirkosertic / Java

Often we need to implement State Machines to encapsulate object behavior depending on a given object state. This can be...

Read More

30

Mar 13

30. March 2013

MVC revised or what are the alternatives?

By mirkosertic / Architecture & Design

Pure MVC The Model View Controller pattern became a de-facto standard for implementing user interfaces or other kind of interaction...

Read More

26

Mar 13

26. March 2013

Enterprise Scala Beans or Scala on a JEE application server

By mirkosertic / Architecture & Design

Once i was thinking about writing Enterprise Java Beans(EJBs) with the Scala programming language. This should be easy as Scala...

Read More

25

Mar 13

25. March 2013

Maven, Scala and AspectJ(AOP)

By mirkosertic / Architecture & Design

Recently i was thinking about combining AspectJ and Scala in one project. Of course we can argue that functional programming...

Read More

19

Mar 13

19. March 2013

Using Scala with JPA 2.0

By mirkosertic / Architecture & Design

Recently i was thinking about persisting Scala classes with JPA. I tried to set up a mixed Java/Scala project as...

Read More

18

Mar 13

18. March 2013

Using Scala in legacy applications

By mirkosertic / Architecture & Design

Often we are enhancing and working on Java legacy applications. But time moves on, and new programming languages like Scala(www.scala-lang.org)...

Read More

22

Nov 12

22. November 2012

An overview of current NoSQL databases

By mirkosertic / Architecture & Design

This summary is taken from the book “Seven Databases in Seven Weeks”. See the Books section for details. Database Version...

Read More

19

Nov 12

19. November 2012

How to avoid server roundtrips by using pretty URLs

By mirkosertic / Architecture & Design

Problem Unnecessary server round trips are a common cause for slow application performance. Unfortunately application frameworks like JSF(Java Server Faces)...

Read More

17

Nov 12

17. November 2012

Using and enhancing Hibernate Search

By mirkosertic / Architecture & Design

www.hibernate.org is a very cool and mature Java Object-Relational mapping tool. Using Hibernate we can easily persist or reconstitute Java...

Read More

15

Oct 12

15. October 2012

Displaying simple animated graphs with JavaFX 2.0

By mirkosertic / Java

JavaFX is quite cool. The scene graph concept is quite powerful, combined with visual effects like animation, shadows or motion...

Read More

4

Oct 12

4. October 2012

Logging made easy

By mirkosertic / Architecture & Design

In modern, distributed applications logging is a key requirement. But the problem arises if we try to track down an...

Read More

1

Oct 12

1. October 2012

Building CDI support with AOP and AspectJ

By mirkosertic / Architecture & Design

CDI is a mighty enhancement to the Java programming language. But CDI has also some limitations that might be cumbersome:...

Read More

10

Sep 12

10. September 2012

The Onion Architecture

By mirkosertic / Architecture & Design

The Problem Often we develop complex business driven applications. While we design our application, it's architecture and it's layers, we...

Read More

15

Aug 12

15. August 2012

Enriching legacy applications with CDI

By mirkosertic / Architecture & Design

There are a lot of applications out there. Some of them are legacy, others are in their maintenance phase. While...

Read More

6

Aug 12

6. August 2012

Putting your objects into context or why overwriting toString() can be evil

By mirkosertic / Java

Often we need to display Java business objects in the user interface. The easiest way is to overwrite the toString()...

Read More

2

Aug 12

2. August 2012

The law of leaky abstractions

By mirkosertic / Architecture & Design

Personally i really like Joel Spolsky's law of Leaky abstractions. Every architect should read and understand his article. Here is...

Read More

1

Aug 12

1. August 2012

A first touch with NoSQL, graph databases and OrientDB

By mirkosertic / Architecture & Design

The experiment I was thinking about the current way we often store data in relational databases like MySQL, PostgreSQL or...

Read More

31

Jul 12

31. July 2012

Thread tracking or how to know who causes an error

By mirkosertic / Architecture & Design

Often we are developing applications for multi-user environments. Classic examples are web applications or web services. This also means that...

Read More

31

Jul 12

31. July 2012

How to embed Hystrix into existing Spring applications

By mirkosertic / Architecture & Design

Netflix's Hystrix is a very powerful framework to build fault tolerant and resilient applications. It provides common implementations for patterns...

Read More

30

Jul 12

30. July 2012

Enterprise search with Apache Solr

By mirkosertic / Architecture & Design

It you wan't to build a enterprise search engine, you don't have to reinvent the wheel. You can use open...

Read More

30

Jul 12

30. July 2012

Software defect detection with AOP and JSR-303 / JSR-305 / JSR-308

By mirkosertic / Java

Summary For many years common runtime exceptions like NullPointerException or ClassCastException are haunting poor Java programmers. This often leads to...

Read More

29

Jul 12

29. July 2012

Domain-driven Design – Overview and building blocks

By mirkosertic / Architecture & Design

There are a lot of excellent blogs out where about Domain Driven Design and what it's all about. I prefer...

Read More

28

Jul 12

28. July 2012

XML Resourcebundles and how to make I18N refactoring safe

By mirkosertic / Java

Java Resourcebundles are cumbersome. Without good IDE support, you are lost. It is hard to maintain the different property files,...

Read More

20

Jul 12

20. July 2012

Reusing domain objects to create query specifications

By mirkosertic / Architecture & Design

Problem Often you need to create query specifications to retrieve data from persistent memory. One of the following patterns is...

Read More

27

Jun 12

27. June 2012

Swing Databinding with Mogwai DataBinding

By mirkosertic / Java

While you are developing Java Swing based applications, you need a mechanism to bind Java objects to Swing widgets. Project...

Read More