Remove Close Tag Binding in Sublime Text 3

Update: Turns out there is an option I overlooked in the config, so all that actually needs to happen is this line needs to be added to your sublime settings file "auto_close_tags": false

Sublime Text 3 auto closes tags when you use type </ which I don’t like  since I’ve usually finished typing the tag name by the time the completion has run, so I disabled it using this key binding. You can’t use the usual `unbind` as the command because it disables your / key.

The Conscience of a Hacker

Another one got caught today, it’s all over the papers. “Teenager Arrested in Computer Crime Scandal”, “Hacker Arrested after Bank Tampering”… Damn kids. They’re all alike. But did you, in your three-piece psychology and 1950’s technobrain, ever take a look behind the eyes of the hacker? Did you ever wonder what made him tick, what forces shaped him, what may have molded him? I am a hacker, enter my world…

via .:: Phrack Magazine ::.

Interesting piece on how hackers think.

Downloading Older Versions of WordPress Plugins

A while back I needed an older version of the Facebook plugin. Searching brought but a few posts about an older versions link that doesn’t seem to exist in the plugin interface anymore, but it turns out that the plugin version is in the url of the download. All you have to do is copy the download url to your clipboard.

Then modify that url to have the version number you want.

Abnormal media query handling in Fire Fox

As of CSS 2.1 you can target your css at specific media conditions, but Firefox seems to handle them strangely. It includes the visible vertical scroll bar in the calculation of the width instead of the actual display width itself. This means that while javascript may return one value for screen width your media queries will receive a different value.

The above image uses a stylesheet with this media query

When javascript returns a window width of 890 the media query receives a value of somewhere around 907, and the styles aren’t applied until the window width is actually 873

Firefox is actually following the W3C specification for CSS2.1 when it does this.

The ‘width’ media feature describes the width of the targeted display area of the output device. For continuous media, this is the width of the viewport (as described by CSS2, section 9.1.1 [CSS21]) including the size of a rendered scroll bar (if any).

This seems like a strange way to handle a query for the window’s display width since to me the scroll bar is not part of the display area. It also makes it harder for designers/developers because scrolbars are sized inconsistantly across operating systems. There is a difference in how this works between my Macbook and my windows desktop. The action that makes more sense to me is how webkit browsers handle this. @media receives the visible with of the browser excluding the scroll bar making things consistent.

There is another odity in Firefox’s handling of width values in @media. On some pages it seems to function like webkit where it renders using the visible content area without the scroll bar. I created some simple test file with this css one file includes it inline and one links to it.

And things function as expected. The media queries are passed the width of the visible screen.

Granted the two sites are very different but so is the behavior.


Drive is an interesting books that talks about what motivates us. Dan Pink goes through and talks about a lot of the studies on human motivation and behavior. Showing that the main motivation for people isn’t so much the if you do this you get rewarded if not you get punished. It is actually a drive for self control and interesting work to do.

Most of the book is focused on what motivates us in the work place. He makes reference to companies like Google and Atlassian and their 20% time. Which allows employees to spend 20% of their time working on what ever they want with who ever they want. This time actually produces many new products and a lot of bug fixes for existing products.

Dan also talks extensively about how work using this type of motivation is of a higher quality than other types. He makes reference to Wikipedia putting Encarta out of business, and the extensive use of Linux and other open source tools.