Saturday, October 24, 2009

eclipser-blog: Automatic generation of BIRT reports

eclipser-blog: Automatic generation of BIRT reports: "Automatic generation of BIRT reports
Automatic generation of BIRT reports is a common task for every company that has reports that should be presented to the customers.

Those reports should be delivered regularly. If howto that I am going to present is available somewhere than I am sorry, but I was not able to find it out and I had to merge knowledgle scattered in a several wiki pages.

But in the ends solution seems to be very easy:

1. Download BIRT runtime and unzip it somewhere. You should have now birt-runtime-2_2_1_1 folder.
2. Set up environment variable to point to that folder either in OS or inside birt-runtime-2_2_1_1\ReportEngine\genReport.bat(sh for linux).
3. Put your jdbc jar file in folder birt-runtime-2_2_1_1\ReportEngine\plugins\\drivers.
4. Execute genReport.bat script to see usage. For all those good computer scientists (and good computer scientist is a lazy one) I present sample command:
genReport.bat -f PDF -o outputfile.pdf -F report_design.rptdesign"

Wednesday, October 21, 2009

Javascript Tutorial - Draggable View In A Container | Switch on the Code

Javascript Tutorial - Draggable View In A Container | Switch on the Code: "<div id='containerBox' style='position:relative;
border:1px solid black;width:520px;
height:250px;overflow:hidden;' >
<img id='draggableElement' src='duck.jpg'
top:-333px;left:-500px;cursor:move;' />

<script type='text/javascript'>
var el = document.getElementById('draggableElement');
var parent = el.parentNode;
var leftEdge = parent.clientWidth - el.clientWidth;
var topEdge = parent.clientHeight - el.clientHeight;
var dragObj = new dragObject(el, null,
new Position(leftEdge, topEdge), new Position(0, 0));

Tuesday, October 6, 2009

Simple Navigation Bar With CSS And (x)HTML | Van SEO Design

Simple Navigation Bar With CSS And (x)HTML | Van SEO Design
: "Complete Navigation Bar (x)HTML And CSS

The complete code for our simple navigation bar is:

<ul id='list-nav'>
<li><a href='#'>Home</a></li>
<li><a href='#'>About Us</a></li>
<li><a href='#'>Services</a></li>
<li><a href='#'>Products</a></li>
<li><a href='#'>Contact</a></li>

ul#list-nav {

ul#list-nav li {

ul#list-nav li a {
padding:5px 0;
border-left:1px solid #fff;

ul#list-nav li a:hover {

Friday, October 2, 2009

Array.prototype.sum,max,min [javascript] [array] [prototype]

Array.prototype.sum,max,min [javascript] [array] [prototype]: "Array.prototype.sum = function(){
for(var i=0,sum=0;i<this.length;sum+=this[i++]);
return sum;
Array.prototype.max = function(){
return Math.max.apply({},this)
Array.prototype.min = function(){
return Math.min.apply({},this)

numeric value only.

[1,2,3].sum() => 6
[1,2,3].max() => 3
[1,2,3].min() => 1"