I don’t remember what caused me to pull out an old game and trying to install it. The game in question is Pharao which runs on Windows 98. It does not run on Windows XP and certainly not on Linux. Therefore I searched for ways to get it to run.
The full Win9x Experiance
23. Februar 2013Combining standalone application with Spring
11. Januar 2013When you are developing a standalone application, that you want to use with the SpringFramework, somewhere in your code you will have to load the application context. Potentially this results in chicken-egg problem, especially when you want to use a component in some class that is not a bean. This may have different causes:
- It is the main class, that is used to start up the application
- The constructor uses arguments that cannot be resolved with autowireing
There are different approaches to solve this, the most elegant one I will demonstrate. Diesen Beitrag weiterlesen »
Transaction isolation with Spring and Hibernate
10. Januar 2013Recently I had to investigate the question of stale data that may be passed over transactional borders in our application. The application is Spring based using JPA with Hibernate to access the database. The answer to the above question is not that interesting, but to give it I had to understand how this whole stuff is set up and configured. There are are quite some resources which address something like this, but when coming to Spring, in recent time the approach to implement this when from directly using Hibernate to using Hibernate through JPA, while there are quite some books and tutorials on this, none also include specific information how to set the isolation level and what happens when you use the optimistic locking approach.
JavaFX: Fixed size label
4. Januar 2013Though JavaFX provides a component for Pagination this is based on a fixed number of pages. However consider the following use case:
You have some text of undefined length but definitely longer than can fit on a page. The text is dynamic so it is not feasible to split up the text onto several pages. Further more it may be possible that while displaying the font or the font style changes and thereby resulting in a different paging of the text.
As I have just such a use case in OpenPatrician, I did a quick test on how such a thing could be implemented.
JavaFX: Perspective Transformation
3. Januar 2013As stated in one of my previous articles, the PerspectiveTransformation is good for transforming the visual repensentation of a node/shape, but its original position still stays the same. This means that if I want an transformed area to react on events (like mouse clicks), I have to transform the coordinates and then define the position.