HNHacker News
TopNewBestAskShowJobs

nspragmatic

57 karma · joined August 30, 2011

submissionscomments
nspragmatic··on Web GL Ocean Simulation
> 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!

nspragmatic··on Show HN: Watson – inline issue manager with GitHub support
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!"

nspragmatic··on Michael Dell buys back PC company he founded in $24.8bn deal
http://news.cnet.com/2100-1001-203937.html

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

nspragmatic··on Eloquent JavaScript, Second Edition
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.
nspragmatic··on JS-Git

        return 0;  // <stdlib.h> not #imported
    }
nspragmatic··on Mystery object falls from sky, area sealed off by military
> 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

nspragmatic··on \d less efficient than [0-9]
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
nspragmatic··on Hangouts for iOS
The only changes made were in MapKit and UIKit.

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

nspragmatic··on HTTPKit — A lightweight HTTP server framework for Objective-C
> 5) You miss pre-v.5 WebObjects

FTFY :)

nspragmatic··on Refining Ruby
> 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...

nspragmatic··on Using /usr/local
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.
nspragmatic··on GIMP is Now a Self-Contained Native App for Mac OS X
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.

nspragmatic··on Vico Editor source code released
Try again. I just download r3132 and it doesn't give me that message.
nspragmatic··on NSRails - Rails + Objective C Framework
> 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

nspragmatic··on Ask HN: Downvoting comments you disapprove?
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.
nspragmatic··on GitHub for Mac 1.1
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.
nspragmatic··on GitHub for Mac 1.1
> Option-Z commits instead of undos when entering a commit message.

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

I wonder why they did that.

nspragmatic··on What losing $17,543.22 taught me about startups
404.

The date in the URL is wrong.

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

nspragmatic··on Growl 1.3.1 is out, no longer free
http://groups.google.com/group/growldiscuss/msg/0793d15920fa...
nspragmatic··on Introducing GitHub Enterprise
... 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).

nspragmatic··on LLVM IR is a compiler IR
The parent was referring to their own anecdote, not the link's benchmarks.
nspragmatic··on GitHub Hits 1,000,000 users
> wan't

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

nspragmatic··on ~/.osx — a collection of sensible defaults for OS X Lion

    defaults write .GlobalPreferences NSQuitAlwaysKeepsWindows -bool NO
nspragmatic··on How Steve Jobs handles trolls (WWDC 1997)
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
nspragmatic··on Show HN: Loopon is a multi-user beat maker in the browser
It looks like GitHub for Mac, except with not-as-pretty button icons.

http://mac.github.com/