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)...

my mystery

mystery

The most simple answer to explain any unexplained occasions or unexplained things
Use that if someone ask about something that I don't quiet understand
Use that if someone ask about something that I won't them to know about

the answer that will you get if you ask me about Proxy and Reflections on Java
you can't hardly hear that words if you ask about my live, but really that's actually the word

my gnome empty desktop (on etch debian)

Today my gnome with it sweet compiz-fusion got error message when I came back from lunch. I thought it was like usual (something move the mouse wheb at the same time gnome lock the screen. Some applications interface are grayed). But when i restart the desktop (Ctrl+Alt+Backspace) still I got the menu bar and other applications except nautilus file browser, also my desktop is blank (no wallpaper neither icons).

I got my desktop back after i remove all my home settings which related to gnome and nautilus and than run these commands:

  • dpkg-reconfigure gdm
  • dpkg-reconfigure gnome-desktop-data
  • dpkg-reconfigure gnome-control-center
  • dpkg-reconfigure gnome-menus
  • dpkg-reconfigure gnome-system-tools
  • dpkg-reconfigure gnome-applets
  • dpkg-reconfigure gnome-session
But still after running a while I got that error again. After all of those unsatisfied result I remove all my gnome and xserver-xorg
  • apt-get remoce xserver-xorg --purge
  • apt-get remove gnome gnome-utils gnome-core gnome-desktop-data gnome-desktop-environment
  • apt-get remove --purge gnome gnome-core gnome-destop-environment
  • aptitude purge gnome gnome-core gnome-destop-environment <<>
another command to remove all gnome related packaga are:
apt-get remove gnome*

after all package removed than reinstall gnome with this command:
apt-get install gnome-destop-environment

since than i got my gnome back....

I also got another cool package: gnome-fifth-toe

my source repo

Here are my repository site. At least i know where to find repository when i install new linux distro, since they provide for another distro except distro which listed bellow
my opensuse repo:

  • URL: http://opensuse-community.org/subpixel/openSUSE_11.0
  • URL: http://download.opensuse.org/repositories/mozilla/openSUSE_11.0
  • URL: http://download.opensuse.org/repositories/KDE:/KDE4:/Community/openSUSE_11.0_KDE4_Factory_Desktop
  • URL: http://ftp.jaist.ac.jp/pub/Linux/openSUSE/update/11.0/
  • URL: http://download.opensuse.org/repositories/KDE:/KDE4:/Factory:/Desktop/openSUSE_11.0/
  • URL: http://ftp.jaist.ac.jp/pub/Linux/openSUSE/distribution/11.0/repo/non-oss
  • URL: http://ftp.jaist.ac.jp/pub/Linux/openSUSE/distribution/11.0/repo/oss
  • URL: http://download.opensuse.org/distribution/11.0/repo/debug/
my Debian repo:
  • deb http://ftp.jaist.ac.jp/pub/Linux/Debian/ etch main contrib non-free
  • deb-src http://ftp.jaist.ac.jp/pub/Linux/Debian/ etch main contrib non-free
  • deb http://security.debian.org/ etch/updates main
  • deb-src http://security.debian.org/ etch/updates main
  • deb http://volatile.debian.org/debian-volatile etch/volatile main
  • deb-src http://volatile.debian.org/debian-volatile etch/volatile main
  • deb http://www.backports.org/debian etch-backports main contrib non-free
  • deb http://www.debian-multimedia.org stable main
  • deb http://download.tuxfamily.org/shames/debian-etch/desktopfx/stable/ ./

my java and python

From the code writing perspectives, java is more annoying than python (much more). But till now application which written on java got more appreciation than the others, even they gave the same result. Is that just because writing on java is more difficult?? :)

