News for hackers. Stuff that matters.

daniel02216

Re:The Apple M1, ARM/x86 Linux Virtualization, and Boinc on Sunday January 10, 2021 @09:09PM (#25723396)
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...

Re:Bargain Travel Sites May No Longer Be Bargains on Monday April 03, 2017 @01:26AM (#14020764)
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.

Re:Select(2) is fundamentally broken on Friday January 06, 2017 @12:53AM (#13334271)
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.

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.
Re:OS X BSD System Calls Reference on Wednesday July 08, 2015 @01:57AM (#9850033)
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.

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.

Re:The Performance Cost of Integer Overflow Checking on Thursday December 18, 2014 @01:13AM (#8766210)
As of GCC 5, it has __builtin_add_overflow, __builtin_sub_overflow, __builtin_mul_overflow

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

Re:Apple keeps rejecting my binary on Tuesday December 16, 2014 @12:14PM (#8758020)
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.
Re:Fish shell 2.1 on Monday October 28, 2013 @10:14PM (#6631456)
For vim at least you can put 'set shell=bash' in your .vimrc and it will use bash instead.
Re:Perl Regex Removed From Grep in Mountain Lion on Saturday September 29, 2012 @02:06AM (#4588948)
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
Re:Build muscle memory with your favorite editor on Monday July 16, 2012 @01:05PM (#4251524)
Do you have the 'use F1, etc as function keys' unchecked? You'll need to use fn+control+F7 instead.
Re:Build muscle memory with your favorite editor on Monday July 16, 2012 @01:03PM (#4251516)
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.

Re:Using Spotlight from the OS X Commandline on Monday July 16, 2012 @03:53AM (#4249776)
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.

Older »