What I did at work today

Dec 15 2009
PhotoAlt

Yep.

Dec 08 2009

Similarly ...

$.fn.tallest = $.fn.tallest || function(outer, margins) {
	var fn = outer ? "height" : "outerHeight";
	return Math.max.apply(Math, $.map(this, function(el) {
		return $(el)[fn](margins);
	}));
};

$.fn.widest = $.fn.widest || function(outer, margins) {
	var fn = outer ? "width" : "outerWidth";
	return Math.max.apply(Math, $.map(this, function(el) {
		return $(el)[fn](margins);
	}));
};
EDIT: Math.max.apply(Math, array), not Math.max.apply(null, array) for IE6. EDIT 2: $.map doesn’t call the function in the context of each object, but instead passes it as the first argument. Arg.

+

I keep writing this

$.fn.maxWidth = function(outer, margins) {
	var o = 0,
		fn = outer ? "width" : "outerWidth";
	$.each(this, function() {
		o += $(this)[fn](margins);
	});
	return o;
};

$.fn.maxHeight = function(outer, margins) {
	var o = 0,
		fn = outer ? "height" : "outerHeight";
	$.each(this, function() {
		o += $(this)[fn](margins);
	});
	return o;
};

Jun 18 2009

From a colleague working on a site audit:

<div class="SeoSection">
<!-- Search Engine Optimization //-->
<h1>Overview</h1>
</div>
+

davidkaneda:

What is a Browser? (via jibyollee)

I went to school with that guy (the one with the microphone).

Jun 09 2009

Some math

Spreadsheet 1: 1562 rows x 2 prototypes
Spreadsheet 2: 2744 rows x 2 prototypes
Spreadsheet 3: 815 rows x 2 prototypes

Add it all together and I have to copy and paste 10,242 links into these templates for user acceptance testing. Shoot me now.

May 23 2009
May 14 2009

Worst. Project. Ever is almost over.

In the meantime, I enjoyed exploring the JavaScript architecture ideas from Jim Benton and Yehuda Katz. I have a simple state machine going, and it has some nicely declarative logic definitions. I need to see how well it scales to the type of UI work we tend to do here.

May 06 2009

Today, I’m working:

  • in a Java/Maven environment in Eclipse for mac, off of a Viacom VPN, porting over static code from another Subversion repository,
  • on a borrowed Dell laptop in XP working mainly in MS Office on a proprietary Microsoft mobile platform on an extra-slow Microsoft VPN,
  • on my work iMac, but mostly just to use Outlook in Windows XP in VMWare,

and I’m escaping to my personal macbook when I just can’t take it anymore.

May 05 2009

var a = 'You can start here \
and continue here \
and then finish it up here.';
via Snook

Page 1 of 6