Archive for the ‘java’ Category

I Disagree With Wayne Beaton

Thursday, May 24th, 2007

Wayne Beaton had a post on his blog the other day where he goes into a 1000 word essay trying to answer the question, “What is Eclipse?” I have to disagree with him and say, “Nope, Eclipse is just an IDE.” It’s a great one, an awesome one, but it’s just that, an IDE.

Linux/Unix find command question…

Wednesday, May 23rd, 2007

I have a nagging question related to the Unix/Linux find command. When I do a find with an -exec rm -rf I get a bunch of messages back saying ” find: `<what I found>’: No such file or directory”. My problem is that that message is garbage because find DID find what I asked it to find. It found it and successfully ran the -exec command on it. I can do an ls and prove it.

So digging a bit further I see something interesting. If I add the -v flag to my “rm -rf” I get a verbose listing of what rm is doing. So somebody please explain this… You can look at the output below if you don’t believe me. Why does find drill down into a dir tree. Do what I asked it to with the exec, in this case run the rm. Then immediately run a find on the file it just found and rm’ed???

eweibust@CWXPTDV6N02U $> find . -name “.svn” -exec rm -vrf {} \;
removed `./.svn/empty-file’
removed `./.svn/entries’
removed `./.svn/format’
removed directory: `./.svn/prop-base’
removed directory: `./.svn/props’
removed `./.svn/README.txt’
removed `./.svn/text-base/pom.xml.svn-base’
removed directory: `./.svn/text-base’
removed directory: `./.svn/tmp/prop-base’
removed directory: `./.svn/tmp/props’
removed directory: `./.svn/tmp/text-base’
removed directory: `./.svn/tmp/wcprops’
removed directory: `./.svn/tmp’
removed directory: `./.svn/wcprops’
removed directory: `./.svn’
find: `./.svn’: No such file or directory

It makes no sense. Either way, that is why I get the annoying “No such file or directory” error message back. No kidding you couldn’t find “whatever”. You just found it and rm’ed it. Jeez.

Is there a way to suppress this behaviour? Am I using find/rm incorrectly? Am I nuts for obsessing over this?

JavaMUG, Grails, Tonight…

Wednesday, May 9th, 2007

Don’t feel bad if you’re not at JavaONE.  If you live in the Dallas/Ft. Worth area come to the JavaMUG meeting tonight.  Scott Davis‘ talk will show you how to get started with Grails, but also talks about the experience of using it in a live, production web site.

Unlike JavaFX, Groovy and Grails are proven technologies, getting good traction all over, in business big and small.  Come to tonight’s meeting and learn all you need to get started with Grails.

If you’d like more info on what, when, and where hit the JavaMUG website.

Should I use Automatix…

Monday, May 7th, 2007

I’ve just recently purchased a new laptop. I’ve installed Ubuntu and now I’m getting around to installing/tweaking the OS. Adding the missing multimedia “stuff”, installing Flash, Java, etc.

My question is what do people think about Automatix? The guys behind UbuntuGuide don’t recommend using it, but I’ve seen a dozen or more sites that say how great it is.

Has anybody had any problems with it? Is there an easy way to do what the Automatix people are doing with simple “apt-get” commands?

Please let me know…

Come learn about Maven tonight…

Wednesday, April 18th, 2007

… at the Spring Dallas User Group.

Ryan Breidenbach is giving his No Fluff Just Stuff Maven talk “Harnessing the Power of Maven

Must have/read Java books…

Wednesday, April 18th, 2007

I was tasked with providing my favorite bookstore’s owner with a list of Java-related books he should always have in stock. The list I’m giving him is of books I put in the “must have” and/or “must read” category. My list is shorter then I thought it would be.

  • Effective Java - I put this in the “absolutely must read/have” category. This book is the king of Java best practices book. If you don’t own this, buy it, or at least borrow it and read it. Full of amazingly helpful coding advice.
  • Java Development with Ant - As far as I know this was the first book on Ant, I’ll vote it as the best. And for the longest time, the book was timeless considering there was never a second edition written. However, Ant in Action is coming (new name, but really a second edition) so you might want and get it.
  • Head First Servlets and Jsp - This book I can easily call my favorite technical book I own. Learning the details of the Servlet API was never more fun. I just pulled this book out last week to answer some servlet related questions/best-practices. Yes, the book isn’t a reference manual, but it’s awesome for learning purposes.
  • Java in a Nutshell - This book really shouldn’t be on my list, but when I was learning Java back in 1999 I used the hell out of this book. Monitors were small back then and you couldn’t afford to keep the online API on your screen. I thumbed through my nutshell book constantly.

After looking back at my list I realize it’s more of a “must have” not “must read” list.  If it was a real must read list it would have stuff like the GOF book.  I would have put a couple Spring books on the list, as a Spring developer, but I’m writing a more generic list and for some reason everyone isn’t using Spring.

Anyhow, I’d love to hear what’s missing from my list.  Feel free to comment-away.

Overheard in the cube farm…

Friday, April 13th, 2007

What, “You don’t have IntelliJ money lying around to upgrade your IntelliJ?”

The last couple days we’ve been using the new term “IntelliJ money” when we’re talking about spending a big chunk of change on something. So it was especially funny when our resident IntelliJ guy made the comment that he couldn’t believe there was a new version. I said any real IntelliJ fan would have the latest and greatest. My buddy said he can’t afford to upgrade. I had the perfect opportunity to drop the double IntelliJ quote.

Dallas Java User Group is gonna get Groovy…

Tuesday, April 10th, 2007

Tomorrow evening, Wednesday, 4/11, Dr. Venkat Subramaniam from Agile Developer will be presenting a Groovy talk for the Dallas Java User Group (JavaMUG).

Venkat is a regular speaker at conferences around the world. You might have seen him speak at a Dallas stop of the No Fluff Just Stuff symposium. Venkat has spoken at JavaMUG meetings in the past as well as the Spring Dallas User Group.

If you are in the DFW area come and see Venkat cover a very exciting topic, Groovy. If you want to prepare for the Groovy talk check out aboutGroovy for more info, tutorials, and tons of other good stuff.

Spring Dallas UG Meets Tonight…

Wednesday, February 21st, 2007

The Spring Dallas UG meets tonight at 7pm at Nerdbooks.  Tonight’s meeting will be great.  Venkat Subramaniam is flying up to give his “Spring into Unit Testing” talk.  If are in the Metroplex and want to learn about Spring and Unit Testing please make tonight’s meeting.

JBoss ON the Road

Tuesday, February 20th, 2007

Today I attended the JBoss ON the Road stop in Dallas, TX. I have to say it was a great seminar. It was well organizied, the presentations were better then good, and no time was wasted (we installed JBoss ON during lunch).

The schedule looked like it was geared to Application Server admins, but the last session really got my attention (more on it further down this post) so for the price (it’s free) I thought I would attend.

The main point of the seminar, in case the name doesn’t give it away, was JBoss wanting to show off their ON (Operations Network) product. Let me say, I was very impressed with this product. It’s a very slick web-based monitoring tool that includes an interface for doing a ton of admin tasks, also.

You install the server piece to ON on one box and the clients on your other boxes. The server will auto-detect a lot of servers (JBoss AS, Tomcat, etc) and then you go and set up all kinds of alerts for those servers. I won’t go into any more detail here, but I’d recommend you read the info on the JBoss site.

I must add that my excitement for JBoss ON was really high when I read about JBoss open sourcing the ON product, but then one of the speakers rained on my parade by saying he wasn’t sure about the open-sourcing details, and didn’t think the whole product would be release for free. I’m going to enquire on the specifics of the open sourcing announcement.

Easily, the highlight of the seminar was the final session by Chris DeLashmutt on Performance Tuning JBoss on Linux. The session is the main reason I attended because I have worked/work with a client running JBoss on Linux and need some pointers on tuning the install. Chris’ session was SO MUCH MORE then tuning JBoss.

The Performance Tuning session was really a server agnostic talk (until the very end) on how to design, test, deploy, and tune Java/J2EE distributed applications. Chris did an outstanding job talking about tuning garbage collection, the heap, and the jvm stack with the various jvm parameters. He gave a top notch discussion on the specifics of the various garbage collection options and when to use them.

The perf tuning session was 90 minutes of goodness. So good I talked to Chris and the event coordinator about bringing somebody, hopefully Chris, back to Dallas to do the talk for JavaMUG.

Good times…