Recent Geek News
I wrote a very thorough comment in response to the rather (unfortunately) ignorant and inflammatory blog post on DailyJS titled Static Site Generators for Yeoman, but it seems to have mysteriously disappeared. I didn’t intentionally delete it, at least.
Either way, here’s my original comment, in case you may have missed it.
Instead of posting a super-long comment on his blog, I figured I’d respond to his comments here.
You know the new Apple Retina MacBook Pro laptop? The one with the super-high resolution display? Well, I got one last week, and I spent all weekend updating my dotfiles to work with OS X 10.8 (Mountain Lion). And after a lot of wrangling with XCode, I finally managed to get everything working. Well, almost everything.
While using Gyazo, I’ve encountered one particularly annoying “Retina” related issue. I posted an article a few years ago about running Gyazo on your own server, and ever since then I’ve been running Gyazo without a problem. The first time I used it on the new laptop, however, I noticed that something odd was happening: every Gyazo screengrab on the new Retina screen was about twice as big as I expected.
Note that while this article addresses an issue within the context of using Gyazo, because it’s more of a general OS X issue, the solution presented herein can be useful in similar scenarios.
Quod erat demonstrandum.
Even though I initially released jQuery BBQ in late 2009, the plugin has actually been many years in the making. While it started out as a little snippet of code that almost every web developer, at one point or another, has written, over time it evolved into something much larger.. and much tastier.
In this article, I’ll not only explain how jQuery BBQ came to be, but I’ll also give you some things to think about, in case you’re considering writing a jQuery plugin.
Note: he might actually be Chuck Norris, we’re not entirely sure.
I recently encountered an odd behavior in WebKit while testing jQuery BBQ on a page that lived in an Iframe. What I initially thought might be a bug in jQuery BBQ actually appears to be a bug in Webkit, so I set up an example page that shows how location.hash browser history breaks in an Iframe, in WebKit, Safari, and Chrome.
Today, when I started BBEdit, it asked me if I wanted to update to the latest version (9.3), and after it installed, I was greeted with a lovely surprise: there is now an option to set “Invisible characters” colors in the preferences!
Apparently, Rob Griffiths posted about this on Macworld shortly after I posted it to my blog and to Mac OS X Hints, which must have given it a bit of traction. Unfortunately, I didn’t get a link back to my original post, but the end result is the same.. the feature is now officially in the app!
Thanks, Barebones, for a great product!
A jQuery BBQ user came across a rather interesting behavior in Firefox the other day, so I set up an example page to test things out.. and it turns out I’ve either encountered a completely useless “feature” or a legitimate (and annoying) bug in Firefox when setting
location.href in a remote XMLHttpRequest callback.
A while back, Paul Irish turned me on to gyazo, a very small, very simple, very free app that allows you to very quickly share screen captures over the web. It works by first using the operating system’s own screen capture tools to snap an image of a region you specify, then it uploads that image to gyazo.com, opening it in your web browser. The URL is even copied to the clipboard afterwards.
Well.. almost perfect. Because of firewall restrictions, I found that gyazo.com was blocked for some of my friends, so they couldn’t see my screen captures. Also, I really liked the idea of uploading the images to my own server, so that I’d have full control over them.
So, that being said, I decided to crack open gyazo.app (Right click, Show Package Contents) and see if there was anything I could do to change that.
So I’m currently sitting in a room at the Microsoft NERD center, in a room with a few hundred other jQuery developers, listening to Yehuda Katz give a talk on jQuery best practices. I’ve seen some great talks this weekend. Steve Souders gave an excellent talk on maximizing front-end performance, John Resig gave a great talk on upcoming changes to jQuery 1.3.3, Paul Irish gave a few very successful talks on jQuery anti-patterns and custom web font usage, and Rebecca Murphey is coming up next with her talk on organizing your code using object literals.
I actually did a thirty minute breakout this afternoon, called “jQuery plugin creation: organization, generalization, minification, optimization, gratification,” which seemed to be well-received, even though I felt a little rushed. Either way, very soon I’m going to put it all together here as a series of posts (and eventually screencasts) for everyone.
Today was my first time speaking like that in front of a group of people, so that’s a great thing. And next year, I’ll definitely put more material together and try to do a “real” session in one of the big rooms. I’ve already got some great ideas.
In case you missed it, my presentation is available, after the jump.
[Edit: I just posted my conference photos]
Our code, along with other improvements, has been incorporated into the now-final 1.0 release, so check Modernizr out now!