Nov 29

Change all Amounts to Big Decimal

Today I found out that all my currencies have to be BigDecimal. BigDecimal helps with rounding etc. Double has all sorts of quirks and cannot be relied on, especially when dividing by 3.

The downside is that there is a whole lot of legacy code that needs to be changed. Could use this as an excuse to rewriting the application.

0
comments

Aug 27

Java Security

I tried it out today. The details of Java Policy which controls what each program can and cannot do.
However there were a some grey areas which I thought I needed to jot down for further reference.

  1. It is best to put the policies in ${user.home}/.java.policy
  2. If 1 is not possible then the confusion lies as to where to put the policy
    1. You could put it in any file as long as you add it to the ${java.home}/lib/security/java.security file.
    2. The entry to be made is policy.url.3=file:/D:/JavaTest/mypolicy (windows)
    3. This works for applet viewer but not mozilla
    4. Java usually downloads the latest version of JRE and installs it. Mozilla uses the latest version so. For Mozilla it is not enough to change ${java.home}/lib/security/java.security file but the /lib/security/java.security of the latest version of JRE.

0
comments

Mar 23

Tricky CSS

Css can be pretty tricky. In this blog I will keep appending the quirks I notice in CSS.
:
When a Div is floated the div will cut across the containing div if the containing div is smaller than the floated div.
Fix:
Create another inner div at the end of the containing div and give the Css property clear:both. This will force the containing div to be bigger than the inner div’s.

0
comments

Mar 13

Family At Home


Family At Home
Originally uploaded by thomas_ramapuram.

Everbody together.

0
comments

Mar 13

Family in Church


Family in Church
Originally uploaded by thomas_ramapuram.

Everybody in church after the Baptism

0
comments

Mar 13

Sarah ready for School


06-02-15@080915
Originally uploaded by thomas_ramapuram.

Sarah on the Balcony before going to school.  One of the coolest pictures taken by Geeta’s cell.  It is a Benq with a 2 Mega pixel camera.  We picked it up because back then it was sub 10K.

0
comments

Mar 13

Mummy, Jay, the girls and the Baby

All the Beautiful girls with Jai , Mummy and the Baby.

0
comments

Mar 06

Setting up Subversion

Today I will go about Setting up subversion. I am not going to install subversion since it is already installed by fedora.
The version FC 4 installs is

svn, version 1.1.4 (r13838)
compiled Apr 13 2005, 12:20:50

Copyright (C) 2000-2004 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
- handles ‘http’ schema
- handles ‘https’ schema
* ra_local : Module for accessing a repository on local disk.
- handles ‘file’ schema
* ra_svn : Module for accessing a repository using the svn network protocol.
- handles ‘svn’ schema

After doing yum update subversion

svn, version 1.2.3 (r15833)
compiled Aug 26 2005, 03:42:45

Copyright (C) 2000-2005 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
- handles ‘http’ scheme
- handles ‘https’ scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
- handles ‘svn’ scheme
* ra_local : Module for accessing a repository on local disk.
- handles ‘file’ scheme

  • Now what I have to do is set up repositories
  • Get a subversion dump from the old system.
  • Import the Subversion Dump

0
comments

Mar 06

Getting upto speed with GPG

For all of you conspiracy theorist and Security Freaks out there. This is what I found out today.
They are out to get you!!! So be prepared!!!!
One way to do so is to start using GPG which is an open source implementation of PGP which started off this craze of Security and Public Key Encription. This is what I found out on my journey.
( Read more )

0
comments

Mar 06

Setting up Squid

Be sure the set these variables in your squid.conf file in /etc/ directory
* httpd_accel_host virtual
* httpd_accel_port 80
* httpd_accel_with_proxy on
* httpd_accel_uses_host_header on

All the rest is pretty straight forward.
You will also have to configure your iptables to enable transparent proxy.

Check this Howto

0
comments