News for hackers. Stuff that matters.

achivetta

Re:APFS filesystem format on Sunday April 23, 2017 @04:01AM (#14177073)
64-bit nanosecond values are actually pretty common on Darwin already. See e.g. clock_gettime_nsec_np(3).
It might not be the memory concern it once was, but today it might very well be a power concern. Modern laptop display pipelines can save power if they don't have to redraw any of the screen: constantly updating status bar animations break that.[1]

1: https://developer.apple.com/videos/play/wwdc2013/712/ (I think the relatively short graphics section mentions this. Can't seem to find the talk that goes into it in more detail...)

Re:Why does calloc exist? on Monday December 05, 2016 @10:03PM (#13111917)
There's code for it in Darwin's libmalloc, but it's not exposed as API.

reallocarray() has some difficulties as an interface, mostly inherited from realloc(). I'm a bigger fan of reallocarr(), but that's NetBSD only. We (the operating systems community) need to find a consensus here, but I'm not convinced that reallocarray() is that consensus yet.

Until signal handlers get involved...
Re:Apple tells U.S. judge 'impossible' to unlock new iPhones on Tuesday October 20, 2015 @09:52PM (#10423115)
You give the HSM the pin, it returns the key used to encrypt the data, applying the rules to that interaction with you. Emulating the HSM doesn't help since it is that phone's specific HSM with the key it knows that you need to access.
Re:OS X El Capitan GM Candidate available on Wednesday September 09, 2015 @11:39PM (#10196047)
That won't be editable anymore. But you could disable SIP from recovery mode, make the change, then re-enable it.
Do you have a bug number, by chance? (If not, consider filing one at bugreporter.apple.com)
Re:How Not to Write a Signal Handler on Friday November 28, 2014 @12:58AM (#8669844)
As far as "modern signal handling" goes: On OS X, you can also just create a dispatch source of type DISPATCH_SOURCE_TYPE_SIGNAL. If your code already uses dispatch, this is much easier than trying to wire up to kqueue directly.
Re:Let's Talk About Beacons on Tuesday November 04, 2014 @12:42PM (#8557865)
Who is suggesting that users would carry beacons?
I think the hesitations about passphrase being subject to brute force, rainbow table, etc. are warranted, but I have another concern:

If my passphrase gets compromised, I have to retire the keypair.

That's true of a key file with current asymmetric systems; but, presently if the passphrase of my GPG private key is compromised (e.g. by a hardware key logger), I only have to change the passphrase and ensure the old keyfiles are destroyed.

With MiniLock, if my passphrase is compromised the entire key material is compromised and I need to revoke the public key. But how do I revoke it? Do I tweet a message with the private key saying the public key is revoked? Will there be a centralized place to publish revocation messages? Efficient key revocation will be absolutely critical to this system and that's hard if the key distribution mechanism is tweets or some other ad hoc mechanism. This is one thing that PGP key servers really help with.

Re:Solar plant has generated “supercritical” steam on Monday June 16, 2014 @05:12AM (#7898015)
Thinking aloud: could one build a combination fossil fuel and solar steam-powered turbine? When the sun is out, you use (supercritical) steam as they describe being able to generate. If the sun goes away, you feed the same turbine with steam generated with fossil fuels. You could use same turbine, condenser, etc but just switch the heat source (or use both) as the environmental conditions change.
Re:How Apple Cheats on Wednesday May 28, 2014 @09:27AM (#7809756)
Amazingly, this sort of use-after-free causes compatibility problems for allocator writers even today. Imagine if you change the implementation of malloc() such that smaller allocations get their own mmap() region rather than being stuffed in with other allocations. Now any use-after-free bugs to allocations affected by the change will segfault instead of reading garbage, since the allocator would munmap the region upon free().
Re:The most voted Ruby question on Stack Overflow on Tuesday November 26, 2013 @05:12AM (#6800254)
Is this perhaps because ruby calls it a case statement instead of a switch statement?
Re:Student Solves Sol Lewitt Drawing Assignment in Pseudocode on Tuesday September 03, 2013 @06:19AM (#6320059)
Keep in mind: This class is part of a conservatory-style BFA program. These students are already, or will soon be, custom to public critiques. And learning how to accept public criticism, positive and negative, is explicitly a goal of many such programs.

My two cents: While I would have hated such a thing in an engineering class, I really appreciated public discussion and criticism of my work in the arts. I found that such transparency, even when painful, was hugely valuable to me as I grew as an artist.

Re:NSA Officers Sometimes Spy on Love Interests on Saturday August 24, 2013 @01:28AM (#6267754)
It looks like there's a few different exemptions: http://www.dol.gov/whd/regs/compliance/whdfs36.htm
Re:Apple Unveils iTunes Radio on Monday June 10, 2013 @06:17PM (#5857799)
What? I'm pretty sure it's not available until the fall.
Re:HTML5 vs Flash Video: Battery performance analysis on Sunday May 12, 2013 @06:19PM (#5696089)
Does anyone know if either of these platforms support hardware accelerated H.264 decoding? And, do either HTML5 or Flash in these environments support using it?
Re:What it’s like to die on Friday March 15, 2013 @11:21PM (#5384286)
Go watch this video: http://www.heart.org/HEARTORG/CPRAndECC/HandsOnlyCPR/Hands-O...

That's all you need to know as a lay-rescuer. And if you forget, the 911 operator will walk you through it.

( Or, if you'd rather: http://supersexycpr.com )

If you are going to post online about a problem with an Apple product, I personally believe that it's a good idea to also file a bug (http://bugreporter.apple.com) and include a bug number in your post. Doubly so if you submit it to HN.

It is possible that there are people who work at Apple that read HN and if you post a bug number one of those people might then be able to open the bug.

Re:Do Not Type "File:///" in OS X on Friday February 01, 2013 @11:15PM (#5155130)
Bug number?
Re:Apple patent could remotely disable protesters' phone cameras on Friday September 07, 2012 @11:44AM (#4489657)
This seems like an intentionally misleading title.

I think the many people who work in "no cameras" facilities might love the option of a camera phone with an employer's profile that makes the phone safe to bring into the facility. This isn't much different from how my employer enforces the use of a passcode when connecting an iPhone to VPN.

If you mmap a file, and then access the mmap'ed region, pulling in the pages of the file from disk is considered paging the file in. Watch the output of fs_usage to see examples of this.
A jar of coins and... pajamas.
"Hi there, I was retyping a link to my invoice and screwed up a digit. It took to someone else's page, which seems odd. For example, my link was <link> and I accidentally typed <other link>. Not sure if this is a problem or anything, so I just wanted to bring it to your attention. I'm not sure if this is the right place to email, so please let me know that you get this."

When you make strong statements, other people often have a tendency to react strongly and defensively. I assume that the person at the other end is both competent and concerned - give them all benefits of the doubt.

If you find that isn't the case, then, and only then, you can email them and use the word "security" and talk about going public after n weeks, etc.

(I am not a lawyer.)

I wonder, is the glass just holding the phone at the right angle for the polarity of the phone's antenna and the available signal to match up? If so, this trick wouldn't likely work places other than that restaurant.