Overooped

More of a programming nerd than is strictly healthy. See also {nevyn.nu, thirdcog.eu, twitter}
Tue May 13
The simple fact that most or all of [Apple’s] competition haven’t really comprehended what Apple’s advantage is yet - it’s ascribed to design as in “pretty”, strong brand as in “luxury” and customer loyalty as in “Apple users are fools”. This cluelessness has given Apple a head start unlike a common technology arms race, and frankly there’s no sign that their competitors are about to “get it”. Arru in the comments to Moonwatcher’s Why Doesn’t Apple Face The Innovator’s Dilemma?
Sun May 11
(Adium 1.2.5, when sending a file to a meta-contact (someone in my contact list who I have multiple accounts on))

Eh. Very nice, Adium. Classy. I like the unique identifiers. Thought Adium was above bad UIs :P

(Adium 1.2.5, when sending a file to a meta-contact (someone in my contact list who I have multiple accounts on))

Eh. Very nice, Adium. Classy. I like the unique identifiers. Thought Adium was above bad UIs :P

Mon Apr 28
The men who program in C are Real Men. The women who program in C are Real Men too. You can spot a C programmer from their testosterone fueled swagger, and the unbelievable amount of contempt they inject into the phrase Java “programmer”. Urban Dictionary: C++ via @violasong
Tue Apr 15

PHP: Timeout on file_get_contents

Since there doesn’t seem to be a single piece of documentation or example on the use of the context option for file_get_contents, and everyone’s actually setting the PHP app’s ini value for timeout (euugh) instead of doing it right, I thought I’d feed this to google:

$ctx = stream_context_create(array(
    ‘http’ => array(
        ‘timeout’ => 1
        )
    )
);
file_get_contents(“http://google.com/”, 0, $ctx);

The unit on the timeout argument is seconds as a float; that is, it is possible to use fractions (e g set timeout to 0.1).

Fri Apr 11
My girlfriend will love this. (Viajonic).
My girlfriend will love this. (Viajonic).
Thu Apr 10
Wed Apr 9
Sun Apr 6
Location bar autocomplete in Safari rocks.

Re: Firefox 3 vs. Safari 3

I agree with everything that Gruber writes about in his latest article. A friend of mine went majorly goddamned-mac-zealot on me and his article (had to explain not once but *twice* that Gruber wasn’t saying “FF should be exactly as Safari” but “Safari beats the Mac port of FF on a number of points” :P) All is well and good though, as he found a fix for the most annoying UI element of FF3 for me: single-click-selects-entire-URL. I almost screamed from frustration from just trying to edit the URL a few days ago. Here’s how to fix it, though:

  1. Go to about:config (type it in the location bar and type enter)
  2. Filter on “clickSelects”
  3. Double-click on the row that says “browser.urlbar.clickSelectsAll” to set it to false.

Now when you single-click in a Firefox location bar, it’ll place the caret in it; double click will select word; and triple-click will select the whole line, just like in a Mac app.

Addendum: Okay, so Voxar tried to convince me that Safari’s location bar was idiotic and illogical (of course only from reading Gruber’s article and not trying it out, even though he has a Mac on his desk :P), and challenged me: if Safari always highlights the first autocomplete entry when you type an url, wouldn’t it be VERY cumbersome to enter e g “http://daringfireball.net/2008/” when the only URL in your history is “http://daringfireball.net/2008/04/firefox_3_safari_3”? The answer is of course, no :) In Safari, you type “da[right-arrow]2008[backspace][enter]” and you’re done with it. The same scenario in Firefox would require you to type the entire URL in by hand, since the autocomplete would be completely useless (even the AwesomeBar would be stumped!). Now I remember why I love Safari :) (Watch It In Full Motion.)