my barcode on jasper report

Here were my conditions when I want to add barcode generator ability on my report:

  • I used to get my jrxml file (japer report file) that generated by iReport. Than I didn't ever notice the details code.
  • So many package for barcode generator, and followed by confusing about the dependencies
  • I want to integrate it with jasper plugin for grailsI want the barcode image generated on the fly, without need to save to image file
And here were the steps which taken to resolve the problems:
  • create maven project in my netbeans, to manage dependency problems easily
  • add barcode4j library to projectcreate simple script to generate image for testing. So I know if all dependency to generate barcode are completed
  • apply barcode generator to jasper report using jasper scriptlet
  • than integrate it with grails by put the jrxml file on web-app/reports, scriptlet code on src/java and put all dependency library on lib
Since I got problem for posting my code, for detailed code and implementation please refer to: http://freeezcode.wordpress.com/2008/12/29/my-barcode4j-on-grailss-jasper-plugin/

my grails and searhable on list view

Hi, i just post my old code about grails and searchable plugins on http://freeezcode.wordpress.com/2008/12/27/grails-searchable/ here is the shoot:

my whm and tomcat story

Managing WHM based server is easy for everyone. I thought no Linux knowledge needed. Managing name server, mail, redirect etc are already web base. Updating web server is easy. Apache, MySQL/postgresql, PHP and the modules are available with latest version, just choose what does we want, and during that configuration we guided by easyApache. If using the shell we can run this command /scripts/easyapache

Once, I need to check my ajexa server wether it's still on or already down. If the server down I need to restart it. And I found all server related services commands are on /scripts directory including command that I need 'restartsrv_tomcat'.
So then I create this python script which called ajexaSrvHandler.py on /etc/cron.daily which contain these code:

#!/usr/bin/python
import httplib
import subprocess

conn = httplib.HTTPConnection('www.mywebsite.com', 8080)
conn.request('GET', '/ajexasrv/')

response = conn.getresponse()
if response.status != 200:
  subprocess.call('/scripts/restartsrv_tomcat')
  print "ajexasrv had failed and just already restarted"
conn.close()

And that script sent me email that contain printed value after restart the tomcat server, since I already put my email address on 'System mail Preference'. Very helpful thought, with minimum effort.

my MOTU quick fix

This article is about the ubuntu packaging (MOTU) and the quick fix. Because some people didn't get exactly what the want after following the video tutorial

Here are base tutorials about ubuntu packaging:
<<---environment setup-->> after this first step everything still runnung well......

<<--packaging-->> my problems after follow this second video are:

  • unmached gpg key which cant get the secret key(or something that related with key even if we checked installed key by running gpg --list-key, the required key is already there)
    this prolem solved by leave the comment field blank while generating gpg key
  • cant complete the requirements event all of the requirements already installed
    here is my error message:
    The following packages have unmet dependencies:
    pbuilder-satisfydepends-dummy: Depends: debhelper (>= 7) but it is not installable
    Resolving dependencies...
    The following actions will resolve these dependencies:

    Remove the following packages:
    pbuilder-satisfydepends-dummy

    Score is -9850

    The following packages will be automatically REMOVED:
    pbuilder-satisfydepends-dummy
    The following packages will be REMOVED:
    pbuilder-satisfydepends-dummy
    0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
    Need to get 0B of archives. After unpacking 0B will be used.
    Writing extended state information... Done
    (Reading database ... 12190 files and directories currently installed.)
    Removing pbuilder-satisfydepends-dummy ...
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Reading extended state information
    Initializing package states... Done
    Building tag database... Done
    Aptitude couldn't satisfy the build dependencies
    E: pbuilder-satisfydepends failed.


    this can be fixed byby running this command before perform package building:
    sudo pbuilder create --distribution < ubuntu_version> --othermirror "deb http://archive.ubuntu.com
    /ubuntu main restricted universe multiverse"

    since i use intrepid, i change < ubuntu_version> with intrepid. This command download more package dependency, since perhaps the file which written on .pbuilderrc on my base directory are not loaded
<<--updatting-->> and this part is running well

in advance, you can get another video from ubuntu developer including paching tutorial here

happy linuxing........
good luck......

django in grails

I found all what I had seen on django are available in grails.
I got Object-relational mapper, Elegant URL design, Template system, Cache system, Internationalization and all of the django advantages are on grails.

But grails provides much more than that. You can check all of grails plugins here
One thing that make me feel better with grails is the update command. I could always using the latest grails release for my project.

the grails's features that make me move from django without any questions are:

  • GRAG, which able to genereate class model from existing database
  • security plugins, which provides many techniques for securing website
  • Rich Client/Ajax Plugins, since django only use dojo
  • smooth upgrade and more automatic code generator
  • provides much more great plugins which really stop my pain
  • no complaint for working with java
  • spring powered
  • better IDE support, since it built on top of java: netbeans , and of course eclipse

here is a small video about ajax, grails and netbean
is really grails stop my search??
since still, I miss my zope and plone

my Speed

Why are those seems to move so fast on my eyes
They should be much more slower that that, or might be steady or even i leave them behind
tell me how to catch them please....

?
what happened with me...
do i use wrong wrong vehicle
am i on wrong track
is this track designed for me?
or I just got rotten and slowing down

fortunately, still i can see their movement
that was gift
since then I know that I have been headed to the right destination and found that sight was working
learn the track, tune my settings, purify my everything, get better resource than perform beautiful and attractive but fast maneuver to get the goal is thats all what i need to do?

BUT TILL THIS MOMENT I AM (SLOW|LEFT BY THEM)...