Profile cover photo
Profile photo
Ruffin Bailey
26 followers
26 followers
About
Posts

Post has attachment
Quick spacing issue with the following code:

/*jslint devel, browser */
/*global $, QB */

(function () {
"use strict";
$("#chat-test").click(function () {
QB.users.listUsers({
id: [7615, 7616, 7617]
},
function (err, result) {
console.log(err
? JSON.stringify(err)
: JSON.stringify(result));
});
});
}());

JSLint on JSLint.com right now wants that `function (err, result)...` to be indented two tabs from the previous parameter as shown above. That is, the above code's whitespace does lint.

I believe what it's really asking is for the `{` in the first parameter to be on a new line, indented properly, as below (which also lints):

/*jslint devel, browser */
/*global $, QB */

(function () {
"use strict";
$("#chat-test").click(function () {
QB.users.listUsers(
{
id: [7615, 7616, 7617]
},
function (err, result) {
console.log(err
? JSON.stringify(err)
: JSON.stringify(result));
}
);
});
}());

More briefly, the first example should not pass JSLint, but currently does.

If these examples have their whitespace mangled by G+, here's a pastebin with both:

http://pastebin.com/raw/sD7eTkWi

Is the Unexpected '.'. warning for a method call after a parenthetical intentional?

Snippet from an SO question:
    var hours = parseFloat($hours.val());
    var rate = parseFloat($rate.val());
    var total;

    if (!isNaN(hours) && !isNaN(rate)) {
        // This throws the error.
        total = (rate * hours).toFixed(2);
    }

Anything with this sort of construction (operator or no) will throw a warning, eg... 
    var moreSpam = ("spam" + "spamspam").split("s");
    var loveSpam = ("spam").split("s");

I can understand the last, but the others do not seem to preclude readability, and the original use of toFixed() seems expedient at worst.

Post has attachment
Hard to believe it was from IKEA. It assembled in about four minutes, and I didn't put anything on backwards. Best part: When you add the leaf, the legs move out and stay on the corners, so you don't unexpectedly kill your knees when you scoot up. Looks better than I expected too.

Post has attachment
"Brent Simmons:

My blog’s older than Twitter and Facebook, and it will outlive them. It has seen Flickr explode and then fade. It’s seen Google Wave and Google Reader come and go, and it’ll still be here as Google Plus fades. When Medium and Tumblr are gone, my blog will be here."

Post has attachment
From Gruber:

"60 days ago:
     '[Apple only has] 60 days left to either come up with something or they will disappear,” said Trip Chowdhry, managing director at Global Equities Research. “[Apple] will become a zombie, if they don’t come up with an iWatch.'

I’m really going to miss Apple."

Gruber is the world's best connoisseur of claim chowder.  Chowdhry's is a hilarious bowl.

Post has attachment
Thank you, Marco. When you consider the amount of time it takes to recut your resume and compose a great cover letter, you're often spending hundreds of dollars of your time just to find out the salary's not close to competitive.

Post has attachment

Post has attachment
"The kids born 2010 and beyond (when the iPhone camera actually got good), will have a ton of pictures taken of them. Parents largely don't have a digital workflow that allows for backup, usability, and long term storage."

Post has attachment
Again suggesting BSD is the only style of license that's completely business friendly. If true, is that a win for Stallman and Co?

Post has attachment
An understandable and reasonable explanation of the Apple ebook price fixing suit.
Wait while more posts are being loaded