News for hackers. Stuff that matters.

nspragmatic

Re:Web GL Ocean Simulation on Tuesday November 26, 2013 @12:51PM (#6802855)
> 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!

Re:Show HN: Watson – inline issue manager with GitHub support on Thursday November 21, 2013 @11:21PM (#6779266)
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!"

Re:Michael Dell buys back PC company he founded in $24.8bn deal on Thursday September 12, 2013 @06:44PM (#6377490)
http://news.cnet.com/2100-1001-203937.html

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

Re:Eloquent JavaScript, Second Edition on Wednesday September 11, 2013 @02:17PM (#6368895)
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.
Re:JS-Git on Wednesday August 07, 2013 @10:24PM (#6177008)

        return 0;  // <stdlib.h> not #imported
    }
> 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

Re:\d less efficient than [0-9] on Monday May 20, 2013 @12:40PM (#5738519)
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
Re:Hangouts for iOS on Thursday May 16, 2013 @01:53AM (#5717139)
The only changes made were in MapKit and UIKit.

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

Re:HTTPKit — A lightweight HTTP server framework for Objective-C on Wednesday December 12, 2012 @07:10AM (#4909688)
> 5) You miss pre-v.5 WebObjects

FTFY :)

Re:Refining Ruby on Wednesday November 21, 2012 @05:24PM (#4816651)
> 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...

Re:Using /usr/local on Wednesday September 12, 2012 @02:51AM (#4509473)
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.
Re:GIMP is Now a Self-Contained Native App for Mac OS X on Wednesday August 29, 2012 @11:11PM (#4452747)
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.

Re:Vico Editor source code released on Sunday July 08, 2012 @09:21PM (#4216264)
Try again. I just download r3132 and it doesn't give me that message.
Re:NSRails - Rails + Objective C Framework on Wednesday May 23, 2012 @11:27PM (#4016622)
> 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

Re:Ask HN: Downvoting comments you disapprove? on Saturday January 07, 2012 @05:43PM (#3438256)
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.
Re:GitHub for Mac 1.1 on Wednesday November 23, 2011 @10:06PM (#3272832)
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.
Re:GitHub for Mac 1.1 on Wednesday November 23, 2011 @06:59PM (#3272362)
> Option-Z commits instead of undos when entering a commit message.

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

I wonder why they did that.

Re:What losing $17,543.22 taught me about startups on Tuesday November 15, 2011 @12:52AM (#3237209)
Re:Introducing GitHub Enterprise on Tuesday November 01, 2011 @04:44PM (#3184055)
... 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).

Re:LLVM IR is a compiler IR on Friday October 07, 2011 @06:13PM (#3086216)
The parent was referring to their own anecdote, not the link's benchmarks.
Re:GitHub Hits 1,000,000 users on Wednesday September 21, 2011 @11:19PM (#3024722)
> wan't

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

Re:~/.osx — a collection of sensible defaults for OS X Lion on Thursday September 08, 2011 @03:54PM (#2975414)

    defaults write .GlobalPreferences NSQuitAlwaysKeepsWindows -bool NO
Re:How Steve Jobs handles trolls (WWDC 1997) on Wednesday August 31, 2011 @05:23AM (#2944891)
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
Re:Show HN: Loopon is a multi-user beat maker in the browser on Tuesday August 30, 2011 @02:19AM (#2940346)
It looks like GitHub for Mac, except with not-as-pretty button icons.

http://mac.github.com/