Bruno Raljić

A Java Developer's Blog

example

How to rename a large number of files using Java

images

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 […]

, , , ,

AJAX with Spring MVC

ajax_logo

As I continued to explore the world of Spring MVC, I wondered how the AJAX calls are handled and I found it to be very simple. I’ll present you a simple example, including a little bit of jQuery, JSON, twitter4j etc. Example description Let’s say we want to display specific tweet on our page. User […]

, , , , ,

Carbon 5 – How to keep track of executed SQL scripts

If your application use a database and you often execute scripts manually (extending tables with new fields, adding new values) you need to keep records which scripts are executed and which aren’t. Keep in mind that you usually have more than one database (localhost, one or many production databases) and in addition, there are several […]

, ,

Why I (don’t) use TDD

Test-driven_development

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 […]

, ,