Wednesday, 28 January 2015

Gerrit and maven release plugin

There is a time in your project when you start using Gerrit code review system. When you have maven release plugin to make release, you can be very surprised when you see:
[ERROR] The git-push command failed.
[ERROR] Command output:
[ERROR] Permission denied (publickey).
This is a situation when we use ssh connections to gerrit. But, when you try to push something to master (ignoring code review), it works! How is that possible?

You probably have in your gitconfig an ssh URL with your user name. But in your project SCM (in pom.xml) you do not have your user name. What user name maven release plugin use? Your computer account name, which is in most cases different than your Gerrit user name.

How to repair it? Define a file in .ssh/config directory with content:
Host gerrit
    HostName YOUR_GERRIT_HOST
    Port YOUR_GERRIT_PORT
    User YOUR_GERRIT_USER_NAME

There may be a lot of other reason why you have "Premission denied", but this was the hardest I've ever seen.

Monday, 26 January 2015

Configure GNU sed and xpath on OS X

In my team, there is 20% of OS X machines, rest are linuxes. We share one script, that everyone on our team uses.

That script was written by some guy on Ubuntu and guess what? GNU versions of those programs (sed and xpath) are not compatible with BSD versions. The script was failing :(

I was trying to improve the script, but forget about it. Just use GNU programs.

To install gnu sed on osx via homebrew type the following:
brew install gnu-sed --with-default-names

To install gnu xpath on osx via homebrew type the following:
brew tap concept-not-found/tap
brew install xpath
mv /usr/local/bin/xpath /usr/local/bin/osx.xpath
sudo ln -s /usr/local/Cellar/xpath/1.13-7/bin/xpath /usr/local/bin/xpath

Tuesday, 17 June 2014

[Review] Zen and the Art of Motorcycle Maintenance by Robert M. Pirsig


This is not a book about motorcycle maintenance. This is not only a book about the zen. This is not only a novel. This is mostly a book about philosophy. But philosophy is served in nice form. 

This book took me to journey though a USA. I was feeling that I was an passenger of this journey. I was feeling that I was traveling with author that talks to me about philosophy. 

During this journey, the idea of quality and value was assembled and dissembled many times, like motorcycle parts. It was mostly presented in straightforward form and readable manner. It has a good points to think about it. But, some parts were misleading for me.


I read this book because I need a change from normal technical book. My score for that book is 4 of 5 points. 

Saturday, 14 June 2014

[Event] Devoxx4Kids Polska

We did it. We did the first Devoxx4Kids Poland. For the last half year we worked very hard to prepare and organise this event. 

I would like to introduce co-organisers of this conference, Tomek Kucharski, Dariusz Kaczyński, Ewa Waliczek. Big thanks to them. I would like to thank Konrad Hoszowski and Eliza Kruczkowska for help. Also this event could not be possible without school and computer administrators from schools. Thank you! Big thanks have to go to Robomaniacs and Robocamp for preparing workshops. And of course this event could not be possible without our sponsors. 
We also receive help from 20 volunteers and two professional photographers. Thank you!

We did eight parallel tracks for kids from 6 to 14 years old. They were four age groups. Each group have different T-shirt colour.  There was a huge variety of topics. There were workshops related to hardware, software and mixed. We used Lego, Arduino and also games like minecraft. Visit devoxx4kids.pl for more informations.


Do you want to organise this kind of event in your city? Email me, I
would like to help you to start this kind of event in your city. Do you want to help in next year edition and join steering committee ? Email me.



[Event] A note from 33rd Degree

This year 33rd Degree conference is over. I'm glad I could help Grzesiek in the organization as a volunteer. It was a good experience and great opportunity to meet new people. 

For me the biggest advantage of this conference are talks. There were many rock star speakers with cutting edge topics. I would like especialy say thank you to Tomek Nurkiewicz. His talk was about Saiku. 
Tomek charisma, teaching skills, good preparation and selection of material is at the highest possible level. Thus that, after one hour I felt like an expert of Saiku and OLAP. 

Thank you and see you next year.

Sunday, 18 May 2014

[Review] Sam Newman - Building Microservices

Two days after the ending of GeeCON, I’ve managed to read „Building Microservices” by Sam Newman Book. It is in Early Release stage, so half of the chapters were missing.

The first chapter about concept of microservices is very good. It determines the direction of thinking. It relates to SOA, OSGI, and many know to me aspects and problems. If you do not know what microservices are, read only this chappter. 

The rest completed chapters were good. I had a feeling that those chapters were written not only for architects, but for developers in the first place. There were funny sentences like „Big Scary CRM”. I was also enjoyed because there were many real life system described.


To summarize. I am looking forward for the finished book, to read it again. Also I would like to try to implements some solutions in microservices way :)

Friday, 16 May 2014

[Event] GeeCon 2014

I’ve spent the last three days on GeeCon 2014. I must say I become demanding when I go to conference, so my opinion is becoming more critical.

Basically the conference was good. There was small problems with WiFi, venue wasn’t in the city center (imagine 1000 peoples ordering taxi or getting to the local bus), but generally it was ok. Most of the talks were good. There is one thing, that I am really happy about. I made a lot of new connections. This is the aspect that push me to the next edition of GeeCON :)

I really enjoyed the afterparty at ‚Stara Zajezdnia’. This place is a local brewery, so we drunk very good beer. Also we had opportunity to take a tour with experienced brewer, so I also learned new things about brewery. Thus GeeCoin game, I also meet new people ;p

There was not any feedback system, so this is my feedback. Lets make an talk about hobbies or very light topics which will take 30 minutes after the dinner. I would like to listen about how take care of you health when working all days with computer, how to make a beer, something about motorization or photography. I need a longer break after the diner with soft topic.

I’ve selected talks, that I think was good and which I would recommend for my friends (excluding keynotes):
- All Sam Newman talks about microservices. Just must watch or read a book.
- Josh Long talk about Spring, because live demo was exploding with energy.
- Tom Bujok with ’33 things you want to do better’, but only the first part. Second part was to obvious for java developer with some experience.
- Kevlin Henney with ‚Seven Ineffective Coding Habits of Many Java Programmers’ for great preparation of content.


Thats it. See you next year.