Narkisr - blog

Narkisr.com where code writes itself.


18
Dec 7

Buildr and groovyc

Buildr is a build tool that iv mentioned in previous posts, its really flexible and easy to mold custom functionality into it due to its Ruby heritage and its AntWrap utilization.
In this post im going to demonstrate how to use the groovyc ant task in order to intruduce groovy compilation into your build (which is a bit tricky).[...]

13
Dec 7

Compilled vs non compilled Groovy Spring beans

Spring offers great flexibility when working with dynamic languages, it enables the wiring of Groovy beans in your application with minimal effort (see), one of the coolest things about it is that it enables also the re-deployment of Groovy code with no more then a simple file override (see).
[...]

04
Dec 7

Taking back control on your tests with TestNG

I'm truly a testing fanatic, in fact i think that for each component coded tests should be an integral part the process.
The thing is that as your code grows it gets harder to maintain the tests that you've written in addition JUnit adds pain to misery due to its bad design. [...]

01
Nov 7

Intellij 7.01 on Ubuntu => Java 6 upgrade

Intellij now makes use of JDK 6 which means that one should upgrade his version (using synaptic you know the drill) and set IDEA_JDK to /usr/lib/jvm/java-6-sun at the .bashrc file.
[...]

08
Oct 7

Catch the bug

Well iv just spent an hour or so on this cute little bug and thought to challenge you readers to catch it by yourself (using any debuggers IDE's etc.. isn't allowed!)
The code is in the Groovy programming language and involves two closures as follows:[...]

20
Aug 7

Generics shall risen again!

Here is a possible solution for cases in which some libraries that you depend upon and are not under your control (Spring, Apache Commons etc..) don't use generics (usually this is due to 1.42 backward compatibility), in such cases you'd usually write lines that might resemble something like this:

 JdbcTemplate jdbcTemplate=new JdbcTemplate();
 List⟨String⟩ result=jdbcTemplate.queryForList(/*query*/,/*params*/);

This code will result in unchecked assignment warning during compilation however the most annoying thing about it is that the IDE will not auto complete the generics types for us(=> more typing for us!).[...]


02
May 7

Dicsrete math & Java

In my Bachelor's degree i had the pleasure to study discrete math, discrete math handles group theory which address well hmm... groups :).
A group is a math entity that has a proper definition and a collection of operations which are operable on them such as: intersection, union, disjunction, subtraction.[...]

18
Apr 7

A glass of Watir to quench your thirst

A couple of years ago (long before rails was in focus) Ruby has caught my eyes , to be exact it was Watir which is a Ruby based web testing framework that took my attention , at the time i didnt know how much useful it can be.
Watir is quite interesting since it drives the actual web browser UI (IE) during testing procedures , this makes it extremely simple to use , you don't have to sniff any http posts or use low level API , just select your DOM element and the operation that you wish the browser to perform on it:[...]

03
Apr 7

JBoss PermGen , same old error

A couple of weeks ago iv stumbled upon the following post which carried the title "Good Riddance, PermGen OutOfMemoryError !", the thing is that this error happens quite alot when you are redeploying an application under JBoss for a couple of times.
The only way to recover from it is to restart JBoss which is quite annoying (especially when it takes 2min to load it up again).

[...]

This website content by Ronen Narkis is licensed under a Creative Commons Attribution 2.5 Israel License, based on a work at narkisr.com, Permissions beyond the scope of this license may be available at narkisr.com.