Alan Hogan
These are my comments on music, movies, books, web development and programming, Mac tips, and life in general. Enjoy!
Julian Casablancas hasn’t made me cry yet. But damned if it hasn’t gotten close. (Also, his album is only $5 on Amazon. Yes, that’s an affiliate link. No, I’m not posting this for the 1¢ I might make off my two followers.)
Take all your plans, pretend they fell through.
But that’s what it’s like
That’s what it’s like for most people in this world. Julian Casablancas, Out of the Blue
lyrics
jQuery confirmation dialogs
The coolest jQuery snippet I wrote in a while (sorry about the wrapping):
$('.users form.delete, .user form.delete'
).submit(function(){
var name = jQuery(this).parents('.user-details').find('.user-name'
).text().replace(/^\s*(.*\S)\s*$/,'$1');
if(name==''){name='this';}
return window.confirm('Are you sure you want to delete '+
name+'?');
}).append('<a href="javascript:void(0)" '+
'class="delete_btn_surrogate">Delete</a>'
).children('input[type=submit]').hide();
$('form.delete a.delete_btn_surrogate').click(function(){
jQuery(this).parents('form').submit();
});
It looks for the name of the person (user) being deleted, in the markup, and inserts it into confirm() dialog box. This works on two completely different pages, the list of many people, and the specific page view for one person. It feels like I invented my own microformat.
Browser market share
Internet at large: <10% Webkit* traffic
My website: 40% Webkit traffic
The point is, when someone like FontFont says that by covering IE and Firefox, they have compatibility with 90% of the Internet, that in no way means they have compatibility with 90% of your target market or visitors.**
* Safari and Chrome are the primary Webkit browsers.
** They do however have a TypeKit partnership to cover Webkit.
Everything you need to know about rel-shortlink
Authors and administrators can and should use rel="shortlink" to indicate their preferred short URL1 for a piece of content. Below, I discuss…
There is no way Google Buzz will be a successful product. Why not? Here’s a hint: It’s more than those massive security blunders. It’s already fixing those.
Reading updates feels like an…
Why I’m not a libertarian — and why I sometimes lean that way, regardless — can be culled from this informative piece.
The Clock Clock by Humans Since 1982
It is impossible for the “Clock Clock” to show times that require the digits 3, 6, 8, or 9 very well (without adding a third hand to the clocks). Even the time in this shot has a rather sad-looking 9, if one looks closely.
If you play Usher and a recording of a goat braying at the same time, the results are better than the sum of its parts.
Probably a cheap shot, but hilarious nonetheless.
I enjoy the times when an unknown doesn’t really matter.
Is your profile picture sideways, dear 20-something MySpace user, because you are too unintelligent to rotate it properly, or because you think it’s cool that way?
It doesn’t matter. I’ll judge you a little bit either way.
Quite excited for this, actually.