Bruno Raljić

A Java Developer's Blog

java

How to rename a large number of files using Java

Use case Imagine you have about 20 folders and each folder has 50 – 100 pdf documents in it. Pdf file names have similar structure, let’s say year-month-user_id.pdf e.g. 2012-oct-396.pdf. If, for some reason, user_id has changed, perhaps after a db migration, you’ll need to edit the names of all pdf files in order to make […]

, , , ,

How to send tweets from Java

After finishing mongoDB course, my colleague (Nikola Cakarevic) and I decided to build up a small project that will combine Spring (Spring MVC and Spring Data) and mongoDB. Since the Twitter fits in the whole Big Data story, we decided to base our project on it. Yesterday I found some free time to see how […]

, , ,

Why I (don’t) use TDD

Test driven development is a very powerful thing. Although I don’t use it on every day basis, I’m a big admirer of the whole TDD concept. When I first heard of it, it made me laugh. It sounded impossible to me (especially for my poor skills). It was something like looking into the future. How […]

, ,