Archive for the ‘java’ Category

iPhone Users…

Tuesday, January 8th, 2008

I’m considering buying an iPhone.  To those of you out there that have one….  are you happy with it?  What do you like about it?  What do you dislike?  Do you use a case with your iPhone or do you just stick it in your pocket (supposedly the thing can’t be scratched)?

Most importantly, is there a reason to wait on buying one?

Heading to The Spring Experience…

Monday, December 10th, 2007

I’ll be heading to The Spring Experience tomorrow morning. I’m very excited for many reasons. One that can’t be understated, is the weather and location of TSE, Hollywood, Florida! It’s cold and wet here in Dallas this week (30s - 50s, with rain all week).

Attending this year’s TSE will make me 3 for 3! Each one has been great, and I’m sure this one will be as well. I’m very interested in the Spring WS talks, as well as catching the Grails for Spring developers talk. The Spring Security talks should be good too, considering the the big improvements they just announced. I’ll definitely make a point to here Rod Johnson speak, at least once.

What’s everyone else that’s going to TSE excited about? Am I missing something new and exciting?

Lastly, if you read this blog, and we haven’t met, make sure and introduce yourself.  I like to put faces to the people who read and comment on this blog.

I got my Ubunut system fixed…

Thursday, November 15th, 2007

If you saw my post yesterday, you saw that my Ubuntu running laptop was in bad shape. My swap file was jacked-up. With the help from a friend and the Ubuntu forums I’m all fixed. Thanks…

The problem appears to be a bug in the Ubuntu upgrade process. My /etc/fstab file got messed up where is was defining my swap space. I had to comment out the entry the Ubuntu upgrade made:
UUID=c1adac93-3270-456a-885e-be98f9fb25bd none swap sw 0 0
And manually add my own entry:
/dev/sda5 none swap sw 0 0

After adding the new entry to my /etc/fstab I ran a couple swap cmds and rebooted and was in good shape.

sudo mkswap /dev/sda5
sudo swapon /dev/sda5

I’m not sure why the entry Ubuntu made was using the UUID. I’m not even sure what that is, but switching to the /dev/sda5 syntax worked. Should I open a bug ticket? Yes. Will I? Probably not.

Did I break my Ubuntu System?

Wednesday, November 14th, 2007

I’m afraid I jacked-up my swap space. Here is the output from a top:

top - 16:48:20 up 3:08, 3 users, load average: 0.24, 0.44, 0.69
Tasks: 131 total, 2 running, 129 sleeping, 0 stopped, 0 zombie
Cpu(s): 9.6%us, 2.6%sy, 2.8%ni, 82.9%id, 1.8%wa, 0.3%hi, 0.1%si, 0.0%st
Mem: 1025920k total, 1005672k used, 20248k free, 27768k buffers
Swap: 0k total, 0k used, 0k free, 406416k cached

I was thinking that there should be some numbers in the Swap row. The reason I’m digging on this is my machine starts to run like dog-crap after I have it running for awhile and this wasn’t the case as recent as a month ago. Yeah, I had to deal with the memory leaks in Firefox, but that just needed a bounce of one app. Lately, I’ve been having to bounce my whole box, almost daily.

I just posted something to the Ubuntu Forums, but I thought I’d ask here, too. Yeah, I’m no linux sysadmin, so go easy on me and just provide feedback. Thanks…

Testing new feed…

Monday, November 5th, 2007

Please excuse this test.  I’m “messing” with my feeds.

Is there a Spring dependency on Commons Collections?

Friday, September 21st, 2007

I know there isn’t a true, requirement, that projects using Spring use Commons Collections. However, when looking at various examples I’ve found some interesting output in my logfiles. Very early in my logfiles I’m seeing a ClassNotFoundException on org.apache.commons.collections.map.LinkedMap. The message is at the DEBUG level; so I guess the code is looking for a LinkedMap class, not finding it, throwing the exception, and then using something else, most likely a java.util.Collection Map.

The main reason I’m asking this question is I would like to know if there is a benefit, possibly in performance, that I can gain in using the commons-collections.jar? The same question can be asked for a possible need to include edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap which you can see is also causing a ClassNotFound exception to be thrown.

