Joe Moore's blog



Standup 9/17/2008: IE is so Web 1.0

edit Posted by Joe Moore on Wednesday September 17, 2008 at 04:27PM

Interesting Things

One client decided that Web 2.0-style rounded corners are only needed in Firefox and Webkit-based browsers because they are "free" with CSS properties built in for those rendering engines: -moz-border-radius and -webkit-border-radius. Internet Explorer is going to be left in the 1.0 world, at least for now, due to the over head of managing rounded corners.

Feel free to promote your personal favorite rounded corner techniques in the comments.

Standup 9/16/2008: Hiding divs, Hpricot hates Windows

edit Posted by Joe Moore on Tuesday September 16, 2008 at 04:31PM

Interesting Things

Ask for Help

"We need to hide a flash widget without setting it to display:none, which causes it to be loaded from the server again when display:none is removed."

Hit me with your div-hiding techniques!

  • Move it off the screen with position:absolute; left:-9000px
  • Shrink it down to nothing with visibility:hidden;height:0;width:0 but watch out for any IE 6 minimum height/width issues
  • Similar to the above, hide it with width:0;overflow:hidden;

Standup 09/08/2008

edit Posted by Joe Moore on Monday September 08, 2008 at 05:02PM

Interesting Things

  • As suggested in 09/03, one project switched to using Solr for search indexing. We were warned that wide range queries might be slow (looking for a value between 1... 10000) could be very slow, but it is not, at least with 400K indexed documents. We'll watch out for slowdowns as the number of indexes increases.

Ask for Help

"JSUnit tests do not show line numbers for assertion failures, which makes it hard to know which assertion failed. Suggestions?"

Have fewer assertions per test, or use the message argument, such as assertEquals(foo, bar, 'foo should be the same as bar.').

"Is there any way to see test failure stack traces as soon as a test fails or errors? This would be especially nice for slow-running Selenium tests."

A few Pivots remember hacking on Test::Unit and Rspec to display failure details immediately, but more research is needed. Perhaps there's a plugin?

"Design Adam's beard!"

Pivot Adam is shaving is beard and is looking for facial hair suggestions. Over the years he has displayed many of the "standard" beards and mustaches, so it's time to get creative. Look to The Quest For Every Beard Type for inspiration. Here is your canvas:

Standup 09/04/2008

edit Posted by Joe Moore on Thursday September 04, 2008 at 05:11PM

Interesting Things

Ask for Help

"Is there something wrong with Net::SSH in the latest versions of Capistrano? I can't deploy to localhost..."

Not that anyone knows of. Have you tried turning it off and on again? The power button... it's the little glowing button on the front... the button on the front... Are you from the PAST?

"Is there a good ruby Gem or Plugin for working with the Google Charts API?"

One pair used gchartrb but abandoned it almost immediately. So far, it's string << string << string.

"How do you use Javascript included in a Desert plugin? Is it included automatically with Desert-magic?"

Unfortunately not. Desert plugins should have an install.rb that copies the Javascript to the public/javascripts directory in your project, but few actually have this (at least at Pivotal.) For now you have to copy any Javascript into that directory yourself.

Standup 09/03/2008

edit Posted by Joe Moore on Wednesday September 03, 2008 at 04:16PM

Interesting Things

  • MySql only allows indexes on 64 columns per table. This is a hard limit, set in the header file, and therefore can't even be changed at compile time without editing that file first. It was suggested that anyone who wants more than 64 indexes should not be using a database for searches anyway -- use something like Solr instead.