Entries in the ‘IT’ Category:

How to drop all indexes on an Oracle table

Few days ago I needed to delete all indexes on an Oracle table. After some scripting I ended up with the following one:

BEGIN
FOR ind IN
(SELECT index_name FROM user_indexes WHERE table_name = ‘my_table’ AND index_name NOT IN
(SELECT UNIQUE index_name FROM user_constraints [...]

Tags: , ,

View Comments

COOLuary 2009 – a real belter of an unconference

I spent an additional day in Cracow to participate in the third edition of COOLuary organized by Grzegorz Duda and his Developer’s World. I was really excited to take part in it, since I have heard that the idea of unconference is gaining popularity nowadays.
The unconference consisted of four panel discussions (50 minutes each). Grails, [...]

Tags: , ,

View Comments

Java Developer’s Day 2009 in Krakow

During last weekend I had the possibility to attend the Java Developer’s Day 2009 in Krakow (link) . It was the third time that I took part in this conference (also in 2006, 2007). It was a great event with a keynote speech performed by Mark Richards – one of my idols! Not only is [...]

Tags: , ,

View Comments

Splitting and Tokenizing Strings in Java

There are at least two ways of tokenizing Strings in Java. Simple examples work like a charm, but it is very easy to encounter some weird or unintuitive behavior while experimenting with complex regexes or some corner cases. Thus, in order to gain deeper knowledge, I am gonna dive into the implementations details and present [...]

Tags: ,

View Comments

String literal pool and JLS rules for String objects

I have been playing with the String objects in order to review all the rules defined by the JLS regarding the String creation and handling. I have recently created a JUnit test case which examines all the aforementioned rules. Enjoy!
JLS rules for Strings:

Literal strings within the same class (§8) in the same package (§7) represent [...]

Tags: , ,

View Comments