Wysmedia.com

Icon

~ We make IT easy for you ~

Dance with Dynamic Jasper Report

jasper report

jasper report

Dynamic Jasper Report is such a nice thing that exists in this world. You can create a report using powerfull Jasper Engine without creating a jrxml first. You don’t need iReport anymore. Actually I hate using iReport, it is not fun for me :) Read the rest of this entry »

Nice ICal Calendar with JQuery

Stefanoverna.com write how to create a nice looking calendar like those in ICal using Jquery. It looks good :)

on
this web

Using Liquibase (tutorial)

Liquibase is the powerful database migration that available for free. For long time I am envy of rails database migration system. It is nice and have rich features.

Few weeks ago, I found that Grails has Liquibase plugin (there are 2, liquibase and autobase). I tried both plugins and autobase won my heart because the simplicity they offer (not using XML is the biggest advantages, for me at least). Liquibase however build as stand alone java application that you can run with any operating system that support java.

Here I will show you how to configure and using Liquibase on command line, so you can apply whether you are using php, python, or others programming language/framework

Read the rest of this entry »

Trapping Server Error

Sometimes we found that our server are not behave normal, like there are bugs or server produce runtime exception (or error 404 etc). Those exception are not returned by ajax. So it will keep hidden and seems nothing happened. But if you have firebug installed, you can found that there are errors happened from your server.

So here is how you can trap all errors and displayed on your screen (without using firebug).

This example works on grails main layout (but you can use this tips on any programming language, just put this code on main layout). My code using Jquery and JQalert to display the error

1
2
3
4
5
6
7
$(document).ready(function(){
                $(document).ajaxError(function(event, request, setting){
                    var re = /<br\/>|<br>/g; // for replacing all <br/> with empty string in error 404
                    var txt = request.responseText.replace(re,"");
                    jqalert(txt,"Server Error");
                });
});