TREO 650’s and Pocket size

I was talking about the cost and size of TREO 650’s, and made the statement that these devices don’t fit in pocket’s well. TREO 650 dimensions: 4.4 x 2.3 x 0.9 inches (11.3 x 5.9 x 2.3 cm), and 6.3 oz. (178 grams).

I then went further to say that Pocket size is in direct relation to your height. I think this is a transitive property. For example, the pockets on a little person’s pants should be smaller than a person of 5’8″ in height. The 5’8″ individual’s pockets should be smaller than a 7’5″ person’s pockets.

Long story short, I was mocked for saying the stupidest thing ever. Is there anyone out there who thinks this might be true?

Posted in General | 4 Comments

MIT Weblog Survey

Take the MIT Weblog Survey

Take the survey, it’s pretty interesting. It takes about 5 mins.

Posted in Time Waster | Leave a comment

State Management with the Http Session

If you’re using a MVC web framework, such as WebWork or Struts, you might have had to store long-term state in your Http Session. At my job, since we do not use Stateful Session Beans, this is common. So, the solution in place was designed to do the following:

  • Allow requests to transport state to subsequent requests without having to add each trivial (String) value as a hidden field on the view.
  • In addition to the above, the non-trivial values do not work well as hidden fields.
  • Discontinue the manipulation of multiple JavaBeans in the view. Depending on the complexity of the screen, and the number of beans involved this could become overly-complicated.

Moving away from the items listed above, and providing a cleaner and reusable way to transport long-term state between requests is fine. The issue I am most concerned with is the size of the Http Session. I understand that it’s mid-2005, and memory is not as large and expensive as it once was. However, this shouldn’t give developers license to just shove things into the session, and hope for the best. Here are some reasons why:

  • Unused objects will sit in the Session until the session is invalidated.
  • Garbage collection will never occur for the unused objects mentioned above.
  • Based on the application’s complexity, this could lower performance.
  • In general, you keep your session size as small as possible; Brown and Botzum say 2K is the suggested size, but I think that’s unrealistic.

IBM’s Brown and Botzum, suggest using transient for fields that will not be persisted, and having all items being added to the Http Session implement Serializable. This makes sense, but what if you are handling Hibernate objects? The transient keyword will not help much. Aside from reloading data each and every time you need it, the best option seems to use a StateBean of some sort. However, instead of just solving the basic problems of transporting long-term state, this StateBean should provide the following:

  • The ability to decipher between event sensitive and insensitive state.
  • The ability to set a space limit for event sensitive state.
  • When new state is being bound and the space limit has been reached, remove old event sensitive state so that unnecessary heap use does not occur.

The limit of event sensitive state should be fairly small, allowing for just a handful of unrelated use-cases to occur before stale state is removed. If implemented properly, there should be at most one StateBean per Http Session. Keep in mind, if a developer wishes to place items that should be easily accessible during the entire Session, they still can.

Posted in Technical stuff | 3 Comments

patterns in action

I’ve been thinking about starting a web app project. I came up with a bunch of horrible ideas, but I think this one is good. There are millions (might be an exaggeration) of UML diagrams explaining design patterns. I think having a visual representation… or better yet a reference implantation would be even better. Some benefits of this would be the ability to run these examples, and then mimic them. This is assuming these implementations are all correct.

Not really sure how to start something like this, but I’m going to give it a try. I think concentrating on the Gang of Four book. That will be a strong start. The site will simulate a factory that produces various Widgets. The company name will be WidgetCom. Yeah… we’ll see how this goes.


Actually, this was a stupid idea. Not gonna do it. Thinking of something else.

Posted in Technical stuff | 1 Comment

never dying

the article.

The concept above is really in its early stages. However, think about the possibilities of never dying (if you could afford it, of course).

I think this could lead down a very dark road. Could a person then live forever? If so, would we stop having children because of the implicit overpopulation? Would wanting to die and old age become tantamount to commiting suicide?

What about the after-life? What would be the real draw if you could live till whenever you chose, and actually enjoy that wealth you’ve been hording?

I guess each person will have to make that descion when the time comes.

Posted in General | 2 Comments

First Post

Hey, I just started this this. Had a horrible site, this wont be much better, but hey. So, yeah… Ok, i’m done typing. I’ll write junk later.

Posted in General | Comments Off on First Post