doodle dabbles

a little nerdery for everyone

Archive for June, 2009

Netstat is your friend

without comments

Every now and then, you need to run a server like JBoss, whose services bind to a handful of default ports (1099, 1098, 8080). And occasionally, you get a JVM_Bind error for these ports:

java.net.BindException: Address already in use: JVM_Bind 
Cause: java.rmi.server.ExportException: Port already in use: 1098;

The first (and more obvious) solution is to check that there isn’t already an instance of JBoss. Once you’ve made sure (by killing all java.exe/javaw.exe processes), how do you find out what program is still listening on a particular port?

Netstat will help you there.

Read the rest of this entry »

Written by Ashish

June 15th, 2009 at 9:00 am

Posted in Uncategorized

Working on Remote Files in TextMate with SSHFS

with 2 comments

I’ve been developing Wordpress templates for a client lately and it helps to have the templates directly on the server so I can work easily with the designer and she can see all my updates immediately. So this is what I want to be able to do:

  • Edit files on the server in a secure way
  • Use Textmate or a local editor
  • Not have to run rsync or any sync/upload utility

Enter MacFUSE (and MacFusion) and SSHFS.

Read the rest of this entry »

Written by Ashish

June 9th, 2009 at 6:30 pm

Posted in Uncategorized