Posts from EncyteMedia...

Browser-based Developer Tools Come Full Circle

With the release of Opera’s DragonFly, IE 8’s Developer tools, Safari’s/Webkit’s Web Inspector and Drosera; and the Grand Daddy of them all, Firebug – we’ve now come full circle.

Tags: longquote, tumble, devtools, dragonfly, drosera, firebug, firefox, ie8, opera, safari, webinspector

Automating Rick Rolls with launchd

Lets face it: Your coworkers can be a real pain in the ass sometimes. What better way to remind them of this than automated Rick rolls? They’re likely to never know what hit them.

Tags: posts, launchctl, launchd, rickroll

A strftime for Prototype


Object.extend(Date.prototype, {
  strftime: function(format) {
    var day = this.getUTCDay(), month = this.getUTCMonth();
    var hours = this.getUTCHours(), minutes = this.getUTCMinutes();
    function pad(num) { return num.toPaddedString(2); };

    return format.gsub(/\%([aAbBcdDHiImMpSwyY])/, function(part) {
      switch(part[1]) {
        case 'a': return $w("Sun Mon Tue Wed Thu Fri Sat")[day]; break;
        case 'A': return $w("Sunday Monday Tuesday Wednesday Thursday Friday Saturday")[day]; break;
        case 'b': return $w("Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec")[month]; break;
        case 'B': return $w("January February March April May June July August September October November December")[month]; break;
        case 'c': return this.toString(); break;
        case 'd': return this.getUTCDate(); break;
        case 'D': return pad(this.getUTCDate()); break;
        case 'H': return pad(hours); break;
        case 'i': return (hours === 12 || hours === 0) ? 12 : (hours + 12) % 12; break;
        case 'I': return pad((hours === 12 || hours === 0) ? 12 : (hours + 12) % 12); break;
        case 'm': return pad(month + 1); break;
        case 'M': return pad(minutes); break;
        case 'p': return hours > 11 ? 'PM' : 'AM'; break;
        case 'S': return pad(this.getUTCSeconds()); break;
        case 'w': return day; break;
        case 'y': return pad(this.getUTCFullYear() % 100); break;
        case 'Y': return this.getUTCFullYear().toString(); break;
      }
    }.bind(this));
  }
});

UPDATE: Bugs fixed. Thanks Andrew and Stephen

Also, some of my old and new code has been posted on GitHub. You might find something useful.

Tags: code, tumble, javascript, prototype, snippet, strftime

DoubleClick and Define using Apple Dictionary


var selection;
if(window.getSelection)
  selection = window.getSelection();
else if(document.selection)
  selection = document.selection.createRange();

document.observe("dblclick", function() {
  if(navigator.userAgent.include("Macintosh")) {
      location.href = "dict://" + selection;
    }
});

A quick (and probably dirty) Prototype-based hack allowing Mac users to get the definition of any word by double clicking it.

Tags: code, tumble, dictionary, javascript, osx, snippet

Processing in Action

A beautiful, organic animation by Flight404 created using Processing.

Tags: tumble, video, fire, flight404, music, organic, processing

Calling Ruby from JavaScript

Aaron Patterson shows us how to define ruby methods which can be called from JavaScript using RKelly.

Tags: tumble, url, javascript, javascript2ruby, racc, rkelly

Pimp My JavaScript Skillz

Dustin might not surprise you at your house with a book in hand, but he’ll damn sure send you his innermost fu in the form of a shiny yellow and black book. It’s an excellent read if you’re looking to put more funk in your functions and class in your classes. Check out “Pro JavaScript Design Patterns” by Dustin and Ross Harmes.

—I’m Justin Palmer and I approve this message.

Tags: tumble, url, designpatterns, javascript

Widgets the YUI Way

Why are there so many lightbox implementations? Why are there numerous “versions” of widgets? Do you know which fork is the latest and greatest? Probably not, and for good reason. The current system sucks.

Tags: posts, lightbox, prototype, yui

IE 8 Passes Acid 2

IE 8 PAsses the Acid 2 Test for those not keeping tabs on things.

Tags: tumble, url, acid2, css, ie8

I'm Officially a Portland Local

2,300+ miles, 3 1/2 days and 10 states later, we’ve completed our move from Memphis, TN to Portland, OR.

Tags: posts, activereload, memphis, move2007, oregon, portland, wyoming

Your Momma's So Fat...Prototype vs. JQuery Edition

The time has come once again to clear the air of fallacious statements by the myriad of people comparing Prototype to JQuery. I’m all for comparison; I believe it’s healthy to have choices in life. The problem usually isn’t Prototype or JQuery, it’s the article comparing them.

Tags: posts, comparison, jquery, prototype

Upgrading Radiant to Prototype 1.6

Mislav has written up an excellent overview on upgrading Radiant (which used 1.5) to Prototype 1.6. The article does a great job of showing how 1.6 is superior to 1.5.

Tags: tumble, url, prototype, prototype1.6, radiant

Daily Show Archives Online

According to the New York Times, the Daily Show Archives, with over 7,000 videos are online—free and searchable.

Tags: tumble, url, colbert, dailyshow, jonstewart, videos

Telemarketer gets owned

Tags: tumble, video, funny, homicide, telemarketer

Making an iPhone app in about a minute

Erik Kastner shows us how it’s done.

Tags: tumble, video, 3rdparty, cocoa, iphone, objective-c, tutorial

Prototype Inheritance Updates

Defining classes and inheritance in Prototype–Incase you’ve missed it, Prototype 1.6 has a new inheritance model.

Tags: tumble, url, classes, inheritance, prototype

This Hurricane Rocks!

Hurricane Dean’s projected path. The most awesomest hurricane ever.

Tags: tumble, url, howarddean, humor, politics

Dealing with Asynchronous Queries in Adobe AIR

Nearly all the methods of Adobe’s SQLConnection class are asynchronous. While this is nice when your running expensive operations (your interface won’t hang up), it can be quiet tough to deal with considering we come from a land where database operations have always been synchronous.

Tags: posts, adobe, air, flash, flex, javascript, sqlite

How Ninjas Work

How Ninjas Work

Who would’ve thought Howstuffworks would be able to uncover the secrets behind these illusive creatures.

Tags: tumble, url, howstuffworks, humor, ninjas

Chuck Norris Doesn't Apply For Jobs!

Chuck Norris does not apply for jobs, jobs compete for Chuck Norris

via Ajaxian

Tags: quote, tumble, chucknorris, funny, humor
next page »