Tuesday, February 9, 2010

JDBC options for PostgreSQL SSL connection

Hi:

I was trying to find out which options I need to pass to the PostgreSQL JDBC driver in order to establish an SSL connection to the RDBMS. I found that the following are required:

  1. ssl=true (doh!)
  2. sslfactory=org.postgresql.ssl.NonValidatingFactory
The second one is only required if the SSL certificate used by the RDBMS is not signed by a trusted authority.

I hope someone finds this useful.

Monday, February 8, 2010

Change emacs font size

Hi:

Sometimes i think emacs font (under X11) is very big. I got tired of it, googled a bit and found out that

meta-x customize-face RETURN default
Takes you to a nice menu where you can set size. Just change that 120 for whatever you like (100 for me). Then set for current session and save for all future sessions. This creates an entry in .emacs file.