Thursday, November 10, 2011

Create Secure Jars

Hi.

Recently, There was a need to create JARS which cannot be decompiled as I want to secure my source code.

I found obfuscated jar. bytecode obfuscator modifies the content of source files in such a way that their behaviour is unaffected while minimizing the amount of info from the source code thats exposed. Retroguard was the well known commercial obfuscator for java. There are opensource s/w as well.

See the official link and choose the one that fits your needs.

http://www.linkedin.com/redirect?url=http%3A%2F%2Fjava-source%2Enet%2Fopen-source%2Fobfuscators&urlhash=vWAH

Cheers,

Ujjwal Soni

CSS Compression Online Tool

CSS Compressor online tool to compress CSS to reduce CSS code size and make your web pages load faster. You can select from four levels of compression, depending on how legible you want the compressed CSS to be versus degree of compression. It is quick, easy and free!

http://www.csscompressor.com/

Cheers,

Ujjwal Soni

Sunday, November 6, 2011

ORA-01006: bind variable does not exist

Hi,

Recently one of my collegue faced an error as "ORA-01006: bind variable does not exist". We could'nt rectify the reason for this error, later on, we discovered that there was a comma missing in callable statement parameter declaration.

it was something like ::

  CallableStatement cstmt =
             dbConnection.prepareCall("{call my_new_proc(?,?,?,?" + "?,?" +")}");


which should be like ::

  CallableStatement cstmt =
             dbConnection.prepareCall("{call my_new_proc(?,?,?,?" + ",?,?" +")}");


There can be many reasons for this error, but the one which we discovered was this one.

Cheers,

Ujjwal Soni