SWAT Blog

Archive for June, 2010

Convert Outlook PST to MBOX in Snow Leopard

Sunday, June 6th, 2010


Here are the steps that I tried successfully on Snow Leopard:

  1. Download libpst source from http://www.five-ten-sg.com/libpst/packages/. Extract it in ~/Downloads directory.
  2. Download boost source from http://sourceforge.net/projects/boost/files/boost/. (will be downloaded to ~/Downloads directory by default)
  3. Open Terminal and run following commands: (replace X_XX_X and x.x.xx with the version of boost and libpst that you’ve downloaded):
    $su - root
    #cd /usr/local
    #tar --bzip2 -xf ~/Downloads/boost_X_XX_X.tar.bz2
    #cd  /usr/local/boost_X_XX_X
    #./bootstrap.sh --prefix=/usr/local/
    #./bjam install
    #cd  ~/Downloads/libpst-x.x.xx
    #./configure
    #make
    #make install
    
  4. Run this command on terminal – in the directory you want the MBOX created
  5. $readpst -r /path/pstfile.pst

Fix large Eclipse tabs and menu bar in Ubuntu

Sunday, June 6th, 2010

Run following command in terminal to edit .gtkrc-2.0 file in your home directory:

$ gedit ~/.gtkrc-2.0

Copy paste below in .gtkrc file and save :

style "gtkcompact" {
GtkButton::default_border={0,0,0,0}
GtkButton::default_outside_border={0,0,0,0}
GtkButtonBox::child_min_width=0
GtkButtonBox::child_min_heigth=0
GtkButtonBox::child_internal_pad_x=0
GtkButtonBox::child_internal_pad_y=0
GtkMenu::vertical-padding=1
GtkMenuBar::internal_padding=0
GtkMenuItem::horizontal_padding=4
GtkToolbar::internal-padding=0
GtkToolbar::space-size=0
GtkOptionMenu::indicator_size=0
GtkOptionMenu::indicator_spacing=0
GtkPaned::handle_size=4
GtkRange::trough_border=0
GtkRange::stepper_spacing=0
GtkScale::value_spacing=0
GtkScrolledWindow::scrollbar_spacing=0
GtkTreeView::vertical-separator=0
GtkTreeView::horizontal-separator=0
GtkTreeView::fixed-height-mode=TRUE
GtkWidget::focus_padding=0
}
class "GtkWidget" style "gtkcompact"

Restart Eclipse – tab size and menu bar height should now be fine.

I have tried this in Ubuntu 9.10 and 10.04 – should work for other distros as well.

For installing Weblogic 10.3 on Snow Leopard

Saturday, June 5th, 2010

Hack to validate JVM while installing Weblogic 10.3 on Snow Leopard:

cd /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/sudo mkdir jre
cd jresudo ln -s ../lib libsudo ln -s ../bin bin
  • © 2004-2015 Special Work & Technology Limited