Better HN
topnewbestaskshowjobs
Log inSign up

nspragmatic

57 karma · joined Aug 30, 2011 (15y ago) · 26 submissions

Submissions

comment 13y ago · link · parent

> Your browser does not appear to support the required technologies.

It would've been nice to have an 'I don't care, proceed anyway' button. The check excludes Safari 7, which runs the demo just as well as Chrome.

http://jsfiddle.net/bYHfh

^ removes the hasWebGLSupport() invocation.

Very nice demo, though!

comment 13y ago · link · parent

The example in the gif is actually C++, but JS should be fine according to the link. Ruby and Perl just happen to be the implementation languages.

> "Avaliable (sic) in Ruby and Perl, but supports all languages!"

comment 13y ago · link · parent

http://news.cnet.com/2100-1001-203937.html

It was in 1997. Apple wasn't doing so well at the time.

comment 13y ago · link · parent

It looks like it made it into WebKit on an experimental basis: http://trac.webkit.org/changeset/125201. This was over a year ago, though; don't know about its current status.

comment 13y ago · link · parent

        return 0;  // <stdlib.h> not #imported
    }

comment 13y ago · link · parent

> We don't actually know that though, considering how quickly government forces swept it away.

> All I want to point out is that there is no way for anyone here on HN to know what it was for sure

Take another look at the last sentence. :P

comment 13y ago · link · parent

It happens in Objective-C:

    NSString *pattern = @"\\d", *string = @"੧";
    NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:pattern
                                                                           options:NSRegularExpressionCaseInsensitive
                                                                             error:nil];

    NSUInteger numMatches = [regex numberOfMatchesInString:string
                                                   options:0
                                                     range:NSMakeRange(0, [string length])];

    numMatches ? NSLog(@"%@ found by %@", string, pattern) : NSLog(@"%@ not found", string);

    // 2013-05-20 09:38:42.650 Regexperiment[17848:c07] ੧ found by \d

comment 13y ago · link · parent

The only changes made were in MapKit and UIKit.

https://developer.apple.com/library/ios/#releasenotes/Genera...

comment 13y ago · link · parent

> 5) You miss pre-v.5 WebObjects

FTFY :)

comment 14y ago · link · parent

> Obj-C is only dynamically typed

> swizzling happens only once at compile time.

Objective-C is a dynamic language in every sense of the term.

As examples, at runtime, you can:

- change an existing class' superclass - swizzle methods - create a class ex nihilo (though it'd be a better idea to inherit from NSObject) - give that class (or even an existing one) methods, ivars, and properties

.. and much more

Visit the runtime reference[1] and jump into a running Objective-C app with GDB or F-Script. It's a lot of fun.

[1] https://developer.apple.com/library/mac/#documentation/Cocoa...

comment 14y ago · link · parent

No, Ruby's default is to install to /usr/local. It was just an illustrative example used to demonstrate potential complications from not using /usr/local. The submission wasn't a guide to building Ruby.

comment 14y ago · link · parent

You're doing it wrong.

This is the HIG quote from above:

> "In general, quit when users close the last open window in your app. [...] If users close the last remaining document window in a document-based app and switch to another app, it’s appropriate to quit the app" (emphasis added).

In TextEdit, close the last document and then _switch to another app_. You're missing the last step.

comment 14y ago · link · parent

Try again. I just download r3132 and it doesn't give me that message.

comment 14y ago · link · parent

> The NS classes were introduced as part of OPENSTEP

This is incorrect - the NS prefix was introduced in NEXTSTEP along with EOF.

http://i.imgur.com/MUkXk.png

15.

Yahoo confirms CEO's education misstated; launches probe(mercurynews.com ↗)

2 points · by nspragmatic · 14y ago · discuss

comment 14y ago · link · parent

Downvoting on reddit is actually reserved for comments that don't contribute to the conversation and isn't to be used for disagreeing with a comment. Anyway, blaming reddit users for all the negative shit that happens here is seriously getting old.

comment 15y ago · link · parent

I see, thanks. I originally wrote omega (I knew it was the last letter, alpha/omega and such), but changed it after checking the character viewer in OS X, which called it an ohm.

comment 15y ago · link · parent

> Option-Z commits instead of undos when entering a commit message.

Cmd-z. Opt-z types ohm: Ω.

I wonder why they did that.

comment 15y ago · link · parent

404.

The date in the URL is wrong.

http://www.thecuriousentrepreneur.com/2011/11/14/what-losing...

comment 15y ago · link · parent

http://groups.google.com/group/growldiscuss/msg/0793d15920fa...

comment 15y ago · link · parent

... none of which are the format in question.

> The VM Import process currently supports VMware ESX VMDK images, Citrix Xen VHD images and Microsoft Hyper-V VHD images for Microsoft Windows Server 2003 (R2) and 2008 (R1 & R2).

comment 15y ago · link · parent

The parent was referring to their own anecdote, not the link's benchmarks.

comment 15y ago · link · parent

> wan't

In what implementation of the English language would that contraction make any sort of sense?

comment 15y ago · link · parent

    defaults write .GlobalPreferences NSQuitAlwaysKeepsWindows -bool NO

comment 15y ago · link · parent

It's from WWDC '97. It's in the title of the submission, the title of the linked post, the caption under the video, and if followed through to YouTube, the video description. :P

comment 15y ago · link · parent

It looks like GitHub for Mac, except with not-as-pretty button icons.

http://mac.github.com/