See the log output below:
2007-09-21 11:24:23,754 DEBUG org.springframework.util.ClassUtils - Class [org.apache.commons.collections.map.LinkedMap] or one of its dependencies is not present: java.lang.ClassNotFoundException: org.apache.commons.collections.map.LinkedMap

2007-09-21 11:24:23,754 DEBUG org.springframework.util.ClassUtils - Class [edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap] or one of its dependencies is not present: java.lang.ClassNotFoundException: edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap

I am seeing this behaviour with the latest production release of Spring 2.0.6, and Java 1.5.0_11 running a simple HelloWorld type example. Is anybody else seeing this? Does anybody know what the story is here? If not, I’ll make sure and find out in December when I’ll have access to the Interface21 guys while attending The Spring Experience.

[tags]spring, ClassNotFoundException, LinkedMap[/tags]

Spring Dallas User Group (SDUG) meets tonight…

Wednesday, September 19th, 2007

Just a reminder that the Spring Dallas User Group (SDUG) is meeting tonight. The key to this reminder is that we are meeting in our NEW LOCATION tonight. So as of today’s meeting the SDUG is now meeting at the offices of Improving Enterprises. More info on how to find Improving is on the SDUG site.

Tonight’s meeting, Successfully Scaling Java Applications in Spring, is being given by Patrick Peralta a Software Engineer for Oracle, specializing in Coherence.

All the details can be found on the SDUG site.

Writing code for the kids…

Sunday, September 16th, 2007

This evening I was having fun with Noah, my 5 yr old. He was rapid firing math questions at me. Stuff like daddy what is 10+10, 20+20, 40+40, etc. This went on for 5 minutes, and just when my head was starting to hurt Noah threw me a curveball. He asked what none+none was. Katie was quick to laugh off his question as silly and said that you can’t add none+none.

First I thought I was done with the math challenge, but I changed my mind and corrected Katie and said…. wrong mommy… you CAN add none+none. It’s called String concatenation. Noah was very interested in the idea of String concatenation so I fired up vi on my laptop and created this beauty in about 10 seconds to show him how to add words.

public class NoahStrings {
   public static void main(String[] args) {
      System.out.println(”none” + “none”);
      System.out.println();
   }
}

We spent a few minutes playing with different word combinations. I can say that was the first time I pair-programmed with a 5 yr old.

Rich Web Experience… Starts

Thursday, September 6th, 2007

I made it to San Jose last night for the Rich Web Experience, my bag didn’t, and had a good time at the speaker pre-party. No I’m not speaking, but I got invited and was glad to attend. Lots of fun, smart guys drinking beer and talking about all kinds of interesting stuff.

This morning I got my bag about 6:30am and got cleaned up and headed down for checkin and breakfast. The conf started with an expert panel, and then it was time for the sessions.

I’m currently sitting in a prototyping talk by Bill Scott. He’s covering a very interesting prototyping framework he created, protoscript. I leaned over and asked the guy next to me about using protoscript in “prod” and a little later someone asked Bill if it was possible. He said no as his JSON logic is double-parsing the protoscript code which makes it too slow for a prod environment.

I plan on hitting talks by David Verba, and James Ward as the day goes on. I’ll post some follow-up thoughts as I have time.

Going to Rich Web Experience next week…

Thursday, August 30th, 2007

I got the clearance from my boss to attend the Rich Web Experience next week. The RWE is run by the people that produce the No Fluff Just Stuff shows so I know it will be a top-notch conference. I’m looking forward to seeing some of my favorites from the NFJS tour (Venkat Subramaniam, Scott Davis, and Neal Ford) however, there are a number of names I haven’t seen present.

I’d love to get some recommendations from people that are going to RWE or have seen some of the other speakers that are presenting? I plan on attending James Ward’s talk, as I previously worked for a company that does a lot of Flex consulting, and I’m kind of a fan of Flex. I also plan on attending Keith Donald’s talk, looking for tips to better use AJAX in our Spring MVC apps here at work. Other then that, I’m not really dead set on what talks I’ll attend.

Another huge positive on attending the RWE is that my best friend lives very close to San Jose so I’ll be seeing him as he’s also attending the RWE. It will be strange spending time with him in a “learning environment”. Since college the only times we get together are for Vegas trips, weddings, or New Year’s parties.  We’ll try hard to save the beer drinking for the afternoon conference sessions.  :)