Advanced Javascript: Objects, Arrays, and Array-Like objects
Javascript objects and arrays are both incredibly useful. They’re also incredibly easy to confuse with each other. Mix in a few objects that look like arrays and you’ve got a recipe for confusion!...
View ArticleHow AJAX Security and Twitter callbacks work
The twitter callback feature is nice – it makes it extremely easy to to add a twitter feed to a page. But to get the most benefit out of it, you really need to understand what it’s doing. We’re going...
View ArticleHow to use XSLT to style an RSS feed
XSLT is a fairly well-supported technology. It allows you to take any XML file – including RSS – and transform it into a styled HTML document. It’s kind of like CSS on steroids. Unfortunately, most...
View ArticleAdvanced Javascript: Logical Operators and truthy / falsy
Nearly every website on the internet uses javascript in some form or fashion. Yet very few people, even those who write it and teach it, have a clear understanding of how javascript works! Logical...
View ArticleHow to build a spam-free contact form without captchas
Most anti-spam methods used by websites today are annoying at best. They use impossible-to-read captcha images, or they make users jump through some kind of hoop to get the email address instead of...
View ArticleJavaScript library and .swf for cross-domain flash cookies
I’m working on a project that has a legitimate (non-spammy) reason to need cross-domain cookies, and we settled on flash as a good way to accomplish this. However, I was surprisingly unable to find...
View ArticleHow Facebook sets and uses cross-domain cookies
I’ve seen a lot of confusion about this lately, so I thought I’d make a quick writeup to explain how facebook does it. (I’ll also give a quick tip on how you can do it yourself.) What Facebook Does...
View ArticleCalling all (available) Web Designers & Developers
Even though I’ve been happily employed with Sociable Labs for a while now, I still get fairly frequent calls and emails from people who want to know if I’m available or I “know someone.” The list of...
View ArticleHow to get your apps ready for Facebook’s OAuth 2.0 upgrade
I just finished a writeup on the necessary JS changes to support Facebook’s OAuth 2.0 upgrade, and then Hilary did a followup post on the server-side. The upgrade enabled right now, but it gets forced...
View ArticleHow to make Apache Ant tasks run in a default directory
I often open a new tab in my Terminal to run an Ant task in, and often as not I forget to CD into the correct directory first and so I am greeted with this error: Nathan-Mac:~ nathan$ ant...
View ArticleAutomatically unit testing client-side JavaScript with Jasmine and Node.js
At Sociable Labs, we have hundreds JavaScript unit tests that run on every checkin. They output a JUnit-compatible report that Bamboo can use to track stats and email us if anything failed. Here’s how...
View ArticleAutomatically removing spamers from the WordPress Coment Notifier Plugin’s...
Photo by anda (: There’s an awesome WordPress plugin called Comment Notifier – what it does is add that check box at the bottom of the comments section. If you leave it checked when you add a comment,...
View Article
More Pages to Explore .....