Sat, Aug 20, 2011
Some time ago I wrote few words about some dynamic forms implementation methods using LazyList or AutoPopulatingList with items removing. The problem that interested me today was related to this subject, but concerned something else: how to implement dynamic forms in the way, so that it can be used transparently for any object (even a Hibernate entity) without creating specialized form beans for that.
Tue, Jun 7, 2011
In the production environment web application debuging is not so easy. Especially because when multiple users perform multiple actions in the same time, the output log is interleaved, and the step-by-step situation is hard to reproduce in development lab. The solution for that can be by injecting user name into the log, and then “grepping” the source log in looking for particular user paths.
Fri, May 27, 2011
If you look for the way of making your expensive algorithm faster, you may consider multithreading and concurrency. You can divide your data into the parts and start threads to handle each part concurrently. This looks easy but sometimes there are some additional requisites that you need to obey doing that.
Wed, May 25, 2011
Solving some interesting problems in the project I’m currently working on I started to analyse following problem: you have a large data set (eg. a file) on which you need to apply some expensive transformation (eg. compression). The key requirement is a performance.
Wed, Dec 29, 2010
If you like to check how to apply the dynamic form binding to any object (even for Hibernate entities) check my another post.
Browsing internet you can easily find a common method of implementing dynamic forms in JEE world. This is usually done using LazyList from apache commons-collections, or AutoPopulatingList from Spring. I don’t want to repeat these descriptions, you can find nice examples here (using LazyList) or here (using AutoPopulatingList).
Tue, Dec 14, 2010
Today I’ve had to analyse pretty big XML file, that I couldn’t open in any editor without a hassle. Finally I’ve used comprehensive vim editor, which can handle anything without any problems to view it, but it was useless anyway, because the XML was completely not in human readable format. Then I’ve been looking for some solution to format it or just to display its structure and I’ve found this class from Oracle.
Sun, Nov 21, 2010
Lately I had to extract something from my old codes as a code example and I found an interesting unit testing solution, that I applied in one of my projects. We had some problems with units testing, because almost each thing for testing required fully initialized runtime application context.
Sat, Nov 20, 2010
Hibernate and its way of associations mapping can be a bit hard to understand for beginners. Unidirectional and bidirectional mapping, cascade save, relation owner… How to construct correctly associations between objects to get desired effect? A short introduction based on OneToMany parent-child relation.