Showing posts with label disappointment. Show all posts
Showing posts with label disappointment. Show all posts

Tuesday, May 26, 2009

GWT FlexTable bug

Just faced a complex and really bad bug with GWT's FlexTable.

It tends to forget about the cells removed! So, if I remove some cells, and then add some more, the old ones randomly appear.

Problem is that I was developing really complex layout with dynamic cell manipulation and hard use of rowspan/colspan. And spent 4 hrs fixing algorithm :( :( :(..

Technical details
  • Methods FlexTable::clearRow() and FlexTable::clearCell() seem to be broken (at least in GWT 1.5). They do their job, but sometimes deleted cells reappear in table. That's frustrating.
  • This is also stated on the Google code tracker : Issue 1766
  • I avoided this problem by replacing calls to clearRow and clearCell to FlexTable::clear(). Yes, that's a heavy solution - but it did fit for me :)

Tuesday, August 19, 2008

Time, endless short time

KISS.
We have all heard of this principle, we try to use whenever we can.
There are tons of books about programming that use this principle - XP KISS system design, KISS code, which is easy-readable.

I have spent about 3 hours fighting with Ubuntu sound systems. I have discovered that there are several different sound servers/systems/modules that do use sound devices on different level of abstraction and HAVE NO COMMON INTERFACES.

Know what? My sound disappeared: I could not call with skype, I could not listen to music; no sound at all. I tried to revert to the original configuration, back and force - no sound at all.

And know what the problem was? My pcm device was muted in the mixer. I spent few minutes checking and fixing that. And three hours finding out what the hell is going on.

So, KISS.