Because of that difficulties than came jython and groovy which seems very interesting. Jython is pure python written on java which ofcourse got full access to all java class libraries (accessing java class libraries with that simple python style, wow that was ammazing). Than groovy is the different things which gave simplecity of java with their red and blue side. The red side is they offer simpler method for writing java code, and the blue code just offer different perspectives about java (much more different but also much more fun because it's simplicity). Both 'languange' (jython and groovy) in advance could be compiled to java class. and both gives interactive shell.

But still when I check to the java development site I got that they only suggest those languge for prototyping. Do I need to learn jython or groovy??? or I just need to learn python and/or java, and than glue them together. Or I can stand only on one of them; since all of them provide their own library, framework, fans, etc.

Oh I forget one more things, ruby with it fomous web framework ruby on rails. They also as simple as python also with java support on jRuby and bundeled ruby on rail web development on current netbeans version. But don't know yet RoR framework performance on high scalability site.

my Linux and Nvidia driver

Currently on my PC I got Debian etch4, openSUSE 11 and centOS 5.2. I just reformat my whole hard drives after I got failed to perform filesystem check on mounted system (sound stupid isn't it?, but while perform that process suddenly my electricity down, so that's make it worse).

I write this post just for keep my remember not to install nvidia video driver from those distro repository (event form openSUSE's one click solution) bacause I always got failed when install compiz-fusion based on that driver. So make sure always use driver that dowloaded from nvidia site.
But i know they have do their best to make it, and it must be happen one time
thanks to everyone that help me to make my Linux desktop seems beautiful

my internet radio

Today I just installed shoutcast server. Like before, actually it's easy to setting shoutcast. One thing that make it's seem hard is no clear description from documentation about what next to do. Because after I run the configured server and go to the admin page I got the page with status that server is currently down. But it's OK...
here's the video about shoutcast server installation
The problem solved after install shoutcast DSP plugin on winam (for Microsoft windows) or xmms (for window or linux) and configure the setting. For detail about DSP installation refer to this page: http://www.shoutcast.com/download/broadcast.phtml
Here's another vidoe about shoutcast installation: Another tool for making media stream server is by using icecast. Seems, icecast offer more advance option and planed to support more media file types.

my Openbravo on etch4 debian

Install latest apache ant, java SDK (1.6) and postgresql-8.3 get latest java SDK and postgresql-8.3 from backports by add this line on /etc/apt/sources.list:deb http://www.backports.org/debian etch-backports main contrib non-free Before installing postgresql-8.3 I need to remove my older postgresql-common since befor I use default install postgres (7.4). Than install again postgresql-common using specified repository because without that option I still got the old version, event the new version alredy listed. Use this command to intall postgresql-common from backport: apt-get install -t etch-backports postgresql-common and than install postgresql-8.3 tomcat and java SDK like usual: apt-get install postgresql-8.3 sun-java6-jdk tomcat5.5 tomcat5.5-admin tomcat5.5-webapps Than follow Openbravo environment installation After all above steps I still couldn't got my openbravo login page. but it solved with this command: /usr/share/tomcat5.5/bin/catalina.sh run I didn't know what was hapened, but it's worked

Pthon Properties

I thought, and some e-books I have read said that all method and variable in python class are accessible publicly. But there is new style class called property that can handle these problems, unfortunately I just already know after py3k released, event property style implemented since 2.2 version.

class ClassWithProperty(object):
   def __SetTheProperty(self, value):
       print "Setting the property"
       self.__m_the_property = value
  
   def __GetTheProperty(self):
       print "Getting the property"
       return self.__m_the_property
  
   def __DelTheProperty(self):
       print "Deleting the property"
       del self.__m_the_property
  
   TheProperty = property(fget=__GetTheProperty,
                          fset=__SetTheProperty,
                          fdel=__DelTheProperty,
                          doc="The property description.")

   def __GetReadOnlyProperty(self):
       return "This is a calculated value."
  
   ReadOnlyProperty = property(fget=__GetReadOnlyProperty)


Each methods are accessible only with the given attribute in the property value. Perform operations that unlisted in property values are raise the exception.
And there is addition in creating new class which is independent class. The declaration of new class override object.

There are some subjects that new for me like above, which i got from Michael Fötsch:
  1. Why New-Style Classes?
  2. Properties
  3. Static Methods
  4. Class Methods
  5. Descriptors
  6. Attribute Slots
  7. The Constructor __new__
  8. Cooperative Super Call
Thanks very much Michael Fötsch