Java word banned once and for all?
Reports are coming in from all over the world that some mysterious man in a dark suit contacted various companies strongly suggesting that they should stop using word “Java” in any form or “bad...
Win a ticket to GeeCON 2017 by showing your Java skills
For the last few months I am in a Java project where we are using Javaslang library. As a result I have posted a short demo of Try capabilities on my company’s website “Road to a more functional Java...
Forcing Wicket to place JavaScript files at the bottom
When you add any Wicket component library e.g. Wicket-Bootstrap to your project, usually it adds some JavaScript and CSS resources to every page or panel. But the problem is that these JS files are added in the...
What’s New in JVM Bloggers – Docker Compose and Views Counter
Version 0.10.0 is live with Docker Compose and views counter
Podsumowanie Ankiety O JVM Bloggers
Dwa tygodnie temu przygotowałem ankietę dotyczącą projektu JVM Bloggers i poprosiłem o jej wypełnienie programistów z naszej społeczności. Na podstawie odpowiedzi chciałem się dowiedzieć o tym co ludzie sądzą o...
My Impressions After Advanced Data Structures at Coursera
Short summary after I have finished “Advanced Data Structures in Java” at Coursera
One and the Only One Reason to Customize IntelliJ IDEA Memory Settings
Don’t be a Scrooge and give your IDE some more memory
Merry Christmas and Silent Night in Java
Programmable Christmas wishes and carol, how cool is this?
The Apprenticeship Patterns – book review
130 pages to help you nurture your passion and become a better developer. Pretty good deal, isn’t it?
ZooKeeper, Curator and how microservices load balancing works
How Zookeeper makes sure that every worker happily gets some stuff to do from job delegating manager
GeeCON 2014 – Brain dump, Day 3
Last, third post with my notes from GeeCON 2014 conference. Pretty short? I am not going to justify myself, but it was third day and everyone was a bit tired after two intensive days and nights in Cracow. Tomasz...
GeeCON 2014 – Brain dump, Day 2
The second part of my notes from GeeCON 2014 conference. Day two was the most interesting and richest day of the conference so are the notes. Hazem Saleh – Jasmine Automated Tests for JavaScript Testing...
GeeCON 2014 – Brain dump, Day 1
Inspired by post “Min/max note taking for conferences” I’ve noted down my impressions, most interesting sentences, mentioned tools/books/blogs during ongoing GeeCON 2014 conference. This is my ”Brain dump” after...
Transparently persist and retrieve encrypted data from database
Big brother is watching… always so why not encrypt everything. And then, auto-decrypt and encrypt our data stored in Database? Here comes Jasypt.
Taking a screenshot when UI tests written in Geb fail
There is nothing worse than being reported that UI test failed but without clear evidence what exactly went wrong. And what could be better evidence than screenshot just after the failure? This is a second post...
XStream – XStreamely easy way to work with XML data in Java
From time to time there is a moment when we have to deal with XML data. And most of the time it is not the happiest day in our life. There is even a term “XML hell” describing situation when programmer has to deal...
Running unit tests and integration tests separately with Maven Failsafe and TestNG
Recently for my new pet project I decided that I would like to have some tests executed during standard mvn test and some other ones only during different phase, let’s call it integration phase. I googled and...
Fixing bug in Hibernate Envers
Recently in our project we were reported a strange bug. In a one report where we display historical data provided by Hibernate Envers, users encountered duplicated records in dropdown used for filtering. We tried...
Deploying Java Web Application on Jelastic
Some time ago having your own full-fledged hosting with Java, Tomcat and any database wasn’t cheap, but luckily we live in a very interesting times and now there are many virtual hosting services in the Cloud...
Practical Unit Testing with TestNG and Mockito – review
Book “Practical Unit Testing with TestNG and Mockito” (website) covers wide spectrum of knowledge about testing in Java environment using aforementioned libraries. But if you prefer JUnit over TestNG or PowerMock...
JCommander – parsing command line parameters with ease
From time to time each of us have to create a small console application to perform a few tedious tasks that can be automated so we can concentrate on more creative ones instead. And every time I had to build such...
Using Twitter Bootstrap Navbar as a Wicket component
All of you probably heard about Twitter Bootstrap, an awesome set of components allowing to create nice looking web pages and application without diving deeply into CSS/JS hacks. If you want to see what this...
Google Guava – almost everything you need to know
Some time ago at SoftwareMill during our weekly Friday meeting to share knowledge I’ve presented Google Guava API. And as it ended with quite long presentation and quite many lines of code I thought that this might...
Google Guava EventBus – an easy and elegant way for your publisher – subscriber use cases
Google Guava in version number 10 introduced new package eventbus with a few very interesting classes to deal with listener (or publisher – subscriber) use case. Below I present my short introduction to EventBus...
Problem with JPA, join column with null values and order by
Recently I’ve encountered a tricky and hard to spot problem with JPA2, joins with null values and ordering. But finally I managed to solve it and as I couldn’t find anything related to this issue in Google, I think...
Parametrizing custom validator in JSF 2
Writing a custom validator in JSF 2 is not a complicated task. You implement Validator interface, add @FacesValidator annotation and insert validator declaration in faces-config.xml, that’s all. A piece of cake....
Developing a plugin for IntelliJ IDEA – some useful tips and links
When I started thinking about writing my first plugin for IntelliJ IDEA the biggest problem was lack of good and comprehensive guides how to do it and how to do it well gathered in one place. So this post will be a...
Share with Pastie – my first plugin for IntelliJ IDEA
When I started working for a new companyy I also changed my IDE so since June I am using IntelliJ IDEA. And I can undoubtedly say that it is worth every penny or Polish Zloty to be more precise 🙂 It is more stable...
Conversation scope in Wicket using CDI
Some time ago I was asked to do some research about integrating Wicket with conversation scope from Context and Dependency Injection (CDI) from JEE6 specification. And as not everything was clear and easy to run, I...
Wicket Tutorial, part 9 – storing and loading user preferences from cookies
In the previous post we learnt a few tricks regarding internationalization features in Wicket. Today we will go further and will let application to remember some user preferences using HTTP Cookies. Storing some...
Wicket Tutorial, part 8 – adding internationalization support
Today we will continue Wicket tutorial series with adding support to multiple languages in web application. Ok, let’s do it step by step. Create form to change language To make our changes visible and testable at...
Wicket Tutorial, part 7 – editing and removing item locations
Welcome back to our practical Wicket tutorial series. I apologize for long break after last post (shame on me as it was published more than 1,5 month ago) but I had many unplanned things with higher priority:...
Wicket tutorial series – building web application from scratch
This post aggregates the series of Wicket tutorial articles from this blog. But as this tutorial is still not finished and new posts will be published in the near future, please return here again to find new parts...
Wicket Tutorial, part 6 – listing locations in a simple manner
Today we will add simple listing view for locations added to the database in previous posts. I said ‘simple’ as there are some more sophisticated ways to show many items using Wicket but probably we will not have...
Wicket tutorial, part 5 – generic unique entity validator
As I promised in the previous post, today we will focus on transforming our unique name validator in Wicket to generic one. So now, let’s simply list what we are going to achieve; validator should validate any...
Wicket Tutorial, part 4 – custom validator for unique entity name
Welcome back to our Wicket tutorial series! 🙂 As I mentioned in previous post, today we will concentrate on building validator stopping user from adding item location with non-unique name. At first we will start...
Wicket Tutorial, part 3 – first form in our application
Hello Visitor 🙂 In previous posts we created base project and added common layout to ItemDirectory Wicket application. Today we are going to add first form to allow users to insert some data into our application....
Wicket Tutorial, part 2 – adding common layout to the project
Hello everyone! In the previous post we set up base project using Wicket for out future development of ItemDirectory web application. That post, which was intended to be mainly about Wicket, surprisingly gathered...
Wicket Tutorial, part 1 – setting up project with Spring 3, JPA 2 and MySQL
Today I start my personal project Item Directory which will be developed as a element of Wicket Tutorial series on this blog. Item Directory will be a web application to help you manage your collections of items...
Custom PagingNavigator with changing items per page in Wicket
In one of my recent projects I had to create Wicket pagination component with one additional functionality allowing user to dynamically change maximum number of items presented on each page. Finished component will...
Submitting SSL and no-SSL html forms using JMeter
JMeter is well-known tool for testing performance of web applications, databases and many other things (check project official site for more). Today I am going to show how to test web application with JMeter when...
Solving com.mysql.jdbc. exceptions.jdbc4. CommunicationsException in Spring JDBC based application
Last week after releasing first version of Wicket, Spring and JDBC based application into production I noticed strange behavior. Everyday first attempt to enter the service caused unexpected exception. Quick glance...
Simple notification about errors in Wicket-based application
Today I am going to to describe a simple and quick trick in Apache Wicket which allow our web application to send email everytime when something goes wrong. Adding some method when exception appears in Wicket-based...
My first TDD or why NetBeans sucks
This week was very intensive in terms of education. First, a three-day training about Test-Driven Development at Pragmatists, then presentation about Vaadin by Bartek Kuczyński at Warsaw JUG meeting. However, in...
The life cycle of servlet
Life cycle of servlet from the perspective of the container After start, the container is looking for servlet classes in the appropriate directory (for Apache Tomcat would be $ TOMCAT_HOME / webapps) . Once they...
Wicket – useful links
Inspired by posts with useful links at blog by Piotr Paradziński I decided to create similar one with package containing interesting materials about Wicket and accompanying libraries. I am going to update this post...
Wicket Ajax Modal ‘Are you sure?’ window
While developing web application with Wicket I sometimes need to check whether the user really, really does want to do something, for example to delete an entity from the database. The first and easiest choice that...
Finally my SCWCD mission completed
Much later than planned (check my post when I revealed intent to pass SCWCD) I managed to get this certificate. The result (94%) is in my opinion more than good 🙂 Preparations began fairly long time ago (over a...