HNHacker News
TopNewBestAskShowJobs

daniel02216

1,100 karma · joined February 16, 2010

submissionscomments
daniel02216··on The Apple M1, ARM/x86 Linux Virtualization, and Boinc
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...

daniel02216··on Bargain Travel Sites May No Longer Be Bargains
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.

daniel02216··on Select(2) is fundamentally broken
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.

daniel02216··on Why is my x64 process getting heap address above 4GB on Windows 8?
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.
daniel02216··on OS X BSD System Calls Reference
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.

daniel02216··on Google discloses three severe vulnerabilities in Apple OS X
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.

daniel02216··on The Performance Cost of Integer Overflow Checking
As of GCC 5, it has __builtin_add_overflow, __builtin_sub_overflow, __builtin_mul_overflow

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

daniel02216··on Apple keeps rejecting my binary
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.
daniel02216··on Fish shell 2.1
For vim at least you can put 'set shell=bash' in your .vimrc and it will use bash instead.
daniel02216··on Perl Regex Removed From Grep in Mountain Lion
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
daniel02216··on Build muscle memory with your favorite editor
Do you have the 'use F1, etc as function keys' unchecked? You'll need to use fn+control+F7 instead.
daniel02216··on Build muscle memory with your favorite editor
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.

daniel02216··on Using Spotlight from the OS X Commandline
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.

daniel02216··on Something is deeply broken in OS X memory management
Yes you can: http://shantonu.blogspot.com http://objc.id.au/post/10101528120/compiling-the-os-x-10-7-k...
daniel02216··on On concepts and realities
> while it may seem that live evaluating a compiled language like C is far off, I believe that given the motivation someone will find a way

I wonder how close Cling[1] is to this ideal.

[1] http://root.cern.ch/drupal/content/what-cling

daniel02216··on 10 graphic examples of the abomination that is iTunes on Windows
It's possible to get iTunes to change its idea of where the music files are. I've done a similar amount of iTunes library moving, and it's been quite amazingly reliable through all that upheaval.

A combination of consolidating and setting the default media location and re-consolidating and holding option on launch etc will eventually get it to find all its media.

daniel02216··on Apple's mind-bogglingly greedy and evil license agreement
This interesting article ("What Colour are your bits?") goes in depth on some of the reasons that different licenses on the same bits can happen: http://ansuz.sooke.bc.ca/entry/23
daniel02216··on Jonathan Coulton on MegaUpload and piracy
You can redownload: music, apps, books, TV shows. Movies aren't in that list. Also, you might not be able to redownload something if it's been taken off the store.

http://www.apple.com/icloud/features/

daniel02216··on Building the next generation file system for Windows: ReFS
I'm not sure I see the difference between a log-structured file system and what they have proposed for their robust disk update strategy, especially when you add integrity streams into the picture. Anyone with more filesystems knowledge than me want to clarify this?
daniel02216··on Sublime Text 2 Beta released with Auto-complete and Improved UI
You can get this sort of navigation with ctags ( http://ctags.sourceforge.net/ ) and a plugin like this one: https://github.com/SublimeText/CTags

I also use cscope: https://github.com/ameyp/CscopeSublime

daniel02216··on If you haven't seen Sublime Text yet, give it a spin.
Notepad++ doesn't have the 'runs on non-Windows platforms' feature, which is a bit of a dealbreaker.
daniel02216··on AES on the iPhone is Broken by Default
If you want the security guys at Apple to hear about the issue, you should file a bug directly with them: http://developer.apple.com/bugreporter/

Then add it in here for the benefit of others: http://openradar.appspot.com

daniel02216··on TextMate 2 + rmate = Awesome
If you find yourself sshing into the same machine all the time, or a set of machines with the same properties (i.e. *.example.com), then you can set up an SSH config file with the following contents to do the port forwarding for you, so you don't have to type out a long SSH command every time.

Host remote.example.com RemoteForward 52698:localhost:52698

daniel02216··on Introducing the Gmail app for iPhone, iPad and iPod touch
You can get send as if you use Google Sync (gmail over exchange instead of imap) and enable the send as setting in their control panel. You can also do it over IMAP by copying and pasting a comma into the account field and adding another email address, I think. You may also have to use the SMTP server with alternate credentials.
daniel02216··on Introducing the Gmail app for iPhone, iPad and iPod touch
On the blog post, check out the image labeled 'Swipe right to view labels'.

Also, it's Facebook for iPhone's profile picture: https://www.facebook.com/iphone

daniel02216··on When hard books disappear
I've found my iPad to be pretty good at dealing with academic PDFs, but there are still some difficulties that make it annoying. I started taking it to my discussion classes instead of printing the day's paper out, and it worked great. The PDF is reproduced exactly as it prints, and you can quickly scroll from one page to another, search, and zoom in on interesting bits. The ACM two-column format works well with the iPad's PDF reader and iBooks.

Later in the year the professor showed up with an iPad as well. :)

(There are apps to organize and cite papers with, like Mendeley, that help somewhat, but I haven't found a great one yet.)

daniel02216··on When hard books disappear
There is a time slider in Google Earth which lets you see older satellite imagery. It's a pretty fun distraction.
daniel02216··on Walt Mossberg Tells Adobe CEO To His Face That Flash Sucks On Android
Gmail calling uses Google's own plugin, not Flash. And they just open sourced it and intend for browser makers to integrate it into their browsers. Hopefully it will be possible to do video calling in HTML soon.
daniel02216··on Heroku's AWS outage post-mortem
They show a history of updates to their status blog and to the herokustatus Twitter account since April 21, what do you mean by 'they weren't communicating'?
daniel02216··on Visualize your iPhone's location tracking map in 100% client-side Javascript
What do these points actually represent? Mine shows a tremendous number of points in the regions where I've lived and been, but no points within about 1/4 mile of where I actually live and I have definitely used the GPS there. Also it shows some points near Las Vegas, which I'm pretty sure I haven't been to with iOS 4.

Some points even show up in the middle of the San Francisco Bay, which doesn't make sense if this is showing cell towers.

Page 1 of 3Next →