Better HN
topnewbestaskshowjobs
Log inSign up

daniel02216

1,100 karma · joined Feb 16, 2010 (16y ago) · 119 submissions

Submissions

comment 5y ago · link · parent

That it changes cores only when the window becomes invisible is likely due to App Nap - check the energy tab in Activity Monitor.

https://developer.apple.com/library/archive/documentation/Pe...

https://developer.apple.com/library/archive/documentation/Pe...

comment 9y ago · link · parent

It looks like roomkey.com doesn't seem to have any mobile apps, which makes it hard to say that it's more convenient to use when traveling than an aggregator that does have an app.

It's interesting to hear about your site though, perhaps I'll try it out next time I'm traveling.

3.

iOS Security Guide (updated for iOS 10) [pdf](apple.com ↗)

2 points · by daniel02216 · 9y ago · discuss

comment 9y ago · link · parent

EV_ONESHOT refers to the individual kevent registration, and is basically an automatic EV_DELETE on delivery of the event.

EPOLLEXCLUSIVE is acting at a different layer - in kevent terms it would cause only one of the registered kevents watching an object to be activated when the object is ready instead of all of the kevents watching for the same thing.

5.

No Parking Here – The Future of Parking Is Self Driving Cars(m.motherjones.com ↗)

2 points · by daniel02216 · 10y ago · discuss

6.

Winning the bias-variance tradeoff(jvns.ca ↗)

3 points · by daniel02216 · 10y ago · discuss

7.

Building xnu for OS X 10.11 El Capitan(shantonu.blogspot.com ↗)

2 points · by daniel02216 · 10y ago · discuss

comment 11y ago · link · parent

This is one reason why OS X enforces a hard page-zero on 64-bit programs - it is a hard error to map or allocate anything in the lowest 4 GB of memory, so programmers will immediately discover pointer truncation bugs when porting 32-bit code to 64-bit.

comment 11y ago · link · parent

This is true - the compatibility boundary for OS X is at the link-against-libSystem layer. The actual interface between libSystem and the kernel is private to Apple and is not guaranteed to stay argument or ABI compatible. (this includes the syscall() function)

Several xnu syscalls are actually paired with a userspace wrapper function that does some extra stuff. Existing syscalls may even become wrapped in a subsequent release if needed.

comment 11y ago · link · parent

And a bunch of those are using Wine, which requires mapping code at the zero page, so they're compiled with a special load command that allows them to map the zero page.

On Yosemite, 64-bit binaries aren't allowed to do this.

11.

Microsoft, Apple, and Disappointment(shapeof.com ↗)

3 points · by daniel02216 · 11y ago · discuss

12.

What is the optimal shape for a bucket?(datagenetics.com ↗)

4 points · by daniel02216 · 11y ago · discuss

13.

Oppenheimer, Unredacted: Part II – Reading the Lost Transcripts(blog.nuclearsecrecy.com ↗)

22 points · by daniel02216 · 11y ago · 1 comment

14.

A racing test tunnel no one wants to talk about(kinja.roadandtrack.com ↗)

41 points · by daniel02216 · 11y ago · 10 comments

comment 11y ago · link · parent

As of GCC 5, it has __builtin_add_overflow, __builtin_sub_overflow, __builtin_mul_overflow

https://gcc.gnu.org/gcc-5/changes.html

comment 11y ago · link · parent

That's just the syscall for waiting for a semaphore to be signaled. Most likely the crash is due to the main thread waiting for too long on that semaphore - it's likely stuck waiting for a network request to complete, and the watchdog kicked in and killed it.

17.

Impossible Escape(datagenetics.com ↗)

9 points · by daniel02216 · 11y ago · 2 comments

18.

The 7th Underhanded C Contest is now Open(underhanded-c.org ↗)

61 points · by daniel02216 · 12y ago · 3 comments

19.

Building xnu for OS X 10.10 Yosemite(shantonu.blogspot.com ↗)

4 points · by daniel02216 · 12y ago · discuss

comment 13y ago · link · parent

For vim at least you can put 'set shell=bash' in your .vimrc and it will use bash instead.

21.

LL and LR Parsing Demystified(blog.reverberate.org ↗)

11 points · by daniel02216 · 13y ago · 1 comment

comment 14y ago · link · parent

It's UIUC's license, which looks similar to BSD to me. They also have some MIT licensed code. http://llvm.org/docs/DeveloperPolicy.html#license

23.

Mountain Lion without skeuomorphism(theverge.com ↗)

11 points · by daniel02216 · 14y ago · 1 comment

24.

It’s Time to Get Serious About Exploiting Undefined Behavior(blog.regehr.org ↗)

3 points · by daniel02216 · 14y ago · discuss

25.

Living with HTTPS(imperialviolet.org ↗)

326 points · by daniel02216 · 14y ago · 126 comments

comment 14y ago · link · parent

Do you have the 'use F1, etc as function keys' unchecked? You'll need to use fn+control+F7 instead.

comment 14y ago · link · parent

I believe they are if you enable 'Full Keyboard Access' for 'All Controls' in the Keyboard prefpane (under Keyboard Shortcuts tab)

Or just hit Control-F7.

comment 14y ago · link · parent

IIRC the Spotlight metadata is stored per-volume, so if you for example mount an encrypted DMG or external disk the metadata for files on that volume are stored on the same volume. This way you can have separate volumes for things with different classifications, and information doesn't leak from one to the other via Spotlight.

If you strongly need full privacy separation between contexts, set up a virtual machine for your confidential work, and encrypt that. Then you can monitor what crosses the security boundary yourself, and deleting the VM means the data and any possible fragments of that data generated by nosy operating system features are gone.

Side note: Check out Finder's advanced preferences for 'Empty Trash Securely'. Additionally, I believe the swap space is now encrypted by default on Lion (at least for laptops), even if you don't have full disk encryption enabled.

29.

The Grammar of Vim(rc3.org ↗)

125 points · by daniel02216 · 14y ago · 37 comments

comment 14y ago · link · parent

Yes you can: http://shantonu.blogspot.com http://objc.id.au/post/10101528120/compiling-the-os-x-10-7-k...
1234