Sunday, April 25, 2010

Delete .svn Recursively - When copying projects

Did you copy a eclipse project, and need to delete all the .svn directories. When svn cleanup ./directory/path doesn't work.

Use in Terminal:
sudo rm -rf `find . -type d -name .svn`

pwd # see what directory your in
ls -la # see all the files including the hidden

Wednesday, April 7, 2010

GWT Horizontal Events Panel

Have you wanted to add event observation/Listening handlers to a panel? This is and easy way to observe events in a GWT HorizontalPanel. Gwt 1.6, 2.0, 2.01, 2.02, 2.03+...

// easy extend and observe mouse events on a gwt horizontal panel widget
public class HorizontalEventPanel extends HorizontalPanel implements HasMouseOverHandlers, HasMouseOutHandlers {

public HorizontalEventPanel() {

public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
return addDomHandler(handler, MouseOverEvent.getType());

public HandlerRegistration addMouseOutHandler(MouseOutHandler handler) {
return addDomHandler(handler, MouseOutEvent.getType());

Monday, April 5, 2010

MySql Connection Really Slow?

If your MySql connection is really slow? Do you think its JDBC or Bandwidth sucking the speed? Are you going crazy checking wireshark for packet problems? Did you see Malformed Packet? Has the server been on for months? Did you get an update?

Before you check all that, make sure your Reverse DNS is setup, so MySql can authenticate you fast. On linux, add your workstation to the list in /etc/hosts workstationHostName.

***** Check Reverse DNS ***** before you get into the deep debugging.

Trying out the Dart Analysis Server

I wanted to see how the Dart Analysis Server was put together and worked. I started looking to see how I could wire it up and try out the co...