Checkout the Last Public Revision with Mercurial
I've always preferred git over Mercurial (
hg) because the feature branch workflow makes organizing code and working off of master very easy. You don't get that with vanilla mercurial -- instead, commits can just sort of apply on top of each other, without much organization. Sometimes mercurial can feel a bit chaotic.
When working on Mozilla's mozilla-central repository (for your beloved Firefox!), I always start new commits off of the latest public commit. "public means it has been merged into mozilla-central, "draft" means it was created locally and is only on my machine.
Getting the last public revision ID required a bit of command line hackery and search so I found a better way to check out the last public revision:
hg checkout -r 'last(public())'
That command is a bit much to remember so I created an alias in my
alias hgmaster='hg checkout -r “last(public())”’
As with every alias I create, whether a git alias or a bash alias, I wish I had created this sooner -- I'd have saved so much time!
One of the worst kept secrets about AJAX on the web is that the underlying API for it,
XMLHttpRequest, wasn't really made for what we've been using it for. We've done well to create elegant APIs around XHR but we know we can do better. Our effort to...
Theming has become a big part of the Web 2.0 revolution. Luckily, so too has a higher regard for semantics and CSS standards. If you build your pages using good XHTML code, changing a CSS file can make your website look completely different.
Step 1: The XHTML
The block of content that will change is...