Archive for February, 2006

My Personal DNA

Tuesday, February 28th, 2006


My Personal Dna Report

Microsoft Origami

Saturday, February 25th, 2006

Microsoft has opened a viral marketing site about something called Origami. It was discovered by Design Tastes Good, they sent an email to Scoble with questions and Scoble responded in his snobby manner “I know everything, but I can’t say it to you”. And not the hell broke loose.

Engadged posted the pictures of the future gadget, but denying the validity. Todd Bishop remembered the Bill Gates’ WinHEC speech about new device, and Transmeta’s announcement about some agreement with Microsoft.

I hope that Microsoft will create something really useful and with neat design. What I need in such device is:

  • It should be small. Preferably fits on one palm
  • It should have keyboard. Even if it has touch screen - I ltype much better, than scribble.
  • USB 2.0 connector/charger
  • Bluetooth and Wifi.
  • If it has IrDA - it’s beam must be strong enough, so I can use gadget as remote control
  • No special (iTunes like) software required to connect to device

Sun at Blizzard Beach

Wednesday, February 15th, 2006

I like this picture very much. It reminds me of good old times, when I was living in Miami…

Keeping phone call records

Wednesday, February 15th, 2006

Ramit Sethi writes about capturing and keeping a records of every calls to customer services and provides an Excel file to do that.

This is wonderful idea. I do some of the call notes in my Moleskine, but never though of having Excel of Word file for this purpose.

Firefox memory tweak

Tuesday, February 14th, 2006
Make sure that Firefox frees memory when minimized.

Technorati Tags: ,

Filenet does exception handling - 2

Tuesday, February 14th, 2006

Week ago I wrote about unusual way of handling exceptions in Filenet Workplace.

Today I found another "gem":

JAVA:
  1. try
  2.            {
  3.                invokeNamedEvent(eventName, uiModule, request, new WcmEventResponse(response, this, okToRedirect));
  4.  
  5.                // If a non-null return value was returned from the invoke, check for true/false.  If the
  6.                // result matches "false", set the redirect flag to true indicating to cancel processing
  7.                // of the page.
  8.                Object result = request.getAttribute(INVOKE_RETURN_VALUE);
  9.                if ( result != null  result.toString().equals(String.valueOf(false)) )
  10.                    sendRedirectCalled = true;
  11.            }
  12.            catch (Exception e)
  13.            {
  14.                throw e;
  15.            }

Why to catch an exception here? And why string comparison is used when Boolean has a constructor with the String parameter?

It seems that Filenet doesn't use any of code review procedures internally. Developers just hack the code all day, make no comments and only two of them really understand the whole Filenet Workplace system. Or it was written long time ago by developer, which left the company, and nobody has time and/or will to do a proper system.

Technorati Tags: , ,

dotcoms and Web 2.0: history repeating

Monday, February 13th, 2006

I was thinking about Web 2.0 and found some similarities between them and dotcoms:

dotcoms Web 2.0
Generated a lot of ideas revolving around web enabling of normall stuff Generate a lot of ideas revolving around web enabling of normall stuff
Generated some ideas and generated a lot of copies of the same ideas Generate some ideas and generated a lot of copies of the same ideas
Nobody thought of generating revenue from ideas Nobody thinks about revenue
Most of the sites were maid to be sold to venture capitalits Most of the sites are maid to be sold to survived dotcoms

History repeating, huh?

Technorati Tags: , ,

New gadget

Thursday, February 9th, 2006
OpenPeak.com

Remote control with WiFi support - the way to go. The remote control should understand modern devices and be able to sense all of them and get useful metadata: song names, volumes, etc...

Dozer - object to object mapping tool

Wednesday, February 8th, 2006

Dozer - about

This one looks like very promising solution when I will need to convert normal Java beans to Filenet's property bags.

Technorati Tags: , , , ,

This is how exceptions are handled

Tuesday, February 7th, 2006
This is how WcmController.java, the "Controller" part of FileNet Workplace's implementation of MVC pattern, handles exceptions:

First, declare this:

JAVA:
  1. private Exception            configureWindowIdException = null;

Then, in ConfigurePage function, do this:

JAVA:
  1. public void configurePage(ServletContext applicationValue, HttpServletRequest request, long windowIdMode)
  2.       throws Exception
  3. {
  4.           ... skipped ...
  5.       configureWindowId(request);
  6.  
  7.       //  If configureWindowId constructed an exception, throw it.
  8.       if ( configureWindowIdException != null  )
  9.       {
  10.            if ( !sp.isSignedIn() )
  11.            {
  12.                // We attempted to propogate a window Id when not signed in
  13.                // probably the result of signing out of an info page.
  14.                // Don't throw.  Fix the windowId to mainWindow instead.
  15.                //
  16.                WindowID assignedId = new WindowID(null);
  17.                WindowID currentId  = new WindowID(null);
  18.  
  19.                assignWindowId(assignedId, currentId, false);
  20.                configureWindowState();
  21.                postProcessWindowId(assignedId, currentId, currentId,
  22.                                    false, false, false, false, false);
  23.            }
  24.            else
  25.                throw configureWindowIdException;
  26.       }
  27.           ... skipped ...
  28. }

What about good old try-catch?

There is no proper exception handling in Workplace. Should I send this piece to The Daily WTF?

Technorati Tags: ,

Bad Behavior has blocked 45 access attempts in the last 7 days.