What I did at work today

Jun 10 2011
Aug 02 2010

Setting up a new work laptop

* Chrome
* Firefox
* Firebug
* Web developer tools
* Alfred
* TextMate
* AckMate, GetBundles, ProjectPlus
* GitX
* Inconsolata
* Homebrew
* Xcode and the iOS SDK
* Git
* Ruby Version Manager

Jul 28 2010
Feb 05 2010

Probably shouldn’t have multiple people switching tags in the same directory on a development server, but I still need to a place to put this:

chown -R :Domain\ Users . && chmod -R g+w .

Jan 30 2010

Things I should have already known but instead learned while writing a JavaScript book

  • string.match(regexp) and regexp.exec(string) don’t do the same thing when it comes to global pattern matching.
  • event.currentTarget is the element that is listening to the event, so you don’t have to rely on this.
  • The beforeunload event.
  • The difference between keyCode and charCode.
  • How cookies work (!)

This list will grow.

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, i, l;
	for (i = 0, l = this.length; i 

Edit: Wow, I went months before realizing that these didn't actually work. Fixed. 

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).

Page 1 of 6