The Foo bar

Daniel Serodio's random thoughts, links, et cetera
Mon Jul 6
I can honestly say if someone had shown me the Programming Scala book by by Martin Odersky, Lex Spoon & Bill Venners back in 2003 I’d probably have never created Groovy. James Strachan (creator of Groovy) in Scala as the long term replacement for java/javac?
Sun Jul 5
Fri Jul 3
Layering is an essential tool for building software applications. But like most essential things in life, excess can be almost as much of a problem as too little. Martin Fowler
Wed Jul 1
Intelligent people talk about ideas.
Average people talk about things.
Small people talk about other people.
Sun Jun 28

How to make Eclipse look better on Linux

I usually install Eclipse under /opt/eclipse, so change paths accordingly:
  1. Create /opt/eclipse/gtkrc-2.0 with the following contents:
  2. style "gtkcompact" {
    	font_name="Sans 8"
    	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
    	GtkExpander::expander_size=10
    	GtkExpander::expander_spacing=0
    	GtkTreeView::vertical-separator=0
    	GtkTreeView::horizontal-separator=0
    	GtkTreeView::expander-size=8
    	GtkTreeView::fixed-height-mode=TRUE
    	GtkWidget::focus_padding=0
    }
    class "GtkWidget" style "gtkcompact"
    style "gtkcompactextra" {
    	xthickness=0
    	ythickness=0
    }
    class "GtkButton" style "gtkcompactextra"
    class "GtkToolbar" style "gtkcompactextra"
    class "GtkPaned" style "gtkcompactextra"
    
  3. mv /opt/eclipse/eclipse /opt/eclipse/eclipse.bin
  4. vim /opt/eclipse/eclipse
  5. #!/bin/sh
    
    MY_ECLIPSE_GTKRC=/opt/eclipse/gtkrc-2.0
    GTK_RC_FILES=$GTK_RC_FILES:$MY_ECLIPSE_GTKRC
    GTK2_RC_FILES=$GTK2_RC_FILES:$MY_ECLIPSE_GTKRC
    ./eclipse.bin &
    
Fri Jun 26