Blog

Posted by Stanislav Miklik | 07 12 2015| tech-talks

This tech talks was quick presentation of our first steps in server monitoring. And at the same time it was simple introduction to Kibana and Elasticsearch. What to collect? We started with already provided Spring Boot metrics. Since we wanted to transform the input a little bit (compute diffs between snapshots, count summary hits for...

Continue reading
Posted by Stanislav Miklik | 04 12 2015| javascript, tech-talks

Especially when you are coming from Java word, the first encounter with asynchronous style used in Javascript (or node.js) can be confusing. And of course there are several ways how to deal with it. Callback hellAs also for other styles, modularization and good names helps in readability. Async libraryThis library helps with increasing intendations and...

Continue reading
Posted by Stanislav Miklik | 20 11 2015| javascript

Bratislava was hosting Reactive conference several days ago. As name suggest, it was mainly about Facebook React with lot of different talks. Really, it is hard to remember clearly every one of them, so I will write only about the most interesting ones. The curious reader might want to check schedule. CSS Modules The most interesting...

Continue reading
Posted by Stanislav Miklik | 10 11 2015| tech-talks

This talk is dedicated to npm version 2 with focus on dependency management. With npm you can handle both your server and client side javascript dependencies (e.g. for React and Webpack). Basics When you start your javascript project it is useful to initialize your project with npm init. It creates package.json file which describes your...

Continue reading
Posted by Stanislav Miklik | 08 11 2015| tech-talks

We, in the company, have decided we want to start small regular education program where we can share best practices, new interesting technologies or whatever interesting we have seen and might be beneficial to others. We make up to one hour long session together where we present and discuss one selected topic. This blog is...

Continue reading
Posted by Stanislav Miklik | 06 08 2015| spring

What is wro4j Since you are here, you most likely know, but for others. wro4j (Web Resource Optimizer for Java) allows you (as name suggests) to optimize your web resources. Typically when you build (rich) web application you use several CSS/JS frameworks and develop additional CSS/JS of your own. And all of this needs to be downloaded to...

Continue reading
Posted by Stanislav Miklik | 16 04 2015| spring

Nowadays you can hear lot about microservices. Spring Boot is an excellent choice for building single microservice but you need to interconnect them somehow. That’s what Spring Cloud tries to solve (among other things) – especially Spring Cloud Netflix. It provides various components e.g. Eureka discovery service together with client side load balancer Ribbon for inter-microservice...

Continue reading
Posted by Stanislav Miklik | 15 04 2015| java

Recently I stumble upon more problem with generics and class literals. I wanted to use Mockito ArgumentCaptor to capture List<Long> argument. As we know there is nothing like List<Long>.class so how to create properly parametrized type? Simple attempt does not work and ends with compiler error “Cannot cast from ArgumentCaptor<List> to ArgumentCaptor<List<Long>>”. Stackoverflow helped at the...

Continue reading